diff --git a/pr-preview/pr-419/assets/Changelog-DCkbp4G-.js b/pr-preview/pr-419/assets/Changelog-CbZb2Fro.js similarity index 99% rename from pr-preview/pr-419/assets/Changelog-DCkbp4G-.js rename to pr-preview/pr-419/assets/Changelog-CbZb2Fro.js index 7e9b1fd02..079b90078 100644 --- a/pr-preview/pr-419/assets/Changelog-DCkbp4G-.js +++ b/pr-preview/pr-419/assets/Changelog-CbZb2Fro.js @@ -1,4 +1,4 @@ -var s=Object.defineProperty,b=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var u=(a,t,i)=>t in a?s(a,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[t]=i,e=(a,t)=>{for(var i in t||(t={}))d.call(t,i)&&u(a,i,t[i]);if(m)for(var i of m(t))p.call(t,i)&&u(a,i,t[i]);return a},r=(a,t)=>b(a,h(t));import{j as c}from"./jsx-runtime-CS-_a2eV.js";import{useMDXComponents as n}from"./index-Bqh_nw6E.js";import{e as l}from"./index-BdmlDa2_.js";import"./index-Ca44TZ0D.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./index-BObpwDOh.js";import"./_getPrototype-fDUIJvdn.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";const f=`# [1.32.0](https://github.com/mParticle/aquarium/compare/v1.31.1...v1.32.0) (2024-09-23) +var s=Object.defineProperty,b=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var u=(a,t,i)=>t in a?s(a,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[t]=i,e=(a,t)=>{for(var i in t||(t={}))d.call(t,i)&&u(a,i,t[i]);if(m)for(var i of m(t))p.call(t,i)&&u(a,i,t[i]);return a},r=(a,t)=>b(a,h(t));import{j as c}from"./jsx-runtime-CS-_a2eV.js";import{useMDXComponents as n}from"./index-Bqh_nw6E.js";import{e as l}from"./index-XNuu3Woq.js";import"./index-Ca44TZ0D.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./index-BObpwDOh.js";import"./_getPrototype-fDUIJvdn.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";const f=`# [1.32.0](https://github.com/mParticle/aquarium/compare/v1.31.1...v1.32.0) (2024-09-23) ### Bug Fixes diff --git a/pr-preview/pr-419/assets/Color-PRSJMWNM-ww_P78OC.js b/pr-preview/pr-419/assets/Color-PRSJMWNM-Bz2B8K5d.js similarity index 99% rename from pr-preview/pr-419/assets/Color-PRSJMWNM-ww_P78OC.js rename to pr-preview/pr-419/assets/Color-PRSJMWNM-Bz2B8K5d.js index db3bd42a5..8dc419d7b 100644 --- a/pr-preview/pr-419/assets/Color-PRSJMWNM-ww_P78OC.js +++ b/pr-preview/pr-419/assets/Color-PRSJMWNM-Bz2B8K5d.js @@ -1 +1 @@ -var je=Object.defineProperty,Te=Object.defineProperties;var Fe=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var p=Math.pow,le=(e,t,n)=>t in e?je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t)=>{for(var n in t||(t={}))se.call(t,n)&&le(e,n,t[n]);if(L)for(var n of L(t))ie.call(t,n)&&le(e,n,t[n]);return e},B=(e,t)=>Te(e,Fe(t));var ce=(e,t)=>{var n={};for(var r in e)se.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&L)for(var r of L(e))t.indexOf(r)<0&&ie.call(e,r)&&(n[r]=e[r]);return n};import{n as O,f as pe,T as ze,F as He,g as Pe,h as Le}from"./index-BdmlDa2_.js";import{R as h,r as m,g as ye}from"./index-Ca44TZ0D.js";import{_ as qe,i as te}from"./_getPrototype-fDUIJvdn.js";import{i as Be}from"./index-BObpwDOh.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";function I(){return(I=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function U(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var j=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:y.buttons>0)&&o.current?a(ue(o.current,y,s.current)):C(!1)},T=function(){return C(!1)};function C(y){var b=i.current,k=Y(o.current),M=y?k.addEventListener:k.removeEventListener;M(b?"touchmove":"mousemove",w),M(b?"touchend":"mouseup",T)}return[function(y){var b=y.nativeEvent,k=o.current;if(k&&(fe(b),!function(_,N){return N&&!z(_)}(b,i.current)&&k)){if(z(b)){i.current=!0;var M=b.changedTouches||[];M.length&&(s.current=M[0].identifier)}k.focus(),a(ue(k,b,s.current)),C(!0)}},function(y){var b=y.which||y.keyCode;b<37||b>40||(y.preventDefault(),l({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},C]},[l,a]),d=c[0],f=c[1],g=c[2];return m.useEffect(function(){return g},[g]),h.createElement("div",I({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),P=function(e){return e.filter(Boolean).join(" ")},oe=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=P(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},x=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},We={grad:.9,turn:360,rad:360/(2*Math.PI)},Xe=function(e){return ke(J(e))},J=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?x(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?x(parseInt(e.substring(6,8),16)/255,2):1}},De=function(e,t){return t===void 0&&(t="deg"),Number(e)*(We[t]||1)},Ke=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Ve({h:De(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Ve=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},Ae=function(e){return Ue(we(e))},xe=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:x(e.h),s:x(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:x(o/2),a:x(r,2)}},Q=function(e){var t=xe(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},K=function(e){var t=xe(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},we=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),l=r*(1-n),s=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:x(255*[r,s,l,l,i,r][c]),g:x(255*[i,r,r,s,l,l][c]),b:x(255*[l,l,i,r,r,s][c]),a:x(o,2)}},Ge=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ke({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},W=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Ue=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?W(x(255*o)):"";return"#"+W(t)+W(n)+W(r)+a},ke=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),l=a-Math.min(t,n,r),s=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:x(60*(s<0?s+6:s)),s:x(a?l/a*100:0),v:x(a/255*100),a:o}},_e=h.memo(function(e){var t=e.hue,n=e.onChange,r=P(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(re,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:j(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(oe,{className:"react-colorful__hue-pointer",left:t/360,color:Q({h:t,s:100,v:100,a:1})})))}),Ee=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Q({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(re,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:j(t.s+100*o.left,0,100),v:j(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(t.s)+"%, Brightness "+x(t.v)+"%"},h.createElement(oe,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Q(t)})))}),Me=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Ce=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Ye=function(e,t){return e.toLowerCase()===t.toLowerCase()||Me(J(e),J(t))};function $e(e,t,n){var r=U(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],s=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,s.current.color)){var c=e.toHsva(t);s.current={hsva:c,color:t},l(c)}},[t,e]),m.useEffect(function(){var c;Me(a,s.current.hsva)||e.equal(c=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:c},r(c))},[a,e,r]);var i=m.useCallback(function(c){l(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var Je=typeof window!="undefined"?m.useLayoutEffect:m.useEffect,Qe=function(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:void 0},he=new Map,Oe=function(e){Je(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!he.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,he.set(t,n);var r=Qe();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Ze=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=ne(e,["className","colorModel","color","onChange"]),s=m.useRef(null);Oe(s);var i=$e(n,o,a),c=i[0],d=i[1],f=P(["react-colorful",t]);return h.createElement("div",I({},l,{ref:s,className:f}),h.createElement(Ee,{hsva:c,onChange:d}),h.createElement(_e,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},et={defaultColor:"000",toHsva:Xe,fromHsva:function(e){return Ae({h:e.h,s:e.s,v:e.v,a:1})},equal:Ye},tt=function(e){return h.createElement(Ze,I({},e,{colorModel:et}))},nt=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+K(Object.assign({},n,{a:0}))+", "+K(Object.assign({},n,{a:1}))+")"},a=P(["react-colorful__alpha",t]),l=x(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(re,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:j(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(oe,{className:"react-colorful__alpha-pointer",left:n.a,color:K(n)})))},Ne=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=ne(e,["className","colorModel","color","onChange"]),s=m.useRef(null);Oe(s);var i=$e(n,o,a),c=i[0],d=i[1],f=P(["react-colorful",t]);return h.createElement("div",I({},l,{ref:s,className:f}),h.createElement(Ee,{hsva:c,onChange:d}),h.createElement(_e,{hue:c.h,onChange:d}),h.createElement(nt,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},rt={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Ke,fromHsva:K,equal:Ce},ot=function(e){return h.createElement(Ne,I({},e,{colorModel:rt}))},at={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Ge,fromHsva:function(e){var t=we(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Ce},lt=function(e){return h.createElement(Ne,I({},e,{colorModel:at}))},st={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const H=st,Ie={};for(const e of Object.keys(H))Ie[H[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Se=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),l=a-o;let s,i;a===o?s=0:t===a?s=(n-r)/l:n===a?s=2+(r-t)/l:r===a&&(s=4+(t-n)/l),s=Math.min(s*60,360),s<0&&(s+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=l/(a+o):i=l/(2-a-o),[s,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const l=e[0]/255,s=e[1]/255,i=e[2]/255,c=Math.max(l,s,i),d=c-Math.min(l,s,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(l),n=f(s),r=f(i),l===c?o=r-n:s===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,l=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[a*100,l*100,s*100,o*100]};function it(e,t){return p(e[0]-t[0],2)+p(e[1]-t[1],2)+p(e[2]-t[2],2)}u.rgb.keyword=function(e){const t=Ie[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(H)){const a=H[o],l=it(e,a);l.04045?p((t+.055)/1.055,2.4):t/12.92,n=n>.04045?p((n+.055)/1.055,2.4):n/12.92,r=r>.04045?p((r+.055)/1.055,2.4):r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,l=t*.0193+n*.1192+r*.9505;return[o*100,a*100,l*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?p(n,1/3):7.787*n+16/116,r=r>.008856?p(r,1/3):7.787*r+16/116,o=o>.008856?p(o,1/3):7.787*o+16/116;const a=116*r-16,l=500*(n-r),s=200*(r-o);return[a,l,s]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,l;if(n===0)return l=r*255,[l,l,l];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(o-s)*6*a:2*a<1?l=o:3*a<2?l=s+(o-s)*(2/3-a)*6:l=s,i[c]=l*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const l=(r+n)/2,s=r===0?2*o/(a+o):2*n/(r+n);return[t,s*100,l*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),l=255*r*(1-n),s=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,l];case 1:return[s,r,l];case 2:return[l,r,i];case 3:return[l,s,r];case 4:return[i,l,r];case 5:return[r,l,s]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,l;l=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,l/=2,[t,a*100,l*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const l=Math.floor(6*t),s=1-r;a=6*t-l,l&1&&(a=1-a);const i=n+a*(s-n);let c,d,f;switch(l){default:case 6:case 0:c=s,d=i,f=n;break;case 1:c=i,d=s,f=n;break;case 2:c=n,d=s,f=i;break;case 3:c=n,d=i,f=s;break;case 4:c=i,d=n,f=s;break;case 5:c=s,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),l=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[a*255,l*255,s*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,l;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,l=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*p(o,1/2.4)-.055:o*12.92,a=a>.0031308?1.055*p(a,1/2.4)-.055:a*12.92,l=l>.0031308?1.055*p(l,1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),[o*255,a*255,l*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?p(t,1/3):7.787*t+16/116,n=n>.008856?p(n,1/3):7.787*n+16/116,r=r>.008856?p(r,1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),l=200*(n-r);return[o,a,l]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,l;a=(t+16)/116,o=n/500+a,l=a-r/200;const s=p(a,3),i=p(o,3),c=p(l,3);return a=s>.008856?s:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,l=c>.008856?c:(l-16/116)/7.787,o*=95.047,a*=100,l*=108.883,[o,a,l]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const l=Math.sqrt(n*n+r*r);return[t,l,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),l=n*Math.sin(o);return[t,a,l]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(l+=60),l};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,l=r&255;return[o,a,l]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),l=o-a;let s,i;return l<1?s=a/(1-l):s=0,l<=0?i=0:o===t?i=(n-r)/l%6:o===n?i=2+(r-t)/l:i=4+(t-n)/l,i/=6,i%=1,[i*360,l*100,s*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,l=a%1,s=1-l;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const V=Se;function ct(){const e={},t=Object.keys(V);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function vt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,l=0;l{S[e]={},Object.defineProperty(S[e],"channels",{value:Z[e].channels}),Object.defineProperty(S[e],"labels",{value:Z[e].labels});const t=gt(e);Object.keys(t).forEach(r=>{const o=t[r];S[e][r]=vt(o),S[e][r].raw=bt(o)})});var pt=S;const E=ye(pt);var yt=qe,xt=function(){return yt.Date.now()},wt=xt,kt=/\s/;function _t(e){for(var t=e.length;t--&&kt.test(e.charAt(t)););return t}var Et=_t,Mt=Et,Ct=/^\s+/;function $t(e){return e&&e.slice(0,Mt(e)+1).replace(Ct,"")}var Ot=$t,Nt=Ot,de=te,It=Be,ge=NaN,St=/^[-+]0x[0-9a-f]+$/i,Rt=/^0b[01]+$/i,jt=/^0o[0-7]+$/i,Tt=parseInt;function Ft(e){if(typeof e=="number")return e;if(It(e))return ge;if(de(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=de(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Nt(e);var n=Rt.test(e);return n||jt.test(e)?Tt(e.slice(2),n?2:8):St.test(e)?ge:+e}var zt=Ft,Ht=te,G=wt,me=zt,Pt="Expected a function",Lt=Math.max,qt=Math.min;function Bt(e,t,n){var r,o,a,l,s,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(Pt);t=me(t)||0,Ht(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Lt(me(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function w(v){var $=r,F=o;return r=o=void 0,c=v,l=e.apply(F,$),l}function T(v){return c=v,s=setTimeout(b,t),d?w(v):l}function C(v){var $=v-i,F=v-c,ae=t-$;return f?qt(ae,a-F):ae}function y(v){var $=v-i,F=v-c;return i===void 0||$>=t||$<0||f&&F>=a}function b(){var v=G();if(y(v))return k(v);s=setTimeout(b,C(v))}function k(v){return s=void 0,g&&r?w(v):(r=o=void 0,l)}function M(){s!==void 0&&clearTimeout(s),c=0,r=i=o=s=void 0}function _(){return s===void 0?l:k(G())}function N(){var v=G(),$=y(v);if(r=arguments,o=this,i=v,$){if(s===void 0)return T(i);if(f)return clearTimeout(s),s=setTimeout(b,t),w(i)}return s===void 0&&(s=setTimeout(b,t)),l}return N.cancel=M,N.flush=_,N}var Wt=Bt,Xt=Wt,Dt=te,Kt="Expected a function";function Vt(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Kt);return Dt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Xt(e,t,{leading:r,maxWait:t,trailing:o})}var At=Vt;const Gt=ye(At);var Ut=O.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Yt=O(pe)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Jt=O.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Qt=O(ze)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Zt=O.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),en=O.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),tn=`url('data:image/svg+xml;charset=utf-8,')`,be=r=>{var o=r,{value:e,style:t}=o,n=ce(o,["value","style"]);let a=`linear-gradient(${e}, ${e}), ${tn}, linear-gradient(#fff, #fff)`;return h.createElement(en,B(q({},n),{style:B(q({},t),{backgroundImage:a})}))},nn=O(He.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),rn=O(Pe)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Re=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Re||{}),X=Object.values(Re),on=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,an=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,ln=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,ee=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,sn=/^\s*#?([0-9a-f]{3})\s*$/i,cn={hex:tt,rgb:lt,hsl:ot},D={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ve=e=>{let t=e==null?void 0:e.match(on);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},R=e=>{if(!e)return;let t=!0;if(an.test(e)){let[l,s,i,c]=ve(e),[d,f,g]=E.rgb.hsl([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:E.rgb.keyword([l,s,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${E.rgb.hex([l,s,i]).toLowerCase()}`}}if(ln.test(e)){let[l,s,i,c]=ve(e),[d,f,g]=E.hsl.rgb([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:E.hsl.keyword([l,s,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${E.hsl.hex([l,s,i]).toLowerCase()}`}}let n=e.replace("#",""),r=E.keyword.rgb(n)||E.hex.rgb(n),o=E.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:ee.test(e)&&(a=`#${n}`),a.startsWith("#"))t=ee.test(a);else try{E.keyword.hex(a)}catch(l){t=!1}return{valid:t,value:a,keyword:E.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},un=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return D[n];if(n!=="hex")return(t==null?void 0:t[n])||D[n];if(!t.hex.startsWith("#"))try{return`#${E.keyword.hex(t.hex)}`}catch(s){return D.hex}let r=t.hex.match(sn);if(!r)return ee.test(t.hex)?t.hex:D.hex;let[o,a,l]=r[1].split("");return`#${o}${o}${a}${a}${l}${l}`},fn=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>R(n)),[l,s]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=R(f);r(f),a(g),s((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=m.useMemo(()=>un(n,o,l).toLowerCase(),[n,o,l]),c=m.useCallback(f=>{let g=R(f),w=(g==null?void 0:g.value)||f||"";r(w),w===""&&(a(void 0),t(void 0)),g&&(a(g),s(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=X.indexOf(l)+1;f>=X.length&&(f=0),s(X[f]);let g=(o==null?void 0:o[X[f]])||"";r(g),t(g)},[o,l,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:l,cycleColorSpace:d}},A=e=>e.replace(/\s*/,"").toLowerCase(),hn=(e,t,n)=>{let[r,o]=m.useState(t!=null&&t.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(s=>typeof s=="string"?R(s):s.title?B(q({},R(s.color)),{keyword:s.title}):R(s.color)).concat(r).filter(Boolean).slice(-27),[e,r]),l=m.useCallback(s=>{s!=null&&s.valid&&(a.some(i=>A(i[n])===A(s[n]))||o(i=>i.concat(s)))},[n,a]);return{presets:a,addPreset:l}},dn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:l=!1,argType:s})=>{var M;let i=m.useCallback(Gt(n,200),[n]),{value:c,realValue:d,updateValue:f,color:g,colorSpace:w,cycleColorSpace:T}=fn(t,i),{presets:C,addPreset:y}=hn(a,g,w),b=cn[w],k=!!((M=s==null?void 0:s.table)!=null&&M.readonly);return h.createElement(Ut,{"aria-readonly":k},h.createElement(Yt,{startOpen:l,trigger:k?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(g),tooltip:h.createElement(Jt,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),C.length>0&&h.createElement(Zt,null,C.map((_,N)=>h.createElement(pe,{key:`${_.value}-${N}`,hasChrome:!1,tooltip:h.createElement(Qt,{note:_.keyword||_.value})},h.createElement(be,{value:_[w],active:g&&A(_[w])===A(g[w]),onClick:()=>f(_.value)})))))},h.createElement(be,{value:d,style:{margin:4}})),h.createElement(nn,{id:Le(e),value:c,onChange:_=>f(_.target.value),onFocus:_=>_.target.select(),readOnly:k,placeholder:"Choose color..."}),c?h.createElement(rn,{onClick:T}):null)},$n=dn;export{dn as ColorControl,$n as default}; +var je=Object.defineProperty,Te=Object.defineProperties;var Fe=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var p=Math.pow,le=(e,t,n)=>t in e?je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t)=>{for(var n in t||(t={}))se.call(t,n)&&le(e,n,t[n]);if(L)for(var n of L(t))ie.call(t,n)&&le(e,n,t[n]);return e},B=(e,t)=>Te(e,Fe(t));var ce=(e,t)=>{var n={};for(var r in e)se.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&L)for(var r of L(e))t.indexOf(r)<0&&ie.call(e,r)&&(n[r]=e[r]);return n};import{n as O,f as pe,T as ze,F as He,g as Pe,h as Le}from"./index-XNuu3Woq.js";import{R as h,r as m,g as ye}from"./index-Ca44TZ0D.js";import{_ as qe,i as te}from"./_getPrototype-fDUIJvdn.js";import{i as Be}from"./index-BObpwDOh.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";function I(){return(I=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function U(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var j=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:y.buttons>0)&&o.current?a(ue(o.current,y,s.current)):C(!1)},T=function(){return C(!1)};function C(y){var b=i.current,k=Y(o.current),M=y?k.addEventListener:k.removeEventListener;M(b?"touchmove":"mousemove",w),M(b?"touchend":"mouseup",T)}return[function(y){var b=y.nativeEvent,k=o.current;if(k&&(fe(b),!function(_,N){return N&&!z(_)}(b,i.current)&&k)){if(z(b)){i.current=!0;var M=b.changedTouches||[];M.length&&(s.current=M[0].identifier)}k.focus(),a(ue(k,b,s.current)),C(!0)}},function(y){var b=y.which||y.keyCode;b<37||b>40||(y.preventDefault(),l({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},C]},[l,a]),d=c[0],f=c[1],g=c[2];return m.useEffect(function(){return g},[g]),h.createElement("div",I({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),P=function(e){return e.filter(Boolean).join(" ")},oe=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=P(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},x=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},We={grad:.9,turn:360,rad:360/(2*Math.PI)},Xe=function(e){return ke(J(e))},J=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?x(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?x(parseInt(e.substring(6,8),16)/255,2):1}},De=function(e,t){return t===void 0&&(t="deg"),Number(e)*(We[t]||1)},Ke=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Ve({h:De(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Ve=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},Ae=function(e){return Ue(we(e))},xe=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:x(e.h),s:x(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:x(o/2),a:x(r,2)}},Q=function(e){var t=xe(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},K=function(e){var t=xe(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},we=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),l=r*(1-n),s=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:x(255*[r,s,l,l,i,r][c]),g:x(255*[i,r,r,s,l,l][c]),b:x(255*[l,l,i,r,r,s][c]),a:x(o,2)}},Ge=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ke({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},W=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Ue=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?W(x(255*o)):"";return"#"+W(t)+W(n)+W(r)+a},ke=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),l=a-Math.min(t,n,r),s=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:x(60*(s<0?s+6:s)),s:x(a?l/a*100:0),v:x(a/255*100),a:o}},_e=h.memo(function(e){var t=e.hue,n=e.onChange,r=P(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(re,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:j(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(oe,{className:"react-colorful__hue-pointer",left:t/360,color:Q({h:t,s:100,v:100,a:1})})))}),Ee=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Q({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(re,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:j(t.s+100*o.left,0,100),v:j(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(t.s)+"%, Brightness "+x(t.v)+"%"},h.createElement(oe,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Q(t)})))}),Me=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Ce=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Ye=function(e,t){return e.toLowerCase()===t.toLowerCase()||Me(J(e),J(t))};function $e(e,t,n){var r=U(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],s=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,s.current.color)){var c=e.toHsva(t);s.current={hsva:c,color:t},l(c)}},[t,e]),m.useEffect(function(){var c;Me(a,s.current.hsva)||e.equal(c=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:c},r(c))},[a,e,r]);var i=m.useCallback(function(c){l(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var Je=typeof window!="undefined"?m.useLayoutEffect:m.useEffect,Qe=function(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:void 0},he=new Map,Oe=function(e){Je(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!he.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,he.set(t,n);var r=Qe();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Ze=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=ne(e,["className","colorModel","color","onChange"]),s=m.useRef(null);Oe(s);var i=$e(n,o,a),c=i[0],d=i[1],f=P(["react-colorful",t]);return h.createElement("div",I({},l,{ref:s,className:f}),h.createElement(Ee,{hsva:c,onChange:d}),h.createElement(_e,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},et={defaultColor:"000",toHsva:Xe,fromHsva:function(e){return Ae({h:e.h,s:e.s,v:e.v,a:1})},equal:Ye},tt=function(e){return h.createElement(Ze,I({},e,{colorModel:et}))},nt=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+K(Object.assign({},n,{a:0}))+", "+K(Object.assign({},n,{a:1}))+")"},a=P(["react-colorful__alpha",t]),l=x(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(re,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:j(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(oe,{className:"react-colorful__alpha-pointer",left:n.a,color:K(n)})))},Ne=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=ne(e,["className","colorModel","color","onChange"]),s=m.useRef(null);Oe(s);var i=$e(n,o,a),c=i[0],d=i[1],f=P(["react-colorful",t]);return h.createElement("div",I({},l,{ref:s,className:f}),h.createElement(Ee,{hsva:c,onChange:d}),h.createElement(_e,{hue:c.h,onChange:d}),h.createElement(nt,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},rt={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Ke,fromHsva:K,equal:Ce},ot=function(e){return h.createElement(Ne,I({},e,{colorModel:rt}))},at={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Ge,fromHsva:function(e){var t=we(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Ce},lt=function(e){return h.createElement(Ne,I({},e,{colorModel:at}))},st={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const H=st,Ie={};for(const e of Object.keys(H))Ie[H[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Se=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),l=a-o;let s,i;a===o?s=0:t===a?s=(n-r)/l:n===a?s=2+(r-t)/l:r===a&&(s=4+(t-n)/l),s=Math.min(s*60,360),s<0&&(s+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=l/(a+o):i=l/(2-a-o),[s,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const l=e[0]/255,s=e[1]/255,i=e[2]/255,c=Math.max(l,s,i),d=c-Math.min(l,s,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(l),n=f(s),r=f(i),l===c?o=r-n:s===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,l=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[a*100,l*100,s*100,o*100]};function it(e,t){return p(e[0]-t[0],2)+p(e[1]-t[1],2)+p(e[2]-t[2],2)}u.rgb.keyword=function(e){const t=Ie[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(H)){const a=H[o],l=it(e,a);l.04045?p((t+.055)/1.055,2.4):t/12.92,n=n>.04045?p((n+.055)/1.055,2.4):n/12.92,r=r>.04045?p((r+.055)/1.055,2.4):r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,l=t*.0193+n*.1192+r*.9505;return[o*100,a*100,l*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?p(n,1/3):7.787*n+16/116,r=r>.008856?p(r,1/3):7.787*r+16/116,o=o>.008856?p(o,1/3):7.787*o+16/116;const a=116*r-16,l=500*(n-r),s=200*(r-o);return[a,l,s]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,l;if(n===0)return l=r*255,[l,l,l];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(o-s)*6*a:2*a<1?l=o:3*a<2?l=s+(o-s)*(2/3-a)*6:l=s,i[c]=l*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const l=(r+n)/2,s=r===0?2*o/(a+o):2*n/(r+n);return[t,s*100,l*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),l=255*r*(1-n),s=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,l];case 1:return[s,r,l];case 2:return[l,r,i];case 3:return[l,s,r];case 4:return[i,l,r];case 5:return[r,l,s]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,l;l=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,l/=2,[t,a*100,l*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const l=Math.floor(6*t),s=1-r;a=6*t-l,l&1&&(a=1-a);const i=n+a*(s-n);let c,d,f;switch(l){default:case 6:case 0:c=s,d=i,f=n;break;case 1:c=i,d=s,f=n;break;case 2:c=n,d=s,f=i;break;case 3:c=n,d=i,f=s;break;case 4:c=i,d=n,f=s;break;case 5:c=s,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),l=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[a*255,l*255,s*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,l;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,l=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*p(o,1/2.4)-.055:o*12.92,a=a>.0031308?1.055*p(a,1/2.4)-.055:a*12.92,l=l>.0031308?1.055*p(l,1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),[o*255,a*255,l*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?p(t,1/3):7.787*t+16/116,n=n>.008856?p(n,1/3):7.787*n+16/116,r=r>.008856?p(r,1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),l=200*(n-r);return[o,a,l]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,l;a=(t+16)/116,o=n/500+a,l=a-r/200;const s=p(a,3),i=p(o,3),c=p(l,3);return a=s>.008856?s:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,l=c>.008856?c:(l-16/116)/7.787,o*=95.047,a*=100,l*=108.883,[o,a,l]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const l=Math.sqrt(n*n+r*r);return[t,l,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),l=n*Math.sin(o);return[t,a,l]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(l+=60),l};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,l=r&255;return[o,a,l]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),l=o-a;let s,i;return l<1?s=a/(1-l):s=0,l<=0?i=0:o===t?i=(n-r)/l%6:o===n?i=2+(r-t)/l:i=4+(t-n)/l,i/=6,i%=1,[i*360,l*100,s*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,l=a%1,s=1-l;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const V=Se;function ct(){const e={},t=Object.keys(V);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function vt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,l=0;l{S[e]={},Object.defineProperty(S[e],"channels",{value:Z[e].channels}),Object.defineProperty(S[e],"labels",{value:Z[e].labels});const t=gt(e);Object.keys(t).forEach(r=>{const o=t[r];S[e][r]=vt(o),S[e][r].raw=bt(o)})});var pt=S;const E=ye(pt);var yt=qe,xt=function(){return yt.Date.now()},wt=xt,kt=/\s/;function _t(e){for(var t=e.length;t--&&kt.test(e.charAt(t)););return t}var Et=_t,Mt=Et,Ct=/^\s+/;function $t(e){return e&&e.slice(0,Mt(e)+1).replace(Ct,"")}var Ot=$t,Nt=Ot,de=te,It=Be,ge=NaN,St=/^[-+]0x[0-9a-f]+$/i,Rt=/^0b[01]+$/i,jt=/^0o[0-7]+$/i,Tt=parseInt;function Ft(e){if(typeof e=="number")return e;if(It(e))return ge;if(de(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=de(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Nt(e);var n=Rt.test(e);return n||jt.test(e)?Tt(e.slice(2),n?2:8):St.test(e)?ge:+e}var zt=Ft,Ht=te,G=wt,me=zt,Pt="Expected a function",Lt=Math.max,qt=Math.min;function Bt(e,t,n){var r,o,a,l,s,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(Pt);t=me(t)||0,Ht(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Lt(me(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function w(v){var $=r,F=o;return r=o=void 0,c=v,l=e.apply(F,$),l}function T(v){return c=v,s=setTimeout(b,t),d?w(v):l}function C(v){var $=v-i,F=v-c,ae=t-$;return f?qt(ae,a-F):ae}function y(v){var $=v-i,F=v-c;return i===void 0||$>=t||$<0||f&&F>=a}function b(){var v=G();if(y(v))return k(v);s=setTimeout(b,C(v))}function k(v){return s=void 0,g&&r?w(v):(r=o=void 0,l)}function M(){s!==void 0&&clearTimeout(s),c=0,r=i=o=s=void 0}function _(){return s===void 0?l:k(G())}function N(){var v=G(),$=y(v);if(r=arguments,o=this,i=v,$){if(s===void 0)return T(i);if(f)return clearTimeout(s),s=setTimeout(b,t),w(i)}return s===void 0&&(s=setTimeout(b,t)),l}return N.cancel=M,N.flush=_,N}var Wt=Bt,Xt=Wt,Dt=te,Kt="Expected a function";function Vt(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Kt);return Dt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Xt(e,t,{leading:r,maxWait:t,trailing:o})}var At=Vt;const Gt=ye(At);var Ut=O.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Yt=O(pe)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Jt=O.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Qt=O(ze)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Zt=O.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),en=O.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),tn=`url('data:image/svg+xml;charset=utf-8,')`,be=r=>{var o=r,{value:e,style:t}=o,n=ce(o,["value","style"]);let a=`linear-gradient(${e}, ${e}), ${tn}, linear-gradient(#fff, #fff)`;return h.createElement(en,B(q({},n),{style:B(q({},t),{backgroundImage:a})}))},nn=O(He.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),rn=O(Pe)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Re=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Re||{}),X=Object.values(Re),on=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,an=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,ln=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,ee=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,sn=/^\s*#?([0-9a-f]{3})\s*$/i,cn={hex:tt,rgb:lt,hsl:ot},D={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ve=e=>{let t=e==null?void 0:e.match(on);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},R=e=>{if(!e)return;let t=!0;if(an.test(e)){let[l,s,i,c]=ve(e),[d,f,g]=E.rgb.hsl([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:E.rgb.keyword([l,s,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${E.rgb.hex([l,s,i]).toLowerCase()}`}}if(ln.test(e)){let[l,s,i,c]=ve(e),[d,f,g]=E.hsl.rgb([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:E.hsl.keyword([l,s,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${E.hsl.hex([l,s,i]).toLowerCase()}`}}let n=e.replace("#",""),r=E.keyword.rgb(n)||E.hex.rgb(n),o=E.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:ee.test(e)&&(a=`#${n}`),a.startsWith("#"))t=ee.test(a);else try{E.keyword.hex(a)}catch(l){t=!1}return{valid:t,value:a,keyword:E.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},un=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return D[n];if(n!=="hex")return(t==null?void 0:t[n])||D[n];if(!t.hex.startsWith("#"))try{return`#${E.keyword.hex(t.hex)}`}catch(s){return D.hex}let r=t.hex.match(sn);if(!r)return ee.test(t.hex)?t.hex:D.hex;let[o,a,l]=r[1].split("");return`#${o}${o}${a}${a}${l}${l}`},fn=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>R(n)),[l,s]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=R(f);r(f),a(g),s((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=m.useMemo(()=>un(n,o,l).toLowerCase(),[n,o,l]),c=m.useCallback(f=>{let g=R(f),w=(g==null?void 0:g.value)||f||"";r(w),w===""&&(a(void 0),t(void 0)),g&&(a(g),s(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=X.indexOf(l)+1;f>=X.length&&(f=0),s(X[f]);let g=(o==null?void 0:o[X[f]])||"";r(g),t(g)},[o,l,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:l,cycleColorSpace:d}},A=e=>e.replace(/\s*/,"").toLowerCase(),hn=(e,t,n)=>{let[r,o]=m.useState(t!=null&&t.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(s=>typeof s=="string"?R(s):s.title?B(q({},R(s.color)),{keyword:s.title}):R(s.color)).concat(r).filter(Boolean).slice(-27),[e,r]),l=m.useCallback(s=>{s!=null&&s.valid&&(a.some(i=>A(i[n])===A(s[n]))||o(i=>i.concat(s)))},[n,a]);return{presets:a,addPreset:l}},dn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:l=!1,argType:s})=>{var M;let i=m.useCallback(Gt(n,200),[n]),{value:c,realValue:d,updateValue:f,color:g,colorSpace:w,cycleColorSpace:T}=fn(t,i),{presets:C,addPreset:y}=hn(a,g,w),b=cn[w],k=!!((M=s==null?void 0:s.table)!=null&&M.readonly);return h.createElement(Ut,{"aria-readonly":k},h.createElement(Yt,{startOpen:l,trigger:k?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(g),tooltip:h.createElement(Jt,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),C.length>0&&h.createElement(Zt,null,C.map((_,N)=>h.createElement(pe,{key:`${_.value}-${N}`,hasChrome:!1,tooltip:h.createElement(Qt,{note:_.keyword||_.value})},h.createElement(be,{value:_[w],active:g&&A(_[w])===A(g[w]),onClick:()=>f(_.value)})))))},h.createElement(be,{value:d,style:{margin:4}})),h.createElement(nn,{id:Le(e),value:c,onChange:_=>f(_.target.value),onFocus:_=>_.target.select(),readOnly:k,placeholder:"Choose color..."}),c?h.createElement(rn,{onClick:T}):null)},$n=dn;export{dn as ColorControl,$n as default}; diff --git a/pr-preview/pr-419/assets/DocsRenderer-K4EAMTCU-DeNNJ93g.js b/pr-preview/pr-419/assets/DocsRenderer-K4EAMTCU-DJSJuGmH.js similarity index 93% rename from pr-preview/pr-419/assets/DocsRenderer-K4EAMTCU-DeNNJ93g.js rename to pr-preview/pr-419/assets/DocsRenderer-K4EAMTCU-DJSJuGmH.js index e2eae0f8a..30f33dd44 100644 --- a/pr-preview/pr-419/assets/DocsRenderer-K4EAMTCU-DeNNJ93g.js +++ b/pr-preview/pr-419/assets/DocsRenderer-K4EAMTCU-DJSJuGmH.js @@ -1,4 +1,4 @@ -var d=Object.defineProperty;var u=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var h=(t,r,e)=>r in t?d(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,i=(t,r)=>{for(var e in r||(r={}))x.call(r,e)&&h(t,e,r[e]);if(u)for(var e of u(r))_.call(r,e)&&h(t,e,r[e]);return t};var E=(t,r,e)=>new Promise((p,m)=>{var a=o=>{try{n(e.next(o))}catch(l){m(l)}},c=o=>{try{n(e.throw(o))}catch(l){m(l)}},n=o=>o.done?p(o.value):Promise.resolve(o.value).then(a,c);n((e=e.apply(t,r)).next())});import{_ as D}from"./iframe-CrQm7WUj.js";import{R as s,r as f}from"./index-Ca44TZ0D.js";import{r as C,u as v}from"./react-18-ay8dXnv6.js";import{C as M,A as R,H as g,D as w}from"./index-BdmlDa2_.js";import"../sb-preview/runtime.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./index-BObpwDOh.js";import"./_getPrototype-fDUIJvdn.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";var y=i({code:M,a:R},g),A=class extends f.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:r}=this.props;r(t)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:s.createElement(s.Fragment,null,r)}},G=class{constructor(){this.render=(t,r,e)=>E(this,null,function*(){let p=i(i({},y),r==null?void 0:r.components),m=w;return new Promise((a,c)=>{D(()=>import("./index-Bqh_nw6E.js"),__vite__mapDeps([0,1]),import.meta.url).then(({MDXProvider:n})=>C(s.createElement(A,{showException:c,key:Math.random()},s.createElement(n,{components:p},s.createElement(m,{context:t,docsParameter:r}))),e)).then(()=>a())})}),this.unmount=t=>{v(t)}}};export{G as DocsRenderer,y as defaultComponents}; +var d=Object.defineProperty;var u=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var h=(t,r,e)=>r in t?d(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,i=(t,r)=>{for(var e in r||(r={}))x.call(r,e)&&h(t,e,r[e]);if(u)for(var e of u(r))_.call(r,e)&&h(t,e,r[e]);return t};var E=(t,r,e)=>new Promise((p,m)=>{var a=o=>{try{n(e.next(o))}catch(l){m(l)}},c=o=>{try{n(e.throw(o))}catch(l){m(l)}},n=o=>o.done?p(o.value):Promise.resolve(o.value).then(a,c);n((e=e.apply(t,r)).next())});import{_ as D}from"./iframe-BNbdtpq9.js";import{R as s,r as f}from"./index-Ca44TZ0D.js";import{r as C,u as v}from"./react-18-ay8dXnv6.js";import{C as M,A as R,H as g,D as w}from"./index-XNuu3Woq.js";import"../sb-preview/runtime.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./index-BObpwDOh.js";import"./_getPrototype-fDUIJvdn.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";var y=i({code:M,a:R},g),A=class extends f.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:r}=this.props;r(t)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:s.createElement(s.Fragment,null,r)}},G=class{constructor(){this.render=(t,r,e)=>E(this,null,function*(){let p=i(i({},y),r==null?void 0:r.components),m=w;return new Promise((a,c)=>{D(()=>import("./index-Bqh_nw6E.js"),__vite__mapDeps([0,1]),import.meta.url).then(({MDXProvider:n})=>C(s.createElement(A,{showException:c,key:Math.random()},s.createElement(n,{components:p},s.createElement(m,{context:t,docsParameter:r}))),e)).then(()=>a())})}),this.unmount=t=>{v(t)}}};export{G as DocsRenderer,y as defaultComponents}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["./index-Bqh_nw6E.js","./index-Ca44TZ0D.js"] diff --git a/pr-preview/pr-419/assets/Documentation-BXVohtKQ.js b/pr-preview/pr-419/assets/Documentation-DxmKRIUH.js similarity index 95% rename from pr-preview/pr-419/assets/Documentation-BXVohtKQ.js rename to pr-preview/pr-419/assets/Documentation-DxmKRIUH.js index 3f4261ff0..035dee40b 100644 --- a/pr-preview/pr-419/assets/Documentation-BXVohtKQ.js +++ b/pr-preview/pr-419/assets/Documentation-DxmKRIUH.js @@ -1,4 +1,4 @@ -var d=Object.defineProperty,m=Object.defineProperties;var p=Object.getOwnPropertyDescriptors;var s=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var o=(r,e,n)=>e in r?d(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n,i=(r,e)=>{for(var n in e||(e={}))h.call(e,n)&&o(r,n,e[n]);if(s)for(var n of s(e))g.call(e,n)&&o(r,n,e[n]);return r},a=(r,e)=>m(r,p(e));import{j as t}from"./jsx-runtime-CS-_a2eV.js";import{useMDXComponents as c}from"./index-Bqh_nw6E.js";import{M as x,d as j}from"./index-BdmlDa2_.js";import{S as b,D as u}from"./SelectWithRangePicker.stories-CVdxb989.js";import"./index-Ca44TZ0D.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./index-BObpwDOh.js";import"./_getPrototype-fDUIJvdn.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";import"./dayjs.min-kn1EBQqj.js";import"./GlobalNavigation-Be6idjSk.js";import"./ConfigProvider-aHzMMMgW.js";import"./LightTheme-BZ07JyGW.js";import"./index-BxrKW6hI.js";import"./useToken-Dnjd_Rha.js";import"./Serializer-DsJDcYJc.js";import"./row-BOpWxek0.js";import"./customParseFormat-CECOPgIS.js";import"./index-C7MMNn6a.js";import"./index-TL6_15PV.js";function l(r){const e=i(i({a:"a",h1:"h1",h2:"h2",li:"li",p:"p",strong:"strong",ul:"ul"},c()),r.components);return t.jsxs(t.Fragment,{children:[t.jsx(x,{of:b}),` +var d=Object.defineProperty,m=Object.defineProperties;var p=Object.getOwnPropertyDescriptors;var s=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var o=(r,e,n)=>e in r?d(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n,i=(r,e)=>{for(var n in e||(e={}))h.call(e,n)&&o(r,n,e[n]);if(s)for(var n of s(e))g.call(e,n)&&o(r,n,e[n]);return r},a=(r,e)=>m(r,p(e));import{j as t}from"./jsx-runtime-CS-_a2eV.js";import{useMDXComponents as c}from"./index-Bqh_nw6E.js";import{M as x,d as j}from"./index-XNuu3Woq.js";import{S as b,D as u}from"./SelectWithRangePicker.stories-BQ0XV4nb.js";import"./index-Ca44TZ0D.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./index-BObpwDOh.js";import"./_getPrototype-fDUIJvdn.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";import"./dayjs.min-kn1EBQqj.js";import"./GlobalNavigation-Be6idjSk.js";import"./ConfigProvider-aHzMMMgW.js";import"./LightTheme-BZ07JyGW.js";import"./index-BxrKW6hI.js";import"./useToken-Dnjd_Rha.js";import"./Serializer-DsJDcYJc.js";import"./row-BOpWxek0.js";import"./customParseFormat-CECOPgIS.js";import"./index-C7MMNn6a.js";import"./index-TL6_15PV.js";function l(r){const e=i(i({a:"a",h1:"h1",h2:"h2",li:"li",p:"p",strong:"strong",ul:"ul"},c()),r.components);return t.jsxs(t.Fragment,{children:[t.jsx(x,{of:b}),` `,t.jsx(e.h1,{id:"date-range-filter",children:"Date Range Filter"}),` `,t.jsx(e.p,{children:t.jsx(e.strong,{children:"Overview"})}),` `,t.jsx(e.p,{children:`The Date Range Filter is used when a user needs to narrow down the dataset they are working with to a specific date diff --git a/pr-preview/pr-419/assets/SelectWithRangePicker.stories-BQ0XV4nb.js b/pr-preview/pr-419/assets/SelectWithRangePicker.stories-BQ0XV4nb.js new file mode 100644 index 000000000..34d51e521 --- /dev/null +++ b/pr-preview/pr-419/assets/SelectWithRangePicker.stories-BQ0XV4nb.js @@ -0,0 +1,30 @@ +var A=Object.defineProperty,L=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var f=(e,a,t)=>a in e?A(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,s=(e,a)=>{for(var t in a||(a={}))v.call(a,t)&&f(e,t,a[t]);if(u)for(var t of u(a))R.call(a,t)&&f(e,t,a[t]);return e},m=(e,a)=>L(e,b(a));var x=(e,a)=>{var t={};for(var n in e)v.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&u)for(var n of u(e))a.indexOf(n)<0&&R.call(e,n)&&(t[n]=e[n]);return t};import{j as r}from"./jsx-runtime-CS-_a2eV.js";import{r as D}from"./index-Ca44TZ0D.js";import{d as w}from"./dayjs.min-kn1EBQqj.js";import{av as F,D as E,F as I,N as q,o as V}from"./GlobalNavigation-Be6idjSk.js";import"./ConfigProvider-aHzMMMgW.js";import"./_baseClone-BwI25-yt.js";import{f as N}from"./index-C7MMNn6a.js";const W={month:"short",day:"numeric",year:"numeric"},O=({start:e,end:a,formatOptions:t=W})=>r.jsx(r.Fragment,{children:new Intl.DateTimeFormat("en-US",s({},t)).formatRange(e,a)});O.__docgenInfo={description:"",methods:[],displayName:"DateRangeString",props:{start:{required:!0,tsType:{name:"Date"},description:""},end:{required:!0,tsType:{name:"Date"},description:""},formatOptions:{required:!1,tsType:{name:"Intl.DateTimeFormatOptions"},description:"",defaultValue:{value:`{ + month: 'short', + day: 'numeric', + year: 'numeric', +}`,computed:!1}}}};const U=r.jsx(V.Text,{children:"Custom date range"}),g=z=>{var y=z,{value:e,rangePickerProps:a={},rangePickerLabel:t=U,formatOptions:n}=y,o=x(y,["value","rangePickerProps","rangePickerLabel","formatOptions"]);const[j,C]=D.useState(void 0);return r.jsx(F,s({value:e,open:j,labelRender:({label:p})=>Array.isArray(e)?r.jsx(O,{formatOptions:n,start:new Date(e[0]),end:new Date(e[1])}):p,dropdownStyle:{minWidth:300},dropdownRender:p=>r.jsxs(r.Fragment,{children:[p,r.jsx(E,{style:{margin:"8px 0"}}),r.jsx("div",{style:{padding:"0 16px 8px"},children:r.jsxs(I,{vertical:!0,gap:10,children:[t,r.jsx(q.RangePicker,s({value:D.useMemo(()=>Array.isArray(e)?e.map(w):void 0,[e]),onOpenChange:l=>{var d;(d=a==null?void 0:a.onOpenChange)==null||d.call(a,l),C(l?!0:void 0)},onChange:l=>{var h;const d=l?l.map(c=>c==null?void 0:c.toDate().toISOString()):null;(h=o.onChange)==null||h.call(o,d,void 0)}},a))]})})]})},o))};g.__docgenInfo={description:"",methods:[],displayName:"SelectWithRangePicker",props:{value:{required:!0,tsType:{name:"union",raw:"ValueType | [string, string] | null",elements:[{name:"ValueType"},{name:"tuple",raw:"[string, string]",elements:[{name:"string"},{name:"string"}]},{name:"null"}]},description:""},rangePickerProps:{required:!1,tsType:{name:"Omit",elements:[{name:"RangePickerProps"},{name:"union",raw:"'value' | 'onChange'",elements:[{name:"literal",value:"'value'"},{name:"literal",value:"'onChange'"}]}],raw:"Omit"},description:"",defaultValue:{value:"{}",computed:!1}},rangePickerLabel:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:"",defaultValue:{value:"Custom date range",computed:!1}},formatOptions:{required:!1,tsType:{name:"IDateRangeStringProps['formatOptions']",raw:"IDateRangeStringProps['formatOptions']"},description:""}},composes:["Omit"]};const{useArgs:M}=__STORYBOOK_MODULE_PREVIEW_API__,B={title:"Candidate Components/Directory/Date Range Filter",component:g},i={args:{value:"last30days",onSelect:N(),options:[{value:"last24hours",label:"Last 24 hours"},{value:"last7days",label:"Last 7 days"},{value:"last30days",label:"Last 30 days"}]},render:function(a){const[{value:t},n]=M();return r.jsx(g,m(s({},a),{value:t,onChange:o=>{n({value:o})}}))}};var S,T,_;i.parameters=m(s({},i.parameters),{docs:m(s({},(S=i.parameters)==null?void 0:S.docs),{source:s({originalSource:`{ + args: { + value: 'last30days', + onSelect: fn(), + options: [{ + value: 'last24hours', + label: 'Last 24 hours' + }, { + value: 'last7days', + label: 'Last 7 days' + }, { + value: 'last30days', + label: 'Last 30 days' + }] + }, + render: function Render(args) { + const [{ + value + }, updateArgs] = useArgs(); + return { + updateArgs({ + value + }); + }} />; + } +}`},(_=(T=i.parameters)==null?void 0:T.docs)==null?void 0:_.source)})});const K=["DateRangeFilter"],$=Object.freeze(Object.defineProperty({__proto__:null,DateRangeFilter:i,__namedExportsOrder:K,default:B},Symbol.toStringTag,{value:"Module"}));export{i as D,$ as S}; diff --git a/pr-preview/pr-419/assets/SelectWithRangePicker.stories-CVdxb989.js b/pr-preview/pr-419/assets/SelectWithRangePicker.stories-CVdxb989.js deleted file mode 100644 index 414992eba..000000000 --- a/pr-preview/pr-419/assets/SelectWithRangePicker.stories-CVdxb989.js +++ /dev/null @@ -1,30 +0,0 @@ -var A=Object.defineProperty,L=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var h=(e,a,t)=>a in e?A(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,s=(e,a)=>{for(var t in a||(a={}))f.call(a,t)&&h(e,t,a[t]);if(u)for(var t of u(a))v.call(a,t)&&h(e,t,a[t]);return e},m=(e,a)=>L(e,b(a));var R=(e,a)=>{var t={};for(var n in e)f.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&u)for(var n of u(e))a.indexOf(n)<0&&v.call(e,n)&&(t[n]=e[n]);return t};import{j as r}from"./jsx-runtime-CS-_a2eV.js";import{r as x}from"./index-Ca44TZ0D.js";import{d as w}from"./dayjs.min-kn1EBQqj.js";import{av as F,D as E,F as I,N as q,o as V}from"./GlobalNavigation-Be6idjSk.js";import"./ConfigProvider-aHzMMMgW.js";import"./_baseClone-BwI25-yt.js";import{f as N}from"./index-C7MMNn6a.js";const W={month:"short",day:"numeric",year:"numeric"},_=({start:e,end:a,formatOptions:t=W})=>r.jsx(r.Fragment,{children:new Intl.DateTimeFormat("en-US",s({},t)).formatRange(e,a)});_.__docgenInfo={description:"",methods:[],displayName:"DateRangeString",props:{start:{required:!0,tsType:{name:"Date"},description:""},end:{required:!0,tsType:{name:"Date"},description:""},formatOptions:{required:!1,tsType:{name:"Intl.DateTimeFormatOptions"},description:"",defaultValue:{value:`{ - month: 'short', - day: 'numeric', - year: 'numeric', -}`,computed:!1}}}};const U=r.jsx(V.Text,{children:"Custom date range"}),c=z=>{var g=z,{value:e,rangePickerProps:a={},rangePickerLabel:t=U,formatOptions:n}=g,o=R(g,["value","rangePickerProps","rangePickerLabel","formatOptions"]);const[O,j]=x.useState(void 0);return r.jsx(F,s({value:e,open:O,labelRender:({label:p})=>Array.isArray(e)?r.jsx(_,{formatOptions:n,start:new Date(e[0]),end:new Date(e[1])}):p,dropdownStyle:{minWidth:300},dropdownRender:p=>r.jsxs(r.Fragment,{children:[p,r.jsx(E,{style:{margin:"8px 0"}}),r.jsx("div",{style:{padding:"0 16px 8px"},children:r.jsxs(I,{vertical:!0,gap:10,children:[t,r.jsx(q.RangePicker,s({value:x.useMemo(()=>Array.isArray(e)?e.map(w):void 0,[e]),onOpenChange:l=>{var d;(d=a==null?void 0:a.onOpenChange)==null||d.call(a,l),j(l?!0:void 0)},onChange:l=>{var y;const d=l?l.map(C=>C.toDate().toISOString()):null;(y=o.onChange)==null||y.call(o,d,void 0)}},a))]})})]})},o))};c.__docgenInfo={description:"",methods:[],displayName:"SelectWithRangePicker",props:{value:{required:!0,tsType:{name:"union",raw:"ValueType | [string, string] | null",elements:[{name:"ValueType"},{name:"tuple",raw:"[string, string]",elements:[{name:"string"},{name:"string"}]},{name:"null"}]},description:""},rangePickerProps:{required:!1,tsType:{name:"Omit",elements:[{name:"RangePickerProps"},{name:"union",raw:"'value' | 'onChange'",elements:[{name:"literal",value:"'value'"},{name:"literal",value:"'onChange'"}]}],raw:"Omit"},description:"",defaultValue:{value:"{}",computed:!1}},rangePickerLabel:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:"",defaultValue:{value:"Custom date range",computed:!1}},formatOptions:{required:!1,tsType:{name:"IDateRangeStringProps['formatOptions']",raw:"IDateRangeStringProps['formatOptions']"},description:""}},composes:["Omit"]};const{useArgs:M}=__STORYBOOK_MODULE_PREVIEW_API__,B={title:"Candidate Components/Directory/Date Range Filter",component:c},i={args:{value:"last30days",onSelect:N(),options:[{value:"last24hours",label:"Last 24 hours"},{value:"last7days",label:"Last 7 days"},{value:"last30days",label:"Last 30 days"}]},render:function(a){const[{value:t},n]=M();return r.jsx(c,m(s({},a),{value:t,onChange:o=>{n({value:o})}}))}};var D,S,T;i.parameters=m(s({},i.parameters),{docs:m(s({},(D=i.parameters)==null?void 0:D.docs),{source:s({originalSource:`{ - args: { - value: 'last30days', - onSelect: fn(), - options: [{ - value: 'last24hours', - label: 'Last 24 hours' - }, { - value: 'last7days', - label: 'Last 7 days' - }, { - value: 'last30days', - label: 'Last 30 days' - }] - }, - render: function Render(args) { - const [{ - value - }, updateArgs] = useArgs(); - return { - updateArgs({ - value - }); - }} />; - } -}`},(T=(S=i.parameters)==null?void 0:S.docs)==null?void 0:T.source)})});const K=["DateRangeFilter"],$=Object.freeze(Object.defineProperty({__proto__:null,DateRangeFilter:i,__namedExportsOrder:K,default:B},Symbol.toStringTag,{value:"Module"}));export{i as D,$ as S}; diff --git a/pr-preview/pr-419/assets/Using existing ones-1ACZX-0W.js b/pr-preview/pr-419/assets/Using existing ones-DVOwGlbd.js similarity index 99% rename from pr-preview/pr-419/assets/Using existing ones-1ACZX-0W.js rename to pr-preview/pr-419/assets/Using existing ones-DVOwGlbd.js index 6a4e283df..e0345947e 100644 --- a/pr-preview/pr-419/assets/Using existing ones-1ACZX-0W.js +++ b/pr-preview/pr-419/assets/Using existing ones-DVOwGlbd.js @@ -1,4 +1,4 @@ -var qp=Object.defineProperty,Wp=Object.defineProperties;var Hp=Object.getOwnPropertyDescriptors;var ol=Object.getOwnPropertySymbols;var jp=Object.prototype.hasOwnProperty,Up=Object.prototype.propertyIsEnumerable;var Sr=Math.pow,wa=(t,e,r)=>e in t?qp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,D=(t,e)=>{for(var r in e||(e={}))jp.call(e,r)&&wa(t,r,e[r]);if(ol)for(var r of ol(e))Up.call(e,r)&&wa(t,r,e[r]);return t},rt=(t,e)=>Wp(t,Hp(e));var V=(t,e,r)=>(wa(t,typeof e!="symbol"?e+"":e,r),r),Yp=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var Ni=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)};var Lr=(t,e,r)=>(Yp(t,e,"access private method"),r);var L=(t,e,r)=>new Promise((i,n)=>{var a=l=>{try{o(r.next(l))}catch(c){n(c)}},s=l=>{try{o(r.throw(l))}catch(c){n(c)}},o=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,s);o((r=r.apply(t,e)).next())});import{j as nr}from"./jsx-runtime-CS-_a2eV.js";import{useMDXComponents as zc}from"./index-Bqh_nw6E.js";import{R as ll,r as tr}from"./index-Ca44TZ0D.js";import{_ as X}from"./iframe-CrQm7WUj.js";import{d as Gp}from"./dayjs.min-kn1EBQqj.js";import{d as qc}from"./index-DrFu-skq.js";import{s as Vp,a as Xp,c as Zp}from"./Serializer-DsJDcYJc.js";const Qi={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const n=r<.5?r*(1+e):r+e-r*e,a=2*r-n;switch(i){case"r":return Qi.hue2rgb(a,n,t+1/3)*255;case"g":return Qi.hue2rgb(a,n,t)*255;case"b":return Qi.hue2rgb(a,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;const n=Math.max(t,e,r),a=Math.min(t,e,r),s=(n+a)/2;if(i==="l")return s*100;if(n===a)return 0;const o=n-a,l=s>.5?o/(2-n-a):o/(n+a);if(i==="s")return l*100;switch(n){case t:return((e-r)/o+(ee>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Qp=Kp,Jp={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},tg=Jp,$={channel:Qi,lang:Qp,unit:tg},be={};for(let t=0;t<=255;t++)be[t]=$.unit.dec2hex(t);const yt={ALL:0,RGB:1,HSL:2};class eg{constructor(){this.type=yt.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=yt.ALL}is(e){return this.type===e}}class rg{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new eg}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=yt.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:i,l:n}=e;r===void 0&&(e.h=$.channel.rgb2hsl(e,"h")),i===void 0&&(e.s=$.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=$.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:i,b:n}=e;r===void 0&&(e.r=$.channel.hsl2rgb(e,"r")),i===void 0&&(e.g=$.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=$.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(yt.HSL)&&r!==void 0?r:(this._ensureHSL(),$.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(yt.HSL)&&r!==void 0?r:(this._ensureHSL(),$.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(yt.HSL)&&r!==void 0?r:(this._ensureHSL(),$.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(yt.RGB)&&r!==void 0?r:(this._ensureRGB(),$.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(yt.RGB)&&r!==void 0?r:(this._ensureRGB(),$.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(yt.RGB)&&r!==void 0?r:(this._ensureRGB(),$.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(yt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(yt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(yt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(yt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(yt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(yt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const ig=rg,Yn=new ig({r:0,g:0,b:0,a:0},"transparent"),sr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(sr.re);if(!e)return;const r=e[1],i=parseInt(r,16),n=r.length,a=n%4===0,s=n>4,o=s?1:17,l=s?8:4,c=a?0:-1,h=s?255:15;return Yn.set({r:(i>>l*(c+3)&h)*o,g:(i>>l*(c+2)&h)*o,b:(i>>l*(c+1)&h)*o,a:a?(i&h)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;return n<1?`#${be[Math.round(e)]}${be[Math.round(r)]}${be[Math.round(i)]}${be[Math.round(n*255)]}`:`#${be[Math.round(e)]}${be[Math.round(r)]}${be[Math.round(i)]}`}},Oe={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:t=>{const e=t.match(Oe.hueRe);if(e){const[,r,i]=e;switch(i){case"grad":return $.channel.clamp.h(parseFloat(r)*.9);case"rad":return $.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return $.channel.clamp.h(parseFloat(r)*360)}}return $.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(Oe.re);if(!r)return;const[,i,n,a,s,o]=r;return Yn.set({h:Oe._hue2deg(i),s:$.channel.clamp.s(parseFloat(n)),l:$.channel.clamp.l(parseFloat(a)),a:s?$.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:i,a:n}=t;return n<1?`hsla(${$.lang.round(e)}, ${$.lang.round(r)}%, ${$.lang.round(i)}%, ${n})`:`hsl(${$.lang.round(e)}, ${$.lang.round(r)}%, ${$.lang.round(i)}%)`}},Yr={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:t=>{t=t.toLowerCase();const e=Yr.colors[t];if(e)return sr.parse(e)},stringify:t=>{const e=sr.stringify(t);for(const r in Yr.colors)if(Yr.colors[r]===e)return r}},zr={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:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(zr.re);if(!r)return;const[,i,n,a,s,o,l,c,h]=r;return Yn.set({r:$.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:$.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:$.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:c?$.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;return n<1?`rgba(${$.lang.round(e)}, ${$.lang.round(r)}, ${$.lang.round(i)}, ${$.lang.round(n)})`:`rgb(${$.lang.round(e)}, ${$.lang.round(r)}, ${$.lang.round(i)})`}},re={format:{keyword:Yr,hex:sr,rgb:zr,rgba:zr,hsl:Oe,hsla:Oe},parse:t=>{if(typeof t!="string")return t;const e=sr.parse(t)||zr.parse(t)||Oe.parse(t)||Yr.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(yt.HSL)||t.data.r===void 0?Oe.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?zr.stringify(t):sr.stringify(t)},Wc=(t,e)=>{const r=re.parse(t);for(const i in e)r[i]=$.channel.clamp[i](e[i]);return re.stringify(r)},Gr=(t,e,r=0,i=1)=>{if(typeof t!="number")return Wc(t,{a:e});const n=Yn.set({r:$.channel.clamp.r(t),g:$.channel.clamp.g(e),b:$.channel.clamp.b(r),a:$.channel.clamp.a(i)});return re.stringify(n)},ng=t=>{const{r:e,g:r,b:i}=re.parse(t),n=.2126*$.channel.toLinear(e)+.7152*$.channel.toLinear(r)+.0722*$.channel.toLinear(i);return $.lang.round(n)},ag=t=>ng(t)>=.5,sg=ag,ki=t=>!sg(t),Hc=(t,e,r)=>{const i=re.parse(t),n=i[e],a=$.channel.clamp[e](n+r);return n!==a&&(i[e]=a),re.stringify(i)},M=(t,e)=>Hc(t,"l",e),O=(t,e)=>Hc(t,"l",-e),b=(t,e)=>{const r=re.parse(t),i={};for(const n in e)e[n]&&(i[n]=r[n]+e[n]);return Wc(t,i)},og=(t,e,r=50)=>{const{r:i,g:n,b:a,a:s}=re.parse(t),{r:o,g:l,b:c,a:h}=re.parse(e),d=r/100,u=d*2-1,p=s-h,m=((u*p===-1?u:(u+p)/(1+u*p))+1)/2,x=1-m,C=i*m+o*x,_=n*m+l*x,k=a*m+c*x,T=s*d+h*(1-d);return Gr(C,_,k,T)},S=(t,e=100)=>{const r=re.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,og(r,t,e)};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:jc,setPrototypeOf:cl,isFrozen:lg,getPrototypeOf:cg,getOwnPropertyDescriptor:hg}=Object;let{freeze:Bt,seal:Wt,create:Uc}=Object,{apply:ja,construct:Ua}=typeof Reflect!="undefined"&&Reflect;Bt||(Bt=function(e){return e});Wt||(Wt=function(e){return e});ja||(ja=function(e,r,i){return e.apply(r,i)});Ua||(Ua=function(e,r){return new e(...r)});const zi=Pt(Array.prototype.forEach),hl=Pt(Array.prototype.pop),Ar=Pt(Array.prototype.push),Ji=Pt(String.prototype.toLowerCase),Ta=Pt(String.prototype.toString),ul=Pt(String.prototype.match),Br=Pt(String.prototype.replace),ug=Pt(String.prototype.indexOf),fg=Pt(String.prototype.trim),Ut=Pt(Object.prototype.hasOwnProperty),St=Pt(RegExp.prototype.test),Er=dg(TypeError);function Pt(t){return function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n2&&arguments[2]!==void 0?arguments[2]:Ji;cl&&cl(t,null);let i=e.length;for(;i--;){let n=e[i];if(typeof n=="string"){const a=r(n);a!==n&&(lg(e)||(e[i]=a),n=a)}t[n]=!0}return t}function pg(t){for(let e=0;e/gm),bg=Wt(/\${[\w\W]*}/gm),_g=Wt(/^data-[\-\w.\u00B7-\uFFFF]/),Cg=Wt(/^aria-[\-\w]+$/),Yc=Wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kg=Wt(/^(?:\w+script|data):/i),vg=Wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gc=Wt(/^html$/i),wg=Wt(/^[a-z][.\w]*(-[.\w]+)+$/i);var ml=Object.freeze({__proto__:null,MUSTACHE_EXPR:yg,ERB_EXPR:xg,TMPLIT_EXPR:bg,DATA_ATTR:_g,ARIA_ATTR:Cg,IS_ALLOWED_URI:Yc,IS_SCRIPT_OR_DATA:kg,ATTR_WHITESPACE:vg,DOCTYPE_NAME:Gc,CUSTOM_ELEMENT:wg});const Mr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Tg=function(){return typeof window=="undefined"?null:window},Sg=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const a="dompurify"+(i?"#"+i:"");try{return e.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch(s){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function Vc(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tg();const e=F=>Vc(F);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==Mr.document)return e.isSupported=!1,e;let{document:r}=t;const i=r,n=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:c,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:u,trustedTypes:p}=t,g=l.prototype,m=Fr(g,"cloneNode"),x=Fr(g,"remove"),C=Fr(g,"nextSibling"),_=Fr(g,"childNodes"),k=Fr(g,"parentNode");if(typeof s=="function"){const F=r.createElement("template");F.content&&F.content.ownerDocument&&(r=F.content.ownerDocument)}let T,A="";const{implementation:R,createNodeIterator:P,createDocumentFragment:q,getElementsByTagName:U}=r,{importNode:W}=i;let N={};e.isSupported=typeof jc=="function"&&typeof k=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ut,ERB_EXPR:tt,TMPLIT_EXPR:Z,DATA_ATTR:vt,ARIA_ATTR:Ht,IS_SCRIPT_OR_DATA:jt,ATTR_WHITESPACE:Se,CUSTOM_ELEMENT:wt}=ml;let{IS_ALLOWED_URI:se}=ml,ot=null;const $o=z({},[...fl,...Sa,...La,...Aa,...dl]);let lt=null;const Ro=z({},[...pl,...Ba,...gl,...qi]);let et=Object.seal(Uc(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}})),kr=null,pa=null,Do=!0,ga=!0,Po=!1,No=!0,Ve=!1,ma=!0,Le=!1,ya=!1,xa=!1,Xe=!1,Ii=!1,$i=!1,zo=!0,qo=!1;const Op="user-content-";let ba=!0,vr=!1,Ze={},Ke=null;const Wo=z({},["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"]);let Ho=null;const jo=z({},["audio","video","img","source","image","track"]);let _a=null;const Uo=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ri="http://www.w3.org/1998/Math/MathML",Di="http://www.w3.org/2000/svg",oe="http://www.w3.org/1999/xhtml";let Qe=oe,Ca=!1,ka=null;const Ip=z({},[Ri,Di,oe],Ta);let wr=null;const $p=["application/xhtml+xml","text/html"],Rp="text/html";let ct=null,Je=null;const Dp=r.createElement("form"),Yo=function(y){return y instanceof RegExp||y instanceof Function},va=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Je&&Je===y)){if((!y||typeof y!="object")&&(y={}),y=Be(y),wr=$p.indexOf(y.PARSER_MEDIA_TYPE)===-1?Rp:y.PARSER_MEDIA_TYPE,ct=wr==="application/xhtml+xml"?Ta:Ji,ot=Ut(y,"ALLOWED_TAGS")?z({},y.ALLOWED_TAGS,ct):$o,lt=Ut(y,"ALLOWED_ATTR")?z({},y.ALLOWED_ATTR,ct):Ro,ka=Ut(y,"ALLOWED_NAMESPACES")?z({},y.ALLOWED_NAMESPACES,Ta):Ip,_a=Ut(y,"ADD_URI_SAFE_ATTR")?z(Be(Uo),y.ADD_URI_SAFE_ATTR,ct):Uo,Ho=Ut(y,"ADD_DATA_URI_TAGS")?z(Be(jo),y.ADD_DATA_URI_TAGS,ct):jo,Ke=Ut(y,"FORBID_CONTENTS")?z({},y.FORBID_CONTENTS,ct):Wo,kr=Ut(y,"FORBID_TAGS")?z({},y.FORBID_TAGS,ct):{},pa=Ut(y,"FORBID_ATTR")?z({},y.FORBID_ATTR,ct):{},Ze=Ut(y,"USE_PROFILES")?y.USE_PROFILES:!1,Do=y.ALLOW_ARIA_ATTR!==!1,ga=y.ALLOW_DATA_ATTR!==!1,Po=y.ALLOW_UNKNOWN_PROTOCOLS||!1,No=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ve=y.SAFE_FOR_TEMPLATES||!1,ma=y.SAFE_FOR_XML!==!1,Le=y.WHOLE_DOCUMENT||!1,Xe=y.RETURN_DOM||!1,Ii=y.RETURN_DOM_FRAGMENT||!1,$i=y.RETURN_TRUSTED_TYPE||!1,xa=y.FORCE_BODY||!1,zo=y.SANITIZE_DOM!==!1,qo=y.SANITIZE_NAMED_PROPS||!1,ba=y.KEEP_CONTENT!==!1,vr=y.IN_PLACE||!1,se=y.ALLOWED_URI_REGEXP||Yc,Qe=y.NAMESPACE||oe,et=y.CUSTOM_ELEMENT_HANDLING||{},y.CUSTOM_ELEMENT_HANDLING&&Yo(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(et.tagNameCheck=y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),y.CUSTOM_ELEMENT_HANDLING&&Yo(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(et.attributeNameCheck=y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(et.allowCustomizedBuiltInElements=y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ve&&(ga=!1),Ii&&(Xe=!0),Ze&&(ot=z({},dl),lt=[],Ze.html===!0&&(z(ot,fl),z(lt,pl)),Ze.svg===!0&&(z(ot,Sa),z(lt,Ba),z(lt,qi)),Ze.svgFilters===!0&&(z(ot,La),z(lt,Ba),z(lt,qi)),Ze.mathMl===!0&&(z(ot,Aa),z(lt,gl),z(lt,qi))),y.ADD_TAGS&&(ot===$o&&(ot=Be(ot)),z(ot,y.ADD_TAGS,ct)),y.ADD_ATTR&&(lt===Ro&&(lt=Be(lt)),z(lt,y.ADD_ATTR,ct)),y.ADD_URI_SAFE_ATTR&&z(_a,y.ADD_URI_SAFE_ATTR,ct),y.FORBID_CONTENTS&&(Ke===Wo&&(Ke=Be(Ke)),z(Ke,y.FORBID_CONTENTS,ct)),ba&&(ot["#text"]=!0),Le&&z(ot,["html","head","body"]),ot.table&&(z(ot,["tbody"]),delete kr.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw Er('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Er('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=y.TRUSTED_TYPES_POLICY,A=T.createHTML("")}else T===void 0&&(T=Sg(p,n)),T!==null&&typeof A=="string"&&(A=T.createHTML(""));Bt&&Bt(y),Je=y}},Go=z({},["mi","mo","mn","ms","mtext"]),Vo=z({},["foreignobject","annotation-xml"]),Pp=z({},["title","style","font","a","script"]),Xo=z({},[...Sa,...La,...gg]),Zo=z({},[...Aa,...mg]),Np=function(y){let w=k(y);(!w||!w.tagName)&&(w={namespaceURI:Qe,tagName:"template"});const B=Ji(y.tagName),G=Ji(w.tagName);return ka[y.namespaceURI]?y.namespaceURI===Di?w.namespaceURI===oe?B==="svg":w.namespaceURI===Ri?B==="svg"&&(G==="annotation-xml"||Go[G]):!!Xo[B]:y.namespaceURI===Ri?w.namespaceURI===oe?B==="math":w.namespaceURI===Di?B==="math"&&Vo[G]:!!Zo[B]:y.namespaceURI===oe?w.namespaceURI===Di&&!Vo[G]||w.namespaceURI===Ri&&!Go[G]?!1:!Zo[B]&&(Pp[B]||!Xo[B]):!!(wr==="application/xhtml+xml"&&ka[y.namespaceURI]):!1},Zt=function(y){Ar(e.removed,{element:y});try{k(y).removeChild(y)}catch(w){x(y)}},Pi=function(y,w){try{Ar(e.removed,{attribute:w.getAttributeNode(y),from:w})}catch(B){Ar(e.removed,{attribute:null,from:w})}if(w.removeAttribute(y),y==="is"&&!lt[y])if(Xe||Ii)try{Zt(w)}catch(B){}else try{w.setAttribute(y,"")}catch(B){}},Ko=function(y){let w=null,B=null;if(xa)y=""+y;else{const ft=ul(y,/^[\r\n\t ]+/);B=ft&&ft[0]}wr==="application/xhtml+xml"&&Qe===oe&&(y=''+y+"");const G=T?T.createHTML(y):y;if(Qe===oe)try{w=new u().parseFromString(G,wr)}catch(ft){}if(!w||!w.documentElement){w=R.createDocument(Qe,"template",null);try{w.documentElement.innerHTML=Ca?A:G}catch(ft){}}const mt=w.body||w.documentElement;return y&&B&&mt.insertBefore(r.createTextNode(B),mt.childNodes[0]||null),Qe===oe?U.call(w,Le?"html":"body")[0]:Le?w.documentElement:mt},Qo=function(y){return P.call(y.ownerDocument||y,y,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Jo=function(y){return y instanceof d&&(typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||!(y.attributes instanceof h)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function")},tl=function(y){return typeof o=="function"&&y instanceof o},le=function(y,w,B){N[y]&&zi(N[y],G=>{G.call(e,w,B,Je)})},el=function(y){let w=null;if(le("beforeSanitizeElements",y,null),Jo(y))return Zt(y),!0;const B=ct(y.nodeName);if(le("uponSanitizeElement",y,{tagName:B,allowedTags:ot}),y.hasChildNodes()&&!tl(y.firstElementChild)&&St(/<[/\w]/g,y.innerHTML)&&St(/<[/\w]/g,y.textContent)||y.nodeType===Mr.progressingInstruction||ma&&y.nodeType===Mr.comment&&St(/<[/\w]/g,y.data))return Zt(y),!0;if(!ot[B]||kr[B]){if(!kr[B]&&il(B)&&(et.tagNameCheck instanceof RegExp&&St(et.tagNameCheck,B)||et.tagNameCheck instanceof Function&&et.tagNameCheck(B)))return!1;if(ba&&!Ke[B]){const G=k(y)||y.parentNode,mt=_(y)||y.childNodes;if(mt&&G){const ft=mt.length;for(let Et=ft-1;Et>=0;--Et){const Kt=m(mt[Et],!0);Kt.__removalCount=(y.__removalCount||0)+1,G.insertBefore(Kt,C(y))}}}return Zt(y),!0}return y instanceof l&&!Np(y)||(B==="noscript"||B==="noembed"||B==="noframes")&&St(/<\/no(script|embed|frames)/i,y.innerHTML)?(Zt(y),!0):(Ve&&y.nodeType===Mr.text&&(w=y.textContent,zi([ut,tt,Z],G=>{w=Br(w,G," ")}),y.textContent!==w&&(Ar(e.removed,{element:y.cloneNode()}),y.textContent=w)),le("afterSanitizeElements",y,null),!1)},rl=function(y,w,B){if(zo&&(w==="id"||w==="name")&&(B in r||B in Dp))return!1;if(!(ga&&!pa[w]&&St(vt,w))){if(!(Do&&St(Ht,w))){if(!lt[w]||pa[w]){if(!(il(y)&&(et.tagNameCheck instanceof RegExp&&St(et.tagNameCheck,y)||et.tagNameCheck instanceof Function&&et.tagNameCheck(y))&&(et.attributeNameCheck instanceof RegExp&&St(et.attributeNameCheck,w)||et.attributeNameCheck instanceof Function&&et.attributeNameCheck(w))||w==="is"&&et.allowCustomizedBuiltInElements&&(et.tagNameCheck instanceof RegExp&&St(et.tagNameCheck,B)||et.tagNameCheck instanceof Function&&et.tagNameCheck(B))))return!1}else if(!_a[w]){if(!St(se,Br(B,Se,""))){if(!((w==="src"||w==="xlink:href"||w==="href")&&y!=="script"&&ug(B,"data:")===0&&Ho[y])){if(!(Po&&!St(jt,Br(B,Se,"")))){if(B)return!1}}}}}}return!0},il=function(y){return y!=="annotation-xml"&&ul(y,wt)},nl=function(y){le("beforeSanitizeAttributes",y,null);const{attributes:w}=y;if(!w)return;const B={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:lt};let G=w.length;for(;G--;){const mt=w[G],{name:ft,namespaceURI:Et,value:Kt}=mt,Tr=ct(ft);let Tt=ft==="value"?Kt:fg(Kt);if(B.attrName=Tr,B.attrValue=Tt,B.keepAttr=!0,B.forceKeepAttr=void 0,le("uponSanitizeAttribute",y,B),Tt=B.attrValue,ma&&St(/((--!?|])>)|<\/(style|title)/i,Tt)){Pi(ft,y);continue}if(B.forceKeepAttr||(Pi(ft,y),!B.keepAttr))continue;if(!No&&St(/\/>/i,Tt)){Pi(ft,y);continue}Ve&&zi([ut,tt,Z],sl=>{Tt=Br(Tt,sl," ")});const al=ct(y.nodeName);if(rl(al,Tr,Tt)){if(qo&&(Tr==="id"||Tr==="name")&&(Pi(ft,y),Tt=Op+Tt),T&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Et)switch(p.getAttributeType(al,Tr)){case"TrustedHTML":{Tt=T.createHTML(Tt);break}case"TrustedScriptURL":{Tt=T.createScriptURL(Tt);break}}try{Et?y.setAttributeNS(Et,ft,Tt):y.setAttribute(ft,Tt),Jo(y)?Zt(y):hl(e.removed)}catch(sl){}}}le("afterSanitizeAttributes",y,null)},zp=function F(y){let w=null;const B=Qo(y);for(le("beforeSanitizeShadowDOM",y,null);w=B.nextNode();)le("uponSanitizeShadowNode",w,null),!el(w)&&(w.content instanceof a&&F(w.content),nl(w));le("afterSanitizeShadowDOM",y,null)};return e.sanitize=function(F){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=null,B=null,G=null,mt=null;if(Ca=!F,Ca&&(F=""),typeof F!="string"&&!tl(F))if(typeof F.toString=="function"){if(F=F.toString(),typeof F!="string")throw Er("dirty is not a string, aborting")}else throw Er("toString is not a function");if(!e.isSupported)return F;if(ya||va(y),e.removed=[],typeof F=="string"&&(vr=!1),vr){if(F.nodeName){const Kt=ct(F.nodeName);if(!ot[Kt]||kr[Kt])throw Er("root node is forbidden and cannot be sanitized in-place")}}else if(F instanceof o)w=Ko(""),B=w.ownerDocument.importNode(F,!0),B.nodeType===Mr.element&&B.nodeName==="BODY"||B.nodeName==="HTML"?w=B:w.appendChild(B);else{if(!Xe&&!Ve&&!Le&&F.indexOf("<")===-1)return T&&$i?T.createHTML(F):F;if(w=Ko(F),!w)return Xe?null:$i?A:""}w&&xa&&Zt(w.firstChild);const ft=Qo(vr?F:w);for(;G=ft.nextNode();)el(G)||(G.content instanceof a&&zp(G.content),nl(G));if(vr)return F;if(Xe){if(Ii)for(mt=q.call(w.ownerDocument);w.firstChild;)mt.appendChild(w.firstChild);else mt=w;return(lt.shadowroot||lt.shadowrootmode)&&(mt=W.call(i,mt,!0)),mt}let Et=Le?w.outerHTML:w.innerHTML;return Le&&ot["!doctype"]&&w.ownerDocument&&w.ownerDocument.doctype&&w.ownerDocument.doctype.name&&St(Gc,w.ownerDocument.doctype.name)&&(Et=" +var qp=Object.defineProperty,Wp=Object.defineProperties;var Hp=Object.getOwnPropertyDescriptors;var ol=Object.getOwnPropertySymbols;var jp=Object.prototype.hasOwnProperty,Up=Object.prototype.propertyIsEnumerable;var Sr=Math.pow,wa=(t,e,r)=>e in t?qp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,D=(t,e)=>{for(var r in e||(e={}))jp.call(e,r)&&wa(t,r,e[r]);if(ol)for(var r of ol(e))Up.call(e,r)&&wa(t,r,e[r]);return t},rt=(t,e)=>Wp(t,Hp(e));var V=(t,e,r)=>(wa(t,typeof e!="symbol"?e+"":e,r),r),Yp=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var Ni=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)};var Lr=(t,e,r)=>(Yp(t,e,"access private method"),r);var L=(t,e,r)=>new Promise((i,n)=>{var a=l=>{try{o(r.next(l))}catch(c){n(c)}},s=l=>{try{o(r.throw(l))}catch(c){n(c)}},o=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,s);o((r=r.apply(t,e)).next())});import{j as nr}from"./jsx-runtime-CS-_a2eV.js";import{useMDXComponents as zc}from"./index-Bqh_nw6E.js";import{R as ll,r as tr}from"./index-Ca44TZ0D.js";import{_ as X}from"./iframe-BNbdtpq9.js";import{d as Gp}from"./dayjs.min-kn1EBQqj.js";import{d as qc}from"./index-DrFu-skq.js";import{s as Vp,a as Xp,c as Zp}from"./Serializer-DsJDcYJc.js";const Qi={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const n=r<.5?r*(1+e):r+e-r*e,a=2*r-n;switch(i){case"r":return Qi.hue2rgb(a,n,t+1/3)*255;case"g":return Qi.hue2rgb(a,n,t)*255;case"b":return Qi.hue2rgb(a,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;const n=Math.max(t,e,r),a=Math.min(t,e,r),s=(n+a)/2;if(i==="l")return s*100;if(n===a)return 0;const o=n-a,l=s>.5?o/(2-n-a):o/(n+a);if(i==="s")return l*100;switch(n){case t:return((e-r)/o+(ee>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Qp=Kp,Jp={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},tg=Jp,$={channel:Qi,lang:Qp,unit:tg},be={};for(let t=0;t<=255;t++)be[t]=$.unit.dec2hex(t);const yt={ALL:0,RGB:1,HSL:2};class eg{constructor(){this.type=yt.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=yt.ALL}is(e){return this.type===e}}class rg{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new eg}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=yt.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:i,l:n}=e;r===void 0&&(e.h=$.channel.rgb2hsl(e,"h")),i===void 0&&(e.s=$.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=$.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:i,b:n}=e;r===void 0&&(e.r=$.channel.hsl2rgb(e,"r")),i===void 0&&(e.g=$.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=$.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(yt.HSL)&&r!==void 0?r:(this._ensureHSL(),$.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(yt.HSL)&&r!==void 0?r:(this._ensureHSL(),$.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(yt.HSL)&&r!==void 0?r:(this._ensureHSL(),$.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(yt.RGB)&&r!==void 0?r:(this._ensureRGB(),$.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(yt.RGB)&&r!==void 0?r:(this._ensureRGB(),$.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(yt.RGB)&&r!==void 0?r:(this._ensureRGB(),$.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(yt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(yt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(yt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(yt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(yt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(yt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const ig=rg,Yn=new ig({r:0,g:0,b:0,a:0},"transparent"),sr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(sr.re);if(!e)return;const r=e[1],i=parseInt(r,16),n=r.length,a=n%4===0,s=n>4,o=s?1:17,l=s?8:4,c=a?0:-1,h=s?255:15;return Yn.set({r:(i>>l*(c+3)&h)*o,g:(i>>l*(c+2)&h)*o,b:(i>>l*(c+1)&h)*o,a:a?(i&h)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;return n<1?`#${be[Math.round(e)]}${be[Math.round(r)]}${be[Math.round(i)]}${be[Math.round(n*255)]}`:`#${be[Math.round(e)]}${be[Math.round(r)]}${be[Math.round(i)]}`}},Oe={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:t=>{const e=t.match(Oe.hueRe);if(e){const[,r,i]=e;switch(i){case"grad":return $.channel.clamp.h(parseFloat(r)*.9);case"rad":return $.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return $.channel.clamp.h(parseFloat(r)*360)}}return $.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(Oe.re);if(!r)return;const[,i,n,a,s,o]=r;return Yn.set({h:Oe._hue2deg(i),s:$.channel.clamp.s(parseFloat(n)),l:$.channel.clamp.l(parseFloat(a)),a:s?$.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:i,a:n}=t;return n<1?`hsla(${$.lang.round(e)}, ${$.lang.round(r)}%, ${$.lang.round(i)}%, ${n})`:`hsl(${$.lang.round(e)}, ${$.lang.round(r)}%, ${$.lang.round(i)}%)`}},Yr={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:t=>{t=t.toLowerCase();const e=Yr.colors[t];if(e)return sr.parse(e)},stringify:t=>{const e=sr.stringify(t);for(const r in Yr.colors)if(Yr.colors[r]===e)return r}},zr={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:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(zr.re);if(!r)return;const[,i,n,a,s,o,l,c,h]=r;return Yn.set({r:$.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:$.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:$.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:c?$.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;return n<1?`rgba(${$.lang.round(e)}, ${$.lang.round(r)}, ${$.lang.round(i)}, ${$.lang.round(n)})`:`rgb(${$.lang.round(e)}, ${$.lang.round(r)}, ${$.lang.round(i)})`}},re={format:{keyword:Yr,hex:sr,rgb:zr,rgba:zr,hsl:Oe,hsla:Oe},parse:t=>{if(typeof t!="string")return t;const e=sr.parse(t)||zr.parse(t)||Oe.parse(t)||Yr.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(yt.HSL)||t.data.r===void 0?Oe.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?zr.stringify(t):sr.stringify(t)},Wc=(t,e)=>{const r=re.parse(t);for(const i in e)r[i]=$.channel.clamp[i](e[i]);return re.stringify(r)},Gr=(t,e,r=0,i=1)=>{if(typeof t!="number")return Wc(t,{a:e});const n=Yn.set({r:$.channel.clamp.r(t),g:$.channel.clamp.g(e),b:$.channel.clamp.b(r),a:$.channel.clamp.a(i)});return re.stringify(n)},ng=t=>{const{r:e,g:r,b:i}=re.parse(t),n=.2126*$.channel.toLinear(e)+.7152*$.channel.toLinear(r)+.0722*$.channel.toLinear(i);return $.lang.round(n)},ag=t=>ng(t)>=.5,sg=ag,ki=t=>!sg(t),Hc=(t,e,r)=>{const i=re.parse(t),n=i[e],a=$.channel.clamp[e](n+r);return n!==a&&(i[e]=a),re.stringify(i)},M=(t,e)=>Hc(t,"l",e),O=(t,e)=>Hc(t,"l",-e),b=(t,e)=>{const r=re.parse(t),i={};for(const n in e)e[n]&&(i[n]=r[n]+e[n]);return Wc(t,i)},og=(t,e,r=50)=>{const{r:i,g:n,b:a,a:s}=re.parse(t),{r:o,g:l,b:c,a:h}=re.parse(e),d=r/100,u=d*2-1,p=s-h,m=((u*p===-1?u:(u+p)/(1+u*p))+1)/2,x=1-m,C=i*m+o*x,_=n*m+l*x,k=a*m+c*x,T=s*d+h*(1-d);return Gr(C,_,k,T)},S=(t,e=100)=>{const r=re.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,og(r,t,e)};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:jc,setPrototypeOf:cl,isFrozen:lg,getPrototypeOf:cg,getOwnPropertyDescriptor:hg}=Object;let{freeze:Bt,seal:Wt,create:Uc}=Object,{apply:ja,construct:Ua}=typeof Reflect!="undefined"&&Reflect;Bt||(Bt=function(e){return e});Wt||(Wt=function(e){return e});ja||(ja=function(e,r,i){return e.apply(r,i)});Ua||(Ua=function(e,r){return new e(...r)});const zi=Pt(Array.prototype.forEach),hl=Pt(Array.prototype.pop),Ar=Pt(Array.prototype.push),Ji=Pt(String.prototype.toLowerCase),Ta=Pt(String.prototype.toString),ul=Pt(String.prototype.match),Br=Pt(String.prototype.replace),ug=Pt(String.prototype.indexOf),fg=Pt(String.prototype.trim),Ut=Pt(Object.prototype.hasOwnProperty),St=Pt(RegExp.prototype.test),Er=dg(TypeError);function Pt(t){return function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n2&&arguments[2]!==void 0?arguments[2]:Ji;cl&&cl(t,null);let i=e.length;for(;i--;){let n=e[i];if(typeof n=="string"){const a=r(n);a!==n&&(lg(e)||(e[i]=a),n=a)}t[n]=!0}return t}function pg(t){for(let e=0;e/gm),bg=Wt(/\${[\w\W]*}/gm),_g=Wt(/^data-[\-\w.\u00B7-\uFFFF]/),Cg=Wt(/^aria-[\-\w]+$/),Yc=Wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kg=Wt(/^(?:\w+script|data):/i),vg=Wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gc=Wt(/^html$/i),wg=Wt(/^[a-z][.\w]*(-[.\w]+)+$/i);var ml=Object.freeze({__proto__:null,MUSTACHE_EXPR:yg,ERB_EXPR:xg,TMPLIT_EXPR:bg,DATA_ATTR:_g,ARIA_ATTR:Cg,IS_ALLOWED_URI:Yc,IS_SCRIPT_OR_DATA:kg,ATTR_WHITESPACE:vg,DOCTYPE_NAME:Gc,CUSTOM_ELEMENT:wg});const Mr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Tg=function(){return typeof window=="undefined"?null:window},Sg=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const a="dompurify"+(i?"#"+i:"");try{return e.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch(s){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function Vc(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tg();const e=F=>Vc(F);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==Mr.document)return e.isSupported=!1,e;let{document:r}=t;const i=r,n=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:c,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:u,trustedTypes:p}=t,g=l.prototype,m=Fr(g,"cloneNode"),x=Fr(g,"remove"),C=Fr(g,"nextSibling"),_=Fr(g,"childNodes"),k=Fr(g,"parentNode");if(typeof s=="function"){const F=r.createElement("template");F.content&&F.content.ownerDocument&&(r=F.content.ownerDocument)}let T,A="";const{implementation:R,createNodeIterator:P,createDocumentFragment:q,getElementsByTagName:U}=r,{importNode:W}=i;let N={};e.isSupported=typeof jc=="function"&&typeof k=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ut,ERB_EXPR:tt,TMPLIT_EXPR:Z,DATA_ATTR:vt,ARIA_ATTR:Ht,IS_SCRIPT_OR_DATA:jt,ATTR_WHITESPACE:Se,CUSTOM_ELEMENT:wt}=ml;let{IS_ALLOWED_URI:se}=ml,ot=null;const $o=z({},[...fl,...Sa,...La,...Aa,...dl]);let lt=null;const Ro=z({},[...pl,...Ba,...gl,...qi]);let et=Object.seal(Uc(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}})),kr=null,pa=null,Do=!0,ga=!0,Po=!1,No=!0,Ve=!1,ma=!0,Le=!1,ya=!1,xa=!1,Xe=!1,Ii=!1,$i=!1,zo=!0,qo=!1;const Op="user-content-";let ba=!0,vr=!1,Ze={},Ke=null;const Wo=z({},["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"]);let Ho=null;const jo=z({},["audio","video","img","source","image","track"]);let _a=null;const Uo=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ri="http://www.w3.org/1998/Math/MathML",Di="http://www.w3.org/2000/svg",oe="http://www.w3.org/1999/xhtml";let Qe=oe,Ca=!1,ka=null;const Ip=z({},[Ri,Di,oe],Ta);let wr=null;const $p=["application/xhtml+xml","text/html"],Rp="text/html";let ct=null,Je=null;const Dp=r.createElement("form"),Yo=function(y){return y instanceof RegExp||y instanceof Function},va=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Je&&Je===y)){if((!y||typeof y!="object")&&(y={}),y=Be(y),wr=$p.indexOf(y.PARSER_MEDIA_TYPE)===-1?Rp:y.PARSER_MEDIA_TYPE,ct=wr==="application/xhtml+xml"?Ta:Ji,ot=Ut(y,"ALLOWED_TAGS")?z({},y.ALLOWED_TAGS,ct):$o,lt=Ut(y,"ALLOWED_ATTR")?z({},y.ALLOWED_ATTR,ct):Ro,ka=Ut(y,"ALLOWED_NAMESPACES")?z({},y.ALLOWED_NAMESPACES,Ta):Ip,_a=Ut(y,"ADD_URI_SAFE_ATTR")?z(Be(Uo),y.ADD_URI_SAFE_ATTR,ct):Uo,Ho=Ut(y,"ADD_DATA_URI_TAGS")?z(Be(jo),y.ADD_DATA_URI_TAGS,ct):jo,Ke=Ut(y,"FORBID_CONTENTS")?z({},y.FORBID_CONTENTS,ct):Wo,kr=Ut(y,"FORBID_TAGS")?z({},y.FORBID_TAGS,ct):{},pa=Ut(y,"FORBID_ATTR")?z({},y.FORBID_ATTR,ct):{},Ze=Ut(y,"USE_PROFILES")?y.USE_PROFILES:!1,Do=y.ALLOW_ARIA_ATTR!==!1,ga=y.ALLOW_DATA_ATTR!==!1,Po=y.ALLOW_UNKNOWN_PROTOCOLS||!1,No=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ve=y.SAFE_FOR_TEMPLATES||!1,ma=y.SAFE_FOR_XML!==!1,Le=y.WHOLE_DOCUMENT||!1,Xe=y.RETURN_DOM||!1,Ii=y.RETURN_DOM_FRAGMENT||!1,$i=y.RETURN_TRUSTED_TYPE||!1,xa=y.FORCE_BODY||!1,zo=y.SANITIZE_DOM!==!1,qo=y.SANITIZE_NAMED_PROPS||!1,ba=y.KEEP_CONTENT!==!1,vr=y.IN_PLACE||!1,se=y.ALLOWED_URI_REGEXP||Yc,Qe=y.NAMESPACE||oe,et=y.CUSTOM_ELEMENT_HANDLING||{},y.CUSTOM_ELEMENT_HANDLING&&Yo(y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(et.tagNameCheck=y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),y.CUSTOM_ELEMENT_HANDLING&&Yo(y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(et.attributeNameCheck=y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(et.allowCustomizedBuiltInElements=y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ve&&(ga=!1),Ii&&(Xe=!0),Ze&&(ot=z({},dl),lt=[],Ze.html===!0&&(z(ot,fl),z(lt,pl)),Ze.svg===!0&&(z(ot,Sa),z(lt,Ba),z(lt,qi)),Ze.svgFilters===!0&&(z(ot,La),z(lt,Ba),z(lt,qi)),Ze.mathMl===!0&&(z(ot,Aa),z(lt,gl),z(lt,qi))),y.ADD_TAGS&&(ot===$o&&(ot=Be(ot)),z(ot,y.ADD_TAGS,ct)),y.ADD_ATTR&&(lt===Ro&&(lt=Be(lt)),z(lt,y.ADD_ATTR,ct)),y.ADD_URI_SAFE_ATTR&&z(_a,y.ADD_URI_SAFE_ATTR,ct),y.FORBID_CONTENTS&&(Ke===Wo&&(Ke=Be(Ke)),z(Ke,y.FORBID_CONTENTS,ct)),ba&&(ot["#text"]=!0),Le&&z(ot,["html","head","body"]),ot.table&&(z(ot,["tbody"]),delete kr.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw Er('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Er('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=y.TRUSTED_TYPES_POLICY,A=T.createHTML("")}else T===void 0&&(T=Sg(p,n)),T!==null&&typeof A=="string"&&(A=T.createHTML(""));Bt&&Bt(y),Je=y}},Go=z({},["mi","mo","mn","ms","mtext"]),Vo=z({},["foreignobject","annotation-xml"]),Pp=z({},["title","style","font","a","script"]),Xo=z({},[...Sa,...La,...gg]),Zo=z({},[...Aa,...mg]),Np=function(y){let w=k(y);(!w||!w.tagName)&&(w={namespaceURI:Qe,tagName:"template"});const B=Ji(y.tagName),G=Ji(w.tagName);return ka[y.namespaceURI]?y.namespaceURI===Di?w.namespaceURI===oe?B==="svg":w.namespaceURI===Ri?B==="svg"&&(G==="annotation-xml"||Go[G]):!!Xo[B]:y.namespaceURI===Ri?w.namespaceURI===oe?B==="math":w.namespaceURI===Di?B==="math"&&Vo[G]:!!Zo[B]:y.namespaceURI===oe?w.namespaceURI===Di&&!Vo[G]||w.namespaceURI===Ri&&!Go[G]?!1:!Zo[B]&&(Pp[B]||!Xo[B]):!!(wr==="application/xhtml+xml"&&ka[y.namespaceURI]):!1},Zt=function(y){Ar(e.removed,{element:y});try{k(y).removeChild(y)}catch(w){x(y)}},Pi=function(y,w){try{Ar(e.removed,{attribute:w.getAttributeNode(y),from:w})}catch(B){Ar(e.removed,{attribute:null,from:w})}if(w.removeAttribute(y),y==="is"&&!lt[y])if(Xe||Ii)try{Zt(w)}catch(B){}else try{w.setAttribute(y,"")}catch(B){}},Ko=function(y){let w=null,B=null;if(xa)y=""+y;else{const ft=ul(y,/^[\r\n\t ]+/);B=ft&&ft[0]}wr==="application/xhtml+xml"&&Qe===oe&&(y=''+y+"");const G=T?T.createHTML(y):y;if(Qe===oe)try{w=new u().parseFromString(G,wr)}catch(ft){}if(!w||!w.documentElement){w=R.createDocument(Qe,"template",null);try{w.documentElement.innerHTML=Ca?A:G}catch(ft){}}const mt=w.body||w.documentElement;return y&&B&&mt.insertBefore(r.createTextNode(B),mt.childNodes[0]||null),Qe===oe?U.call(w,Le?"html":"body")[0]:Le?w.documentElement:mt},Qo=function(y){return P.call(y.ownerDocument||y,y,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Jo=function(y){return y instanceof d&&(typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||!(y.attributes instanceof h)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function")},tl=function(y){return typeof o=="function"&&y instanceof o},le=function(y,w,B){N[y]&&zi(N[y],G=>{G.call(e,w,B,Je)})},el=function(y){let w=null;if(le("beforeSanitizeElements",y,null),Jo(y))return Zt(y),!0;const B=ct(y.nodeName);if(le("uponSanitizeElement",y,{tagName:B,allowedTags:ot}),y.hasChildNodes()&&!tl(y.firstElementChild)&&St(/<[/\w]/g,y.innerHTML)&&St(/<[/\w]/g,y.textContent)||y.nodeType===Mr.progressingInstruction||ma&&y.nodeType===Mr.comment&&St(/<[/\w]/g,y.data))return Zt(y),!0;if(!ot[B]||kr[B]){if(!kr[B]&&il(B)&&(et.tagNameCheck instanceof RegExp&&St(et.tagNameCheck,B)||et.tagNameCheck instanceof Function&&et.tagNameCheck(B)))return!1;if(ba&&!Ke[B]){const G=k(y)||y.parentNode,mt=_(y)||y.childNodes;if(mt&&G){const ft=mt.length;for(let Et=ft-1;Et>=0;--Et){const Kt=m(mt[Et],!0);Kt.__removalCount=(y.__removalCount||0)+1,G.insertBefore(Kt,C(y))}}}return Zt(y),!0}return y instanceof l&&!Np(y)||(B==="noscript"||B==="noembed"||B==="noframes")&&St(/<\/no(script|embed|frames)/i,y.innerHTML)?(Zt(y),!0):(Ve&&y.nodeType===Mr.text&&(w=y.textContent,zi([ut,tt,Z],G=>{w=Br(w,G," ")}),y.textContent!==w&&(Ar(e.removed,{element:y.cloneNode()}),y.textContent=w)),le("afterSanitizeElements",y,null),!1)},rl=function(y,w,B){if(zo&&(w==="id"||w==="name")&&(B in r||B in Dp))return!1;if(!(ga&&!pa[w]&&St(vt,w))){if(!(Do&&St(Ht,w))){if(!lt[w]||pa[w]){if(!(il(y)&&(et.tagNameCheck instanceof RegExp&&St(et.tagNameCheck,y)||et.tagNameCheck instanceof Function&&et.tagNameCheck(y))&&(et.attributeNameCheck instanceof RegExp&&St(et.attributeNameCheck,w)||et.attributeNameCheck instanceof Function&&et.attributeNameCheck(w))||w==="is"&&et.allowCustomizedBuiltInElements&&(et.tagNameCheck instanceof RegExp&&St(et.tagNameCheck,B)||et.tagNameCheck instanceof Function&&et.tagNameCheck(B))))return!1}else if(!_a[w]){if(!St(se,Br(B,Se,""))){if(!((w==="src"||w==="xlink:href"||w==="href")&&y!=="script"&&ug(B,"data:")===0&&Ho[y])){if(!(Po&&!St(jt,Br(B,Se,"")))){if(B)return!1}}}}}}return!0},il=function(y){return y!=="annotation-xml"&&ul(y,wt)},nl=function(y){le("beforeSanitizeAttributes",y,null);const{attributes:w}=y;if(!w)return;const B={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:lt};let G=w.length;for(;G--;){const mt=w[G],{name:ft,namespaceURI:Et,value:Kt}=mt,Tr=ct(ft);let Tt=ft==="value"?Kt:fg(Kt);if(B.attrName=Tr,B.attrValue=Tt,B.keepAttr=!0,B.forceKeepAttr=void 0,le("uponSanitizeAttribute",y,B),Tt=B.attrValue,ma&&St(/((--!?|])>)|<\/(style|title)/i,Tt)){Pi(ft,y);continue}if(B.forceKeepAttr||(Pi(ft,y),!B.keepAttr))continue;if(!No&&St(/\/>/i,Tt)){Pi(ft,y);continue}Ve&&zi([ut,tt,Z],sl=>{Tt=Br(Tt,sl," ")});const al=ct(y.nodeName);if(rl(al,Tr,Tt)){if(qo&&(Tr==="id"||Tr==="name")&&(Pi(ft,y),Tt=Op+Tt),T&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Et)switch(p.getAttributeType(al,Tr)){case"TrustedHTML":{Tt=T.createHTML(Tt);break}case"TrustedScriptURL":{Tt=T.createScriptURL(Tt);break}}try{Et?y.setAttributeNS(Et,ft,Tt):y.setAttribute(ft,Tt),Jo(y)?Zt(y):hl(e.removed)}catch(sl){}}}le("afterSanitizeAttributes",y,null)},zp=function F(y){let w=null;const B=Qo(y);for(le("beforeSanitizeShadowDOM",y,null);w=B.nextNode();)le("uponSanitizeShadowNode",w,null),!el(w)&&(w.content instanceof a&&F(w.content),nl(w));le("afterSanitizeShadowDOM",y,null)};return e.sanitize=function(F){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=null,B=null,G=null,mt=null;if(Ca=!F,Ca&&(F=""),typeof F!="string"&&!tl(F))if(typeof F.toString=="function"){if(F=F.toString(),typeof F!="string")throw Er("dirty is not a string, aborting")}else throw Er("toString is not a function");if(!e.isSupported)return F;if(ya||va(y),e.removed=[],typeof F=="string"&&(vr=!1),vr){if(F.nodeName){const Kt=ct(F.nodeName);if(!ot[Kt]||kr[Kt])throw Er("root node is forbidden and cannot be sanitized in-place")}}else if(F instanceof o)w=Ko(""),B=w.ownerDocument.importNode(F,!0),B.nodeType===Mr.element&&B.nodeName==="BODY"||B.nodeName==="HTML"?w=B:w.appendChild(B);else{if(!Xe&&!Ve&&!Le&&F.indexOf("<")===-1)return T&&$i?T.createHTML(F):F;if(w=Ko(F),!w)return Xe?null:$i?A:""}w&&xa&&Zt(w.firstChild);const ft=Qo(vr?F:w);for(;G=ft.nextNode();)el(G)||(G.content instanceof a&&zp(G.content),nl(G));if(vr)return F;if(Xe){if(Ii)for(mt=q.call(w.ownerDocument);w.firstChild;)mt.appendChild(w.firstChild);else mt=w;return(lt.shadowroot||lt.shadowrootmode)&&(mt=W.call(i,mt,!0)),mt}let Et=Le?w.outerHTML:w.innerHTML;return Le&&ot["!doctype"]&&w.ownerDocument&&w.ownerDocument.doctype&&w.ownerDocument.doctype.name&&St(Gc,w.ownerDocument.doctype.name)&&(Et=" `+Et),Ve&&zi([ut,tt,Z],Kt=>{Et=Br(Et,Kt," ")}),T&&$i?T.createHTML(Et):Et},e.setConfig=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};va(F),ya=!0},e.clearConfig=function(){Je=null,ya=!1},e.isValidAttribute=function(F,y,w){Je||va({});const B=ct(F),G=ct(y);return rl(B,G,w)},e.addHook=function(F,y){typeof y=="function"&&(N[F]=N[F]||[],Ar(N[F],y))},e.removeHook=function(F){if(N[F])return hl(N[F])},e.removeHooks=function(F){N[F]&&(N[F]=[])},e.removeAllHooks=function(){N={}},e}var cr=Vc(),Xc=Object.defineProperty,f=(t,e)=>Xc(t,"name",{value:e,configurable:!0}),Lg=(t,e)=>{for(var r in e)Xc(t,r,{get:e[r],enumerable:!0})},ce={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},v={trace:f((...t)=>{},"trace"),debug:f((...t)=>{},"debug"),info:f((...t)=>{},"info"),warn:f((...t)=>{},"warn"),error:f((...t)=>{},"error"),fatal:f((...t)=>{},"fatal")},Rs=f(function(t="fatal"){let e=ce.fatal;typeof t=="string"?t.toLowerCase()in ce&&(e=ce[t]):typeof t=="number"&&(e=t),v.trace=()=>{},v.debug=()=>{},v.info=()=>{},v.warn=()=>{},v.error=()=>{},v.fatal=()=>{},e<=ce.fatal&&(v.fatal=console.error?console.error.bind(console,qt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",qt("FATAL"))),e<=ce.error&&(v.error=console.error?console.error.bind(console,qt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",qt("ERROR"))),e<=ce.warn&&(v.warn=console.warn?console.warn.bind(console,qt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",qt("WARN"))),e<=ce.info&&(v.info=console.info?console.info.bind(console,qt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",qt("INFO"))),e<=ce.debug&&(v.debug=console.debug?console.debug.bind(console,qt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",qt("DEBUG"))),e<=ce.trace&&(v.trace=console.debug?console.debug.bind(console,qt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",qt("TRACE")))},"setLogLevel"),qt=f(t=>`%c${Gp().format("ss.SSS")} : ${t} : `,"format"),Zc=new RegExp("^-{3}\\s*[\\n\\r](.*?)[\\n\\r]-{3}\\s*[\\n\\r]+","s"),Vr=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ag=/\s*%%.*\n/gm,di,Kc=(di=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},f(di,"UnknownDiagramError"),di),hr={},Ds=f(function(t,e){t=t.replace(Zc,"").replace(Vr,"").replace(Ag,` `);for(const[r,{detector:i}]of Object.entries(hr))if(i(t,e))return r;throw new Kc(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),Qc=f((...t)=>{for(const{id:e,detector:r,loader:i}of t)Jc(e,r,i)},"registerLazyLoadedDiagrams"),Jc=f((t,e,r)=>{hr[t]&&v.warn(`Detector with key ${t} already exists. Overwriting.`),hr[t]={detector:e,loader:r},v.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),Bg=f(t=>hr[t].loader,"getDiagramLoader"),Ya=f((t,e,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(a=>Ya(t,a,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(a=>{t.includes(a)||t.push(a)}),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(a=>{typeof e[a]=="object"&&(t[a]===void 0||typeof t[a]=="object")?(t[a]===void 0&&(t[a]=Array.isArray(e[a])?[]:{}),t[a]=Ya(t[a],e[a],{depth:r-1,clobber:i})):(i||typeof t[a]!="object"&&typeof e[a]!="object")&&(t[a]=e[a])}),t)},"assignWithDepth"),pt=Ya,Gn="#ffffff",Vn="#f2f2f2",Lt=f((t,e)=>e?b(t,{s:-40,l:10}):b(t,{s:-40,l:-10}),"mkBorder"),pi,Eg=(pi=class{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(){var r,i,n,a,s,o,l,c,h,d,u;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||S(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||S(this.tertiaryColor),this.lineColor=this.lineColor||S(this.background),this.arrowheadColor=this.arrowheadColor||S(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?O(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||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||S(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||M(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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},f(pi,"Theme"),pi),Fg=f(t=>{const e=new Eg;return e.calculate(t),e},"getThemeVariables"),gi,Mg=(gi=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=M(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=S(this.background),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.lineColor=S(this.background),this.textColor=S(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=M(S("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Gr(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=O("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=O(this.sectionBkgColor,10),this.taskBorderColor=Gr(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Gr(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(){var e,r,i,n,a,s,o,l,c,h,d;this.secondBkg=M(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=M(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=M(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=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330});for(let u=0;u{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},f(gi,"Theme"),gi),Og=f(t=>{const e=new Mg;return e.calculate(t),e},"getThemeVariables"),mi,Ig=(mi=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=b(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.lineColor=S(this.background),this.textColor=S(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=Gr(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(){var e,r,i,n,a,s,o,l,c,h,d;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let u=0;u{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},f(mi,"Theme"),mi),$g=f(t=>{const e=new Ig;return e.calculate(t),e},"getThemeVariables"),yi,Rg=(yi=class{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=M("#cde498",10),this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.primaryColor),this.lineColor=S(this.background),this.textColor=S(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(){var e,r,i,n,a,s,o,l,c,h,d;this.actorBorder=O(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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let u=0;u{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},f(yi,"Theme"),yi),Dg=f(t=>{const e=new Rg;return e.calculate(t),e},"getThemeVariables"),xi,Pg=(xi=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=M(this.contrast,55),this.background="#ffffff",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=S(this.primaryColor),this.secondaryTextColor=S(this.secondaryColor),this.tertiaryTextColor=S(this.tertiaryColor),this.lineColor=S(this.background),this.textColor=S(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(){var e,r,i,n,a,s,o,l,c,h,d;this.secondBkg=M(this.contrast,55),this.border2=this.contrast,this.actorBorder=M(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 u=0;u{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},f(xi,"Theme"),xi),Ng=f(t=>{const e=new Pg;return e.calculate(t),e},"getThemeVariables"),ue={base:{getThemeVariables:Fg},dark:{getThemeVariables:Og},default:{getThemeVariables:$g},forest:{getThemeVariables:Dg},neutral:{getThemeVariables:Ng}},ye={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},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},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},th=rt(D({},ye),{deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"SIMPLE"},themeCSS:void 0,themeVariables:ue.default.getThemeVariables(),sequence:rt(D({},ye.sequence),{messageFont:f(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:f(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:f(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")}),gantt:rt(D({},ye.gantt),{tickInterval:void 0,useWidth:void 0}),c4:rt(D({},ye.c4),{useWidth:void 0,personFont:f(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:f(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:f(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:f(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:f(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:f(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:f(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:f(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:f(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:f(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:f(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:f(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:f(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:f(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:f(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:f(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:f(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:f(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:f(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:f(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:f(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:f(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")}),pie:rt(D({},ye.pie),{useWidth:984}),xyChart:rt(D({},ye.xyChart),{useWidth:void 0}),requirement:rt(D({},ye.requirement),{useWidth:void 0}),packet:D({},ye.packet)}),eh=f((t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:typeof t[i]=="object"&&t[i]!==null?[...r,e+i,...eh(t[i],"")]:[...r,e+i],[]),"keyify"),zg=new Set(eh(th,"")),qg=th,cn=f(t=>{if(v.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>cn(e));return}for(const e of Object.keys(t)){if(v.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!zg.has(e)||t[e]==null){v.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){v.debug("sanitizing object",e),cn(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)e.includes(i)&&(v.debug("sanitizing css option",e),t[e]=Wg(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}v.debug("After sanitization",t)}},"sanitizeDirective"),Wg=f(t=>{let e=0,r=0;for(const i of t){if(e{let r=pt({},t),i={};for(const n of e)ah(n),i=pt(i,n);if(r=pt(r,i),i.theme&&i.theme in ue){const n=pt({},rh),a=pt(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in ue&&(r.themeVariables=ue[r.theme].getThemeVariables(a))}return Xr=r,sh(Xr),Xr},"updateCurrentConfig"),Hg=f(t=>(Mt=pt({},ur),Mt=pt(Mt,t),t.theme&&ue[t.theme]&&(Mt.themeVariables=ue[t.theme].getThemeVariables(t.themeVariables)),Xn(Mt,fr),Mt),"setSiteConfig"),jg=f(t=>{rh=pt({},t)},"saveConfigFromInitialize"),Ug=f(t=>(Mt=pt(Mt,t),Xn(Mt,fr),Mt),"updateSiteConfig"),ih=f(()=>pt({},Mt),"getSiteConfig"),nh=f(t=>(sh(t),pt(Xr,t),pe()),"setConfig"),pe=f(()=>pt({},Xr),"getConfig"),ah=f(t=>{var e;t&&(["secure",...(e=Mt.secure)!=null?e:[]].forEach(r=>{Object.hasOwn(t,r)&&(v.debug(`Denied attempt to modify a secure key ${r}`,t[r]),delete t[r])}),Object.keys(t).forEach(r=>{r.startsWith("__")&&delete t[r]}),Object.keys(t).forEach(r=>{typeof t[r]=="string"&&(t[r].includes("<")||t[r].includes(">")||t[r].includes("url(data:"))&&delete t[r],typeof t[r]=="object"&&ah(t[r])}))},"sanitize"),Yg=f(t=>{var e;cn(t),t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables=rt(D({},t.themeVariables),{fontFamily:t.fontFamily})),fr.push(t),Xn(Mt,fr)},"addDirective"),hn=f((t=Mt)=>{fr=[],Xn(t,fr)},"reset"),Gg={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},yl={},Vg=f(t=>{yl[t]||(v.warn(Gg[t]),yl[t]=!0)},"issueWarning"),sh=f(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Vg("LAZY_LOAD_DEPRECATED")},"checkConfig"),vi=//gi,Xg=f(t=>t?ch(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Zg=(()=>{let t=!1;return()=>{t||(oh(),t=!0)}})();function oh(){const t="data-temp-href-target";cr.addHook("beforeSanitizeAttributes",e=>{var r;e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,(r=e.getAttribute("target"))!=null?r:"")}),cr.addHook("afterSanitizeAttributes",e=>{var r;e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",(r=e.getAttribute(t))!=null?r:""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}f(oh,"setupDompurifyHooks");var lh=f(t=>(Zg(),cr.sanitize(t)),"removeScript"),xl=f((t,e)=>{var r;if(((r=e.flowchart)==null?void 0:r.htmlLabels)!==!1){const i=e.securityLevel;i==="antiscript"||i==="strict"?t=lh(t):i!=="loose"&&(t=ch(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=tm(t))}return t},"sanitizeMore"),dr=f((t,e)=>t&&(e.dompurifyConfig?t=cr.sanitize(xl(t,e),e.dompurifyConfig).toString():t=cr.sanitize(xl(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),Kg=f((t,e)=>typeof t=="string"?dr(t,e):t.flat().map(r=>dr(r,e)),"sanitizeTextOrArray"),Qg=f(t=>vi.test(t),"hasBreaks"),Jg=f(t=>t.split(vi),"splitBreaks"),tm=f(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),ch=f(t=>t.replace(vi,"#br#"),"breakToPlaceholder"),em=f(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"),Vt=f(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),rm=f(function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),im=f(function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),ZS=f(function(t){const e=t.split(/(,)/),r=[];for(let i=0;i0&&i+1Math.max(0,t.split(e).length-1),"countOccurrence"),nm=f((t,e)=>{const r=Ga(t,"~"),i=Ga(e,"~");return r===1&&i===1},"shouldCombineSets"),am=f(t=>{const e=Ga(t,"~");let r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const i=[...t];let n=i.indexOf("~"),a=i.lastIndexOf("~");for(;n!==-1&&a!==-1&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),bl=f(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Va=/\$\$(.*)\$\$/g,Jr=f(t=>{var e,r;return((r=(e=t.match(Va))==null?void 0:e.length)!=null?r:0)>0},"hasKatex"),KS=f((t,e)=>L(void 0,null,function*(){t=yield Ps(t,e);const r=document.createElement("div");r.innerHTML=t,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);const n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n}),"calculateMathMLDimensions"),Ps=f((t,e)=>L(void 0,null,function*(){if(!Jr(t))return t;if(!(bl()||e.legacyMathML||e.forceLegacyMathML))return t.replace(Va,"MathML is unsupported in this environment.");const{default:r}=yield X(()=>import("./katex-CZYHScXU.js"),__vite__mapDeps([]),import.meta.url),i=e.forceLegacyMathML||!bl()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(vi).map(n=>Jr(n)?`
${n}
`:`
${n}
`).join("").replace(Va,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(//g,""))}),"renderKatex"),br={getRows:Xg,sanitizeText:dr,sanitizeTextOrArray:Kg,hasBreaks:Qg,splitBreaks:Jg,lineBreakRegex:vi,removeScript:lh,getUrl:em,evaluate:Vt,getMax:rm,getMin:im},sm=f(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),om=f(function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},"calculateSvgSizeAttrs"),hh=f(function(t,e,r,i){const n=om(e,r,i);sm(t,n)},"configureSvgSize"),lm=f(function(t,e,r,i){const n=e.node().getBBox(),a=n.width,s=n.height;v.info(`SVG bounds: ${a}x${s}`,n);let o=0,l=0;v.info(`Graph bounds: ${o}x${l}`,t),o=a+r*2,l=s+r*2,v.info(`Calculated bounds: ${o}x${l}`),hh(e,l,o,i);const c=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;e.attr("viewBox",c)},"setupGraphViewbox"),tn={},cm=f((t,e,r)=>{let i="";return t in tn&&tn[t]?i=tn[t](r):v.warn(`No theme found for ${t}`),` & { font-family: ${r.fontFamily}; @@ -125,8 +125,8 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="

An err point:`,u,` node: `,e,` -res:`,nt.polygon(e,c,u)),nt.polygon(e,c,u)},n}),"question"),Bv=f((t,e,r,i,n)=>[`M${t+n},${e}`,`L${t+r-n},${e}`,`L${t+r},${e-i/2}`,`L${t+r-n},${e-i}`,`L${t+n},${e-i}`,`L${t},${e-i/2}`,"Z"].join(" "),"createHexagonPathD"),Ev=f((t,e)=>L(void 0,null,function*(){const{labelStyles:r,nodeStyles:i}=_t(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=yield Ct(t,e,zt(e)),s=4,o=a.height+e.padding,l=o/s,c=a.width+2*l+e.padding,h=[{x:l,y:0},{x:c-l,y:0},{x:c,y:-o/2},{x:c-l,y:-o},{x:l,y:-o},{x:0,y:-o/2}];let d;const{cssStyles:u}=e;if(e.look==="handDrawn"){const p=J.svg(n),g=gt(e,{}),m=Bv(0,0,c,o,l),x=p.path(m,g);d=n.insert(()=>x,":first-child").attr("transform",`translate(${-c/2}, ${o/2})`),u&&d.attr("style",u)}else d=me(n,c,o,h);return i&&d.attr("style",i),e.width=c,e.height=o,at(e,d),e.intersect=function(p){return nt.polygon(e,h,p)},n}),"hexagon"),Fv=f((t,e,r,i)=>[`M${t-2*i/6},${e}`,`L${t+r-i/6},${e}`,`L${t+r+2*i/6},${e-i}`,`L${t+i/6},${e-i}`,"Z"].join(" "),"createLeanRightPathD"),Mv=f((t,e)=>L(void 0,null,function*(){const{labelStyles:r,nodeStyles:i}=_t(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=yield Ct(t,e,zt(e)),s=a.width+e.padding,o=a.height+e.padding,l=[{x:-2*o/6,y:0},{x:s-o/6,y:0},{x:s+2*o/6,y:-o},{x:o/6,y:-o}];let c;const{cssStyles:h}=e;if(e.look==="handDrawn"){const d=J.svg(n),u=gt(e,{}),p=Fv(0,0,s,o),g=d.path(p,u);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=me(n,s,o,l);return i&&c.attr("style",i),e.width=s,e.height=o,at(e,c),e.intersect=function(d){return nt.polygon(e,l,d)},n}),"lean_right"),Ov=f((t,e,r,i)=>[`M${t+2*i/6},${e}`,`L${t+r+i/6},${e}`,`L${t+r-2*i/6},${e-i}`,`L${t-i/6},${e-i}`,"Z"].join(" "),"createLeanLeftPathD"),Iv=f((t,e)=>L(void 0,null,function*(){const{labelStyles:r,nodeStyles:i}=_t(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=yield Ct(t,e,zt(e)),s=a.width+e.padding,o=a.height+e.padding,l=[{x:2*o/6,y:0},{x:s+o/6,y:0},{x:s-2*o/6,y:-o},{x:-o/6,y:-o}];let c;const{cssStyles:h}=e;if(e.look==="handDrawn"){const d=J.svg(n),u=gt(e,{}),p=Ov(0,0,s,o),g=d.path(p,u);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=me(n,s,o,l);return i&&c.attr("style",i),e.width=s,e.height=o,at(e,c),e.intersect=function(d){return nt.polygon(e,l,d)},n}),"lean_left"),$v=f((t,e,r,i)=>[`M${t-2*i/6},${e}`,`L${t+r+2*i/6},${e}`,`L${t+r-i/6},${e-i}`,`L${t+i/6},${e-i}`,"Z"].join(" "),"createTrapezoidPathD"),Rv=f((t,e)=>L(void 0,null,function*(){const{labelStyles:r,nodeStyles:i}=_t(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=yield Ct(t,e,zt(e)),s=a.width+e.padding,o=a.height+e.padding,l=[{x:-2*o/6,y:0},{x:s+2*o/6,y:0},{x:s-o/6,y:-o},{x:o/6,y:-o}];let c;const{cssStyles:h}=e;if(e.look==="handDrawn"){const d=J.svg(n),u=gt(e,{}),p=$v(0,0,s,o),g=d.path(p,u);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=me(n,s,o,l);return i&&c.attr("style",i),e.width=s,e.height=o,at(e,c),e.intersect=function(d){return nt.polygon(e,l,d)},n}),"trapezoid"),Dv=f((t,e,r,i)=>[`M${t+i/6},${e}`,`L${t+r-i/6},${e}`,`L${t+r+2*i/6},${e-i}`,`L${t-2*i/6},${e-i}`,"Z"].join(" "),"createInvertedTrapezoidPathD"),Pv=f((t,e)=>L(void 0,null,function*(){const{labelStyles:r,nodeStyles:i}=_t(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=yield Ct(t,e,zt(e)),s=a.width+e.padding,o=a.height+e.padding,l=[{x:o/6,y:0},{x:s-o/6,y:0},{x:s+2*o/6,y:-o},{x:-2*o/6,y:-o}];let c;const{cssStyles:h}=e;if(e.look==="handDrawn"){const d=J.svg(n),u=gt(e,{}),p=Dv(0,0,s,o),g=d.path(p,u);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=me(n,s,o,l);return i&&c.attr("style",i),e.width=s,e.height=o,at(e,c),e.intersect=function(d){return nt.polygon(e,l,d)},n}),"inv_trapezoid"),Nv=f((t,e)=>L(void 0,null,function*(){const{shapeSvg:r}=yield Ct(t,e,"label"),i=r.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),at(e,i),e.intersect=function(s){return nt.rect(e,s)},r}),"labelRect"),Tc={state:cv,stateStart:fv,stateEnd:dv,fork:wc,join:wc,choice:pv,note:gv,roundedRect:hv,rectWithTitle:yv,squareRect:uv,stadium:mv,subroutine:xv,cylinder:kv,circle:vv,doublecircle:wv,odd:Sv,diamond:Av,hexagon:Ev,lean_right:Mv,lean_left:Iv,trapezoid:Rv,inv_trapezoid:Pv,labelRect:Nv},lr=new Map,zv=f((t,e,r)=>L(void 0,null,function*(){let i,n;if(e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect"),e.link){let a;H().securityLevel==="sandbox"?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),n=yield Tc[e.shape](i,e,r)}else n=yield Tc[e.shape](t,e,r),i=n;return e.tooltip&&n.attr("title",e.tooltip),lr.set(e.id,i),e.haveCallback&&lr.get(e.id).attr("class",lr.get(e.id).attr("class")+" clickable"),i}),"insertNode"),mL=f((t,e)=>{lr.set(e.id,t)},"setNodeElem"),yL=f(()=>{lr.clear()},"clear"),xL=f(t=>{const e=lr.get(t.id);v.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8,i=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+i-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),i},"positionNode"),qv={common:br,getConfig:pe,insertCluster:Pk,insertEdge:Yk,insertEdgeLabel:qk,insertMarkers:nv,insertNode:zv,interpolateToCurve:so,labelHelper:Ct,log:v,positionEdgeLabel:Wk},li={},ff=f(t=>{for(const e of t)li[e.name]=e},"registerLayoutLoaders"),Wv=f(()=>{ff([{name:"dagre",loader:f(()=>L(void 0,null,function*(){return yield X(()=>import("./dagre-P3YPLUS5-CeXFq1Wq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url)}),"loader")}])},"registerDefaultLayoutLoaders");Wv();var bL=f((t,e)=>L(void 0,null,function*(){if(!(t.layoutAlgorithm in li))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);const r=li[t.layoutAlgorithm];return(yield r.loader()).render(t,e,qv,{algorithm:r.algorithm})}),"render"),_L=f((t="",{fallback:e="dagre"}={})=>{if(t in li)return t;if(e in li)return v.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm"),Sc="11.2.1",Hv=f(t=>{var n,a;const{securityLevel:e}=H();let r=Q("body");if(e==="sandbox"){const o=(a=(n=Q(`#i${t}`).node())==null?void 0:n.contentDocument)!=null?a:document;r=Q(o.body)}return r.select(`#${t}`)},"selectSvgElement"),jv=su(Object.keys,Object),Uv=Object.prototype,Yv=Uv.hasOwnProperty;function Gv(t){if(!na(t))return jv(t);var e=[];for(var r in Object(t))Yv.call(t,r)&&r!="constructor"&&e.push(r);return e}var gs=Ye(ae,"DataView"),ms=Ye(ae,"Promise"),ys=Ye(ae,"Set"),xs=Ye(ae,"WeakMap"),Lc="[object Map]",Vv="[object Object]",Ac="[object Promise]",Bc="[object Set]",Ec="[object WeakMap]",Fc="[object DataView]",Xv=Ue(gs),Zv=Ue(ai),Kv=Ue(ms),Qv=Ue(ys),Jv=Ue(xs),Me=_r;(gs&&Me(new gs(new ArrayBuffer(1)))!=Fc||ai&&Me(new ai)!=Lc||ms&&Me(ms.resolve())!=Ac||ys&&Me(new ys)!=Bc||xs&&Me(new xs)!=Ec)&&(Me=function(t){var e=_r(t),r=e==Vv?t.constructor:void 0,i=r?Ue(r):"";if(i)switch(i){case Xv:return Fc;case Zv:return Lc;case Kv:return Ac;case Qv:return Bc;case Jv:return Ec}return e});const tw=Me;var ew="[object Map]",rw="[object Set]",iw=Object.prototype,nw=iw.hasOwnProperty;function Mc(t){if(t==null)return!0;if(aa(t)&&(Ln(t)||typeof t=="string"||typeof t.splice=="function"||no(t)||ao(t)||Sn(t)))return!t.length;var e=tw(t);if(e==ew||e==rw)return!t.size;if(na(t))return!Gv(t).length;for(var r in t)if(nw.call(t,r))return!1;return!0}var df="c4",aw=f(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),sw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./c4Diagram-THADGKDP-DURVD377.js"),__vite__mapDeps([14,15,7,8,9,10,11,12,13]),import.meta.url);return{id:df,diagram:t}}),"loader"),ow={id:df,detector:aw,loader:sw},lw=ow,pf="flowchart",cw=f((t,e)=>{var r,i;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},"detector"),hw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./flowDiagram-JSIZSE4D-5RRQnNTH.js"),__vite__mapDeps([16,17,18,19,7,8,9,10,11,12,13]),import.meta.url);return{id:pf,diagram:t}}),"loader"),uw={id:pf,detector:cw,loader:hw},fw=uw,gf="flowchart-v2",dw=f((t,e)=>{var r,i,n;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t))},"detector"),pw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./flowDiagram-JSIZSE4D-5RRQnNTH.js"),__vite__mapDeps([16,17,18,19,7,8,9,10,11,12,13]),import.meta.url);return{id:gf,diagram:t}}),"loader"),gw={id:gf,detector:dw,loader:pw},mw=gw,mf="er",yw=f(t=>/^\s*erDiagram/.test(t),"detector"),xw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./erDiagram-62CBQV5Y-DVkVjRgd.js"),__vite__mapDeps([20,1,2,3,4,21,7,8,9,10,11,12,13]),import.meta.url);return{id:mf,diagram:t}}),"loader"),bw={id:mf,detector:yw,loader:xw},_w=bw,yf="gitGraph",Cw=f(t=>/^\s*gitGraph/.test(t),"detector"),kw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./gitGraphDiagram-UL5UFKDR-BuQ3v15o.js"),__vite__mapDeps([22,23,24,25,10,2,4,6,7,8,9,11,12,13]),import.meta.url);return{id:yf,diagram:t}}),"loader"),vw={id:yf,detector:Cw,loader:kw},ww=vw,xf="gantt",Tw=f(t=>/^\s*gantt/.test(t),"detector"),Sw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./ganttDiagram-ASEIQ4P5-78gpMbwJ.js"),__vite__mapDeps([26,11,8,27,28,29,7,9,10,12,13]),import.meta.url);return{id:xf,diagram:t}}),"loader"),Lw={id:xf,detector:Tw,loader:Sw},Aw=Lw,bf="info",Bw=f(t=>/^\s*info/.test(t),"detector"),Ew=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./infoDiagram-7APDZ6AT-DKk3s9oT.js"),__vite__mapDeps([30,25,10,2,4,6,7,8,9,11,12,13]),import.meta.url);return{id:bf,diagram:t}}),"loader"),Fw={id:bf,detector:Bw,loader:Ew},_f="pie",Mw=f(t=>/^\s*pie/.test(t),"detector"),Ow=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./pieDiagram-OZX6XH5M-DoWSWPYl.js"),__vite__mapDeps([31,23,25,10,2,4,6,32,33,29,7,8,9,11,12,13]),import.meta.url);return{id:_f,diagram:t}}),"loader"),Iw={id:_f,detector:Mw,loader:Ow},Cf="quadrantChart",$w=f(t=>/^\s*quadrantChart/.test(t),"detector"),Rw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./quadrantDiagram-VG34DGKC-CNKBWwSf.js"),__vite__mapDeps([34,28,29,7,8,9,10,11,12,13]),import.meta.url);return{id:Cf,diagram:t}}),"loader"),Dw={id:Cf,detector:$w,loader:Rw},Pw=Dw,kf="xychart",Nw=f(t=>/^\s*xychart-beta/.test(t),"detector"),zw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./xychartDiagram-LESROZAQ-DLGqRkA9.js"),__vite__mapDeps([35,29,33,28,7,8,9,10,11,12,13]),import.meta.url);return{id:kf,diagram:t}}),"loader"),qw={id:kf,detector:Nw,loader:zw},Ww=qw,vf="requirement",Hw=f(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),jw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./requirementDiagram-FPZB6IJI-BkzHvxH4.js"),__vite__mapDeps([36,1,2,3,4,7,8,9,10,11,12,13]),import.meta.url);return{id:vf,diagram:t}}),"loader"),Uw={id:vf,detector:Hw,loader:jw},Yw=Uw,wf="sequence",Gw=f(t=>/^\s*sequenceDiagram/.test(t),"detector"),Vw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./sequenceDiagram-PQT5PN7B-DFJlhQFx.js"),__vite__mapDeps([37,15,24,7,8,9,10,11,12,13]),import.meta.url);return{id:wf,diagram:t}}),"loader"),Xw={id:wf,detector:Gw,loader:Vw},Zw=Xw,Tf="class",Kw=f((t,e)=>{var r;return((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},"detector"),Qw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./classDiagram-4BHYIK4I-ByJmFmYl.js"),__vite__mapDeps([38,39,1,2,3,4,7,8,9,10,11,12,13]),import.meta.url);return{id:Tf,diagram:t}}),"loader"),Jw={id:Tf,detector:Kw,loader:Qw},tT=Jw,Sf="classDiagram",eT=f((t,e)=>{var r;return/^\s*classDiagram/.test(t)&&((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},"detector"),rT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./classDiagram-v2-FI7KE7WJ-BJW7jP0G.js"),__vite__mapDeps([40,41,18,39,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url);return{id:Sf,diagram:t}}),"loader"),iT={id:Sf,detector:eT,loader:rT},nT=iT,Lf="state",aT=f((t,e)=>{var r;return((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},"detector"),sT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./stateDiagram-TQSDS2D4-fQq-ESgZ.js"),__vite__mapDeps([42,43,17,18,1,2,3,4,7,8,9,10,11,12,13]),import.meta.url);return{id:Lf,diagram:t}}),"loader"),oT={id:Lf,detector:aT,loader:sT},lT=oT,Af="stateDiagram",cT=f((t,e)=>{var r;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),hT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./stateDiagram-v2-J5TZWJW5-Bz577HFi.js"),__vite__mapDeps([44,43,17,18,7,8,9,10,11,12,13]),import.meta.url);return{id:Af,diagram:t}}),"loader"),uT={id:Af,detector:cT,loader:hT},fT=uT,Bf="journey",dT=f(t=>/^\s*journey/.test(t),"detector"),pT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./journeyDiagram-G5LC7W2K-5MkmSIV1.js"),__vite__mapDeps([45,15,32,7,8,9,10,11,12,13]),import.meta.url);return{id:Bf,diagram:t}}),"loader"),gT={id:Bf,detector:dT,loader:pT},mT=gT,yT=f((t,e,r)=>{v.debug(`rendering svg for syntax error -`);const i=Hv(e),n=i.append("g");i.attr("viewBox","0 0 2412 512"),hh(i,100,512,!0),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),Ef={draw:yT},xT=Ef,bT={db:{},renderer:Ef,parser:{parse:f(()=>{},"parse")}},_T=bT,Ff="flowchart-elk",CT=f((t,e={})=>{var r;return/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(e.layout="elk",!0):!1},"detector"),kT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./flowDiagram-JSIZSE4D-5RRQnNTH.js"),__vite__mapDeps([16,17,18,19,7,8,9,10,11,12,13]),import.meta.url);return{id:Ff,diagram:t}}),"loader"),vT={id:Ff,detector:CT,loader:kT},wT=vT,Mf="timeline",TT=f(t=>/^\s*timeline/.test(t),"detector"),ST=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./timeline-definition-KYQAIZUX-Bzz22sDY.js"),__vite__mapDeps([46,32,7,8,9,10,11,12,13]),import.meta.url);return{id:Mf,diagram:t}}),"loader"),LT={id:Mf,detector:TT,loader:ST},AT=LT,Of="mindmap",BT=f(t=>/^\s*mindmap/.test(t),"detector"),ET=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./mindmap-definition-FCEC46F3-Ddszh-gs.js"),__vite__mapDeps([47,48,8,7,9,10,11,12,13]),import.meta.url);return{id:Of,diagram:t}}),"loader"),FT={id:Of,detector:BT,loader:ET},MT=FT,If="sankey",OT=f(t=>/^\s*sankey-beta/.test(t),"detector"),IT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./sankeyDiagram-KMMQDL5K-BOnGZHfD.js"),__vite__mapDeps([49,33,29,7,8,9,10,11,12,13]),import.meta.url);return{id:If,diagram:t}}),"loader"),$T={id:If,detector:OT,loader:IT},RT=$T,$f="packet",DT=f(t=>/^\s*packet-beta/.test(t),"detector"),PT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./diagram-QS5GVLUX-U-Bx7u1Z.js"),__vite__mapDeps([50,23,25,10,2,4,6,7,8,9,11,12,13]),import.meta.url);return{id:$f,diagram:t}}),"loader"),NT={id:$f,detector:DT,loader:PT},Rf="block",zT=f(t=>/^\s*block-beta/.test(t),"detector"),qT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./blockDiagram-EN3ZKWFM-ngXiVgR0.js"),__vite__mapDeps([51,41,18,6,2,1,19,7,8,9,10,11,12,13]),import.meta.url);return{id:Rf,diagram:t}}),"loader"),WT={id:Rf,detector:zT,loader:qT},HT=WT,Df="architecture",jT=f(t=>/^\s*architecture/.test(t),"detector"),UT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./architectureDiagram-V6B76FHG-bdew-Ddd.js"),__vite__mapDeps([52,23,24,25,10,2,4,6,48,8,7,9,11,12,13]),import.meta.url);return{id:Df,diagram:t}}),"loader"),YT={id:Df,detector:jT,loader:UT},GT=YT,Oc=!1,ua=f(()=>{Oc||(Oc=!0,fn("error",_T,t=>t.toLowerCase().trim()==="error"),fn("---",{db:{clear:f(()=>{},"clear")},styles:{},renderer:{draw:f(()=>{},"draw")},parser:{parse:f(()=>{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:f(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),Qc(lw,nT,tT,_w,Aw,Fw,Iw,Yw,Zw,wT,mw,fw,MT,AT,ww,fT,lT,mT,Pw,RT,NT,Ww,HT,GT))},"addDiagrams"),VT=f(()=>L(void 0,null,function*(){v.debug("Loading registered diagrams");const e=(yield Promise.allSettled(Object.entries(hr).map(a=>L(void 0,[a],function*([r,{detector:i,loader:n}]){if(n)try{Xa(r)}catch(s){try{const{diagram:o,id:l}=yield n();fn(l,o,i)}catch(o){throw v.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete hr[r],o}}})))).filter(r=>r.status==="rejected");if(e.length>0){v.error(`Failed to load ${e.length} external diagrams`);for(const r of e)v.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}}),"loadRegisteredDiagrams"),XT="graphics-document document";function Pf(t,e){t.attr("role",XT),e!==""&&t.attr("aria-roledescription",e)}f(Pf,"setA11yDiagramInfo");function Nf(t,e,r,i){if(t.insert!==void 0){if(r){const n=`chart-desc-${i}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(r)}if(e){const n=`chart-title-${i}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}f(Nf,"addSVGa11yTitleDescription");var xr,bs=(xr=class{constructor(e,r,i,n,a){this.type=e,this.text=r,this.db=i,this.parser=n,this.renderer=a}static fromText(i){return L(this,arguments,function*(e,r={}){var h,d;const n=pe(),a=Ds(e,n);e=FC(e)+` +res:`,nt.polygon(e,c,u)),nt.polygon(e,c,u)},n}),"question"),Bv=f((t,e,r,i,n)=>[`M${t+n},${e}`,`L${t+r-n},${e}`,`L${t+r},${e-i/2}`,`L${t+r-n},${e-i}`,`L${t+n},${e-i}`,`L${t},${e-i/2}`,"Z"].join(" "),"createHexagonPathD"),Ev=f((t,e)=>L(void 0,null,function*(){const{labelStyles:r,nodeStyles:i}=_t(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=yield Ct(t,e,zt(e)),s=4,o=a.height+e.padding,l=o/s,c=a.width+2*l+e.padding,h=[{x:l,y:0},{x:c-l,y:0},{x:c,y:-o/2},{x:c-l,y:-o},{x:l,y:-o},{x:0,y:-o/2}];let d;const{cssStyles:u}=e;if(e.look==="handDrawn"){const p=J.svg(n),g=gt(e,{}),m=Bv(0,0,c,o,l),x=p.path(m,g);d=n.insert(()=>x,":first-child").attr("transform",`translate(${-c/2}, ${o/2})`),u&&d.attr("style",u)}else d=me(n,c,o,h);return i&&d.attr("style",i),e.width=c,e.height=o,at(e,d),e.intersect=function(p){return nt.polygon(e,h,p)},n}),"hexagon"),Fv=f((t,e,r,i)=>[`M${t-2*i/6},${e}`,`L${t+r-i/6},${e}`,`L${t+r+2*i/6},${e-i}`,`L${t+i/6},${e-i}`,"Z"].join(" "),"createLeanRightPathD"),Mv=f((t,e)=>L(void 0,null,function*(){const{labelStyles:r,nodeStyles:i}=_t(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=yield Ct(t,e,zt(e)),s=a.width+e.padding,o=a.height+e.padding,l=[{x:-2*o/6,y:0},{x:s-o/6,y:0},{x:s+2*o/6,y:-o},{x:o/6,y:-o}];let c;const{cssStyles:h}=e;if(e.look==="handDrawn"){const d=J.svg(n),u=gt(e,{}),p=Fv(0,0,s,o),g=d.path(p,u);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=me(n,s,o,l);return i&&c.attr("style",i),e.width=s,e.height=o,at(e,c),e.intersect=function(d){return nt.polygon(e,l,d)},n}),"lean_right"),Ov=f((t,e,r,i)=>[`M${t+2*i/6},${e}`,`L${t+r+i/6},${e}`,`L${t+r-2*i/6},${e-i}`,`L${t-i/6},${e-i}`,"Z"].join(" "),"createLeanLeftPathD"),Iv=f((t,e)=>L(void 0,null,function*(){const{labelStyles:r,nodeStyles:i}=_t(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=yield Ct(t,e,zt(e)),s=a.width+e.padding,o=a.height+e.padding,l=[{x:2*o/6,y:0},{x:s+o/6,y:0},{x:s-2*o/6,y:-o},{x:-o/6,y:-o}];let c;const{cssStyles:h}=e;if(e.look==="handDrawn"){const d=J.svg(n),u=gt(e,{}),p=Ov(0,0,s,o),g=d.path(p,u);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=me(n,s,o,l);return i&&c.attr("style",i),e.width=s,e.height=o,at(e,c),e.intersect=function(d){return nt.polygon(e,l,d)},n}),"lean_left"),$v=f((t,e,r,i)=>[`M${t-2*i/6},${e}`,`L${t+r+2*i/6},${e}`,`L${t+r-i/6},${e-i}`,`L${t+i/6},${e-i}`,"Z"].join(" "),"createTrapezoidPathD"),Rv=f((t,e)=>L(void 0,null,function*(){const{labelStyles:r,nodeStyles:i}=_t(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=yield Ct(t,e,zt(e)),s=a.width+e.padding,o=a.height+e.padding,l=[{x:-2*o/6,y:0},{x:s+2*o/6,y:0},{x:s-o/6,y:-o},{x:o/6,y:-o}];let c;const{cssStyles:h}=e;if(e.look==="handDrawn"){const d=J.svg(n),u=gt(e,{}),p=$v(0,0,s,o),g=d.path(p,u);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=me(n,s,o,l);return i&&c.attr("style",i),e.width=s,e.height=o,at(e,c),e.intersect=function(d){return nt.polygon(e,l,d)},n}),"trapezoid"),Dv=f((t,e,r,i)=>[`M${t+i/6},${e}`,`L${t+r-i/6},${e}`,`L${t+r+2*i/6},${e-i}`,`L${t-2*i/6},${e-i}`,"Z"].join(" "),"createInvertedTrapezoidPathD"),Pv=f((t,e)=>L(void 0,null,function*(){const{labelStyles:r,nodeStyles:i}=_t(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=yield Ct(t,e,zt(e)),s=a.width+e.padding,o=a.height+e.padding,l=[{x:o/6,y:0},{x:s-o/6,y:0},{x:s+2*o/6,y:-o},{x:-2*o/6,y:-o}];let c;const{cssStyles:h}=e;if(e.look==="handDrawn"){const d=J.svg(n),u=gt(e,{}),p=Dv(0,0,s,o),g=d.path(p,u);c=n.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=me(n,s,o,l);return i&&c.attr("style",i),e.width=s,e.height=o,at(e,c),e.intersect=function(d){return nt.polygon(e,l,d)},n}),"inv_trapezoid"),Nv=f((t,e)=>L(void 0,null,function*(){const{shapeSvg:r}=yield Ct(t,e,"label"),i=r.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),at(e,i),e.intersect=function(s){return nt.rect(e,s)},r}),"labelRect"),Tc={state:cv,stateStart:fv,stateEnd:dv,fork:wc,join:wc,choice:pv,note:gv,roundedRect:hv,rectWithTitle:yv,squareRect:uv,stadium:mv,subroutine:xv,cylinder:kv,circle:vv,doublecircle:wv,odd:Sv,diamond:Av,hexagon:Ev,lean_right:Mv,lean_left:Iv,trapezoid:Rv,inv_trapezoid:Pv,labelRect:Nv},lr=new Map,zv=f((t,e,r)=>L(void 0,null,function*(){let i,n;if(e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect"),e.link){let a;H().securityLevel==="sandbox"?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),n=yield Tc[e.shape](i,e,r)}else n=yield Tc[e.shape](t,e,r),i=n;return e.tooltip&&n.attr("title",e.tooltip),lr.set(e.id,i),e.haveCallback&&lr.get(e.id).attr("class",lr.get(e.id).attr("class")+" clickable"),i}),"insertNode"),mL=f((t,e)=>{lr.set(e.id,t)},"setNodeElem"),yL=f(()=>{lr.clear()},"clear"),xL=f(t=>{const e=lr.get(t.id);v.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8,i=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+i-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),i},"positionNode"),qv={common:br,getConfig:pe,insertCluster:Pk,insertEdge:Yk,insertEdgeLabel:qk,insertMarkers:nv,insertNode:zv,interpolateToCurve:so,labelHelper:Ct,log:v,positionEdgeLabel:Wk},li={},ff=f(t=>{for(const e of t)li[e.name]=e},"registerLayoutLoaders"),Wv=f(()=>{ff([{name:"dagre",loader:f(()=>L(void 0,null,function*(){return yield X(()=>import("./dagre-P3YPLUS5-B2XW2uPk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url)}),"loader")}])},"registerDefaultLayoutLoaders");Wv();var bL=f((t,e)=>L(void 0,null,function*(){if(!(t.layoutAlgorithm in li))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);const r=li[t.layoutAlgorithm];return(yield r.loader()).render(t,e,qv,{algorithm:r.algorithm})}),"render"),_L=f((t="",{fallback:e="dagre"}={})=>{if(t in li)return t;if(e in li)return v.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm"),Sc="11.2.1",Hv=f(t=>{var n,a;const{securityLevel:e}=H();let r=Q("body");if(e==="sandbox"){const o=(a=(n=Q(`#i${t}`).node())==null?void 0:n.contentDocument)!=null?a:document;r=Q(o.body)}return r.select(`#${t}`)},"selectSvgElement"),jv=su(Object.keys,Object),Uv=Object.prototype,Yv=Uv.hasOwnProperty;function Gv(t){if(!na(t))return jv(t);var e=[];for(var r in Object(t))Yv.call(t,r)&&r!="constructor"&&e.push(r);return e}var gs=Ye(ae,"DataView"),ms=Ye(ae,"Promise"),ys=Ye(ae,"Set"),xs=Ye(ae,"WeakMap"),Lc="[object Map]",Vv="[object Object]",Ac="[object Promise]",Bc="[object Set]",Ec="[object WeakMap]",Fc="[object DataView]",Xv=Ue(gs),Zv=Ue(ai),Kv=Ue(ms),Qv=Ue(ys),Jv=Ue(xs),Me=_r;(gs&&Me(new gs(new ArrayBuffer(1)))!=Fc||ai&&Me(new ai)!=Lc||ms&&Me(ms.resolve())!=Ac||ys&&Me(new ys)!=Bc||xs&&Me(new xs)!=Ec)&&(Me=function(t){var e=_r(t),r=e==Vv?t.constructor:void 0,i=r?Ue(r):"";if(i)switch(i){case Xv:return Fc;case Zv:return Lc;case Kv:return Ac;case Qv:return Bc;case Jv:return Ec}return e});const tw=Me;var ew="[object Map]",rw="[object Set]",iw=Object.prototype,nw=iw.hasOwnProperty;function Mc(t){if(t==null)return!0;if(aa(t)&&(Ln(t)||typeof t=="string"||typeof t.splice=="function"||no(t)||ao(t)||Sn(t)))return!t.length;var e=tw(t);if(e==ew||e==rw)return!t.size;if(na(t))return!Gv(t).length;for(var r in t)if(nw.call(t,r))return!1;return!0}var df="c4",aw=f(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),sw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./c4Diagram-THADGKDP-mY8mjMHo.js"),__vite__mapDeps([14,15,7,8,9,10,11,12,13]),import.meta.url);return{id:df,diagram:t}}),"loader"),ow={id:df,detector:aw,loader:sw},lw=ow,pf="flowchart",cw=f((t,e)=>{var r,i;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},"detector"),hw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./flowDiagram-JSIZSE4D-B_Ls99NY.js"),__vite__mapDeps([16,17,18,19,7,8,9,10,11,12,13]),import.meta.url);return{id:pf,diagram:t}}),"loader"),uw={id:pf,detector:cw,loader:hw},fw=uw,gf="flowchart-v2",dw=f((t,e)=>{var r,i,n;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t))},"detector"),pw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./flowDiagram-JSIZSE4D-B_Ls99NY.js"),__vite__mapDeps([16,17,18,19,7,8,9,10,11,12,13]),import.meta.url);return{id:gf,diagram:t}}),"loader"),gw={id:gf,detector:dw,loader:pw},mw=gw,mf="er",yw=f(t=>/^\s*erDiagram/.test(t),"detector"),xw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./erDiagram-62CBQV5Y-r-scVNHL.js"),__vite__mapDeps([20,1,2,3,4,21,7,8,9,10,11,12,13]),import.meta.url);return{id:mf,diagram:t}}),"loader"),bw={id:mf,detector:yw,loader:xw},_w=bw,yf="gitGraph",Cw=f(t=>/^\s*gitGraph/.test(t),"detector"),kw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./gitGraphDiagram-UL5UFKDR-BQ377EDl.js"),__vite__mapDeps([22,23,24,25,10,2,4,6,7,8,9,11,12,13]),import.meta.url);return{id:yf,diagram:t}}),"loader"),vw={id:yf,detector:Cw,loader:kw},ww=vw,xf="gantt",Tw=f(t=>/^\s*gantt/.test(t),"detector"),Sw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./ganttDiagram-ASEIQ4P5-HoEpCjA1.js"),__vite__mapDeps([26,11,8,27,28,29,7,9,10,12,13]),import.meta.url);return{id:xf,diagram:t}}),"loader"),Lw={id:xf,detector:Tw,loader:Sw},Aw=Lw,bf="info",Bw=f(t=>/^\s*info/.test(t),"detector"),Ew=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./infoDiagram-7APDZ6AT-CIcI_zld.js"),__vite__mapDeps([30,25,10,2,4,6,7,8,9,11,12,13]),import.meta.url);return{id:bf,diagram:t}}),"loader"),Fw={id:bf,detector:Bw,loader:Ew},_f="pie",Mw=f(t=>/^\s*pie/.test(t),"detector"),Ow=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./pieDiagram-OZX6XH5M-Bu0ZpKbB.js"),__vite__mapDeps([31,23,25,10,2,4,6,32,33,29,7,8,9,11,12,13]),import.meta.url);return{id:_f,diagram:t}}),"loader"),Iw={id:_f,detector:Mw,loader:Ow},Cf="quadrantChart",$w=f(t=>/^\s*quadrantChart/.test(t),"detector"),Rw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./quadrantDiagram-VG34DGKC-BTY3QjFH.js"),__vite__mapDeps([34,28,29,7,8,9,10,11,12,13]),import.meta.url);return{id:Cf,diagram:t}}),"loader"),Dw={id:Cf,detector:$w,loader:Rw},Pw=Dw,kf="xychart",Nw=f(t=>/^\s*xychart-beta/.test(t),"detector"),zw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./xychartDiagram-LESROZAQ-BqbOHeeh.js"),__vite__mapDeps([35,29,33,28,7,8,9,10,11,12,13]),import.meta.url);return{id:kf,diagram:t}}),"loader"),qw={id:kf,detector:Nw,loader:zw},Ww=qw,vf="requirement",Hw=f(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),jw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./requirementDiagram-FPZB6IJI-BOm83o6L.js"),__vite__mapDeps([36,1,2,3,4,7,8,9,10,11,12,13]),import.meta.url);return{id:vf,diagram:t}}),"loader"),Uw={id:vf,detector:Hw,loader:jw},Yw=Uw,wf="sequence",Gw=f(t=>/^\s*sequenceDiagram/.test(t),"detector"),Vw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./sequenceDiagram-PQT5PN7B-CN9UeIty.js"),__vite__mapDeps([37,15,24,7,8,9,10,11,12,13]),import.meta.url);return{id:wf,diagram:t}}),"loader"),Xw={id:wf,detector:Gw,loader:Vw},Zw=Xw,Tf="class",Kw=f((t,e)=>{var r;return((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},"detector"),Qw=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./classDiagram-4BHYIK4I-DmurYMkc.js"),__vite__mapDeps([38,39,1,2,3,4,7,8,9,10,11,12,13]),import.meta.url);return{id:Tf,diagram:t}}),"loader"),Jw={id:Tf,detector:Kw,loader:Qw},tT=Jw,Sf="classDiagram",eT=f((t,e)=>{var r;return/^\s*classDiagram/.test(t)&&((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},"detector"),rT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./classDiagram-v2-FI7KE7WJ-0LFbaZkA.js"),__vite__mapDeps([40,41,18,39,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url);return{id:Sf,diagram:t}}),"loader"),iT={id:Sf,detector:eT,loader:rT},nT=iT,Lf="state",aT=f((t,e)=>{var r;return((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},"detector"),sT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./stateDiagram-TQSDS2D4-CMNkZd09.js"),__vite__mapDeps([42,43,17,18,1,2,3,4,7,8,9,10,11,12,13]),import.meta.url);return{id:Lf,diagram:t}}),"loader"),oT={id:Lf,detector:aT,loader:sT},lT=oT,Af="stateDiagram",cT=f((t,e)=>{var r;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),hT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./stateDiagram-v2-J5TZWJW5-CgvaZRch.js"),__vite__mapDeps([44,43,17,18,7,8,9,10,11,12,13]),import.meta.url);return{id:Af,diagram:t}}),"loader"),uT={id:Af,detector:cT,loader:hT},fT=uT,Bf="journey",dT=f(t=>/^\s*journey/.test(t),"detector"),pT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./journeyDiagram-G5LC7W2K-Do6w_qs5.js"),__vite__mapDeps([45,15,32,7,8,9,10,11,12,13]),import.meta.url);return{id:Bf,diagram:t}}),"loader"),gT={id:Bf,detector:dT,loader:pT},mT=gT,yT=f((t,e,r)=>{v.debug(`rendering svg for syntax error +`);const i=Hv(e),n=i.append("g");i.attr("viewBox","0 0 2412 512"),hh(i,100,512,!0),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),Ef={draw:yT},xT=Ef,bT={db:{},renderer:Ef,parser:{parse:f(()=>{},"parse")}},_T=bT,Ff="flowchart-elk",CT=f((t,e={})=>{var r;return/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(e.layout="elk",!0):!1},"detector"),kT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./flowDiagram-JSIZSE4D-B_Ls99NY.js"),__vite__mapDeps([16,17,18,19,7,8,9,10,11,12,13]),import.meta.url);return{id:Ff,diagram:t}}),"loader"),vT={id:Ff,detector:CT,loader:kT},wT=vT,Mf="timeline",TT=f(t=>/^\s*timeline/.test(t),"detector"),ST=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./timeline-definition-KYQAIZUX-CPQW5OwW.js"),__vite__mapDeps([46,32,7,8,9,10,11,12,13]),import.meta.url);return{id:Mf,diagram:t}}),"loader"),LT={id:Mf,detector:TT,loader:ST},AT=LT,Of="mindmap",BT=f(t=>/^\s*mindmap/.test(t),"detector"),ET=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./mindmap-definition-FCEC46F3-BiIE9Yg1.js"),__vite__mapDeps([47,48,8,7,9,10,11,12,13]),import.meta.url);return{id:Of,diagram:t}}),"loader"),FT={id:Of,detector:BT,loader:ET},MT=FT,If="sankey",OT=f(t=>/^\s*sankey-beta/.test(t),"detector"),IT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./sankeyDiagram-KMMQDL5K-MuXWLZMK.js"),__vite__mapDeps([49,33,29,7,8,9,10,11,12,13]),import.meta.url);return{id:If,diagram:t}}),"loader"),$T={id:If,detector:OT,loader:IT},RT=$T,$f="packet",DT=f(t=>/^\s*packet-beta/.test(t),"detector"),PT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./diagram-QS5GVLUX-BUbABeEj.js"),__vite__mapDeps([50,23,25,10,2,4,6,7,8,9,11,12,13]),import.meta.url);return{id:$f,diagram:t}}),"loader"),NT={id:$f,detector:DT,loader:PT},Rf="block",zT=f(t=>/^\s*block-beta/.test(t),"detector"),qT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./blockDiagram-EN3ZKWFM-BCBVUS81.js"),__vite__mapDeps([51,41,18,6,2,1,19,7,8,9,10,11,12,13]),import.meta.url);return{id:Rf,diagram:t}}),"loader"),WT={id:Rf,detector:zT,loader:qT},HT=WT,Df="architecture",jT=f(t=>/^\s*architecture/.test(t),"detector"),UT=f(()=>L(void 0,null,function*(){const{diagram:t}=yield X(()=>import("./architectureDiagram-V6B76FHG-_GzJ0Rse.js"),__vite__mapDeps([52,23,24,25,10,2,4,6,48,8,7,9,11,12,13]),import.meta.url);return{id:Df,diagram:t}}),"loader"),YT={id:Df,detector:jT,loader:UT},GT=YT,Oc=!1,ua=f(()=>{Oc||(Oc=!0,fn("error",_T,t=>t.toLowerCase().trim()==="error"),fn("---",{db:{clear:f(()=>{},"clear")},styles:{},renderer:{draw:f(()=>{},"draw")},parser:{parse:f(()=>{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:f(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),Qc(lw,nT,tT,_w,Aw,Fw,Iw,Yw,Zw,wT,mw,fw,MT,AT,ww,fT,lT,mT,Pw,RT,NT,Ww,HT,GT))},"addDiagrams"),VT=f(()=>L(void 0,null,function*(){v.debug("Loading registered diagrams");const e=(yield Promise.allSettled(Object.entries(hr).map(a=>L(void 0,[a],function*([r,{detector:i,loader:n}]){if(n)try{Xa(r)}catch(s){try{const{diagram:o,id:l}=yield n();fn(l,o,i)}catch(o){throw v.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete hr[r],o}}})))).filter(r=>r.status==="rejected");if(e.length>0){v.error(`Failed to load ${e.length} external diagrams`);for(const r of e)v.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}}),"loadRegisteredDiagrams"),XT="graphics-document document";function Pf(t,e){t.attr("role",XT),e!==""&&t.attr("aria-roledescription",e)}f(Pf,"setA11yDiagramInfo");function Nf(t,e,r,i){if(t.insert!==void 0){if(r){const n=`chart-desc-${i}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(r)}if(e){const n=`chart-title-${i}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}f(Nf,"addSVGa11yTitleDescription");var xr,bs=(xr=class{constructor(e,r,i,n,a){this.type=e,this.text=r,this.db=i,this.parser=n,this.renderer=a}static fromText(i){return L(this,arguments,function*(e,r={}){var h,d;const n=pe(),a=Ds(e,n);e=FC(e)+` `;try{Xa(a)}catch(u){const p=Bg(a);if(!p)throw new Kc(`Diagram ${a} not found.`);const{id:g,diagram:m}=yield p();fn(g,m)}const{db:s,parser:o,renderer:l,init:c}=Xa(a);return o.parser&&(o.parser.yy=s),(h=s.clear)==null||h.call(s),c==null||c(n),r.title&&((d=s.setDiagramTitle)==null||d.call(s,r.title)),yield o.parse(e),new xr(a,e,s,o,l)})}render(e,r){return L(this,null,function*(){yield this.renderer.draw(this.text,e,r,this)})}getParser(){return this.parser}getType(){return this.type}},f(xr,"Diagram"),xr),Ic=[],ZT=f(()=>{Ic.forEach(t=>{t()}),Ic=[]},"attachFunctions"),KT=f(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function So(t){return typeof t=="undefined"||t===null}f(So,"isNothing");function zf(t){return typeof t=="object"&&t!==null}f(zf,"isObject");function qf(t){return Array.isArray(t)?t:So(t)?[]:[t]}f(qf,"toArray");function Wf(t,e){var r,i,n,a;if(e)for(a=Object.keys(e),r=0,i=a.length;ro&&(a=" ... ",e=i-o+a.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:a+t.slice(e,r).replace(/\t/g,"→")+s,pos:i-e+a.length}}f(on,"getLine");function ln(t,e){return st.repeat(" ",e-t.length)+t}f(ln,"padStart");function Uf(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],a,s=-1;a=r.exec(t.buffer);)n.push(a.index),i.push(a.index+a[0].length),t.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",l,c,h=Math.min(t.line+e.linesAfter,n.length).toString().length,d=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=on(t.buffer,i[s-l],n[s-l],t.position-(i[s]-i[s-l]),d),o=st.repeat(" ",e.indent)+ln((t.line-l+1).toString(),h)+" | "+c.str+` @@ -189,7 +189,7 @@ js-yaml/dist/js-yaml.mjs: `})]})}function qS(t={}){const{wrapper:e}=D(D({},zc()),t.components);return e?nr.jsx(e,rt(D({},t),{children:nr.jsx(Nc,D({},t))})):Nc(t)}const CL=Object.freeze(Object.defineProperty({__proto__:null,default:qS},Symbol.toStringTag,{value:"Module"}));export{hL as $,Vt as A,Yu as B,sa as C,ko as D,re as E,qg as F,fo as G,pe as H,vC as I,Cm as J,Hv as K,Sc as L,gb as M,Wl as N,ql as O,cL as P,nL as Q,oL as R,sL as S,rL as T,$ as U,Ks as V,lL as W,iL as X,er as Y,uL as Z,f as _,pt as a,$l as a$,aL as a0,$g as a1,bb as a2,Jr as a3,KS as a4,Ps as a5,uo as a6,pC as a7,Yh as a8,ZS as a9,rC as aA,ro as aB,Mc as aC,dk as aD,mb as aE,jm as aF,Um as aG,tL as aH,je as aI,uC as aJ,pu as aK,ea as aL,aa as aM,Ln as aN,mu as aO,du as aP,z1 as aQ,Ys as aR,Bh as aS,It as aT,Ti as aU,Wy as aV,Mh as aW,eL as aX,Gs as aY,_e as aZ,ri as a_,lm as aa,ku as ab,so as ac,jh as ad,ph as ae,Gm as af,kC as ag,Lg as ah,uh as ai,ki as aj,M as ak,O as al,nv as am,yL as an,gL as ao,pL as ap,at as aq,mL as ar,zv as as,xL as at,Pk as au,Yk as av,Wk as aw,qk as ax,hC as ay,e1 as az,mm as b,Xy as b0,cC as b1,eC as b2,ae as b3,q_ as b4,io as b5,R1 as b6,dC as b7,Li as b8,_r as b9,wn as ba,G1 as bb,Gv as bc,Si as bd,Sn as be,q1 as bf,ou as bg,j_ as bh,U_ as bi,tw as bj,ic as bk,Y_ as bl,no as bm,H_ as bn,Z_ as bo,Cr as bp,Te as bq,Ql as br,ao as bs,cu as bt,ys as bu,fC as bv,na as bw,CL as bx,gm as c,H as d,br as e,wu as f,pm as g,si as h,dr as i,Q as j,hh as k,v as l,gh as m,vi as n,QS as o,JS as p,ym as q,xm as r,dm as s,fm as t,Qt as u,fL as v,SC as w,_L as x,bL as y,Gr as z}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./dagre-P3YPLUS5-CeXFq1Wq.js","./graph-BbauKfQB.js","./_baseUniq-DLWEyx0q.js","./layout-CpgFbA5F.js","./_basePickBy-UIHw3QVG.js","./json-DoIU1IdZ.js","./clone-qL6R6e7B.js","./jsx-runtime-CS-_a2eV.js","./index-Ca44TZ0D.js","./index-Bqh_nw6E.js","./iframe-CrQm7WUj.js","./dayjs.min-kn1EBQqj.js","./index-DrFu-skq.js","./Serializer-DsJDcYJc.js","./c4Diagram-THADGKDP-DURVD377.js","./chunk-XVOYOM2C-C3A1cAVg.js","./flowDiagram-JSIZSE4D-5RRQnNTH.js","./chunk-DUMQOTYW-CesEDirL.js","./chunk-YWFND7JV-BUZzWDIH.js","./channel-C9Gn3gkd.js","./erDiagram-62CBQV5Y-DVkVjRgd.js","./stringify-DnirLPRY.js","./gitGraphDiagram-UL5UFKDR-BuQ3v15o.js","./chunk-OQCM5LHU-Bqj1NGSi.js","./chunk-2RYQ3QTB-D277TTZy.js","./mermaid-parser.core-D7Lfk3oe.js","./ganttDiagram-ASEIQ4P5-78gpMbwJ.js","./customParseFormat-CECOPgIS.js","./linear-DgCw1O8s.js","./init-Gi6I4Gst.js","./infoDiagram-7APDZ6AT-DKk3s9oT.js","./pieDiagram-OZX6XH5M-DoWSWPYl.js","./arc-CGPltd1w.js","./ordinal-Cboi1Yqb.js","./quadrantDiagram-VG34DGKC-CNKBWwSf.js","./xychartDiagram-LESROZAQ-DLGqRkA9.js","./requirementDiagram-FPZB6IJI-BkzHvxH4.js","./sequenceDiagram-PQT5PN7B-DFJlhQFx.js","./classDiagram-4BHYIK4I-ByJmFmYl.js","./chunk-BAVOGKFW-DyZopqvA.js","./classDiagram-v2-FI7KE7WJ-BJW7jP0G.js","./chunk-UGV5ZQQN-DIz6YliH.js","./stateDiagram-TQSDS2D4-fQq-ESgZ.js","./chunk-2JBRQKJ5-CLcKtf3M.js","./stateDiagram-v2-J5TZWJW5-Bz577HFi.js","./journeyDiagram-G5LC7W2K-5MkmSIV1.js","./timeline-definition-KYQAIZUX-Bzz22sDY.js","./mindmap-definition-FCEC46F3-Ddszh-gs.js","./cytoscape.esm-BI0LHGOR.js","./sankeyDiagram-KMMQDL5K-BOnGZHfD.js","./diagram-QS5GVLUX-U-Bx7u1Z.js","./blockDiagram-EN3ZKWFM-ngXiVgR0.js","./architectureDiagram-V6B76FHG-bdew-Ddd.js"] + __vite__mapDeps.viteFileDeps = ["./dagre-P3YPLUS5-B2XW2uPk.js","./graph-wuI2A7_P.js","./_baseUniq-JfSCQjs8.js","./layout-CNdX_jlv.js","./_basePickBy-Cka5hBJe.js","./json-BhmxDxce.js","./clone-Bp7QSEXO.js","./jsx-runtime-CS-_a2eV.js","./index-Ca44TZ0D.js","./index-Bqh_nw6E.js","./iframe-BNbdtpq9.js","./dayjs.min-kn1EBQqj.js","./index-DrFu-skq.js","./Serializer-DsJDcYJc.js","./c4Diagram-THADGKDP-mY8mjMHo.js","./chunk-XVOYOM2C-zOgot8-d.js","./flowDiagram-JSIZSE4D-B_Ls99NY.js","./chunk-DUMQOTYW-CXsvfPAi.js","./chunk-YWFND7JV-Df64Lrc0.js","./channel-B37zCwJ6.js","./erDiagram-62CBQV5Y-r-scVNHL.js","./stringify-DnirLPRY.js","./gitGraphDiagram-UL5UFKDR-BQ377EDl.js","./chunk-OQCM5LHU-BNRaZOS_.js","./chunk-2RYQ3QTB-Bwu55N5N.js","./mermaid-parser.core-B5qxKanj.js","./ganttDiagram-ASEIQ4P5-HoEpCjA1.js","./customParseFormat-CECOPgIS.js","./linear-CvLLWfVT.js","./init-Gi6I4Gst.js","./infoDiagram-7APDZ6AT-CIcI_zld.js","./pieDiagram-OZX6XH5M-Bu0ZpKbB.js","./arc-CyEqX_RK.js","./ordinal-Cboi1Yqb.js","./quadrantDiagram-VG34DGKC-BTY3QjFH.js","./xychartDiagram-LESROZAQ-BqbOHeeh.js","./requirementDiagram-FPZB6IJI-BOm83o6L.js","./sequenceDiagram-PQT5PN7B-CN9UeIty.js","./classDiagram-4BHYIK4I-DmurYMkc.js","./chunk-BAVOGKFW-DXM1shxP.js","./classDiagram-v2-FI7KE7WJ-0LFbaZkA.js","./chunk-UGV5ZQQN-BBwAwnj9.js","./stateDiagram-TQSDS2D4-CMNkZd09.js","./chunk-2JBRQKJ5-DTPl3fdd.js","./stateDiagram-v2-J5TZWJW5-CgvaZRch.js","./journeyDiagram-G5LC7W2K-Do6w_qs5.js","./timeline-definition-KYQAIZUX-CPQW5OwW.js","./mindmap-definition-FCEC46F3-BiIE9Yg1.js","./cytoscape.esm-BI0LHGOR.js","./sankeyDiagram-KMMQDL5K-MuXWLZMK.js","./diagram-QS5GVLUX-BUbABeEj.js","./blockDiagram-EN3ZKWFM-BCBVUS81.js","./architectureDiagram-V6B76FHG-_GzJ0Rse.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/pr-preview/pr-419/assets/ValueSelector.stories-jHQ3mi0m.js b/pr-preview/pr-419/assets/ValueSelector.stories-CZKOQEJi.js similarity index 97% rename from pr-preview/pr-419/assets/ValueSelector.stories-jHQ3mi0m.js rename to pr-preview/pr-419/assets/ValueSelector.stories-CZKOQEJi.js index bd85276f3..95173b0e3 100644 --- a/pr-preview/pr-419/assets/ValueSelector.stories-jHQ3mi0m.js +++ b/pr-preview/pr-419/assets/ValueSelector.stories-CZKOQEJi.js @@ -1,4 +1,4 @@ -var T=Object.defineProperty,f=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var d=(e,r,o)=>r in e?T(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,s=(e,r)=>{for(var o in r||(r={}))j.call(r,o)&&d(e,o,r[o]);if(c)for(var o of c(r))y.call(r,o)&&d(e,o,r[o]);return e},p=(e,r)=>f(e,I(r));var u=(e,r,o)=>new Promise((h,m)=>{var D=t=>{try{n(o.next(t))}catch(i){m(i)}},S=t=>{try{n(o.throw(t))}catch(i){m(i)}},n=t=>t.done?h(t.value):Promise.resolve(t.value).then(D,S);n((o=o.apply(e,r)).next())});import{_ as R}from"./iframe-CrQm7WUj.js";import{j as l}from"./jsx-runtime-CS-_a2eV.js";import{r as x}from"./index-Ca44TZ0D.js";import"../sb-preview/runtime.js";const U=x.lazy(()=>u(void 0,null,function*(){return yield R(()=>import("./GlobalNavigation-Be6idjSk.js").then(e=>e.aw),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)})),V={title:"Components/Data Entry/QueryItem/ValueSelector",component:U,parameters:{docs:{description:{component:"DO NOT USE THIS OR YOU WILL BE FIRED! This is a parent component of this component group, and is not supposed to be used on its own."}}},decorators:[e=>l.jsx(x.Suspense,{children:l.jsx(e,{})})],args:{}},a={};var _,E,O;a.parameters=p(s({},a.parameters),{docs:p(s({},(_=a.parameters)==null?void 0:_.docs),{source:s({originalSource:"{}"},(O=(E=a.parameters)==null?void 0:E.docs)==null?void 0:O.source)})});const W=["DontUseThisOrYouWillBeFired"];export{a as DontUseThisOrYouWillBeFired,W as __namedExportsOrder,V as default}; +var T=Object.defineProperty,f=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var d=(e,r,o)=>r in e?T(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,s=(e,r)=>{for(var o in r||(r={}))j.call(r,o)&&d(e,o,r[o]);if(c)for(var o of c(r))y.call(r,o)&&d(e,o,r[o]);return e},p=(e,r)=>f(e,I(r));var u=(e,r,o)=>new Promise((h,m)=>{var D=t=>{try{n(o.next(t))}catch(i){m(i)}},S=t=>{try{n(o.throw(t))}catch(i){m(i)}},n=t=>t.done?h(t.value):Promise.resolve(t.value).then(D,S);n((o=o.apply(e,r)).next())});import{_ as R}from"./iframe-BNbdtpq9.js";import{j as l}from"./jsx-runtime-CS-_a2eV.js";import{r as x}from"./index-Ca44TZ0D.js";import"../sb-preview/runtime.js";const U=x.lazy(()=>u(void 0,null,function*(){return yield R(()=>import("./GlobalNavigation-Be6idjSk.js").then(e=>e.aw),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)})),V={title:"Components/Data Entry/QueryItem/ValueSelector",component:U,parameters:{docs:{description:{component:"DO NOT USE THIS OR YOU WILL BE FIRED! This is a parent component of this component group, and is not supposed to be used on its own."}}},decorators:[e=>l.jsx(x.Suspense,{children:l.jsx(e,{})})],args:{}},a={};var _,E,O;a.parameters=p(s({},a.parameters),{docs:p(s({},(_=a.parameters)==null?void 0:_.docs),{source:s({originalSource:"{}"},(O=(E=a.parameters)==null?void 0:E.docs)==null?void 0:O.source)})});const W=["DontUseThisOrYouWillBeFired"];export{a as DontUseThisOrYouWillBeFired,W as __namedExportsOrder,V as default}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["./GlobalNavigation-Be6idjSk.js","./jsx-runtime-CS-_a2eV.js","./index-Ca44TZ0D.js","./ConfigProvider-aHzMMMgW.js","./LightTheme-BZ07JyGW.js","./index-BxrKW6hI.js","./useToken-Dnjd_Rha.js","./extends-CCbyfPlC.js","./Serializer-DsJDcYJc.js","./index-DFiuTWKW.js","./isNativeReflectConstruct-DQQXTUsj.js","./row-BOpWxek0.js","./_baseClone-BwI25-yt.js","./_getPrototype-fDUIJvdn.js","./dayjs.min-kn1EBQqj.js","./customParseFormat-CECOPgIS.js","./GlobalNavigation-CbLH_p75.css"] diff --git a/pr-preview/pr-419/assets/WithTooltip-KJL26V4Q-zZok1gnI.js b/pr-preview/pr-419/assets/WithTooltip-KJL26V4Q-B525ZNjS.js similarity index 72% rename from pr-preview/pr-419/assets/WithTooltip-KJL26V4Q-zZok1gnI.js rename to pr-preview/pr-419/assets/WithTooltip-KJL26V4Q-B525ZNjS.js index 44cd88fbb..b6dcf289d 100644 --- a/pr-preview/pr-419/assets/WithTooltip-KJL26V4Q-zZok1gnI.js +++ b/pr-preview/pr-419/assets/WithTooltip-KJL26V4Q-B525ZNjS.js @@ -1 +1 @@ -import{W as b,W as f,b as u}from"./index-BdmlDa2_.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./index-Ca44TZ0D.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./index-BObpwDOh.js";import"./_getPrototype-fDUIJvdn.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";export{b as WithToolTipState,f as WithTooltip,u as WithTooltipPure}; +import{W as b,W as f,b as u}from"./index-XNuu3Woq.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./index-Ca44TZ0D.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./index-BObpwDOh.js";import"./_getPrototype-fDUIJvdn.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";export{b as WithToolTipState,f as WithTooltip,u as WithTooltipPure}; diff --git a/pr-preview/pr-419/assets/_basePickBy-UIHw3QVG.js b/pr-preview/pr-419/assets/_basePickBy-Cka5hBJe.js similarity index 94% rename from pr-preview/pr-419/assets/_basePickBy-UIHw3QVG.js rename to pr-preview/pr-419/assets/_basePickBy-Cka5hBJe.js index 371b8dd23..f2e5d567e 100644 --- a/pr-preview/pr-419/assets/_basePickBy-UIHw3QVG.js +++ b/pr-preview/pr-419/assets/_basePickBy-Cka5hBJe.js @@ -1 +1 @@ -import{e as v,c as l,g as x,k as N,j as P,l as A,m as M,n as b,t as p,o as w}from"./_baseUniq-DLWEyx0q.js";import{aI as g,ay as E,aJ as F,aK as _,aL as B,aM as O,aN as T,aO as L,aP as S,aQ as $}from"./Using existing ones-1ACZX-0W.js";var G=/\s/;function K(n){for(var r=n.length;r--&&G.test(n.charAt(r)););return r}var R=/^\s+/;function c(n){return n&&n.slice(0,K(n)+1).replace(R,"")}var I=NaN,q=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,H=/^0o[0-7]+$/i,J=parseInt;function Q(n){if(typeof n=="number")return n;if(v(n))return I;if(g(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=g(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=c(n);var t=C.test(n);return t||H.test(n)?J(n.slice(2),t?2:8):q.test(n)?I:+n}var m=1/0,W=17976931348623157e292;function X(n){if(!n)return n===0?n:0;if(n=Q(n),n===m||n===-m){var r=n<0?-1:1;return r*W}return n===n?n:0}function Y(n){var r=X(n),t=r%1;return r===r?t?r-t:r:0}function tn(n){var r=n==null?0:n.length;return r?l(n,1):[]}var o=Object.prototype,y=o.hasOwnProperty,an=E(function(n,r){n=Object(n);var t=-1,e=r.length,i=e>2?r[2]:void 0;for(i&&F(r[0],r[1],i)&&(e=1);++t-1?i[f?r[a]:a]:void 0}}var U=Math.max;function Z(n,r,t){var e=n==null?0:n.length;if(!e)return-1;var i=t==null?0:Y(t);return i<0&&(i=U(e+i,0)),P(n,x(r),i)}var sn=D(Z);function z(n,r){var t=-1,e=O(n)?Array(n.length):[];return A(n,function(i,f,a){e[++t]=r(i,f,a)}),e}function fn(n,r){var t=T(n)?M:z;return t(n,x(r))}function V(n,r){return n2?r[2]:void 0;for(i&&F(r[0],r[1],i)&&(e=1);++t-1?i[f?r[a]:a]:void 0}}var U=Math.max;function Z(n,r,t){var e=n==null?0:n.length;if(!e)return-1;var i=t==null?0:Y(t);return i<0&&(i=U(e+i,0)),P(n,x(r),i)}var sn=D(Z);function z(n,r){var t=-1,e=O(n)?Array(n.length):[];return A(n,function(i,f,a){e[++t]=r(i,f,a)}),e}function fn(n,r){var t=T(n)?M:z;return t(n,x(r))}function V(n,r){return n-1}function $(n){return sn(n)?Rn(n):Cn(n)}var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,er=/^\w*$/;function B(n,r){if(T(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||U(n)?!0:er.test(n)||!rr.test(n)||r!=null&&n in Object(r)}var tr=500;function ir(n){var r=Fn(n,function(t){return e.size===tr&&e.clear(),t}),e=r.cache;return r}var fr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ar=/\\(\\)?/g,sr=ir(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(fr,function(e,t,f,i){r.push(f?i.replace(ar,"$1"):t||e)}),r});function ur(n){return n==null?"":dn(n)}function An(n,r){return T(n)?n:B(n,r)?[n]:sr(ur(n))}var lr=1/0;function R(n){if(typeof n=="string"||U(n))return n;var r=n+"";return r=="0"&&1/n==-lr?"-0":r}function yn(n,r){r=An(r,n);for(var e=0,t=r.length;n!=null&&e0&&e(s)?r>1?cr(s,r-1,e,t,f):K(f,s):t||(f[f.length]=s)}return f}function br(n,r,e,t){var f=-1,i=n==null?0:n.length;for(t&&i&&(e=n[++f]);++fs))return!1;var b=i.get(n),c=i.get(r);if(b&&c)return b==r&&c==n;var l=-1,g=!0,h=e&Re?new E:void 0;for(i.set(n,r),i.set(r,n);++l=St){var b=r?null:Et(n);if(b)return Y(b);a=!1,f=Pn,u=new E}else u=r?[]:s;n:for(;++t-1}function $(n){return sn(n)?Rn(n):Cn(n)}var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,er=/^\w*$/;function B(n,r){if(T(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||U(n)?!0:er.test(n)||!rr.test(n)||r!=null&&n in Object(r)}var tr=500;function ir(n){var r=Fn(n,function(t){return e.size===tr&&e.clear(),t}),e=r.cache;return r}var fr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ar=/\\(\\)?/g,sr=ir(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(fr,function(e,t,f,i){r.push(f?i.replace(ar,"$1"):t||e)}),r});function ur(n){return n==null?"":dn(n)}function An(n,r){return T(n)?n:B(n,r)?[n]:sr(ur(n))}var lr=1/0;function R(n){if(typeof n=="string"||U(n))return n;var r=n+"";return r=="0"&&1/n==-lr?"-0":r}function yn(n,r){r=An(r,n);for(var e=0,t=r.length;n!=null&&e0&&e(s)?r>1?cr(s,r-1,e,t,f):K(f,s):t||(f[f.length]=s)}return f}function br(n,r,e,t){var f=-1,i=n==null?0:n.length;for(t&&i&&(e=n[++f]);++fs))return!1;var b=i.get(n),c=i.get(r);if(b&&c)return b==r&&c==n;var l=-1,g=!0,h=e&Re?new E:void 0;for(i.set(n,r),i.set(r,n);++l=St){var b=r?null:Et(n);if(b)return Y(b);a=!1,f=Pn,u=new E}else u=r?[]:s;n:for(;++tr*r+X*X&&(M=w,N=p),{cx:M,cy:N,x01:-n,y01:-d,x11:M*(v/T-1),y11:N*(v/T-1)}}function hn(){var l=cn,h=yn,D=Q(0),S=null,v=gn,R=dn,V=mn,a=null,E=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=R.apply(this,arguments)-an,W=un(c-f),t=c>f;if(a||(a=n=E()),sy))a.moveTo(0,0);else if(W>tn-y)a.moveTo(s*Y(f),s*O(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*Y(c),u*O(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,A=f,T=c,P=W,I=W,M=V.apply(this,arguments)/2,N=M>y&&(S?+S.apply(this,arguments):j(u*u+s*s)),w=_(un(s-u)/2,+D.apply(this,arguments)),p=w,x=w,e,r;if(N>y){var X=sn(N/u*O(M)),z=sn(N/s*O(M));(P-=X*2)>y?(X*=t?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(I=0,m=g=(f+c)/2)}var Z=s*Y(m),$=s*O(m),B=u*Y(T),C=u*O(T);if(w>y){var F=s*Y(g),G=s*O(g),J=u*Y(A),K=u*O(A),q;if(Wy?x>y?(e=H(J,K,Z,$,s,x,t),r=H(F,G,B,C,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(B,C):p>y?(e=H(B,C,F,G,u,-p,t),r=H(Z,$,J,K,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),pr*r+X*X&&(M=w,N=p),{cx:M,cy:N,x01:-n,y01:-d,x11:M*(v/T-1),y11:N*(v/T-1)}}function hn(){var l=cn,h=yn,D=Q(0),S=null,v=gn,R=dn,V=mn,a=null,E=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=R.apply(this,arguments)-an,W=un(c-f),t=c>f;if(a||(a=n=E()),sy))a.moveTo(0,0);else if(W>tn-y)a.moveTo(s*Y(f),s*O(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*Y(c),u*O(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,A=f,T=c,P=W,I=W,M=V.apply(this,arguments)/2,N=M>y&&(S?+S.apply(this,arguments):j(u*u+s*s)),w=_(un(s-u)/2,+D.apply(this,arguments)),p=w,x=w,e,r;if(N>y){var X=sn(N/u*O(M)),z=sn(N/s*O(M));(P-=X*2)>y?(X*=t?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(I=0,m=g=(f+c)/2)}var Z=s*Y(m),$=s*O(m),B=u*Y(T),C=u*O(T);if(w>y){var F=s*Y(g),G=s*O(g),J=u*Y(A),K=u*O(A),q;if(Wy?x>y?(e=H(J,K,Z,$,s,x,t),r=H(F,G,B,C,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(B,C):p>y?(e=H(B,C,F,G,u,-p,t),r=H(Z,$,J,K,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),pF in C?je(C,F,{enumerable:!0,configurable:!0,writable:!0,value:A}):C[F]=A,le=(C,F)=>{for(var A in F||(F={}))er.call(F,A)&&Re(C,A,F[A]);if(Ie)for(var A of Ie(F))rr.call(F,A)&&Re(C,A,F[A]);return C},fe=(C,F)=>_e(C,tr(F));var Qt=(C,F,A)=>new Promise((Y,N)=>{var g=e=>{try{i(A.next(e))}catch(r){N(r)}},o=e=>{try{i(A.throw(e))}catch(r){N(r)}},i=e=>e.done?Y(e.value):Promise.resolve(e.value).then(g,o);i((A=A.apply(C,F)).next())});import{F as ir,_ as nt,aF as ar,aG as nr,q as or,r as sr,s as hr,g as lr,c as fr,b as cr,d as ue,l as Ue,j as gr,t as ur,K as dr,aa as vr,D as Ce,aH as Ne}from"./Using existing ones-1ACZX-0W.js";import{p as pr}from"./chunk-OQCM5LHU-Bqj1NGSi.js";import{I as yr}from"./chunk-2RYQ3QTB-D277TTZy.js";import{p as Er}from"./mermaid-parser.core-D7Lfk3oe.js";import{c as Ye}from"./cytoscape.esm-BI0LHGOR.js";import{c as Me,g as mr}from"./index-Ca44TZ0D.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";import"./clone-qL6R6e7B.js";var Xe={exports:{}},me={exports:{}},Te={exports:{}},Se;function Tr(){return Se||(Se=1,function(C,F){(function(Y,N){C.exports=N()})(Me,function(){return function(A){var Y={};function N(g){if(Y[g])return Y[g].exports;var o=Y[g]={i:g,l:!1,exports:{}};return A[g].call(o.exports,o,o.exports,N),o.l=!0,o.exports}return N.m=A,N.c=Y,N.i=function(g){return g},N.d=function(g,o,i){N.o(g,o)||Object.defineProperty(g,o,{configurable:!1,enumerable:!0,get:i})},N.n=function(g){var o=g&&g.__esModule?function(){return g.default}:function(){return g};return N.d(o,"a",o),o},N.o=function(g,o){return Object.prototype.hasOwnProperty.call(g,o)},N.p="",N(N.s=28)}([function(A,Y,N){function g(){}g.QUALITY=1,g.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,g.DEFAULT_INCREMENTAL=!1,g.DEFAULT_ANIMATION_ON_LAYOUT=!0,g.DEFAULT_ANIMATION_DURING_LAYOUT=!1,g.DEFAULT_ANIMATION_PERIOD=50,g.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,g.DEFAULT_GRAPH_MARGIN=15,g.NODE_DIMENSIONS_INCLUDE_LABELS=!1,g.SIMPLE_NODE_SIZE=40,g.SIMPLE_NODE_HALF_SIZE=g.SIMPLE_NODE_SIZE/2,g.EMPTY_COMPOUND_NODE_SIZE=40,g.MIN_EDGE_LENGTH=1,g.WORLD_BOUNDARY=1e6,g.INITIAL_WORLD_BOUNDARY=g.WORLD_BOUNDARY/1e3,g.WORLD_CENTER_X=1200,g.WORLD_CENTER_Y=900,A.exports=g},function(A,Y,N){var g=N(2),o=N(8),i=N(9);function e(f,a,p){g.call(this,p),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=p,this.bendpoints=[],this.source=f,this.target=a}e.prototype=Object.create(g.prototype);for(var r in g)e[r]=g[r];e.prototype.getSource=function(){return this.source},e.prototype.getTarget=function(){return this.target},e.prototype.isInterGraph=function(){return this.isInterGraph},e.prototype.getLength=function(){return this.length},e.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},e.prototype.getBendpoints=function(){return this.bendpoints},e.prototype.getLca=function(){return this.lca},e.prototype.getSourceInLca=function(){return this.sourceInLca},e.prototype.getTargetInLca=function(){return this.targetInLca},e.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"},e.prototype.getOtherEndInGraph=function(f,a){for(var p=this.getOtherEnd(f),t=a.getGraphManager().getRoot();;){if(p.getOwner()==a)return p;if(p.getOwner()==t)break;p=p.getOwner().getParent()}return null},e.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=o.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=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},e.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=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},A.exports=e},function(A,Y,N){function g(o){this.vGraphObject=o}A.exports=g},function(A,Y,N){var g=N(2),o=N(10),i=N(13),e=N(0),r=N(16),f=N(5);function a(t,h,s,c){s==null&&c==null&&(c=h),g.call(this,c),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=o.MIN_VALUE,this.inclusionTreeDepth=o.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=t,s!=null&&h!=null?this.rect=new i(h.x,h.y,s.width,s.height):this.rect=new i}a.prototype=Object.create(g.prototype);for(var p in g)a[p]=g[p];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(t){this.rect.width=t},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(t){this.rect.height=t},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(t,h){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=h.width,this.rect.height=h.height},a.prototype.setCenter=function(t,h){this.rect.x=t-this.rect.width/2,this.rect.y=h-this.rect.height/2},a.prototype.setLocation=function(t,h){this.rect.x=t,this.rect.y=h},a.prototype.moveBy=function(t,h){this.rect.x+=t,this.rect.y+=h},a.prototype.getEdgeListToNode=function(t){var h=[],s=this;return s.edges.forEach(function(c){if(c.target==t){if(c.source!=s)throw"Incorrect edge source!";h.push(c)}}),h},a.prototype.getEdgesBetween=function(t){var h=[],s=this;return s.edges.forEach(function(c){if(!(c.source==s||c.target==s))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&h.push(c)}),h},a.prototype.getNeighborsList=function(){var t=new Set,h=this;return h.edges.forEach(function(s){if(s.source==h)t.add(s.target);else{if(s.target!=h)throw"Incorrect incidency!";t.add(s.source)}}),t},a.prototype.withChildren=function(){var t=new Set,h,s;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),l=0;lh?(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(h+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(s+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>s?(this.rect.y-=(this.labelHeight-s)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(s+this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(t){var h=this.rect.x;h>e.WORLD_BOUNDARY?h=e.WORLD_BOUNDARY:h<-e.WORLD_BOUNDARY&&(h=-e.WORLD_BOUNDARY);var s=this.rect.y;s>e.WORLD_BOUNDARY?s=e.WORLD_BOUNDARY:s<-e.WORLD_BOUNDARY&&(s=-e.WORLD_BOUNDARY);var c=new f(h,s),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.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()},A.exports=a},function(A,Y,N){var g=N(0);function o(){}for(var i in g)o[i]=g[i];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,A.exports=o},function(A,Y,N){function g(o,i){o==null&&i==null?(this.x=0,this.y=0):(this.x=o,this.y=i)}g.prototype.getX=function(){return this.x},g.prototype.getY=function(){return this.y},g.prototype.setX=function(o){this.x=o},g.prototype.setY=function(o){this.y=o},g.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},g.prototype.getCopy=function(){return new g(this.x,this.y)},g.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},A.exports=g},function(A,Y,N){var g=N(2),o=N(10),i=N(0),e=N(7),r=N(3),f=N(1),a=N(13),p=N(12),t=N(11);function h(c,l,T){g.call(this,T),this.estimatedSize=o.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof e?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}h.prototype=Object.create(g.prototype);for(var s in g)h[s]=g[s];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(c,l,T){if(l==null&&T==null){var u=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var d=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(d.source=l,d.target=T,d.isInterGraph=!1,this.getEdges().push(d),l.edges.push(d),T!=l&&T.edges.push(d),d)}},h.prototype.remove=function(c){var l=c;if(c instanceof r){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 T=l.edges.slice(),u,d=T.length,L=0;L-1&&G>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(M,1),u.target!=u.source&&u.target.edges.splice(G,1);var b=u.source.owner.getEdges().indexOf(u);if(b==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(b,1)}},h.prototype.updateLeftTop=function(){for(var c=o.MAX_VALUE,l=o.MAX_VALUE,T,u,d,L=this.getNodes(),b=L.length,M=0;MT&&(c=T),l>u&&(l=u)}return c==o.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?d=L[0].getParent().paddingLeft:d=this.margin,this.left=l-d,this.top=c-d,new p(this.left,this.top))},h.prototype.updateBounds=function(c){for(var l=o.MAX_VALUE,T=-o.MAX_VALUE,u=o.MAX_VALUE,d=-o.MAX_VALUE,L,b,M,G,J,V=this.nodes,Q=V.length,D=0;DL&&(l=L),TM&&(u=M),dL&&(l=L),TM&&(u=M),d=this.nodes.length){var Q=0;T.forEach(function(D){D.owner==c&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},A.exports=h},function(A,Y,N){var g,o=N(1);function i(e){g=N(6),this.layout=e,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var e=this.layout.newGraph(),r=this.layout.newNode(null),f=this.add(e,r);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(e,r,f,a,p){if(f==null&&a==null&&p==null){if(e==null)throw"Graph is null!";if(r==null)throw"Parent node is null!";if(this.graphs.indexOf(e)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(e),e.parent!=null)throw"Already has a parent!";if(r.child!=null)throw"Already has a child!";return e.parent=r,r.child=e,e}else{p=f,a=r,f=e;var t=a.getOwner(),h=p.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==h)return f.isInterGraph=!1,t.add(f,a,p);if(f.isInterGraph=!0,f.source=a,f.target=p,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}},i.prototype.remove=function(e){if(e instanceof g){var r=e;if(r.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(r==this.rootGraph||r.parent!=null&&r.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(r.getEdges());for(var a,p=f.length,t=0;t=e.getRight()?r[0]+=Math.min(e.getX()-i.getX(),i.getRight()-e.getRight()):e.getX()<=i.getX()&&e.getRight()>=i.getRight()&&(r[0]+=Math.min(i.getX()-e.getX(),e.getRight()-i.getRight())),i.getY()<=e.getY()&&i.getBottom()>=e.getBottom()?r[1]+=Math.min(e.getY()-i.getY(),i.getBottom()-e.getBottom()):e.getY()<=i.getY()&&e.getBottom()>=i.getBottom()&&(r[1]+=Math.min(i.getY()-e.getY(),e.getBottom()-i.getBottom()));var p=Math.abs((e.getCenterY()-i.getCenterY())/(e.getCenterX()-i.getCenterX()));e.getCenterY()===i.getCenterY()&&e.getCenterX()===i.getCenterX()&&(p=1);var t=p*r[0],h=r[1]/p;r[0]t)return r[0]=f,r[1]=s,r[2]=p,r[3]=V,!1;if(ap)return r[0]=h,r[1]=a,r[2]=G,r[3]=t,!1;if(fp?(r[0]=l,r[1]=T,n=!0):(r[0]=c,r[1]=s,n=!0):v===y&&(f>p?(r[0]=h,r[1]=s,n=!0):(r[0]=u,r[1]=T,n=!0)),-E===y?p>f?(r[2]=J,r[3]=V,m=!0):(r[2]=G,r[3]=M,m=!0):E===y&&(p>f?(r[2]=b,r[3]=M,m=!0):(r[2]=Q,r[3]=V,m=!0)),n&&m)return!1;if(f>p?a>t?(I=this.getCardinalDirection(v,y,4),w=this.getCardinalDirection(E,y,2)):(I=this.getCardinalDirection(-v,y,3),w=this.getCardinalDirection(-E,y,1)):a>t?(I=this.getCardinalDirection(-v,y,1),w=this.getCardinalDirection(-E,y,3)):(I=this.getCardinalDirection(v,y,2),w=this.getCardinalDirection(E,y,4)),!n)switch(I){case 1:H=s,R=f+-L/y,r[0]=R,r[1]=H;break;case 2:R=u,H=a+d*y,r[0]=R,r[1]=H;break;case 3:H=T,R=f+L/y,r[0]=R,r[1]=H;break;case 4:R=l,H=a+-d*y,r[0]=R,r[1]=H;break}if(!m)switch(w){case 1:k=M,x=p+-rt/y,r[2]=x,r[3]=k;break;case 2:x=Q,k=t+D*y,r[2]=x,r[3]=k;break;case 3:k=V,x=p+rt/y,r[2]=x,r[3]=k;break;case 4:x=J,k=t+-D*y,r[2]=x,r[3]=k;break}}return!1},o.getCardinalDirection=function(i,e,r){return i>e?r:1+r%4},o.getIntersection=function(i,e,r,f){if(f==null)return this.getIntersection2(i,e,r);var a=i.x,p=i.y,t=e.x,h=e.y,s=r.x,c=r.y,l=f.x,T=f.y,u=void 0,d=void 0,L=void 0,b=void 0,M=void 0,G=void 0,J=void 0,V=void 0,Q=void 0;return L=h-p,M=a-t,J=t*p-a*h,b=T-c,G=s-l,V=l*c-s*T,Q=L*G-b*M,Q===0?null:(u=(M*V-G*J)/Q,d=(b*J-L*V)/Q,new g(u,d))},o.angleOfVector=function(i,e,r,f){var a=void 0;return i!==r?(a=Math.atan((f-e)/(r-i)),r=0){var T=(-s+Math.sqrt(s*s-4*h*c))/(2*h),u=(-s-Math.sqrt(s*s-4*h*c))/(2*h),d=null;return T>=0&&T<=1?[T]:u>=0&&u<=1?[u]:d}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,A.exports=o},function(A,Y,N){function g(){}g.sign=function(o){return o>0?1:o<0?-1:0},g.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},g.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},A.exports=g},function(A,Y,N){function g(){}g.MAX_VALUE=2147483647,g.MIN_VALUE=-2147483648,A.exports=g},function(A,Y,N){var g=function(){function a(p,t){for(var h=0;h0&&c;){for(L.push(M[0]);L.length>0&&c;){var G=L[0];L.splice(0,1),d.add(G);for(var J=G.getEdges(),u=0;u-1&&M.splice(rt,1)}d=new Set,b=new Map}}return s},h.prototype.createDummyNodesForBendpoints=function(s){for(var c=[],l=s.source,T=this.graphManager.calcLowestCommonAncestor(s.source,s.target),u=0;u0){for(var T=this.edgeToDummyNodes.get(l),u=0;u=0&&c.splice(V,1);var Q=b.getNeighborsList();Q.forEach(function(n){if(l.indexOf(n)<0){var m=T.get(n),v=m-1;v==1&&G.push(n),T.set(n,v)}})}l=l.concat(G),(c.length==1||c.length==2)&&(u=!0,d=c[0])}return d},h.prototype.setGraphManager=function(s){this.graphManager=s},A.exports=h},function(A,Y,N){function g(){}g.seed=1,g.x=0,g.nextDouble=function(){return g.x=Math.sin(g.seed++)*1e4,g.x-Math.floor(g.x)},A.exports=g},function(A,Y,N){var g=N(5);function o(i,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(i){this.lworldExtX=i},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(i){this.lworldExtY=i},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},o.prototype.transformX=function(i){var e=0,r=this.lworldExtX;return r!=0&&(e=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/r),e},o.prototype.transformY=function(i){var e=0,r=this.lworldExtY;return r!=0&&(e=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/r),e},o.prototype.inverseTransformX=function(i){var e=0,r=this.ldeviceExtX;return r!=0&&(e=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/r),e},o.prototype.inverseTransformY=function(i){var e=0,r=this.ldeviceExtY;return r!=0&&(e=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/r),e},o.prototype.inverseTransformPoint=function(i){var e=new g(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return e},A.exports=o},function(A,Y,N){function g(t){if(Array.isArray(t)){for(var h=0,s=Array(t.length);hi.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),h,s=0;s0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s,c,l,T,u=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,s=0;sL||d>L)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(L=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>L||d>L)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},a.prototype.isConverged=function(){var t,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=u.length||L>=u[0].length)){for(var b=0;ba}}]),r}();A.exports=e},function(A,Y,N){function g(){}g.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 i=Math.min(this.m,this.n);this.s=function(Nt){for(var Mt=[];Nt-- >0;)Mt.push(0);return Mt}(Math.min(this.m+1,this.n)),this.U=function(Nt){var Mt=function Zt(Gt){if(Gt.length==0)return 0;for(var $t=[],Ft=0;Ft0;)Mt.push(0);return Mt}(this.n),r=function(Nt){for(var Mt=[];Nt-- >0;)Mt.push(0);return Mt}(this.m),f=!0,a=Math.min(this.m-1,this.n),p=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;E--)if(this.s[E]!==0){for(var y=E+1;y=0;W--){if(function(Nt,Mt){return Nt&&Mt}(W0;){var q=void 0,Rt=void 0;for(q=n-2;q>=-1&&q!==-1;q--)if(Math.abs(e[q])<=lt+_*(Math.abs(this.s[q])+Math.abs(this.s[q+1]))){e[q]=0;break}if(q===n-2)Rt=4;else{var Lt=void 0;for(Lt=n-1;Lt>=q&&Lt!==q;Lt--){var vt=(Lt!==n?Math.abs(e[Lt]):0)+(Lt!==q+1?Math.abs(e[Lt-1]):0);if(Math.abs(this.s[Lt])<=lt+_*vt){this.s[Lt]=0;break}}Lt===q?Rt=3:Lt===n-1?Rt=1:(Rt=2,q=Lt)}switch(q++,Rt){case 1:{var it=e[n-2];e[n-2]=0;for(var ut=n-2;ut>=q;ut--){var Tt=g.hypot(this.s[ut],it),At=this.s[ut]/Tt,Dt=it/Tt;this.s[ut]=Tt,ut!==q&&(it=-Dt*e[ut-1],e[ut-1]=At*e[ut-1]);for(var mt=0;mt=this.s[q+1]);){var Ct=this.s[q];if(this.s[q]=this.s[q+1],this.s[q+1]=Ct,qMath.abs(i)?(e=i/o,e=Math.abs(o)*Math.sqrt(1+e*e)):i!=0?(e=o/i,e=Math.abs(i)*Math.sqrt(1+e*e)):e=0,e},A.exports=g},function(A,Y,N){var g=function(){function e(r,f){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,e),this.sequence1=r,this.sequence2=f,this.match_score=a,this.mismatch_penalty=p,this.gap_penalty=t,this.iMax=r.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;r--){var f=this.listeners[r];f.event===i&&f.callback===e&&this.listeners.splice(r,1)}},o.emit=function(i,e){for(var r=0;r{var Y={45:(i,e,r)=>{var f={};f.layoutBase=r(551),f.CoSEConstants=r(806),f.CoSEEdge=r(767),f.CoSEGraph=r(880),f.CoSEGraphManager=r(578),f.CoSELayout=r(765),f.CoSENode=r(991),f.ConstraintHandler=r(902),i.exports=f},806:(i,e,r)=>{var f=r(551).FDLayoutConstants;function a(){}for(var p in f)a[p]=f[p];a.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,a.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,a.DEFAULT_COMPONENT_SEPERATION=60,a.TILE=!0,a.TILING_PADDING_VERTICAL=10,a.TILING_PADDING_HORIZONTAL=10,a.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,a.ENFORCE_CONSTRAINTS=!0,a.APPLY_LAYOUT=!0,a.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,a.TREE_REDUCTION_ON_INCREMENTAL=!0,a.PURE_INCREMENTAL=a.DEFAULT_INCREMENTAL,i.exports=a},767:(i,e,r)=>{var f=r(551).FDLayoutEdge;function a(t,h,s){f.call(this,t,h,s)}a.prototype=Object.create(f.prototype);for(var p in f)a[p]=f[p];i.exports=a},880:(i,e,r)=>{var f=r(551).LGraph;function a(t,h,s){f.call(this,t,h,s)}a.prototype=Object.create(f.prototype);for(var p in f)a[p]=f[p];i.exports=a},578:(i,e,r)=>{var f=r(551).LGraphManager;function a(t){f.call(this,t)}a.prototype=Object.create(f.prototype);for(var p in f)a[p]=f[p];i.exports=a},765:(i,e,r)=>{var f=r(551).FDLayout,a=r(578),p=r(880),t=r(991),h=r(767),s=r(806),c=r(902),l=r(551).FDLayoutConstants,T=r(551).LayoutConstants,u=r(551).Point,d=r(551).PointD,L=r(551).DimensionD,b=r(551).Layout,M=r(551).Integer,G=r(551).IGeometry,J=r(551).LGraph,V=r(551).Transform,Q=r(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}D.prototype=Object.create(f.prototype);for(var rt in f)D[rt]=f[rt];D.prototype.newGraphManager=function(){var n=new a(this);return this.graphManager=n,n},D.prototype.newGraph=function(n){return new p(null,this.graphManager,n)},D.prototype.newNode=function(n){return new t(this.graphManager,n)},D.prototype.newEdge=function(n){return new h(null,null,n)},D.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(s.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=s.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=s.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)},D.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.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(s.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),v=this.nodesWithGravity.filter(function(I){return m.has(I)});this.graphManager.setAllNodesToApplyGravitation(v)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),v=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(v),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),s.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.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 n=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),s.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()),s.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 v=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(v,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),m={},v=0;v0&&this.updateDisplacements();for(var v=0;v0&&(E.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var w=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){n.fixedNodesOnHorizontal.add(O),n.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var H=this.constraints.alignmentConstraint.vertical,v=0;v=2*O.length/3;_--)X=Math.floor(Math.random()*(_+1)),B=O[_],O[_]=O[X],O[X]=B;return O},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(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;n.nodesInRelativeHorizontal.includes(X)||(n.nodesInRelativeHorizontal.push(X),n.nodeToRelativeConstraintMapHorizontal.set(X,[]),n.dummyToNodeForVerticalAlignment.has(X)?n.nodeToTempPositionMapHorizontal.set(X,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(X)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(X,n.idToNodeMap.get(X).getCenterX())),n.nodesInRelativeHorizontal.includes(B)||(n.nodesInRelativeHorizontal.push(B),n.nodeToRelativeConstraintMapHorizontal.set(B,[]),n.dummyToNodeForVerticalAlignment.has(B)?n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(B)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(B).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(X).push({right:B,gap:O.gap}),n.nodeToRelativeConstraintMapHorizontal.get(B).push({left:X,gap:O.gap})}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;n.nodesInRelativeVertical.includes(_)||(n.nodesInRelativeVertical.push(_),n.nodeToRelativeConstraintMapVertical.set(_,[]),n.dummyToNodeForHorizontalAlignment.has(_)?n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(_).getCenterY())),n.nodesInRelativeVertical.includes(lt)||(n.nodesInRelativeVertical.push(lt),n.nodeToRelativeConstraintMapVertical.set(lt,[]),n.dummyToNodeForHorizontalAlignment.has(lt)?n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(lt)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(lt).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(_).push({bottom:lt,gap:O.gap}),n.nodeToRelativeConstraintMapVertical.get(lt).push({top:_,gap:O.gap})}});else{var k=new Map,W=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;k.has(X)?k.get(X).push(B):k.set(X,[B]),k.has(B)?k.get(B).push(X):k.set(B,[X])}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;W.has(_)?W.get(_).push(lt):W.set(_,[lt]),W.has(lt)?W.get(lt).push(_):W.set(lt,[_])}});var U=function(X,B){var _=[],lt=[],q=new Q,Rt=new Set,Lt=0;return X.forEach(function(vt,it){if(!Rt.has(it)){_[Lt]=[],lt[Lt]=!1;var ut=it;for(q.push(ut),Rt.add(ut),_[Lt].push(ut);q.length!=0;){ut=q.shift(),B.has(ut)&&(lt[Lt]=!0);var Tt=X.get(ut);Tt.forEach(function(At){Rt.has(At)||(q.push(At),Rt.add(At),_[Lt].push(At))})}Lt++}}),{components:_,isFixed:lt}},et=U(k,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=U(W,n.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},D.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var O=n.idToNodeMap.get(z.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,v=0;v1){var R;for(R=0;RE&&(E=Math.floor(w.y)),I=Math.floor(w.x+s.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(T.WORLD_CENTER_X-w.x/2,T.WORLD_CENTER_Y-w.y/2))},D.radialLayout=function(n,m,v){var E=Math.max(this.maxDiagonalInTree(n),s.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(m,null,0,359,0,E);var y=J.calculateBounds(n),I=new V;I.setDeviceOrgX(y.getMinX()),I.setDeviceOrgY(y.getMinY()),I.setWorldOrgX(v.x),I.setWorldOrgY(v.y);for(var w=0;w1;){var B=X[0];X.splice(0,1);var _=W.indexOf(B);_>=0&&W.splice(_,1),z--,U--}m!=null?O=(W.indexOf(X[0])+1)%z:O=0;for(var lt=Math.abs(E-v)/U,q=O;et!=U;q=++q%z){var Rt=W[q].getOtherEnd(n);if(Rt!=m){var Lt=(v+et*lt)%360,vt=(Lt+lt)%360;D.branchRadialLayout(Rt,n,Lt,vt,y+I,I),et++}}},D.maxDiagonalInTree=function(n){for(var m=M.MIN_VALUE,v=0;vm&&(m=y)}return m},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var n=this,m={};this.memberGroups={},this.idToDummyNode={};for(var v=[],E=this.graphManager.getAllNodes(),y=0;y1){var x="DummyCompound_"+H;n.memberGroups[x]=m[H];var k=m[H][0].getParent(),W=new t(n.graphManager);W.id=x,W.paddingLeft=k.paddingLeft||0,W.paddingRight=k.paddingRight||0,W.paddingBottom=k.paddingBottom||0,W.paddingTop=k.paddingTop||0,n.idToDummyNode[x]=W;var U=n.getGraphManager().add(n.newGraph(),W),et=k.getChild();et.add(W);for(var z=0;zy?(E.rect.x-=(E.labelWidth-y)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-y)/2):E.labelPosHorizontal=="right"&&E.setWidth(y+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(I+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>I?(E.rect.y-=(E.labelHeight-I)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-I)/2):E.labelPosVertical=="bottom"&&E.setHeight(I+E.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var m=this.compoundOrder[n],v=m.id,E=m.paddingLeft,y=m.paddingTop,I=m.labelMarginLeft,w=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[v],m.rect.x,m.rect.y,E,y,I,w)}},D.prototype.repopulateZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(v){var E=n.idToDummyNode[v],y=E.paddingLeft,I=E.paddingTop,w=E.labelMarginLeft,R=E.labelMarginTop;n.adjustLocations(m[v],E.rect.x,E.rect.y,y,I,w,R)})},D.prototype.getToBeTiled=function(n){var m=n.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var v=n.getChild();if(v==null)return this.toBeTiled[m]=!1,!1;for(var E=v.getNodes(),y=0;y0)return this.toBeTiled[m]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},D.prototype.getNodeDegree=function(n){n.id;for(var m=n.getEdges(),v=0,E=0;Ek&&(k=U.rect.height)}v+=k+n.verticalPadding}},D.prototype.tileCompoundMembers=function(n,m){var v=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(E){var y=m[E];if(v.tiledMemberPack[E]=v.tileNodes(n[E],y.paddingLeft+y.paddingRight),y.rect.width=v.tiledMemberPack[E].width,y.rect.height=v.tiledMemberPack[E].height,y.setCenter(v.tiledMemberPack[E].centerX,v.tiledMemberPack[E].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,s.NODE_DIMENSIONS_INCLUDE_LABELS){var I=y.rect.width,w=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(I+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>I?(y.rect.x-=(y.labelWidth-I)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-I)/2):y.labelPosHorizontal=="right"&&y.setWidth(I+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(w+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>w?(y.rect.y-=(y.labelHeight-w)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-w)/2):y.labelPosVertical=="bottom"&&y.setHeight(w+y.labelHeight))}})},D.prototype.tileNodes=function(n,m){var v=this.tileNodesByFavoringDim(n,m,!0),E=this.tileNodesByFavoringDim(n,m,!1),y=this.getOrgRatio(v),I=this.getOrgRatio(E),w;return IR&&(R=z.getWidth())});var H=I/y,x=w/y,k=Math.pow(v-E,2)+4*(H+E)*(x+v)*y,W=(E-v+Math.sqrt(k))/(2*(H+E)),U;m?(U=Math.ceil(W),U==W&&U++):U=Math.floor(W);var et=U*(H+E)-E;return R>et&&(et=R),et+=E*2,et},D.prototype.tileNodesByFavoringDim=function(n,m,v){var E=s.TILING_PADDING_VERTICAL,y=s.TILING_PADDING_HORIZONTAL,I=s.TILING_COMPARE_BY,w={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:y,centerX:0,centerY:0};I&&(w.idealRowWidth=this.calcIdealRowWidth(n,v));var R=function(O){return O.rect.width*O.rect.height},H=function(O,X){return R(X)-R(O)};n.sort(function(z,O){var X=H;return w.idealRowWidth?(X=I,X(z.id,O.id)):X(z,O)});for(var x=0,k=0,W=0;W0&&(w+=n.horizontalPadding),n.rowWidth[v]=w,n.width0&&(R+=n.verticalPadding);var H=0;R>n.rowHeight[v]&&(H=n.rowHeight[v],n.rowHeight[v]=R,H=n.rowHeight[v]-H),n.height+=H,n.rows[v].push(m)},D.prototype.getShortestRowIndex=function(n){for(var m=-1,v=Number.MAX_VALUE,E=0;Ev&&(m=E,v=n.rowWidth[E]);return m},D.prototype.canAddHorizontal=function(n,m,v){if(n.idealRowWidth){var E=n.rows.length-1,y=n.rowWidth[E];return y+m+n.horizontalPadding<=n.idealRowWidth}var I=this.getShortestRowIndex(n);if(I<0)return!0;var w=n.rowWidth[I];if(w+n.horizontalPadding+m<=n.width)return!0;var R=0;n.rowHeight[I]0&&(R=v+n.verticalPadding-n.rowHeight[I]);var H;n.width-w>=m+n.horizontalPadding?H=(n.height+R)/(w+m+n.horizontalPadding):H=(n.height+R)/n.width,R=v+n.verticalPadding;var x;return n.widthI&&m!=v){E.splice(-1,1),n.rows[v].push(y),n.rowWidth[m]=n.rowWidth[m]-I,n.rowWidth[v]=n.rowWidth[v]+I,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var w=Number.MIN_VALUE,R=0;Rw&&(w=E[R].height);m>0&&(w+=n.verticalPadding);var H=n.rowHeight[m]+n.rowHeight[v];n.rowHeight[m]=w,n.rowHeight[v]0)for(var et=y;et<=I;et++)U[0]+=this.grid[et][w-1].length+this.grid[et][w].length-1;if(I0)for(var et=w;et<=R;et++)U[3]+=this.grid[y-1][et].length+this.grid[y][et].length-1;for(var z=M.MAX_VALUE,O,X,B=0;B{var f=r(551).FDLayoutNode,a=r(551).IMath;function p(h,s,c,l){f.call(this,h,s,c,l)}p.prototype=Object.create(f.prototype);for(var t in f)p[t]=f[t];p.prototype.calculateDisplacement=function(){var h=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementX=h.coolingFactor*h.maxNodeDisplacement*a.sign(this.displacementX)),Math.abs(this.displacementY)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementY=h.coolingFactor*h.maxNodeDisplacement*a.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},p.prototype.propogateDisplacementToChildren=function(h,s){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Ct=0;st.forEach(function(ht){$=="horizontal"?(tt.set(ht,u.has(ht)?d[u.get(ht)]:Z.get(ht)),Ct+=tt.get(ht)):(tt.set(ht,u.has(ht)?L[u.get(ht)]:Z.get(ht)),Ct+=tt.get(ht))}),Ct=Ct/st.length,ft.forEach(function(ht){K.has(ht)||tt.set(ht,Ct)})}else{var ct=0;ft.forEach(function(ht){$=="horizontal"?ct+=u.has(ht)?d[u.get(ht)]:Z.get(ht):ct+=u.has(ht)?L[u.get(ht)]:Z.get(ht)}),ct=ct/ft.length,ft.forEach(function(ht){tt.set(ht,ct)})}});for(var wt=function(){var st=dt.shift(),Ct=P.get(st);Ct.forEach(function(ct){if(tt.get(ct.id)ht&&(ht=qt),teWt&&(Wt=te)}}catch(ae){Mt=!0,Zt=ae}finally{try{!Nt&&Gt.return&&Gt.return()}finally{if(Mt)throw Zt}}var de=(Ct+ht)/2-(ct+Wt)/2,jt=!0,ee=!1,re=void 0;try{for(var _t=ft[Symbol.iterator](),he;!(jt=(he=_t.next()).done);jt=!0){var ie=he.value;tt.set(ie,tt.get(ie)+de)}}catch(ae){ee=!0,re=ae}finally{try{!jt&&_t.return&&_t.return()}finally{if(ee)throw re}}})}return tt},rt=function(P){var $=0,K=0,Z=0,at=0;if(P.forEach(function(j){j.left?d[u.get(j.left)]-d[u.get(j.right)]>=0?$++:K++:L[u.get(j.top)]-L[u.get(j.bottom)]>=0?Z++:at++}),$>K&&Z>at)for(var gt=0;gtK)for(var ot=0;otat)for(var tt=0;tt1)l.fixedNodeConstraint.forEach(function(S,P){E[P]=[S.position.x,S.position.y],y[P]=[d[u.get(S.nodeId)],L[u.get(S.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var S=0;if(l.alignmentConstraint.vertical){for(var P=l.alignmentConstraint.vertical,$=function(tt){var j=new Set;P[tt].forEach(function(yt){j.add(yt)});var dt=new Set([].concat(f(j)).filter(function(yt){return R.has(yt)})),wt=void 0;dt.size>0?wt=d[u.get(dt.values().next().value)]:wt=Q(j).x,P[tt].forEach(function(yt){E[S]=[wt,L[u.get(yt)]],y[S]=[d[u.get(yt)],L[u.get(yt)]],S++})},K=0;K0?wt=d[u.get(dt.values().next().value)]:wt=Q(j).y,Z[tt].forEach(function(yt){E[S]=[d[u.get(yt)],wt],y[S]=[d[u.get(yt)],L[u.get(yt)]],S++})},gt=0;gtW&&(W=k[et].length,U=et);if(W0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(S,P){var $={x:d[u.get(S.nodeId)],y:L[u.get(S.nodeId)]},K=S.position,Z=V(K,$);mt.x+=Z.x,mt.y+=Z.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,d.forEach(function(S,P){d[P]+=mt.x}),L.forEach(function(S,P){L[P]+=mt.y}),l.fixedNodeConstraint.forEach(function(S){d[u.get(S.nodeId)]=S.position.x,L[u.get(S.nodeId)]=S.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var xt=l.alignmentConstraint.vertical,St=function(P){var $=new Set;xt[P].forEach(function(at){$.add(at)});var K=new Set([].concat(f($)).filter(function(at){return R.has(at)})),Z=void 0;K.size>0?Z=d[u.get(K.values().next().value)]:Z=Q($).x,$.forEach(function(at){R.has(at)||(d[u.get(at)]=Z)})},Vt=0;Vt0?Z=L[u.get(K.values().next().value)]:Z=Q($).y,$.forEach(function(at){R.has(at)||(L[u.get(at)]=Z)})},bt=0;bt{i.exports=A}},N={};function g(i){var e=N[i];if(e!==void 0)return e.exports;var r=N[i]={exports:{}};return Y[i](r,r.exports,g),r.exports}var o=g(45);return o})()})}(me)),me.exports}(function(C,F){(function(Y,N){C.exports=N(Nr())})(Me,function(A){return(()=>{var Y={658:i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(e){for(var r=arguments.length,f=Array(r>1?r-1:0),a=1;a{var f=function(){function t(h,s){var c=[],l=!0,T=!1,u=void 0;try{for(var d=h[Symbol.iterator](),L;!(l=(L=d.next()).done)&&(c.push(L.value),!(s&&c.length===s));l=!0);}catch(b){T=!0,u=b}finally{try{!l&&d.return&&d.return()}finally{if(T)throw u}}return c}return function(h,s){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return t(h,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=r(140).layoutBase.LinkedList,p={};p.getTopMostNodes=function(t){for(var h={},s=0;s0&&I.merge(x)});for(var w=0;w1){L=u[0],b=L.connectedEdges().length,u.forEach(function(y){y.connectedEdges().length0&&c.set("dummy"+(c.size+1),J),V},p.relocateComponent=function(t,h,s){if(!s.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(s.quality=="draft"){var d=!0,L=!1,b=void 0;try{for(var M=h.nodeIndexes[Symbol.iterator](),G;!(d=(G=M.next()).done);d=!0){var J=G.value,V=f(J,2),Q=V[0],D=V[1],rt=s.cy.getElementById(Q);if(rt){var n=rt.boundingBox(),m=h.xCoords[D]-n.w/2,v=h.xCoords[D]+n.w/2,E=h.yCoords[D]-n.h/2,y=h.yCoords[D]+n.h/2;ml&&(l=v),Eu&&(u=y)}}}catch(x){L=!0,b=x}finally{try{!d&&M.return&&M.return()}finally{if(L)throw b}}var I=t.x-(l+c)/2,w=t.y-(u+T)/2;h.xCoords=h.xCoords.map(function(x){return x+I}),h.yCoords=h.yCoords.map(function(x){return x+w})}else{Object.keys(h).forEach(function(x){var k=h[x],W=k.getRect().x,U=k.getRect().x+k.getRect().width,et=k.getRect().y,z=k.getRect().y+k.getRect().height;Wl&&(l=U),etu&&(u=z)});var R=t.x-(l+c)/2,H=t.y-(u+T)/2;Object.keys(h).forEach(function(x){var k=h[x];k.setCenter(k.getCenterX()+R,k.getCenterY()+H)})}}},p.calcBoundingBox=function(t,h,s,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,L=void 0,b=void 0,M=void 0,G=void 0,J=t.descendants().not(":parent"),V=J.length,Q=0;QL&&(l=L),TM&&(u=M),d{var f=r(548),a=r(140).CoSELayout,p=r(140).CoSENode,t=r(140).layoutBase.PointD,h=r(140).layoutBase.DimensionD,s=r(140).layoutBase.LayoutConstants,c=r(140).layoutBase.FDLayoutConstants,l=r(140).CoSEConstants,T=function(d,L){var b=d.cy,M=d.eles,G=M.nodes(),J=M.edges(),V=void 0,Q=void 0,D=void 0,rt={};d.randomize&&(V=L.nodeIndexes,Q=L.xCoords,D=L.yCoords);var n=function(x){return typeof x=="function"},m=function(x,k){return n(x)?x(k):x},v=f.calcParentsWithoutChildren(b,M),E=function H(x,k,W,U){for(var et=k.length,z=0;z0){var q=void 0;q=W.getGraphManager().add(W.newGraph(),B),H(q,X,W,U)}}},y=function(x,k,W){for(var U=0,et=0,z=0;z0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=U/et:n(d.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,k){k.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=k.fixedNodeConstraint),k.alignmentConstraint&&(x.constraints.alignmentConstraint=k.alignmentConstraint),k.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=k.relativePlacementConstraint)};d.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?s.QUALITY=2:s.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=s.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!d.randomize,l.ANIMATE=c.ANIMATE=s.ANIMATE=d.animate,l.TILE=d.tile,l.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!d.randomize,s.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),d.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),d.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var w=new a,R=w.newGraphManager();return E(R.addRoot(),f.getTopMostNodes(G),w,d),y(w,R,J),I(w,d),w.runLayout(),rt};i.exports={coseLayout:T}},212:(i,e,r)=>{var f=function(){function d(L,b){for(var M=0;M0)if(v){var I=t.getTopMostNodes(M.eles.nodes());if(D=t.connectComponents(G,M.eles,I),D.forEach(function(vt){var it=vt.boundingBox();rt.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),M.randomize&&D.forEach(function(vt){M.eles=vt,V.push(s(M))}),M.quality=="default"||M.quality=="proof"){var w=G.collection();if(M.tile){var R=new Map,H=[],x=[],k=0,W={nodeIndexes:R,xCoords:H,yCoords:x},U=[];if(D.forEach(function(vt,it){vt.edges().length==0&&(vt.nodes().forEach(function(ut,Tt){w.merge(vt.nodes()[Tt]),ut.isParent()||(W.nodeIndexes.set(vt.nodes()[Tt].id(),k++),W.xCoords.push(vt.nodes()[0].position().x),W.yCoords.push(vt.nodes()[0].position().y))}),U.push(it))}),w.length>1){var et=w.boundingBox();rt.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),D.push(w),V.push(W);for(var z=U.length-1;z>=0;z--)D.splice(U[z],1),V.splice(U[z],1),rt.splice(U[z],1)}}D.forEach(function(vt,it){M.eles=vt,Q.push(l(M,V[it])),t.relocateComponent(rt[it],Q[it],M)})}else D.forEach(function(vt,it){t.relocateComponent(rt[it],V[it],M)});var O=new Set;if(D.length>1){var X=[],B=J.filter(function(vt){return vt.css("display")=="none"});D.forEach(function(vt,it){var ut=void 0;if(M.quality=="draft"&&(ut=V[it].nodeIndexes),vt.nodes().not(B).length>0){var Tt={};Tt.edges=[],Tt.nodes=[];var At=void 0;vt.nodes().not(B).forEach(function(Dt){if(M.quality=="draft")if(!Dt.isParent())At=ut.get(Dt.id()),Tt.nodes.push({x:V[it].xCoords[At]-Dt.boundingbox().w/2,y:V[it].yCoords[At]-Dt.boundingbox().h/2,width:Dt.boundingbox().w,height:Dt.boundingbox().h});else{var mt=t.calcBoundingBox(Dt,V[it].xCoords,V[it].yCoords,ut);Tt.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else Q[it][Dt.id()]&&Tt.nodes.push({x:Q[it][Dt.id()].getLeft(),y:Q[it][Dt.id()].getTop(),width:Q[it][Dt.id()].getWidth(),height:Q[it][Dt.id()].getHeight()})}),vt.edges().forEach(function(Dt){var mt=Dt.source(),xt=Dt.target();if(mt.css("display")!="none"&&xt.css("display")!="none")if(M.quality=="draft"){var St=ut.get(mt.id()),Vt=ut.get(xt.id()),Xt=[],Ut=[];if(mt.isParent()){var bt=t.calcBoundingBox(mt,V[it].xCoords,V[it].yCoords,ut);Xt.push(bt.topLeftX+bt.width/2),Xt.push(bt.topLeftY+bt.height/2)}else Xt.push(V[it].xCoords[St]),Xt.push(V[it].yCoords[St]);if(xt.isParent()){var Ht=t.calcBoundingBox(xt,V[it].xCoords,V[it].yCoords,ut);Ut.push(Ht.topLeftX+Ht.width/2),Ut.push(Ht.topLeftY+Ht.height/2)}else Ut.push(V[it].xCoords[Vt]),Ut.push(V[it].yCoords[Vt]);Tt.edges.push({startX:Xt[0],startY:Xt[1],endX:Ut[0],endY:Ut[1]})}else Q[it][mt.id()]&&Q[it][xt.id()]&&Tt.edges.push({startX:Q[it][mt.id()].getCenterX(),startY:Q[it][mt.id()].getCenterY(),endX:Q[it][xt.id()].getCenterX(),endY:Q[it][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(X.push(Tt),O.add(it))}});var _=m.packComponents(X,M.randomize).shifts;if(M.quality=="draft")V.forEach(function(vt,it){var ut=vt.xCoords.map(function(At){return At+_[it].dx}),Tt=vt.yCoords.map(function(At){return At+_[it].dy});vt.xCoords=ut,vt.yCoords=Tt});else{var lt=0;O.forEach(function(vt){Object.keys(Q[vt]).forEach(function(it){var ut=Q[vt][it];ut.setCenter(ut.getCenterX()+_[lt].dx,ut.getCenterY()+_[lt].dy)}),lt++})}}}else{var E=M.eles.boundingBox();if(rt.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),M.randomize){var y=s(M);V.push(y)}M.quality=="default"||M.quality=="proof"?(Q.push(l(M,V[0])),t.relocateComponent(rt[0],Q[0],M)):t.relocateComponent(rt[0],V[0],M)}var q=function(it,ut){if(M.quality=="default"||M.quality=="proof"){typeof it=="number"&&(it=ut);var Tt=void 0,At=void 0,Dt=it.data("id");return Q.forEach(function(xt){Dt in xt&&(Tt={x:xt[Dt].getRect().getCenterX(),y:xt[Dt].getRect().getCenterY()},At=xt[Dt])}),M.nodeDimensionsIncludeLabels&&(At.labelWidth&&(At.labelPosHorizontal=="left"?Tt.x+=At.labelWidth/2:At.labelPosHorizontal=="right"&&(Tt.x-=At.labelWidth/2)),At.labelHeight&&(At.labelPosVertical=="top"?Tt.y+=At.labelHeight/2:At.labelPosVertical=="bottom"&&(Tt.y-=At.labelHeight/2))),Tt==null&&(Tt={x:it.position("x"),y:it.position("y")}),{x:Tt.x,y:Tt.y}}else{var mt=void 0;return V.forEach(function(xt){var St=xt.nodeIndexes.get(it.id());St!=null&&(mt={x:xt.xCoords[St],y:xt.yCoords[St]})}),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}};if(M.quality=="default"||M.quality=="proof"||M.randomize){var Rt=t.calcParentsWithoutChildren(G,J),Lt=J.filter(function(vt){return vt.css("display")=="none"});M.eles=J.not(Lt),J.nodes().not(":parent").not(Lt).layoutPositions(b,M,q),Rt.length>0&&Rt.forEach(function(vt){vt.position(q(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),d}();i.exports=u},657:(i,e,r)=>{var f=r(548),a=r(140).layoutBase.Matrix,p=r(140).layoutBase.SVD,t=function(s){var c=s.cy,l=s.eles,T=l.nodes(),u=l.nodes(":parent"),d=new Map,L=new Map,b=new Map,M=[],G=[],J=[],V=[],Q=[],D=[],rt=[],n=[],m=void 0,v=1e8,E=1e-9,y=s.piTol,I=s.samplingType,w=s.nodeSeparation,R=void 0,H=function(){for(var P=0,$=0,K=!1;$=at;){ot=Z[at++];for(var It=M[ot],ft=0;ftdt&&(dt=Q[Ct],wt=Ct)}return wt},k=function(P){var $=void 0;if(P){$=Math.floor(Math.random()*m);for(var Z=0;Z=1)break;j=tt}for(var yt=0;yt=1)break;j=tt}for(var ft=0;ft0&&($.isParent()?M[P].push(b.get($.id())):M[P].push($.id()))})});var Lt=function(P){var $=L.get(P),K=void 0;d.get(P).forEach(function(Z){c.getElementById(Z).isParent()?K=b.get(Z):K=Z,M[$].push(K),M[L.get(K)].push(P)})},vt=!0,it=!1,ut=void 0;try{for(var Tt=d.keys()[Symbol.iterator](),At;!(vt=(At=Tt.next()).done);vt=!0){var Dt=At.value;Lt(Dt)}}catch(S){it=!0,ut=S}finally{try{!vt&&Tt.return&&Tt.return()}finally{if(it)throw ut}}m=L.size;var mt=void 0;if(m>2){R=m{var f=r(212),a=function(t){t&&t("layout","fcose",f)};typeof cytoscape!="undefined"&&a(cytoscape),i.exports=a},140:i=>{i.exports=A}},N={};function g(i){var e=N[i];if(e!==void 0)return e.exports;var r=N[i]={exports:{}};return Y[i](r,r.exports,g),r.exports}var o=g(579);return o})()})})(Xe);var Lr=Xe.exports;const Cr=mr(Lr);var be={L:"left",R:"right",T:"top",B:"bottom"},Pe={L:nt(C=>`${C},${C/2} 0,${C} 0,0`,"L"),R:nt(C=>`0,${C/2} ${C},0 ${C},${C}`,"R"),T:nt(C=>`0,0 ${C},0 ${C/2},${C}`,"T"),B:nt(C=>`${C/2},0 ${C},${C} 0,${C}`,"B")},ce={L:nt((C,F)=>C-F+2,"L"),R:nt((C,F)=>C-2,"R"),T:nt((C,F)=>C-F+2,"T"),B:nt((C,F)=>C-2,"B")},Mr=nt(function(C){return zt(C)?C==="L"?"R":"L":C==="T"?"B":"T"},"getOppositeArchitectureDirection"),Ge=nt(function(C){const F=C;return F==="L"||F==="R"||F==="T"||F==="B"},"isArchitectureDirection"),zt=nt(function(C){const F=C;return F==="L"||F==="R"},"isArchitectureDirectionX"),Kt=nt(function(C){const F=C;return F==="T"||F==="B"},"isArchitectureDirectionY"),He=nt(function(C,F){const A=zt(C)&&Kt(F),Y=Kt(C)&&zt(F);return A||Y},"isArchitectureDirectionXY"),Ar=nt(function(C){const F=C[0],A=C[1],Y=zt(F)&&Kt(A),N=Kt(F)&&zt(A);return Y||N},"isArchitecturePairXY"),wr=nt(function(C){return C!=="LL"&&C!=="RR"&&C!=="TT"&&C!=="BB"},"isValidArchitectureDirectionPair"),Le=nt(function(C,F){const A=`${C}${F}`;return wr(A)?A:void 0},"getArchitectureDirectionPair"),Or=nt(function([C,F],A){const Y=A[0],N=A[1];return zt(Y)?Kt(N)?[C+(Y==="L"?-1:1),F+(N==="T"?1:-1)]:[C+(Y==="L"?-1:1),F]:zt(N)?[C+(N==="L"?1:-1),F+(Y==="T"?1:-1)]:[C,F+(Y==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Dr=nt(function(C){return C==="LT"||C==="TL"?[1,1]:C==="BL"||C==="LB"?[1,-1]:C==="BR"||C==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),xr=nt(function(C){return C.type==="service"},"isArchitectureService"),Ir=nt(function(C){return C.type==="junction"},"isArchitectureJunction"),We=nt(C=>C.data(),"edgeData"),oe=nt(C=>C.data(),"nodeData"),Ve=ir.architecture,pt=new yr(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:Ve,dataStructures:void 0,elements:{}})),Rr=nt(()=>{pt.reset(),ur()},"clear"),Sr=nt(function({id:C,icon:F,in:A,title:Y,iconText:N}){if(pt.records.registeredIds[C]!==void 0)throw new Error(`The service id [${C}] is already in use by another ${pt.records.registeredIds[C]}`);if(A!==void 0){if(C===A)throw new Error(`The service [${C}] cannot be placed within itself`);if(pt.records.registeredIds[A]===void 0)throw new Error(`The service [${C}]'s parent does not exist. Please make sure the parent is created before this service`);if(pt.records.registeredIds[A]==="node")throw new Error(`The service [${C}]'s parent is not a group`)}pt.records.registeredIds[C]="node",pt.records.nodes[C]={id:C,type:"service",icon:F,iconText:N,title:Y,edges:[],in:A}},"addService"),Fr=nt(()=>Object.values(pt.records.nodes).filter(xr),"getServices"),br=nt(function({id:C,in:F}){pt.records.registeredIds[C]="node",pt.records.nodes[C]={id:C,type:"junction",edges:[],in:F}},"addJunction"),Pr=nt(()=>Object.values(pt.records.nodes).filter(Ir),"getJunctions"),Gr=nt(()=>Object.values(pt.records.nodes),"getNodes"),Ur=nt(C=>pt.records.nodes[C],"getNode"),Yr=nt(function({id:C,icon:F,in:A,title:Y}){if(pt.records.registeredIds[C]!==void 0)throw new Error(`The group id [${C}] is already in use by another ${pt.records.registeredIds[C]}`);if(A!==void 0){if(C===A)throw new Error(`The group [${C}] cannot be placed within itself`);if(pt.records.registeredIds[A]===void 0)throw new Error(`The group [${C}]'s parent does not exist. Please make sure the parent is created before this group`);if(pt.records.registeredIds[A]==="node")throw new Error(`The group [${C}]'s parent is not a group`)}pt.records.registeredIds[C]="group",pt.records.groups[C]={id:C,icon:F,title:Y,in:A}},"addGroup"),Xr=nt(()=>Object.values(pt.records.groups),"getGroups"),Hr=nt(function({lhsId:C,rhsId:F,lhsDir:A,rhsDir:Y,lhsInto:N,rhsInto:g,lhsGroup:o,rhsGroup:i,title:e}){if(!Ge(A))throw new Error(`Invalid direction given for left hand side of edge ${C}--${F}. Expected (L,R,T,B) got ${A}`);if(!Ge(Y))throw new Error(`Invalid direction given for right hand side of edge ${C}--${F}. Expected (L,R,T,B) got ${Y}`);if(pt.records.nodes[C]===void 0&&pt.records.groups[C]===void 0)throw new Error(`The left-hand id [${C}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(pt.records.nodes[F]===void 0&&pt.records.groups[C]===void 0)throw new Error(`The right-hand id [${F}] does not yet exist. Please create the service/group before declaring an edge to it.`);const r=pt.records.nodes[C].in,f=pt.records.nodes[F].in;if(o&&r&&f&&r==f)throw new Error(`The left-hand id [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(i&&r&&f&&r==f)throw new Error(`The right-hand id [${F}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const a={lhsId:C,lhsDir:A,lhsInto:N,lhsGroup:o,rhsId:F,rhsDir:Y,rhsInto:g,rhsGroup:i,title:e};pt.records.edges.push(a),pt.records.nodes[C]&&pt.records.nodes[F]&&(pt.records.nodes[C].edges.push(pt.records.edges[pt.records.edges.length-1]),pt.records.nodes[F].edges.push(pt.records.edges[pt.records.edges.length-1]))},"addEdge"),Wr=nt(()=>pt.records.edges,"getEdges"),Vr=nt(()=>{if(pt.records.dataStructures===void 0){const C=Object.entries(pt.records.nodes).reduce((o,[i,e])=>(o[i]=e.edges.reduce((r,f)=>{if(f.lhsId===i){const a=Le(f.lhsDir,f.rhsDir);a&&(r[a]=f.rhsId)}else{const a=Le(f.rhsDir,f.lhsDir);a&&(r[a]=f.lhsId)}return r},{}),o),{}),F=Object.keys(C)[0],A={[F]:1},Y=Object.keys(C).reduce((o,i)=>i===F?o:fe(le({},o),{[i]:1}),{}),N=nt(o=>{const i={[o]:[0,0]},e=[o];for(;e.length>0;){const r=e.shift();if(r){A[r]=1,delete Y[r];const f=C[r],[a,p]=i[r];Object.entries(f).forEach(([t,h])=>{A[h]||(i[h]=Or([a,p],t),e.push(h))})}}return i},"BFS"),g=[N(F)];for(;Object.keys(Y).length>0;)g.push(N(Object.keys(Y)[0]));pt.records.dataStructures={adjList:C,spatialMaps:g}}return pt.records.dataStructures},"getDataStructures"),zr=nt((C,F)=>{pt.records.elements[C]=F},"setElementForId"),Br=nt(C=>pt.records.elements[C],"getElementById"),ge={clear:Rr,setDiagramTitle:or,getDiagramTitle:sr,setAccTitle:hr,getAccTitle:lr,setAccDescription:fr,getAccDescription:cr,addService:Sr,getServices:Fr,addJunction:br,getJunctions:Pr,getNodes:Gr,getNode:Ur,addGroup:Yr,getGroups:Xr,addEdge:Hr,getEdges:Wr,setElementForId:zr,getElementById:Br,getDataStructures:Vr};function Pt(C){const F=ue().architecture;return F!=null&&F[C]?F[C]:Ve[C]}nt(Pt,"getConfigField");var $r=nt((C,F)=>{pr(C,F),C.groups.map(F.addGroup),C.services.map(A=>F.addService(fe(le({},A),{type:"service"}))),C.junctions.map(A=>F.addJunction(fe(le({},A),{type:"junction"}))),C.edges.map(F.addEdge)},"populateDb"),Zr={parse:nt(C=>Qt(void 0,null,function*(){const F=yield Er("architecture",C);Ue.debug(F),$r(F,ge)}),"parse")},kr=nt(C=>` +var je=Object.defineProperty,_e=Object.defineProperties;var tr=Object.getOwnPropertyDescriptors;var Ie=Object.getOwnPropertySymbols;var er=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable;var Re=(C,F,A)=>F in C?je(C,F,{enumerable:!0,configurable:!0,writable:!0,value:A}):C[F]=A,le=(C,F)=>{for(var A in F||(F={}))er.call(F,A)&&Re(C,A,F[A]);if(Ie)for(var A of Ie(F))rr.call(F,A)&&Re(C,A,F[A]);return C},fe=(C,F)=>_e(C,tr(F));var Qt=(C,F,A)=>new Promise((Y,N)=>{var g=e=>{try{i(A.next(e))}catch(r){N(r)}},o=e=>{try{i(A.throw(e))}catch(r){N(r)}},i=e=>e.done?Y(e.value):Promise.resolve(e.value).then(g,o);i((A=A.apply(C,F)).next())});import{F as ir,_ as nt,aF as ar,aG as nr,q as or,r as sr,s as hr,g as lr,c as fr,b as cr,d as ue,l as Ue,j as gr,t as ur,K as dr,aa as vr,D as Ce,aH as Ne}from"./Using existing ones-DVOwGlbd.js";import{p as pr}from"./chunk-OQCM5LHU-BNRaZOS_.js";import{I as yr}from"./chunk-2RYQ3QTB-Bwu55N5N.js";import{p as Er}from"./mermaid-parser.core-B5qxKanj.js";import{c as Ye}from"./cytoscape.esm-BI0LHGOR.js";import{c as Me,g as mr}from"./index-Ca44TZ0D.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";import"./clone-Bp7QSEXO.js";var Xe={exports:{}},me={exports:{}},Te={exports:{}},Se;function Tr(){return Se||(Se=1,function(C,F){(function(Y,N){C.exports=N()})(Me,function(){return function(A){var Y={};function N(g){if(Y[g])return Y[g].exports;var o=Y[g]={i:g,l:!1,exports:{}};return A[g].call(o.exports,o,o.exports,N),o.l=!0,o.exports}return N.m=A,N.c=Y,N.i=function(g){return g},N.d=function(g,o,i){N.o(g,o)||Object.defineProperty(g,o,{configurable:!1,enumerable:!0,get:i})},N.n=function(g){var o=g&&g.__esModule?function(){return g.default}:function(){return g};return N.d(o,"a",o),o},N.o=function(g,o){return Object.prototype.hasOwnProperty.call(g,o)},N.p="",N(N.s=28)}([function(A,Y,N){function g(){}g.QUALITY=1,g.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,g.DEFAULT_INCREMENTAL=!1,g.DEFAULT_ANIMATION_ON_LAYOUT=!0,g.DEFAULT_ANIMATION_DURING_LAYOUT=!1,g.DEFAULT_ANIMATION_PERIOD=50,g.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,g.DEFAULT_GRAPH_MARGIN=15,g.NODE_DIMENSIONS_INCLUDE_LABELS=!1,g.SIMPLE_NODE_SIZE=40,g.SIMPLE_NODE_HALF_SIZE=g.SIMPLE_NODE_SIZE/2,g.EMPTY_COMPOUND_NODE_SIZE=40,g.MIN_EDGE_LENGTH=1,g.WORLD_BOUNDARY=1e6,g.INITIAL_WORLD_BOUNDARY=g.WORLD_BOUNDARY/1e3,g.WORLD_CENTER_X=1200,g.WORLD_CENTER_Y=900,A.exports=g},function(A,Y,N){var g=N(2),o=N(8),i=N(9);function e(f,a,p){g.call(this,p),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=p,this.bendpoints=[],this.source=f,this.target=a}e.prototype=Object.create(g.prototype);for(var r in g)e[r]=g[r];e.prototype.getSource=function(){return this.source},e.prototype.getTarget=function(){return this.target},e.prototype.isInterGraph=function(){return this.isInterGraph},e.prototype.getLength=function(){return this.length},e.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},e.prototype.getBendpoints=function(){return this.bendpoints},e.prototype.getLca=function(){return this.lca},e.prototype.getSourceInLca=function(){return this.sourceInLca},e.prototype.getTargetInLca=function(){return this.targetInLca},e.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"},e.prototype.getOtherEndInGraph=function(f,a){for(var p=this.getOtherEnd(f),t=a.getGraphManager().getRoot();;){if(p.getOwner()==a)return p;if(p.getOwner()==t)break;p=p.getOwner().getParent()}return null},e.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=o.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=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},e.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=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},A.exports=e},function(A,Y,N){function g(o){this.vGraphObject=o}A.exports=g},function(A,Y,N){var g=N(2),o=N(10),i=N(13),e=N(0),r=N(16),f=N(5);function a(t,h,s,c){s==null&&c==null&&(c=h),g.call(this,c),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=o.MIN_VALUE,this.inclusionTreeDepth=o.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=t,s!=null&&h!=null?this.rect=new i(h.x,h.y,s.width,s.height):this.rect=new i}a.prototype=Object.create(g.prototype);for(var p in g)a[p]=g[p];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(t){this.rect.width=t},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(t){this.rect.height=t},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(t,h){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=h.width,this.rect.height=h.height},a.prototype.setCenter=function(t,h){this.rect.x=t-this.rect.width/2,this.rect.y=h-this.rect.height/2},a.prototype.setLocation=function(t,h){this.rect.x=t,this.rect.y=h},a.prototype.moveBy=function(t,h){this.rect.x+=t,this.rect.y+=h},a.prototype.getEdgeListToNode=function(t){var h=[],s=this;return s.edges.forEach(function(c){if(c.target==t){if(c.source!=s)throw"Incorrect edge source!";h.push(c)}}),h},a.prototype.getEdgesBetween=function(t){var h=[],s=this;return s.edges.forEach(function(c){if(!(c.source==s||c.target==s))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&h.push(c)}),h},a.prototype.getNeighborsList=function(){var t=new Set,h=this;return h.edges.forEach(function(s){if(s.source==h)t.add(s.target);else{if(s.target!=h)throw"Incorrect incidency!";t.add(s.source)}}),t},a.prototype.withChildren=function(){var t=new Set,h,s;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),l=0;lh?(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(h+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(s+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>s?(this.rect.y-=(this.labelHeight-s)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(s+this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(t){var h=this.rect.x;h>e.WORLD_BOUNDARY?h=e.WORLD_BOUNDARY:h<-e.WORLD_BOUNDARY&&(h=-e.WORLD_BOUNDARY);var s=this.rect.y;s>e.WORLD_BOUNDARY?s=e.WORLD_BOUNDARY:s<-e.WORLD_BOUNDARY&&(s=-e.WORLD_BOUNDARY);var c=new f(h,s),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.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()},A.exports=a},function(A,Y,N){var g=N(0);function o(){}for(var i in g)o[i]=g[i];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,A.exports=o},function(A,Y,N){function g(o,i){o==null&&i==null?(this.x=0,this.y=0):(this.x=o,this.y=i)}g.prototype.getX=function(){return this.x},g.prototype.getY=function(){return this.y},g.prototype.setX=function(o){this.x=o},g.prototype.setY=function(o){this.y=o},g.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},g.prototype.getCopy=function(){return new g(this.x,this.y)},g.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},A.exports=g},function(A,Y,N){var g=N(2),o=N(10),i=N(0),e=N(7),r=N(3),f=N(1),a=N(13),p=N(12),t=N(11);function h(c,l,T){g.call(this,T),this.estimatedSize=o.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof e?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}h.prototype=Object.create(g.prototype);for(var s in g)h[s]=g[s];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(c,l,T){if(l==null&&T==null){var u=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var d=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(d.source=l,d.target=T,d.isInterGraph=!1,this.getEdges().push(d),l.edges.push(d),T!=l&&T.edges.push(d),d)}},h.prototype.remove=function(c){var l=c;if(c instanceof r){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 T=l.edges.slice(),u,d=T.length,L=0;L-1&&G>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(M,1),u.target!=u.source&&u.target.edges.splice(G,1);var b=u.source.owner.getEdges().indexOf(u);if(b==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(b,1)}},h.prototype.updateLeftTop=function(){for(var c=o.MAX_VALUE,l=o.MAX_VALUE,T,u,d,L=this.getNodes(),b=L.length,M=0;MT&&(c=T),l>u&&(l=u)}return c==o.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?d=L[0].getParent().paddingLeft:d=this.margin,this.left=l-d,this.top=c-d,new p(this.left,this.top))},h.prototype.updateBounds=function(c){for(var l=o.MAX_VALUE,T=-o.MAX_VALUE,u=o.MAX_VALUE,d=-o.MAX_VALUE,L,b,M,G,J,V=this.nodes,Q=V.length,D=0;DL&&(l=L),TM&&(u=M),dL&&(l=L),TM&&(u=M),d=this.nodes.length){var Q=0;T.forEach(function(D){D.owner==c&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},A.exports=h},function(A,Y,N){var g,o=N(1);function i(e){g=N(6),this.layout=e,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var e=this.layout.newGraph(),r=this.layout.newNode(null),f=this.add(e,r);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(e,r,f,a,p){if(f==null&&a==null&&p==null){if(e==null)throw"Graph is null!";if(r==null)throw"Parent node is null!";if(this.graphs.indexOf(e)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(e),e.parent!=null)throw"Already has a parent!";if(r.child!=null)throw"Already has a child!";return e.parent=r,r.child=e,e}else{p=f,a=r,f=e;var t=a.getOwner(),h=p.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==h)return f.isInterGraph=!1,t.add(f,a,p);if(f.isInterGraph=!0,f.source=a,f.target=p,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}},i.prototype.remove=function(e){if(e instanceof g){var r=e;if(r.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(r==this.rootGraph||r.parent!=null&&r.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(r.getEdges());for(var a,p=f.length,t=0;t=e.getRight()?r[0]+=Math.min(e.getX()-i.getX(),i.getRight()-e.getRight()):e.getX()<=i.getX()&&e.getRight()>=i.getRight()&&(r[0]+=Math.min(i.getX()-e.getX(),e.getRight()-i.getRight())),i.getY()<=e.getY()&&i.getBottom()>=e.getBottom()?r[1]+=Math.min(e.getY()-i.getY(),i.getBottom()-e.getBottom()):e.getY()<=i.getY()&&e.getBottom()>=i.getBottom()&&(r[1]+=Math.min(i.getY()-e.getY(),e.getBottom()-i.getBottom()));var p=Math.abs((e.getCenterY()-i.getCenterY())/(e.getCenterX()-i.getCenterX()));e.getCenterY()===i.getCenterY()&&e.getCenterX()===i.getCenterX()&&(p=1);var t=p*r[0],h=r[1]/p;r[0]t)return r[0]=f,r[1]=s,r[2]=p,r[3]=V,!1;if(ap)return r[0]=h,r[1]=a,r[2]=G,r[3]=t,!1;if(fp?(r[0]=l,r[1]=T,n=!0):(r[0]=c,r[1]=s,n=!0):v===y&&(f>p?(r[0]=h,r[1]=s,n=!0):(r[0]=u,r[1]=T,n=!0)),-E===y?p>f?(r[2]=J,r[3]=V,m=!0):(r[2]=G,r[3]=M,m=!0):E===y&&(p>f?(r[2]=b,r[3]=M,m=!0):(r[2]=Q,r[3]=V,m=!0)),n&&m)return!1;if(f>p?a>t?(I=this.getCardinalDirection(v,y,4),w=this.getCardinalDirection(E,y,2)):(I=this.getCardinalDirection(-v,y,3),w=this.getCardinalDirection(-E,y,1)):a>t?(I=this.getCardinalDirection(-v,y,1),w=this.getCardinalDirection(-E,y,3)):(I=this.getCardinalDirection(v,y,2),w=this.getCardinalDirection(E,y,4)),!n)switch(I){case 1:H=s,R=f+-L/y,r[0]=R,r[1]=H;break;case 2:R=u,H=a+d*y,r[0]=R,r[1]=H;break;case 3:H=T,R=f+L/y,r[0]=R,r[1]=H;break;case 4:R=l,H=a+-d*y,r[0]=R,r[1]=H;break}if(!m)switch(w){case 1:k=M,x=p+-rt/y,r[2]=x,r[3]=k;break;case 2:x=Q,k=t+D*y,r[2]=x,r[3]=k;break;case 3:k=V,x=p+rt/y,r[2]=x,r[3]=k;break;case 4:x=J,k=t+-D*y,r[2]=x,r[3]=k;break}}return!1},o.getCardinalDirection=function(i,e,r){return i>e?r:1+r%4},o.getIntersection=function(i,e,r,f){if(f==null)return this.getIntersection2(i,e,r);var a=i.x,p=i.y,t=e.x,h=e.y,s=r.x,c=r.y,l=f.x,T=f.y,u=void 0,d=void 0,L=void 0,b=void 0,M=void 0,G=void 0,J=void 0,V=void 0,Q=void 0;return L=h-p,M=a-t,J=t*p-a*h,b=T-c,G=s-l,V=l*c-s*T,Q=L*G-b*M,Q===0?null:(u=(M*V-G*J)/Q,d=(b*J-L*V)/Q,new g(u,d))},o.angleOfVector=function(i,e,r,f){var a=void 0;return i!==r?(a=Math.atan((f-e)/(r-i)),r=0){var T=(-s+Math.sqrt(s*s-4*h*c))/(2*h),u=(-s-Math.sqrt(s*s-4*h*c))/(2*h),d=null;return T>=0&&T<=1?[T]:u>=0&&u<=1?[u]:d}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,A.exports=o},function(A,Y,N){function g(){}g.sign=function(o){return o>0?1:o<0?-1:0},g.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},g.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},A.exports=g},function(A,Y,N){function g(){}g.MAX_VALUE=2147483647,g.MIN_VALUE=-2147483648,A.exports=g},function(A,Y,N){var g=function(){function a(p,t){for(var h=0;h0&&c;){for(L.push(M[0]);L.length>0&&c;){var G=L[0];L.splice(0,1),d.add(G);for(var J=G.getEdges(),u=0;u-1&&M.splice(rt,1)}d=new Set,b=new Map}}return s},h.prototype.createDummyNodesForBendpoints=function(s){for(var c=[],l=s.source,T=this.graphManager.calcLowestCommonAncestor(s.source,s.target),u=0;u0){for(var T=this.edgeToDummyNodes.get(l),u=0;u=0&&c.splice(V,1);var Q=b.getNeighborsList();Q.forEach(function(n){if(l.indexOf(n)<0){var m=T.get(n),v=m-1;v==1&&G.push(n),T.set(n,v)}})}l=l.concat(G),(c.length==1||c.length==2)&&(u=!0,d=c[0])}return d},h.prototype.setGraphManager=function(s){this.graphManager=s},A.exports=h},function(A,Y,N){function g(){}g.seed=1,g.x=0,g.nextDouble=function(){return g.x=Math.sin(g.seed++)*1e4,g.x-Math.floor(g.x)},A.exports=g},function(A,Y,N){var g=N(5);function o(i,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(i){this.lworldExtX=i},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(i){this.lworldExtY=i},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},o.prototype.transformX=function(i){var e=0,r=this.lworldExtX;return r!=0&&(e=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/r),e},o.prototype.transformY=function(i){var e=0,r=this.lworldExtY;return r!=0&&(e=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/r),e},o.prototype.inverseTransformX=function(i){var e=0,r=this.ldeviceExtX;return r!=0&&(e=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/r),e},o.prototype.inverseTransformY=function(i){var e=0,r=this.ldeviceExtY;return r!=0&&(e=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/r),e},o.prototype.inverseTransformPoint=function(i){var e=new g(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return e},A.exports=o},function(A,Y,N){function g(t){if(Array.isArray(t)){for(var h=0,s=Array(t.length);hi.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),h,s=0;s0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s,c,l,T,u=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,s=0;sL||d>L)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(L=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>L||d>L)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},a.prototype.isConverged=function(){var t,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=u.length||L>=u[0].length)){for(var b=0;ba}}]),r}();A.exports=e},function(A,Y,N){function g(){}g.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 i=Math.min(this.m,this.n);this.s=function(Nt){for(var Mt=[];Nt-- >0;)Mt.push(0);return Mt}(Math.min(this.m+1,this.n)),this.U=function(Nt){var Mt=function Zt(Gt){if(Gt.length==0)return 0;for(var $t=[],Ft=0;Ft0;)Mt.push(0);return Mt}(this.n),r=function(Nt){for(var Mt=[];Nt-- >0;)Mt.push(0);return Mt}(this.m),f=!0,a=Math.min(this.m-1,this.n),p=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;E--)if(this.s[E]!==0){for(var y=E+1;y=0;W--){if(function(Nt,Mt){return Nt&&Mt}(W0;){var q=void 0,Rt=void 0;for(q=n-2;q>=-1&&q!==-1;q--)if(Math.abs(e[q])<=lt+_*(Math.abs(this.s[q])+Math.abs(this.s[q+1]))){e[q]=0;break}if(q===n-2)Rt=4;else{var Lt=void 0;for(Lt=n-1;Lt>=q&&Lt!==q;Lt--){var vt=(Lt!==n?Math.abs(e[Lt]):0)+(Lt!==q+1?Math.abs(e[Lt-1]):0);if(Math.abs(this.s[Lt])<=lt+_*vt){this.s[Lt]=0;break}}Lt===q?Rt=3:Lt===n-1?Rt=1:(Rt=2,q=Lt)}switch(q++,Rt){case 1:{var it=e[n-2];e[n-2]=0;for(var ut=n-2;ut>=q;ut--){var Tt=g.hypot(this.s[ut],it),At=this.s[ut]/Tt,Dt=it/Tt;this.s[ut]=Tt,ut!==q&&(it=-Dt*e[ut-1],e[ut-1]=At*e[ut-1]);for(var mt=0;mt=this.s[q+1]);){var Ct=this.s[q];if(this.s[q]=this.s[q+1],this.s[q+1]=Ct,qMath.abs(i)?(e=i/o,e=Math.abs(o)*Math.sqrt(1+e*e)):i!=0?(e=o/i,e=Math.abs(i)*Math.sqrt(1+e*e)):e=0,e},A.exports=g},function(A,Y,N){var g=function(){function e(r,f){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,e),this.sequence1=r,this.sequence2=f,this.match_score=a,this.mismatch_penalty=p,this.gap_penalty=t,this.iMax=r.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;r--){var f=this.listeners[r];f.event===i&&f.callback===e&&this.listeners.splice(r,1)}},o.emit=function(i,e){for(var r=0;r{var Y={45:(i,e,r)=>{var f={};f.layoutBase=r(551),f.CoSEConstants=r(806),f.CoSEEdge=r(767),f.CoSEGraph=r(880),f.CoSEGraphManager=r(578),f.CoSELayout=r(765),f.CoSENode=r(991),f.ConstraintHandler=r(902),i.exports=f},806:(i,e,r)=>{var f=r(551).FDLayoutConstants;function a(){}for(var p in f)a[p]=f[p];a.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,a.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,a.DEFAULT_COMPONENT_SEPERATION=60,a.TILE=!0,a.TILING_PADDING_VERTICAL=10,a.TILING_PADDING_HORIZONTAL=10,a.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,a.ENFORCE_CONSTRAINTS=!0,a.APPLY_LAYOUT=!0,a.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,a.TREE_REDUCTION_ON_INCREMENTAL=!0,a.PURE_INCREMENTAL=a.DEFAULT_INCREMENTAL,i.exports=a},767:(i,e,r)=>{var f=r(551).FDLayoutEdge;function a(t,h,s){f.call(this,t,h,s)}a.prototype=Object.create(f.prototype);for(var p in f)a[p]=f[p];i.exports=a},880:(i,e,r)=>{var f=r(551).LGraph;function a(t,h,s){f.call(this,t,h,s)}a.prototype=Object.create(f.prototype);for(var p in f)a[p]=f[p];i.exports=a},578:(i,e,r)=>{var f=r(551).LGraphManager;function a(t){f.call(this,t)}a.prototype=Object.create(f.prototype);for(var p in f)a[p]=f[p];i.exports=a},765:(i,e,r)=>{var f=r(551).FDLayout,a=r(578),p=r(880),t=r(991),h=r(767),s=r(806),c=r(902),l=r(551).FDLayoutConstants,T=r(551).LayoutConstants,u=r(551).Point,d=r(551).PointD,L=r(551).DimensionD,b=r(551).Layout,M=r(551).Integer,G=r(551).IGeometry,J=r(551).LGraph,V=r(551).Transform,Q=r(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}D.prototype=Object.create(f.prototype);for(var rt in f)D[rt]=f[rt];D.prototype.newGraphManager=function(){var n=new a(this);return this.graphManager=n,n},D.prototype.newGraph=function(n){return new p(null,this.graphManager,n)},D.prototype.newNode=function(n){return new t(this.graphManager,n)},D.prototype.newEdge=function(n){return new h(null,null,n)},D.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(s.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=s.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=s.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)},D.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.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(s.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),v=this.nodesWithGravity.filter(function(I){return m.has(I)});this.graphManager.setAllNodesToApplyGravitation(v)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),v=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(v),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),s.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.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 n=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),s.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()),s.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 v=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(v,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),m={},v=0;v0&&this.updateDisplacements();for(var v=0;v0&&(E.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var w=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){n.fixedNodesOnHorizontal.add(O),n.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var H=this.constraints.alignmentConstraint.vertical,v=0;v=2*O.length/3;_--)X=Math.floor(Math.random()*(_+1)),B=O[_],O[_]=O[X],O[X]=B;return O},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(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;n.nodesInRelativeHorizontal.includes(X)||(n.nodesInRelativeHorizontal.push(X),n.nodeToRelativeConstraintMapHorizontal.set(X,[]),n.dummyToNodeForVerticalAlignment.has(X)?n.nodeToTempPositionMapHorizontal.set(X,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(X)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(X,n.idToNodeMap.get(X).getCenterX())),n.nodesInRelativeHorizontal.includes(B)||(n.nodesInRelativeHorizontal.push(B),n.nodeToRelativeConstraintMapHorizontal.set(B,[]),n.dummyToNodeForVerticalAlignment.has(B)?n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(B)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(B).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(X).push({right:B,gap:O.gap}),n.nodeToRelativeConstraintMapHorizontal.get(B).push({left:X,gap:O.gap})}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;n.nodesInRelativeVertical.includes(_)||(n.nodesInRelativeVertical.push(_),n.nodeToRelativeConstraintMapVertical.set(_,[]),n.dummyToNodeForHorizontalAlignment.has(_)?n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(_).getCenterY())),n.nodesInRelativeVertical.includes(lt)||(n.nodesInRelativeVertical.push(lt),n.nodeToRelativeConstraintMapVertical.set(lt,[]),n.dummyToNodeForHorizontalAlignment.has(lt)?n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(lt)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(lt).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(_).push({bottom:lt,gap:O.gap}),n.nodeToRelativeConstraintMapVertical.get(lt).push({top:_,gap:O.gap})}});else{var k=new Map,W=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;k.has(X)?k.get(X).push(B):k.set(X,[B]),k.has(B)?k.get(B).push(X):k.set(B,[X])}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;W.has(_)?W.get(_).push(lt):W.set(_,[lt]),W.has(lt)?W.get(lt).push(_):W.set(lt,[_])}});var U=function(X,B){var _=[],lt=[],q=new Q,Rt=new Set,Lt=0;return X.forEach(function(vt,it){if(!Rt.has(it)){_[Lt]=[],lt[Lt]=!1;var ut=it;for(q.push(ut),Rt.add(ut),_[Lt].push(ut);q.length!=0;){ut=q.shift(),B.has(ut)&&(lt[Lt]=!0);var Tt=X.get(ut);Tt.forEach(function(At){Rt.has(At)||(q.push(At),Rt.add(At),_[Lt].push(At))})}Lt++}}),{components:_,isFixed:lt}},et=U(k,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=U(W,n.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},D.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var O=n.idToNodeMap.get(z.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,v=0;v1){var R;for(R=0;RE&&(E=Math.floor(w.y)),I=Math.floor(w.x+s.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(T.WORLD_CENTER_X-w.x/2,T.WORLD_CENTER_Y-w.y/2))},D.radialLayout=function(n,m,v){var E=Math.max(this.maxDiagonalInTree(n),s.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(m,null,0,359,0,E);var y=J.calculateBounds(n),I=new V;I.setDeviceOrgX(y.getMinX()),I.setDeviceOrgY(y.getMinY()),I.setWorldOrgX(v.x),I.setWorldOrgY(v.y);for(var w=0;w1;){var B=X[0];X.splice(0,1);var _=W.indexOf(B);_>=0&&W.splice(_,1),z--,U--}m!=null?O=(W.indexOf(X[0])+1)%z:O=0;for(var lt=Math.abs(E-v)/U,q=O;et!=U;q=++q%z){var Rt=W[q].getOtherEnd(n);if(Rt!=m){var Lt=(v+et*lt)%360,vt=(Lt+lt)%360;D.branchRadialLayout(Rt,n,Lt,vt,y+I,I),et++}}},D.maxDiagonalInTree=function(n){for(var m=M.MIN_VALUE,v=0;vm&&(m=y)}return m},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var n=this,m={};this.memberGroups={},this.idToDummyNode={};for(var v=[],E=this.graphManager.getAllNodes(),y=0;y1){var x="DummyCompound_"+H;n.memberGroups[x]=m[H];var k=m[H][0].getParent(),W=new t(n.graphManager);W.id=x,W.paddingLeft=k.paddingLeft||0,W.paddingRight=k.paddingRight||0,W.paddingBottom=k.paddingBottom||0,W.paddingTop=k.paddingTop||0,n.idToDummyNode[x]=W;var U=n.getGraphManager().add(n.newGraph(),W),et=k.getChild();et.add(W);for(var z=0;zy?(E.rect.x-=(E.labelWidth-y)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-y)/2):E.labelPosHorizontal=="right"&&E.setWidth(y+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(I+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>I?(E.rect.y-=(E.labelHeight-I)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-I)/2):E.labelPosVertical=="bottom"&&E.setHeight(I+E.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var m=this.compoundOrder[n],v=m.id,E=m.paddingLeft,y=m.paddingTop,I=m.labelMarginLeft,w=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[v],m.rect.x,m.rect.y,E,y,I,w)}},D.prototype.repopulateZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(v){var E=n.idToDummyNode[v],y=E.paddingLeft,I=E.paddingTop,w=E.labelMarginLeft,R=E.labelMarginTop;n.adjustLocations(m[v],E.rect.x,E.rect.y,y,I,w,R)})},D.prototype.getToBeTiled=function(n){var m=n.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var v=n.getChild();if(v==null)return this.toBeTiled[m]=!1,!1;for(var E=v.getNodes(),y=0;y0)return this.toBeTiled[m]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},D.prototype.getNodeDegree=function(n){n.id;for(var m=n.getEdges(),v=0,E=0;Ek&&(k=U.rect.height)}v+=k+n.verticalPadding}},D.prototype.tileCompoundMembers=function(n,m){var v=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(E){var y=m[E];if(v.tiledMemberPack[E]=v.tileNodes(n[E],y.paddingLeft+y.paddingRight),y.rect.width=v.tiledMemberPack[E].width,y.rect.height=v.tiledMemberPack[E].height,y.setCenter(v.tiledMemberPack[E].centerX,v.tiledMemberPack[E].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,s.NODE_DIMENSIONS_INCLUDE_LABELS){var I=y.rect.width,w=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(I+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>I?(y.rect.x-=(y.labelWidth-I)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-I)/2):y.labelPosHorizontal=="right"&&y.setWidth(I+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(w+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>w?(y.rect.y-=(y.labelHeight-w)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-w)/2):y.labelPosVertical=="bottom"&&y.setHeight(w+y.labelHeight))}})},D.prototype.tileNodes=function(n,m){var v=this.tileNodesByFavoringDim(n,m,!0),E=this.tileNodesByFavoringDim(n,m,!1),y=this.getOrgRatio(v),I=this.getOrgRatio(E),w;return IR&&(R=z.getWidth())});var H=I/y,x=w/y,k=Math.pow(v-E,2)+4*(H+E)*(x+v)*y,W=(E-v+Math.sqrt(k))/(2*(H+E)),U;m?(U=Math.ceil(W),U==W&&U++):U=Math.floor(W);var et=U*(H+E)-E;return R>et&&(et=R),et+=E*2,et},D.prototype.tileNodesByFavoringDim=function(n,m,v){var E=s.TILING_PADDING_VERTICAL,y=s.TILING_PADDING_HORIZONTAL,I=s.TILING_COMPARE_BY,w={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:y,centerX:0,centerY:0};I&&(w.idealRowWidth=this.calcIdealRowWidth(n,v));var R=function(O){return O.rect.width*O.rect.height},H=function(O,X){return R(X)-R(O)};n.sort(function(z,O){var X=H;return w.idealRowWidth?(X=I,X(z.id,O.id)):X(z,O)});for(var x=0,k=0,W=0;W0&&(w+=n.horizontalPadding),n.rowWidth[v]=w,n.width0&&(R+=n.verticalPadding);var H=0;R>n.rowHeight[v]&&(H=n.rowHeight[v],n.rowHeight[v]=R,H=n.rowHeight[v]-H),n.height+=H,n.rows[v].push(m)},D.prototype.getShortestRowIndex=function(n){for(var m=-1,v=Number.MAX_VALUE,E=0;Ev&&(m=E,v=n.rowWidth[E]);return m},D.prototype.canAddHorizontal=function(n,m,v){if(n.idealRowWidth){var E=n.rows.length-1,y=n.rowWidth[E];return y+m+n.horizontalPadding<=n.idealRowWidth}var I=this.getShortestRowIndex(n);if(I<0)return!0;var w=n.rowWidth[I];if(w+n.horizontalPadding+m<=n.width)return!0;var R=0;n.rowHeight[I]0&&(R=v+n.verticalPadding-n.rowHeight[I]);var H;n.width-w>=m+n.horizontalPadding?H=(n.height+R)/(w+m+n.horizontalPadding):H=(n.height+R)/n.width,R=v+n.verticalPadding;var x;return n.widthI&&m!=v){E.splice(-1,1),n.rows[v].push(y),n.rowWidth[m]=n.rowWidth[m]-I,n.rowWidth[v]=n.rowWidth[v]+I,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var w=Number.MIN_VALUE,R=0;Rw&&(w=E[R].height);m>0&&(w+=n.verticalPadding);var H=n.rowHeight[m]+n.rowHeight[v];n.rowHeight[m]=w,n.rowHeight[v]0)for(var et=y;et<=I;et++)U[0]+=this.grid[et][w-1].length+this.grid[et][w].length-1;if(I0)for(var et=w;et<=R;et++)U[3]+=this.grid[y-1][et].length+this.grid[y][et].length-1;for(var z=M.MAX_VALUE,O,X,B=0;B{var f=r(551).FDLayoutNode,a=r(551).IMath;function p(h,s,c,l){f.call(this,h,s,c,l)}p.prototype=Object.create(f.prototype);for(var t in f)p[t]=f[t];p.prototype.calculateDisplacement=function(){var h=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementX=h.coolingFactor*h.maxNodeDisplacement*a.sign(this.displacementX)),Math.abs(this.displacementY)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementY=h.coolingFactor*h.maxNodeDisplacement*a.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},p.prototype.propogateDisplacementToChildren=function(h,s){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Ct=0;st.forEach(function(ht){$=="horizontal"?(tt.set(ht,u.has(ht)?d[u.get(ht)]:Z.get(ht)),Ct+=tt.get(ht)):(tt.set(ht,u.has(ht)?L[u.get(ht)]:Z.get(ht)),Ct+=tt.get(ht))}),Ct=Ct/st.length,ft.forEach(function(ht){K.has(ht)||tt.set(ht,Ct)})}else{var ct=0;ft.forEach(function(ht){$=="horizontal"?ct+=u.has(ht)?d[u.get(ht)]:Z.get(ht):ct+=u.has(ht)?L[u.get(ht)]:Z.get(ht)}),ct=ct/ft.length,ft.forEach(function(ht){tt.set(ht,ct)})}});for(var wt=function(){var st=dt.shift(),Ct=P.get(st);Ct.forEach(function(ct){if(tt.get(ct.id)ht&&(ht=qt),teWt&&(Wt=te)}}catch(ae){Mt=!0,Zt=ae}finally{try{!Nt&&Gt.return&&Gt.return()}finally{if(Mt)throw Zt}}var de=(Ct+ht)/2-(ct+Wt)/2,jt=!0,ee=!1,re=void 0;try{for(var _t=ft[Symbol.iterator](),he;!(jt=(he=_t.next()).done);jt=!0){var ie=he.value;tt.set(ie,tt.get(ie)+de)}}catch(ae){ee=!0,re=ae}finally{try{!jt&&_t.return&&_t.return()}finally{if(ee)throw re}}})}return tt},rt=function(P){var $=0,K=0,Z=0,at=0;if(P.forEach(function(j){j.left?d[u.get(j.left)]-d[u.get(j.right)]>=0?$++:K++:L[u.get(j.top)]-L[u.get(j.bottom)]>=0?Z++:at++}),$>K&&Z>at)for(var gt=0;gtK)for(var ot=0;otat)for(var tt=0;tt1)l.fixedNodeConstraint.forEach(function(S,P){E[P]=[S.position.x,S.position.y],y[P]=[d[u.get(S.nodeId)],L[u.get(S.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var S=0;if(l.alignmentConstraint.vertical){for(var P=l.alignmentConstraint.vertical,$=function(tt){var j=new Set;P[tt].forEach(function(yt){j.add(yt)});var dt=new Set([].concat(f(j)).filter(function(yt){return R.has(yt)})),wt=void 0;dt.size>0?wt=d[u.get(dt.values().next().value)]:wt=Q(j).x,P[tt].forEach(function(yt){E[S]=[wt,L[u.get(yt)]],y[S]=[d[u.get(yt)],L[u.get(yt)]],S++})},K=0;K0?wt=d[u.get(dt.values().next().value)]:wt=Q(j).y,Z[tt].forEach(function(yt){E[S]=[d[u.get(yt)],wt],y[S]=[d[u.get(yt)],L[u.get(yt)]],S++})},gt=0;gtW&&(W=k[et].length,U=et);if(W0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(S,P){var $={x:d[u.get(S.nodeId)],y:L[u.get(S.nodeId)]},K=S.position,Z=V(K,$);mt.x+=Z.x,mt.y+=Z.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,d.forEach(function(S,P){d[P]+=mt.x}),L.forEach(function(S,P){L[P]+=mt.y}),l.fixedNodeConstraint.forEach(function(S){d[u.get(S.nodeId)]=S.position.x,L[u.get(S.nodeId)]=S.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var xt=l.alignmentConstraint.vertical,St=function(P){var $=new Set;xt[P].forEach(function(at){$.add(at)});var K=new Set([].concat(f($)).filter(function(at){return R.has(at)})),Z=void 0;K.size>0?Z=d[u.get(K.values().next().value)]:Z=Q($).x,$.forEach(function(at){R.has(at)||(d[u.get(at)]=Z)})},Vt=0;Vt0?Z=L[u.get(K.values().next().value)]:Z=Q($).y,$.forEach(function(at){R.has(at)||(L[u.get(at)]=Z)})},bt=0;bt{i.exports=A}},N={};function g(i){var e=N[i];if(e!==void 0)return e.exports;var r=N[i]={exports:{}};return Y[i](r,r.exports,g),r.exports}var o=g(45);return o})()})}(me)),me.exports}(function(C,F){(function(Y,N){C.exports=N(Nr())})(Me,function(A){return(()=>{var Y={658:i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(e){for(var r=arguments.length,f=Array(r>1?r-1:0),a=1;a{var f=function(){function t(h,s){var c=[],l=!0,T=!1,u=void 0;try{for(var d=h[Symbol.iterator](),L;!(l=(L=d.next()).done)&&(c.push(L.value),!(s&&c.length===s));l=!0);}catch(b){T=!0,u=b}finally{try{!l&&d.return&&d.return()}finally{if(T)throw u}}return c}return function(h,s){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return t(h,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=r(140).layoutBase.LinkedList,p={};p.getTopMostNodes=function(t){for(var h={},s=0;s0&&I.merge(x)});for(var w=0;w1){L=u[0],b=L.connectedEdges().length,u.forEach(function(y){y.connectedEdges().length0&&c.set("dummy"+(c.size+1),J),V},p.relocateComponent=function(t,h,s){if(!s.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(s.quality=="draft"){var d=!0,L=!1,b=void 0;try{for(var M=h.nodeIndexes[Symbol.iterator](),G;!(d=(G=M.next()).done);d=!0){var J=G.value,V=f(J,2),Q=V[0],D=V[1],rt=s.cy.getElementById(Q);if(rt){var n=rt.boundingBox(),m=h.xCoords[D]-n.w/2,v=h.xCoords[D]+n.w/2,E=h.yCoords[D]-n.h/2,y=h.yCoords[D]+n.h/2;ml&&(l=v),Eu&&(u=y)}}}catch(x){L=!0,b=x}finally{try{!d&&M.return&&M.return()}finally{if(L)throw b}}var I=t.x-(l+c)/2,w=t.y-(u+T)/2;h.xCoords=h.xCoords.map(function(x){return x+I}),h.yCoords=h.yCoords.map(function(x){return x+w})}else{Object.keys(h).forEach(function(x){var k=h[x],W=k.getRect().x,U=k.getRect().x+k.getRect().width,et=k.getRect().y,z=k.getRect().y+k.getRect().height;Wl&&(l=U),etu&&(u=z)});var R=t.x-(l+c)/2,H=t.y-(u+T)/2;Object.keys(h).forEach(function(x){var k=h[x];k.setCenter(k.getCenterX()+R,k.getCenterY()+H)})}}},p.calcBoundingBox=function(t,h,s,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,L=void 0,b=void 0,M=void 0,G=void 0,J=t.descendants().not(":parent"),V=J.length,Q=0;QL&&(l=L),TM&&(u=M),d{var f=r(548),a=r(140).CoSELayout,p=r(140).CoSENode,t=r(140).layoutBase.PointD,h=r(140).layoutBase.DimensionD,s=r(140).layoutBase.LayoutConstants,c=r(140).layoutBase.FDLayoutConstants,l=r(140).CoSEConstants,T=function(d,L){var b=d.cy,M=d.eles,G=M.nodes(),J=M.edges(),V=void 0,Q=void 0,D=void 0,rt={};d.randomize&&(V=L.nodeIndexes,Q=L.xCoords,D=L.yCoords);var n=function(x){return typeof x=="function"},m=function(x,k){return n(x)?x(k):x},v=f.calcParentsWithoutChildren(b,M),E=function H(x,k,W,U){for(var et=k.length,z=0;z0){var q=void 0;q=W.getGraphManager().add(W.newGraph(),B),H(q,X,W,U)}}},y=function(x,k,W){for(var U=0,et=0,z=0;z0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=U/et:n(d.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,k){k.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=k.fixedNodeConstraint),k.alignmentConstraint&&(x.constraints.alignmentConstraint=k.alignmentConstraint),k.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=k.relativePlacementConstraint)};d.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?s.QUALITY=2:s.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=s.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!d.randomize,l.ANIMATE=c.ANIMATE=s.ANIMATE=d.animate,l.TILE=d.tile,l.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!d.randomize,s.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),d.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),d.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var w=new a,R=w.newGraphManager();return E(R.addRoot(),f.getTopMostNodes(G),w,d),y(w,R,J),I(w,d),w.runLayout(),rt};i.exports={coseLayout:T}},212:(i,e,r)=>{var f=function(){function d(L,b){for(var M=0;M0)if(v){var I=t.getTopMostNodes(M.eles.nodes());if(D=t.connectComponents(G,M.eles,I),D.forEach(function(vt){var it=vt.boundingBox();rt.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),M.randomize&&D.forEach(function(vt){M.eles=vt,V.push(s(M))}),M.quality=="default"||M.quality=="proof"){var w=G.collection();if(M.tile){var R=new Map,H=[],x=[],k=0,W={nodeIndexes:R,xCoords:H,yCoords:x},U=[];if(D.forEach(function(vt,it){vt.edges().length==0&&(vt.nodes().forEach(function(ut,Tt){w.merge(vt.nodes()[Tt]),ut.isParent()||(W.nodeIndexes.set(vt.nodes()[Tt].id(),k++),W.xCoords.push(vt.nodes()[0].position().x),W.yCoords.push(vt.nodes()[0].position().y))}),U.push(it))}),w.length>1){var et=w.boundingBox();rt.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),D.push(w),V.push(W);for(var z=U.length-1;z>=0;z--)D.splice(U[z],1),V.splice(U[z],1),rt.splice(U[z],1)}}D.forEach(function(vt,it){M.eles=vt,Q.push(l(M,V[it])),t.relocateComponent(rt[it],Q[it],M)})}else D.forEach(function(vt,it){t.relocateComponent(rt[it],V[it],M)});var O=new Set;if(D.length>1){var X=[],B=J.filter(function(vt){return vt.css("display")=="none"});D.forEach(function(vt,it){var ut=void 0;if(M.quality=="draft"&&(ut=V[it].nodeIndexes),vt.nodes().not(B).length>0){var Tt={};Tt.edges=[],Tt.nodes=[];var At=void 0;vt.nodes().not(B).forEach(function(Dt){if(M.quality=="draft")if(!Dt.isParent())At=ut.get(Dt.id()),Tt.nodes.push({x:V[it].xCoords[At]-Dt.boundingbox().w/2,y:V[it].yCoords[At]-Dt.boundingbox().h/2,width:Dt.boundingbox().w,height:Dt.boundingbox().h});else{var mt=t.calcBoundingBox(Dt,V[it].xCoords,V[it].yCoords,ut);Tt.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else Q[it][Dt.id()]&&Tt.nodes.push({x:Q[it][Dt.id()].getLeft(),y:Q[it][Dt.id()].getTop(),width:Q[it][Dt.id()].getWidth(),height:Q[it][Dt.id()].getHeight()})}),vt.edges().forEach(function(Dt){var mt=Dt.source(),xt=Dt.target();if(mt.css("display")!="none"&&xt.css("display")!="none")if(M.quality=="draft"){var St=ut.get(mt.id()),Vt=ut.get(xt.id()),Xt=[],Ut=[];if(mt.isParent()){var bt=t.calcBoundingBox(mt,V[it].xCoords,V[it].yCoords,ut);Xt.push(bt.topLeftX+bt.width/2),Xt.push(bt.topLeftY+bt.height/2)}else Xt.push(V[it].xCoords[St]),Xt.push(V[it].yCoords[St]);if(xt.isParent()){var Ht=t.calcBoundingBox(xt,V[it].xCoords,V[it].yCoords,ut);Ut.push(Ht.topLeftX+Ht.width/2),Ut.push(Ht.topLeftY+Ht.height/2)}else Ut.push(V[it].xCoords[Vt]),Ut.push(V[it].yCoords[Vt]);Tt.edges.push({startX:Xt[0],startY:Xt[1],endX:Ut[0],endY:Ut[1]})}else Q[it][mt.id()]&&Q[it][xt.id()]&&Tt.edges.push({startX:Q[it][mt.id()].getCenterX(),startY:Q[it][mt.id()].getCenterY(),endX:Q[it][xt.id()].getCenterX(),endY:Q[it][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(X.push(Tt),O.add(it))}});var _=m.packComponents(X,M.randomize).shifts;if(M.quality=="draft")V.forEach(function(vt,it){var ut=vt.xCoords.map(function(At){return At+_[it].dx}),Tt=vt.yCoords.map(function(At){return At+_[it].dy});vt.xCoords=ut,vt.yCoords=Tt});else{var lt=0;O.forEach(function(vt){Object.keys(Q[vt]).forEach(function(it){var ut=Q[vt][it];ut.setCenter(ut.getCenterX()+_[lt].dx,ut.getCenterY()+_[lt].dy)}),lt++})}}}else{var E=M.eles.boundingBox();if(rt.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),M.randomize){var y=s(M);V.push(y)}M.quality=="default"||M.quality=="proof"?(Q.push(l(M,V[0])),t.relocateComponent(rt[0],Q[0],M)):t.relocateComponent(rt[0],V[0],M)}var q=function(it,ut){if(M.quality=="default"||M.quality=="proof"){typeof it=="number"&&(it=ut);var Tt=void 0,At=void 0,Dt=it.data("id");return Q.forEach(function(xt){Dt in xt&&(Tt={x:xt[Dt].getRect().getCenterX(),y:xt[Dt].getRect().getCenterY()},At=xt[Dt])}),M.nodeDimensionsIncludeLabels&&(At.labelWidth&&(At.labelPosHorizontal=="left"?Tt.x+=At.labelWidth/2:At.labelPosHorizontal=="right"&&(Tt.x-=At.labelWidth/2)),At.labelHeight&&(At.labelPosVertical=="top"?Tt.y+=At.labelHeight/2:At.labelPosVertical=="bottom"&&(Tt.y-=At.labelHeight/2))),Tt==null&&(Tt={x:it.position("x"),y:it.position("y")}),{x:Tt.x,y:Tt.y}}else{var mt=void 0;return V.forEach(function(xt){var St=xt.nodeIndexes.get(it.id());St!=null&&(mt={x:xt.xCoords[St],y:xt.yCoords[St]})}),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}};if(M.quality=="default"||M.quality=="proof"||M.randomize){var Rt=t.calcParentsWithoutChildren(G,J),Lt=J.filter(function(vt){return vt.css("display")=="none"});M.eles=J.not(Lt),J.nodes().not(":parent").not(Lt).layoutPositions(b,M,q),Rt.length>0&&Rt.forEach(function(vt){vt.position(q(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),d}();i.exports=u},657:(i,e,r)=>{var f=r(548),a=r(140).layoutBase.Matrix,p=r(140).layoutBase.SVD,t=function(s){var c=s.cy,l=s.eles,T=l.nodes(),u=l.nodes(":parent"),d=new Map,L=new Map,b=new Map,M=[],G=[],J=[],V=[],Q=[],D=[],rt=[],n=[],m=void 0,v=1e8,E=1e-9,y=s.piTol,I=s.samplingType,w=s.nodeSeparation,R=void 0,H=function(){for(var P=0,$=0,K=!1;$=at;){ot=Z[at++];for(var It=M[ot],ft=0;ftdt&&(dt=Q[Ct],wt=Ct)}return wt},k=function(P){var $=void 0;if(P){$=Math.floor(Math.random()*m);for(var Z=0;Z=1)break;j=tt}for(var yt=0;yt=1)break;j=tt}for(var ft=0;ft0&&($.isParent()?M[P].push(b.get($.id())):M[P].push($.id()))})});var Lt=function(P){var $=L.get(P),K=void 0;d.get(P).forEach(function(Z){c.getElementById(Z).isParent()?K=b.get(Z):K=Z,M[$].push(K),M[L.get(K)].push(P)})},vt=!0,it=!1,ut=void 0;try{for(var Tt=d.keys()[Symbol.iterator](),At;!(vt=(At=Tt.next()).done);vt=!0){var Dt=At.value;Lt(Dt)}}catch(S){it=!0,ut=S}finally{try{!vt&&Tt.return&&Tt.return()}finally{if(it)throw ut}}m=L.size;var mt=void 0;if(m>2){R=m{var f=r(212),a=function(t){t&&t("layout","fcose",f)};typeof cytoscape!="undefined"&&a(cytoscape),i.exports=a},140:i=>{i.exports=A}},N={};function g(i){var e=N[i];if(e!==void 0)return e.exports;var r=N[i]={exports:{}};return Y[i](r,r.exports,g),r.exports}var o=g(579);return o})()})})(Xe);var Lr=Xe.exports;const Cr=mr(Lr);var be={L:"left",R:"right",T:"top",B:"bottom"},Pe={L:nt(C=>`${C},${C/2} 0,${C} 0,0`,"L"),R:nt(C=>`0,${C/2} ${C},0 ${C},${C}`,"R"),T:nt(C=>`0,0 ${C},0 ${C/2},${C}`,"T"),B:nt(C=>`${C/2},0 ${C},${C} 0,${C}`,"B")},ce={L:nt((C,F)=>C-F+2,"L"),R:nt((C,F)=>C-2,"R"),T:nt((C,F)=>C-F+2,"T"),B:nt((C,F)=>C-2,"B")},Mr=nt(function(C){return zt(C)?C==="L"?"R":"L":C==="T"?"B":"T"},"getOppositeArchitectureDirection"),Ge=nt(function(C){const F=C;return F==="L"||F==="R"||F==="T"||F==="B"},"isArchitectureDirection"),zt=nt(function(C){const F=C;return F==="L"||F==="R"},"isArchitectureDirectionX"),Kt=nt(function(C){const F=C;return F==="T"||F==="B"},"isArchitectureDirectionY"),He=nt(function(C,F){const A=zt(C)&&Kt(F),Y=Kt(C)&&zt(F);return A||Y},"isArchitectureDirectionXY"),Ar=nt(function(C){const F=C[0],A=C[1],Y=zt(F)&&Kt(A),N=Kt(F)&&zt(A);return Y||N},"isArchitecturePairXY"),wr=nt(function(C){return C!=="LL"&&C!=="RR"&&C!=="TT"&&C!=="BB"},"isValidArchitectureDirectionPair"),Le=nt(function(C,F){const A=`${C}${F}`;return wr(A)?A:void 0},"getArchitectureDirectionPair"),Or=nt(function([C,F],A){const Y=A[0],N=A[1];return zt(Y)?Kt(N)?[C+(Y==="L"?-1:1),F+(N==="T"?1:-1)]:[C+(Y==="L"?-1:1),F]:zt(N)?[C+(N==="L"?1:-1),F+(Y==="T"?1:-1)]:[C,F+(Y==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Dr=nt(function(C){return C==="LT"||C==="TL"?[1,1]:C==="BL"||C==="LB"?[1,-1]:C==="BR"||C==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),xr=nt(function(C){return C.type==="service"},"isArchitectureService"),Ir=nt(function(C){return C.type==="junction"},"isArchitectureJunction"),We=nt(C=>C.data(),"edgeData"),oe=nt(C=>C.data(),"nodeData"),Ve=ir.architecture,pt=new yr(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:Ve,dataStructures:void 0,elements:{}})),Rr=nt(()=>{pt.reset(),ur()},"clear"),Sr=nt(function({id:C,icon:F,in:A,title:Y,iconText:N}){if(pt.records.registeredIds[C]!==void 0)throw new Error(`The service id [${C}] is already in use by another ${pt.records.registeredIds[C]}`);if(A!==void 0){if(C===A)throw new Error(`The service [${C}] cannot be placed within itself`);if(pt.records.registeredIds[A]===void 0)throw new Error(`The service [${C}]'s parent does not exist. Please make sure the parent is created before this service`);if(pt.records.registeredIds[A]==="node")throw new Error(`The service [${C}]'s parent is not a group`)}pt.records.registeredIds[C]="node",pt.records.nodes[C]={id:C,type:"service",icon:F,iconText:N,title:Y,edges:[],in:A}},"addService"),Fr=nt(()=>Object.values(pt.records.nodes).filter(xr),"getServices"),br=nt(function({id:C,in:F}){pt.records.registeredIds[C]="node",pt.records.nodes[C]={id:C,type:"junction",edges:[],in:F}},"addJunction"),Pr=nt(()=>Object.values(pt.records.nodes).filter(Ir),"getJunctions"),Gr=nt(()=>Object.values(pt.records.nodes),"getNodes"),Ur=nt(C=>pt.records.nodes[C],"getNode"),Yr=nt(function({id:C,icon:F,in:A,title:Y}){if(pt.records.registeredIds[C]!==void 0)throw new Error(`The group id [${C}] is already in use by another ${pt.records.registeredIds[C]}`);if(A!==void 0){if(C===A)throw new Error(`The group [${C}] cannot be placed within itself`);if(pt.records.registeredIds[A]===void 0)throw new Error(`The group [${C}]'s parent does not exist. Please make sure the parent is created before this group`);if(pt.records.registeredIds[A]==="node")throw new Error(`The group [${C}]'s parent is not a group`)}pt.records.registeredIds[C]="group",pt.records.groups[C]={id:C,icon:F,title:Y,in:A}},"addGroup"),Xr=nt(()=>Object.values(pt.records.groups),"getGroups"),Hr=nt(function({lhsId:C,rhsId:F,lhsDir:A,rhsDir:Y,lhsInto:N,rhsInto:g,lhsGroup:o,rhsGroup:i,title:e}){if(!Ge(A))throw new Error(`Invalid direction given for left hand side of edge ${C}--${F}. Expected (L,R,T,B) got ${A}`);if(!Ge(Y))throw new Error(`Invalid direction given for right hand side of edge ${C}--${F}. Expected (L,R,T,B) got ${Y}`);if(pt.records.nodes[C]===void 0&&pt.records.groups[C]===void 0)throw new Error(`The left-hand id [${C}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(pt.records.nodes[F]===void 0&&pt.records.groups[C]===void 0)throw new Error(`The right-hand id [${F}] does not yet exist. Please create the service/group before declaring an edge to it.`);const r=pt.records.nodes[C].in,f=pt.records.nodes[F].in;if(o&&r&&f&&r==f)throw new Error(`The left-hand id [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(i&&r&&f&&r==f)throw new Error(`The right-hand id [${F}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const a={lhsId:C,lhsDir:A,lhsInto:N,lhsGroup:o,rhsId:F,rhsDir:Y,rhsInto:g,rhsGroup:i,title:e};pt.records.edges.push(a),pt.records.nodes[C]&&pt.records.nodes[F]&&(pt.records.nodes[C].edges.push(pt.records.edges[pt.records.edges.length-1]),pt.records.nodes[F].edges.push(pt.records.edges[pt.records.edges.length-1]))},"addEdge"),Wr=nt(()=>pt.records.edges,"getEdges"),Vr=nt(()=>{if(pt.records.dataStructures===void 0){const C=Object.entries(pt.records.nodes).reduce((o,[i,e])=>(o[i]=e.edges.reduce((r,f)=>{if(f.lhsId===i){const a=Le(f.lhsDir,f.rhsDir);a&&(r[a]=f.rhsId)}else{const a=Le(f.rhsDir,f.lhsDir);a&&(r[a]=f.lhsId)}return r},{}),o),{}),F=Object.keys(C)[0],A={[F]:1},Y=Object.keys(C).reduce((o,i)=>i===F?o:fe(le({},o),{[i]:1}),{}),N=nt(o=>{const i={[o]:[0,0]},e=[o];for(;e.length>0;){const r=e.shift();if(r){A[r]=1,delete Y[r];const f=C[r],[a,p]=i[r];Object.entries(f).forEach(([t,h])=>{A[h]||(i[h]=Or([a,p],t),e.push(h))})}}return i},"BFS"),g=[N(F)];for(;Object.keys(Y).length>0;)g.push(N(Object.keys(Y)[0]));pt.records.dataStructures={adjList:C,spatialMaps:g}}return pt.records.dataStructures},"getDataStructures"),zr=nt((C,F)=>{pt.records.elements[C]=F},"setElementForId"),Br=nt(C=>pt.records.elements[C],"getElementById"),ge={clear:Rr,setDiagramTitle:or,getDiagramTitle:sr,setAccTitle:hr,getAccTitle:lr,setAccDescription:fr,getAccDescription:cr,addService:Sr,getServices:Fr,addJunction:br,getJunctions:Pr,getNodes:Gr,getNode:Ur,addGroup:Yr,getGroups:Xr,addEdge:Hr,getEdges:Wr,setElementForId:zr,getElementById:Br,getDataStructures:Vr};function Pt(C){const F=ue().architecture;return F!=null&&F[C]?F[C]:Ve[C]}nt(Pt,"getConfigField");var $r=nt((C,F)=>{pr(C,F),C.groups.map(F.addGroup),C.services.map(A=>F.addService(fe(le({},A),{type:"service"}))),C.junctions.map(A=>F.addJunction(fe(le({},A),{type:"junction"}))),C.edges.map(F.addEdge)},"populateDb"),Zr={parse:nt(C=>Qt(void 0,null,function*(){const F=yield Er("architecture",C);Ue.debug(F),$r(F,ge)}),"parse")},kr=nt(C=>` .edge { stroke-width: ${C.archEdgeWidth}; stroke: ${C.archEdgeColor}; diff --git a/pr-preview/pr-419/assets/blockDiagram-EN3ZKWFM-ngXiVgR0.js b/pr-preview/pr-419/assets/blockDiagram-EN3ZKWFM-BCBVUS81.js similarity index 98% rename from pr-preview/pr-419/assets/blockDiagram-EN3ZKWFM-ngXiVgR0.js rename to pr-preview/pr-419/assets/blockDiagram-EN3ZKWFM-BCBVUS81.js index 8db501c29..5dedcce2c 100644 --- a/pr-preview/pr-419/assets/blockDiagram-EN3ZKWFM-ngXiVgR0.js +++ b/pr-preview/pr-419/assets/blockDiagram-EN3ZKWFM-BCBVUS81.js @@ -1,4 +1,4 @@ -var Me=Object.defineProperty,Ye=Object.defineProperties;var We=Object.getOwnPropertyDescriptors;var Se=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var xe=(e,a,l)=>a in e?Me(e,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[a]=l,G=(e,a)=>{for(var l in a||(a={}))Ve.call(a,l)&&xe(e,l,a[l]);if(Se)for(var l of Se(a))je.call(a,l)&&xe(e,l,a[l]);return e},q=(e,a)=>Ye(e,We(a));var j=(e,a,l)=>new Promise((c,d)=>{var p=o=>{try{f(l.next(o))}catch(x){d(x)}},n=o=>{try{f(l.throw(o))}catch(x){d(x)}},f=o=>o.done?c(o.value):Promise.resolve(o.value).then(p,n);f((l=l.apply(e,a)).next())});import{a as Ue,i as Xe,p as He,m as Ge}from"./chunk-UGV5ZQQN-DIz6YliH.js";import{i as we,p as qe}from"./chunk-YWFND7JV-BUZzWDIH.js";import{_ as u,d as De,l as y,ab as Je,H as le,j as $,k as Ze,t as Qe,z as $e,e as et}from"./Using existing ones-1ACZX-0W.js";import{c as tt}from"./clone-qL6R6e7B.js";import{G as st}from"./graph-BbauKfQB.js";import{c as rt}from"./channel-C9Gn3gkd.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";var ne=function(){var e=u(function(T,h,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=h);return s},"o"),a=[1,7],l=[1,13],c=[1,14],d=[1,15],p=[1,19],n=[1,16],f=[1,17],o=[1,18],x=[8,30],b=[8,21,28,29,30,31,32,40,44,47],E=[1,23],N=[1,24],A=[8,15,16,21,28,29,30,31,32,40,44,47],v=[8,15,16,21,27,28,29,30,31,32,40,44,47],O=[1,49],_={trace:u(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:u(function(h,s,i,g,L,t,I){var r=t.length-1;switch(L){case 4:g.getLogger().debug("Rule: separator (NL) ");break;case 5:g.getLogger().debug("Rule: separator (Space) ");break;case 6:g.getLogger().debug("Rule: separator (EOF) ");break;case 7:g.getLogger().debug("Rule: hierarchy: ",t[r-1]),g.setHierarchy(t[r-1]);break;case 8:g.getLogger().debug("Stop NL ");break;case 9:g.getLogger().debug("Stop EOF ");break;case 10:g.getLogger().debug("Stop NL2 ");break;case 11:g.getLogger().debug("Stop EOF2 ");break;case 12:g.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:g.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:g.getLogger().debug("Rule: link: ",t[r],h),this.$={edgeTypeStr:t[r],label:""};break;case 15:g.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:const m=parseInt(t[r]),R=g.generateId();this.$={id:R,type:"space",label:"",width:m,children:[]};break;case 23:g.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);const S=g.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:S,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:g.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:g.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:g.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:g.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:g.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:g.getLogger().debug("APA123",this?this:"na"),g.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:g.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),g.generateId(),this.$=q(G({},t[r-2]),{type:"composite",children:t[r-1]});break;case 28:g.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);const C=g.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:g.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:g.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:g.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:g.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:g.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:g.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:l,29:c,31:d,32:p,40:n,44:f,47:o},{8:[1,20]},e(x,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:a,28:l,29:c,31:d,32:p,40:n,44:f,47:o}),e(b,[2,16],{14:22,15:E,16:N}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(A,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,32:p},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:l,29:c,31:d,32:p,40:n,44:f,47:o},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(v,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(x,[2,13]),{26:35,32:p},{32:[2,14]},{17:[1,36]},e(A,[2,24]),{11:37,13:4,14:22,15:E,16:N,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:l,29:c,31:d,32:p,40:n,44:f,47:o},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(v,[2,30]),{18:[1,43]},{18:[1,44]},e(A,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{37:[1,47]},{34:48,35:O},{15:[1,50]},e(b,[2,27]),e(v,[2,33]),{39:[1,51]},{34:52,35:O,39:[2,31]},{32:[2,15]},e(v,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(h,s){if(s.recoverable)this.trace(h);else{var i=new Error(h);throw i.hash=s,i}},"parseError"),parse:u(function(h){var s=this,i=[0],g=[],L=[null],t=[],I=this.table,r="",m=0,R=0,S=2,C=1,U=t.slice.call(arguments,1),w=Object.create(this.lexer),M={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(M.yy[V]=this.yy[V]);w.setInput(h,M.yy),M.yy.lexer=w,M.yy.parser=this,typeof w.yylloc=="undefined"&&(w.yylloc={});var Y=w.yylloc;t.push(Y);var Fe=w.options&&w.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ke(k){i.length=i.length-2*k,L.length=L.length-k,t.length=t.length-k}u(Ke,"popStack");function pe(){var k;return k=g.pop()||w.lex()||C,typeof k!="number"&&(k instanceof Array&&(g=k,k=g.pop()),k=s.symbols_[k]||k),k}u(pe,"lex");for(var B,X,F,ie,H={},Z,W,fe,Q;;){if(X=i[i.length-1],this.defaultActions[X]?F=this.defaultActions[X]:((B===null||typeof B=="undefined")&&(B=pe()),F=I[X]&&I[X][B]),typeof F=="undefined"||!F.length||!F[0]){var ae="";Q=[];for(Z in I[X])this.terminals_[Z]&&Z>S&&Q.push("'"+this.terminals_[Z]+"'");w.showPosition?ae="Parse error on line "+(m+1)+`: +var Me=Object.defineProperty,Ye=Object.defineProperties;var We=Object.getOwnPropertyDescriptors;var Se=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var xe=(e,a,l)=>a in e?Me(e,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[a]=l,G=(e,a)=>{for(var l in a||(a={}))Ve.call(a,l)&&xe(e,l,a[l]);if(Se)for(var l of Se(a))je.call(a,l)&&xe(e,l,a[l]);return e},q=(e,a)=>Ye(e,We(a));var j=(e,a,l)=>new Promise((c,d)=>{var p=o=>{try{f(l.next(o))}catch(x){d(x)}},n=o=>{try{f(l.throw(o))}catch(x){d(x)}},f=o=>o.done?c(o.value):Promise.resolve(o.value).then(p,n);f((l=l.apply(e,a)).next())});import{a as Ue,i as Xe,p as He,m as Ge}from"./chunk-UGV5ZQQN-BBwAwnj9.js";import{i as we,p as qe}from"./chunk-YWFND7JV-Df64Lrc0.js";import{_ as u,d as De,l as y,ab as Je,H as le,j as $,k as Ze,t as Qe,z as $e,e as et}from"./Using existing ones-DVOwGlbd.js";import{c as tt}from"./clone-Bp7QSEXO.js";import{G as st}from"./graph-wuI2A7_P.js";import{c as rt}from"./channel-B37zCwJ6.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";var ne=function(){var e=u(function(T,h,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=h);return s},"o"),a=[1,7],l=[1,13],c=[1,14],d=[1,15],p=[1,19],n=[1,16],f=[1,17],o=[1,18],x=[8,30],b=[8,21,28,29,30,31,32,40,44,47],E=[1,23],N=[1,24],A=[8,15,16,21,28,29,30,31,32,40,44,47],v=[8,15,16,21,27,28,29,30,31,32,40,44,47],O=[1,49],_={trace:u(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:u(function(h,s,i,g,L,t,I){var r=t.length-1;switch(L){case 4:g.getLogger().debug("Rule: separator (NL) ");break;case 5:g.getLogger().debug("Rule: separator (Space) ");break;case 6:g.getLogger().debug("Rule: separator (EOF) ");break;case 7:g.getLogger().debug("Rule: hierarchy: ",t[r-1]),g.setHierarchy(t[r-1]);break;case 8:g.getLogger().debug("Stop NL ");break;case 9:g.getLogger().debug("Stop EOF ");break;case 10:g.getLogger().debug("Stop NL2 ");break;case 11:g.getLogger().debug("Stop EOF2 ");break;case 12:g.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:g.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:g.getLogger().debug("Rule: link: ",t[r],h),this.$={edgeTypeStr:t[r],label:""};break;case 15:g.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:const m=parseInt(t[r]),R=g.generateId();this.$={id:R,type:"space",label:"",width:m,children:[]};break;case 23:g.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);const S=g.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:S,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:g.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:g.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:g.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:g.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:g.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:g.getLogger().debug("APA123",this?this:"na"),g.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:g.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),g.generateId(),this.$=q(G({},t[r-2]),{type:"composite",children:t[r-1]});break;case 28:g.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);const C=g.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:g.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:g.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:g.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:g.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:g.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:g.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:l,29:c,31:d,32:p,40:n,44:f,47:o},{8:[1,20]},e(x,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:a,28:l,29:c,31:d,32:p,40:n,44:f,47:o}),e(b,[2,16],{14:22,15:E,16:N}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(A,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,32:p},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:l,29:c,31:d,32:p,40:n,44:f,47:o},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(v,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(x,[2,13]),{26:35,32:p},{32:[2,14]},{17:[1,36]},e(A,[2,24]),{11:37,13:4,14:22,15:E,16:N,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:l,29:c,31:d,32:p,40:n,44:f,47:o},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(v,[2,30]),{18:[1,43]},{18:[1,44]},e(A,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{37:[1,47]},{34:48,35:O},{15:[1,50]},e(b,[2,27]),e(v,[2,33]),{39:[1,51]},{34:52,35:O,39:[2,31]},{32:[2,15]},e(v,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(h,s){if(s.recoverable)this.trace(h);else{var i=new Error(h);throw i.hash=s,i}},"parseError"),parse:u(function(h){var s=this,i=[0],g=[],L=[null],t=[],I=this.table,r="",m=0,R=0,S=2,C=1,U=t.slice.call(arguments,1),w=Object.create(this.lexer),M={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(M.yy[V]=this.yy[V]);w.setInput(h,M.yy),M.yy.lexer=w,M.yy.parser=this,typeof w.yylloc=="undefined"&&(w.yylloc={});var Y=w.yylloc;t.push(Y);var Fe=w.options&&w.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ke(k){i.length=i.length-2*k,L.length=L.length-k,t.length=t.length-k}u(Ke,"popStack");function pe(){var k;return k=g.pop()||w.lex()||C,typeof k!="number"&&(k instanceof Array&&(g=k,k=g.pop()),k=s.symbols_[k]||k),k}u(pe,"lex");for(var B,X,F,ie,H={},Z,W,fe,Q;;){if(X=i[i.length-1],this.defaultActions[X]?F=this.defaultActions[X]:((B===null||typeof B=="undefined")&&(B=pe()),F=I[X]&&I[X][B]),typeof F=="undefined"||!F.length||!F[0]){var ae="";Q=[];for(Z in I[X])this.terminals_[Z]&&Z>S&&Q.push("'"+this.terminals_[Z]+"'");w.showPosition?ae="Parse error on line "+(m+1)+`: `+w.showPosition()+` Expecting `+Q.join(", ")+", got '"+(this.terminals_[B]||B)+"'":ae="Parse error on line "+(m+1)+": Unexpected "+(B==C?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(ae,{text:w.match,token:this.terminals_[B]||B,line:w.yylineno,loc:Y,expected:Q})}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+X+", token: "+B);switch(F[0]){case 1:i.push(B),L.push(w.yytext),t.push(w.yylloc),i.push(F[1]),B=null,R=w.yyleng,r=w.yytext,m=w.yylineno,Y=w.yylloc;break;case 2:if(W=this.productions_[F[1]][1],H.$=L[L.length-W],H._$={first_line:t[t.length-(W||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(W||1)].first_column,last_column:t[t.length-1].last_column},Fe&&(H._$.range=[t[t.length-(W||1)].range[0],t[t.length-1].range[1]]),ie=this.performAction.apply(H,[r,R,m,M.yy,F[1],L,t].concat(U)),typeof ie!="undefined")return ie;W&&(i=i.slice(0,-1*W*2),L=L.slice(0,-1*W),t=t.slice(0,-1*W)),i.push(this.productions_[F[1]][0]),L.push(H.$),t.push(H._$),fe=I[i[i.length-2]][i[i.length-1]],i.push(fe);break;case 3:return!0}}return!0},"parse")},P=function(){var T={EOF:1,parseError:u(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:u(function(h,s){return this.yy=s||this.yy||{},this._input=h,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:u(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var s=h.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),h},"input"),unput:u(function(h){var s=h.length,i=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;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),i.length-1&&(this.yylineno-=i.length-1);var L=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:i?(i.length===g.length?this.yylloc.first_column:0)+g[g.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[L[0],L[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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:u(function(h){this.unput(this.match.slice(h))},"less"),pastInput:u(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var h=this.pastInput(),s=new Array(h.length+1).join("-");return h+this.upcomingInput()+` diff --git a/pr-preview/pr-419/assets/c4Diagram-THADGKDP-DURVD377.js b/pr-preview/pr-419/assets/c4Diagram-THADGKDP-mY8mjMHo.js similarity index 99% rename from pr-preview/pr-419/assets/c4Diagram-THADGKDP-DURVD377.js rename to pr-preview/pr-419/assets/c4Diagram-THADGKDP-mY8mjMHo.js index 805dbd31c..1e435f6f2 100644 --- a/pr-preview/pr-419/assets/c4Diagram-THADGKDP-DURVD377.js +++ b/pr-preview/pr-419/assets/c4Diagram-THADGKDP-mY8mjMHo.js @@ -1,4 +1,4 @@ -import{d as Se,g as De}from"./chunk-XVOYOM2C-C3A1cAVg.js";import{_ as g,a as Pe,s as Be,g as Ie,b as Me,c as Le,d as Dt,w as Ne,e as $t,f as de,h as Tt,i as ge,j as jt,l as pe,k as Ye,m as je}from"./Using existing ones-1ACZX-0W.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var Ft=function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],p=[1,68],y=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[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],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],pt=[1,56],ft=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[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],Ot=[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],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[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:g(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:g(function(x,m,v,b,R,h,Rt){var f=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[f-3]);break;case 19:b.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:b.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),b.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:b.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:b.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:b.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:b.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:b.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:b.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:b.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:b.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:b.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:b.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:b.addContainer("container",...h[f]),this.$=h[f];break;case 48:b.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:b.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:b.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:b.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:b.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:b.addComponent("component",...h[f]),this.$=h[f];break;case 54:b.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:b.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:b.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:b.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:b.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:b.addRel("rel",...h[f]),this.$=h[f];break;case 61:b.addRel("birel",...h[f]),this.$=h[f];break;case 62:b.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:b.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:b.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:b.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:b.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),b.addRel("rel",...h[f]),this.$=h[f];break;case 68:b.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:b.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:b.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:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:p,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:p,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:p,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:p,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:p,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:p,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:p,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[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:a,34:r,36:n,37:i,38:u,39:d,40:p,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt}),e(Ot,[2,21]),e(Ot,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[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:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Rt=this.table,f="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc=="undefined"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I=="undefined")&&(I=he()),N=Rt[At]&&Rt[At][I]),typeof N=="undefined"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Rt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`: +import{d as Se,g as De}from"./chunk-XVOYOM2C-zOgot8-d.js";import{_ as g,a as Pe,s as Be,g as Ie,b as Me,c as Le,d as Dt,w as Ne,e as $t,f as de,h as Tt,i as ge,j as jt,l as pe,k as Ye,m as je}from"./Using existing ones-DVOwGlbd.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var Ft=function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],p=[1,68],y=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[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],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],pt=[1,56],ft=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[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],Ot=[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],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[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:g(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:g(function(x,m,v,b,R,h,Rt){var f=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[f-3]);break;case 19:b.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:b.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),b.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:b.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:b.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:b.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:b.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:b.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:b.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:b.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:b.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:b.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:b.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:b.addContainer("container",...h[f]),this.$=h[f];break;case 48:b.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:b.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:b.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:b.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:b.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:b.addComponent("component",...h[f]),this.$=h[f];break;case 54:b.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:b.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:b.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:b.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:b.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:b.addRel("rel",...h[f]),this.$=h[f];break;case 61:b.addRel("birel",...h[f]),this.$=h[f];break;case 62:b.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:b.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:b.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:b.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:b.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),b.addRel("rel",...h[f]),this.$=h[f];break;case 68:b.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:b.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:b.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:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:p,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:p,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:p,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:p,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:p,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:p,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:p,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[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:a,34:r,36:n,37:i,38:u,39:d,40:p,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:pt,71:ft,72:yt,73:gt,74:bt}),e(Ot,[2,21]),e(Ot,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[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:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Rt=this.table,f="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc=="undefined"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I=="undefined")&&(I=he()),N=Rt[At]&&Rt[At][I]),typeof N=="undefined"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Rt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`: `+D.showPosition()+` Expecting `+Yt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Zt="Parse error on line "+(Et+1)+": Unexpected "+(I==ce?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Zt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:Kt,expected:Yt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+I);switch(N[0]){case 1:v.push(I),R.push(D.yytext),h.push(D.yylloc),v.push(N[1]),I=null,oe=D.yyleng,f=D.yytext,Et=D.yylineno,Kt=D.yylloc;break;case 2:if(W=this.productions_[N[1]][1],wt.$=R[R.length-W],wt._$={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},Oe&&(wt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Jt=this.performAction.apply(wt,[f,oe,Et,kt.yy,N[1],R,h].concat(Te)),typeof Jt!="undefined")return Jt;W&&(v=v.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),v.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),ue=Rt[v[v.length-2]][v[v.length-1]],v.push(ue);break;case 3:return!0}}return!0},"parse")},Ce=function(){var _t={EOF:1,parseError:g(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:g(function(x,m){return this.yy=m||this.yy||{},this._input=x,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:g(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var m=x.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:g(function(x){var m=x.length,v=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var b=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),v.length-1&&(this.yylineno-=v.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:v?(v.length===b.length?this.yylloc.first_column:0)+b[b.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(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:g(function(x){this.unput(this.match.slice(x))},"less"),pastInput:g(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var x=this.pastInput(),m=new Array(x.length+1).join("-");return x+this.upcomingInput()+` diff --git a/pr-preview/pr-419/assets/channel-B37zCwJ6.js b/pr-preview/pr-419/assets/channel-B37zCwJ6.js new file mode 100644 index 000000000..49d0bec98 --- /dev/null +++ b/pr-preview/pr-419/assets/channel-B37zCwJ6.js @@ -0,0 +1 @@ +import{U as a,E as n}from"./Using existing ones-DVOwGlbd.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c}; diff --git a/pr-preview/pr-419/assets/channel-C9Gn3gkd.js b/pr-preview/pr-419/assets/channel-C9Gn3gkd.js deleted file mode 100644 index 2ba7ea77e..000000000 --- a/pr-preview/pr-419/assets/channel-C9Gn3gkd.js +++ /dev/null @@ -1 +0,0 @@ -import{U as a,E as n}from"./Using existing ones-1ACZX-0W.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c}; diff --git a/pr-preview/pr-419/assets/chunk-2JBRQKJ5-CLcKtf3M.js b/pr-preview/pr-419/assets/chunk-2JBRQKJ5-DTPl3fdd.js similarity index 99% rename from pr-preview/pr-419/assets/chunk-2JBRQKJ5-CLcKtf3M.js rename to pr-preview/pr-419/assets/chunk-2JBRQKJ5-DTPl3fdd.js index fbaa7b4c4..e7a1232d7 100644 --- a/pr-preview/pr-419/assets/chunk-2JBRQKJ5-CLcKtf3M.js +++ b/pr-preview/pr-419/assets/chunk-2JBRQKJ5-DTPl3fdd.js @@ -1,4 +1,4 @@ -var jt=(t,e,l)=>new Promise((n,h)=>{var s=a=>{try{y(l.next(a))}catch(_){h(_)}},f=a=>{try{y(l.throw(a))}catch(_){h(_)}},y=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,f);y((l=l.apply(t,e)).next())});import{g as Ce,s as xe}from"./chunk-DUMQOTYW-CesEDirL.js";import{_ as r,e as H,d as A,g as Ae,s as Le,b as Ie,c as Re,q as Oe,r as Ne,l as b,y as we,u as $e,t as Pe,ag as Ge}from"./Using existing ones-1ACZX-0W.js";var Ot=function(){var t=r(function($,c,u,o){for(u=u||{},o=$.length;o--;u[$[o]]=c);return u},"o"),e=[1,2],l=[1,3],n=[1,4],h=[2,4],s=[1,9],f=[1,11],y=[1,16],a=[1,17],_=[1,18],E=[1,19],m=[1,32],B=[1,20],Y=[1,21],I=[1,22],p=[1,23],L=[1,24],R=[1,26],F=[1,27],V=[1,28],N=[1,29],w=[1,30],rt=[1,31],at=[1,34],nt=[1,35],lt=[1,36],ot=[1,37],J=[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],ct=[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],Vt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],kt={trace:r(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:r(function(c,u,o,g,T,i,q){var d=i.length-1;switch(T){case 3:return g.setRootDoc(i[d]),i[d];case 4:this.$=[];break;case 5:i[d]!="nl"&&(i[d-1].push(i[d]),this.$=i[d-1]);break;case 6:case 7:this.$=i[d];break;case 8:this.$="nl";break;case 12:this.$=i[d];break;case 13:const Q=i[d-1];Q.description=g.trimColon(i[d]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[d-2],state2:i[d]};break;case 15:const Dt=g.trimColon(i[d]);this.$={stmt:"relation",state1:i[d-3],state2:i[d-1],description:Dt};break;case 19:this.$={stmt:"state",id:i[d-3],type:"default",description:"",doc:i[d-1]};break;case 20:var M=i[d],W=i[d-2].trim();if(i[d].match(":")){var ht=i[d].split(":");M=ht[0],W=[W,ht[1]]}this.$={stmt:"state",id:M,type:"default",description:W};break;case 21:this.$={stmt:"state",id:i[d-3],type:"default",description:i[d-5],doc:i[d-1]};break;case 22:this.$={stmt:"state",id:i[d],type:"fork"};break;case 23:this.$={stmt:"state",id:i[d],type:"join"};break;case 24:this.$={stmt:"state",id:i[d],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[d-1].trim(),note:{position:i[d-2].trim(),text:i[d].trim()}};break;case 29:this.$=i[d].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[d].trim(),g.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:i[d-1].trim(),classes:i[d].trim()};break;case 34:this.$={stmt:"style",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 35:this.$={stmt:"applyClass",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 36:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:i[d].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].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],h,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:f,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:a,19:_,22:E,24:m,25:B,26:Y,27:I,28:p,29:L,32:25,33:R,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:y,17:a,19:_,22:E,24:m,25:B,26:Y,27:I,28:p,29:L,32:25,33:R,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},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(ct,[2,42],{55:[1,54]}),t(ct,[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:m,54:J},t(S,[2,17]),t(Vt,h,{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:s,5:f,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:a,19:_,21:[1,68],22:E,24:m,25:B,26:Y,27:I,28:p,29:L,32:25,33:R,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},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(ct,[2,44]),t(ct,[2,45]),t(S,[2,15]),t(S,[2,19]),t(Vt,h,{7:72}),t(S,[2,26]),t(S,[2,27]),{4:s,5:f,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:a,19:_,21:[1,73],22:E,24:m,25:B,26:Y,27:I,28:p,29:L,32:25,33:R,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:r(function(c,u){if(u.recoverable)this.trace(c);else{var o=new Error(c);throw o.hash=u,o}},"parseError"),parse:r(function(c){var u=this,o=[0],g=[],T=[null],i=[],q=this.table,d="",M=0,W=0,ht=2,Q=1,Dt=i.slice.call(arguments,1),v=Object.create(this.lexer),U={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(U.yy[Ct]=this.yy[Ct]);v.setInput(c,U.yy),U.yy.lexer=v,U.yy.parser=this,typeof v.yylloc=="undefined"&&(v.yylloc={});var xt=v.yylloc;i.push(xt);var ke=v.options&&v.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(C){o.length=o.length-2*C,T.length=T.length-C,i.length=i.length-C}r(De,"popStack");function Mt(){var C;return C=g.pop()||v.lex()||Q,typeof C!="number"&&(C instanceof Array&&(g=C,C=g.pop()),C=u.symbols_[C]||C),C}r(Mt,"lex");for(var k,j,x,At,X={},dt,O,Ut,ft;;){if(j=o[o.length-1],this.defaultActions[j]?x=this.defaultActions[j]:((k===null||typeof k=="undefined")&&(k=Mt()),x=q[j]&&q[j][k]),typeof x=="undefined"||!x.length||!x[0]){var Lt="";ft=[];for(dt in q[j])this.terminals_[dt]&&dt>ht&&ft.push("'"+this.terminals_[dt]+"'");v.showPosition?Lt="Parse error on line "+(M+1)+`: +var jt=(t,e,l)=>new Promise((n,h)=>{var s=a=>{try{y(l.next(a))}catch(_){h(_)}},f=a=>{try{y(l.throw(a))}catch(_){h(_)}},y=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,f);y((l=l.apply(t,e)).next())});import{g as Ce,s as xe}from"./chunk-DUMQOTYW-CXsvfPAi.js";import{_ as r,e as H,d as A,g as Ae,s as Le,b as Ie,c as Re,q as Oe,r as Ne,l as b,y as we,u as $e,t as Pe,ag as Ge}from"./Using existing ones-DVOwGlbd.js";var Ot=function(){var t=r(function($,c,u,o){for(u=u||{},o=$.length;o--;u[$[o]]=c);return u},"o"),e=[1,2],l=[1,3],n=[1,4],h=[2,4],s=[1,9],f=[1,11],y=[1,16],a=[1,17],_=[1,18],E=[1,19],m=[1,32],B=[1,20],Y=[1,21],I=[1,22],p=[1,23],L=[1,24],R=[1,26],F=[1,27],V=[1,28],N=[1,29],w=[1,30],rt=[1,31],at=[1,34],nt=[1,35],lt=[1,36],ot=[1,37],J=[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],ct=[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],Vt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],kt={trace:r(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:r(function(c,u,o,g,T,i,q){var d=i.length-1;switch(T){case 3:return g.setRootDoc(i[d]),i[d];case 4:this.$=[];break;case 5:i[d]!="nl"&&(i[d-1].push(i[d]),this.$=i[d-1]);break;case 6:case 7:this.$=i[d];break;case 8:this.$="nl";break;case 12:this.$=i[d];break;case 13:const Q=i[d-1];Q.description=g.trimColon(i[d]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[d-2],state2:i[d]};break;case 15:const Dt=g.trimColon(i[d]);this.$={stmt:"relation",state1:i[d-3],state2:i[d-1],description:Dt};break;case 19:this.$={stmt:"state",id:i[d-3],type:"default",description:"",doc:i[d-1]};break;case 20:var M=i[d],W=i[d-2].trim();if(i[d].match(":")){var ht=i[d].split(":");M=ht[0],W=[W,ht[1]]}this.$={stmt:"state",id:M,type:"default",description:W};break;case 21:this.$={stmt:"state",id:i[d-3],type:"default",description:i[d-5],doc:i[d-1]};break;case 22:this.$={stmt:"state",id:i[d],type:"fork"};break;case 23:this.$={stmt:"state",id:i[d],type:"join"};break;case 24:this.$={stmt:"state",id:i[d],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[d-1].trim(),note:{position:i[d-2].trim(),text:i[d].trim()}};break;case 29:this.$=i[d].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[d].trim(),g.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:i[d-1].trim(),classes:i[d].trim()};break;case 34:this.$={stmt:"style",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 35:this.$={stmt:"applyClass",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 36:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:i[d].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].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],h,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:f,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:a,19:_,22:E,24:m,25:B,26:Y,27:I,28:p,29:L,32:25,33:R,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:y,17:a,19:_,22:E,24:m,25:B,26:Y,27:I,28:p,29:L,32:25,33:R,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},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(ct,[2,42],{55:[1,54]}),t(ct,[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:m,54:J},t(S,[2,17]),t(Vt,h,{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:s,5:f,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:a,19:_,21:[1,68],22:E,24:m,25:B,26:Y,27:I,28:p,29:L,32:25,33:R,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},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(ct,[2,44]),t(ct,[2,45]),t(S,[2,15]),t(S,[2,19]),t(Vt,h,{7:72}),t(S,[2,26]),t(S,[2,27]),{4:s,5:f,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:a,19:_,21:[1,73],22:E,24:m,25:B,26:Y,27:I,28:p,29:L,32:25,33:R,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:r(function(c,u){if(u.recoverable)this.trace(c);else{var o=new Error(c);throw o.hash=u,o}},"parseError"),parse:r(function(c){var u=this,o=[0],g=[],T=[null],i=[],q=this.table,d="",M=0,W=0,ht=2,Q=1,Dt=i.slice.call(arguments,1),v=Object.create(this.lexer),U={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(U.yy[Ct]=this.yy[Ct]);v.setInput(c,U.yy),U.yy.lexer=v,U.yy.parser=this,typeof v.yylloc=="undefined"&&(v.yylloc={});var xt=v.yylloc;i.push(xt);var ke=v.options&&v.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(C){o.length=o.length-2*C,T.length=T.length-C,i.length=i.length-C}r(De,"popStack");function Mt(){var C;return C=g.pop()||v.lex()||Q,typeof C!="number"&&(C instanceof Array&&(g=C,C=g.pop()),C=u.symbols_[C]||C),C}r(Mt,"lex");for(var k,j,x,At,X={},dt,O,Ut,ft;;){if(j=o[o.length-1],this.defaultActions[j]?x=this.defaultActions[j]:((k===null||typeof k=="undefined")&&(k=Mt()),x=q[j]&&q[j][k]),typeof x=="undefined"||!x.length||!x[0]){var Lt="";ft=[];for(dt in q[j])this.terminals_[dt]&&dt>ht&&ft.push("'"+this.terminals_[dt]+"'");v.showPosition?Lt="Parse error on line "+(M+1)+`: `+v.showPosition()+` Expecting `+ft.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Lt="Parse error on line "+(M+1)+": Unexpected "+(k==Q?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Lt,{text:v.match,token:this.terminals_[k]||k,line:v.yylineno,loc:xt,expected:ft})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+k);switch(x[0]){case 1:o.push(k),T.push(v.yytext),i.push(v.yylloc),o.push(x[1]),k=null,W=v.yyleng,d=v.yytext,M=v.yylineno,xt=v.yylloc;break;case 2:if(O=this.productions_[x[1]][1],X.$=T[T.length-O],X._$={first_line:i[i.length-(O||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(O||1)].first_column,last_column:i[i.length-1].last_column},ke&&(X._$.range=[i[i.length-(O||1)].range[0],i[i.length-1].range[1]]),At=this.performAction.apply(X,[d,W,M,U.yy,x[1],T,i].concat(Dt)),typeof At!="undefined")return At;O&&(o=o.slice(0,-1*O*2),T=T.slice(0,-1*O),i=i.slice(0,-1*O)),o.push(this.productions_[x[1]][0]),T.push(X.$),i.push(X._$),Ut=q[o[o.length-2]][o[o.length-1]],o.push(Ut);break;case 3:return!0}}return!0},"parse")},me=function(){var $={EOF:1,parseError:r(function(u,o){if(this.yy.parser)this.yy.parser.parseError(u,o);else throw new Error(u)},"parseError"),setInput:r(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:r(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:r(function(c){var u=c.length,o=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 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),o.length-1&&(this.yylineno-=o.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:o?(o.length===g.length?this.yylloc.first_column:0)+g[g.length-o.length].length-o[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: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(c){this.unput(this.match.slice(c))},"less"),pastInput:r(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:r(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:r(function(){var c=this.pastInput(),u=new Array(c.length+1).join("-");return c+this.upcomingInput()+` diff --git a/pr-preview/pr-419/assets/chunk-2RYQ3QTB-D277TTZy.js b/pr-preview/pr-419/assets/chunk-2RYQ3QTB-Bwu55N5N.js similarity index 68% rename from pr-preview/pr-419/assets/chunk-2RYQ3QTB-D277TTZy.js rename to pr-preview/pr-419/assets/chunk-2RYQ3QTB-Bwu55N5N.js index a1d799b01..eb6fd9975 100644 --- a/pr-preview/pr-419/assets/chunk-2RYQ3QTB-D277TTZy.js +++ b/pr-preview/pr-419/assets/chunk-2RYQ3QTB-Bwu55N5N.js @@ -1 +1 @@ -import{_ as s}from"./Using existing ones-1ACZX-0W.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I}; +import{_ as s}from"./Using existing ones-DVOwGlbd.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I}; diff --git a/pr-preview/pr-419/assets/chunk-BAVOGKFW-DyZopqvA.js b/pr-preview/pr-419/assets/chunk-BAVOGKFW-DXM1shxP.js similarity index 99% rename from pr-preview/pr-419/assets/chunk-BAVOGKFW-DyZopqvA.js rename to pr-preview/pr-419/assets/chunk-BAVOGKFW-DXM1shxP.js index e987b04a6..977e17c16 100644 --- a/pr-preview/pr-419/assets/chunk-BAVOGKFW-DyZopqvA.js +++ b/pr-preview/pr-419/assets/chunk-BAVOGKFW-DXM1shxP.js @@ -1,4 +1,4 @@ -import{_ as n,i as lt,d as D,a9 as Ve,s as ct,g as ot,b as ht,c as At,q as pt,r as ft,e as x,t as dt,l as Ct,u as $e,j as K}from"./Using existing ones-1ACZX-0W.js";var Pe=function(){var e=n(function(O,a,l,A){for(l=l||{},A=O.length;A--;l[O[A]]=a);return l},"o"),i=[1,17],r=[1,18],h=[1,19],c=[1,39],f=[1,40],d=[1,25],B=[1,23],S=[1,24],N=[1,31],Ee=[1,32],ge=[1,33],me=[1,34],be=[1,35],ke=[1,36],Te=[1,26],ye=[1,27],Fe=[1,28],De=[1,29],E=[1,43],_e=[1,30],g=[1,42],m=[1,44],b=[1,41],T=[1,45],Be=[1,9],o=[1,8,9],Q=[1,56],X=[1,57],W=[1,58],q=[1,59],H=[1,60],Se=[1,61],ve=[1,62],J=[1,8,9,39],Ke=[1,74],G=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],Z=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],$=[13,74,80,95,97,98],U=[13,64,65,74,80,95,97,98],Ye=[13,59,60,61,62,63,74,80,95,97,98],Ne=[1,93],ee=[1,110],te=[1,108],se=[1,102],ie=[1,103],ue=[1,104],ne=[1,105],ae=[1,106],re=[1,107],le=[1,109],Le=[1,8,9,37,39,42],ce=[1,8,9,21],je=[1,8,9,78],v=[1,8,9,21,73,74,78,80,81,82,83,84,85],xe={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,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:n(function(a,l,A,u,p,t,z){var s=t.length-1;switch(p){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:u.addRelation(t[s]);break;case 17:t[s-1].title=u.cleanupLabel(t[s]),u.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),u.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),u.setAccDescription(this.$);break;case 30:u.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:u.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],u.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:u.setCssClass(t[s-2],t[s]);break;case 38:u.addMembers(t[s-3],t[s-1]);break;case 39:u.setCssClass(t[s-5],t[s-3]),u.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],u.addClass(t[s]);break;case 41:this.$=t[s-1],u.addClass(t[s-1]),u.setClassLabel(t[s-1],t[s]);break;case 42:u.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:u.addMember(t[s-1],u.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:u.addNote(t[s],t[s-1]);break;case 54:u.addNote(t[s]);break;case 55:u.setDirection("TB");break;case 56:u.setDirection("BT");break;case 57:u.setDirection("RL");break;case 58:u.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=u.relationType.AGGREGATION;break;case 64:this.$=u.relationType.EXTENSION;break;case 65:this.$=u.relationType.COMPOSITION;break;case 66:this.$=u.relationType.DEPENDENCY;break;case 67:this.$=u.relationType.LOLLIPOP;break;case 68:this.$=u.lineType.LINE;break;case 69:this.$=u.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],u.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],u.setClickEvent(t[s-2],t[s-1]),u.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],u.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],u.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],u.setLink(t[s-2],t[s-1]),u.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],u.setLink(t[s-3],t[s-2],t[s]),u.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],u.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],u.setClickEvent(t[s-3],t[s-2],t[s-1]),u.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],u.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],u.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],u.setLink(t[s-3],t[s-1]),u.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],u.setLink(t[s-4],t[s-2],t[s]),u.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],u.setCssStyle(t[s-1],t[s]);break;case 85:u.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:h,36:21,40:c,41:22,44:f,45:d,47:B,48:S,50:N,52:Ee,53:ge,54:me,55:be,56:ke,66:Te,67:ye,69:Fe,73:De,74:E,76:_e,80:g,95:m,97:b,98:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(Be,[2,5],{8:[1,46]}),{8:[1,47]},e(o,[2,16],{21:[1,48]}),e(o,[2,18]),e(o,[2,19]),e(o,[2,20]),e(o,[2,21]),e(o,[2,22]),e(o,[2,23]),e(o,[2,24]),e(o,[2,25]),e(o,[2,26]),{32:[1,49]},{34:[1,50]},e(o,[2,29]),e(o,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Q,60:X,61:W,62:q,63:H,64:Se,65:ve}),{37:[1,63]},e(J,[2,36],{37:[1,65],42:[1,64]}),e(o,[2,47]),e(o,[2,48]),{16:66,74:E,80:g,95:m,97:b},{16:37,17:67,18:38,74:E,80:g,95:m,97:b,98:T},{16:37,17:68,18:38,74:E,80:g,95:m,97:b,98:T},{16:37,17:69,18:38,74:E,80:g,95:m,97:b,98:T},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:E,80:g,95:m,97:b,98:T},{13:Ke,51:73},e(o,[2,55]),e(o,[2,56]),e(o,[2,57]),e(o,[2,58]),e(G,[2,11],{16:37,18:38,17:75,19:[1,76],74:E,80:g,95:m,97:b,98:T}),e(G,[2,12],{19:[1,77]}),{15:78,16:79,74:E,80:g,95:m,97:b},{16:37,17:80,18:38,74:E,80:g,95:m,97:b,98:T},e(Z,[2,112]),e(Z,[2,113]),e(Z,[2,114]),e(Z,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(Be,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:h,40:c,44:f,45:d,47:B,48:S,50:N,52:Ee,53:ge,54:me,55:be,56:ke,66:Te,67:ye,69:Fe,73:De,74:E,76:_e,80:g,95:m,97:b,98:T}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:h,36:21,40:c,41:22,44:f,45:d,47:B,48:S,50:N,52:Ee,53:ge,54:me,55:be,56:ke,66:Te,67:ye,69:Fe,73:De,74:E,76:_e,80:g,95:m,97:b,98:T},e(o,[2,17]),e(o,[2,27]),e(o,[2,28]),{13:[1,84],16:37,17:83,18:38,74:E,80:g,95:m,97:b,98:T},{49:85,57:54,58:55,59:Q,60:X,61:W,62:q,63:H,64:Se,65:ve},e(o,[2,46]),{58:86,64:Se,65:ve},e($,[2,62],{57:87,59:Q,60:X,61:W,62:q,63:H}),e(U,[2,63]),e(U,[2,64]),e(U,[2,65]),e(U,[2,66]),e(U,[2,67]),e(Ye,[2,68]),e(Ye,[2,69]),{8:[1,89],23:90,38:88,41:22,44:f},{16:91,74:E,80:g,95:m,97:b},{43:92,47:Ne},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:ee,73:te,74:se,75:99,77:100,79:101,80:ie,81:ue,82:ne,83:ae,84:re,85:le},{74:[1,111]},{13:Ke,51:112},e(o,[2,54]),e(o,[2,117]),e(G,[2,13]),e(G,[2,14]),e(G,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:E,80:g,95:m,97:b},e(Le,[2,40],{11:114,12:[1,115]}),e(Be,[2,7]),{9:[1,116]},e(ce,[2,49]),{16:37,17:117,18:38,74:E,80:g,95:m,97:b,98:T},{13:[1,119],16:37,17:118,18:38,74:E,80:g,95:m,97:b,98:T},e($,[2,61],{57:120,59:Q,60:X,61:W,62:q,63:H}),e($,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:f},{8:[1,123],39:[2,33]},e(J,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:Ne},{16:37,17:127,18:38,74:E,80:g,95:m,97:b,98:T},e(o,[2,70],{13:[1,128]}),e(o,[2,72],{13:[1,130],68:[1,129]}),e(o,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(o,[2,84],{78:[1,134]}),e(je,[2,86],{79:135,21:ee,73:te,74:se,80:ie,81:ue,82:ne,83:ae,84:re,85:le}),e(v,[2,88]),e(v,[2,90]),e(v,[2,91]),e(v,[2,92]),e(v,[2,93]),e(v,[2,94]),e(v,[2,95]),e(v,[2,96]),e(v,[2,97]),e(v,[2,98]),e(o,[2,85]),e(o,[2,53]),{37:[2,10]},e(Le,[2,41]),{13:[1,136]},{1:[2,4]},e(ce,[2,51]),e(ce,[2,50]),{16:37,17:137,18:38,74:E,80:g,95:m,97:b,98:T},e($,[2,59]),e(o,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:f},{43:140,47:Ne},e(J,[2,38]),{39:[2,44]},e(o,[2,42]),e(o,[2,71]),e(o,[2,73]),e(o,[2,74],{68:[1,141]}),e(o,[2,77]),e(o,[2,78],{13:[1,142]}),e(o,[2,80],{13:[1,144],68:[1,143]}),{21:ee,73:te,74:se,77:145,79:101,80:ie,81:ue,82:ne,83:ae,84:re,85:le},e(v,[2,89]),{14:[1,146]},e(ce,[2,52]),e(o,[2,31]),{39:[2,35]},{39:[1,147]},e(o,[2,75]),e(o,[2,79]),e(o,[2,81]),e(o,[2,82],{68:[1,148]}),e(je,[2,87],{79:135,21:ee,73:te,74:se,80:ie,81:ue,82:ne,83:ae,84:re,85:le}),e(Le,[2,8]),e(J,[2,39]),e(o,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:n(function(a,l){if(l.recoverable)this.trace(a);else{var A=new Error(a);throw A.hash=l,A}},"parseError"),parse:n(function(a){var l=this,A=[0],u=[],p=[null],t=[],z=this.table,s="",he=0,Qe=0,ut=2,Xe=1,nt=t.slice.call(arguments,1),k=Object.create(this.lexer),R={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(R.yy[Ie]=this.yy[Ie]);k.setInput(a,R.yy),R.yy.lexer=k,R.yy.parser=this,typeof k.yylloc=="undefined"&&(k.yylloc={});var Oe=k.yylloc;t.push(Oe);var at=k.options&&k.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(F){A.length=A.length-2*F,p.length=p.length-F,t.length=t.length-F}n(rt,"popStack");function We(){var F;return F=u.pop()||k.lex()||Xe,typeof F!="number"&&(F instanceof Array&&(u=F,F=u.pop()),F=l.symbols_[F]||F),F}n(We,"lex");for(var y,w,_,Re,M={},Ae,L,qe,pe;;){if(w=A[A.length-1],this.defaultActions[w]?_=this.defaultActions[w]:((y===null||typeof y=="undefined")&&(y=We()),_=z[w]&&z[w][y]),typeof _=="undefined"||!_.length||!_[0]){var we="";pe=[];for(Ae in z[w])this.terminals_[Ae]&&Ae>ut&&pe.push("'"+this.terminals_[Ae]+"'");k.showPosition?we="Parse error on line "+(he+1)+`: +import{_ as n,i as lt,d as D,a9 as Ve,s as ct,g as ot,b as ht,c as At,q as pt,r as ft,e as x,t as dt,l as Ct,u as $e,j as K}from"./Using existing ones-DVOwGlbd.js";var Pe=function(){var e=n(function(O,a,l,A){for(l=l||{},A=O.length;A--;l[O[A]]=a);return l},"o"),i=[1,17],r=[1,18],h=[1,19],c=[1,39],f=[1,40],d=[1,25],B=[1,23],S=[1,24],N=[1,31],Ee=[1,32],ge=[1,33],me=[1,34],be=[1,35],ke=[1,36],Te=[1,26],ye=[1,27],Fe=[1,28],De=[1,29],E=[1,43],_e=[1,30],g=[1,42],m=[1,44],b=[1,41],T=[1,45],Be=[1,9],o=[1,8,9],Q=[1,56],X=[1,57],W=[1,58],q=[1,59],H=[1,60],Se=[1,61],ve=[1,62],J=[1,8,9,39],Ke=[1,74],G=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],Z=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],$=[13,74,80,95,97,98],U=[13,64,65,74,80,95,97,98],Ye=[13,59,60,61,62,63,74,80,95,97,98],Ne=[1,93],ee=[1,110],te=[1,108],se=[1,102],ie=[1,103],ue=[1,104],ne=[1,105],ae=[1,106],re=[1,107],le=[1,109],Le=[1,8,9,37,39,42],ce=[1,8,9,21],je=[1,8,9,78],v=[1,8,9,21,73,74,78,80,81,82,83,84,85],xe={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,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:n(function(a,l,A,u,p,t,z){var s=t.length-1;switch(p){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:u.addRelation(t[s]);break;case 17:t[s-1].title=u.cleanupLabel(t[s]),u.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),u.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),u.setAccDescription(this.$);break;case 30:u.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:u.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],u.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:u.setCssClass(t[s-2],t[s]);break;case 38:u.addMembers(t[s-3],t[s-1]);break;case 39:u.setCssClass(t[s-5],t[s-3]),u.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],u.addClass(t[s]);break;case 41:this.$=t[s-1],u.addClass(t[s-1]),u.setClassLabel(t[s-1],t[s]);break;case 42:u.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:u.addMember(t[s-1],u.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:u.addNote(t[s],t[s-1]);break;case 54:u.addNote(t[s]);break;case 55:u.setDirection("TB");break;case 56:u.setDirection("BT");break;case 57:u.setDirection("RL");break;case 58:u.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=u.relationType.AGGREGATION;break;case 64:this.$=u.relationType.EXTENSION;break;case 65:this.$=u.relationType.COMPOSITION;break;case 66:this.$=u.relationType.DEPENDENCY;break;case 67:this.$=u.relationType.LOLLIPOP;break;case 68:this.$=u.lineType.LINE;break;case 69:this.$=u.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],u.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],u.setClickEvent(t[s-2],t[s-1]),u.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],u.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],u.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],u.setLink(t[s-2],t[s-1]),u.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],u.setLink(t[s-3],t[s-2],t[s]),u.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],u.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],u.setClickEvent(t[s-3],t[s-2],t[s-1]),u.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],u.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],u.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],u.setLink(t[s-3],t[s-1]),u.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],u.setLink(t[s-4],t[s-2],t[s]),u.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],u.setCssStyle(t[s-1],t[s]);break;case 85:u.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:h,36:21,40:c,41:22,44:f,45:d,47:B,48:S,50:N,52:Ee,53:ge,54:me,55:be,56:ke,66:Te,67:ye,69:Fe,73:De,74:E,76:_e,80:g,95:m,97:b,98:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(Be,[2,5],{8:[1,46]}),{8:[1,47]},e(o,[2,16],{21:[1,48]}),e(o,[2,18]),e(o,[2,19]),e(o,[2,20]),e(o,[2,21]),e(o,[2,22]),e(o,[2,23]),e(o,[2,24]),e(o,[2,25]),e(o,[2,26]),{32:[1,49]},{34:[1,50]},e(o,[2,29]),e(o,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Q,60:X,61:W,62:q,63:H,64:Se,65:ve}),{37:[1,63]},e(J,[2,36],{37:[1,65],42:[1,64]}),e(o,[2,47]),e(o,[2,48]),{16:66,74:E,80:g,95:m,97:b},{16:37,17:67,18:38,74:E,80:g,95:m,97:b,98:T},{16:37,17:68,18:38,74:E,80:g,95:m,97:b,98:T},{16:37,17:69,18:38,74:E,80:g,95:m,97:b,98:T},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:E,80:g,95:m,97:b,98:T},{13:Ke,51:73},e(o,[2,55]),e(o,[2,56]),e(o,[2,57]),e(o,[2,58]),e(G,[2,11],{16:37,18:38,17:75,19:[1,76],74:E,80:g,95:m,97:b,98:T}),e(G,[2,12],{19:[1,77]}),{15:78,16:79,74:E,80:g,95:m,97:b},{16:37,17:80,18:38,74:E,80:g,95:m,97:b,98:T},e(Z,[2,112]),e(Z,[2,113]),e(Z,[2,114]),e(Z,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(Be,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:h,40:c,44:f,45:d,47:B,48:S,50:N,52:Ee,53:ge,54:me,55:be,56:ke,66:Te,67:ye,69:Fe,73:De,74:E,76:_e,80:g,95:m,97:b,98:T}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:h,36:21,40:c,41:22,44:f,45:d,47:B,48:S,50:N,52:Ee,53:ge,54:me,55:be,56:ke,66:Te,67:ye,69:Fe,73:De,74:E,76:_e,80:g,95:m,97:b,98:T},e(o,[2,17]),e(o,[2,27]),e(o,[2,28]),{13:[1,84],16:37,17:83,18:38,74:E,80:g,95:m,97:b,98:T},{49:85,57:54,58:55,59:Q,60:X,61:W,62:q,63:H,64:Se,65:ve},e(o,[2,46]),{58:86,64:Se,65:ve},e($,[2,62],{57:87,59:Q,60:X,61:W,62:q,63:H}),e(U,[2,63]),e(U,[2,64]),e(U,[2,65]),e(U,[2,66]),e(U,[2,67]),e(Ye,[2,68]),e(Ye,[2,69]),{8:[1,89],23:90,38:88,41:22,44:f},{16:91,74:E,80:g,95:m,97:b},{43:92,47:Ne},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:ee,73:te,74:se,75:99,77:100,79:101,80:ie,81:ue,82:ne,83:ae,84:re,85:le},{74:[1,111]},{13:Ke,51:112},e(o,[2,54]),e(o,[2,117]),e(G,[2,13]),e(G,[2,14]),e(G,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:E,80:g,95:m,97:b},e(Le,[2,40],{11:114,12:[1,115]}),e(Be,[2,7]),{9:[1,116]},e(ce,[2,49]),{16:37,17:117,18:38,74:E,80:g,95:m,97:b,98:T},{13:[1,119],16:37,17:118,18:38,74:E,80:g,95:m,97:b,98:T},e($,[2,61],{57:120,59:Q,60:X,61:W,62:q,63:H}),e($,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:f},{8:[1,123],39:[2,33]},e(J,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:Ne},{16:37,17:127,18:38,74:E,80:g,95:m,97:b,98:T},e(o,[2,70],{13:[1,128]}),e(o,[2,72],{13:[1,130],68:[1,129]}),e(o,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(o,[2,84],{78:[1,134]}),e(je,[2,86],{79:135,21:ee,73:te,74:se,80:ie,81:ue,82:ne,83:ae,84:re,85:le}),e(v,[2,88]),e(v,[2,90]),e(v,[2,91]),e(v,[2,92]),e(v,[2,93]),e(v,[2,94]),e(v,[2,95]),e(v,[2,96]),e(v,[2,97]),e(v,[2,98]),e(o,[2,85]),e(o,[2,53]),{37:[2,10]},e(Le,[2,41]),{13:[1,136]},{1:[2,4]},e(ce,[2,51]),e(ce,[2,50]),{16:37,17:137,18:38,74:E,80:g,95:m,97:b,98:T},e($,[2,59]),e(o,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:f},{43:140,47:Ne},e(J,[2,38]),{39:[2,44]},e(o,[2,42]),e(o,[2,71]),e(o,[2,73]),e(o,[2,74],{68:[1,141]}),e(o,[2,77]),e(o,[2,78],{13:[1,142]}),e(o,[2,80],{13:[1,144],68:[1,143]}),{21:ee,73:te,74:se,77:145,79:101,80:ie,81:ue,82:ne,83:ae,84:re,85:le},e(v,[2,89]),{14:[1,146]},e(ce,[2,52]),e(o,[2,31]),{39:[2,35]},{39:[1,147]},e(o,[2,75]),e(o,[2,79]),e(o,[2,81]),e(o,[2,82],{68:[1,148]}),e(je,[2,87],{79:135,21:ee,73:te,74:se,80:ie,81:ue,82:ne,83:ae,84:re,85:le}),e(Le,[2,8]),e(J,[2,39]),e(o,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:n(function(a,l){if(l.recoverable)this.trace(a);else{var A=new Error(a);throw A.hash=l,A}},"parseError"),parse:n(function(a){var l=this,A=[0],u=[],p=[null],t=[],z=this.table,s="",he=0,Qe=0,ut=2,Xe=1,nt=t.slice.call(arguments,1),k=Object.create(this.lexer),R={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(R.yy[Ie]=this.yy[Ie]);k.setInput(a,R.yy),R.yy.lexer=k,R.yy.parser=this,typeof k.yylloc=="undefined"&&(k.yylloc={});var Oe=k.yylloc;t.push(Oe);var at=k.options&&k.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(F){A.length=A.length-2*F,p.length=p.length-F,t.length=t.length-F}n(rt,"popStack");function We(){var F;return F=u.pop()||k.lex()||Xe,typeof F!="number"&&(F instanceof Array&&(u=F,F=u.pop()),F=l.symbols_[F]||F),F}n(We,"lex");for(var y,w,_,Re,M={},Ae,L,qe,pe;;){if(w=A[A.length-1],this.defaultActions[w]?_=this.defaultActions[w]:((y===null||typeof y=="undefined")&&(y=We()),_=z[w]&&z[w][y]),typeof _=="undefined"||!_.length||!_[0]){var we="";pe=[];for(Ae in z[w])this.terminals_[Ae]&&Ae>ut&&pe.push("'"+this.terminals_[Ae]+"'");k.showPosition?we="Parse error on line "+(he+1)+`: `+k.showPosition()+` Expecting `+pe.join(", ")+", got '"+(this.terminals_[y]||y)+"'":we="Parse error on line "+(he+1)+": Unexpected "+(y==Xe?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(we,{text:k.match,token:this.terminals_[y]||y,line:k.yylineno,loc:Oe,expected:pe})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+y);switch(_[0]){case 1:A.push(y),p.push(k.yytext),t.push(k.yylloc),A.push(_[1]),y=null,Qe=k.yyleng,s=k.yytext,he=k.yylineno,Oe=k.yylloc;break;case 2:if(L=this.productions_[_[1]][1],M.$=p[p.length-L],M._$={first_line:t[t.length-(L||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(L||1)].first_column,last_column:t[t.length-1].last_column},at&&(M._$.range=[t[t.length-(L||1)].range[0],t[t.length-1].range[1]]),Re=this.performAction.apply(M,[s,Qe,he,R.yy,_[1],p,t].concat(nt)),typeof Re!="undefined")return Re;L&&(A=A.slice(0,-1*L*2),p=p.slice(0,-1*L),t=t.slice(0,-1*L)),A.push(this.productions_[_[1]][0]),p.push(M.$),t.push(M._$),qe=z[A[A.length-2]][A[A.length-1]],A.push(qe);break;case 3:return!0}}return!0},"parse")},it=function(){var O={EOF:1,parseError:n(function(l,A){if(this.yy.parser)this.yy.parser.parseError(l,A);else throw new Error(l)},"parseError"),setInput:n(function(a,l){return this.yy=l||this.yy||{},this._input=a,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 a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var l=a.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),a},"input"),unput:n(function(a){var l=a.length,A=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var u=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 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:A?(A.length===u.length?this.yylloc.first_column:0)+u[u.length-A.length].length-A[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-l]),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(a){this.unput(this.match.slice(a))},"less"),pastInput:n(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var a=this.pastInput(),l=new Array(a.length+1).join("-");return a+this.upcomingInput()+` diff --git a/pr-preview/pr-419/assets/chunk-DUMQOTYW-CesEDirL.js b/pr-preview/pr-419/assets/chunk-DUMQOTYW-CXsvfPAi.js similarity index 82% rename from pr-preview/pr-419/assets/chunk-DUMQOTYW-CesEDirL.js rename to pr-preview/pr-419/assets/chunk-DUMQOTYW-CXsvfPAi.js index c971ba84d..d893c24e6 100644 --- a/pr-preview/pr-419/assets/chunk-DUMQOTYW-CesEDirL.js +++ b/pr-preview/pr-419/assets/chunk-DUMQOTYW-CXsvfPAi.js @@ -1 +1 @@ -import{_ as n,j as r,k as g,l as d}from"./Using existing ones-1ACZX-0W.js";var u=n((t,e)=>{let o;return e==="sandbox"&&(o=r("#i"+t)),(e==="sandbox"?r(o.nodes()[0].contentDocument.body):r("body")).select(`[id="${t}"]`)},"getDiagramElement"),b=n((t,e,o,i)=>{t.attr("class",o);const{width:a,height:s,x:h,y:x}=l(t,e);g(t,s,a,i);const c=w(h,x,a,s,e);t.attr("viewBox",c),d.debug(`viewBox configured: ${c} with padding: ${e}`)},"setupViewPortForSVG"),l=n((t,e)=>{var i;const o=((i=t.node())==null?void 0:i.getBBox())||{width:0,height:0,x:0,y:0};return{width:o.width+e*2,height:o.height+e*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),w=n((t,e,o,i,a)=>`${t-a} ${e-a} ${o} ${i}`,"createViewBox");export{u as g,b as s}; +import{_ as n,j as r,k as g,l as d}from"./Using existing ones-DVOwGlbd.js";var u=n((t,e)=>{let o;return e==="sandbox"&&(o=r("#i"+t)),(e==="sandbox"?r(o.nodes()[0].contentDocument.body):r("body")).select(`[id="${t}"]`)},"getDiagramElement"),b=n((t,e,o,i)=>{t.attr("class",o);const{width:a,height:s,x:h,y:x}=l(t,e);g(t,s,a,i);const c=w(h,x,a,s,e);t.attr("viewBox",c),d.debug(`viewBox configured: ${c} with padding: ${e}`)},"setupViewPortForSVG"),l=n((t,e)=>{var i;const o=((i=t.node())==null?void 0:i.getBBox())||{width:0,height:0,x:0,y:0};return{width:o.width+e*2,height:o.height+e*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),w=n((t,e,o,i,a)=>`${t-a} ${e-a} ${o} ${i}`,"createViewBox");export{u as g,b as s}; diff --git a/pr-preview/pr-419/assets/chunk-OQCM5LHU-Bqj1NGSi.js b/pr-preview/pr-419/assets/chunk-OQCM5LHU-BNRaZOS_.js similarity index 78% rename from pr-preview/pr-419/assets/chunk-OQCM5LHU-Bqj1NGSi.js rename to pr-preview/pr-419/assets/chunk-OQCM5LHU-BNRaZOS_.js index 5b0668d72..0130cb6b5 100644 --- a/pr-preview/pr-419/assets/chunk-OQCM5LHU-Bqj1NGSi.js +++ b/pr-preview/pr-419/assets/chunk-OQCM5LHU-BNRaZOS_.js @@ -1 +1 @@ -import{_ as l}from"./Using existing ones-1ACZX-0W.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p}; +import{_ as l}from"./Using existing ones-DVOwGlbd.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p}; diff --git a/pr-preview/pr-419/assets/chunk-UGV5ZQQN-DIz6YliH.js b/pr-preview/pr-419/assets/chunk-UGV5ZQQN-BBwAwnj9.js similarity index 98% rename from pr-preview/pr-419/assets/chunk-UGV5ZQQN-DIz6YliH.js rename to pr-preview/pr-419/assets/chunk-UGV5ZQQN-BBwAwnj9.js index c171ce4e4..28c99477c 100644 --- a/pr-preview/pr-419/assets/chunk-UGV5ZQQN-DIz6YliH.js +++ b/pr-preview/pr-419/assets/chunk-UGV5ZQQN-BBwAwnj9.js @@ -1,4 +1,4 @@ -import{a as y}from"./chunk-YWFND7JV-BUZzWDIH.js";import{_ as f,d as g,A as W,D as C,j as H,l as m,ae as R,u as w,af as X,a2 as Y,a8 as U}from"./Using existing ones-1ACZX-0W.js";var O=f((r,t,a,h)=>{t.forEach(o=>{J[o](r,a,h)})},"insertMarkers"),Z=f((r,t,a)=>{m.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"),A=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"),I=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"),N=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"),q=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"),Q=f((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).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",12).attr("markerHeight",12).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"),z=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"),F=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"),G=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","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),J={extension:Z,composition:A,aggregation:I,dependency:N,lollipop:q,point:Q,circle:z,cross:F,barb:G},at=O,V=f((r,t,a,h,o)=>{t.arrowTypeStart&&E(r,"start",t.arrowTypeStart,a,h,o),t.arrowTypeEnd&&E(r,"end",t.arrowTypeEnd,a,h,o)},"addEdgeMarkers"),j={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},E=f((r,t,a,h,o,c)=>{const n=j[a];if(!n){m.warn(`Unknown arrow type: ${a}`);return}const e=t==="start"?"Start":"End";r.attr(`marker-${t}`,`url(${h}#${o}_${c}-${n}${e})`)},"addEdgeMarker"),v={},k={},rt=f(()=>{v={},k={}},"clear"),et=f((r,t)=>{const a=g(),h=W(a.flowchart.htmlLabels),o=t.labelType==="markdown"?C(r,t.label,{style:t.labelStyle,useHtmlLabels:h,addSvgBackground:!0},a):y(t.label,t.labelStyle),c=r.insert("g").attr("class","edgeLabel"),n=c.insert("g").attr("class","label");n.node().appendChild(o);let e=o.getBBox();if(h){const i=o.children[0],l=H(o);e=i.getBoundingClientRect(),l.attr("width",e.width),l.attr("height",e.height)}n.attr("transform","translate("+-e.width/2+", "+-e.height/2+")"),v[t.id]=c,t.width=e.width,t.height=e.height;let s;if(t.startLabelLeft){const i=y(t.startLabelLeft,t.labelStyle),l=r.insert("g").attr("class","edgeTerminals"),d=l.insert("g").attr("class","inner");s=d.node().appendChild(i);const p=i.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),k[t.id]||(k[t.id]={}),k[t.id].startLeft=l,u(s,t.startLabelLeft)}if(t.startLabelRight){const i=y(t.startLabelRight,t.labelStyle),l=r.insert("g").attr("class","edgeTerminals"),d=l.insert("g").attr("class","inner");s=l.node().appendChild(i),d.node().appendChild(i);const p=i.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),k[t.id]||(k[t.id]={}),k[t.id].startRight=l,u(s,t.startLabelRight)}if(t.endLabelLeft){const i=y(t.endLabelLeft,t.labelStyle),l=r.insert("g").attr("class","edgeTerminals"),d=l.insert("g").attr("class","inner");s=d.node().appendChild(i);const p=i.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),l.node().appendChild(i),k[t.id]||(k[t.id]={}),k[t.id].endLeft=l,u(s,t.endLabelLeft)}if(t.endLabelRight){const i=y(t.endLabelRight,t.labelStyle),l=r.insert("g").attr("class","edgeTerminals"),d=l.insert("g").attr("class","inner");s=d.node().appendChild(i);const p=i.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),l.node().appendChild(i),k[t.id]||(k[t.id]={}),k[t.id].endRight=l,u(s,t.endLabelRight)}return o},"insertEdgeLabel");function u(r,t){g().flowchart.htmlLabels&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}f(u,"setTerminalWidth");var st=f((r,t)=>{m.debug("Moving label abc88 ",r.id,r.label,v[r.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const h=g(),{subGraphTitleTotalMargin:o}=R(h);if(r.label){const c=v[r.id];let n=r.x,e=r.y;if(a){const s=w.calcLabelPosition(a);m.debug("Moving label "+r.label+" from (",n,",",e,") to (",s.x,",",s.y,") abc88"),t.updatedPath&&(n=s.x,e=s.y)}c.attr("transform",`translate(${n}, ${e+o/2})`)}if(r.startLabelLeft){const c=k[r.id].startLeft;let n=r.x,e=r.y;if(a){const s=w.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);n=s.x,e=s.y}c.attr("transform",`translate(${n}, ${e})`)}if(r.startLabelRight){const c=k[r.id].startRight;let n=r.x,e=r.y;if(a){const s=w.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);n=s.x,e=s.y}c.attr("transform",`translate(${n}, ${e})`)}if(r.endLabelLeft){const c=k[r.id].endLeft;let n=r.x,e=r.y;if(a){const s=w.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);n=s.x,e=s.y}c.attr("transform",`translate(${n}, ${e})`)}if(r.endLabelRight){const c=k[r.id].endRight;let n=r.x,e=r.y;if(a){const s=w.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);n=s.x,e=s.y}c.attr("transform",`translate(${n}, ${e})`)}},"positionEdgeLabel"),K=f((r,t)=>{const a=r.x,h=r.y,o=Math.abs(t.x-a),c=Math.abs(t.y-h),n=r.width/2,e=r.height/2;return o>=n||c>=e},"outsideNode"),D=f((r,t,a)=>{m.debug(`intersection calc abc89: +import{a as y}from"./chunk-YWFND7JV-Df64Lrc0.js";import{_ as f,d as g,A as W,D as C,j as H,l as m,ae as R,u as w,af as X,a2 as Y,a8 as U}from"./Using existing ones-DVOwGlbd.js";var O=f((r,t,a,h)=>{t.forEach(o=>{J[o](r,a,h)})},"insertMarkers"),Z=f((r,t,a)=>{m.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"),A=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"),I=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"),N=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"),q=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"),Q=f((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).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",12).attr("markerHeight",12).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"),z=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"),F=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"),G=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","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),J={extension:Z,composition:A,aggregation:I,dependency:N,lollipop:q,point:Q,circle:z,cross:F,barb:G},at=O,V=f((r,t,a,h,o)=>{t.arrowTypeStart&&E(r,"start",t.arrowTypeStart,a,h,o),t.arrowTypeEnd&&E(r,"end",t.arrowTypeEnd,a,h,o)},"addEdgeMarkers"),j={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},E=f((r,t,a,h,o,c)=>{const n=j[a];if(!n){m.warn(`Unknown arrow type: ${a}`);return}const e=t==="start"?"Start":"End";r.attr(`marker-${t}`,`url(${h}#${o}_${c}-${n}${e})`)},"addEdgeMarker"),v={},k={},rt=f(()=>{v={},k={}},"clear"),et=f((r,t)=>{const a=g(),h=W(a.flowchart.htmlLabels),o=t.labelType==="markdown"?C(r,t.label,{style:t.labelStyle,useHtmlLabels:h,addSvgBackground:!0},a):y(t.label,t.labelStyle),c=r.insert("g").attr("class","edgeLabel"),n=c.insert("g").attr("class","label");n.node().appendChild(o);let e=o.getBBox();if(h){const i=o.children[0],l=H(o);e=i.getBoundingClientRect(),l.attr("width",e.width),l.attr("height",e.height)}n.attr("transform","translate("+-e.width/2+", "+-e.height/2+")"),v[t.id]=c,t.width=e.width,t.height=e.height;let s;if(t.startLabelLeft){const i=y(t.startLabelLeft,t.labelStyle),l=r.insert("g").attr("class","edgeTerminals"),d=l.insert("g").attr("class","inner");s=d.node().appendChild(i);const p=i.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),k[t.id]||(k[t.id]={}),k[t.id].startLeft=l,u(s,t.startLabelLeft)}if(t.startLabelRight){const i=y(t.startLabelRight,t.labelStyle),l=r.insert("g").attr("class","edgeTerminals"),d=l.insert("g").attr("class","inner");s=l.node().appendChild(i),d.node().appendChild(i);const p=i.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),k[t.id]||(k[t.id]={}),k[t.id].startRight=l,u(s,t.startLabelRight)}if(t.endLabelLeft){const i=y(t.endLabelLeft,t.labelStyle),l=r.insert("g").attr("class","edgeTerminals"),d=l.insert("g").attr("class","inner");s=d.node().appendChild(i);const p=i.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),l.node().appendChild(i),k[t.id]||(k[t.id]={}),k[t.id].endLeft=l,u(s,t.endLabelLeft)}if(t.endLabelRight){const i=y(t.endLabelRight,t.labelStyle),l=r.insert("g").attr("class","edgeTerminals"),d=l.insert("g").attr("class","inner");s=d.node().appendChild(i);const p=i.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),l.node().appendChild(i),k[t.id]||(k[t.id]={}),k[t.id].endRight=l,u(s,t.endLabelRight)}return o},"insertEdgeLabel");function u(r,t){g().flowchart.htmlLabels&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}f(u,"setTerminalWidth");var st=f((r,t)=>{m.debug("Moving label abc88 ",r.id,r.label,v[r.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const h=g(),{subGraphTitleTotalMargin:o}=R(h);if(r.label){const c=v[r.id];let n=r.x,e=r.y;if(a){const s=w.calcLabelPosition(a);m.debug("Moving label "+r.label+" from (",n,",",e,") to (",s.x,",",s.y,") abc88"),t.updatedPath&&(n=s.x,e=s.y)}c.attr("transform",`translate(${n}, ${e+o/2})`)}if(r.startLabelLeft){const c=k[r.id].startLeft;let n=r.x,e=r.y;if(a){const s=w.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);n=s.x,e=s.y}c.attr("transform",`translate(${n}, ${e})`)}if(r.startLabelRight){const c=k[r.id].startRight;let n=r.x,e=r.y;if(a){const s=w.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);n=s.x,e=s.y}c.attr("transform",`translate(${n}, ${e})`)}if(r.endLabelLeft){const c=k[r.id].endLeft;let n=r.x,e=r.y;if(a){const s=w.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);n=s.x,e=s.y}c.attr("transform",`translate(${n}, ${e})`)}if(r.endLabelRight){const c=k[r.id].endRight;let n=r.x,e=r.y;if(a){const s=w.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);n=s.x,e=s.y}c.attr("transform",`translate(${n}, ${e})`)}},"positionEdgeLabel"),K=f((r,t)=>{const a=r.x,h=r.y,o=Math.abs(t.x-a),c=Math.abs(t.y-h),n=r.width/2,e=r.height/2;return o>=n||c>=e},"outsideNode"),D=f((r,t,a)=>{m.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}`);const h=r.x,o=r.y,c=Math.abs(h-a.x),n=r.width/2;let e=a.xMath.abs(h-t.x)*s){let d=a.y{m.debug("abc88 cutPathAtIntersect",r,t);let a=[],h=r[0],o=!1;return r.forEach(c=>{if(!K(t,c)&&!o){const n=D(t,h,c);let e=!1;a.forEach(s=>{e=e||s.x===n.x&&s.y===n.y}),a.some(s=>s.x===n.x&&s.y===n.y)||a.push(n),o=!0}else h=c,o||a.push(c)}),a},"cutPathAtIntersect"),nt=f(function(r,t,a,h,o,c,n){let e=a.points;m.debug("abc88 InsertEdge: edge=",a,"e=",t);let s=!1;const i=c.node(t.v);var l=c.node(t.w);l!=null&&l.intersect&&(i!=null&&i.intersect)&&(e=e.slice(1,a.points.length-1),e.unshift(i.intersect(e[0])),e.push(l.intersect(e[e.length-1]))),a.toCluster&&(m.debug("to cluster abc88",h[a.toCluster]),e=_(a.points,h[a.toCluster].node),s=!0),a.fromCluster&&(m.debug("from cluster abc88",h[a.fromCluster]),e=_(e.reverse(),h[a.fromCluster].node).reverse(),s=!0);const d=e.filter(T=>!Number.isNaN(T.y));let p=U;a.curve&&(o==="graph"||o==="flowchart")&&(p=a.curve);const{x,y:$}=X(a),S=Y().x(x).y($).curve(p);let b;switch(a.thickness){case"normal":b="edge-thickness-normal";break;case"thick":b="edge-thickness-thick";break;case"invisible":b="edge-thickness-thick";break;default:b=""}switch(a.pattern){case"solid":b+=" edge-pattern-solid";break;case"dotted":b+=" edge-pattern-dotted";break;case"dashed":b+=" edge-pattern-dashed";break}const B=r.append("path").attr("d",S(d)).attr("id",a.id).attr("class"," "+b+(a.classes?" "+a.classes:"")).attr("style",a.style);let L="";(g().flowchart.arrowMarkerAbsolute||g().state.arrowMarkerAbsolute)&&(L=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,L=L.replace(/\(/g,"\\("),L=L.replace(/\)/g,"\\)")),V(B,a,L,n,o);let M={};return s&&(M.updatedPath=e),M.originalPath=a.points,M},"insertEdge");export{nt as a,rt as c,et as i,at as m,st as p}; diff --git a/pr-preview/pr-419/assets/chunk-XVOYOM2C-C3A1cAVg.js b/pr-preview/pr-419/assets/chunk-XVOYOM2C-zOgot8-d.js similarity index 95% rename from pr-preview/pr-419/assets/chunk-XVOYOM2C-C3A1cAVg.js rename to pr-preview/pr-419/assets/chunk-XVOYOM2C-zOgot8-d.js index 56dbb6afe..29f268202 100644 --- a/pr-preview/pr-419/assets/chunk-XVOYOM2C-C3A1cAVg.js +++ b/pr-preview/pr-419/assets/chunk-XVOYOM2C-zOgot8-d.js @@ -1 +1 @@ -import{_ as n,n as c,m as l}from"./Using existing ones-1ACZX-0W.js";var o=n((a,t)=>{const e=a.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(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((a,t)=>{const 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"};o(a,e).lower()},"drawBackgroundRect"),g=n((a,t)=>{const e=t.text.replace(c," "),r=a.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);const s=r.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),r},"drawText"),m=n((a,t,e,r)=>{const s=a.append("image");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",i)},"drawImage"),h=n((a,t,e,r)=>{const s=a.append("use");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{p as a,d as b,h as c,o as d,m as e,g as f,y as g}; +import{_ as n,n as c,m as l}from"./Using existing ones-DVOwGlbd.js";var o=n((a,t)=>{const e=a.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(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((a,t)=>{const 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"};o(a,e).lower()},"drawBackgroundRect"),g=n((a,t)=>{const e=t.text.replace(c," "),r=a.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);const s=r.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),r},"drawText"),m=n((a,t,e,r)=>{const s=a.append("image");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",i)},"drawImage"),h=n((a,t,e,r)=>{const s=a.append("use");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{p as a,d as b,h as c,o as d,m as e,g as f,y as g}; diff --git a/pr-preview/pr-419/assets/chunk-YWFND7JV-BUZzWDIH.js b/pr-preview/pr-419/assets/chunk-YWFND7JV-Df64Lrc0.js similarity index 99% rename from pr-preview/pr-419/assets/chunk-YWFND7JV-BUZzWDIH.js rename to pr-preview/pr-419/assets/chunk-YWFND7JV-Df64Lrc0.js index d54c57fcc..df31e7572 100644 --- a/pr-preview/pr-419/assets/chunk-YWFND7JV-BUZzWDIH.js +++ b/pr-preview/pr-419/assets/chunk-YWFND7JV-Df64Lrc0.js @@ -1 +1 @@ -var m=(l,t,c)=>new Promise((e,s)=>{var r=n=>{try{i(c.next(n))}catch(o){s(o)}},a=n=>{try{i(c.throw(n))}catch(o){s(o)}},i=n=>n.done?e(n.value):Promise.resolve(n.value).then(r,a);i((c=c.apply(l,t)).next())});import{_ as y,j as k,l as _,d as D,A as P,B as lt,C as K,D as nt,i as V}from"./Using existing ones-1ACZX-0W.js";function U(l,t){t&&l.attr("style",t)}y(U,"applyStyle");function tt(l){const t=k(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),c=t.append("xhtml:div"),e=l.label,s=l.isNode?"nodeLabel":"edgeLabel",r=c.append("span");return r.html(e),U(r,l.labelStyle),r.attr("class",s),U(c,l.labelStyle),c.style("display","inline-block"),c.style("white-space","nowrap"),c.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}y(tt,"addHtmlLabel");var ht=y((l,t,c,e)=>{let s=l||"";if(typeof s=="object"&&(s=s[0]),P(D().flowchart.htmlLabels)){s=s.replace(/\\n|\n/g,"
"),_.debug("vertexText"+s);const r={isNode:e,label:lt(K(s)),labelStyle:t.replace("fill:","color:")};return tt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let a=[];typeof s=="string"?a=s.split(/\\n|\n|/gi):Array.isArray(s)?a=s:a=[];for(const i of a){const n=document.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","0"),c?n.setAttribute("class","title-row"):n.setAttribute("class","row"),n.textContent=i.trim(),r.appendChild(n)}return r}},"createLabel"),H=ht,B=y((l,t,c,e)=>m(void 0,null,function*(){const s=D();let r;const a=t.useHtmlLabels||P(s.flowchart.htmlLabels);c?r=c:r="node default";const i=l.insert("g").attr("class",r).attr("id",t.domId||t.id),n=i.insert("g").attr("class","label").attr("style",t.labelStyle);let o;t.labelText===void 0?o="":o=typeof t.labelText=="string"?t.labelText:t.labelText[0];const h=n.node();let x;t.labelType==="markdown"?x=nt(n,V(K(o),s),{useHtmlLabels:a,width:t.width||s.flowchart.wrappingWidth,classes:"markdown-node-label"},s):x=h.appendChild(H(V(K(o),s),t.labelStyle,!1,e));let f=x.getBBox();const g=t.padding/2;if(P(s.flowchart.htmlLabels)){const d=x.children[0],S=k(x),p=d.getElementsByTagName("img");if(p){const T=o.replace(/]*>/g,"").trim()==="";yield Promise.all([...p].map(L=>new Promise(A=>{function C(){if(L.style.display="flex",L.style.flexDirection="column",T){const R=s.fontSize?s.fontSize:window.getComputedStyle(document.body).fontSize,O=parseInt(R,10)*5+"px";L.style.minWidth=O,L.style.maxWidth=O}else L.style.width="100%";A(L)}y(C,"setupImage"),setTimeout(()=>{L.complete&&C()}),L.addEventListener("error",C),L.addEventListener("load",C)})))}f=d.getBoundingClientRect(),S.attr("width",f.width),S.attr("height",f.height)}return a?n.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):n.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:i,bbox:f,halfPadding:g,label:n}}),"labelHelper"),w=y((l,t)=>{const c=t.node().getBBox();l.width=c.width,l.height=c.height},"updateNodeBounds");function M(l,t,c,e){return l.insert("polygon",":first-child").attr("points",e.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+c/2+")")}y(M,"insertPolygonShape");var ot=y(l=>{const t=new Set;for(const c of l)switch(c){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(c);break}return t},"expandAndDeduplicateDirections"),yt=y((l,t,c)=>{const e=ot(l),s=2,r=t.height+2*c.padding,a=r/s,i=t.width+2*a+c.padding,n=c.padding/2;return e.has("right")&&e.has("left")&&e.has("up")&&e.has("down")?[{x:0,y:0},{x:a,y:0},{x:i/2,y:2*n},{x:i-a,y:0},{x:i,y:0},{x:i,y:-r/3},{x:i+2*n,y:-r/2},{x:i,y:-2*r/3},{x:i,y:-r},{x:i-a,y:-r},{x:i/2,y:-r-2*n},{x:a,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*n,y:-r/2},{x:0,y:-r/3}]:e.has("right")&&e.has("left")&&e.has("up")?[{x:a,y:0},{x:i-a,y:0},{x:i,y:-r/2},{x:i-a,y:-r},{x:a,y:-r},{x:0,y:-r/2}]:e.has("right")&&e.has("left")&&e.has("down")?[{x:0,y:0},{x:a,y:-r},{x:i-a,y:-r},{x:i,y:0}]:e.has("right")&&e.has("up")&&e.has("down")?[{x:0,y:0},{x:i,y:-a},{x:i,y:-r+a},{x:0,y:-r}]:e.has("left")&&e.has("up")&&e.has("down")?[{x:i,y:0},{x:0,y:-a},{x:0,y:-r+a},{x:i,y:-r}]:e.has("right")&&e.has("left")?[{x:a,y:0},{x:a,y:-n},{x:i-a,y:-n},{x:i-a,y:0},{x:i,y:-r/2},{x:i-a,y:-r},{x:i-a,y:-r+n},{x:a,y:-r+n},{x:a,y:-r},{x:0,y:-r/2}]:e.has("up")&&e.has("down")?[{x:i/2,y:0},{x:0,y:-n},{x:a,y:-n},{x:a,y:-r+n},{x:0,y:-r+n},{x:i/2,y:-r},{x:i,y:-r+n},{x:i-a,y:-r+n},{x:i-a,y:-n},{x:i,y:-n}]:e.has("right")&&e.has("up")?[{x:0,y:0},{x:i,y:-a},{x:0,y:-r}]:e.has("right")&&e.has("down")?[{x:0,y:0},{x:i,y:0},{x:0,y:-r}]:e.has("left")&&e.has("up")?[{x:i,y:0},{x:0,y:-a},{x:i,y:-r}]:e.has("left")&&e.has("down")?[{x:i,y:0},{x:0,y:0},{x:i,y:-r}]:e.has("right")?[{x:a,y:-n},{x:a,y:-n},{x:i-a,y:-n},{x:i-a,y:0},{x:i,y:-r/2},{x:i-a,y:-r},{x:i-a,y:-r+n},{x:a,y:-r+n},{x:a,y:-r+n}]:e.has("left")?[{x:a,y:0},{x:a,y:-n},{x:i-a,y:-n},{x:i-a,y:-r+n},{x:a,y:-r+n},{x:a,y:-r},{x:0,y:-r/2}]:e.has("up")?[{x:a,y:-n},{x:a,y:-r+n},{x:0,y:-r+n},{x:i/2,y:-r},{x:i,y:-r+n},{x:i-a,y:-r+n},{x:i-a,y:-n}]:e.has("down")?[{x:i/2,y:0},{x:0,y:-n},{x:a,y:-n},{x:a,y:-r+n},{x:i-a,y:-r+n},{x:i-a,y:-n},{x:i,y:-n}]:[{x:0,y:0}]},"getArrowPoints");function rt(l,t){return l.intersect(t)}y(rt,"intersectNode");var xt=rt;function at(l,t,c,e){var s=l.x,r=l.y,a=s-e.x,i=r-e.y,n=Math.sqrt(t*t*i*i+c*c*a*a),o=Math.abs(t*c*a/n);e.x0}y(Y,"sameSign");var ft=it,dt=ct;function ct(l,t,c){var e=l.x,s=l.y,r=[],a=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){a=Math.min(a,d.x),i=Math.min(i,d.y)}):(a=Math.min(a,t.x),i=Math.min(i,t.y));for(var n=e-l.width/2-a,o=s-l.height/2-i,h=0;h1&&r.sort(function(d,S){var p=d.x-c.x,T=d.y-c.y,L=Math.sqrt(p*p+T*T),A=S.x-c.x,C=S.y-c.y,R=Math.sqrt(A*A+C*C);return L{var c=l.x,e=l.y,s=t.x-c,r=t.y-e,a=l.width/2,i=l.height/2,n,o;return Math.abs(r)*a>Math.abs(s)*i?(r<0&&(i=-i),n=r===0?0:i*s/r,o=i):(s<0&&(a=-a),n=a,o=s===0?0:a*r/s),{x:c+n,y:e+o}},"intersectRect"),ut=pt,u={node:xt,circle:gt,ellipse:et,polygon:dt,rect:ut},wt=y((l,t)=>m(void 0,null,function*(){t.useHtmlLabels||D().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:e,bbox:s,halfPadding:r}=yield B(l,t,"node "+t.classes,!0);_.info("Classes = ",t.classes);const a=e.insert("rect",":first-child");return a.attr("rx",t.rx).attr("ry",t.ry).attr("x",-s.width/2-r).attr("y",-s.height/2-r).attr("width",s.width+t.padding).attr("height",s.height+t.padding),w(t,a),t.intersect=function(i){return u.rect(t,i)},e}),"note"),bt=wt,G=y(l=>l?" "+l:"","formatClass"),E=y((l,t)=>`${t||"node default"}${G(l.classes)} ${G(l.class)}`,"getClassesFromNode"),Q=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=s+r,i=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];_.info("Question main (Circle)");const n=M(c,a,a,i);return n.attr("style",t.style),w(t,n),t.intersect=function(o){return _.warn("Intersect called"),u.polygon(t,i,o)},c}),"question"),vt=y((l,t)=>{const c=l.insert("g").attr("class","node default").attr("id",t.domId||t.id),e=28,s=[{x:0,y:e/2},{x:e/2,y:0},{x:0,y:-e/2},{x:-e/2,y:0}];return c.insert("polygon",":first-child").attr("points",s.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(a){return u.circle(t,14,a)},c},"choice"),mt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=4,r=e.height+t.padding,a=r/s,i=e.width+2*a+t.padding,n=[{x:a,y:0},{x:i-a,y:0},{x:i,y:-r/2},{x:i-a,y:-r},{x:a,y:-r},{x:0,y:-r/2}],o=M(c,i,r,n);return o.attr("style",t.style),w(t,o),t.intersect=function(h){return u.polygon(t,n,h)},c}),"hexagon"),St=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,void 0,!0),s=2,r=e.height+2*t.padding,a=r/s,i=e.width+2*a+t.padding,n=yt(t.directions,e,t),o=M(c,i,r,n);return o.attr("style",t.style),w(t,o),t.intersect=function(h){return u.polygon(t,n,h)},c}),"block_arrow"),Lt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:-r/2,y:0},{x:s,y:0},{x:s,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return M(c,s,r,a).attr("style",t.style),t.width=s+r,t.height=r,t.intersect=function(n){return u.polygon(t,a,n)},c}),"rect_left_inv_arrow"),_t=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:-2*r/6,y:0},{x:s-r/6,y:0},{x:s+2*r/6,y:-r},{x:r/6,y:-r}],i=M(c,s,r,a);return i.attr("style",t.style),w(t,i),t.intersect=function(n){return u.polygon(t,a,n)},c}),"lean_right"),Bt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:2*r/6,y:0},{x:s+r/6,y:0},{x:s-2*r/6,y:-r},{x:-r/6,y:-r}],i=M(c,s,r,a);return i.attr("style",t.style),w(t,i),t.intersect=function(n){return u.polygon(t,a,n)},c}),"lean_left"),Ct=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:-2*r/6,y:0},{x:s+2*r/6,y:0},{x:s-r/6,y:-r},{x:r/6,y:-r}],i=M(c,s,r,a);return i.attr("style",t.style),w(t,i),t.intersect=function(n){return u.polygon(t,a,n)},c}),"trapezoid"),Tt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:r/6,y:0},{x:s-r/6,y:0},{x:s+2*r/6,y:-r},{x:-2*r/6,y:-r}],i=M(c,s,r,a);return i.attr("style",t.style),w(t,i),t.intersect=function(n){return u.polygon(t,a,n)},c}),"inv_trapezoid"),kt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:0,y:0},{x:s+r/2,y:0},{x:s,y:-r/2},{x:s+r/2,y:-r},{x:0,y:-r}],i=M(c,s,r,a);return i.attr("style",t.style),w(t,i),t.intersect=function(n){return u.polygon(t,a,n)},c}),"rect_right_inv_arrow"),Nt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=s/2,a=r/(2.5+s/50),i=e.height+a+t.padding,n="M 0,"+a+" a "+r+","+a+" 0,0,0 "+s+" 0 a "+r+","+a+" 0,0,0 "+-s+" 0 l 0,"+i+" a "+r+","+a+" 0,0,0 "+s+" 0 l 0,"+-i,o=c.attr("label-offset-y",a).insert("path",":first-child").attr("style",t.style).attr("d",n).attr("transform","translate("+-s/2+","+-(i/2+a)+")");return w(t,o),t.intersect=function(h){const x=u.rect(t,h),f=x.x-t.x;if(r!=0&&(Math.abs(f)t.height/2-a)){let g=a*a*(1-f*f/(r*r));g!=0&&(g=Math.sqrt(g)),g=a-g,h.y-t.y>0&&(g=-g),x.y+=g}return x},c}),"cylinder"),It=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e,halfPadding:s}=yield B(l,t,"node "+t.classes+" "+t.class,!0),r=c.insert("rect",":first-child"),a=t.positioned?t.width:e.width+t.padding,i=t.positioned?t.height:e.height+t.padding,n=t.positioned?-a/2:-e.width/2-s,o=t.positioned?-i/2:-e.height/2-s;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",n).attr("y",o).attr("width",a).attr("height",i),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(W(r,t.props.borders,a,i),h.delete("borders")),h.forEach(x=>{_.warn(`Unknown node property ${x}`)})}return w(t,r),t.intersect=function(h){return u.rect(t,h)},c}),"rect"),Dt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e,halfPadding:s}=yield B(l,t,"node "+t.classes,!0),r=c.insert("rect",":first-child"),a=t.positioned?t.width:e.width+t.padding,i=t.positioned?t.height:e.height+t.padding,n=t.positioned?-a/2:-e.width/2-s,o=t.positioned?-i/2:-e.height/2-s;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",n).attr("y",o).attr("width",a).attr("height",i),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(W(r,t.props.borders,a,i),h.delete("borders")),h.forEach(x=>{_.warn(`Unknown node property ${x}`)})}return w(t,r),t.intersect=function(h){return u.rect(t,h)},c}),"composite"),Et=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c}=yield B(l,t,"label",!0);_.trace("Classes = ",t.class);const e=c.insert("rect",":first-child"),s=0,r=0;if(e.attr("width",s).attr("height",r),c.attr("class","label edgeLabel"),t.props){const a=new Set(Object.keys(t.props));t.props.borders&&(W(e,t.props.borders,s,r),a.delete("borders")),a.forEach(i=>{_.warn(`Unknown node property ${i}`)})}return w(t,e),t.intersect=function(a){return u.rect(t,a)},c}),"labelRect");function W(l,t,c,e){const s=[],r=y(i=>{s.push(i,0)},"addBorder"),a=y(i=>{s.push(0,i)},"skipBorder");t.includes("t")?(_.debug("add top border"),r(c)):a(c),t.includes("r")?(_.debug("add right border"),r(e)):a(e),t.includes("b")?(_.debug("add bottom border"),r(c)):a(c),t.includes("l")?(_.debug("add left border"),r(e)):a(e),l.attr("stroke-dasharray",s.join(" "))}y(W,"applyNodePropertyBorders");var Mt=y((l,t)=>{let c;t.classes?c="node "+t.classes:c="node default";const e=l.insert("g").attr("class",c).attr("id",t.domId||t.id),s=e.insert("rect",":first-child"),r=e.insert("line"),a=e.insert("g").attr("class","label"),i=t.labelText.flat?t.labelText.flat():t.labelText;let n="";typeof i=="object"?n=i[0]:n=i,_.info("Label text abc79",n,i,typeof i=="object");const o=a.node().appendChild(H(n,t.labelStyle,!0,!0));let h={width:0,height:0};if(P(D().flowchart.htmlLabels)){const S=o.children[0],p=k(o);h=S.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}_.info("Text 2",i);const x=i.slice(1,i.length);let f=o.getBBox();const g=a.node().appendChild(H(x.join?x.join("
"):x,t.labelStyle,!0,!0));if(P(D().flowchart.htmlLabels)){const S=g.children[0],p=k(g);h=S.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}const d=t.padding/2;return k(g).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+d+5)+")"),k(o).attr("transform","translate( "+(h.widthm(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.height+t.padding,r=e.width+s/4+t.padding,a=c.insert("rect",":first-child").attr("style",t.style).attr("rx",s/2).attr("ry",s/2).attr("x",-r/2).attr("y",-s/2).attr("width",r).attr("height",s);return w(t,a),t.intersect=function(i){return u.rect(t,i)},c}),"stadium"),jt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e,halfPadding:s}=yield B(l,t,E(t,void 0),!0),r=c.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",e.width/2+s).attr("width",e.width+t.padding).attr("height",e.height+t.padding),_.info("Circle main"),w(t,r),t.intersect=function(a){return _.info("Circle intersect",t,e.width/2+s,a),u.circle(t,e.width/2+s,a)},c}),"circle"),Pt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e,halfPadding:s}=yield B(l,t,E(t,void 0),!0),r=5,a=c.insert("g",":first-child"),i=a.insert("circle"),n=a.insert("circle");return a.attr("class",t.class),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",e.width/2+s+r).attr("width",e.width+t.padding+r*2).attr("height",e.height+t.padding+r*2),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",e.width/2+s).attr("width",e.width+t.padding).attr("height",e.height+t.padding),_.info("DoubleCircle main"),w(t,i),t.intersect=function(o){return _.info("DoubleCircle intersect",t,e.width/2+s+r,o),u.circle(t,e.width/2+s+r,o)},c}),"doublecircle"),Rt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:0,y:0},{x:s,y:0},{x:s,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],i=M(c,s,r,a);return i.attr("style",t.style),w(t,i),t.intersect=function(n){return u.polygon(t,a,n)},c}),"subroutine"),Ht=y((l,t)=>{const c=l.insert("g").attr("class","node default").attr("id",t.domId||t.id),e=c.insert("circle",":first-child");return e.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),w(t,e),t.intersect=function(s){return u.circle(t,7,s)},c},"start"),q=y((l,t,c)=>{const e=l.insert("g").attr("class","node default").attr("id",t.domId||t.id);let s=70,r=10;c==="LR"&&(s=10,r=70);const a=e.append("rect").attr("x",-1*s/2).attr("y",-1*r/2).attr("width",s).attr("height",r).attr("class","fork-join");return w(t,a),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(i){return u.rect(t,i)},e},"forkJoin"),zt=y((l,t)=>{const c=l.insert("g").attr("class","node default").attr("id",t.domId||t.id),e=c.insert("circle",":first-child"),s=c.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),e.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),w(t,s),t.intersect=function(r){return u.circle(t,7,r)},c},"end"),Ft=y((l,t)=>{var J;const c=t.padding/2,e=4,s=8;let r;t.classes?r="node "+t.classes:r="node default";const a=l.insert("g").attr("class",r).attr("id",t.domId||t.id),i=a.insert("rect",":first-child"),n=a.insert("line"),o=a.insert("line");let h=0,x=e;const f=a.insert("g").attr("class","label");let g=0;const d=(J=t.classData.annotations)==null?void 0:J[0],S=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",p=f.node().appendChild(H(S,t.labelStyle,!0,!0));let T=p.getBBox();if(P(D().flowchart.htmlLabels)){const b=p.children[0],v=k(p);T=b.getBoundingClientRect(),v.attr("width",T.width),v.attr("height",T.height)}t.classData.annotations[0]&&(x+=T.height+e,h+=T.width);let L=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(D().flowchart.htmlLabels?L+="<"+t.classData.type+">":L+="<"+t.classData.type+">");const A=f.node().appendChild(H(L,t.labelStyle,!0,!0));k(A).attr("class","classTitle");let C=A.getBBox();if(P(D().flowchart.htmlLabels)){const b=A.children[0],v=k(A);C=b.getBoundingClientRect(),v.attr("width",C.width),v.attr("height",C.height)}x+=C.height+e,C.width>h&&(h=C.width);const R=[];t.classData.members.forEach(b=>{const v=b.getDisplayDetails();let N=v.displayText;D().flowchart.htmlLabels&&(N=N.replace(//g,">"));const j=f.node().appendChild(H(N,v.cssStyle?v.cssStyle:t.labelStyle,!0,!0));let I=j.getBBox();if(P(D().flowchart.htmlLabels)){const X=j.children[0],F=k(j);I=X.getBoundingClientRect(),F.attr("width",I.width),F.attr("height",I.height)}I.width>h&&(h=I.width),x+=I.height+e,R.push(j)}),x+=s;const $=[];if(t.classData.methods.forEach(b=>{const v=b.getDisplayDetails();let N=v.displayText;D().flowchart.htmlLabels&&(N=N.replace(//g,">"));const j=f.node().appendChild(H(N,v.cssStyle?v.cssStyle:t.labelStyle,!0,!0));let I=j.getBBox();if(P(D().flowchart.htmlLabels)){const X=j.children[0],F=k(j);I=X.getBoundingClientRect(),F.attr("width",I.width),F.attr("height",I.height)}I.width>h&&(h=I.width),x+=I.height+e,$.push(j)}),x+=s,d){let b=(h-T.width)/2;k(p).attr("transform","translate( "+(-1*h/2+b)+", "+-1*x/2+")"),g=T.height+e}let O=(h-C.width)/2;return k(A).attr("transform","translate( "+(-1*h/2+O)+", "+(-1*x/2+g)+")"),g+=C.height+e,n.attr("class","divider").attr("x1",-h/2-c).attr("x2",h/2+c).attr("y1",-x/2-c+s+g).attr("y2",-x/2-c+s+g),g+=s,R.forEach(b=>{var N;k(b).attr("transform","translate( "+-h/2+", "+(-1*x/2+g+s/2)+")");const v=b==null?void 0:b.getBBox();g+=((N=v==null?void 0:v.height)!=null?N:0)+e}),g+=s,o.attr("class","divider").attr("x1",-h/2-c).attr("x2",h/2+c).attr("y1",-x/2-c+s+g).attr("y2",-x/2-c+s+g),g+=s,$.forEach(b=>{var N;k(b).attr("transform","translate( "+-h/2+", "+(-1*x/2+g)+")");const v=b==null?void 0:b.getBBox();g+=((N=v==null?void 0:v.height)!=null?N:0)+e}),i.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-c).attr("y",-(x/2)-c).attr("width",h+t.padding).attr("height",x+t.padding),w(t,i),t.intersect=function(b){return u.rect(t,b)},a},"class_box"),Z={rhombus:Q,composite:Dt,question:Q,rect:It,labelRect:Et,rectWithTitle:Mt,choice:vt,circle:jt,doublecircle:Pt,stadium:At,hexagon:mt,block_arrow:St,rect_left_inv_arrow:Lt,lean_right:_t,lean_left:Bt,trapezoid:Ct,inv_trapezoid:Tt,rect_right_inv_arrow:kt,cylinder:Nt,start:Ht,end:zt,note:bt,subroutine:Rt,fork:q,join:q,class_box:Ft},z={},$t=y((l,t,c)=>m(void 0,null,function*(){let e,s;if(t.link){let r;D().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),e=l.insert("svg:a").attr("xlink:href",t.link).attr("target",r),s=yield Z[t.shape](e,t,c)}else s=yield Z[t.shape](l,t,c),e=s;return t.tooltip&&s.attr("title",t.tooltip),t.class&&s.attr("class","node default "+t.class),z[t.id]=e,t.haveCallback&&z[t.id].attr("class",z[t.id].attr("class")+" clickable"),e}),"insertNode"),Xt=y((l,t)=>{z[t.id]=l},"setNodeElem"),Kt=y(()=>{z={}},"clear"),Ut=y(l=>{const t=z[l.id];_.trace("Transforming node",l.diff,l,"translate("+(l.x-l.width/2-5)+", "+l.width/2+")");const c=8,e=l.diff||0;return l.clusterNode?t.attr("transform","translate("+(l.x+e-l.width/2)+", "+(l.y-l.height/2-c)+")"):t.attr("transform","translate("+l.x+", "+l.y+")"),e},"positionNode");export{H as a,ut as b,Kt as c,$t as i,Ut as p,Xt as s,w as u}; +var m=(l,t,c)=>new Promise((e,s)=>{var r=n=>{try{i(c.next(n))}catch(o){s(o)}},a=n=>{try{i(c.throw(n))}catch(o){s(o)}},i=n=>n.done?e(n.value):Promise.resolve(n.value).then(r,a);i((c=c.apply(l,t)).next())});import{_ as y,j as k,l as _,d as D,A as P,B as lt,C as K,D as nt,i as V}from"./Using existing ones-DVOwGlbd.js";function U(l,t){t&&l.attr("style",t)}y(U,"applyStyle");function tt(l){const t=k(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),c=t.append("xhtml:div"),e=l.label,s=l.isNode?"nodeLabel":"edgeLabel",r=c.append("span");return r.html(e),U(r,l.labelStyle),r.attr("class",s),U(c,l.labelStyle),c.style("display","inline-block"),c.style("white-space","nowrap"),c.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}y(tt,"addHtmlLabel");var ht=y((l,t,c,e)=>{let s=l||"";if(typeof s=="object"&&(s=s[0]),P(D().flowchart.htmlLabels)){s=s.replace(/\\n|\n/g,"
"),_.debug("vertexText"+s);const r={isNode:e,label:lt(K(s)),labelStyle:t.replace("fill:","color:")};return tt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let a=[];typeof s=="string"?a=s.split(/\\n|\n|/gi):Array.isArray(s)?a=s:a=[];for(const i of a){const n=document.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","0"),c?n.setAttribute("class","title-row"):n.setAttribute("class","row"),n.textContent=i.trim(),r.appendChild(n)}return r}},"createLabel"),H=ht,B=y((l,t,c,e)=>m(void 0,null,function*(){const s=D();let r;const a=t.useHtmlLabels||P(s.flowchart.htmlLabels);c?r=c:r="node default";const i=l.insert("g").attr("class",r).attr("id",t.domId||t.id),n=i.insert("g").attr("class","label").attr("style",t.labelStyle);let o;t.labelText===void 0?o="":o=typeof t.labelText=="string"?t.labelText:t.labelText[0];const h=n.node();let x;t.labelType==="markdown"?x=nt(n,V(K(o),s),{useHtmlLabels:a,width:t.width||s.flowchart.wrappingWidth,classes:"markdown-node-label"},s):x=h.appendChild(H(V(K(o),s),t.labelStyle,!1,e));let f=x.getBBox();const g=t.padding/2;if(P(s.flowchart.htmlLabels)){const d=x.children[0],S=k(x),p=d.getElementsByTagName("img");if(p){const T=o.replace(/]*>/g,"").trim()==="";yield Promise.all([...p].map(L=>new Promise(A=>{function C(){if(L.style.display="flex",L.style.flexDirection="column",T){const R=s.fontSize?s.fontSize:window.getComputedStyle(document.body).fontSize,O=parseInt(R,10)*5+"px";L.style.minWidth=O,L.style.maxWidth=O}else L.style.width="100%";A(L)}y(C,"setupImage"),setTimeout(()=>{L.complete&&C()}),L.addEventListener("error",C),L.addEventListener("load",C)})))}f=d.getBoundingClientRect(),S.attr("width",f.width),S.attr("height",f.height)}return a?n.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):n.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:i,bbox:f,halfPadding:g,label:n}}),"labelHelper"),w=y((l,t)=>{const c=t.node().getBBox();l.width=c.width,l.height=c.height},"updateNodeBounds");function M(l,t,c,e){return l.insert("polygon",":first-child").attr("points",e.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+c/2+")")}y(M,"insertPolygonShape");var ot=y(l=>{const t=new Set;for(const c of l)switch(c){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(c);break}return t},"expandAndDeduplicateDirections"),yt=y((l,t,c)=>{const e=ot(l),s=2,r=t.height+2*c.padding,a=r/s,i=t.width+2*a+c.padding,n=c.padding/2;return e.has("right")&&e.has("left")&&e.has("up")&&e.has("down")?[{x:0,y:0},{x:a,y:0},{x:i/2,y:2*n},{x:i-a,y:0},{x:i,y:0},{x:i,y:-r/3},{x:i+2*n,y:-r/2},{x:i,y:-2*r/3},{x:i,y:-r},{x:i-a,y:-r},{x:i/2,y:-r-2*n},{x:a,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*n,y:-r/2},{x:0,y:-r/3}]:e.has("right")&&e.has("left")&&e.has("up")?[{x:a,y:0},{x:i-a,y:0},{x:i,y:-r/2},{x:i-a,y:-r},{x:a,y:-r},{x:0,y:-r/2}]:e.has("right")&&e.has("left")&&e.has("down")?[{x:0,y:0},{x:a,y:-r},{x:i-a,y:-r},{x:i,y:0}]:e.has("right")&&e.has("up")&&e.has("down")?[{x:0,y:0},{x:i,y:-a},{x:i,y:-r+a},{x:0,y:-r}]:e.has("left")&&e.has("up")&&e.has("down")?[{x:i,y:0},{x:0,y:-a},{x:0,y:-r+a},{x:i,y:-r}]:e.has("right")&&e.has("left")?[{x:a,y:0},{x:a,y:-n},{x:i-a,y:-n},{x:i-a,y:0},{x:i,y:-r/2},{x:i-a,y:-r},{x:i-a,y:-r+n},{x:a,y:-r+n},{x:a,y:-r},{x:0,y:-r/2}]:e.has("up")&&e.has("down")?[{x:i/2,y:0},{x:0,y:-n},{x:a,y:-n},{x:a,y:-r+n},{x:0,y:-r+n},{x:i/2,y:-r},{x:i,y:-r+n},{x:i-a,y:-r+n},{x:i-a,y:-n},{x:i,y:-n}]:e.has("right")&&e.has("up")?[{x:0,y:0},{x:i,y:-a},{x:0,y:-r}]:e.has("right")&&e.has("down")?[{x:0,y:0},{x:i,y:0},{x:0,y:-r}]:e.has("left")&&e.has("up")?[{x:i,y:0},{x:0,y:-a},{x:i,y:-r}]:e.has("left")&&e.has("down")?[{x:i,y:0},{x:0,y:0},{x:i,y:-r}]:e.has("right")?[{x:a,y:-n},{x:a,y:-n},{x:i-a,y:-n},{x:i-a,y:0},{x:i,y:-r/2},{x:i-a,y:-r},{x:i-a,y:-r+n},{x:a,y:-r+n},{x:a,y:-r+n}]:e.has("left")?[{x:a,y:0},{x:a,y:-n},{x:i-a,y:-n},{x:i-a,y:-r+n},{x:a,y:-r+n},{x:a,y:-r},{x:0,y:-r/2}]:e.has("up")?[{x:a,y:-n},{x:a,y:-r+n},{x:0,y:-r+n},{x:i/2,y:-r},{x:i,y:-r+n},{x:i-a,y:-r+n},{x:i-a,y:-n}]:e.has("down")?[{x:i/2,y:0},{x:0,y:-n},{x:a,y:-n},{x:a,y:-r+n},{x:i-a,y:-r+n},{x:i-a,y:-n},{x:i,y:-n}]:[{x:0,y:0}]},"getArrowPoints");function rt(l,t){return l.intersect(t)}y(rt,"intersectNode");var xt=rt;function at(l,t,c,e){var s=l.x,r=l.y,a=s-e.x,i=r-e.y,n=Math.sqrt(t*t*i*i+c*c*a*a),o=Math.abs(t*c*a/n);e.x0}y(Y,"sameSign");var ft=it,dt=ct;function ct(l,t,c){var e=l.x,s=l.y,r=[],a=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){a=Math.min(a,d.x),i=Math.min(i,d.y)}):(a=Math.min(a,t.x),i=Math.min(i,t.y));for(var n=e-l.width/2-a,o=s-l.height/2-i,h=0;h1&&r.sort(function(d,S){var p=d.x-c.x,T=d.y-c.y,L=Math.sqrt(p*p+T*T),A=S.x-c.x,C=S.y-c.y,R=Math.sqrt(A*A+C*C);return L{var c=l.x,e=l.y,s=t.x-c,r=t.y-e,a=l.width/2,i=l.height/2,n,o;return Math.abs(r)*a>Math.abs(s)*i?(r<0&&(i=-i),n=r===0?0:i*s/r,o=i):(s<0&&(a=-a),n=a,o=s===0?0:a*r/s),{x:c+n,y:e+o}},"intersectRect"),ut=pt,u={node:xt,circle:gt,ellipse:et,polygon:dt,rect:ut},wt=y((l,t)=>m(void 0,null,function*(){t.useHtmlLabels||D().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:e,bbox:s,halfPadding:r}=yield B(l,t,"node "+t.classes,!0);_.info("Classes = ",t.classes);const a=e.insert("rect",":first-child");return a.attr("rx",t.rx).attr("ry",t.ry).attr("x",-s.width/2-r).attr("y",-s.height/2-r).attr("width",s.width+t.padding).attr("height",s.height+t.padding),w(t,a),t.intersect=function(i){return u.rect(t,i)},e}),"note"),bt=wt,G=y(l=>l?" "+l:"","formatClass"),E=y((l,t)=>`${t||"node default"}${G(l.classes)} ${G(l.class)}`,"getClassesFromNode"),Q=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=s+r,i=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];_.info("Question main (Circle)");const n=M(c,a,a,i);return n.attr("style",t.style),w(t,n),t.intersect=function(o){return _.warn("Intersect called"),u.polygon(t,i,o)},c}),"question"),vt=y((l,t)=>{const c=l.insert("g").attr("class","node default").attr("id",t.domId||t.id),e=28,s=[{x:0,y:e/2},{x:e/2,y:0},{x:0,y:-e/2},{x:-e/2,y:0}];return c.insert("polygon",":first-child").attr("points",s.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(a){return u.circle(t,14,a)},c},"choice"),mt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=4,r=e.height+t.padding,a=r/s,i=e.width+2*a+t.padding,n=[{x:a,y:0},{x:i-a,y:0},{x:i,y:-r/2},{x:i-a,y:-r},{x:a,y:-r},{x:0,y:-r/2}],o=M(c,i,r,n);return o.attr("style",t.style),w(t,o),t.intersect=function(h){return u.polygon(t,n,h)},c}),"hexagon"),St=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,void 0,!0),s=2,r=e.height+2*t.padding,a=r/s,i=e.width+2*a+t.padding,n=yt(t.directions,e,t),o=M(c,i,r,n);return o.attr("style",t.style),w(t,o),t.intersect=function(h){return u.polygon(t,n,h)},c}),"block_arrow"),Lt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:-r/2,y:0},{x:s,y:0},{x:s,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return M(c,s,r,a).attr("style",t.style),t.width=s+r,t.height=r,t.intersect=function(n){return u.polygon(t,a,n)},c}),"rect_left_inv_arrow"),_t=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:-2*r/6,y:0},{x:s-r/6,y:0},{x:s+2*r/6,y:-r},{x:r/6,y:-r}],i=M(c,s,r,a);return i.attr("style",t.style),w(t,i),t.intersect=function(n){return u.polygon(t,a,n)},c}),"lean_right"),Bt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:2*r/6,y:0},{x:s+r/6,y:0},{x:s-2*r/6,y:-r},{x:-r/6,y:-r}],i=M(c,s,r,a);return i.attr("style",t.style),w(t,i),t.intersect=function(n){return u.polygon(t,a,n)},c}),"lean_left"),Ct=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:-2*r/6,y:0},{x:s+2*r/6,y:0},{x:s-r/6,y:-r},{x:r/6,y:-r}],i=M(c,s,r,a);return i.attr("style",t.style),w(t,i),t.intersect=function(n){return u.polygon(t,a,n)},c}),"trapezoid"),Tt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:r/6,y:0},{x:s-r/6,y:0},{x:s+2*r/6,y:-r},{x:-2*r/6,y:-r}],i=M(c,s,r,a);return i.attr("style",t.style),w(t,i),t.intersect=function(n){return u.polygon(t,a,n)},c}),"inv_trapezoid"),kt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:0,y:0},{x:s+r/2,y:0},{x:s,y:-r/2},{x:s+r/2,y:-r},{x:0,y:-r}],i=M(c,s,r,a);return i.attr("style",t.style),w(t,i),t.intersect=function(n){return u.polygon(t,a,n)},c}),"rect_right_inv_arrow"),Nt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=s/2,a=r/(2.5+s/50),i=e.height+a+t.padding,n="M 0,"+a+" a "+r+","+a+" 0,0,0 "+s+" 0 a "+r+","+a+" 0,0,0 "+-s+" 0 l 0,"+i+" a "+r+","+a+" 0,0,0 "+s+" 0 l 0,"+-i,o=c.attr("label-offset-y",a).insert("path",":first-child").attr("style",t.style).attr("d",n).attr("transform","translate("+-s/2+","+-(i/2+a)+")");return w(t,o),t.intersect=function(h){const x=u.rect(t,h),f=x.x-t.x;if(r!=0&&(Math.abs(f)t.height/2-a)){let g=a*a*(1-f*f/(r*r));g!=0&&(g=Math.sqrt(g)),g=a-g,h.y-t.y>0&&(g=-g),x.y+=g}return x},c}),"cylinder"),It=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e,halfPadding:s}=yield B(l,t,"node "+t.classes+" "+t.class,!0),r=c.insert("rect",":first-child"),a=t.positioned?t.width:e.width+t.padding,i=t.positioned?t.height:e.height+t.padding,n=t.positioned?-a/2:-e.width/2-s,o=t.positioned?-i/2:-e.height/2-s;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",n).attr("y",o).attr("width",a).attr("height",i),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(W(r,t.props.borders,a,i),h.delete("borders")),h.forEach(x=>{_.warn(`Unknown node property ${x}`)})}return w(t,r),t.intersect=function(h){return u.rect(t,h)},c}),"rect"),Dt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e,halfPadding:s}=yield B(l,t,"node "+t.classes,!0),r=c.insert("rect",":first-child"),a=t.positioned?t.width:e.width+t.padding,i=t.positioned?t.height:e.height+t.padding,n=t.positioned?-a/2:-e.width/2-s,o=t.positioned?-i/2:-e.height/2-s;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",n).attr("y",o).attr("width",a).attr("height",i),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(W(r,t.props.borders,a,i),h.delete("borders")),h.forEach(x=>{_.warn(`Unknown node property ${x}`)})}return w(t,r),t.intersect=function(h){return u.rect(t,h)},c}),"composite"),Et=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c}=yield B(l,t,"label",!0);_.trace("Classes = ",t.class);const e=c.insert("rect",":first-child"),s=0,r=0;if(e.attr("width",s).attr("height",r),c.attr("class","label edgeLabel"),t.props){const a=new Set(Object.keys(t.props));t.props.borders&&(W(e,t.props.borders,s,r),a.delete("borders")),a.forEach(i=>{_.warn(`Unknown node property ${i}`)})}return w(t,e),t.intersect=function(a){return u.rect(t,a)},c}),"labelRect");function W(l,t,c,e){const s=[],r=y(i=>{s.push(i,0)},"addBorder"),a=y(i=>{s.push(0,i)},"skipBorder");t.includes("t")?(_.debug("add top border"),r(c)):a(c),t.includes("r")?(_.debug("add right border"),r(e)):a(e),t.includes("b")?(_.debug("add bottom border"),r(c)):a(c),t.includes("l")?(_.debug("add left border"),r(e)):a(e),l.attr("stroke-dasharray",s.join(" "))}y(W,"applyNodePropertyBorders");var Mt=y((l,t)=>{let c;t.classes?c="node "+t.classes:c="node default";const e=l.insert("g").attr("class",c).attr("id",t.domId||t.id),s=e.insert("rect",":first-child"),r=e.insert("line"),a=e.insert("g").attr("class","label"),i=t.labelText.flat?t.labelText.flat():t.labelText;let n="";typeof i=="object"?n=i[0]:n=i,_.info("Label text abc79",n,i,typeof i=="object");const o=a.node().appendChild(H(n,t.labelStyle,!0,!0));let h={width:0,height:0};if(P(D().flowchart.htmlLabels)){const S=o.children[0],p=k(o);h=S.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}_.info("Text 2",i);const x=i.slice(1,i.length);let f=o.getBBox();const g=a.node().appendChild(H(x.join?x.join("
"):x,t.labelStyle,!0,!0));if(P(D().flowchart.htmlLabels)){const S=g.children[0],p=k(g);h=S.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}const d=t.padding/2;return k(g).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+d+5)+")"),k(o).attr("transform","translate( "+(h.widthm(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.height+t.padding,r=e.width+s/4+t.padding,a=c.insert("rect",":first-child").attr("style",t.style).attr("rx",s/2).attr("ry",s/2).attr("x",-r/2).attr("y",-s/2).attr("width",r).attr("height",s);return w(t,a),t.intersect=function(i){return u.rect(t,i)},c}),"stadium"),jt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e,halfPadding:s}=yield B(l,t,E(t,void 0),!0),r=c.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",e.width/2+s).attr("width",e.width+t.padding).attr("height",e.height+t.padding),_.info("Circle main"),w(t,r),t.intersect=function(a){return _.info("Circle intersect",t,e.width/2+s,a),u.circle(t,e.width/2+s,a)},c}),"circle"),Pt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e,halfPadding:s}=yield B(l,t,E(t,void 0),!0),r=5,a=c.insert("g",":first-child"),i=a.insert("circle"),n=a.insert("circle");return a.attr("class",t.class),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",e.width/2+s+r).attr("width",e.width+t.padding+r*2).attr("height",e.height+t.padding+r*2),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",e.width/2+s).attr("width",e.width+t.padding).attr("height",e.height+t.padding),_.info("DoubleCircle main"),w(t,i),t.intersect=function(o){return _.info("DoubleCircle intersect",t,e.width/2+s+r,o),u.circle(t,e.width/2+s+r,o)},c}),"doublecircle"),Rt=y((l,t)=>m(void 0,null,function*(){const{shapeSvg:c,bbox:e}=yield B(l,t,E(t,void 0),!0),s=e.width+t.padding,r=e.height+t.padding,a=[{x:0,y:0},{x:s,y:0},{x:s,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],i=M(c,s,r,a);return i.attr("style",t.style),w(t,i),t.intersect=function(n){return u.polygon(t,a,n)},c}),"subroutine"),Ht=y((l,t)=>{const c=l.insert("g").attr("class","node default").attr("id",t.domId||t.id),e=c.insert("circle",":first-child");return e.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),w(t,e),t.intersect=function(s){return u.circle(t,7,s)},c},"start"),q=y((l,t,c)=>{const e=l.insert("g").attr("class","node default").attr("id",t.domId||t.id);let s=70,r=10;c==="LR"&&(s=10,r=70);const a=e.append("rect").attr("x",-1*s/2).attr("y",-1*r/2).attr("width",s).attr("height",r).attr("class","fork-join");return w(t,a),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(i){return u.rect(t,i)},e},"forkJoin"),zt=y((l,t)=>{const c=l.insert("g").attr("class","node default").attr("id",t.domId||t.id),e=c.insert("circle",":first-child"),s=c.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),e.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),w(t,s),t.intersect=function(r){return u.circle(t,7,r)},c},"end"),Ft=y((l,t)=>{var J;const c=t.padding/2,e=4,s=8;let r;t.classes?r="node "+t.classes:r="node default";const a=l.insert("g").attr("class",r).attr("id",t.domId||t.id),i=a.insert("rect",":first-child"),n=a.insert("line"),o=a.insert("line");let h=0,x=e;const f=a.insert("g").attr("class","label");let g=0;const d=(J=t.classData.annotations)==null?void 0:J[0],S=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",p=f.node().appendChild(H(S,t.labelStyle,!0,!0));let T=p.getBBox();if(P(D().flowchart.htmlLabels)){const b=p.children[0],v=k(p);T=b.getBoundingClientRect(),v.attr("width",T.width),v.attr("height",T.height)}t.classData.annotations[0]&&(x+=T.height+e,h+=T.width);let L=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(D().flowchart.htmlLabels?L+="<"+t.classData.type+">":L+="<"+t.classData.type+">");const A=f.node().appendChild(H(L,t.labelStyle,!0,!0));k(A).attr("class","classTitle");let C=A.getBBox();if(P(D().flowchart.htmlLabels)){const b=A.children[0],v=k(A);C=b.getBoundingClientRect(),v.attr("width",C.width),v.attr("height",C.height)}x+=C.height+e,C.width>h&&(h=C.width);const R=[];t.classData.members.forEach(b=>{const v=b.getDisplayDetails();let N=v.displayText;D().flowchart.htmlLabels&&(N=N.replace(//g,">"));const j=f.node().appendChild(H(N,v.cssStyle?v.cssStyle:t.labelStyle,!0,!0));let I=j.getBBox();if(P(D().flowchart.htmlLabels)){const X=j.children[0],F=k(j);I=X.getBoundingClientRect(),F.attr("width",I.width),F.attr("height",I.height)}I.width>h&&(h=I.width),x+=I.height+e,R.push(j)}),x+=s;const $=[];if(t.classData.methods.forEach(b=>{const v=b.getDisplayDetails();let N=v.displayText;D().flowchart.htmlLabels&&(N=N.replace(//g,">"));const j=f.node().appendChild(H(N,v.cssStyle?v.cssStyle:t.labelStyle,!0,!0));let I=j.getBBox();if(P(D().flowchart.htmlLabels)){const X=j.children[0],F=k(j);I=X.getBoundingClientRect(),F.attr("width",I.width),F.attr("height",I.height)}I.width>h&&(h=I.width),x+=I.height+e,$.push(j)}),x+=s,d){let b=(h-T.width)/2;k(p).attr("transform","translate( "+(-1*h/2+b)+", "+-1*x/2+")"),g=T.height+e}let O=(h-C.width)/2;return k(A).attr("transform","translate( "+(-1*h/2+O)+", "+(-1*x/2+g)+")"),g+=C.height+e,n.attr("class","divider").attr("x1",-h/2-c).attr("x2",h/2+c).attr("y1",-x/2-c+s+g).attr("y2",-x/2-c+s+g),g+=s,R.forEach(b=>{var N;k(b).attr("transform","translate( "+-h/2+", "+(-1*x/2+g+s/2)+")");const v=b==null?void 0:b.getBBox();g+=((N=v==null?void 0:v.height)!=null?N:0)+e}),g+=s,o.attr("class","divider").attr("x1",-h/2-c).attr("x2",h/2+c).attr("y1",-x/2-c+s+g).attr("y2",-x/2-c+s+g),g+=s,$.forEach(b=>{var N;k(b).attr("transform","translate( "+-h/2+", "+(-1*x/2+g)+")");const v=b==null?void 0:b.getBBox();g+=((N=v==null?void 0:v.height)!=null?N:0)+e}),i.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-c).attr("y",-(x/2)-c).attr("width",h+t.padding).attr("height",x+t.padding),w(t,i),t.intersect=function(b){return u.rect(t,b)},a},"class_box"),Z={rhombus:Q,composite:Dt,question:Q,rect:It,labelRect:Et,rectWithTitle:Mt,choice:vt,circle:jt,doublecircle:Pt,stadium:At,hexagon:mt,block_arrow:St,rect_left_inv_arrow:Lt,lean_right:_t,lean_left:Bt,trapezoid:Ct,inv_trapezoid:Tt,rect_right_inv_arrow:kt,cylinder:Nt,start:Ht,end:zt,note:bt,subroutine:Rt,fork:q,join:q,class_box:Ft},z={},$t=y((l,t,c)=>m(void 0,null,function*(){let e,s;if(t.link){let r;D().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),e=l.insert("svg:a").attr("xlink:href",t.link).attr("target",r),s=yield Z[t.shape](e,t,c)}else s=yield Z[t.shape](l,t,c),e=s;return t.tooltip&&s.attr("title",t.tooltip),t.class&&s.attr("class","node default "+t.class),z[t.id]=e,t.haveCallback&&z[t.id].attr("class",z[t.id].attr("class")+" clickable"),e}),"insertNode"),Xt=y((l,t)=>{z[t.id]=l},"setNodeElem"),Kt=y(()=>{z={}},"clear"),Ut=y(l=>{const t=z[l.id];_.trace("Transforming node",l.diff,l,"translate("+(l.x-l.width/2-5)+", "+l.width/2+")");const c=8,e=l.diff||0;return l.clusterNode?t.attr("transform","translate("+(l.x+e-l.width/2)+", "+(l.y-l.height/2-c)+")"):t.attr("transform","translate("+l.x+", "+l.y+")"),e},"positionNode");export{H as a,ut as b,Kt as c,$t as i,Ut as p,Xt as s,w as u}; diff --git a/pr-preview/pr-419/assets/classDiagram-4BHYIK4I-ByJmFmYl.js b/pr-preview/pr-419/assets/classDiagram-4BHYIK4I-DmurYMkc.js similarity index 96% rename from pr-preview/pr-419/assets/classDiagram-4BHYIK4I-ByJmFmYl.js rename to pr-preview/pr-419/assets/classDiagram-4BHYIK4I-DmurYMkc.js index e41a095d2..6b045ec42 100644 --- a/pr-preview/pr-419/assets/classDiagram-4BHYIK4I-ByJmFmYl.js +++ b/pr-preview/pr-419/assets/classDiagram-4BHYIK4I-DmurYMkc.js @@ -1,2 +1,2 @@ -import{c as G,a as N,s as I}from"./chunk-BAVOGKFW-DyZopqvA.js";import{_ as f,d as S,l as u,j as B,k as W,a2 as P,a8 as R,u as _,a9 as X}from"./Using existing ones-1ACZX-0W.js";import{G as Y}from"./graph-BbauKfQB.js";import{l as $}from"./layout-CpgFbA5F.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";var H=0,J=f(function(i,a,t,o,p){const g=f(function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}},"getRelationType");a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=P().x(function(e){return e.x}).y(function(e){return e.y}).curve(R),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let m,h;const x=a.points.length;let b=_.calcLabelPosition(a.points);m=b.x,h=b.y;let y,w,k,v;if(x%2!==0&&x>1){let e=_.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=_.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);u.debug("cardinality_1_point "+JSON.stringify(e)),u.debug("cardinality_2_point "+JSON.stringify(d)),y=e.x,w=e.y,k=d.x,v=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",m).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}u.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",y).attr("y",w).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",k).attr("y",v).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},"drawEdge"),O=f(function(i,a,t,o){u.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=A(a);const m=c.append("tspan").text(r).attr("class","title");n||m.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,y;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){C(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){y=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){C(d,l,n,t),n=!1})}const w=s.node().getBBox();var k=" ";a.cssClasses.length>0&&(k=k+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",w.width+2*t.padding).attr("height",w.height+t.padding+.5*t.dividerMargin).attr("class",k).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),y&&y.attr("x2",e),g.width=e,g.height=w.height+t.padding+.5*t.dividerMargin,g},"drawClass"),A=f(function(i){let a=i.id;return i.type&&(a+="<"+X(i.type)+">"),a},"getClassTitleString"),Z=f(function(i,a,t,o){u.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(` +import{c as G,a as N,s as I}from"./chunk-BAVOGKFW-DXM1shxP.js";import{_ as f,d as S,l as u,j as B,k as W,a2 as P,a8 as R,u as _,a9 as X}from"./Using existing ones-DVOwGlbd.js";import{G as Y}from"./graph-wuI2A7_P.js";import{l as $}from"./layout-CNdX_jlv.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";var H=0,J=f(function(i,a,t,o,p){const g=f(function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}},"getRelationType");a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=P().x(function(e){return e.x}).y(function(e){return e.y}).curve(R),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let m,h;const x=a.points.length;let b=_.calcLabelPosition(a.points);m=b.x,h=b.y;let y,w,k,v;if(x%2!==0&&x>1){let e=_.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=_.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);u.debug("cardinality_1_point "+JSON.stringify(e)),u.debug("cardinality_2_point "+JSON.stringify(d)),y=e.x,w=e.y,k=d.x,v=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",m).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}u.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",y).attr("y",w).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",k).attr("y",v).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},"drawEdge"),O=f(function(i,a,t,o){u.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=A(a);const m=c.append("tspan").text(r).attr("class","title");n||m.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,y;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){C(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){y=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){C(d,l,n,t),n=!1})}const w=s.node().getBBox();var k=" ";a.cssClasses.length>0&&(k=k+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",w.width+2*t.padding).attr("height",w.height+t.padding+.5*t.dividerMargin).attr("class",k).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),y&&y.attr("x2",e),g.width=e,g.height=w.height+t.padding+.5*t.dividerMargin,g},"drawClass"),A=f(function(i){let a=i.id;return i.type&&(a+="<"+X(i.type)+">"),a},"getClassTitleString"),Z=f(function(i,a,t,o){u.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(` `);n.forEach(function(x){u.debug(`Adding line: ${x}`),c.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const r=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",r.width+2*t.padding).attr("height",r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach(function(x){x.setAttribute("x",(h-x.getBBox().width)/2)}),g.width=h,g.height=r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,g},"drawNote"),C=f(function(i,a,t,o){const{displayText:p,cssStyle:g}=a.getDisplayDetails(),s=i.append("tspan").attr("x",o.padding).text(p);g!==""&&s.attr("style",a.cssStyle),t||s.attr("dy",o.textHeight)},"addTspan"),M={getClassTitleString:A,drawClass:O,drawEdge:J,drawNote:Z},L={},E=20,T=f(function(i){const a=Object.entries(L).find(t=>t[1].label===i);if(a)return a[0]},"getGraphId"),F=f(function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).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"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).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"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).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"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).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"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).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"),i.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 18,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),U=f(function(i,a,t,o){const p=S().class;L={},u.info("Rendering diagram "+i);const g=S().securityLevel;let s;g==="sandbox"&&(s=B("#i"+a));const c=g==="sandbox"?B(s.nodes()[0].contentDocument.body):B("body"),n=c.select(`[id='${a}']`);F(n);const r=new Y({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const m=o.db.getClasses(),h=[...m.keys()];for(const e of h){const d=m.get(e),l=M.drawClass(n,d,p,o);L[l.id]=l,r.setNode(l.id,l),u.info("Org height: "+l.height)}o.db.getRelations().forEach(function(e){u.info("tjoho"+T(e.id1)+T(e.id2)+JSON.stringify(e)),r.setEdge(T(e.id1),T(e.id2),{relation:e},e.title||"DEFAULT")}),o.db.getNotes().forEach(function(e){u.debug(`Adding note: ${JSON.stringify(e)}`);const d=M.drawNote(n,e,p,o);L[d.id]=d,r.setNode(d.id,d),e.class&&m.has(e.class)&&r.setEdge(e.id,T(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),$(r),r.nodes().forEach(function(e){e!==void 0&&r.node(e)!==void 0&&(u.debug("Node "+e+": "+JSON.stringify(r.node(e))),c.select("#"+(o.db.lookUpDomId(e)||e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))}),r.edges().forEach(function(e){e!==void 0&&r.edge(e)!==void 0&&(u.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),M.drawEdge(n,r.edge(e),r.edge(e).relation,p,o))});const y=n.node().getBBox(),w=y.width+E*2,k=y.height+E*2;W(n,k,w,p.useMaxWidth);const v=`${y.x-E} ${y.y-E} ${w} ${k}`;u.debug(`viewBox ${v}`),n.attr("viewBox",v)},"draw"),z={draw:U},ot={parser:G,db:N,renderer:z,styles:I,init:f(i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,N.clear()},"init")};export{ot as diagram}; diff --git a/pr-preview/pr-419/assets/classDiagram-v2-FI7KE7WJ-BJW7jP0G.js b/pr-preview/pr-419/assets/classDiagram-v2-FI7KE7WJ-0LFbaZkA.js similarity index 96% rename from pr-preview/pr-419/assets/classDiagram-v2-FI7KE7WJ-BJW7jP0G.js rename to pr-preview/pr-419/assets/classDiagram-v2-FI7KE7WJ-0LFbaZkA.js index a608772b0..16877480b 100644 --- a/pr-preview/pr-419/assets/classDiagram-v2-FI7KE7WJ-BJW7jP0G.js +++ b/pr-preview/pr-419/assets/classDiagram-v2-FI7KE7WJ-0LFbaZkA.js @@ -1,2 +1,2 @@ -var ct=Object.defineProperty,dt=Object.defineProperties;var ft=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var ut=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable;var W=(e,t,i)=>t in e?ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,B=(e,t)=>{for(var i in t||(t={}))ut.call(t,i)&&W(e,i,t[i]);if(z)for(var i of z(t))ht.call(t,i)&&W(e,i,t[i]);return e},q=(e,t)=>dt(e,ft(t));var C=(e,t,i)=>new Promise((l,n)=>{var a=o=>{try{f(i.next(o))}catch(h){n(h)}},r=o=>{try{f(i.throw(o))}catch(h){n(h)}},f=o=>o.done?l(o.value):Promise.resolve(o.value).then(a,r);f((i=i.apply(e,t)).next())});import{m as gt,c as wt,i as yt,a as bt,p as mt}from"./chunk-UGV5ZQQN-DIz6YliH.js";import{c as pt,a as V,s as vt}from"./chunk-BAVOGKFW-DyZopqvA.js";import{c as xt,u as St,s as Nt,i as Et,p as j,a as K,b as A}from"./chunk-YWFND7JV-BUZzWDIH.js";import{_ as g,l as s,d as m,j as D,u as Ct,aa as Tt,ab as Q,ac as U,ad as Y,v as kt,e as Z,ae as G,A as R,D as Dt}from"./Using existing ones-1ACZX-0W.js";import{G as I}from"./graph-BbauKfQB.js";import{l as Xt}from"./layout-CpgFbA5F.js";import{w as S}from"./json-DoIU1IdZ.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";import"./clone-qL6R6e7B.js";var u={},x={},tt={},Bt=g(()=>{x={},tt={},u={}},"clear"),_=g((e,t)=>(s.trace("In isDescendant",t," ",e," = ",x[t].includes(e)),!!x[t].includes(e)),"isDescendant"),Lt=g((e,t)=>(s.info("Descendants of ",t," is ",x[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:x[t]?x[t].includes(e.v)||_(e.v,t)||_(e.w,t)||x[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),"edgeInCluster"),et=g((e,t,i,l)=>{s.warn("Copying children of ",e,"root",l,"data",t.node(e),l);const n=t.children(e)||[];e!==l&&n.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",n),n.forEach(a=>{if(t.children(a).length>0)et(a,t,i,l);else{const r=t.node(a);s.info("cp ",a," to ",l," with parent ",e),i.setNode(a,r),l!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),i.setParent(a,t.parent(a))),e!==l&&a!==e?(s.debug("Setting parent",a,e),i.setParent(a,e)):(s.info("In copy ",e,"root",l,"data",t.node(e),l),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==l,"node!==clusterId",a!==e));const f=t.edges(a);s.debug("Copying Edges",f),f.forEach(o=>{s.info("Edge",o);const h=t.edge(o.v,o.w,o.name);s.info("Edge data",h,l);try{Lt(o,l)?(s.info("Copying as ",o.v,o.w,h,o.name),i.setEdge(o.v,o.w,h,o.name),s.info("newGraph edges ",i.edges(),i.edge(i.edges()[0]))):s.info("Skipping copy of edge ",o.v,"-->",o.w," rootId: ",l," clusterId:",e)}catch(b){s.error(b)}})}s.debug("Removing node",a),t.removeNode(a)})},"copy"),it=g((e,t)=>{const i=t.children(e);let l=[...i];for(const n of i)tt[n]=e,l=[...l,...it(n,t)];return l},"extractDescendants"),X=g((e,t)=>{s.trace("Searching",e);const i=t.children(e);if(s.trace("Searching children of id ",e,i),i.length<1)return s.trace("This is a valid node",e),e;for(const l of i){const n=X(l,t);if(n)return s.trace("Found replacement for",e," => ",n),n}},"findNonClusterChild"),L=g(e=>!u[e]||!u[e].externalConnections?e:u[e]?u[e].id:e,"getAnchorId"),Rt=g((e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(i){e.children(i).length>0&&(s.warn("Cluster identified",i," Replacement id in edges: ",X(i,e)),x[i]=it(i,e),u[i]={id:X(i,e),clusterData:e.node(i)})}),e.nodes().forEach(function(i){const l=e.children(i),n=e.edges();l.length>0?(s.debug("Cluster identified",i,x),n.forEach(a=>{if(a.v!==i&&a.w!==i){const r=_(a.v,i),f=_(a.w,i);r^f&&(s.warn("Edge: ",a," leaves cluster ",i),s.warn("Descendants of XXX ",i,": ",x[i]),u[i].externalConnections=!0)}})):s.debug("Not a cluster ",i,x)});for(let i of Object.keys(u)){const l=u[i].id,n=e.parent(l);n!==i&&u[n]&&!u[n].externalConnections&&(u[i].id=n)}e.edges().forEach(function(i){const l=e.edge(i);s.warn("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(i)),s.warn("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(e.edge(i)));let n=i.v,a=i.w;if(s.warn("Fix XXX",u,"ids:",i.v,i.w,"Translating: ",u[i.v]," --- ",u[i.w]),u[i.v]&&u[i.w]&&u[i.v]===u[i.w]){s.warn("Fixing and trixing link to self - removing XXX",i.v,i.w,i.name),s.warn("Fixing and trixing - removing XXX",i.v,i.w,i.name),n=L(i.v),a=L(i.w),e.removeEdge(i.v,i.w,i.name);const r=i.w+"---"+i.v;e.setNode(r,{domId:r,id:r,labelStyle:"",labelText:l.label,padding:0,shape:"labelRect",style:""});const f=structuredClone(l),o=structuredClone(l);f.label="",f.arrowTypeEnd="none",o.label="",f.fromCluster=i.v,o.toCluster=i.v,e.setEdge(n,r,f,i.name+"-cyclic-special"),e.setEdge(r,a,o,i.name+"-cyclic-special")}else if(u[i.v]||u[i.w]){if(s.warn("Fixing and trixing - removing XXX",i.v,i.w,i.name),n=L(i.v),a=L(i.w),e.removeEdge(i.v,i.w,i.name),n!==i.v){const r=e.parent(n);u[r].externalConnections=!0,l.fromCluster=i.v}if(a!==i.w){const r=e.parent(a);u[r].externalConnections=!0,l.toCluster=i.w}s.warn("Fix Replacing with XXX",n,a,i.name),e.setEdge(n,a,l,i.name)}}),s.warn("Adjusted Graph",S(e)),nt(e,0),s.trace(u)},"adjustClustersAndEdges"),nt=g((e,t)=>{var n,a;if(s.warn("extractor - ",t,S(e),e.children("D")),t>10){s.error("Bailing out");return}let i=e.nodes(),l=!1;for(const r of i){const f=e.children(r);l=l||f.length>0}if(!l){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",i,t);for(const r of i)if(s.debug("Extracting node",r,u,u[r]&&!u[r].externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),!u[r])s.debug("Not a cluster",r,t);else if(!u[r].externalConnections&&e.children(r)&&e.children(r).length>0){s.warn("Cluster without external connections, without a parent and with children",r,t);let o=e.graph().rankdir==="TB"?"LR":"TB";(a=(n=u[r])==null?void 0:n.clusterData)!=null&&a.dir&&(o=u[r].clusterData.dir,s.warn("Fixing dir",u[r].clusterData.dir,o));const h=new I({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",S(e)),et(r,e,h,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:u[r].clusterData,labelText:u[r].labelText,graph:h}),s.warn("New graph after copy node: (",r,")",S(h)),s.debug("Old graph after copy",S(e))}else s.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!u[r].externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),s.debug(u);i=e.nodes(),s.warn("New list of nodes",i);for(const r of i){const f=e.node(r);s.warn(" Now next level",r,f),f.clusterNode&&nt(f.graph,t+1)}},"extractor"),st=g((e,t)=>{if(t.length===0)return[];let i=Object.assign(t);return t.forEach(l=>{const n=e.children(l),a=st(e,n);i=[...i,...a]}),i},"sorter"),_t=g(e=>st(e,e.children()),"sortNodesByHierarchy"),At=g((e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const i=m(),l=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),n=l.insert("rect",":first-child"),a=R(i.flowchart.htmlLabels),r=l.insert("g").attr("class","cluster-label"),f=t.labelType==="markdown"?Dt(r,t.labelText,{style:t.labelStyle,useHtmlLabels:a},i):r.node().appendChild(K(t.labelText,t.labelStyle,void 0,!0));let o=f.getBBox();if(R(i.flowchart.htmlLabels)){const d=f.children[0],c=D(f);o=d.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}const h=0*t.padding,b=h/2,y=t.width<=o.width+h?o.width+h:t.width;t.width<=o.width+h?t.diff=(o.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-y/2).attr("y",t.y-t.height/2-b).attr("width",y).attr("height",t.height+h);const{subGraphTitleTopMargin:p}=G(i);a?r.attr("transform",`translate(${t.x-o.width/2}, ${t.y-t.height/2+p})`):r.attr("transform",`translate(${t.x}, ${t.y-t.height/2+p})`);const w=n.node().getBBox();return t.width=w.width,t.height=w.height,t.intersect=function(d){return A(t,d)},l},"rect"),Jt=g((e,t)=>{const i=e.insert("g").attr("class","note-cluster").attr("id",t.id),l=i.insert("rect",":first-child"),n=0*t.padding,a=n/2;l.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+n).attr("height",t.height+n).attr("fill","none");const r=l.node().getBBox();return t.width=r.width,t.height=r.height,t.intersect=function(f){return A(t,f)},i},"noteGroup"),Ot=g((e,t)=>{const i=m(),l=e.insert("g").attr("class",t.classes).attr("id",t.id),n=l.insert("rect",":first-child"),a=l.insert("g").attr("class","cluster-label"),r=l.append("rect"),f=a.node().appendChild(K(t.labelText,t.labelStyle,void 0,!0));let o=f.getBBox();if(R(i.flowchart.htmlLabels)){const d=f.children[0],c=D(f);o=d.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}o=f.getBBox();const h=0*t.padding,b=h/2,y=t.width<=o.width+t.padding?o.width+t.padding:t.width;t.width<=o.width+t.padding?t.diff=(o.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,n.attr("class","outer").attr("x",t.x-y/2-b).attr("y",t.y-t.height/2-b).attr("width",y+h).attr("height",t.height+h),r.attr("class","inner").attr("x",t.x-y/2-b).attr("y",t.y-t.height/2-b+o.height-1).attr("width",y+h).attr("height",t.height+h-o.height-3);const{subGraphTitleTopMargin:p}=G(i);a.attr("transform",`translate(${t.x-o.width/2}, ${t.y-t.height/2-t.padding/3+(R(i.flowchart.htmlLabels)?5:3)+p})`);const w=n.node().getBBox();return t.height=w.height,t.intersect=function(d){return A(t,d)},l},"roundedWithTitle"),Pt=g((e,t)=>{const i=e.insert("g").attr("class",t.classes).attr("id",t.id),l=i.insert("rect",":first-child"),n=0*t.padding,a=n/2;l.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+n).attr("height",t.height+n);const r=l.node().getBBox();return t.width=r.width,t.height=r.height,t.diff=-t.padding/2,t.intersect=function(f){return A(t,f)},i},"divider"),Gt={rect:At,roundedWithTitle:Ot,noteGroup:Jt,divider:Pt},at={},Mt=g((e,t)=>{s.trace("Inserting cluster");const i=t.shape||"rect";at[t.id]=Gt[i](e,t)},"insertCluster"),Ft=g(()=>{at={}},"clear"),rt=g((e,t,i,l,n,a)=>C(void 0,null,function*(){s.info("Graph in recursive render: XXX",S(t),n);const r=t.graph().rankdir;s.trace("Dir in recursive render - dir:",r);const f=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const o=f.insert("g").attr("class","clusters"),h=f.insert("g").attr("class","edgePaths"),b=f.insert("g").attr("class","edgeLabels"),y=f.insert("g").attr("class","nodes");yield Promise.all(t.nodes().map(function(d){return C(this,null,function*(){const c=t.node(d);if(n!==void 0){const v=JSON.parse(JSON.stringify(n.clusterData));s.info("Setting data for cluster XXX (",d,") ",v,n),t.setNode(n.id,v),t.parent(d)||(s.trace("Setting parent",d,n.id),t.setParent(d,n.id,v))}if(s.info("(Insert) Node XXX"+d+": "+JSON.stringify(t.node(d))),c!=null&&c.clusterNode){s.info("Cluster identified",d,c.width,t.node(d));const{ranksep:v,nodesep:N}=t.graph();c.graph.setGraph(q(B({},c.graph.graph()),{ranksep:v,nodesep:N}));const T=yield rt(y,c.graph,i,l,t.node(d),a),E=T.elem;St(c,E),c.diff=T.diff||0,s.info("Node bounds (abc123)",d,c,c.width,c.x,c.y),Nt(E,c),s.warn("Recursive render complete ",E,c)}else t.children(d).length>0?(s.info("Cluster - the non recursive path XXX",d,c.id,c,t),s.info(X(c.id,t)),u[c.id]={id:X(c.id,t),node:c}):(s.info("Node - the non recursive path",d,c.id,c),yield Et(y,t.node(d),r))})})),t.edges().forEach(function(d){return C(this,null,function*(){const c=t.edge(d.v,d.w,d.name);s.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(d)),s.info("Edge "+d.v+" -> "+d.w+": ",d," ",JSON.stringify(t.edge(d))),s.info("Fix",u,"ids:",d.v,d.w,"Translating: ",u[d.v],u[d.w]),yield yt(b,c)})}),t.edges().forEach(function(d){s.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(d))}),s.info("Graph before layout:",JSON.stringify(S(t))),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),Xt(t),s.info("Graph after layout:",JSON.stringify(S(t)));let p=0;const{subGraphTitleTotalMargin:w}=G(a);return _t(t).forEach(function(d){const c=t.node(d);s.info("Position "+d+": "+JSON.stringify(t.node(d))),s.info("Position "+d+": ("+c.x,","+c.y,") width: ",c.width," height: ",c.height),c!=null&&c.clusterNode?(c.y+=w,j(c)):t.children(d).length>0?(c.height+=w,Mt(o,c),u[c.id].node=c):(c.y+=w/2,j(c))}),t.edges().forEach(function(d){const c=t.edge(d);s.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(c),c),c.points.forEach(N=>N.y+=w/2);const v=bt(h,d,c,u,i,t,l);mt(c,v)}),t.nodes().forEach(function(d){const c=t.node(d);s.info(d,c.type,c.diff),c.type==="group"&&(p=c.diff)}),{elem:f,diff:p}}),"recursiveRender"),$t=g((e,t,i,l,n)=>C(void 0,null,function*(){gt(e,i,l,n),xt(),wt(),Ft(),Bt(),s.warn("Graph at first:",JSON.stringify(S(t))),Rt(t),s.warn("Graph after:",JSON.stringify(S(t)));const a=m();yield rt(e,t,l,n,void 0,a)}),"render"),M=g(e=>Z.sanitizeText(e,m()),"sanitizeText"),O={dividerMargin:10,padding:5,textHeight:10,curve:void 0},Ht=g(function(e,t,i,l){s.info("keys:",[...e.keys()]),s.info(e),e.forEach(function(n){var f,o,h;const r={shape:"rect",id:n.id,domId:n.domId,labelText:M(n.id),labelStyle:"",style:"fill: none; stroke: black",padding:(h=(f=m().flowchart)==null?void 0:f.padding)!=null?h:(o=m().class)==null?void 0:o.padding};t.setNode(n.id,r),lt(n.classes,t,i,l,n.id),s.info("setNode",r)})},"addNamespaces"),lt=g(function(e,t,i,l,n){s.info("keys:",[...e.keys()]),s.info(e),[...e.values()].filter(a=>a.parent===n).forEach(function(a){var p,w,d,c;const r=a.cssClasses.join(" "),f=Q(a.styles),o=(p=a.label)!=null?p:a.id,h=0,y={labelStyle:f.labelStyle,shape:"class_box",labelText:M(o),classData:a,rx:h,ry:h,class:r,style:f.style,id:a.id,domId:a.domId,tooltip:l.db.getTooltip(a.id,n)||"",haveCallback:a.haveCallback,link:a.link,width:a.type==="group"?500:void 0,type:a.type,padding:(c=(w=m().flowchart)==null?void 0:w.padding)!=null?c:(d=m().class)==null?void 0:d.padding};t.setNode(a.id,y),n&&t.setParent(a.id,n),s.info("setNode",y)})},"addClasses"),zt=g(function(e,t,i,l){s.info(e),e.forEach(function(n,a){var c,v,N;const r=n,f="",o={labelStyle:"",style:""},h=r.text,b=0,p={labelStyle:o.labelStyle,shape:"note",labelText:M(h),noteData:r,rx:b,ry:b,class:f,style:o.style,id:r.id,domId:r.id,tooltip:"",type:"note",padding:(N=(c=m().flowchart)==null?void 0:c.padding)!=null?N:(v=m().class)==null?void 0:v.padding};if(t.setNode(r.id,p),s.info("setNode",p),!r.class||!l.has(r.class))return;const w=i+a,d={id:`edgeNote${w}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:U(O.curve,Y)};t.setEdge(r.id,r.class,d,w)})},"addNotes"),Wt=g(function(e,t){const i=m().flowchart;let l=0;e.forEach(function(n){var r,f;l++;const a={classes:"relation",pattern:n.relation.lineType==1?"dashed":"solid",id:kt(n.id1,n.id2,{prefix:"id",counter:l}),arrowhead:n.type==="arrow_open"?"none":"normal",startLabelRight:n.relationTitle1==="none"?"":n.relationTitle1,endLabelLeft:n.relationTitle2==="none"?"":n.relationTitle2,arrowTypeStart:P(n.relation.type1),arrowTypeEnd:P(n.relation.type2),style:"fill:none",labelStyle:"",curve:U(i==null?void 0:i.curve,Y)};if(s.info(a,n),n.style!==void 0){const o=Q(n.style);a.style=o.style,a.labelStyle=o.labelStyle}n.text=n.title,n.text===void 0?n.style!==void 0&&(a.arrowheadStyle="fill: #333"):(a.arrowheadStyle="fill: #333",a.labelpos="c",((f=(r=m().flowchart)==null?void 0:r.htmlLabels)!=null?f:m().htmlLabels)?(a.labelType="html",a.label=''+n.text+""):(a.labelType="text",a.label=n.text.replace(Z.lineBreakRegex,` +var ct=Object.defineProperty,dt=Object.defineProperties;var ft=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var ut=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable;var W=(e,t,i)=>t in e?ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,B=(e,t)=>{for(var i in t||(t={}))ut.call(t,i)&&W(e,i,t[i]);if(z)for(var i of z(t))ht.call(t,i)&&W(e,i,t[i]);return e},q=(e,t)=>dt(e,ft(t));var C=(e,t,i)=>new Promise((l,n)=>{var a=o=>{try{f(i.next(o))}catch(h){n(h)}},r=o=>{try{f(i.throw(o))}catch(h){n(h)}},f=o=>o.done?l(o.value):Promise.resolve(o.value).then(a,r);f((i=i.apply(e,t)).next())});import{m as gt,c as wt,i as yt,a as bt,p as mt}from"./chunk-UGV5ZQQN-BBwAwnj9.js";import{c as pt,a as V,s as vt}from"./chunk-BAVOGKFW-DXM1shxP.js";import{c as xt,u as St,s as Nt,i as Et,p as j,a as K,b as A}from"./chunk-YWFND7JV-Df64Lrc0.js";import{_ as g,l as s,d as m,j as D,u as Ct,aa as Tt,ab as Q,ac as U,ad as Y,v as kt,e as Z,ae as G,A as R,D as Dt}from"./Using existing ones-DVOwGlbd.js";import{G as I}from"./graph-wuI2A7_P.js";import{l as Xt}from"./layout-CNdX_jlv.js";import{w as S}from"./json-BhmxDxce.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";import"./clone-Bp7QSEXO.js";var u={},x={},tt={},Bt=g(()=>{x={},tt={},u={}},"clear"),_=g((e,t)=>(s.trace("In isDescendant",t," ",e," = ",x[t].includes(e)),!!x[t].includes(e)),"isDescendant"),Lt=g((e,t)=>(s.info("Descendants of ",t," is ",x[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:x[t]?x[t].includes(e.v)||_(e.v,t)||_(e.w,t)||x[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),"edgeInCluster"),et=g((e,t,i,l)=>{s.warn("Copying children of ",e,"root",l,"data",t.node(e),l);const n=t.children(e)||[];e!==l&&n.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",n),n.forEach(a=>{if(t.children(a).length>0)et(a,t,i,l);else{const r=t.node(a);s.info("cp ",a," to ",l," with parent ",e),i.setNode(a,r),l!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),i.setParent(a,t.parent(a))),e!==l&&a!==e?(s.debug("Setting parent",a,e),i.setParent(a,e)):(s.info("In copy ",e,"root",l,"data",t.node(e),l),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==l,"node!==clusterId",a!==e));const f=t.edges(a);s.debug("Copying Edges",f),f.forEach(o=>{s.info("Edge",o);const h=t.edge(o.v,o.w,o.name);s.info("Edge data",h,l);try{Lt(o,l)?(s.info("Copying as ",o.v,o.w,h,o.name),i.setEdge(o.v,o.w,h,o.name),s.info("newGraph edges ",i.edges(),i.edge(i.edges()[0]))):s.info("Skipping copy of edge ",o.v,"-->",o.w," rootId: ",l," clusterId:",e)}catch(b){s.error(b)}})}s.debug("Removing node",a),t.removeNode(a)})},"copy"),it=g((e,t)=>{const i=t.children(e);let l=[...i];for(const n of i)tt[n]=e,l=[...l,...it(n,t)];return l},"extractDescendants"),X=g((e,t)=>{s.trace("Searching",e);const i=t.children(e);if(s.trace("Searching children of id ",e,i),i.length<1)return s.trace("This is a valid node",e),e;for(const l of i){const n=X(l,t);if(n)return s.trace("Found replacement for",e," => ",n),n}},"findNonClusterChild"),L=g(e=>!u[e]||!u[e].externalConnections?e:u[e]?u[e].id:e,"getAnchorId"),Rt=g((e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(i){e.children(i).length>0&&(s.warn("Cluster identified",i," Replacement id in edges: ",X(i,e)),x[i]=it(i,e),u[i]={id:X(i,e),clusterData:e.node(i)})}),e.nodes().forEach(function(i){const l=e.children(i),n=e.edges();l.length>0?(s.debug("Cluster identified",i,x),n.forEach(a=>{if(a.v!==i&&a.w!==i){const r=_(a.v,i),f=_(a.w,i);r^f&&(s.warn("Edge: ",a," leaves cluster ",i),s.warn("Descendants of XXX ",i,": ",x[i]),u[i].externalConnections=!0)}})):s.debug("Not a cluster ",i,x)});for(let i of Object.keys(u)){const l=u[i].id,n=e.parent(l);n!==i&&u[n]&&!u[n].externalConnections&&(u[i].id=n)}e.edges().forEach(function(i){const l=e.edge(i);s.warn("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(i)),s.warn("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(e.edge(i)));let n=i.v,a=i.w;if(s.warn("Fix XXX",u,"ids:",i.v,i.w,"Translating: ",u[i.v]," --- ",u[i.w]),u[i.v]&&u[i.w]&&u[i.v]===u[i.w]){s.warn("Fixing and trixing link to self - removing XXX",i.v,i.w,i.name),s.warn("Fixing and trixing - removing XXX",i.v,i.w,i.name),n=L(i.v),a=L(i.w),e.removeEdge(i.v,i.w,i.name);const r=i.w+"---"+i.v;e.setNode(r,{domId:r,id:r,labelStyle:"",labelText:l.label,padding:0,shape:"labelRect",style:""});const f=structuredClone(l),o=structuredClone(l);f.label="",f.arrowTypeEnd="none",o.label="",f.fromCluster=i.v,o.toCluster=i.v,e.setEdge(n,r,f,i.name+"-cyclic-special"),e.setEdge(r,a,o,i.name+"-cyclic-special")}else if(u[i.v]||u[i.w]){if(s.warn("Fixing and trixing - removing XXX",i.v,i.w,i.name),n=L(i.v),a=L(i.w),e.removeEdge(i.v,i.w,i.name),n!==i.v){const r=e.parent(n);u[r].externalConnections=!0,l.fromCluster=i.v}if(a!==i.w){const r=e.parent(a);u[r].externalConnections=!0,l.toCluster=i.w}s.warn("Fix Replacing with XXX",n,a,i.name),e.setEdge(n,a,l,i.name)}}),s.warn("Adjusted Graph",S(e)),nt(e,0),s.trace(u)},"adjustClustersAndEdges"),nt=g((e,t)=>{var n,a;if(s.warn("extractor - ",t,S(e),e.children("D")),t>10){s.error("Bailing out");return}let i=e.nodes(),l=!1;for(const r of i){const f=e.children(r);l=l||f.length>0}if(!l){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",i,t);for(const r of i)if(s.debug("Extracting node",r,u,u[r]&&!u[r].externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),!u[r])s.debug("Not a cluster",r,t);else if(!u[r].externalConnections&&e.children(r)&&e.children(r).length>0){s.warn("Cluster without external connections, without a parent and with children",r,t);let o=e.graph().rankdir==="TB"?"LR":"TB";(a=(n=u[r])==null?void 0:n.clusterData)!=null&&a.dir&&(o=u[r].clusterData.dir,s.warn("Fixing dir",u[r].clusterData.dir,o));const h=new I({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",S(e)),et(r,e,h,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:u[r].clusterData,labelText:u[r].labelText,graph:h}),s.warn("New graph after copy node: (",r,")",S(h)),s.debug("Old graph after copy",S(e))}else s.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!u[r].externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),s.debug(u);i=e.nodes(),s.warn("New list of nodes",i);for(const r of i){const f=e.node(r);s.warn(" Now next level",r,f),f.clusterNode&&nt(f.graph,t+1)}},"extractor"),st=g((e,t)=>{if(t.length===0)return[];let i=Object.assign(t);return t.forEach(l=>{const n=e.children(l),a=st(e,n);i=[...i,...a]}),i},"sorter"),_t=g(e=>st(e,e.children()),"sortNodesByHierarchy"),At=g((e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const i=m(),l=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),n=l.insert("rect",":first-child"),a=R(i.flowchart.htmlLabels),r=l.insert("g").attr("class","cluster-label"),f=t.labelType==="markdown"?Dt(r,t.labelText,{style:t.labelStyle,useHtmlLabels:a},i):r.node().appendChild(K(t.labelText,t.labelStyle,void 0,!0));let o=f.getBBox();if(R(i.flowchart.htmlLabels)){const d=f.children[0],c=D(f);o=d.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}const h=0*t.padding,b=h/2,y=t.width<=o.width+h?o.width+h:t.width;t.width<=o.width+h?t.diff=(o.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-y/2).attr("y",t.y-t.height/2-b).attr("width",y).attr("height",t.height+h);const{subGraphTitleTopMargin:p}=G(i);a?r.attr("transform",`translate(${t.x-o.width/2}, ${t.y-t.height/2+p})`):r.attr("transform",`translate(${t.x}, ${t.y-t.height/2+p})`);const w=n.node().getBBox();return t.width=w.width,t.height=w.height,t.intersect=function(d){return A(t,d)},l},"rect"),Jt=g((e,t)=>{const i=e.insert("g").attr("class","note-cluster").attr("id",t.id),l=i.insert("rect",":first-child"),n=0*t.padding,a=n/2;l.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+n).attr("height",t.height+n).attr("fill","none");const r=l.node().getBBox();return t.width=r.width,t.height=r.height,t.intersect=function(f){return A(t,f)},i},"noteGroup"),Ot=g((e,t)=>{const i=m(),l=e.insert("g").attr("class",t.classes).attr("id",t.id),n=l.insert("rect",":first-child"),a=l.insert("g").attr("class","cluster-label"),r=l.append("rect"),f=a.node().appendChild(K(t.labelText,t.labelStyle,void 0,!0));let o=f.getBBox();if(R(i.flowchart.htmlLabels)){const d=f.children[0],c=D(f);o=d.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}o=f.getBBox();const h=0*t.padding,b=h/2,y=t.width<=o.width+t.padding?o.width+t.padding:t.width;t.width<=o.width+t.padding?t.diff=(o.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,n.attr("class","outer").attr("x",t.x-y/2-b).attr("y",t.y-t.height/2-b).attr("width",y+h).attr("height",t.height+h),r.attr("class","inner").attr("x",t.x-y/2-b).attr("y",t.y-t.height/2-b+o.height-1).attr("width",y+h).attr("height",t.height+h-o.height-3);const{subGraphTitleTopMargin:p}=G(i);a.attr("transform",`translate(${t.x-o.width/2}, ${t.y-t.height/2-t.padding/3+(R(i.flowchart.htmlLabels)?5:3)+p})`);const w=n.node().getBBox();return t.height=w.height,t.intersect=function(d){return A(t,d)},l},"roundedWithTitle"),Pt=g((e,t)=>{const i=e.insert("g").attr("class",t.classes).attr("id",t.id),l=i.insert("rect",":first-child"),n=0*t.padding,a=n/2;l.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+n).attr("height",t.height+n);const r=l.node().getBBox();return t.width=r.width,t.height=r.height,t.diff=-t.padding/2,t.intersect=function(f){return A(t,f)},i},"divider"),Gt={rect:At,roundedWithTitle:Ot,noteGroup:Jt,divider:Pt},at={},Mt=g((e,t)=>{s.trace("Inserting cluster");const i=t.shape||"rect";at[t.id]=Gt[i](e,t)},"insertCluster"),Ft=g(()=>{at={}},"clear"),rt=g((e,t,i,l,n,a)=>C(void 0,null,function*(){s.info("Graph in recursive render: XXX",S(t),n);const r=t.graph().rankdir;s.trace("Dir in recursive render - dir:",r);const f=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const o=f.insert("g").attr("class","clusters"),h=f.insert("g").attr("class","edgePaths"),b=f.insert("g").attr("class","edgeLabels"),y=f.insert("g").attr("class","nodes");yield Promise.all(t.nodes().map(function(d){return C(this,null,function*(){const c=t.node(d);if(n!==void 0){const v=JSON.parse(JSON.stringify(n.clusterData));s.info("Setting data for cluster XXX (",d,") ",v,n),t.setNode(n.id,v),t.parent(d)||(s.trace("Setting parent",d,n.id),t.setParent(d,n.id,v))}if(s.info("(Insert) Node XXX"+d+": "+JSON.stringify(t.node(d))),c!=null&&c.clusterNode){s.info("Cluster identified",d,c.width,t.node(d));const{ranksep:v,nodesep:N}=t.graph();c.graph.setGraph(q(B({},c.graph.graph()),{ranksep:v,nodesep:N}));const T=yield rt(y,c.graph,i,l,t.node(d),a),E=T.elem;St(c,E),c.diff=T.diff||0,s.info("Node bounds (abc123)",d,c,c.width,c.x,c.y),Nt(E,c),s.warn("Recursive render complete ",E,c)}else t.children(d).length>0?(s.info("Cluster - the non recursive path XXX",d,c.id,c,t),s.info(X(c.id,t)),u[c.id]={id:X(c.id,t),node:c}):(s.info("Node - the non recursive path",d,c.id,c),yield Et(y,t.node(d),r))})})),t.edges().forEach(function(d){return C(this,null,function*(){const c=t.edge(d.v,d.w,d.name);s.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(d)),s.info("Edge "+d.v+" -> "+d.w+": ",d," ",JSON.stringify(t.edge(d))),s.info("Fix",u,"ids:",d.v,d.w,"Translating: ",u[d.v],u[d.w]),yield yt(b,c)})}),t.edges().forEach(function(d){s.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(d))}),s.info("Graph before layout:",JSON.stringify(S(t))),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),Xt(t),s.info("Graph after layout:",JSON.stringify(S(t)));let p=0;const{subGraphTitleTotalMargin:w}=G(a);return _t(t).forEach(function(d){const c=t.node(d);s.info("Position "+d+": "+JSON.stringify(t.node(d))),s.info("Position "+d+": ("+c.x,","+c.y,") width: ",c.width," height: ",c.height),c!=null&&c.clusterNode?(c.y+=w,j(c)):t.children(d).length>0?(c.height+=w,Mt(o,c),u[c.id].node=c):(c.y+=w/2,j(c))}),t.edges().forEach(function(d){const c=t.edge(d);s.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(c),c),c.points.forEach(N=>N.y+=w/2);const v=bt(h,d,c,u,i,t,l);mt(c,v)}),t.nodes().forEach(function(d){const c=t.node(d);s.info(d,c.type,c.diff),c.type==="group"&&(p=c.diff)}),{elem:f,diff:p}}),"recursiveRender"),$t=g((e,t,i,l,n)=>C(void 0,null,function*(){gt(e,i,l,n),xt(),wt(),Ft(),Bt(),s.warn("Graph at first:",JSON.stringify(S(t))),Rt(t),s.warn("Graph after:",JSON.stringify(S(t)));const a=m();yield rt(e,t,l,n,void 0,a)}),"render"),M=g(e=>Z.sanitizeText(e,m()),"sanitizeText"),O={dividerMargin:10,padding:5,textHeight:10,curve:void 0},Ht=g(function(e,t,i,l){s.info("keys:",[...e.keys()]),s.info(e),e.forEach(function(n){var f,o,h;const r={shape:"rect",id:n.id,domId:n.domId,labelText:M(n.id),labelStyle:"",style:"fill: none; stroke: black",padding:(h=(f=m().flowchart)==null?void 0:f.padding)!=null?h:(o=m().class)==null?void 0:o.padding};t.setNode(n.id,r),lt(n.classes,t,i,l,n.id),s.info("setNode",r)})},"addNamespaces"),lt=g(function(e,t,i,l,n){s.info("keys:",[...e.keys()]),s.info(e),[...e.values()].filter(a=>a.parent===n).forEach(function(a){var p,w,d,c;const r=a.cssClasses.join(" "),f=Q(a.styles),o=(p=a.label)!=null?p:a.id,h=0,y={labelStyle:f.labelStyle,shape:"class_box",labelText:M(o),classData:a,rx:h,ry:h,class:r,style:f.style,id:a.id,domId:a.domId,tooltip:l.db.getTooltip(a.id,n)||"",haveCallback:a.haveCallback,link:a.link,width:a.type==="group"?500:void 0,type:a.type,padding:(c=(w=m().flowchart)==null?void 0:w.padding)!=null?c:(d=m().class)==null?void 0:d.padding};t.setNode(a.id,y),n&&t.setParent(a.id,n),s.info("setNode",y)})},"addClasses"),zt=g(function(e,t,i,l){s.info(e),e.forEach(function(n,a){var c,v,N;const r=n,f="",o={labelStyle:"",style:""},h=r.text,b=0,p={labelStyle:o.labelStyle,shape:"note",labelText:M(h),noteData:r,rx:b,ry:b,class:f,style:o.style,id:r.id,domId:r.id,tooltip:"",type:"note",padding:(N=(c=m().flowchart)==null?void 0:c.padding)!=null?N:(v=m().class)==null?void 0:v.padding};if(t.setNode(r.id,p),s.info("setNode",p),!r.class||!l.has(r.class))return;const w=i+a,d={id:`edgeNote${w}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:U(O.curve,Y)};t.setEdge(r.id,r.class,d,w)})},"addNotes"),Wt=g(function(e,t){const i=m().flowchart;let l=0;e.forEach(function(n){var r,f;l++;const a={classes:"relation",pattern:n.relation.lineType==1?"dashed":"solid",id:kt(n.id1,n.id2,{prefix:"id",counter:l}),arrowhead:n.type==="arrow_open"?"none":"normal",startLabelRight:n.relationTitle1==="none"?"":n.relationTitle1,endLabelLeft:n.relationTitle2==="none"?"":n.relationTitle2,arrowTypeStart:P(n.relation.type1),arrowTypeEnd:P(n.relation.type2),style:"fill:none",labelStyle:"",curve:U(i==null?void 0:i.curve,Y)};if(s.info(a,n),n.style!==void 0){const o=Q(n.style);a.style=o.style,a.labelStyle=o.labelStyle}n.text=n.title,n.text===void 0?n.style!==void 0&&(a.arrowheadStyle="fill: #333"):(a.arrowheadStyle="fill: #333",a.labelpos="c",((f=(r=m().flowchart)==null?void 0:r.htmlLabels)!=null?f:m().htmlLabels)?(a.labelType="html",a.label=''+n.text+""):(a.labelType="text",a.label=n.text.replace(Z.lineBreakRegex,` `),n.style===void 0&&(a.style=a.style||"stroke: #333; stroke-width: 1.5px;fill:none"),a.labelStyle=a.labelStyle.replace("color:","fill:"))),t.setEdge(n.id1,n.id2,a,l)})},"addRelations"),qt=g(function(e){O=B(B({},O),e)},"setConf"),Vt=g(function(e,t,i,l){return C(this,null,function*(){var N,T,E,F;s.info("Drawing class - ",t);const n=(N=m().flowchart)!=null?N:m().class,a=m().securityLevel;s.info("config:",n);const r=(T=n==null?void 0:n.nodeSpacing)!=null?T:50,f=(E=n==null?void 0:n.rankSpacing)!=null?E:50,o=new I({multigraph:!0,compound:!0}).setGraph({rankdir:l.db.getDirection(),nodesep:r,ranksep:f,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),h=l.db.getNamespaces(),b=l.db.getClasses(),y=l.db.getRelations(),p=l.db.getNotes();s.info(y),Ht(h,o,t,l),lt(b,o,t,l),Wt(y,o),zt(p,o,y.length+1,b);let w;a==="sandbox"&&(w=D("#i"+t));const d=a==="sandbox"?D(w.nodes()[0].contentDocument.body):D("body"),c=d.select(`[id="${t}"]`),v=d.select("#"+t+" g");if(yield $t(v,o,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),Ct.insertTitle(c,"classTitleText",(F=n==null?void 0:n.titleTopMargin)!=null?F:5,l.db.getDiagramTitle()),Tt(o,c,n==null?void 0:n.diagramPadding,n==null?void 0:n.useMaxWidth),!(n!=null&&n.htmlLabels)){const $=a==="sandbox"?w.nodes()[0].contentDocument:document,ot=$.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const J of ot){const H=J.getBBox(),k=$.createElementNS("http://www.w3.org/2000/svg","rect");k.setAttribute("rx",0),k.setAttribute("ry",0),k.setAttribute("width",H.width),k.setAttribute("height",H.height),J.insertBefore(k,J.firstChild)}}})},"draw");function P(e){let t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}g(P,"getArrowMarker");var jt={setConf:qt,draw:Vt},he={parser:pt,db:V,renderer:jt,styles:vt,init:g(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,V.clear()},"init")};export{he as diagram}; diff --git a/pr-preview/pr-419/assets/clone-Bp7QSEXO.js b/pr-preview/pr-419/assets/clone-Bp7QSEXO.js new file mode 100644 index 000000000..24e27f09e --- /dev/null +++ b/pr-preview/pr-419/assets/clone-Bp7QSEXO.js @@ -0,0 +1 @@ +import{b as r}from"./_baseUniq-JfSCQjs8.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/pr-preview/pr-419/assets/clone-qL6R6e7B.js b/pr-preview/pr-419/assets/clone-qL6R6e7B.js deleted file mode 100644 index a5b1db89f..000000000 --- a/pr-preview/pr-419/assets/clone-qL6R6e7B.js +++ /dev/null @@ -1 +0,0 @@ -import{b as r}from"./_baseUniq-DLWEyx0q.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/pr-preview/pr-419/assets/dagre-P3YPLUS5-CeXFq1Wq.js b/pr-preview/pr-419/assets/dagre-P3YPLUS5-B2XW2uPk.js similarity index 96% rename from pr-preview/pr-419/assets/dagre-P3YPLUS5-CeXFq1Wq.js rename to pr-preview/pr-419/assets/dagre-P3YPLUS5-B2XW2uPk.js index 19c7c2738..d10760d00 100644 --- a/pr-preview/pr-419/assets/dagre-P3YPLUS5-CeXFq1Wq.js +++ b/pr-preview/pr-419/assets/dagre-P3YPLUS5-B2XW2uPk.js @@ -1,4 +1,4 @@ -var H=Object.defineProperty,q=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var B=(n,t,e)=>t in n?H(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,O=(n,t)=>{for(var e in t||(t={}))K.call(t,e)&&B(n,e,t[e]);if(k)for(var e of k(t))Q.call(t,e)&&B(n,e,t[e]);return n},A=(n,t)=>q(n,z(t));var b=(n,t,e)=>new Promise((c,d)=>{var a=o=>{try{u(e.next(o))}catch(w){d(w)}},r=o=>{try{u(e.throw(o))}catch(w){d(w)}},u=o=>o.done?c(o.value):Promise.resolve(o.value).then(a,r);u((e=e.apply(n,t)).next())});import{_ as X,am as U,an as V,ao as W,ap as Z,l as i,d as $,aq as I,ar as L,as as ee,ae as ne,at as J,au as te,av as se,aw as ie,ax as re}from"./Using existing ones-1ACZX-0W.js";import{G as R}from"./graph-BbauKfQB.js";import{l as oe}from"./layout-CpgFbA5F.js";import{w as p}from"./json-DoIU1IdZ.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";import"./clone-qL6R6e7B.js";var f=new Map,C=new Map,T=new Map,ce=X(()=>{C.clear(),T.clear(),f.clear()},"clear"),P=X((n,t)=>{const e=C.get(t)||[];return i.trace("In isDescendant",t," ",n," = ",e.includes(n)),e.includes(n)},"isDescendant"),ae=X((n,t)=>{const e=C.get(t)||[];return i.info("Descendants of ",t," is ",e),i.info("Edge is ",n),n.v===t||n.w===t?!1:e?e.includes(n.v)||P(n.v,t)||P(n.w,t)||e.includes(n.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),M=X((n,t,e,c)=>{i.warn("Copying children of ",n,"root",c,"data",t.node(n),c);const d=t.children(n)||[];n!==c&&d.push(n),i.warn("Copying (nodes) clusterId",n,"nodes",d),d.forEach(a=>{if(t.children(a).length>0)M(a,t,e,c);else{const r=t.node(a);i.info("cp ",a," to ",c," with parent ",n),e.setNode(a,r),c!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),e.setParent(a,t.parent(a))),n!==c&&a!==n?(i.debug("Setting parent",a,n),e.setParent(a,n)):(i.info("In copy ",n,"root",c,"data",t.node(n),c),i.debug("Not Setting parent for node=",a,"cluster!==rootId",n!==c,"node!==clusterId",a!==n));const u=t.edges(a);i.debug("Copying Edges",u),u.forEach(o=>{i.info("Edge",o);const w=t.edge(o.v,o.w,o.name);i.info("Edge data",w,c);try{ae(o,c)?(i.info("Copying as ",o.v,o.w,w,o.name),e.setEdge(o.v,o.w,w,o.name),i.info("newGraph edges ",e.edges(),e.edge(e.edges()[0]))):i.info("Skipping copy of edge ",o.v,"-->",o.w," rootId: ",c," clusterId:",n)}catch(x){i.error(x)}})}i.debug("Removing node",a),t.removeNode(a)})},"copy"),F=X((n,t)=>{const e=t.children(n);let c=[...e];for(const d of e)T.set(d,n),c=[...c,...F(d,t)];return c},"extractDescendants"),de=X((n,t,e)=>{const c=n.edges().filter(o=>o.v===t||o.w===t),d=n.edges().filter(o=>o.v===e||o.w===e),a=c.map(o=>({v:o.v===t?e:o.v,w:o.w===t?t:o.w})),r=d.map(o=>({v:o.v,w:o.w}));return a.filter(o=>r.some(w=>o.v===w.v&&o.w===w.w))},"findCommonEdges"),D=X((n,t,e)=>{const c=t.children(n);if(i.trace("Searching children of id ",n,c),c.length<1)return n;let d;for(const a of c){const r=D(a,t,e),u=de(t,e,r);if(r)if(u.length>0)d=r;else return r}return d},"findNonClusterChild"),G=X(n=>!f.has(n)||!f.get(n).externalConnections?n:f.has(n)?f.get(n).id:n,"getAnchorId"),le=X((n,t)=>{if(!n||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");n.nodes().forEach(function(e){n.children(e).length>0&&(i.warn("Cluster identified",e," Replacement id in edges: ",D(e,n,e)),C.set(e,F(e,n)),f.set(e,{id:D(e,n,e),clusterData:n.node(e)}))}),n.nodes().forEach(function(e){const c=n.children(e),d=n.edges();c.length>0?(i.debug("Cluster identified",e,C),d.forEach(a=>{const r=P(a.v,e),u=P(a.w,e);r^u&&(i.warn("Edge: ",a," leaves cluster ",e),i.warn("Descendants of XXX ",e,": ",C.get(e)),f.get(e).externalConnections=!0)})):i.debug("Not a cluster ",e,C)});for(let e of f.keys()){const c=f.get(e).id,d=n.parent(c);d!==e&&f.has(d)&&!f.get(d).externalConnections&&(f.get(e).id=d)}n.edges().forEach(function(e){const c=n.edge(e);i.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),i.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(n.edge(e)));let d=e.v,a=e.w;if(i.warn("Fix XXX",f,"ids:",e.v,e.w,"Translating: ",f.get(e.v)," --- ",f.get(e.w)),f.get(e.v)||f.get(e.w)){if(i.warn("Fixing and trying - removing XXX",e.v,e.w,e.name),d=G(e.v),a=G(e.w),n.removeEdge(e.v,e.w,e.name),d!==e.v){const r=n.parent(d);f.get(r).externalConnections=!0,c.fromCluster=e.v}if(a!==e.w){const r=n.parent(a);f.get(r).externalConnections=!0,c.toCluster=e.w}i.warn("Fix Replacing with XXX",d,a,e.name),n.setEdge(d,a,c,e.name)}}),i.warn("Adjusted Graph",p(n)),Y(n,0),i.trace(f)},"adjustClustersAndEdges"),Y=X((n,t)=>{var d,a;if(i.warn("extractor - ",t,p(n),n.children("D")),t>10){i.error("Bailing out");return}let e=n.nodes(),c=!1;for(const r of e){const u=n.children(r);c=c||u.length>0}if(!c){i.debug("Done, no node has children",n.nodes());return}i.debug("Nodes = ",e,t);for(const r of e)if(i.debug("Extracting node",r,f,f.has(r)&&!f.get(r).externalConnections,!n.parent(r),n.node(r),n.children("D")," Depth ",t),!f.has(r))i.debug("Not a cluster",r,t);else if(!f.get(r).externalConnections&&n.children(r)&&n.children(r).length>0){i.warn("Cluster without external connections, without a parent and with children",r,t);let o=n.graph().rankdir==="TB"?"LR":"TB";(a=(d=f.get(r))==null?void 0:d.clusterData)!=null&&a.dir&&(o=f.get(r).clusterData.dir,i.warn("Fixing dir",f.get(r).clusterData.dir,o));const w=new R({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",p(n)),M(r,n,w,r),n.setNode(r,{clusterNode:!0,id:r,clusterData:f.get(r).clusterData,label:f.get(r).label,graph:w}),i.warn("New graph after copy node: (",r,")",p(w)),i.debug("Old graph after copy",p(n))}else i.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!f.get(r).externalConnections," no parent: ",!n.parent(r)," children ",n.children(r)&&n.children(r).length>0,n.children("D"),t),i.debug(f);e=n.nodes(),i.warn("New list of nodes",e);for(const r of e){const u=n.node(r);i.warn(" Now next level",r,u),u!=null&&u.clusterNode&&Y(u.graph,t+1)}},"extractor"),_=X((n,t)=>{if(t.length===0)return[];let e=Object.assign([],t);return t.forEach(c=>{const d=n.children(c),a=_(n,d);e=[...e,...a]}),e},"sorter"),fe=X(n=>_(n,n.children()),"sortNodesByHierarchy"),j=X((n,t,e,c,d,a)=>b(void 0,null,function*(){i.warn("Graph in recursive render:XAX",p(t),d);const r=t.graph().rankdir;i.trace("Dir in recursive render - dir:",r);const u=n.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]));const o=u.insert("g").attr("class","clusters"),w=u.insert("g").attr("class","edgePaths"),x=u.insert("g").attr("class","edgeLabels"),g=u.insert("g").attr("class","nodes");yield Promise.all(t.nodes().map(function(l){return b(this,null,function*(){const s=t.node(l);if(d!==void 0){const h=JSON.parse(JSON.stringify(d.clusterData));i.trace(`Setting data for parent cluster XXX +var H=Object.defineProperty,q=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var B=(n,t,e)=>t in n?H(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,O=(n,t)=>{for(var e in t||(t={}))K.call(t,e)&&B(n,e,t[e]);if(k)for(var e of k(t))Q.call(t,e)&&B(n,e,t[e]);return n},A=(n,t)=>q(n,z(t));var b=(n,t,e)=>new Promise((c,d)=>{var a=o=>{try{u(e.next(o))}catch(w){d(w)}},r=o=>{try{u(e.throw(o))}catch(w){d(w)}},u=o=>o.done?c(o.value):Promise.resolve(o.value).then(a,r);u((e=e.apply(n,t)).next())});import{_ as X,am as U,an as V,ao as W,ap as Z,l as i,d as $,aq as I,ar as L,as as ee,ae as ne,at as J,au as te,av as se,aw as ie,ax as re}from"./Using existing ones-DVOwGlbd.js";import{G as R}from"./graph-wuI2A7_P.js";import{l as oe}from"./layout-CNdX_jlv.js";import{w as p}from"./json-BhmxDxce.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";import"./clone-Bp7QSEXO.js";var f=new Map,C=new Map,T=new Map,ce=X(()=>{C.clear(),T.clear(),f.clear()},"clear"),P=X((n,t)=>{const e=C.get(t)||[];return i.trace("In isDescendant",t," ",n," = ",e.includes(n)),e.includes(n)},"isDescendant"),ae=X((n,t)=>{const e=C.get(t)||[];return i.info("Descendants of ",t," is ",e),i.info("Edge is ",n),n.v===t||n.w===t?!1:e?e.includes(n.v)||P(n.v,t)||P(n.w,t)||e.includes(n.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),M=X((n,t,e,c)=>{i.warn("Copying children of ",n,"root",c,"data",t.node(n),c);const d=t.children(n)||[];n!==c&&d.push(n),i.warn("Copying (nodes) clusterId",n,"nodes",d),d.forEach(a=>{if(t.children(a).length>0)M(a,t,e,c);else{const r=t.node(a);i.info("cp ",a," to ",c," with parent ",n),e.setNode(a,r),c!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),e.setParent(a,t.parent(a))),n!==c&&a!==n?(i.debug("Setting parent",a,n),e.setParent(a,n)):(i.info("In copy ",n,"root",c,"data",t.node(n),c),i.debug("Not Setting parent for node=",a,"cluster!==rootId",n!==c,"node!==clusterId",a!==n));const u=t.edges(a);i.debug("Copying Edges",u),u.forEach(o=>{i.info("Edge",o);const w=t.edge(o.v,o.w,o.name);i.info("Edge data",w,c);try{ae(o,c)?(i.info("Copying as ",o.v,o.w,w,o.name),e.setEdge(o.v,o.w,w,o.name),i.info("newGraph edges ",e.edges(),e.edge(e.edges()[0]))):i.info("Skipping copy of edge ",o.v,"-->",o.w," rootId: ",c," clusterId:",n)}catch(x){i.error(x)}})}i.debug("Removing node",a),t.removeNode(a)})},"copy"),F=X((n,t)=>{const e=t.children(n);let c=[...e];for(const d of e)T.set(d,n),c=[...c,...F(d,t)];return c},"extractDescendants"),de=X((n,t,e)=>{const c=n.edges().filter(o=>o.v===t||o.w===t),d=n.edges().filter(o=>o.v===e||o.w===e),a=c.map(o=>({v:o.v===t?e:o.v,w:o.w===t?t:o.w})),r=d.map(o=>({v:o.v,w:o.w}));return a.filter(o=>r.some(w=>o.v===w.v&&o.w===w.w))},"findCommonEdges"),D=X((n,t,e)=>{const c=t.children(n);if(i.trace("Searching children of id ",n,c),c.length<1)return n;let d;for(const a of c){const r=D(a,t,e),u=de(t,e,r);if(r)if(u.length>0)d=r;else return r}return d},"findNonClusterChild"),G=X(n=>!f.has(n)||!f.get(n).externalConnections?n:f.has(n)?f.get(n).id:n,"getAnchorId"),le=X((n,t)=>{if(!n||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");n.nodes().forEach(function(e){n.children(e).length>0&&(i.warn("Cluster identified",e," Replacement id in edges: ",D(e,n,e)),C.set(e,F(e,n)),f.set(e,{id:D(e,n,e),clusterData:n.node(e)}))}),n.nodes().forEach(function(e){const c=n.children(e),d=n.edges();c.length>0?(i.debug("Cluster identified",e,C),d.forEach(a=>{const r=P(a.v,e),u=P(a.w,e);r^u&&(i.warn("Edge: ",a," leaves cluster ",e),i.warn("Descendants of XXX ",e,": ",C.get(e)),f.get(e).externalConnections=!0)})):i.debug("Not a cluster ",e,C)});for(let e of f.keys()){const c=f.get(e).id,d=n.parent(c);d!==e&&f.has(d)&&!f.get(d).externalConnections&&(f.get(e).id=d)}n.edges().forEach(function(e){const c=n.edge(e);i.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),i.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(n.edge(e)));let d=e.v,a=e.w;if(i.warn("Fix XXX",f,"ids:",e.v,e.w,"Translating: ",f.get(e.v)," --- ",f.get(e.w)),f.get(e.v)||f.get(e.w)){if(i.warn("Fixing and trying - removing XXX",e.v,e.w,e.name),d=G(e.v),a=G(e.w),n.removeEdge(e.v,e.w,e.name),d!==e.v){const r=n.parent(d);f.get(r).externalConnections=!0,c.fromCluster=e.v}if(a!==e.w){const r=n.parent(a);f.get(r).externalConnections=!0,c.toCluster=e.w}i.warn("Fix Replacing with XXX",d,a,e.name),n.setEdge(d,a,c,e.name)}}),i.warn("Adjusted Graph",p(n)),Y(n,0),i.trace(f)},"adjustClustersAndEdges"),Y=X((n,t)=>{var d,a;if(i.warn("extractor - ",t,p(n),n.children("D")),t>10){i.error("Bailing out");return}let e=n.nodes(),c=!1;for(const r of e){const u=n.children(r);c=c||u.length>0}if(!c){i.debug("Done, no node has children",n.nodes());return}i.debug("Nodes = ",e,t);for(const r of e)if(i.debug("Extracting node",r,f,f.has(r)&&!f.get(r).externalConnections,!n.parent(r),n.node(r),n.children("D")," Depth ",t),!f.has(r))i.debug("Not a cluster",r,t);else if(!f.get(r).externalConnections&&n.children(r)&&n.children(r).length>0){i.warn("Cluster without external connections, without a parent and with children",r,t);let o=n.graph().rankdir==="TB"?"LR":"TB";(a=(d=f.get(r))==null?void 0:d.clusterData)!=null&&a.dir&&(o=f.get(r).clusterData.dir,i.warn("Fixing dir",f.get(r).clusterData.dir,o));const w=new R({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",p(n)),M(r,n,w,r),n.setNode(r,{clusterNode:!0,id:r,clusterData:f.get(r).clusterData,label:f.get(r).label,graph:w}),i.warn("New graph after copy node: (",r,")",p(w)),i.debug("Old graph after copy",p(n))}else i.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!f.get(r).externalConnections," no parent: ",!n.parent(r)," children ",n.children(r)&&n.children(r).length>0,n.children("D"),t),i.debug(f);e=n.nodes(),i.warn("New list of nodes",e);for(const r of e){const u=n.node(r);i.warn(" Now next level",r,u),u!=null&&u.clusterNode&&Y(u.graph,t+1)}},"extractor"),_=X((n,t)=>{if(t.length===0)return[];let e=Object.assign([],t);return t.forEach(c=>{const d=n.children(c),a=_(n,d);e=[...e,...a]}),e},"sorter"),fe=X(n=>_(n,n.children()),"sortNodesByHierarchy"),j=X((n,t,e,c,d,a)=>b(void 0,null,function*(){i.warn("Graph in recursive render:XAX",p(t),d);const r=t.graph().rankdir;i.trace("Dir in recursive render - dir:",r);const u=n.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]));const o=u.insert("g").attr("class","clusters"),w=u.insert("g").attr("class","edgePaths"),x=u.insert("g").attr("class","edgeLabels"),g=u.insert("g").attr("class","nodes");yield Promise.all(t.nodes().map(function(l){return b(this,null,function*(){const s=t.node(l);if(d!==void 0){const h=JSON.parse(JSON.stringify(d.clusterData));i.trace(`Setting data for parent cluster XXX Node.id = `,l,` data=`,h.height,` Parent cluster`,d.height),t.setNode(d.id,h),t.parent(l)||(i.trace("Setting parent",l,d.id),t.setParent(l,d.id,h))}if(i.info("(Insert) Node XXX"+l+": "+JSON.stringify(t.node(l))),s!=null&&s.clusterNode){i.info("Cluster identified XBX",l,s.width,t.node(l));const{ranksep:h,nodesep:v}=t.graph();s.graph.setGraph(A(O({},s.graph.graph()),{ranksep:h+25,nodesep:v}));const N=yield j(g,s.graph,e,c,t.node(l),a),S=N.elem;I(s,S),s.diff=N.diff||0,i.info("New compound node after recursive render XAX",l,"width",s.width,"height",s.height),L(S,s)}else t.children(l).length>0?(i.trace("Cluster - the non recursive path XBX",l,s.id,s,s.width,"Graph:",t),i.trace(D(s.id,t)),f.set(s.id,{id:D(s.id,t),node:s})):(i.trace("Node - the non recursive path XAX",l,g,t.node(l),r),yield ee(g,t.node(l),r))})})),yield X(()=>b(void 0,null,function*(){const l=t.edges().map(function(s){return b(this,null,function*(){const h=t.edge(s.v,s.w,s.name);i.info("Edge "+s.v+" -> "+s.w+": "+JSON.stringify(s)),i.info("Edge "+s.v+" -> "+s.w+": ",s," ",JSON.stringify(t.edge(s))),i.info("Fix",f,"ids:",s.v,s.w,"Translating: ",f.get(s.v),f.get(s.w)),yield re(x,h)})});yield Promise.all(l)}),"processEdges")(),i.info("Graph before layout:",JSON.stringify(p(t))),i.info("############################################# XXX"),i.info("### Layout ### XXX"),i.info("############################################# XXX"),oe(t),i.info("Graph after layout:",JSON.stringify(p(t)));let E=0,{subGraphTitleTotalMargin:y}=ne(a);return yield Promise.all(fe(t).map(function(l){return b(this,null,function*(){var h;const s=t.node(l);if(i.info("Position XBX => "+l+": ("+s.x,","+s.y,") width: ",s.width," height: ",s.height),s!=null&&s.clusterNode)s.y+=y,i.info("A tainted cluster node XBX1",l,s.id,s.width,s.height,s.x,s.y,t.parent(l)),f.get(s.id).node=s,J(s);else if(t.children(l).length>0){i.info("A pure cluster node XBX1",l,s.id,s.x,s.y,s.width,s.height,t.parent(l)),s.height+=y,t.node(s.parentId);const v=(s==null?void 0:s.padding)/2||0,N=((h=s==null?void 0:s.labelBBox)==null?void 0:h.height)||0,S=N-v||0;i.debug("OffsetY",S,"labelHeight",N,"halfPadding",v),yield te(o,s),f.get(s.id).node=s}else{const v=t.node(s.parentId);s.y+=y/2,i.info("A regular node XBX1 - using the padding",s.id,"parent",s.parentId,s.width,s.height,s.x,s.y,"offsetY",s.offsetY,"parent",v,v==null?void 0:v.offsetY,s),J(s)}})})),t.edges().forEach(function(l){const s=t.edge(l);i.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(s),s),s.points.forEach(S=>S.y+=y/2);const h=t.node(l.v);var v=t.node(l.w);const N=se(w,s,f,e,h,v,c);ie(s,N)}),t.nodes().forEach(function(l){const s=t.node(l);i.info(l,s.type,s.diff),s.isGroup&&(E=s.diff)}),i.warn("Returning from recursive render XAX",u,E),{elem:u,diff:E}}),"recursiveRender"),Oe=X((n,t)=>b(void 0,null,function*(){var a,r,u,o,w,x;const e=new R({multigraph:!0,compound:!0}).setGraph({rankdir:n.direction,nodesep:((a=n.config)==null?void 0:a.nodeSpacing)||((u=(r=n.config)==null?void 0:r.flowchart)==null?void 0:u.nodeSpacing)||n.nodeSpacing,ranksep:((o=n.config)==null?void 0:o.rankSpacing)||((x=(w=n.config)==null?void 0:w.flowchart)==null?void 0:x.rankSpacing)||n.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),c=t.select("g");U(c,n.markers,n.type,n.diagramId),V(),W(),Z(),ce(),n.nodes.forEach(g=>{e.setNode(g.id,O({},g)),g.parentId&&e.setParent(g.id,g.parentId)}),i.debug("Edges:",n.edges),n.edges.forEach(g=>{if(g.start===g.end){const m=g.start,E=m+"---"+m+"---1",y=m+"---"+m+"---2",l=e.node(m);e.setNode(E,{domId:E,id:E,parentId:l.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(E,l.parentId),e.setNode(y,{domId:y,id:y,parentId:l.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(y,l.parentId);const s=structuredClone(g),h=structuredClone(g),v=structuredClone(g);s.label="",s.arrowTypeEnd="none",s.id=m+"-cyclic-special-1",h.arrowTypeEnd="none",h.id=m+"-cyclic-special-mid",v.label="",l.isGroup&&(s.fromCluster=m,v.toCluster=m),v.id=m+"-cyclic-special-2",e.setEdge(m,E,s,m+"-cyclic-special-0"),e.setEdge(E,y,h,m+"-cyclic-special-1"),e.setEdge(y,m,v,m+"-cyce in t?z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,h=(t,e)=>{for(var a in e||(e={}))P.call(e,a)&&C(t,a,e[a]);if(x)for(var a of x(e))W.call(e,a)&&C(t,a,e[a]);return t};var $=(t,e,a)=>new Promise((n,s)=>{var o=l=>{try{c(a.next(l))}catch(i){s(i)}},r=l=>{try{c(a.throw(l))}catch(i){s(i)}},c=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,r);c((a=a.apply(t,e)).next())});import{p as T}from"./chunk-OQCM5LHU-Bqj1NGSi.js";import{F as D,s as _,g as A,q as E,r as N,b as L,c as Y,_ as p,l as y,G as w,H as G,t as H,K as I,k as K}from"./Using existing ones-1ACZX-0W.js";import{p as M}from"./mermaid-parser.core-D7Lfk3oe.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";import"./clone-qL6R6e7B.js";var B={packet:[]},v=structuredClone(B),O=D.packet,q=p(()=>{const t=w(h(h({},O),G().packet));return t.showBits&&(t.paddingY+=10),t},"getConfig"),R=p(()=>v.packet,"getPacket"),U=p(t=>{t.length>0&&v.packet.push(t)},"pushWord"),X=p(()=>{H(),v=structuredClone(B)},"clear"),u={pushWord:U,getPacket:R,getConfig:q,clear:X,setAccTitle:_,getAccTitle:A,setDiagramTitle:E,getDiagramTitle:N,getAccDescription:L,setAccDescription:Y},j=1e4,J=p(t=>{T(t,u);let e=-1,a=[],n=1;const{bitsPerRow:s}=u.getConfig();for(let{start:o,end:r,label:c}of t.blocks){if(r&&r{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*a?[t,void 0]:[{start:t.start,end:e*a-1,label:t.label},{start:e*a,end:t.end,label:t.label}]},"getNextFittingBlock"),V={parse:p(t=>$(void 0,null,function*(){const e=yield M("packet",t);y.debug(e),J(e)}),"parse")},Z=p((t,e,a,n)=>{const s=n.db,o=s.getConfig(),{rowHeight:r,paddingY:c,bitWidth:l,bitsPerRow:i}=o,m=s.getPacket(),d=s.getDiagramTitle(),k=r+c,g=k*(m.length+1)-(d?0:r),f=l*i+2,b=I(e);b.attr("viewbox",`0 0 ${f} ${g}`),K(b,g,f,o.useMaxWidth);for(const[S,F]of m.entries())tt(b,F,S,o);b.append("text").text(d).attr("x",f/2).attr("y",g-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),tt=p((t,e,a,{rowHeight:n,paddingX:s,paddingY:o,bitWidth:r,bitsPerRow:c,showBits:l})=>{const i=t.append("g"),m=a*(n+o)+o;for(const d of e){const k=d.start%c*r+1,g=(d.end-d.start+1)*r-s;if(i.append("rect").attr("x",k).attr("y",m).attr("width",g).attr("height",n).attr("class","packetBlock"),i.append("text").attr("x",k+g/2).attr("y",m+n/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(d.label),!l)continue;const f=d.end===d.start,b=m-2;i.append("text").attr("x",k+(f?g/2:0)).attr("y",b).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",f?"middle":"start").text(d.start),f||i.append("text").attr("x",k+g).attr("y",b).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(d.end)}},"drawWord"),et={draw:Z},at={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},rt=p(({packet:t}={})=>{const e=w(at,t);return` +var z=Object.defineProperty;var x=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var C=(t,e,a)=>e in t?z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,h=(t,e)=>{for(var a in e||(e={}))P.call(e,a)&&C(t,a,e[a]);if(x)for(var a of x(e))W.call(e,a)&&C(t,a,e[a]);return t};var $=(t,e,a)=>new Promise((n,s)=>{var o=l=>{try{c(a.next(l))}catch(i){s(i)}},r=l=>{try{c(a.throw(l))}catch(i){s(i)}},c=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,r);c((a=a.apply(t,e)).next())});import{p as T}from"./chunk-OQCM5LHU-BNRaZOS_.js";import{F as D,s as _,g as A,q as E,r as N,b as L,c as Y,_ as p,l as y,G as w,H as G,t as H,K as I,k as K}from"./Using existing ones-DVOwGlbd.js";import{p as M}from"./mermaid-parser.core-B5qxKanj.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";import"./clone-Bp7QSEXO.js";var B={packet:[]},v=structuredClone(B),O=D.packet,q=p(()=>{const t=w(h(h({},O),G().packet));return t.showBits&&(t.paddingY+=10),t},"getConfig"),R=p(()=>v.packet,"getPacket"),U=p(t=>{t.length>0&&v.packet.push(t)},"pushWord"),X=p(()=>{H(),v=structuredClone(B)},"clear"),u={pushWord:U,getPacket:R,getConfig:q,clear:X,setAccTitle:_,getAccTitle:A,setDiagramTitle:E,getDiagramTitle:N,getAccDescription:L,setAccDescription:Y},j=1e4,J=p(t=>{T(t,u);let e=-1,a=[],n=1;const{bitsPerRow:s}=u.getConfig();for(let{start:o,end:r,label:c}of t.blocks){if(r&&r{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*a?[t,void 0]:[{start:t.start,end:e*a-1,label:t.label},{start:e*a,end:t.end,label:t.label}]},"getNextFittingBlock"),V={parse:p(t=>$(void 0,null,function*(){const e=yield M("packet",t);y.debug(e),J(e)}),"parse")},Z=p((t,e,a,n)=>{const s=n.db,o=s.getConfig(),{rowHeight:r,paddingY:c,bitWidth:l,bitsPerRow:i}=o,m=s.getPacket(),d=s.getDiagramTitle(),k=r+c,g=k*(m.length+1)-(d?0:r),f=l*i+2,b=I(e);b.attr("viewbox",`0 0 ${f} ${g}`),K(b,g,f,o.useMaxWidth);for(const[S,F]of m.entries())tt(b,F,S,o);b.append("text").text(d).attr("x",f/2).attr("y",g-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),tt=p((t,e,a,{rowHeight:n,paddingX:s,paddingY:o,bitWidth:r,bitsPerRow:c,showBits:l})=>{const i=t.append("g"),m=a*(n+o)+o;for(const d of e){const k=d.start%c*r+1,g=(d.end-d.start+1)*r-s;if(i.append("rect").attr("x",k).attr("y",m).attr("width",g).attr("height",n).attr("class","packetBlock"),i.append("text").attr("x",k+g/2).attr("y",m+n/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(d.label),!l)continue;const f=d.end===d.start,b=m-2;i.append("text").attr("x",k+(f?g/2:0)).attr("y",b).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",f?"middle":"start").text(d.start),f||i.append("text").attr("x",k+g).attr("y",b).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(d.end)}},"drawWord"),et={draw:Z},at={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},rt=p(({packet:t}={})=>{const e=w(at,t);return` .packetByte { font-size: ${e.byteFontSize}; } diff --git a/pr-preview/pr-419/assets/erDiagram-62CBQV5Y-DVkVjRgd.js b/pr-preview/pr-419/assets/erDiagram-62CBQV5Y-r-scVNHL.js similarity index 98% rename from pr-preview/pr-419/assets/erDiagram-62CBQV5Y-DVkVjRgd.js rename to pr-preview/pr-419/assets/erDiagram-62CBQV5Y-r-scVNHL.js index a1f74b78c..049177ffd 100644 --- a/pr-preview/pr-419/assets/erDiagram-62CBQV5Y-DVkVjRgd.js +++ b/pr-preview/pr-419/assets/erDiagram-62CBQV5Y-r-scVNHL.js @@ -1,4 +1,4 @@ -import{_ as f,d as W,s as gt,g as kt,c as xt,b as Rt,q as Ot,r as bt,l as V,t as Nt,j as rt,u as Tt,k as At,a2 as Mt,a8 as vt,a9 as St}from"./Using existing ones-1ACZX-0W.js";import{G as wt}from"./graph-BbauKfQB.js";import{l as It}from"./layout-CpgFbA5F.js";import{u as Dt}from"./stringify-DnirLPRY.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";const Lt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Bt(t){return typeof t=="string"&&Lt.test(t)}function Ct(t){if(!Bt(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}function Pt(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e>>32-r}function Ut(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const p=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=k,k=g,g=at(m,30)>>>0,m=h,h=b}e[0]=e[0]+h>>>0,e[1]=e[1]+m>>>0,e[2]=e[2]+g>>>0,e[3]=e[3]+k>>>0,e[4]=e[4]+x>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const zt=Ft("v5",80,Ut);var it=function(){var t=f(function(S,i,n,l){for(n=n||{},l=S.length;l--;n[S[l]]=i);return n},"o"),r=[6,8,10,20,22,24,26,27,28],e=[1,10],u=[1,11],c=[1,12],_=[1,13],p=[1,14],o=[1,15],h=[1,21],m=[1,22],g=[1,23],k=[1,24],x=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],R=[1,34],b=[27,28,46,47],P=[41,42,43,44,45],Y=[17,34],Z=[1,54],M=[1,53],v=[17,34,36,38],N={trace:f(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:f(function(i,n,l,d,E,a,K){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:e,22:u,24:c,26:_,27:p,28:o},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:16,11:9,20:e,22:u,24:c,26:_,27:p,28:o},t(r,[2,5]),t(r,[2,6]),t(r,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:m,43:g,44:k,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(r,[2,18]),t(y,[2,19]),t(y,[2,20]),t(r,[2,4]),{11:29,27:p,28:o},{16:30,17:[1,31],29:32,30:33,34:R},{11:35,27:p,28:o},{40:36,46:[1,37],47:[1,38]},t(b,[2,34]),t(b,[2,35]),t(b,[2,36]),t(b,[2,37]),t(b,[2,38]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),{13:[1,39]},{17:[1,40]},t(r,[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:h,42:m,43:g,44:k,45:x},t(P,[2,39]),t(P,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(r,[2,9]),{17:[2,22]},t(Y,[2,23],{32:50,33:51,35:52,37:Z,38:M}),t([17,34,37,38],[2,28]),t(r,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(r,[2,8]),t(r,[2,41]),t(r,[2,42]),t(r,[2,43]),t(Y,[2,24],{33:56,36:[1,57],38:M}),t(Y,[2,25]),t(v,[2,29]),t(Y,[2,32]),t(v,[2,31]),{16:58,17:[1,59],29:32,30:33,34:R},t(Y,[2,26]),{35:60,37:Z},{17:[1,61]},t(r,[2,13]),t(v,[2,30]),t(r,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:f(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),parse:f(function(i){var n=this,l=[0],d=[],E=[null],a=[],K=this.table,s="",Q=0,ot=0,yt=2,lt=1,_t=a.slice.call(arguments,1),A=Object.create(this.lexer),U={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(U.yy[J]=this.yy[J]);A.setInput(i,U.yy),U.yy.lexer=A,U.yy.parser=this,typeof A.yylloc=="undefined"&&(A.yylloc={});var $=A.yylloc;a.push($);var Et=A.options&&A.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(I){l.length=l.length-2*I,E.length=E.length-I,a.length=a.length-I}f(mt,"popStack");function ct(){var I;return I=d.pop()||A.lex()||lt,typeof I!="number"&&(I instanceof Array&&(d=I,I=d.pop()),I=n.symbols_[I]||I),I}f(ct,"lex");for(var w,z,L,tt,G={},j,F,ht,q;;){if(z=l[l.length-1],this.defaultActions[z]?L=this.defaultActions[z]:((w===null||typeof w=="undefined")&&(w=ct()),L=K[z]&&K[z][w]),typeof L=="undefined"||!L.length||!L[0]){var et="";q=[];for(j in K[z])this.terminals_[j]&&j>yt&&q.push("'"+this.terminals_[j]+"'");A.showPosition?et="Parse error on line "+(Q+1)+`: +import{_ as f,d as W,s as gt,g as kt,c as xt,b as Rt,q as Ot,r as bt,l as V,t as Nt,j as rt,u as Tt,k as At,a2 as Mt,a8 as vt,a9 as St}from"./Using existing ones-DVOwGlbd.js";import{G as wt}from"./graph-wuI2A7_P.js";import{l as It}from"./layout-CNdX_jlv.js";import{u as Dt}from"./stringify-DnirLPRY.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";const Lt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Bt(t){return typeof t=="string"&&Lt.test(t)}function Ct(t){if(!Bt(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}function Pt(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e>>32-r}function Ut(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const p=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=k,k=g,g=at(m,30)>>>0,m=h,h=b}e[0]=e[0]+h>>>0,e[1]=e[1]+m>>>0,e[2]=e[2]+g>>>0,e[3]=e[3]+k>>>0,e[4]=e[4]+x>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const zt=Ft("v5",80,Ut);var it=function(){var t=f(function(S,i,n,l){for(n=n||{},l=S.length;l--;n[S[l]]=i);return n},"o"),r=[6,8,10,20,22,24,26,27,28],e=[1,10],u=[1,11],c=[1,12],_=[1,13],p=[1,14],o=[1,15],h=[1,21],m=[1,22],g=[1,23],k=[1,24],x=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],R=[1,34],b=[27,28,46,47],P=[41,42,43,44,45],Y=[17,34],Z=[1,54],M=[1,53],v=[17,34,36,38],N={trace:f(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:f(function(i,n,l,d,E,a,K){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:e,22:u,24:c,26:_,27:p,28:o},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:16,11:9,20:e,22:u,24:c,26:_,27:p,28:o},t(r,[2,5]),t(r,[2,6]),t(r,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:m,43:g,44:k,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(r,[2,18]),t(y,[2,19]),t(y,[2,20]),t(r,[2,4]),{11:29,27:p,28:o},{16:30,17:[1,31],29:32,30:33,34:R},{11:35,27:p,28:o},{40:36,46:[1,37],47:[1,38]},t(b,[2,34]),t(b,[2,35]),t(b,[2,36]),t(b,[2,37]),t(b,[2,38]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),{13:[1,39]},{17:[1,40]},t(r,[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:h,42:m,43:g,44:k,45:x},t(P,[2,39]),t(P,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(r,[2,9]),{17:[2,22]},t(Y,[2,23],{32:50,33:51,35:52,37:Z,38:M}),t([17,34,37,38],[2,28]),t(r,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(r,[2,8]),t(r,[2,41]),t(r,[2,42]),t(r,[2,43]),t(Y,[2,24],{33:56,36:[1,57],38:M}),t(Y,[2,25]),t(v,[2,29]),t(Y,[2,32]),t(v,[2,31]),{16:58,17:[1,59],29:32,30:33,34:R},t(Y,[2,26]),{35:60,37:Z},{17:[1,61]},t(r,[2,13]),t(v,[2,30]),t(r,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:f(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),parse:f(function(i){var n=this,l=[0],d=[],E=[null],a=[],K=this.table,s="",Q=0,ot=0,yt=2,lt=1,_t=a.slice.call(arguments,1),A=Object.create(this.lexer),U={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(U.yy[J]=this.yy[J]);A.setInput(i,U.yy),U.yy.lexer=A,U.yy.parser=this,typeof A.yylloc=="undefined"&&(A.yylloc={});var $=A.yylloc;a.push($);var Et=A.options&&A.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(I){l.length=l.length-2*I,E.length=E.length-I,a.length=a.length-I}f(mt,"popStack");function ct(){var I;return I=d.pop()||A.lex()||lt,typeof I!="number"&&(I instanceof Array&&(d=I,I=d.pop()),I=n.symbols_[I]||I),I}f(ct,"lex");for(var w,z,L,tt,G={},j,F,ht,q;;){if(z=l[l.length-1],this.defaultActions[z]?L=this.defaultActions[z]:((w===null||typeof w=="undefined")&&(w=ct()),L=K[z]&&K[z][w]),typeof L=="undefined"||!L.length||!L[0]){var et="";q=[];for(j in K[z])this.terminals_[j]&&j>yt&&q.push("'"+this.terminals_[j]+"'");A.showPosition?et="Parse error on line "+(Q+1)+`: `+A.showPosition()+` Expecting `+q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":et="Parse error on line "+(Q+1)+": Unexpected "+(w==lt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(et,{text:A.match,token:this.terminals_[w]||w,line:A.yylineno,loc:$,expected:q})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+w);switch(L[0]){case 1:l.push(w),E.push(A.yytext),a.push(A.yylloc),l.push(L[1]),w=null,ot=A.yyleng,s=A.yytext,Q=A.yylineno,$=A.yylloc;break;case 2:if(F=this.productions_[L[1]][1],G.$=E[E.length-F],G._$={first_line:a[a.length-(F||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(F||1)].first_column,last_column:a[a.length-1].last_column},Et&&(G._$.range=[a[a.length-(F||1)].range[0],a[a.length-1].range[1]]),tt=this.performAction.apply(G,[s,ot,Q,U.yy,L[1],E,a].concat(_t)),typeof tt!="undefined")return tt;F&&(l=l.slice(0,-1*F*2),E=E.slice(0,-1*F),a=a.slice(0,-1*F)),l.push(this.productions_[L[1]][0]),E.push(G.$),a.push(G._$),ht=K[l[l.length-2]][l[l.length-1]],l.push(ht);break;case 3:return!0}}return!0},"parse")},T=function(){var S={EOF:1,parseError:f(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:f(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:f(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:f(function(i){var n=i.length,l=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 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),l.length-1&&(this.yylineno-=l.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:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(i){this.unput(this.match.slice(i))},"less"),pastInput:f(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:f(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:f(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/pr-preview/pr-419/assets/flowDiagram-JSIZSE4D-5RRQnNTH.js b/pr-preview/pr-419/assets/flowDiagram-JSIZSE4D-B_Ls99NY.js similarity index 99% rename from pr-preview/pr-419/assets/flowDiagram-JSIZSE4D-5RRQnNTH.js rename to pr-preview/pr-419/assets/flowDiagram-JSIZSE4D-B_Ls99NY.js index 340b8ea4f..b121b3e55 100644 --- a/pr-preview/pr-419/assets/flowDiagram-JSIZSE4D-5RRQnNTH.js +++ b/pr-preview/pr-419/assets/flowDiagram-JSIZSE4D-B_Ls99NY.js @@ -1,4 +1,4 @@ -var Qe=(e,r,i)=>new Promise((u,n)=>{var c=l=>{try{g(i.next(l))}catch(d){n(d)}},p=l=>{try{g(i.throw(l))}catch(d){n(d)}},g=l=>l.done?u(l.value):Promise.resolve(l.value).then(c,p);g((i=i.apply(e,r)).next())});import{g as ft,s as At}from"./chunk-DUMQOTYW-CesEDirL.js";import"./chunk-YWFND7JV-BUZzWDIH.js";import{d as M1,_ as o,o as Ze,p as gt,s as kt,g as bt,b as Et,c as mt,q as St,r as Dt,l as e1,u as Ae,t as xt,v as Tt,j as x1,x as Ct,y as yt,e as Ft,z as _t}from"./Using existing ones-1ACZX-0W.js";import{c as vt}from"./channel-C9Gn3gkd.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var Bt="flowchart-",Je=0,O1=M1(),k1=new Map,W=[],j1=new Map,f1=[],ge=new Map,ke=new Map,ee=0,pe=!0,H,se,re=[],ie=o(e=>Ft.sanitizeText(e,O1),"sanitizeText"),ue=o(function(e){for(const r of k1.values())if(r.id===e)return r.domId;return e},"lookUpDomId"),Vt=o(function(e,r,i,u,n,c,p={}){if(!e||e.trim().length===0)return;let g,l=k1.get(e);l===void 0&&(l={id:e,labelType:"text",domId:Bt+e+"-"+Je,styles:[],classes:[]},k1.set(e,l)),Je++,r!==void 0?(O1=M1(),g=ie(r.text.trim()),l.labelType=r.type,g.startsWith('"')&&g.endsWith('"')&&(g=g.substring(1,g.length-1)),l.text=g):l.text===void 0&&(l.text=e),i!==void 0&&(l.type=i),u!=null&&u.forEach(function(d){l.styles.push(d)}),n!=null&&n.forEach(function(d){l.classes.push(d)}),c!==void 0&&(l.dir=c),l.props===void 0?l.props=p:p!==void 0&&Object.assign(l.props,p)},"addVertex"),Lt=o(function(e,r,i){var g;const c={start:e,end:r,type:void 0,text:"",labelType:"text"};e1.info("abc78 Got edge...",c);const p=i.text;if(p!==void 0&&(c.text=ie(p.text.trim()),c.text.startsWith('"')&&c.text.endsWith('"')&&(c.text=c.text.substring(1,c.text.length-1)),c.labelType=p.type),i!==void 0&&(c.type=i.type,c.stroke=i.stroke,c.length=i.length>10?10:i.length),W.length<((g=O1.maxEdges)!=null?g:500))e1.info("Pushing edge..."),W.push(c);else throw new Error(`Edge limit exceeded. ${W.length} edges found, but the limit is ${O1.maxEdges}. +var Qe=(e,r,i)=>new Promise((u,n)=>{var c=l=>{try{g(i.next(l))}catch(d){n(d)}},p=l=>{try{g(i.throw(l))}catch(d){n(d)}},g=l=>l.done?u(l.value):Promise.resolve(l.value).then(c,p);g((i=i.apply(e,r)).next())});import{g as ft,s as At}from"./chunk-DUMQOTYW-CXsvfPAi.js";import"./chunk-YWFND7JV-Df64Lrc0.js";import{d as M1,_ as o,o as Ze,p as gt,s as kt,g as bt,b as Et,c as mt,q as St,r as Dt,l as e1,u as Ae,t as xt,v as Tt,j as x1,x as Ct,y as yt,e as Ft,z as _t}from"./Using existing ones-DVOwGlbd.js";import{c as vt}from"./channel-B37zCwJ6.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var Bt="flowchart-",Je=0,O1=M1(),k1=new Map,W=[],j1=new Map,f1=[],ge=new Map,ke=new Map,ee=0,pe=!0,H,se,re=[],ie=o(e=>Ft.sanitizeText(e,O1),"sanitizeText"),ue=o(function(e){for(const r of k1.values())if(r.id===e)return r.domId;return e},"lookUpDomId"),Vt=o(function(e,r,i,u,n,c,p={}){if(!e||e.trim().length===0)return;let g,l=k1.get(e);l===void 0&&(l={id:e,labelType:"text",domId:Bt+e+"-"+Je,styles:[],classes:[]},k1.set(e,l)),Je++,r!==void 0?(O1=M1(),g=ie(r.text.trim()),l.labelType=r.type,g.startsWith('"')&&g.endsWith('"')&&(g=g.substring(1,g.length-1)),l.text=g):l.text===void 0&&(l.text=e),i!==void 0&&(l.type=i),u!=null&&u.forEach(function(d){l.styles.push(d)}),n!=null&&n.forEach(function(d){l.classes.push(d)}),c!==void 0&&(l.dir=c),l.props===void 0?l.props=p:p!==void 0&&Object.assign(l.props,p)},"addVertex"),Lt=o(function(e,r,i){var g;const c={start:e,end:r,type:void 0,text:"",labelType:"text"};e1.info("abc78 Got edge...",c);const p=i.text;if(p!==void 0&&(c.text=ie(p.text.trim()),c.text.startsWith('"')&&c.text.endsWith('"')&&(c.text=c.text.substring(1,c.text.length-1)),c.labelType=p.type),i!==void 0&&(c.type=i.type,c.stroke=i.stroke,c.length=i.length>10?10:i.length),W.length<((g=O1.maxEdges)!=null?g:500))e1.info("Pushing edge..."),W.push(c);else throw new Error(`Edge limit exceeded. ${W.length} edges found, but the limit is ${O1.maxEdges}. Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. diff --git a/pr-preview/pr-419/assets/formatter-2WMMO6ZP-J0ZH1JfW.js b/pr-preview/pr-419/assets/formatter-2WMMO6ZP-BT36p0-D.js similarity index 99% rename from pr-preview/pr-419/assets/formatter-2WMMO6ZP-J0ZH1JfW.js rename to pr-preview/pr-419/assets/formatter-2WMMO6ZP-BT36p0-D.js index 67f598628..3f2e4ae98 100644 --- a/pr-preview/pr-419/assets/formatter-2WMMO6ZP-J0ZH1JfW.js +++ b/pr-preview/pr-419/assets/formatter-2WMMO6ZP-BT36p0-D.js @@ -1,4 +1,4 @@ -var aa=Object.defineProperty,sa=Object.defineProperties;var oa=Object.getOwnPropertyDescriptors;var ht=Object.getOwnPropertySymbols;var mn=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable;var sr=(e,t,r)=>t in e?aa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t||(t={}))mn.call(t,r)&&sr(e,r,t[r]);if(ht)for(var r of ht(t))gn.call(t,r)&&sr(e,r,t[r]);return e},A=(e,t)=>sa(e,oa(t));var or=(e,t)=>{var r={};for(var n in e)mn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ht)for(var n of ht(e))t.indexOf(n)<0&&gn.call(e,n)&&(r[n]=e[n]);return r};var Te=(e,t,r)=>(sr(e,typeof t!="symbol"?t+"":t,r),r);var _=(e,t,r)=>new Promise((n,u)=>{var i=o=>{try{s(r.next(o))}catch(l){u(l)}},a=o=>{try{s(r.throw(o))}catch(l){u(l)}},s=o=>o.done?n(o.value):Promise.resolve(o.value).then(i,a);s((r=r.apply(e,t)).next())});import{m as la}from"./index-BdmlDa2_.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./index-Ca44TZ0D.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./index-BObpwDOh.js";import"./_getPrototype-fDUIJvdn.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";var ca=Object.defineProperty,Fu=(e,t)=>{for(var r in t)ca(e,r,{get:t[r],enumerable:!0})},vu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},ce=(e,t,r)=>(vu(e,t,"read from private field"),r?r.call(e):t.get(e)),pa=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},ha=(e,t,r,n)=>(vu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),yu={};Fu(yu,{languages:()=>Zl,options:()=>tc,parsers:()=>ti,printers:()=>rc});var da=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},H=da,Pr="string",Ir="array",Or="cursor",Nt="indent",qt="align",Mr="trim",Ze="group",Pt="fill",It="if-break",Ot="indent-if-break",Rr="line-suffix",Hr="line-suffix-boundary",Ae="line",jr="label",Mt="break-parent",Eu=new Set([Or,Nt,qt,Mr,Ze,Pt,It,Ot,Rr,Hr,Ae,jr,Mt]);function Da(e){if(typeof e=="string")return Pr;if(Array.isArray(e))return Ir;if(!e)return;let{type:t}=e;if(Eu.has(t))return t}var $r=Da,fa=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function ma(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +var aa=Object.defineProperty,sa=Object.defineProperties;var oa=Object.getOwnPropertyDescriptors;var ht=Object.getOwnPropertySymbols;var mn=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable;var sr=(e,t,r)=>t in e?aa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t||(t={}))mn.call(t,r)&&sr(e,r,t[r]);if(ht)for(var r of ht(t))gn.call(t,r)&&sr(e,r,t[r]);return e},A=(e,t)=>sa(e,oa(t));var or=(e,t)=>{var r={};for(var n in e)mn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ht)for(var n of ht(e))t.indexOf(n)<0&&gn.call(e,n)&&(r[n]=e[n]);return r};var Te=(e,t,r)=>(sr(e,typeof t!="symbol"?t+"":t,r),r);var _=(e,t,r)=>new Promise((n,u)=>{var i=o=>{try{s(r.next(o))}catch(l){u(l)}},a=o=>{try{s(r.throw(o))}catch(l){u(l)}},s=o=>o.done?n(o.value):Promise.resolve(o.value).then(i,a);s((r=r.apply(e,t)).next())});import{m as la}from"./index-XNuu3Woq.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./index-Ca44TZ0D.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./index-BObpwDOh.js";import"./_getPrototype-fDUIJvdn.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";var ca=Object.defineProperty,Fu=(e,t)=>{for(var r in t)ca(e,r,{get:t[r],enumerable:!0})},vu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},ce=(e,t,r)=>(vu(e,t,"read from private field"),r?r.call(e):t.get(e)),pa=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},ha=(e,t,r,n)=>(vu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),yu={};Fu(yu,{languages:()=>Zl,options:()=>tc,parsers:()=>ti,printers:()=>rc});var da=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},H=da,Pr="string",Ir="array",Or="cursor",Nt="indent",qt="align",Mr="trim",Ze="group",Pt="fill",It="if-break",Ot="indent-if-break",Rr="line-suffix",Hr="line-suffix-boundary",Ae="line",jr="label",Mt="break-parent",Eu=new Set([Or,Nt,qt,Mr,Ze,Pt,It,Ot,Rr,Hr,Ae,jr,Mt]);function Da(e){if(typeof e=="string")return Pr;if(Array.isArray(e))return Ir;if(!e)return;let{type:t}=e;if(Eu.has(t))return t}var $r=Da,fa=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function ma(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', Expected it to be 'string' or 'object'.`;if($r(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=fa([...Eu].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'. Expected it to be ${n}.`}var ga=class extends Error{constructor(t){super(ma(t));Te(this,"name","InvalidDocError");this.doc=t}},bu=ga,Ca=()=>{},Fa=Ca;function ke(e){return{type:Nt,contents:e}}function wu(e,t){return{type:qt,contents:t,n:e}}function O(e,t={}){return Fa(t.expandedStates),{type:Ze,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function va(e){return wu(Number.NEGATIVE_INFINITY,e)}function ya(e){return wu({type:"root"},e)}function Su(e){return{type:Pt,parts:e}}function kt(e,t="",r={}){return{type:It,breakContents:e,flatContents:t,groupId:r.groupId}}function Ea(e,t){return{type:Ot,contents:e,groupId:t.groupId,negate:t.negate}}var rt={type:Mt},ba={type:Ae,hard:!0},wa={type:Ae,hard:!0,literal:!0},P={type:Ae},R={type:Ae,soft:!0},B=[ba,rt],Sa=[wa,rt];function nt(e,t){let r=[];for(let n=0;n{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},Rt=Aa;function Wr(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=u(i);return r.set(i,a),a}function u(i){switch($r(i)){case Ir:return t(i.map(n));case Pt:return t(A(E({},i),{parts:i.parts.map(n)}));case It:return t(A(E({},i),{breakContents:n(i.breakContents),flatContents:n(i.flatContents)}));case Ze:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t(A(E({},i),{contents:s,expandedStates:a}))}case qt:case Nt:case Ot:case jr:case Rr:return t(A(E({},i),{contents:n(i.contents)}));case Pr:case Or:case Mr:case Hr:case Ae:case Mt:return t(i);default:throw new bu(i)}}}function ka(e){switch($r(e)){case Pt:if(e.parts.every(t=>t===""))return"";break;case Ze:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Ze&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case qt:case Nt:case Ot:case Rr:if(!e.contents)return"";break;case It:if(!e.flatContents&&!e.breakContents)return"";break;case Ir:{let t=[];for(let r of e){if(!r)continue;let[n,...u]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Rt(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case Pr:case Or:case Mr:case Hr:case Ae:case jr:case Mt:break;default:throw new bu(e)}return e}function _a(e){return Wr(e,t=>ka(t))}function Y(e,t=Sa){return Wr(e,r=>typeof r=="string"?nt(t,r.split(` `)):r)}var Ba=class extends Error{constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`);Te(this,"name","UnexpectedNodeError");this.node=t}},xa=Ba,dt="'",Cn='"';function Ta(e,t){let r=t===!0||t===dt?dt:Cn,n=r===dt?Cn:dt,u=0,i=0;for(let a of e)a===r?u++:a===n&&i++;return u>i?n:r}var La=Ta;function Na(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var K,qa=class{constructor(e){pa(this,K,void 0),ha(this,K,new Set(e))}getLeadingWhitespaceCount(e){let t=ce(this,K),r=0;for(let n=0;n=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return ce(this,K).has(e.charAt(0))}hasTrailingWhitespace(e){return ce(this,K).has(Rt(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${Na([...ce(this,K)].join(""))}]+`,n=new RegExp(t?`(${r})`:r);return e.split(n)}hasWhitespaceCharacter(e){let t=ce(this,K);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=ce(this,K);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=ce(this,K);return Array.prototype.every.call(e,r=>t.has(r))}};K=new WeakMap;var Pa=qa,Ia=[" ",` diff --git a/pr-preview/pr-419/assets/ganttDiagram-ASEIQ4P5-78gpMbwJ.js b/pr-preview/pr-419/assets/ganttDiagram-ASEIQ4P5-HoEpCjA1.js similarity index 99% rename from pr-preview/pr-419/assets/ganttDiagram-ASEIQ4P5-78gpMbwJ.js rename to pr-preview/pr-419/assets/ganttDiagram-ASEIQ4P5-HoEpCjA1.js index bea67d747..761f1f78d 100644 --- a/pr-preview/pr-419/assets/ganttDiagram-ASEIQ4P5-78gpMbwJ.js +++ b/pr-preview/pr-419/assets/ganttDiagram-ASEIQ4P5-HoEpCjA1.js @@ -1,4 +1,4 @@ -import{aR as Qe,aS as Ge,aT as Je,aU as Ke,aV as Mn,aW as re,aX as Sn,_ as f,d as _t,s as Un,g as Fn,q as En,r as In,c as An,b as Wn,t as Yn,m as Ln,l as Gt,j as qt,k as On,e as Nn,u as Vn}from"./Using existing ones-1ACZX-0W.js";import{d as tt}from"./dayjs.min-kn1EBQqj.js";import{c as Hn,g as Pn}from"./index-Ca44TZ0D.js";import{d as Rn,a as zn}from"./customParseFormat-CECOPgIS.js";import{b as Bn,t as Ae,c as qn,a as Zn,l as Xn}from"./linear-DgCw1O8s.js";import{i as jn}from"./init-Gi6I4Gst.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";function Qn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Gn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Jn(t){return t}var Xt=1,ie=2,me=3,Zt=4,We=1e-6;function Kn(t){return"translate("+t+",0)"}function $n(t){return"translate(0,"+t+")"}function tr(t){return e=>+t(e)}function er(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function nr(){return!this.__axis}function $e(t,e){var n=[],r=null,i=null,a=6,s=6,C=3,M=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,T=t===Xt||t===Zt?-1:1,v=t===Zt||t===ie?"x":"y",I=t===Xt||t===me?Kn:$n;function b(k){var R=r==null?e.ticks?e.ticks.apply(e,n):e.domain():r,A=i==null?e.tickFormat?e.tickFormat.apply(e,n):Jn:i,et=Math.max(a,0)+C,rt=e.range(),nt=+rt[0]+M,Z=+rt[rt.length-1]+M,X=(e.bandwidth?er:tr)(e.copy(),M),$=k.selection?k.selection():k,x=$.selectAll(".domain").data([null]),N=$.selectAll(".tick").data(R,e).order(),w=N.exit(),U=N.enter().append("g").attr("class","tick"),D=N.select("line"),_=N.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),N=N.merge(U),D=D.merge(U.append("line").attr("stroke","currentColor").attr(v+"2",T*a)),_=_.merge(U.append("text").attr("fill","currentColor").attr(v,T*et).attr("dy",t===Xt?"0em":t===me?"0.71em":"0.32em")),k!==$&&(x=x.transition(k),N=N.transition(k),D=D.transition(k),_=_.transition(k),w=w.transition(k).attr("opacity",We).attr("transform",function(p){return isFinite(p=X(p))?I(p+M):this.getAttribute("transform")}),U.attr("opacity",We).attr("transform",function(p){var W=this.parentNode.__axis;return I((W&&isFinite(W=W(p))?W:X(p))+M)})),w.remove(),x.attr("d",t===Zt||t===ie?s?"M"+T*s+","+nt+"H"+M+"V"+Z+"H"+T*s:"M"+M+","+nt+"V"+Z:s?"M"+nt+","+T*s+"V"+M+"H"+Z+"V"+T*s:"M"+nt+","+M+"H"+Z),N.attr("opacity",1).attr("transform",function(p){return I(X(p)+M)}),D.attr(v+"2",T*a),_.attr(v,T*et).text(A),$.filter(nr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ie?"start":t===Zt?"end":"middle"),$.each(function(){this.__axis=X})}return b.scale=function(k){return arguments.length?(e=k,b):e},b.ticks=function(){return n=Array.from(arguments),b},b.tickArguments=function(k){return arguments.length?(n=k==null?[]:Array.from(k),b):n.slice()},b.tickValues=function(k){return arguments.length?(r=k==null?null:Array.from(k),b):r&&r.slice()},b.tickFormat=function(k){return arguments.length?(i=k,b):i},b.tickSize=function(k){return arguments.length?(a=s=+k,b):a},b.tickSizeInner=function(k){return arguments.length?(a=+k,b):a},b.tickSizeOuter=function(k){return arguments.length?(s=+k,b):s},b.tickPadding=function(k){return arguments.length?(C=+k,b):C},b.offset=function(k){return arguments.length?(M=+k,b):M},b}function rr(t){return $e(Xt,t)}function ir(t){return $e(me,t)}const ar=Math.PI/180,sr=180/Math.PI,Jt=18,tn=.96422,en=1,nn=.82521,rn=4/29,Mt=6/29,an=3*Mt*Mt,or=Mt*Mt*Mt;function sn(t){if(t instanceof lt)return new lt(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return on(t);t instanceof Je||(t=Mn(t));var e=ce(t.r),n=ce(t.g),r=ce(t.b),i=ae((.2225045*e+.7168786*n+.0606169*r)/en),a,s;return e===n&&n===r?a=s=i:(a=ae((.4360747*e+.3850649*n+.1430804*r)/tn),s=ae((.0139322*e+.0971045*n+.7141733*r)/nn)),new lt(116*i-16,500*(a-i),200*(i-s),t.opacity)}function cr(t,e,n,r){return arguments.length===1?sn(t):new lt(t,e,n,r==null?1:r)}function lt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Qe(lt,cr,Ge(Ke,{brighter(t){return new lt(this.l+Jt*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new lt(this.l-Jt*(t==null?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=tn*se(e),t=en*se(t),n=nn*se(n),new Je(oe(3.1338561*e-1.6168667*t-.4906146*n),oe(-.9787684*e+1.9161415*t+.033454*n),oe(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ae(t){return t>or?Math.pow(t,1/3):t/an+rn}function se(t){return t>Mt?t*t*t:an*(t-rn)}function oe(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ce(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function lr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof lt||(t=sn(t)),t.a===0&&t.b===0)return new ht(NaN,0(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const s=i(a),C=i.ceil(a);return a-s(e(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,C)=>{const M=[];if(a=i.ceil(a),C=C==null?1:Math.floor(C),!(a0))return M;let T;do M.push(T=new Date(+a)),e(a,C),t(a);while(TQ(s=>{if(s>=s)for(;t(s),!a(s);)s.setTime(s-1)},(s,C)=>{if(s>=s)if(C<0)for(;++C<=0;)for(;e(s,-1),!a(s););else for(;--C>=0;)for(;e(s,1),!a(s););}),n&&(i.count=(a,s)=>(le.setTime(+a),ue.setTime(+s),t(le),t(ue),Math.floor(n(le,ue))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?s=>r(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const Ut=Q(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Q(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const mt=1e3,at=mt*60,gt=at*60,yt=gt*24,ve=yt*7,Ye=yt*30,fe=yt*365,pt=Q(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());pt.range;const Yt=Q(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*at)},(t,e)=>(e-t)/at,t=>t.getMinutes());Yt.range;const hr=Q(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*at)},(t,e)=>(e-t)/at,t=>t.getUTCMinutes());hr.range;const Lt=Q(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*at)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Lt.range;const mr=Q(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());mr.range;const Tt=Q(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*at)/yt,t=>t.getDate()-1);Tt.range;const be=Q(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);be.range;const gr=Q(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));gr.range;function xt(t){return Q(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*at)/ve)}const Vt=xt(0),Ot=xt(1),cn=xt(2),ln=xt(3),vt=xt(4),un=xt(5),fn=xt(6);Vt.range;Ot.range;cn.range;ln.range;vt.range;un.range;fn.range;function wt(t){return Q(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ve)}const dn=wt(0),Kt=wt(1),yr=wt(2),kr=wt(3),Ft=wt(4),pr=wt(5),Tr=wt(6);dn.range;Kt.range;yr.range;kr.range;Ft.range;pr.range;Tr.range;const Nt=Q(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());Nt.range;const vr=Q(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());vr.range;const kt=Q(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());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Q(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const bt=Q(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());bt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Q(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});bt.range;function br(t,e,n,r,i,a){const s=[[pt,1,mt],[pt,5,5*mt],[pt,15,15*mt],[pt,30,30*mt],[a,1,at],[a,5,5*at],[a,15,15*at],[a,30,30*at],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,ve],[e,1,Ye],[e,3,3*Ye],[t,1,fe]];function C(T,v,I){const b=vet).right(s,b);if(k===s.length)return t.every(Ae(T/fe,v/fe,I));if(k===0)return Ut.every(Math.max(Ae(T,v,I),1));const[R,A]=s[b/s[k-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(S=he(It(l.y,0,1)),q=S.getUTCDay(),S=q>4||q===0?Kt.ceil(S):Kt(S),S=be.offset(S,(l.V-1)*7),l.y=S.getUTCFullYear(),l.m=S.getUTCMonth(),l.d=S.getUTCDate()+(l.w+6)%7):(S=de(It(l.y,0,1)),q=S.getDay(),S=q>4||q===0?Ot.ceil(S):Ot(S),S=Tt.offset(S,(l.V-1)*7),l.y=S.getFullYear(),l.m=S.getMonth(),l.d=S.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),q="Z"in l?he(It(l.y,0,1)).getUTCDay():de(It(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(q+5)%7:l.w+l.U*7-(q+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,he(l)):de(l)}}function w(g,E,Y,l){for(var K=0,S=E.length,q=Y.length,P,ot;K=q)return-1;if(P=E.charCodeAt(K++),P===37){if(P=E.charAt(K++),ot=$[P in Le?E.charAt(K++):P],!ot||(l=ot(g,Y,l))<0)return-1}else if(P!=Y.charCodeAt(l++))return-1}return l}function U(g,E,Y){var l=T.exec(E.slice(Y));return l?(g.p=v.get(l[0].toLowerCase()),Y+l[0].length):-1}function D(g,E,Y){var l=k.exec(E.slice(Y));return l?(g.w=R.get(l[0].toLowerCase()),Y+l[0].length):-1}function _(g,E,Y){var l=I.exec(E.slice(Y));return l?(g.w=b.get(l[0].toLowerCase()),Y+l[0].length):-1}function p(g,E,Y){var l=rt.exec(E.slice(Y));return l?(g.m=nt.get(l[0].toLowerCase()),Y+l[0].length):-1}function W(g,E,Y){var l=A.exec(E.slice(Y));return l?(g.m=et.get(l[0].toLowerCase()),Y+l[0].length):-1}function u(g,E,Y){return w(g,e,E,Y)}function h(g,E,Y){return w(g,n,E,Y)}function y(g,E,Y){return w(g,r,E,Y)}function m(g){return s[g.getDay()]}function F(g){return a[g.getDay()]}function c(g){return M[g.getMonth()]}function d(g){return C[g.getMonth()]}function o(g){return i[+(g.getHours()>=12)]}function H(g){return 1+~~(g.getMonth()/3)}function L(g){return s[g.getUTCDay()]}function V(g){return a[g.getUTCDay()]}function G(g){return M[g.getUTCMonth()]}function z(g){return C[g.getUTCMonth()]}function B(g){return i[+(g.getUTCHours()>=12)]}function st(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var E=x(g+="",Z);return E.toString=function(){return g},E},parse:function(g){var E=N(g+="",!1);return E.toString=function(){return g},E},utcFormat:function(g){var E=x(g+="",X);return E.toString=function(){return g},E},utcParse:function(g){var E=N(g+="",!0);return E.toString=function(){return g},E}}}var Le={"-":"",_:" ",0:"0"},J=/^\s*\d+/,Dr=/^%/,_r=/[\\^$*+?|[\]().{}]/g;function O(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a[e.toLowerCase(),n]))}function Sr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Oe(t,e,n){var r=J.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ne(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ar(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Wr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Yr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ve(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function He(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=J.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Pr(t,e,n){var r=Dr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Rr(t,e,n){var r=J.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=J.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Pe(t,e){return O(t.getDate(),e,2)}function Br(t,e){return O(t.getHours(),e,2)}function qr(t,e){return O(t.getHours()%12||12,e,2)}function Zr(t,e){return O(1+Tt.count(kt(t),t),e,3)}function hn(t,e){return O(t.getMilliseconds(),e,3)}function Xr(t,e){return hn(t,e)+"000"}function jr(t,e){return O(t.getMonth()+1,e,2)}function Qr(t,e){return O(t.getMinutes(),e,2)}function Gr(t,e){return O(t.getSeconds(),e,2)}function Jr(t){var e=t.getDay();return e===0?7:e}function Kr(t,e){return O(Vt.count(kt(t)-1,t),e,2)}function mn(t){var e=t.getDay();return e>=4||e===0?vt(t):vt.ceil(t)}function $r(t,e){return t=mn(t),O(vt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ti(t){return t.getDay()}function ei(t,e){return O(Ot.count(kt(t)-1,t),e,2)}function ni(t,e){return O(t.getFullYear()%100,e,2)}function ri(t,e){return t=mn(t),O(t.getFullYear()%100,e,2)}function ii(t,e){return O(t.getFullYear()%1e4,e,4)}function ai(t,e){var n=t.getDay();return t=n>=4||n===0?vt(t):vt.ceil(t),O(t.getFullYear()%1e4,e,4)}function si(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+O(e/60|0,"0",2)+O(e%60,"0",2)}function Re(t,e){return O(t.getUTCDate(),e,2)}function oi(t,e){return O(t.getUTCHours(),e,2)}function ci(t,e){return O(t.getUTCHours()%12||12,e,2)}function li(t,e){return O(1+be.count(bt(t),t),e,3)}function gn(t,e){return O(t.getUTCMilliseconds(),e,3)}function ui(t,e){return gn(t,e)+"000"}function fi(t,e){return O(t.getUTCMonth()+1,e,2)}function di(t,e){return O(t.getUTCMinutes(),e,2)}function hi(t,e){return O(t.getUTCSeconds(),e,2)}function mi(t){var e=t.getUTCDay();return e===0?7:e}function gi(t,e){return O(dn.count(bt(t)-1,t),e,2)}function yn(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function yi(t,e){return t=yn(t),O(Ft.count(bt(t),t)+(bt(t).getUTCDay()===4),e,2)}function ki(t){return t.getUTCDay()}function pi(t,e){return O(Kt.count(bt(t)-1,t),e,2)}function Ti(t,e){return O(t.getUTCFullYear()%100,e,2)}function vi(t,e){return t=yn(t),O(t.getUTCFullYear()%100,e,2)}function bi(t,e){return O(t.getUTCFullYear()%1e4,e,4)}function xi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),O(t.getUTCFullYear()%1e4,e,4)}function wi(){return"+0000"}function ze(){return"%"}function Be(t){return+t}function qe(t){return Math.floor(+t/1e3)}var Dt,$t;Ci({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 Ci(t){return Dt=Cr(t),$t=Dt.format,Dt.parse,Dt.utcFormat,Dt.utcParse,Dt}function Di(t){return new Date(t)}function _i(t){return t instanceof Date?+t:+new Date(+t)}function kn(t,e,n,r,i,a,s,C,M,T){var v=qn(),I=v.invert,b=v.domain,k=T(".%L"),R=T(":%S"),A=T("%I:%M"),et=T("%I %p"),rt=T("%a %d"),nt=T("%b %d"),Z=T("%B"),X=T("%Y");function $(x){return(M(x)4&&(k+=7),b.add(k,n));return R.diff(A,"week")+1},C.isoWeekday=function(T){return this.$utils().u(T)?this.day()||7:this.day(this.day()%7?T:T-7)};var M=C.startOf;C.startOf=function(T,v){var I=this.$utils(),b=!!I.u(v)||v;return I.p(T)==="isoweek"?b?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(T,v)}}})})(pn);var Si=pn.exports;const Ui=Pn(Si);var ye=function(){var t=f(function(W,u,h,y){for(h=h||{},y=W.length;y--;h[W[y]]=u);return h},"o"),e=[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],n=[1,26],r=[1,27],i=[1,28],a=[1,29],s=[1,30],C=[1,31],M=[1,32],T=[1,33],v=[1,34],I=[1,9],b=[1,10],k=[1,11],R=[1,12],A=[1,13],et=[1,14],rt=[1,15],nt=[1,16],Z=[1,19],X=[1,20],$=[1,21],x=[1,22],N=[1,23],w=[1,25],U=[1,35],D={trace:f(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:f(function(u,h,y,m,F,c,d){var o=c.length-1;switch(F){case 1:return c[o-1];case 2:this.$=[];break;case 3:c[o-1].push(c[o]),this.$=c[o-1];break;case 4:case 5:this.$=c[o];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=c[o].substr(18);break;case 19:m.TopAxis(),this.$=c[o].substr(8);break;case 20:m.setAxisFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 21:m.setTickInterval(c[o].substr(13)),this.$=c[o].substr(13);break;case 22:m.setExcludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 23:m.setIncludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 24:m.setTodayMarker(c[o].substr(12)),this.$=c[o].substr(12);break;case 27:m.setDiagramTitle(c[o].substr(6)),this.$=c[o].substr(6);break;case 28:this.$=c[o].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=c[o].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(c[o].substr(8)),this.$=c[o].substr(8);break;case 33:m.addTask(c[o-1],c[o]),this.$="task";break;case 34:this.$=c[o-1],m.setClickEvent(c[o-1],c[o],null);break;case 35:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],c[o]);break;case 36:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],null),m.setLink(c[o-2],c[o]);break;case 37:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-2],c[o-1]),m.setLink(c[o-3],c[o]);break;case 38:this.$=c[o-2],m.setClickEvent(c[o-2],c[o],null),m.setLink(c[o-2],c[o-1]);break;case 39:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-1],c[o]),m.setLink(c[o-3],c[o-2]);break;case 40:this.$=c[o-1],m.setLink(c[o-1],c[o]);break;case 41:case 47:this.$=c[o-1]+" "+c[o];break;case 42:case 43:case 45:this.$=c[o-2]+" "+c[o-1]+" "+c[o];break;case 44:case 46:this.$=c[o-3]+" "+c[o-2]+" "+c[o-1]+" "+c[o];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:17,12:n,13:r,14:i,15:a,16:s,17:C,18:M,19:18,20:T,21:v,22:I,23:b,24:k,25:R,26:A,27:et,28:rt,29:nt,30:Z,31:X,33:$,35:x,36:N,37:24,38:w,40:U},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:s,17:C,18:M,19:18,20:T,21:v,22:I,23:b,24:k,25:R,26:A,27:et,28:rt,29:nt,30:Z,31:X,33:$,35:x,36:N,37:24,38:w,40:U},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:f(function(u,h){if(h.recoverable)this.trace(u);else{var y=new Error(u);throw y.hash=h,y}},"parseError"),parse:f(function(u){var h=this,y=[0],m=[],F=[null],c=[],d=this.table,o="",H=0,L=0,V=2,G=1,z=c.slice.call(arguments,1),B=Object.create(this.lexer),st={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(st.yy[g]=this.yy[g]);B.setInput(u,st.yy),st.yy.lexer=B,st.yy.parser=this,typeof B.yylloc=="undefined"&&(B.yylloc={});var E=B.yylloc;c.push(E);var Y=B.options&&B.options.ranges;typeof st.yy.parseError=="function"?this.parseError=st.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(it){y.length=y.length-2*it,F.length=F.length-it,c.length=c.length-it}f(l,"popStack");function K(){var it;return it=m.pop()||B.lex()||G,typeof it!="number"&&(it instanceof Array&&(m=it,it=m.pop()),it=h.symbols_[it]||it),it}f(K,"lex");for(var S,q,P,ot,ut={},zt,ft,Ie,Bt;;){if(q=y[y.length-1],this.defaultActions[q]?P=this.defaultActions[q]:((S===null||typeof S=="undefined")&&(S=K()),P=d[q]&&d[q][S]),typeof P=="undefined"||!P.length||!P[0]){var ne="";Bt=[];for(zt in d[q])this.terminals_[zt]&&zt>V&&Bt.push("'"+this.terminals_[zt]+"'");B.showPosition?ne="Parse error on line "+(H+1)+`: +import{aR as Qe,aS as Ge,aT as Je,aU as Ke,aV as Mn,aW as re,aX as Sn,_ as f,d as _t,s as Un,g as Fn,q as En,r as In,c as An,b as Wn,t as Yn,m as Ln,l as Gt,j as qt,k as On,e as Nn,u as Vn}from"./Using existing ones-DVOwGlbd.js";import{d as tt}from"./dayjs.min-kn1EBQqj.js";import{c as Hn,g as Pn}from"./index-Ca44TZ0D.js";import{d as Rn,a as zn}from"./customParseFormat-CECOPgIS.js";import{b as Bn,t as Ae,c as qn,a as Zn,l as Xn}from"./linear-CvLLWfVT.js";import{i as jn}from"./init-Gi6I4Gst.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";function Qn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Gn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Jn(t){return t}var Xt=1,ie=2,me=3,Zt=4,We=1e-6;function Kn(t){return"translate("+t+",0)"}function $n(t){return"translate(0,"+t+")"}function tr(t){return e=>+t(e)}function er(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function nr(){return!this.__axis}function $e(t,e){var n=[],r=null,i=null,a=6,s=6,C=3,M=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,T=t===Xt||t===Zt?-1:1,v=t===Zt||t===ie?"x":"y",I=t===Xt||t===me?Kn:$n;function b(k){var R=r==null?e.ticks?e.ticks.apply(e,n):e.domain():r,A=i==null?e.tickFormat?e.tickFormat.apply(e,n):Jn:i,et=Math.max(a,0)+C,rt=e.range(),nt=+rt[0]+M,Z=+rt[rt.length-1]+M,X=(e.bandwidth?er:tr)(e.copy(),M),$=k.selection?k.selection():k,x=$.selectAll(".domain").data([null]),N=$.selectAll(".tick").data(R,e).order(),w=N.exit(),U=N.enter().append("g").attr("class","tick"),D=N.select("line"),_=N.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),N=N.merge(U),D=D.merge(U.append("line").attr("stroke","currentColor").attr(v+"2",T*a)),_=_.merge(U.append("text").attr("fill","currentColor").attr(v,T*et).attr("dy",t===Xt?"0em":t===me?"0.71em":"0.32em")),k!==$&&(x=x.transition(k),N=N.transition(k),D=D.transition(k),_=_.transition(k),w=w.transition(k).attr("opacity",We).attr("transform",function(p){return isFinite(p=X(p))?I(p+M):this.getAttribute("transform")}),U.attr("opacity",We).attr("transform",function(p){var W=this.parentNode.__axis;return I((W&&isFinite(W=W(p))?W:X(p))+M)})),w.remove(),x.attr("d",t===Zt||t===ie?s?"M"+T*s+","+nt+"H"+M+"V"+Z+"H"+T*s:"M"+M+","+nt+"V"+Z:s?"M"+nt+","+T*s+"V"+M+"H"+Z+"V"+T*s:"M"+nt+","+M+"H"+Z),N.attr("opacity",1).attr("transform",function(p){return I(X(p)+M)}),D.attr(v+"2",T*a),_.attr(v,T*et).text(A),$.filter(nr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ie?"start":t===Zt?"end":"middle"),$.each(function(){this.__axis=X})}return b.scale=function(k){return arguments.length?(e=k,b):e},b.ticks=function(){return n=Array.from(arguments),b},b.tickArguments=function(k){return arguments.length?(n=k==null?[]:Array.from(k),b):n.slice()},b.tickValues=function(k){return arguments.length?(r=k==null?null:Array.from(k),b):r&&r.slice()},b.tickFormat=function(k){return arguments.length?(i=k,b):i},b.tickSize=function(k){return arguments.length?(a=s=+k,b):a},b.tickSizeInner=function(k){return arguments.length?(a=+k,b):a},b.tickSizeOuter=function(k){return arguments.length?(s=+k,b):s},b.tickPadding=function(k){return arguments.length?(C=+k,b):C},b.offset=function(k){return arguments.length?(M=+k,b):M},b}function rr(t){return $e(Xt,t)}function ir(t){return $e(me,t)}const ar=Math.PI/180,sr=180/Math.PI,Jt=18,tn=.96422,en=1,nn=.82521,rn=4/29,Mt=6/29,an=3*Mt*Mt,or=Mt*Mt*Mt;function sn(t){if(t instanceof lt)return new lt(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return on(t);t instanceof Je||(t=Mn(t));var e=ce(t.r),n=ce(t.g),r=ce(t.b),i=ae((.2225045*e+.7168786*n+.0606169*r)/en),a,s;return e===n&&n===r?a=s=i:(a=ae((.4360747*e+.3850649*n+.1430804*r)/tn),s=ae((.0139322*e+.0971045*n+.7141733*r)/nn)),new lt(116*i-16,500*(a-i),200*(i-s),t.opacity)}function cr(t,e,n,r){return arguments.length===1?sn(t):new lt(t,e,n,r==null?1:r)}function lt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Qe(lt,cr,Ge(Ke,{brighter(t){return new lt(this.l+Jt*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new lt(this.l-Jt*(t==null?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=tn*se(e),t=en*se(t),n=nn*se(n),new Je(oe(3.1338561*e-1.6168667*t-.4906146*n),oe(-.9787684*e+1.9161415*t+.033454*n),oe(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ae(t){return t>or?Math.pow(t,1/3):t/an+rn}function se(t){return t>Mt?t*t*t:an*(t-rn)}function oe(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ce(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function lr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof lt||(t=sn(t)),t.a===0&&t.b===0)return new ht(NaN,0(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const s=i(a),C=i.ceil(a);return a-s(e(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,C)=>{const M=[];if(a=i.ceil(a),C=C==null?1:Math.floor(C),!(a0))return M;let T;do M.push(T=new Date(+a)),e(a,C),t(a);while(TQ(s=>{if(s>=s)for(;t(s),!a(s);)s.setTime(s-1)},(s,C)=>{if(s>=s)if(C<0)for(;++C<=0;)for(;e(s,-1),!a(s););else for(;--C>=0;)for(;e(s,1),!a(s););}),n&&(i.count=(a,s)=>(le.setTime(+a),ue.setTime(+s),t(le),t(ue),Math.floor(n(le,ue))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?s=>r(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const Ut=Q(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Q(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const mt=1e3,at=mt*60,gt=at*60,yt=gt*24,ve=yt*7,Ye=yt*30,fe=yt*365,pt=Q(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());pt.range;const Yt=Q(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*at)},(t,e)=>(e-t)/at,t=>t.getMinutes());Yt.range;const hr=Q(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*at)},(t,e)=>(e-t)/at,t=>t.getUTCMinutes());hr.range;const Lt=Q(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*at)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Lt.range;const mr=Q(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());mr.range;const Tt=Q(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*at)/yt,t=>t.getDate()-1);Tt.range;const be=Q(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);be.range;const gr=Q(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));gr.range;function xt(t){return Q(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*at)/ve)}const Vt=xt(0),Ot=xt(1),cn=xt(2),ln=xt(3),vt=xt(4),un=xt(5),fn=xt(6);Vt.range;Ot.range;cn.range;ln.range;vt.range;un.range;fn.range;function wt(t){return Q(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ve)}const dn=wt(0),Kt=wt(1),yr=wt(2),kr=wt(3),Ft=wt(4),pr=wt(5),Tr=wt(6);dn.range;Kt.range;yr.range;kr.range;Ft.range;pr.range;Tr.range;const Nt=Q(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());Nt.range;const vr=Q(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());vr.range;const kt=Q(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());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Q(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const bt=Q(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());bt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Q(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});bt.range;function br(t,e,n,r,i,a){const s=[[pt,1,mt],[pt,5,5*mt],[pt,15,15*mt],[pt,30,30*mt],[a,1,at],[a,5,5*at],[a,15,15*at],[a,30,30*at],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,ve],[e,1,Ye],[e,3,3*Ye],[t,1,fe]];function C(T,v,I){const b=vet).right(s,b);if(k===s.length)return t.every(Ae(T/fe,v/fe,I));if(k===0)return Ut.every(Math.max(Ae(T,v,I),1));const[R,A]=s[b/s[k-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(S=he(It(l.y,0,1)),q=S.getUTCDay(),S=q>4||q===0?Kt.ceil(S):Kt(S),S=be.offset(S,(l.V-1)*7),l.y=S.getUTCFullYear(),l.m=S.getUTCMonth(),l.d=S.getUTCDate()+(l.w+6)%7):(S=de(It(l.y,0,1)),q=S.getDay(),S=q>4||q===0?Ot.ceil(S):Ot(S),S=Tt.offset(S,(l.V-1)*7),l.y=S.getFullYear(),l.m=S.getMonth(),l.d=S.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),q="Z"in l?he(It(l.y,0,1)).getUTCDay():de(It(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(q+5)%7:l.w+l.U*7-(q+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,he(l)):de(l)}}function w(g,E,Y,l){for(var K=0,S=E.length,q=Y.length,P,ot;K=q)return-1;if(P=E.charCodeAt(K++),P===37){if(P=E.charAt(K++),ot=$[P in Le?E.charAt(K++):P],!ot||(l=ot(g,Y,l))<0)return-1}else if(P!=Y.charCodeAt(l++))return-1}return l}function U(g,E,Y){var l=T.exec(E.slice(Y));return l?(g.p=v.get(l[0].toLowerCase()),Y+l[0].length):-1}function D(g,E,Y){var l=k.exec(E.slice(Y));return l?(g.w=R.get(l[0].toLowerCase()),Y+l[0].length):-1}function _(g,E,Y){var l=I.exec(E.slice(Y));return l?(g.w=b.get(l[0].toLowerCase()),Y+l[0].length):-1}function p(g,E,Y){var l=rt.exec(E.slice(Y));return l?(g.m=nt.get(l[0].toLowerCase()),Y+l[0].length):-1}function W(g,E,Y){var l=A.exec(E.slice(Y));return l?(g.m=et.get(l[0].toLowerCase()),Y+l[0].length):-1}function u(g,E,Y){return w(g,e,E,Y)}function h(g,E,Y){return w(g,n,E,Y)}function y(g,E,Y){return w(g,r,E,Y)}function m(g){return s[g.getDay()]}function F(g){return a[g.getDay()]}function c(g){return M[g.getMonth()]}function d(g){return C[g.getMonth()]}function o(g){return i[+(g.getHours()>=12)]}function H(g){return 1+~~(g.getMonth()/3)}function L(g){return s[g.getUTCDay()]}function V(g){return a[g.getUTCDay()]}function G(g){return M[g.getUTCMonth()]}function z(g){return C[g.getUTCMonth()]}function B(g){return i[+(g.getUTCHours()>=12)]}function st(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var E=x(g+="",Z);return E.toString=function(){return g},E},parse:function(g){var E=N(g+="",!1);return E.toString=function(){return g},E},utcFormat:function(g){var E=x(g+="",X);return E.toString=function(){return g},E},utcParse:function(g){var E=N(g+="",!0);return E.toString=function(){return g},E}}}var Le={"-":"",_:" ",0:"0"},J=/^\s*\d+/,Dr=/^%/,_r=/[\\^$*+?|[\]().{}]/g;function O(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a[e.toLowerCase(),n]))}function Sr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Oe(t,e,n){var r=J.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ne(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ar(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Wr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Yr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ve(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function He(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=J.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Pr(t,e,n){var r=Dr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Rr(t,e,n){var r=J.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=J.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Pe(t,e){return O(t.getDate(),e,2)}function Br(t,e){return O(t.getHours(),e,2)}function qr(t,e){return O(t.getHours()%12||12,e,2)}function Zr(t,e){return O(1+Tt.count(kt(t),t),e,3)}function hn(t,e){return O(t.getMilliseconds(),e,3)}function Xr(t,e){return hn(t,e)+"000"}function jr(t,e){return O(t.getMonth()+1,e,2)}function Qr(t,e){return O(t.getMinutes(),e,2)}function Gr(t,e){return O(t.getSeconds(),e,2)}function Jr(t){var e=t.getDay();return e===0?7:e}function Kr(t,e){return O(Vt.count(kt(t)-1,t),e,2)}function mn(t){var e=t.getDay();return e>=4||e===0?vt(t):vt.ceil(t)}function $r(t,e){return t=mn(t),O(vt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ti(t){return t.getDay()}function ei(t,e){return O(Ot.count(kt(t)-1,t),e,2)}function ni(t,e){return O(t.getFullYear()%100,e,2)}function ri(t,e){return t=mn(t),O(t.getFullYear()%100,e,2)}function ii(t,e){return O(t.getFullYear()%1e4,e,4)}function ai(t,e){var n=t.getDay();return t=n>=4||n===0?vt(t):vt.ceil(t),O(t.getFullYear()%1e4,e,4)}function si(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+O(e/60|0,"0",2)+O(e%60,"0",2)}function Re(t,e){return O(t.getUTCDate(),e,2)}function oi(t,e){return O(t.getUTCHours(),e,2)}function ci(t,e){return O(t.getUTCHours()%12||12,e,2)}function li(t,e){return O(1+be.count(bt(t),t),e,3)}function gn(t,e){return O(t.getUTCMilliseconds(),e,3)}function ui(t,e){return gn(t,e)+"000"}function fi(t,e){return O(t.getUTCMonth()+1,e,2)}function di(t,e){return O(t.getUTCMinutes(),e,2)}function hi(t,e){return O(t.getUTCSeconds(),e,2)}function mi(t){var e=t.getUTCDay();return e===0?7:e}function gi(t,e){return O(dn.count(bt(t)-1,t),e,2)}function yn(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function yi(t,e){return t=yn(t),O(Ft.count(bt(t),t)+(bt(t).getUTCDay()===4),e,2)}function ki(t){return t.getUTCDay()}function pi(t,e){return O(Kt.count(bt(t)-1,t),e,2)}function Ti(t,e){return O(t.getUTCFullYear()%100,e,2)}function vi(t,e){return t=yn(t),O(t.getUTCFullYear()%100,e,2)}function bi(t,e){return O(t.getUTCFullYear()%1e4,e,4)}function xi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),O(t.getUTCFullYear()%1e4,e,4)}function wi(){return"+0000"}function ze(){return"%"}function Be(t){return+t}function qe(t){return Math.floor(+t/1e3)}var Dt,$t;Ci({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 Ci(t){return Dt=Cr(t),$t=Dt.format,Dt.parse,Dt.utcFormat,Dt.utcParse,Dt}function Di(t){return new Date(t)}function _i(t){return t instanceof Date?+t:+new Date(+t)}function kn(t,e,n,r,i,a,s,C,M,T){var v=qn(),I=v.invert,b=v.domain,k=T(".%L"),R=T(":%S"),A=T("%I:%M"),et=T("%I %p"),rt=T("%a %d"),nt=T("%b %d"),Z=T("%B"),X=T("%Y");function $(x){return(M(x)4&&(k+=7),b.add(k,n));return R.diff(A,"week")+1},C.isoWeekday=function(T){return this.$utils().u(T)?this.day()||7:this.day(this.day()%7?T:T-7)};var M=C.startOf;C.startOf=function(T,v){var I=this.$utils(),b=!!I.u(v)||v;return I.p(T)==="isoweek"?b?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(T,v)}}})})(pn);var Si=pn.exports;const Ui=Pn(Si);var ye=function(){var t=f(function(W,u,h,y){for(h=h||{},y=W.length;y--;h[W[y]]=u);return h},"o"),e=[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],n=[1,26],r=[1,27],i=[1,28],a=[1,29],s=[1,30],C=[1,31],M=[1,32],T=[1,33],v=[1,34],I=[1,9],b=[1,10],k=[1,11],R=[1,12],A=[1,13],et=[1,14],rt=[1,15],nt=[1,16],Z=[1,19],X=[1,20],$=[1,21],x=[1,22],N=[1,23],w=[1,25],U=[1,35],D={trace:f(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:f(function(u,h,y,m,F,c,d){var o=c.length-1;switch(F){case 1:return c[o-1];case 2:this.$=[];break;case 3:c[o-1].push(c[o]),this.$=c[o-1];break;case 4:case 5:this.$=c[o];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=c[o].substr(18);break;case 19:m.TopAxis(),this.$=c[o].substr(8);break;case 20:m.setAxisFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 21:m.setTickInterval(c[o].substr(13)),this.$=c[o].substr(13);break;case 22:m.setExcludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 23:m.setIncludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 24:m.setTodayMarker(c[o].substr(12)),this.$=c[o].substr(12);break;case 27:m.setDiagramTitle(c[o].substr(6)),this.$=c[o].substr(6);break;case 28:this.$=c[o].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=c[o].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(c[o].substr(8)),this.$=c[o].substr(8);break;case 33:m.addTask(c[o-1],c[o]),this.$="task";break;case 34:this.$=c[o-1],m.setClickEvent(c[o-1],c[o],null);break;case 35:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],c[o]);break;case 36:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],null),m.setLink(c[o-2],c[o]);break;case 37:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-2],c[o-1]),m.setLink(c[o-3],c[o]);break;case 38:this.$=c[o-2],m.setClickEvent(c[o-2],c[o],null),m.setLink(c[o-2],c[o-1]);break;case 39:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-1],c[o]),m.setLink(c[o-3],c[o-2]);break;case 40:this.$=c[o-1],m.setLink(c[o-1],c[o]);break;case 41:case 47:this.$=c[o-1]+" "+c[o];break;case 42:case 43:case 45:this.$=c[o-2]+" "+c[o-1]+" "+c[o];break;case 44:case 46:this.$=c[o-3]+" "+c[o-2]+" "+c[o-1]+" "+c[o];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:17,12:n,13:r,14:i,15:a,16:s,17:C,18:M,19:18,20:T,21:v,22:I,23:b,24:k,25:R,26:A,27:et,28:rt,29:nt,30:Z,31:X,33:$,35:x,36:N,37:24,38:w,40:U},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:s,17:C,18:M,19:18,20:T,21:v,22:I,23:b,24:k,25:R,26:A,27:et,28:rt,29:nt,30:Z,31:X,33:$,35:x,36:N,37:24,38:w,40:U},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:f(function(u,h){if(h.recoverable)this.trace(u);else{var y=new Error(u);throw y.hash=h,y}},"parseError"),parse:f(function(u){var h=this,y=[0],m=[],F=[null],c=[],d=this.table,o="",H=0,L=0,V=2,G=1,z=c.slice.call(arguments,1),B=Object.create(this.lexer),st={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(st.yy[g]=this.yy[g]);B.setInput(u,st.yy),st.yy.lexer=B,st.yy.parser=this,typeof B.yylloc=="undefined"&&(B.yylloc={});var E=B.yylloc;c.push(E);var Y=B.options&&B.options.ranges;typeof st.yy.parseError=="function"?this.parseError=st.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(it){y.length=y.length-2*it,F.length=F.length-it,c.length=c.length-it}f(l,"popStack");function K(){var it;return it=m.pop()||B.lex()||G,typeof it!="number"&&(it instanceof Array&&(m=it,it=m.pop()),it=h.symbols_[it]||it),it}f(K,"lex");for(var S,q,P,ot,ut={},zt,ft,Ie,Bt;;){if(q=y[y.length-1],this.defaultActions[q]?P=this.defaultActions[q]:((S===null||typeof S=="undefined")&&(S=K()),P=d[q]&&d[q][S]),typeof P=="undefined"||!P.length||!P[0]){var ne="";Bt=[];for(zt in d[q])this.terminals_[zt]&&zt>V&&Bt.push("'"+this.terminals_[zt]+"'");B.showPosition?ne="Parse error on line "+(H+1)+`: `+B.showPosition()+` Expecting `+Bt.join(", ")+", got '"+(this.terminals_[S]||S)+"'":ne="Parse error on line "+(H+1)+": Unexpected "+(S==G?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(ne,{text:B.match,token:this.terminals_[S]||S,line:B.yylineno,loc:E,expected:Bt})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+S);switch(P[0]){case 1:y.push(S),F.push(B.yytext),c.push(B.yylloc),y.push(P[1]),S=null,L=B.yyleng,o=B.yytext,H=B.yylineno,E=B.yylloc;break;case 2:if(ft=this.productions_[P[1]][1],ut.$=F[F.length-ft],ut._$={first_line:c[c.length-(ft||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(ft||1)].first_column,last_column:c[c.length-1].last_column},Y&&(ut._$.range=[c[c.length-(ft||1)].range[0],c[c.length-1].range[1]]),ot=this.performAction.apply(ut,[o,L,H,st.yy,P[1],F,c].concat(z)),typeof ot!="undefined")return ot;ft&&(y=y.slice(0,-1*ft*2),F=F.slice(0,-1*ft),c=c.slice(0,-1*ft)),y.push(this.productions_[P[1]][0]),F.push(ut.$),c.push(ut._$),Ie=d[y[y.length-2]][y[y.length-1]],y.push(Ie);break;case 3:return!0}}return!0},"parse")},_=function(){var W={EOF:1,parseError:f(function(h,y){if(this.yy.parser)this.yy.parser.parseError(h,y);else throw new Error(h)},"parseError"),setInput:f(function(u,h){return this.yy=h||this.yy||{},this._input=u,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:f(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var h=u.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),u},"input"),unput:f(function(u){var h=u.length,y=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var m=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),y.length-1&&(this.yylineno-=y.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:y?(y.length===m.length?this.yylloc.first_column:0)+m[m.length-y.length].length-y[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(u){this.unput(this.match.slice(u))},"less"),pastInput:f(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var u=this.pastInput(),h=new Array(u.length+1).join("-");return u+this.upcomingInput()+` diff --git a/pr-preview/pr-419/assets/gitGraph-YCYPL57B-BsO982K2.js b/pr-preview/pr-419/assets/gitGraph-YCYPL57B-BsO982K2.js deleted file mode 100644 index 31ed0f709..000000000 --- a/pr-preview/pr-419/assets/gitGraph-YCYPL57B-BsO982K2.js +++ /dev/null @@ -1 +0,0 @@ -import{G as l,f as u}from"./mermaid-parser.core-D7Lfk3oe.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./Using existing ones-1ACZX-0W.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";import"./clone-qL6R6e7B.js";export{l as GitGraphModule,u as createGitGraphServices}; diff --git a/pr-preview/pr-419/assets/gitGraph-YCYPL57B-DD6McXd7.js b/pr-preview/pr-419/assets/gitGraph-YCYPL57B-DD6McXd7.js new file mode 100644 index 000000000..adde44af5 --- /dev/null +++ b/pr-preview/pr-419/assets/gitGraph-YCYPL57B-DD6McXd7.js @@ -0,0 +1 @@ +import{G as l,f as u}from"./mermaid-parser.core-B5qxKanj.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./Using existing ones-DVOwGlbd.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";import"./clone-Bp7QSEXO.js";export{l as GitGraphModule,u as createGitGraphServices}; diff --git a/pr-preview/pr-419/assets/gitGraphDiagram-UL5UFKDR-BuQ3v15o.js b/pr-preview/pr-419/assets/gitGraphDiagram-UL5UFKDR-BQ377EDl.js similarity index 98% rename from pr-preview/pr-419/assets/gitGraphDiagram-UL5UFKDR-BuQ3v15o.js rename to pr-preview/pr-419/assets/gitGraphDiagram-UL5UFKDR-BQ377EDl.js index 1a3a52afe..57a924342 100644 --- a/pr-preview/pr-419/assets/gitGraphDiagram-UL5UFKDR-BuQ3v15o.js +++ b/pr-preview/pr-419/assets/gitGraphDiagram-UL5UFKDR-BQ377EDl.js @@ -1,4 +1,4 @@ -var tr=Object.defineProperty,ar=Object.defineProperties;var nr=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var sr=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable;var _=(a,r,t)=>r in a?tr(a,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[r]=t,W=(a,r)=>{for(var t in r||(r={}))sr.call(r,t)&&_(a,t,r[t]);if(N)for(var t of N(r))or.call(r,t)&&_(a,t,r[t]);return a},V=(a,r)=>ar(a,nr(r));var J=(a,r,t)=>new Promise((s,e)=>{var n=l=>{try{o(t.next(l))}catch(d){e(d)}},c=l=>{try{o(t.throw(l))}catch(d){e(d)}},o=l=>l.done?s(l.value):Promise.resolve(l.value).then(n,c);o((t=t.apply(a,r)).next())});import{p as cr}from"./chunk-OQCM5LHU-Bqj1NGSi.js";import{I as ir}from"./chunk-2RYQ3QTB-D277TTZy.js";import{F as dr,_ as $,d as hr,G as lr,H as $r,I as fr,l as v,s as gr,g as yr,b as pr,c as xr,q as ur,r as br,e as L,t as mr,j as wr,u as vr,J as Cr}from"./Using existing ones-1ACZX-0W.js";import{p as Er}from"./mermaid-parser.core-D7Lfk3oe.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";import"./clone-qL6R6e7B.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Br=dr.gitGraph,z=$(()=>lr(W(W({},Br),$r().gitGraph)),"getConfig"),i=new ir(()=>{const a=z(),r=a.mainBranchName,t=a.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function A(){return fr({length:7})}$(A,"getID");function Q(a,r){const t=Object.create(null);return a.reduce((s,e)=>{const n=r(e);return t[n]||(t[n]=!0,s.push(e)),s},[])}$(Q,"uniqBy");var kr=$(function(a){i.records.direction=a},"setDirection"),Lr=$(function(a){v.debug("options str",a),a=a==null?void 0:a.trim(),a=a||"{}";try{i.records.options=JSON.parse(a)}catch(r){v.error("error while parsing gitGraph options",r.message)}},"setOptions"),Tr=$(function(){return i.records.options},"getOptions"),Mr=$(function(a){let r=a.msg,t=a.id;const s=a.type;let e=a.tags;v.info("commit",r,t,s,e),v.debug("Entering commit:",r,t,s,e);const n=z();t=L.sanitizeText(t,n),r=L.sanitizeText(r,n),e=e==null?void 0:e.map(o=>L.sanitizeText(o,n));const c={id:t||i.records.seq+"-"+A(),message:r,seq:i.records.seq++,type:s!=null?s:x.NORMAL,tags:e!=null?e:[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=c,v.info("main branch",n.mainBranchName),i.records.commits.set(c.id,c),i.records.branches.set(i.records.currBranch,c.id),v.debug("in pushCommit "+c.id)},"commit"),Rr=$(function(a){let r=a.name;const t=a.order;if(r=L.sanitizeText(r,z()),i.records.branches.has(r))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 ${r}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:t}),Z(r),v.debug("in createBranch")},"branch"),Ir=$(a=>{let r=a.branch,t=a.id;const s=a.type,e=a.tags,n=z();r=L.sanitizeText(r,n),t&&(t=L.sanitizeText(t,n));const c=i.records.branches.get(i.records.currBranch),o=i.records.branches.get(r),l=c?i.records.commits.get(c):void 0,d=o?i.records.commits.get(o):void 0;if(l&&d&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const h=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},h}if(l===void 0||!l){const h=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},h}if(!i.records.branches.has(r)){const h=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},h}if(d===void 0||!d){const h=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},h}if(l===d){const h=new Error('Incorrect usage of "merge". Both branches have same head');throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},h}if(t&&i.records.commits.has(t)){const h=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom Id");throw h.hash={text:`merge ${r} ${t} ${s} ${e==null?void 0:e.join(" ")}`,token:`merge ${r} ${t} ${s} ${e==null?void 0:e.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${e==null?void 0:e.join(" ")}`]},h}const f=o||"",p={id:t||`${i.records.seq}-${A()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,f],branch:i.records.currBranch,type:x.MERGE,customType:s,customId:!!t,tags:e!=null?e:[]};i.records.head=p,i.records.commits.set(p.id,p),i.records.branches.set(i.records.currBranch,p.id),v.debug(i.records.branches),v.debug("in mergeBranch")},"merge"),qr=$(function(a){let r=a.id,t=a.targetId,s=a.tags,e=a.parent;v.debug("Entering cherryPick:",r,t,s);const n=z();if(r=L.sanitizeText(r,n),t=L.sanitizeText(t,n),s=s==null?void 0:s.map(l=>L.sanitizeText(l,n)),e=L.sanitizeText(e,n),!r||!i.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const c=i.records.commits.get(r);if(c===void 0||!c)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(c.parents)&&c.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=c.branch;if(c.type===x.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!i.records.commits.has(t)){if(o===i.records.currBranch){const p=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw p.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},p}const l=i.records.branches.get(i.records.currBranch);if(l===void 0||!l){const p=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw p.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},p}const d=i.records.commits.get(l);if(d===void 0||!d){const p=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw p.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},p}const f={id:i.records.seq+"-"+A(),message:`cherry-picked ${c==null?void 0:c.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,c.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${c.id}${c.type===x.MERGE?`|parent:${e}`:""}`]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),v.debug(i.records.branches),v.debug("in cherryPick")}},"cherryPick"),Z=$(function(a){var r;if(a=L.sanitizeText(a,z()),i.records.branches.has(a)){i.records.currBranch=a;const t=i.records.branches.get(i.records.currBranch);t===void 0||!t?i.records.head=null:i.records.head=(r=i.records.commits.get(t))!=null?r:null}else{const t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${a}")`);throw t.hash={text:`checkout ${a}`,token:`checkout ${a}`,expected:[`branch ${a}`]},t}},"checkout");function D(a,r,t){const s=a.indexOf(r);s===-1?a.push(t):a.splice(s,1,t)}$(D,"upsert");function K(a){const r=a.reduce((e,n)=>e.seq>n.seq?e:n,a[0]);let t="";a.forEach(function(e){e===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const e in i.records.branches)i.records.branches.get(e)===r.id&&s.push(e);if(v.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=i.records.commits.get(r.parents[0]);D(a,r,e),r.parents[1]&&a.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=i.records.commits.get(r.parents[0]);D(a,r,e)}}a=Q(a,e=>e.id),K(a)}$(K,"prettyPrintCommitHistory");var Or=$(function(){v.debug(i.records.commits);const a=F()[0];K([a])},"prettyPrint"),zr=$(function(){i.reset(),mr()},"clear"),Gr=$(function(){return[...i.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:V(W({},r),{order:parseFloat(`0.${t}`)})).sort((r,t)=>{var s,e;return((s=r.order)!=null?s:0)-((e=t.order)!=null?e:0)}).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Hr=$(function(){return i.records.branches},"getBranches"),Pr=$(function(){return i.records.commits},"getCommits"),F=$(function(){const a=[...i.records.commits.values()];return a.forEach(function(r){v.debug(r.id)}),a.sort((r,t)=>r.seq-t.seq),a},"getCommitsArray"),Wr=$(function(){return i.records.currBranch},"getCurrentBranch"),jr=$(function(){return i.records.direction},"getDirection"),Sr=$(function(){return i.records.head},"getHead"),U={commitType:x,getConfig:z,setDirection:kr,setOptions:Lr,getOptions:Tr,commit:Mr,branch:Rr,merge:Ir,cherryPick:qr,checkout:Z,prettyPrint:Or,clear:zr,getBranchesAsObjArray:Gr,getBranches:Hr,getCommits:Pr,getCommitsArray:F,getCurrentBranch:Wr,getDirection:jr,getHead:Sr,setAccTitle:gr,getAccTitle:yr,getAccDescription:pr,setAccDescription:xr,setDiagramTitle:ur,getDiagramTitle:br},Ar=$((a,r)=>{cr(a,r),a.dir&&r.setDirection(a.dir);for(const t of a.statements)Yr(t,r)},"populate"),Yr=$((a,r)=>{const s={Commit:$(e=>r.commit(Dr(e)),"Commit"),Branch:$(e=>r.branch(Kr(e)),"Branch"),Merge:$(e=>r.merge(Nr(e)),"Merge"),Checkout:$(e=>r.checkout(_r(e)),"Checkout"),CherryPicking:$(e=>r.cherryPick(Vr(e)),"CherryPicking")}[a.$type];s?s(a):v.error(`Unknown statement type: ${a.$type}`)},"parseStatement"),Dr=$(a=>{var t,s;return{id:a.id,msg:(t=a.message)!=null?t:"",type:a.type!==void 0?x[a.type]:x.NORMAL,tags:(s=a.tags)!=null?s:void 0}},"parseCommit"),Kr=$(a=>{var t;return{name:a.name,order:(t=a.order)!=null?t:0}},"parseBranch"),Nr=$(a=>{var t,s;return{branch:a.branch,id:(t=a.id)!=null?t:"",type:a.type!==void 0?x[a.type]:void 0,tags:(s=a.tags)!=null?s:void 0}},"parseMerge"),_r=$(a=>a.branch,"parseCheckout"),Vr=$(a=>{var t;return{id:a.id,targetId:"",tags:((t=a.tags)==null?void 0:t.length)===0?void 0:a.tags,parent:a.parent}},"parseCherryPicking"),Jr={parse:$(a=>J(void 0,null,function*(){const r=yield Er("gitGraph",a);v.debug(r),Ar(r,U)}),"parse")},Y=hr(),m=Y==null?void 0:Y.gitGraph,I=10,q=40,T=4,M=2,O=8,C=new Map,E=new Map,j=30,H=new Map,S=[],R=0,y="LR",Xr=$(()=>{C.clear(),E.clear(),H.clear(),R=0,S=[],y="LR"},"clear"),rr=$(a=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof a=="string"?a.split(/\\n|\n|/gi):a).forEach(s=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=s.trim(),r.appendChild(e)}),r},"drawText"),er=$(a=>{let r,t,s;return y==="BT"?(t=$((e,n)=>e<=n,"comparisonFunc"),s=1/0):(t=$((e,n)=>e>=n,"comparisonFunc"),s=0),a.forEach(e=>{var c,o;const n=y==="TB"||y=="BT"?(c=E.get(e))==null?void 0:c.y:(o=E.get(e))==null?void 0:o.x;n!==void 0&&t(n,s)&&(r=e,s=n)}),r},"findClosestParent"),Qr=$(a=>{let r="",t=1/0;return a.forEach(s=>{const e=E.get(s).y;e<=t&&(r=s,t=e)}),r||void 0},"findClosestParentBT"),Zr=$((a,r,t)=>{let s=t,e=t;const n=[];a.forEach(c=>{const o=r.get(c);if(!o)throw new Error(`Commit not found for key ${c}`);o.parents.length?(s=Ur(o),e=Math.max(s,e)):n.push(o),re(o,s)}),s=e,n.forEach(c=>{ee(c,s,t)}),a.forEach(c=>{const o=r.get(c);if(o!=null&&o.parents.length){const l=Qr(o.parents);s=E.get(l).y-q,s<=e&&(e=s);const d=C.get(o.branch).pos,f=s-I;E.set(o.id,{x:d,y:f})}})},"setParallelBTPos"),Fr=$(a=>{var s;const r=er(a.parents.filter(e=>e!==null));if(!r)throw new Error(`Closest parent not found for commit ${a.id}`);const t=(s=E.get(r))==null?void 0:s.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${a.id}`);return t},"findClosestParentPos"),Ur=$(a=>Fr(a)+q,"calculateCommitPosition"),re=$((a,r)=>{const t=C.get(a.branch);if(!t)throw new Error(`Branch not found for commit ${a.id}`);const s=t.pos,e=r+I;return E.set(a.id,{x:s,y:e}),{x:s,y:e}},"setCommitPosition"),ee=$((a,r,t)=>{const s=C.get(a.branch);if(!s)throw new Error(`Branch not found for commit ${a.id}`);const e=r+t,n=s.pos;E.set(a.id,{x:n,y:e})},"setRootPosition"),te=$((a,r,t,s,e,n)=>{if(n===x.HIGHLIGHT)a.append("rect").attr("x",t.x-10).attr("y",t.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%O} ${s}-outer`),a.append("rect").attr("x",t.x-6).attr("y",t.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%O} ${s}-inner`);else if(n===x.CHERRY_PICK)a.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",10).attr("class",`commit ${r.id} ${s}`),a.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),a.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),a.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`),a.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`);else{const c=a.append("circle");if(c.attr("cx",t.x),c.attr("cy",t.y),c.attr("r",r.type===x.MERGE?9:10),c.attr("class",`commit ${r.id} commit${e%O}`),n===x.MERGE){const o=a.append("circle");o.attr("cx",t.x),o.attr("cy",t.y),o.attr("r",6),o.attr("class",`commit ${s} ${r.id} commit${e%O}`)}n===x.REVERSE&&a.append("path").attr("d",`M ${t.x-5},${t.y-5}L${t.x+5},${t.y+5}M${t.x-5},${t.y+5}L${t.x+5},${t.y-5}`).attr("class",`commit ${s} ${r.id} commit${e%O}`)}},"drawCommitBullet"),ae=$((a,r,t,s)=>{var e;if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&(m!=null&&m.showCommitLabel)){const n=a.append("g"),c=n.insert("rect").attr("class","commit-label-bkg"),o=n.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=(e=o.node())==null?void 0:e.getBBox();if(l&&(c.attr("x",t.posWithOffset-l.width/2-M).attr("y",t.y+13.5).attr("width",l.width+2*M).attr("height",l.height+2*M),y==="TB"||y==="BT"?(c.attr("x",t.x-(l.width+4*T+5)).attr("y",t.y-12),o.attr("x",t.x-(l.width+4*T)).attr("y",t.y+l.height-12)):o.attr("x",t.posWithOffset-l.width/2),m.rotateCommitLabel))if(y==="TB"||y==="BT")o.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),c.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const d=-7.5-(l.width+10)/25*9.5,f=10+l.width/25*8.5;n.attr("transform","translate("+d+", "+f+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),ne=$((a,r,t,s)=>{var e;if(r.tags.length>0){let n=0,c=0,o=0;const l=[];for(const d of r.tags.reverse()){const f=a.insert("polygon"),p=a.append("circle"),h=a.append("text").attr("y",t.y-16-n).attr("class","tag-label").text(d),g=(e=h.node())==null?void 0:e.getBBox();if(!g)throw new Error("Tag bbox not found");c=Math.max(c,g.width),o=Math.max(o,g.height),h.attr("x",t.posWithOffset-g.width/2),l.push({tag:h,hole:p,rect:f,yOffset:n}),n+=20}for(const{tag:d,hole:f,rect:p,yOffset:h}of l){const g=o/2,u=t.y-19.2-h;if(p.attr("class","tag-label-bkg").attr("points",` +var tr=Object.defineProperty,ar=Object.defineProperties;var nr=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var sr=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable;var _=(a,r,t)=>r in a?tr(a,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[r]=t,W=(a,r)=>{for(var t in r||(r={}))sr.call(r,t)&&_(a,t,r[t]);if(N)for(var t of N(r))or.call(r,t)&&_(a,t,r[t]);return a},V=(a,r)=>ar(a,nr(r));var J=(a,r,t)=>new Promise((s,e)=>{var n=l=>{try{o(t.next(l))}catch(d){e(d)}},c=l=>{try{o(t.throw(l))}catch(d){e(d)}},o=l=>l.done?s(l.value):Promise.resolve(l.value).then(n,c);o((t=t.apply(a,r)).next())});import{p as cr}from"./chunk-OQCM5LHU-BNRaZOS_.js";import{I as ir}from"./chunk-2RYQ3QTB-Bwu55N5N.js";import{F as dr,_ as $,d as hr,G as lr,H as $r,I as fr,l as v,s as gr,g as yr,b as pr,c as xr,q as ur,r as br,e as L,t as mr,j as wr,u as vr,J as Cr}from"./Using existing ones-DVOwGlbd.js";import{p as Er}from"./mermaid-parser.core-B5qxKanj.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";import"./clone-Bp7QSEXO.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Br=dr.gitGraph,z=$(()=>lr(W(W({},Br),$r().gitGraph)),"getConfig"),i=new ir(()=>{const a=z(),r=a.mainBranchName,t=a.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function A(){return fr({length:7})}$(A,"getID");function Q(a,r){const t=Object.create(null);return a.reduce((s,e)=>{const n=r(e);return t[n]||(t[n]=!0,s.push(e)),s},[])}$(Q,"uniqBy");var kr=$(function(a){i.records.direction=a},"setDirection"),Lr=$(function(a){v.debug("options str",a),a=a==null?void 0:a.trim(),a=a||"{}";try{i.records.options=JSON.parse(a)}catch(r){v.error("error while parsing gitGraph options",r.message)}},"setOptions"),Tr=$(function(){return i.records.options},"getOptions"),Mr=$(function(a){let r=a.msg,t=a.id;const s=a.type;let e=a.tags;v.info("commit",r,t,s,e),v.debug("Entering commit:",r,t,s,e);const n=z();t=L.sanitizeText(t,n),r=L.sanitizeText(r,n),e=e==null?void 0:e.map(o=>L.sanitizeText(o,n));const c={id:t||i.records.seq+"-"+A(),message:r,seq:i.records.seq++,type:s!=null?s:x.NORMAL,tags:e!=null?e:[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=c,v.info("main branch",n.mainBranchName),i.records.commits.set(c.id,c),i.records.branches.set(i.records.currBranch,c.id),v.debug("in pushCommit "+c.id)},"commit"),Rr=$(function(a){let r=a.name;const t=a.order;if(r=L.sanitizeText(r,z()),i.records.branches.has(r))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 ${r}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:t}),Z(r),v.debug("in createBranch")},"branch"),Ir=$(a=>{let r=a.branch,t=a.id;const s=a.type,e=a.tags,n=z();r=L.sanitizeText(r,n),t&&(t=L.sanitizeText(t,n));const c=i.records.branches.get(i.records.currBranch),o=i.records.branches.get(r),l=c?i.records.commits.get(c):void 0,d=o?i.records.commits.get(o):void 0;if(l&&d&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const h=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},h}if(l===void 0||!l){const h=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},h}if(!i.records.branches.has(r)){const h=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},h}if(d===void 0||!d){const h=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},h}if(l===d){const h=new Error('Incorrect usage of "merge". Both branches have same head');throw h.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},h}if(t&&i.records.commits.has(t)){const h=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom Id");throw h.hash={text:`merge ${r} ${t} ${s} ${e==null?void 0:e.join(" ")}`,token:`merge ${r} ${t} ${s} ${e==null?void 0:e.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${e==null?void 0:e.join(" ")}`]},h}const f=o||"",p={id:t||`${i.records.seq}-${A()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,f],branch:i.records.currBranch,type:x.MERGE,customType:s,customId:!!t,tags:e!=null?e:[]};i.records.head=p,i.records.commits.set(p.id,p),i.records.branches.set(i.records.currBranch,p.id),v.debug(i.records.branches),v.debug("in mergeBranch")},"merge"),qr=$(function(a){let r=a.id,t=a.targetId,s=a.tags,e=a.parent;v.debug("Entering cherryPick:",r,t,s);const n=z();if(r=L.sanitizeText(r,n),t=L.sanitizeText(t,n),s=s==null?void 0:s.map(l=>L.sanitizeText(l,n)),e=L.sanitizeText(e,n),!r||!i.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const c=i.records.commits.get(r);if(c===void 0||!c)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(c.parents)&&c.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=c.branch;if(c.type===x.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!i.records.commits.has(t)){if(o===i.records.currBranch){const p=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw p.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},p}const l=i.records.branches.get(i.records.currBranch);if(l===void 0||!l){const p=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw p.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},p}const d=i.records.commits.get(l);if(d===void 0||!d){const p=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw p.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},p}const f={id:i.records.seq+"-"+A(),message:`cherry-picked ${c==null?void 0:c.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,c.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${c.id}${c.type===x.MERGE?`|parent:${e}`:""}`]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),v.debug(i.records.branches),v.debug("in cherryPick")}},"cherryPick"),Z=$(function(a){var r;if(a=L.sanitizeText(a,z()),i.records.branches.has(a)){i.records.currBranch=a;const t=i.records.branches.get(i.records.currBranch);t===void 0||!t?i.records.head=null:i.records.head=(r=i.records.commits.get(t))!=null?r:null}else{const t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${a}")`);throw t.hash={text:`checkout ${a}`,token:`checkout ${a}`,expected:[`branch ${a}`]},t}},"checkout");function D(a,r,t){const s=a.indexOf(r);s===-1?a.push(t):a.splice(s,1,t)}$(D,"upsert");function K(a){const r=a.reduce((e,n)=>e.seq>n.seq?e:n,a[0]);let t="";a.forEach(function(e){e===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const e in i.records.branches)i.records.branches.get(e)===r.id&&s.push(e);if(v.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=i.records.commits.get(r.parents[0]);D(a,r,e),r.parents[1]&&a.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=i.records.commits.get(r.parents[0]);D(a,r,e)}}a=Q(a,e=>e.id),K(a)}$(K,"prettyPrintCommitHistory");var Or=$(function(){v.debug(i.records.commits);const a=F()[0];K([a])},"prettyPrint"),zr=$(function(){i.reset(),mr()},"clear"),Gr=$(function(){return[...i.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:V(W({},r),{order:parseFloat(`0.${t}`)})).sort((r,t)=>{var s,e;return((s=r.order)!=null?s:0)-((e=t.order)!=null?e:0)}).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Hr=$(function(){return i.records.branches},"getBranches"),Pr=$(function(){return i.records.commits},"getCommits"),F=$(function(){const a=[...i.records.commits.values()];return a.forEach(function(r){v.debug(r.id)}),a.sort((r,t)=>r.seq-t.seq),a},"getCommitsArray"),Wr=$(function(){return i.records.currBranch},"getCurrentBranch"),jr=$(function(){return i.records.direction},"getDirection"),Sr=$(function(){return i.records.head},"getHead"),U={commitType:x,getConfig:z,setDirection:kr,setOptions:Lr,getOptions:Tr,commit:Mr,branch:Rr,merge:Ir,cherryPick:qr,checkout:Z,prettyPrint:Or,clear:zr,getBranchesAsObjArray:Gr,getBranches:Hr,getCommits:Pr,getCommitsArray:F,getCurrentBranch:Wr,getDirection:jr,getHead:Sr,setAccTitle:gr,getAccTitle:yr,getAccDescription:pr,setAccDescription:xr,setDiagramTitle:ur,getDiagramTitle:br},Ar=$((a,r)=>{cr(a,r),a.dir&&r.setDirection(a.dir);for(const t of a.statements)Yr(t,r)},"populate"),Yr=$((a,r)=>{const s={Commit:$(e=>r.commit(Dr(e)),"Commit"),Branch:$(e=>r.branch(Kr(e)),"Branch"),Merge:$(e=>r.merge(Nr(e)),"Merge"),Checkout:$(e=>r.checkout(_r(e)),"Checkout"),CherryPicking:$(e=>r.cherryPick(Vr(e)),"CherryPicking")}[a.$type];s?s(a):v.error(`Unknown statement type: ${a.$type}`)},"parseStatement"),Dr=$(a=>{var t,s;return{id:a.id,msg:(t=a.message)!=null?t:"",type:a.type!==void 0?x[a.type]:x.NORMAL,tags:(s=a.tags)!=null?s:void 0}},"parseCommit"),Kr=$(a=>{var t;return{name:a.name,order:(t=a.order)!=null?t:0}},"parseBranch"),Nr=$(a=>{var t,s;return{branch:a.branch,id:(t=a.id)!=null?t:"",type:a.type!==void 0?x[a.type]:void 0,tags:(s=a.tags)!=null?s:void 0}},"parseMerge"),_r=$(a=>a.branch,"parseCheckout"),Vr=$(a=>{var t;return{id:a.id,targetId:"",tags:((t=a.tags)==null?void 0:t.length)===0?void 0:a.tags,parent:a.parent}},"parseCherryPicking"),Jr={parse:$(a=>J(void 0,null,function*(){const r=yield Er("gitGraph",a);v.debug(r),Ar(r,U)}),"parse")},Y=hr(),m=Y==null?void 0:Y.gitGraph,I=10,q=40,T=4,M=2,O=8,C=new Map,E=new Map,j=30,H=new Map,S=[],R=0,y="LR",Xr=$(()=>{C.clear(),E.clear(),H.clear(),R=0,S=[],y="LR"},"clear"),rr=$(a=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof a=="string"?a.split(/\\n|\n|/gi):a).forEach(s=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=s.trim(),r.appendChild(e)}),r},"drawText"),er=$(a=>{let r,t,s;return y==="BT"?(t=$((e,n)=>e<=n,"comparisonFunc"),s=1/0):(t=$((e,n)=>e>=n,"comparisonFunc"),s=0),a.forEach(e=>{var c,o;const n=y==="TB"||y=="BT"?(c=E.get(e))==null?void 0:c.y:(o=E.get(e))==null?void 0:o.x;n!==void 0&&t(n,s)&&(r=e,s=n)}),r},"findClosestParent"),Qr=$(a=>{let r="",t=1/0;return a.forEach(s=>{const e=E.get(s).y;e<=t&&(r=s,t=e)}),r||void 0},"findClosestParentBT"),Zr=$((a,r,t)=>{let s=t,e=t;const n=[];a.forEach(c=>{const o=r.get(c);if(!o)throw new Error(`Commit not found for key ${c}`);o.parents.length?(s=Ur(o),e=Math.max(s,e)):n.push(o),re(o,s)}),s=e,n.forEach(c=>{ee(c,s,t)}),a.forEach(c=>{const o=r.get(c);if(o!=null&&o.parents.length){const l=Qr(o.parents);s=E.get(l).y-q,s<=e&&(e=s);const d=C.get(o.branch).pos,f=s-I;E.set(o.id,{x:d,y:f})}})},"setParallelBTPos"),Fr=$(a=>{var s;const r=er(a.parents.filter(e=>e!==null));if(!r)throw new Error(`Closest parent not found for commit ${a.id}`);const t=(s=E.get(r))==null?void 0:s.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${a.id}`);return t},"findClosestParentPos"),Ur=$(a=>Fr(a)+q,"calculateCommitPosition"),re=$((a,r)=>{const t=C.get(a.branch);if(!t)throw new Error(`Branch not found for commit ${a.id}`);const s=t.pos,e=r+I;return E.set(a.id,{x:s,y:e}),{x:s,y:e}},"setCommitPosition"),ee=$((a,r,t)=>{const s=C.get(a.branch);if(!s)throw new Error(`Branch not found for commit ${a.id}`);const e=r+t,n=s.pos;E.set(a.id,{x:n,y:e})},"setRootPosition"),te=$((a,r,t,s,e,n)=>{if(n===x.HIGHLIGHT)a.append("rect").attr("x",t.x-10).attr("y",t.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%O} ${s}-outer`),a.append("rect").attr("x",t.x-6).attr("y",t.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%O} ${s}-inner`);else if(n===x.CHERRY_PICK)a.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",10).attr("class",`commit ${r.id} ${s}`),a.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),a.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),a.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`),a.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`);else{const c=a.append("circle");if(c.attr("cx",t.x),c.attr("cy",t.y),c.attr("r",r.type===x.MERGE?9:10),c.attr("class",`commit ${r.id} commit${e%O}`),n===x.MERGE){const o=a.append("circle");o.attr("cx",t.x),o.attr("cy",t.y),o.attr("r",6),o.attr("class",`commit ${s} ${r.id} commit${e%O}`)}n===x.REVERSE&&a.append("path").attr("d",`M ${t.x-5},${t.y-5}L${t.x+5},${t.y+5}M${t.x-5},${t.y+5}L${t.x+5},${t.y-5}`).attr("class",`commit ${s} ${r.id} commit${e%O}`)}},"drawCommitBullet"),ae=$((a,r,t,s)=>{var e;if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&(m!=null&&m.showCommitLabel)){const n=a.append("g"),c=n.insert("rect").attr("class","commit-label-bkg"),o=n.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=(e=o.node())==null?void 0:e.getBBox();if(l&&(c.attr("x",t.posWithOffset-l.width/2-M).attr("y",t.y+13.5).attr("width",l.width+2*M).attr("height",l.height+2*M),y==="TB"||y==="BT"?(c.attr("x",t.x-(l.width+4*T+5)).attr("y",t.y-12),o.attr("x",t.x-(l.width+4*T)).attr("y",t.y+l.height-12)):o.attr("x",t.posWithOffset-l.width/2),m.rotateCommitLabel))if(y==="TB"||y==="BT")o.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),c.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const d=-7.5-(l.width+10)/25*9.5,f=10+l.width/25*8.5;n.attr("transform","translate("+d+", "+f+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),ne=$((a,r,t,s)=>{var e;if(r.tags.length>0){let n=0,c=0,o=0;const l=[];for(const d of r.tags.reverse()){const f=a.insert("polygon"),p=a.append("circle"),h=a.append("text").attr("y",t.y-16-n).attr("class","tag-label").text(d),g=(e=h.node())==null?void 0:e.getBBox();if(!g)throw new Error("Tag bbox not found");c=Math.max(c,g.width),o=Math.max(o,g.height),h.attr("x",t.posWithOffset-g.width/2),l.push({tag:h,hole:p,rect:f,yOffset:n}),n+=20}for(const{tag:d,hole:f,rect:p,yOffset:h}of l){const g=o/2,u=t.y-19.2-h;if(p.attr("class","tag-label-bkg").attr("points",` ${s-c/2-T/2},${u+M} ${s-c/2-T/2},${u-M} ${t.posWithOffset-c/2-T},${u-g-M} diff --git a/pr-preview/pr-419/assets/graph-BbauKfQB.js b/pr-preview/pr-419/assets/graph-wuI2A7_P.js similarity index 97% rename from pr-preview/pr-419/assets/graph-BbauKfQB.js rename to pr-preview/pr-419/assets/graph-wuI2A7_P.js index 16de4837e..f8e68fefc 100644 --- a/pr-preview/pr-419/assets/graph-BbauKfQB.js +++ b/pr-preview/pr-419/assets/graph-wuI2A7_P.js @@ -1 +1 @@ -import{a as O,c as j,h as u,k as l,f as c,d as a,i as f,v as p,r as F}from"./_baseUniq-DLWEyx0q.js";import{ay as y,az as P,aA as m,aB as E,aC as C}from"./Using existing ones-1ACZX-0W.js";var M=y(function(d){return O(j(d,1,P,!0))}),A="\0",o="\0",L="";class D{constructor(e={}){this._isDirected=u(e,"directed")?e.directed:!0,this._isMultigraph=u(e,"multigraph")?e.multigraph:!1,this._isCompound=u(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=m(void 0),this._defaultEdgeLabelFn=m(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return E(e)||(e=m(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return l(this._nodes)}sources(){var e=this;return c(this.nodes(),function(t){return C(e._in[t])})}sinks(){var e=this;return c(this.nodes(),function(t){return C(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return a(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return u(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=o,this._children[e]={},this._children[o][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return u(this._nodes,e)}removeNode(e){var t=this;if(u(this._nodes,e)){var s=function(i){t.removeEdge(t._edgeObjs[i])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],a(this.children(e),function(i){t.setParent(i)}),delete this._children[e]),a(l(this._in[e]),s),delete this._in[e],delete this._preds[e],a(l(this._out[e]),s),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(f(t))t=o;else{t+="";for(var s=t;!f(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==o)return t}}children(e){if(f(e)&&(e=o),this._isCompound){var t=this._children[e];if(t)return l(t)}else{if(e===o)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return l(t)}successors(e){var t=this._sucs[e];if(t)return l(t)}neighbors(e){var t=this.predecessors(e);if(t)return M(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;a(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),a(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&a(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return E(e)||(e=m(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return F(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,f(s)||(s=""+s);var h=g(this._isDirected,e,t,s);if(u(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!f(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var _=G(this._isDirected,e,t,s);return e=_.v,t=_.w,Object.freeze(_),this._edgeObjs[h]=_,N(this._preds[t],e),N(this._sucs[e],t),this._in[t][h]=_,this._out[e][h]=_,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?b(this._isDirected,arguments[0]):g(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?b(this._isDirected,arguments[0]):g(this._isDirected,e,t,s);return u(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?b(this._isDirected,arguments[0]):g(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],v(this._preds[t],e),v(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?c(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?c(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}D.prototype._nodeCount=0;D.prototype._edgeCount=0;function N(d,e){d[e]?d[e]++:d[e]=1}function v(d,e){--d[e]||delete d[e]}function g(d,e,t,s){var i=""+e,r=""+t;if(!d&&i>r){var n=i;i=r,r=n}return i+L+r+L+(f(s)?A:s)}function G(d,e,t,s){var i=""+e,r=""+t;if(!d&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function b(d,e){return g(d,e.v,e.w,e.name)}export{D as G}; +import{a as O,c as j,h as u,k as l,f as c,d as a,i as f,v as p,r as F}from"./_baseUniq-JfSCQjs8.js";import{ay as y,az as P,aA as m,aB as E,aC as C}from"./Using existing ones-DVOwGlbd.js";var M=y(function(d){return O(j(d,1,P,!0))}),A="\0",o="\0",L="";class D{constructor(e={}){this._isDirected=u(e,"directed")?e.directed:!0,this._isMultigraph=u(e,"multigraph")?e.multigraph:!1,this._isCompound=u(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=m(void 0),this._defaultEdgeLabelFn=m(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return E(e)||(e=m(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return l(this._nodes)}sources(){var e=this;return c(this.nodes(),function(t){return C(e._in[t])})}sinks(){var e=this;return c(this.nodes(),function(t){return C(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return a(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return u(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=o,this._children[e]={},this._children[o][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return u(this._nodes,e)}removeNode(e){var t=this;if(u(this._nodes,e)){var s=function(i){t.removeEdge(t._edgeObjs[i])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],a(this.children(e),function(i){t.setParent(i)}),delete this._children[e]),a(l(this._in[e]),s),delete this._in[e],delete this._preds[e],a(l(this._out[e]),s),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(f(t))t=o;else{t+="";for(var s=t;!f(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==o)return t}}children(e){if(f(e)&&(e=o),this._isCompound){var t=this._children[e];if(t)return l(t)}else{if(e===o)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return l(t)}successors(e){var t=this._sucs[e];if(t)return l(t)}neighbors(e){var t=this.predecessors(e);if(t)return M(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;a(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),a(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&a(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return E(e)||(e=m(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return F(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,f(s)||(s=""+s);var h=g(this._isDirected,e,t,s);if(u(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!f(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var _=G(this._isDirected,e,t,s);return e=_.v,t=_.w,Object.freeze(_),this._edgeObjs[h]=_,N(this._preds[t],e),N(this._sucs[e],t),this._in[t][h]=_,this._out[e][h]=_,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?b(this._isDirected,arguments[0]):g(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?b(this._isDirected,arguments[0]):g(this._isDirected,e,t,s);return u(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?b(this._isDirected,arguments[0]):g(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],v(this._preds[t],e),v(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?c(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?c(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}D.prototype._nodeCount=0;D.prototype._edgeCount=0;function N(d,e){d[e]?d[e]++:d[e]=1}function v(d,e){--d[e]||delete d[e]}function g(d,e,t,s){var i=""+e,r=""+t;if(!d&&i>r){var n=i;i=r,r=n}return i+L+r+L+(f(s)?A:s)}function G(d,e,t,s){var i=""+e,r=""+t;if(!d&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function b(d,e){return g(d,e.v,e.w,e.name)}export{D as G}; diff --git a/pr-preview/pr-419/assets/iframe-CrQm7WUj.js b/pr-preview/pr-419/assets/iframe-BNbdtpq9.js similarity index 96% rename from pr-preview/pr-419/assets/iframe-CrQm7WUj.js rename to pr-preview/pr-419/assets/iframe-BNbdtpq9.js index 6e38d3de4..86b1abd10 100644 --- a/pr-preview/pr-419/assets/iframe-CrQm7WUj.js +++ b/pr-preview/pr-419/assets/iframe-BNbdtpq9.js @@ -1,7 +1,7 @@ -var o=(r,p,_)=>new Promise((m,e)=>{var s=n=>{try{a(_.next(n))}catch(u){e(u)}},i=n=>{try{a(_.throw(n))}catch(u){e(u)}},a=n=>n.done?m(n.value):Promise.resolve(n.value).then(s,i);a((_=_.apply(r,p)).next())});import"../sb-preview/runtime.js";(function(){const p=document.createElement("link").relList;if(p&&p.supports&&p.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))m(e);new MutationObserver(e=>{for(const s of e)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&m(i)}).observe(document,{childList:!0,subtree:!0});function _(e){const s={};return e.integrity&&(s.integrity=e.integrity),e.referrerPolicy&&(s.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?s.credentials="include":e.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function m(e){if(e.ep)return;e.ep=!0;const s=_(e);fetch(e.href,s)}})();const R="modulepreload",P=function(r,p){return new URL(r,p).href},O={},t=function(p,_,m){let e=Promise.resolve();if(_&&_.length>0){const s=document.getElementsByTagName("link");e=Promise.all(_.map(i=>{if(i=P(i,m),i in O)return;O[i]=!0;const a=i.endsWith(".css"),n=a?'[rel="stylesheet"]':"";if(!!m)for(let d=s.length-1;d>=0;d--){const E=s[d];if(E.href===i&&(!a||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${n}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":R,a||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),a)return new Promise((d,E)=>{c.addEventListener("load",d),c.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${i}`)))})}))}return e.then(()=>p()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},{createBrowserChannel:I}=__STORYBOOK_MODULE_CHANNELS__,{addons:v}=__STORYBOOK_MODULE_PREVIEW_API__,l=I({page:"preview"});v.setChannel(l);window.__STORYBOOK_ADDONS_CHANNEL__=l;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=l);const D={"./docs/About/Changelog.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Changelog-DCkbp4G-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url)}),"./docs/About/FAQ.mdx":()=>o(void 0,null,function*(){return t(()=>import("./FAQ-DEyWZawx.js"),__vite__mapDeps([13,1,2,3]),import.meta.url)}),"./docs/About/Introduction.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Introduction-BnsAvIha.js"),__vite__mapDeps([14,1,2,3]),import.meta.url)}),"./docs/Candidate Components/Directory/Date Range Filter/Documentation.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Documentation-BXVohtKQ.js"),__vite__mapDeps([15,1,2,3,4,5,6,7,8,9,10,11,12,16,17,18,19,20,21,22,23,24,25,26,27,28]),import.meta.url)}),"./docs/Candidate Components/Directory/Date Range Filter/SelectWithRangePicker.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./SelectWithRangePicker.stories-CVdxb989.js").then(r=>r.S),__vite__mapDeps([16,1,2,17,18,19,20,21,22,6,23,5,8,24,11,10,25,26,27,28]),import.meta.url)}),"./docs/Candidate Components/Introduction.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Introduction-CLXMyLcH.js"),__vite__mapDeps([29,1,2,3]),import.meta.url)}),"./docs/Component Process/Candidate Components/Introducing new ones.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Introducing new ones-T6MNfHwP.js"),__vite__mapDeps([30,1,2,3]),import.meta.url)}),"./docs/Component Process/Candidate Components/Promoting to a component.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Promoting to a component-CZrocmvh.js"),__vite__mapDeps([31,1,2,3]),import.meta.url)}),"./docs/Component Process/Candidate Components/Using existing ones.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Using existing ones-1ACZX-0W.js").then(r=>r.bx),__vite__mapDeps([32,1,2,3,17,12,23]),import.meta.url)}),"./docs/Component Process/Components/Change process.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Change process-216Wr30R.js"),__vite__mapDeps([33,1,2,3]),import.meta.url)}),"./docs/Component Process/Components/Using components.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Using components-DpGTYKcm.js"),__vite__mapDeps([34,1,2,3]),import.meta.url)}),"./docs/Component Process/Design Templates/Introduction.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Introduction-BFyvVCpi.js"),__vite__mapDeps([35,1,2,3]),import.meta.url)}),"./docs/Component Process/Introduction.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Introduction-Caom7aEM.js"),__vite__mapDeps([36,1,2,3]),import.meta.url)}),"./docs/Contributing/Commits.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Commits-mQFBa5QQ.js"),__vite__mapDeps([37,1,2,3]),import.meta.url)}),"./docs/Contributing/Introduction.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Introduction-DHtdZ5cg.js"),__vite__mapDeps([38,1,2,3]),import.meta.url)}),"./docs/Contributing/Maintainers.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Maintainers-DAwaVQr2.js"),__vite__mapDeps([39,1,2,3]),import.meta.url)}),"./docs/Contributing/Release Process.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Release Process-aG-udTYc.js"),__vite__mapDeps([40,1,2,3]),import.meta.url)}),"./docs/Contributing/Testing in the platforms.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Testing in the platforms-2-W9Xdv5.js"),__vite__mapDeps([41,1,2,3]),import.meta.url)}),"./docs/Design Templates/Directory.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Directory-CU-XwiKA.js"),__vite__mapDeps([42,1,2,3]),import.meta.url)}),"./docs/Foundations/Colors.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Colors-DO2S-94w.js"),__vite__mapDeps([43,1,2,3]),import.meta.url)}),"./docs/Foundations/Errors.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Errors-B9mKyRL_.js"),__vite__mapDeps([44,1,2,3]),import.meta.url)}),"./docs/Foundations/Icons.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Icons-CL6cHsW1.js"),__vite__mapDeps([45,1,2,3]),import.meta.url)}),"./docs/Foundations/Loading.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Loading-ClQHb6l_.js"),__vite__mapDeps([46,1,2,3,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./docs/Foundations/Typography.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Typography-CdzpG-vN.js"),__vite__mapDeps([47,1,2,3]),import.meta.url)}),"./src/components/data-display/Avatar/Avatar.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Avatar.stories-_gkokeKk.js"),__vite__mapDeps([48,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Badge/Badge.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Badge.stories-3vdIWofK.js"),__vite__mapDeps([50,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Calendar/Calendar.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Calendar.stories-q4o1f5PA.js"),__vite__mapDeps([51,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Card/Card.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Card.stories-hge4uqQE.js"),__vite__mapDeps([52,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Carousel/Carousel.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Carousel.stories-BNsbO7Dm.js"),__vite__mapDeps([53,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Collapse/Collapse.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Collapse.stories-epbKGaWN.js"),__vite__mapDeps([54,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,55]),import.meta.url)}),"./src/components/data-display/Descriptions/Descriptions.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Descriptions.stories-nnhLbE6z.js"),__vite__mapDeps([56,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Empty/Empty.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Empty.stories-CUM8Eo5G.js"),__vite__mapDeps([57,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Image/Image.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Image.stories-D3cc9alV.js"),__vite__mapDeps([58,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/List/List.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./List.stories-DCiZ8WVU.js"),__vite__mapDeps([59,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Popover/Popover.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Popover.stories-YRB_gU11.js"),__vite__mapDeps([60,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/QRCode/QRCode.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./QRCode.stories-BUmpE4c7.js"),__vite__mapDeps([61,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Segmented/Segmented.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Segmented.stories-D_uzF0n_.js"),__vite__mapDeps([62,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Statistic/Statistic.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Statistic.stories-Cui2Ellm.js"),__vite__mapDeps([63,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Table/Table.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Table.stories-CiJc5Mg8.js"),__vite__mapDeps([64,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Tabs/Tabs.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Tabs.stories-BZ6M5Sau.js"),__vite__mapDeps([65,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Tag/Tag.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Tag.stories-DCphVgVE.js"),__vite__mapDeps([66,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,27,28]),import.meta.url)}),"./src/components/data-display/Timeline/Timeline.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Timeline.stories-Bf8fFUxJ.js"),__vite__mapDeps([67,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Tooltip/Tooltip.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Tooltip.stories-d9J5kivK.js"),__vite__mapDeps([68,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Tour/Tour.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Tour.stories-CVwGOuxe.js"),__vite__mapDeps([69,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Tree/Tree.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Tree.stories-nVXKVCDI.js"),__vite__mapDeps([70,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/AutoComplete/AutoComplete.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./AutoComplete.stories-CJ1pr6oM.js"),__vite__mapDeps([71,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-entry/Cascader/Cascader.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Cascader.stories-KBCq5Qc3.js"),__vite__mapDeps([72,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-entry/Checkbox/Checkbox.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Checkbox.stories-ZAUs02LH.js"),__vite__mapDeps([73,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,27,28]),import.meta.url)}),"./src/components/data-entry/ColorPicker/ColorPicker.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./ColorPicker.stories-CD4t87lw.js"),__vite__mapDeps([74,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/DatePicker/DatePicker.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./DatePicker.stories-BgZXeiJI.js"),__vite__mapDeps([75,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Form/Form.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Form.stories-Dx5qDwjf.js"),__vite__mapDeps([76,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Input/Input.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Input.stories-BX2vI5MX.js"),__vite__mapDeps([77,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,27,28]),import.meta.url)}),"./src/components/data-entry/InputNumber/InputNumber.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./InputNumber.stories-Dxh_Ec2x.js"),__vite__mapDeps([78,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Mentions/Mentions.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Mentions.stories-DA7VZ4Y4.js"),__vite__mapDeps([79,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-entry/QueryItem/Action.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Action.stories-B88zJx_7.js"),__vite__mapDeps([80,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/Cascader.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Cascader.stories-opKMDFPr.js"),__vite__mapDeps([81,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/NumberInput.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./NumberInput.stories-Cd5PLXO1.js"),__vite__mapDeps([82,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/Qualifier.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Qualifier.stories-B5ECeXxO.js"),__vite__mapDeps([83,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/QueryItem.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./QueryItem.stories-DT9J082s.js"),__vite__mapDeps([84,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/Text.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Text.stories-BlOMENVk.js"),__vite__mapDeps([85,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/TextInput.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./TextInput.stories-HOm3qQvw.js"),__vite__mapDeps([86,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/ValueSelector.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./ValueSelector.stories-jHQ3mi0m.js"),__vite__mapDeps([87,1,2]),import.meta.url)}),"./src/components/data-entry/Radio/Radio.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Radio.stories-Bk87y9IF.js"),__vite__mapDeps([88,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Radio/RadioButton.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./RadioButton.stories-CZ857rpS.js"),__vite__mapDeps([89,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Radio/RadioGroup.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./RadioGroup.stories-B7JcJZyl.js"),__vite__mapDeps([90,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Rate/Rate.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Rate.stories-DXtKqTr-.js"),__vite__mapDeps([91,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Select/Select.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Select.stories-QSxIUc7U.js"),__vite__mapDeps([92,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Slider/Slider.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Slider.stories-pCDgFa62.js"),__vite__mapDeps([93,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Switch/Switch.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Switch.stories-B6boXKuZ.js"),__vite__mapDeps([94,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-entry/TimePicker/TimePicker.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./TimePicker.stories-QaYdhPRL.js"),__vite__mapDeps([95,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Transfer/Transfer.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Transfer.stories-D96hzjcZ.js"),__vite__mapDeps([96,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/TreeSelect/TreeSelect.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./TreeSelect.stories-BGpMgvVR.js"),__vite__mapDeps([97,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Upload/Upload.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Upload.stories-BqHHCWYq.js"),__vite__mapDeps([98,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Alert/Alert.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Alert.stories-DdLMWW_Y.js"),__vite__mapDeps([99,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/feedback/Drawer/Drawer.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Drawer.stories-BkQOwa09.js"),__vite__mapDeps([100,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/LoadingModal/LoadingModal.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./LoadingModal.stories-DU_L3ipW.js"),__vite__mapDeps([101,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Message/Message.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Message.stories-BVFFllSg.js"),__vite__mapDeps([102,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Modal/Modal.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Modal.stories-DAINgQYX.js"),__vite__mapDeps([103,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Notification/Notification.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Notification.stories-B5oBKMvG.js"),__vite__mapDeps([104,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Popconfirm/Popconfirm.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Popconfirm.stories--aTJ_KMk.js"),__vite__mapDeps([105,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Progress/Progress.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Progress.stories-Dh4TaGDj.js"),__vite__mapDeps([106,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/feedback/Result/Result.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Result.stories-BqbIPWas.js"),__vite__mapDeps([107,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Skeleton/Skeleton.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Skeleton.stories-0plwzcjG.js"),__vite__mapDeps([108,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/feedback/Spin/Spin.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Spin.stories-CF9y6wb2.js"),__vite__mapDeps([109,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/feedback/Watermark/Watermark.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Watermark.stories-Cz3SvC9w.js"),__vite__mapDeps([110,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/general/Button/Button.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Button.stories-D1Ph77Cg.js"),__vite__mapDeps([111,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,27,28]),import.meta.url)}),"./src/components/general/FloatButton/FloatButton.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./FloatButton.stories-D-xUhOOk.js"),__vite__mapDeps([112,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/general/Icon/Icon.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Icon.stories-BxCy0EPl.js"),__vite__mapDeps([113,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/general/Typography/Link.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Link.stories-C4fWKAmO.js"),__vite__mapDeps([114,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/general/Typography/Paragraph.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Paragraph.stories-gLrk9PBF.js"),__vite__mapDeps([115,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/general/Typography/Text.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Text.stories-Bfpw2aEV.js"),__vite__mapDeps([116,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,27,28]),import.meta.url)}),"./src/components/general/Typography/Title.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Title.stories-6i7nv2er.js"),__vite__mapDeps([117,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/layout/Center/Center.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Center.stories-DWmPPws2.js"),__vite__mapDeps([118,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/layout/Divider/Divider.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Divider.stories-CU-fyz0M.js"),__vite__mapDeps([119,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/layout/Flex/Flex.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Flex.stories-B2ajL1zx.js"),__vite__mapDeps([120,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/layout/Grid/Grid.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Grid.stories-h3UcXmvP.js"),__vite__mapDeps([121,1,2,24,21,22,6,23,5,8]),import.meta.url)}),"./src/components/layout/Layout/Layout.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Layout.stories-Fn3jk7ro.js"),__vite__mapDeps([122,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/layout/Space/Space.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Space.stories-eW_SGrDD.js"),__vite__mapDeps([123,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/navigation/Anchor/Anchor.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Anchor.stories-BIL3x4sV.js"),__vite__mapDeps([124,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/navigation/Breadcrumb/Breadcrumb.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Breadcrumb.stories-CSbGnKCi.js"),__vite__mapDeps([125,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/navigation/Dropdown/Dropdown.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Dropdown.stories-Dp79r8cv.js"),__vite__mapDeps([126,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,55]),import.meta.url)}),"./src/components/navigation/GlobalNavigation/GlobalNavigation.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./GlobalNavigation.stories-CeBxnGoY.js"),__vite__mapDeps([127,1,2,27,28,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/navigation/GlobalNavigation/NavigationItem.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./NavigationItem.stories-DbiOff0w.js"),__vite__mapDeps([128,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/navigation/Menu/Menu.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Menu.stories-Po5DcqNy.js"),__vite__mapDeps([129,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/navigation/Pagination/Pagination.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Pagination.stories-c38YTaVl.js"),__vite__mapDeps([130,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/navigation/Steps/Steps.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Steps.stories-fykzqO4l.js"),__vite__mapDeps([131,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,55]),import.meta.url)}),"./src/components/other/Affix/Affix.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Affix.stories-C-jMRLQ3.js"),__vite__mapDeps([132,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/other/App/App.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./App.stories-OxchJ4oc.js"),__vite__mapDeps([133,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/other/ConfigProvider/ConfigProvider.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./ConfigProvider.stories-CL2mExo9.js"),__vite__mapDeps([134,19,1,2,20,21,22,6,23,5,8]),import.meta.url)}),"./src/utils/GetGlobalToken.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./GetGlobalToken.stories-BQI2uWdi.js"),__vite__mapDeps([135,1,2,20,55,22,6,23]),import.meta.url)}),"./src/utils/svg-prettifier/SvgPrettfier.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./SvgPrettfier.stories-DjxngXQk.js"),__vite__mapDeps([136,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)})};function L(r){return o(this,null,function*(){return D[r]()})}const{composeConfigs:A,PreviewWeb:V,ClientApi:C}=__STORYBOOK_MODULE_PREVIEW_API__,x=(...p)=>o(void 0,[...p],function*(r=[]){var m,e,s,i,a,n,u,c,d,E,y,T;const _=yield Promise.all([(m=r.at(0))!=null?m:t(()=>import("./entry-preview-BolVloqx.js"),__vite__mapDeps([137,2,138,5]),import.meta.url),(e=r.at(1))!=null?e:t(()=>import("./entry-preview-docs-BzN4I97e.js"),__vite__mapDeps([139,9,2,10,12]),import.meta.url),(s=r.at(2))!=null?s:t(()=>import("./preview-6uLYm2Ic.js"),__vite__mapDeps([140,7]),import.meta.url),(i=r.at(3))!=null?i:t(()=>import("./preview-bfuXExbA.js"),__vite__mapDeps([141,142]),import.meta.url),(a=r.at(4))!=null?a:t(()=>import("./preview-3sz2p-OZ.js"),__vite__mapDeps([143,12]),import.meta.url),(n=r.at(5))!=null?n:t(()=>import("./preview-B4GcaC1c.js"),__vite__mapDeps([]),import.meta.url),(u=r.at(6))!=null?u:t(()=>import("./preview-CaQmw2YX.js"),__vite__mapDeps([]),import.meta.url),(c=r.at(7))!=null?c:t(()=>import("./preview-BAz7FMXc.js"),__vite__mapDeps([144,12]),import.meta.url),(d=r.at(8))!=null?d:t(()=>import("./preview-BpcF_O6y.js"),__vite__mapDeps([]),import.meta.url),(E=r.at(9))!=null?E:t(()=>import("./preview-CkNqzwOK.js"),__vite__mapDeps([145,28]),import.meta.url),(y=r.at(10))!=null?y:t(()=>import("./preview-so6oI_c-.js"),__vite__mapDeps([]),import.meta.url),(T=r.at(11))!=null?T:t(()=>import("./preview-CQIbeaA7.js"),__vite__mapDeps([]),import.meta.url)]);return A(_)});window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new V(L,x);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; +var o=(r,p,_)=>new Promise((m,e)=>{var s=n=>{try{a(_.next(n))}catch(u){e(u)}},i=n=>{try{a(_.throw(n))}catch(u){e(u)}},a=n=>n.done?m(n.value):Promise.resolve(n.value).then(s,i);a((_=_.apply(r,p)).next())});import"../sb-preview/runtime.js";(function(){const p=document.createElement("link").relList;if(p&&p.supports&&p.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))m(e);new MutationObserver(e=>{for(const s of e)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&m(i)}).observe(document,{childList:!0,subtree:!0});function _(e){const s={};return e.integrity&&(s.integrity=e.integrity),e.referrerPolicy&&(s.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?s.credentials="include":e.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function m(e){if(e.ep)return;e.ep=!0;const s=_(e);fetch(e.href,s)}})();const R="modulepreload",P=function(r,p){return new URL(r,p).href},O={},t=function(p,_,m){let e=Promise.resolve();if(_&&_.length>0){const s=document.getElementsByTagName("link");e=Promise.all(_.map(i=>{if(i=P(i,m),i in O)return;O[i]=!0;const a=i.endsWith(".css"),n=a?'[rel="stylesheet"]':"";if(!!m)for(let d=s.length-1;d>=0;d--){const E=s[d];if(E.href===i&&(!a||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${n}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":R,a||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),a)return new Promise((d,E)=>{c.addEventListener("load",d),c.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${i}`)))})}))}return e.then(()=>p()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},{createBrowserChannel:I}=__STORYBOOK_MODULE_CHANNELS__,{addons:v}=__STORYBOOK_MODULE_PREVIEW_API__,l=I({page:"preview"});v.setChannel(l);window.__STORYBOOK_ADDONS_CHANNEL__=l;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=l);const D={"./docs/About/Changelog.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Changelog-CbZb2Fro.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url)}),"./docs/About/FAQ.mdx":()=>o(void 0,null,function*(){return t(()=>import("./FAQ-DEyWZawx.js"),__vite__mapDeps([13,1,2,3]),import.meta.url)}),"./docs/About/Introduction.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Introduction-BnsAvIha.js"),__vite__mapDeps([14,1,2,3]),import.meta.url)}),"./docs/Candidate Components/Directory/Date Range Filter/Documentation.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Documentation-DxmKRIUH.js"),__vite__mapDeps([15,1,2,3,4,5,6,7,8,9,10,11,12,16,17,18,19,20,21,22,23,24,25,26,27,28]),import.meta.url)}),"./docs/Candidate Components/Directory/Date Range Filter/SelectWithRangePicker.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./SelectWithRangePicker.stories-BQ0XV4nb.js").then(r=>r.S),__vite__mapDeps([16,1,2,17,18,19,20,21,22,6,23,5,8,24,11,10,25,26,27,28]),import.meta.url)}),"./docs/Candidate Components/Introduction.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Introduction-Caom7aEM.js"),__vite__mapDeps([29,1,2,3]),import.meta.url)}),"./docs/Component Process/Candidate Components/Introducing new ones.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Introducing new ones-T6MNfHwP.js"),__vite__mapDeps([30,1,2,3]),import.meta.url)}),"./docs/Component Process/Candidate Components/Promoting to a component.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Promoting to a component-CZrocmvh.js"),__vite__mapDeps([31,1,2,3]),import.meta.url)}),"./docs/Component Process/Candidate Components/Using existing ones.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Using existing ones-DVOwGlbd.js").then(r=>r.bx),__vite__mapDeps([32,1,2,3,17,12,23]),import.meta.url)}),"./docs/Component Process/Components/Change process.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Change process-216Wr30R.js"),__vite__mapDeps([33,1,2,3]),import.meta.url)}),"./docs/Component Process/Components/Using components.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Using components-DpGTYKcm.js"),__vite__mapDeps([34,1,2,3]),import.meta.url)}),"./docs/Component Process/Design Templates/Introduction.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Introduction-BFyvVCpi.js"),__vite__mapDeps([35,1,2,3]),import.meta.url)}),"./docs/Component Process/Introduction.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Introduction-CLXMyLcH.js"),__vite__mapDeps([36,1,2,3]),import.meta.url)}),"./docs/Contributing/Commits.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Commits-mQFBa5QQ.js"),__vite__mapDeps([37,1,2,3]),import.meta.url)}),"./docs/Contributing/Introduction.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Introduction-DHtdZ5cg.js"),__vite__mapDeps([38,1,2,3]),import.meta.url)}),"./docs/Contributing/Maintainers.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Maintainers-DAwaVQr2.js"),__vite__mapDeps([39,1,2,3]),import.meta.url)}),"./docs/Contributing/Release Process.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Release Process-aG-udTYc.js"),__vite__mapDeps([40,1,2,3]),import.meta.url)}),"./docs/Contributing/Testing in the platforms.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Testing in the platforms-2-W9Xdv5.js"),__vite__mapDeps([41,1,2,3]),import.meta.url)}),"./docs/Design Templates/Directory.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Directory-CU-XwiKA.js"),__vite__mapDeps([42,1,2,3]),import.meta.url)}),"./docs/Foundations/Colors.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Colors-DO2S-94w.js"),__vite__mapDeps([43,1,2,3]),import.meta.url)}),"./docs/Foundations/Errors.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Errors-B9mKyRL_.js"),__vite__mapDeps([44,1,2,3]),import.meta.url)}),"./docs/Foundations/Icons.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Icons-CL6cHsW1.js"),__vite__mapDeps([45,1,2,3]),import.meta.url)}),"./docs/Foundations/Loading.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Loading-ClQHb6l_.js"),__vite__mapDeps([46,1,2,3,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./docs/Foundations/Typography.mdx":()=>o(void 0,null,function*(){return t(()=>import("./Typography-CdzpG-vN.js"),__vite__mapDeps([47,1,2,3]),import.meta.url)}),"./src/components/data-display/Avatar/Avatar.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Avatar.stories-_gkokeKk.js"),__vite__mapDeps([48,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Badge/Badge.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Badge.stories-3vdIWofK.js"),__vite__mapDeps([50,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Calendar/Calendar.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Calendar.stories-q4o1f5PA.js"),__vite__mapDeps([51,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Card/Card.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Card.stories-hge4uqQE.js"),__vite__mapDeps([52,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Carousel/Carousel.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Carousel.stories-BNsbO7Dm.js"),__vite__mapDeps([53,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Collapse/Collapse.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Collapse.stories-epbKGaWN.js"),__vite__mapDeps([54,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,55]),import.meta.url)}),"./src/components/data-display/Descriptions/Descriptions.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Descriptions.stories-nnhLbE6z.js"),__vite__mapDeps([56,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Empty/Empty.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Empty.stories-CUM8Eo5G.js"),__vite__mapDeps([57,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Image/Image.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Image.stories-D3cc9alV.js"),__vite__mapDeps([58,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/List/List.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./List.stories-DCiZ8WVU.js"),__vite__mapDeps([59,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Popover/Popover.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Popover.stories-YRB_gU11.js"),__vite__mapDeps([60,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/QRCode/QRCode.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./QRCode.stories-BUmpE4c7.js"),__vite__mapDeps([61,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Segmented/Segmented.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Segmented.stories-D_uzF0n_.js"),__vite__mapDeps([62,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Statistic/Statistic.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Statistic.stories-Cui2Ellm.js"),__vite__mapDeps([63,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Table/Table.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Table.stories-CiJc5Mg8.js"),__vite__mapDeps([64,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Tabs/Tabs.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Tabs.stories-BZ6M5Sau.js"),__vite__mapDeps([65,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Tag/Tag.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Tag.stories-DCphVgVE.js"),__vite__mapDeps([66,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,27,28]),import.meta.url)}),"./src/components/data-display/Timeline/Timeline.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Timeline.stories-Bf8fFUxJ.js"),__vite__mapDeps([67,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Tooltip/Tooltip.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Tooltip.stories-d9J5kivK.js"),__vite__mapDeps([68,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-display/Tour/Tour.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Tour.stories-CVwGOuxe.js"),__vite__mapDeps([69,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-display/Tree/Tree.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Tree.stories-nVXKVCDI.js"),__vite__mapDeps([70,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/AutoComplete/AutoComplete.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./AutoComplete.stories-CJ1pr6oM.js"),__vite__mapDeps([71,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-entry/Cascader/Cascader.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Cascader.stories-KBCq5Qc3.js"),__vite__mapDeps([72,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-entry/Checkbox/Checkbox.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Checkbox.stories-ZAUs02LH.js"),__vite__mapDeps([73,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,27,28]),import.meta.url)}),"./src/components/data-entry/ColorPicker/ColorPicker.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./ColorPicker.stories-CD4t87lw.js"),__vite__mapDeps([74,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/DatePicker/DatePicker.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./DatePicker.stories-BgZXeiJI.js"),__vite__mapDeps([75,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Form/Form.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Form.stories-Dx5qDwjf.js"),__vite__mapDeps([76,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Input/Input.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Input.stories-BX2vI5MX.js"),__vite__mapDeps([77,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,27,28]),import.meta.url)}),"./src/components/data-entry/InputNumber/InputNumber.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./InputNumber.stories-Dxh_Ec2x.js"),__vite__mapDeps([78,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Mentions/Mentions.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Mentions.stories-DA7VZ4Y4.js"),__vite__mapDeps([79,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-entry/QueryItem/Action.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Action.stories-B88zJx_7.js"),__vite__mapDeps([80,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/Cascader.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Cascader.stories-opKMDFPr.js"),__vite__mapDeps([81,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/NumberInput.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./NumberInput.stories-Cd5PLXO1.js"),__vite__mapDeps([82,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/Qualifier.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Qualifier.stories-B5ECeXxO.js"),__vite__mapDeps([83,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/QueryItem.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./QueryItem.stories-DT9J082s.js"),__vite__mapDeps([84,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/Text.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Text.stories-BlOMENVk.js"),__vite__mapDeps([85,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/TextInput.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./TextInput.stories-HOm3qQvw.js"),__vite__mapDeps([86,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/QueryItem/ValueSelector.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./ValueSelector.stories-CZKOQEJi.js"),__vite__mapDeps([87,1,2]),import.meta.url)}),"./src/components/data-entry/Radio/Radio.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Radio.stories-Bk87y9IF.js"),__vite__mapDeps([88,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Radio/RadioButton.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./RadioButton.stories-CZ857rpS.js"),__vite__mapDeps([89,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Radio/RadioGroup.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./RadioGroup.stories-B7JcJZyl.js"),__vite__mapDeps([90,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Rate/Rate.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Rate.stories-DXtKqTr-.js"),__vite__mapDeps([91,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Select/Select.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Select.stories-QSxIUc7U.js"),__vite__mapDeps([92,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Slider/Slider.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Slider.stories-pCDgFa62.js"),__vite__mapDeps([93,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Switch/Switch.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Switch.stories-B6boXKuZ.js"),__vite__mapDeps([94,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/data-entry/TimePicker/TimePicker.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./TimePicker.stories-QaYdhPRL.js"),__vite__mapDeps([95,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Transfer/Transfer.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Transfer.stories-D96hzjcZ.js"),__vite__mapDeps([96,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/TreeSelect/TreeSelect.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./TreeSelect.stories-BGpMgvVR.js"),__vite__mapDeps([97,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/data-entry/Upload/Upload.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Upload.stories-BqHHCWYq.js"),__vite__mapDeps([98,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Alert/Alert.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Alert.stories-DdLMWW_Y.js"),__vite__mapDeps([99,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/feedback/Drawer/Drawer.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Drawer.stories-BkQOwa09.js"),__vite__mapDeps([100,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/LoadingModal/LoadingModal.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./LoadingModal.stories-DU_L3ipW.js"),__vite__mapDeps([101,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Message/Message.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Message.stories-BVFFllSg.js"),__vite__mapDeps([102,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Modal/Modal.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Modal.stories-DAINgQYX.js"),__vite__mapDeps([103,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Notification/Notification.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Notification.stories-B5oBKMvG.js"),__vite__mapDeps([104,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Popconfirm/Popconfirm.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Popconfirm.stories--aTJ_KMk.js"),__vite__mapDeps([105,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Progress/Progress.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Progress.stories-Dh4TaGDj.js"),__vite__mapDeps([106,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/feedback/Result/Result.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Result.stories-BqbIPWas.js"),__vite__mapDeps([107,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/feedback/Skeleton/Skeleton.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Skeleton.stories-0plwzcjG.js"),__vite__mapDeps([108,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/feedback/Spin/Spin.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Spin.stories-CF9y6wb2.js"),__vite__mapDeps([109,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/feedback/Watermark/Watermark.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Watermark.stories-Cz3SvC9w.js"),__vite__mapDeps([110,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/general/Button/Button.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Button.stories-D1Ph77Cg.js"),__vite__mapDeps([111,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,27,28]),import.meta.url)}),"./src/components/general/FloatButton/FloatButton.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./FloatButton.stories-D-xUhOOk.js"),__vite__mapDeps([112,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/general/Icon/Icon.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Icon.stories-BxCy0EPl.js"),__vite__mapDeps([113,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/general/Typography/Link.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Link.stories-C4fWKAmO.js"),__vite__mapDeps([114,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/general/Typography/Paragraph.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Paragraph.stories-gLrk9PBF.js"),__vite__mapDeps([115,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/general/Typography/Text.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Text.stories-Bfpw2aEV.js"),__vite__mapDeps([116,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,27,28]),import.meta.url)}),"./src/components/general/Typography/Title.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Title.stories-6i7nv2er.js"),__vite__mapDeps([117,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/layout/Center/Center.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Center.stories-DWmPPws2.js"),__vite__mapDeps([118,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/layout/Divider/Divider.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Divider.stories-CU-fyz0M.js"),__vite__mapDeps([119,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/layout/Flex/Flex.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Flex.stories-B2ajL1zx.js"),__vite__mapDeps([120,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/layout/Grid/Grid.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Grid.stories-h3UcXmvP.js"),__vite__mapDeps([121,1,2,24,21,22,6,23,5,8]),import.meta.url)}),"./src/components/layout/Layout/Layout.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Layout.stories-Fn3jk7ro.js"),__vite__mapDeps([122,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/layout/Space/Space.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Space.stories-eW_SGrDD.js"),__vite__mapDeps([123,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/navigation/Anchor/Anchor.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Anchor.stories-BIL3x4sV.js"),__vite__mapDeps([124,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/navigation/Breadcrumb/Breadcrumb.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Breadcrumb.stories-CSbGnKCi.js"),__vite__mapDeps([125,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/navigation/Dropdown/Dropdown.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Dropdown.stories-Dp79r8cv.js"),__vite__mapDeps([126,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,55]),import.meta.url)}),"./src/components/navigation/GlobalNavigation/GlobalNavigation.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./GlobalNavigation.stories-CeBxnGoY.js"),__vite__mapDeps([127,1,2,27,28,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/navigation/GlobalNavigation/NavigationItem.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./NavigationItem.stories-DbiOff0w.js"),__vite__mapDeps([128,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/navigation/Menu/Menu.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Menu.stories-Po5DcqNy.js"),__vite__mapDeps([129,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/navigation/Pagination/Pagination.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Pagination.stories-c38YTaVl.js"),__vite__mapDeps([130,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49]),import.meta.url)}),"./src/components/navigation/Steps/Steps.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Steps.stories-fykzqO4l.js"),__vite__mapDeps([131,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26,49,55]),import.meta.url)}),"./src/components/other/Affix/Affix.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./Affix.stories-C-jMRLQ3.js"),__vite__mapDeps([132,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/other/App/App.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./App.stories-OxchJ4oc.js"),__vite__mapDeps([133,18,1,2,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)}),"./src/components/other/ConfigProvider/ConfigProvider.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./ConfigProvider.stories-CL2mExo9.js"),__vite__mapDeps([134,19,1,2,20,21,22,6,23,5,8]),import.meta.url)}),"./src/utils/GetGlobalToken.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./GetGlobalToken.stories-BQI2uWdi.js"),__vite__mapDeps([135,1,2,20,55,22,6,23]),import.meta.url)}),"./src/utils/svg-prettifier/SvgPrettfier.stories.tsx":()=>o(void 0,null,function*(){return t(()=>import("./SvgPrettfier.stories-DjxngXQk.js"),__vite__mapDeps([136,1,2,18,19,20,21,22,6,23,5,8,24,11,10,17,25,26]),import.meta.url)})};function L(r){return o(this,null,function*(){return D[r]()})}const{composeConfigs:A,PreviewWeb:V,ClientApi:C}=__STORYBOOK_MODULE_PREVIEW_API__,x=(...p)=>o(void 0,[...p],function*(r=[]){var m,e,s,i,a,n,u,c,d,E,y,T;const _=yield Promise.all([(m=r.at(0))!=null?m:t(()=>import("./entry-preview-BolVloqx.js"),__vite__mapDeps([137,2,138,5]),import.meta.url),(e=r.at(1))!=null?e:t(()=>import("./entry-preview-docs-BzN4I97e.js"),__vite__mapDeps([139,9,2,10,12]),import.meta.url),(s=r.at(2))!=null?s:t(()=>import("./preview-6uLYm2Ic.js"),__vite__mapDeps([140,7]),import.meta.url),(i=r.at(3))!=null?i:t(()=>import("./preview-bfuXExbA.js"),__vite__mapDeps([141,142]),import.meta.url),(a=r.at(4))!=null?a:t(()=>import("./preview-3sz2p-OZ.js"),__vite__mapDeps([143,12]),import.meta.url),(n=r.at(5))!=null?n:t(()=>import("./preview-B4GcaC1c.js"),__vite__mapDeps([]),import.meta.url),(u=r.at(6))!=null?u:t(()=>import("./preview-CaQmw2YX.js"),__vite__mapDeps([]),import.meta.url),(c=r.at(7))!=null?c:t(()=>import("./preview-BAz7FMXc.js"),__vite__mapDeps([144,12]),import.meta.url),(d=r.at(8))!=null?d:t(()=>import("./preview-BpcF_O6y.js"),__vite__mapDeps([]),import.meta.url),(E=r.at(9))!=null?E:t(()=>import("./preview-CkNqzwOK.js"),__vite__mapDeps([145,28]),import.meta.url),(y=r.at(10))!=null?y:t(()=>import("./preview-C-P8A6st.js"),__vite__mapDeps([]),import.meta.url),(T=r.at(11))!=null?T:t(()=>import("./preview-CQIbeaA7.js"),__vite__mapDeps([]),import.meta.url)]);return A(_)});window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new V(L,x);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./Changelog-DCkbp4G-.js","./jsx-runtime-CS-_a2eV.js","./index-Ca44TZ0D.js","./index-Bqh_nw6E.js","./index-BdmlDa2_.js","./index-DFiuTWKW.js","./extends-CCbyfPlC.js","./index-DYADbu9O.js","./isNativeReflectConstruct-DQQXTUsj.js","./index-BObpwDOh.js","./_getPrototype-fDUIJvdn.js","./_baseClone-BwI25-yt.js","./index-DrFu-skq.js","./FAQ-DEyWZawx.js","./Introduction-BnsAvIha.js","./Documentation-BXVohtKQ.js","./SelectWithRangePicker.stories-CVdxb989.js","./dayjs.min-kn1EBQqj.js","./GlobalNavigation-Be6idjSk.js","./ConfigProvider-aHzMMMgW.js","./LightTheme-BZ07JyGW.js","./index-BxrKW6hI.js","./useToken-Dnjd_Rha.js","./Serializer-DsJDcYJc.js","./row-BOpWxek0.js","./customParseFormat-CECOPgIS.js","./GlobalNavigation-CbLH_p75.css","./index-C7MMNn6a.js","./index-TL6_15PV.js","./Introduction-CLXMyLcH.js","./Introducing new ones-T6MNfHwP.js","./Promoting to a component-CZrocmvh.js","./Using existing ones-1ACZX-0W.js","./Change process-216Wr30R.js","./Using components-DpGTYKcm.js","./Introduction-BFyvVCpi.js","./Introduction-Caom7aEM.js","./Commits-mQFBa5QQ.js","./Introduction-DHtdZ5cg.js","./Maintainers-DAwaVQr2.js","./Release Process-aG-udTYc.js","./Testing in the platforms-2-W9Xdv5.js","./Directory-CU-XwiKA.js","./Colors-DO2S-94w.js","./Errors-B9mKyRL_.js","./Icons-CL6cHsW1.js","./Loading-ClQHb6l_.js","./Typography-CdzpG-vN.js","./Avatar.stories-_gkokeKk.js","./ExampleStory-CVE-sUMV.js","./Badge.stories-3vdIWofK.js","./Calendar.stories-q4o1f5PA.js","./Card.stories-hge4uqQE.js","./Carousel.stories-BNsbO7Dm.js","./Collapse.stories-epbKGaWN.js","./index-RLXX1y2c.js","./Descriptions.stories-nnhLbE6z.js","./Empty.stories-CUM8Eo5G.js","./Image.stories-D3cc9alV.js","./List.stories-DCiZ8WVU.js","./Popover.stories-YRB_gU11.js","./QRCode.stories-BUmpE4c7.js","./Segmented.stories-D_uzF0n_.js","./Statistic.stories-Cui2Ellm.js","./Table.stories-CiJc5Mg8.js","./Tabs.stories-BZ6M5Sau.js","./Tag.stories-DCphVgVE.js","./Timeline.stories-Bf8fFUxJ.js","./Tooltip.stories-d9J5kivK.js","./Tour.stories-CVwGOuxe.js","./Tree.stories-nVXKVCDI.js","./AutoComplete.stories-CJ1pr6oM.js","./Cascader.stories-KBCq5Qc3.js","./Checkbox.stories-ZAUs02LH.js","./ColorPicker.stories-CD4t87lw.js","./DatePicker.stories-BgZXeiJI.js","./Form.stories-Dx5qDwjf.js","./Input.stories-BX2vI5MX.js","./InputNumber.stories-Dxh_Ec2x.js","./Mentions.stories-DA7VZ4Y4.js","./Action.stories-B88zJx_7.js","./Cascader.stories-opKMDFPr.js","./NumberInput.stories-Cd5PLXO1.js","./Qualifier.stories-B5ECeXxO.js","./QueryItem.stories-DT9J082s.js","./Text.stories-BlOMENVk.js","./TextInput.stories-HOm3qQvw.js","./ValueSelector.stories-jHQ3mi0m.js","./Radio.stories-Bk87y9IF.js","./RadioButton.stories-CZ857rpS.js","./RadioGroup.stories-B7JcJZyl.js","./Rate.stories-DXtKqTr-.js","./Select.stories-QSxIUc7U.js","./Slider.stories-pCDgFa62.js","./Switch.stories-B6boXKuZ.js","./TimePicker.stories-QaYdhPRL.js","./Transfer.stories-D96hzjcZ.js","./TreeSelect.stories-BGpMgvVR.js","./Upload.stories-BqHHCWYq.js","./Alert.stories-DdLMWW_Y.js","./Drawer.stories-BkQOwa09.js","./LoadingModal.stories-DU_L3ipW.js","./Message.stories-BVFFllSg.js","./Modal.stories-DAINgQYX.js","./Notification.stories-B5oBKMvG.js","./Popconfirm.stories--aTJ_KMk.js","./Progress.stories-Dh4TaGDj.js","./Result.stories-BqbIPWas.js","./Skeleton.stories-0plwzcjG.js","./Spin.stories-CF9y6wb2.js","./Watermark.stories-Cz3SvC9w.js","./Button.stories-D1Ph77Cg.js","./FloatButton.stories-D-xUhOOk.js","./Icon.stories-BxCy0EPl.js","./Link.stories-C4fWKAmO.js","./Paragraph.stories-gLrk9PBF.js","./Text.stories-Bfpw2aEV.js","./Title.stories-6i7nv2er.js","./Center.stories-DWmPPws2.js","./Divider.stories-CU-fyz0M.js","./Flex.stories-B2ajL1zx.js","./Grid.stories-h3UcXmvP.js","./Layout.stories-Fn3jk7ro.js","./Space.stories-eW_SGrDD.js","./Anchor.stories-BIL3x4sV.js","./Breadcrumb.stories-CSbGnKCi.js","./Dropdown.stories-Dp79r8cv.js","./GlobalNavigation.stories-CeBxnGoY.js","./NavigationItem.stories-DbiOff0w.js","./Menu.stories-Po5DcqNy.js","./Pagination.stories-c38YTaVl.js","./Steps.stories-fykzqO4l.js","./Affix.stories-C-jMRLQ3.js","./App.stories-OxchJ4oc.js","./ConfigProvider.stories-CL2mExo9.js","./GetGlobalToken.stories-BQI2uWdi.js","./SvgPrettfier.stories-DjxngXQk.js","./entry-preview-BolVloqx.js","./react-18-ay8dXnv6.js","./entry-preview-docs-BzN4I97e.js","./preview-6uLYm2Ic.js","./preview-bfuXExbA.js","./stringify-DnirLPRY.js","./preview-3sz2p-OZ.js","./preview-BAz7FMXc.js","./preview-CkNqzwOK.js"] + __vite__mapDeps.viteFileDeps = ["./Changelog-CbZb2Fro.js","./jsx-runtime-CS-_a2eV.js","./index-Ca44TZ0D.js","./index-Bqh_nw6E.js","./index-XNuu3Woq.js","./index-DFiuTWKW.js","./extends-CCbyfPlC.js","./index-DYADbu9O.js","./isNativeReflectConstruct-DQQXTUsj.js","./index-BObpwDOh.js","./_getPrototype-fDUIJvdn.js","./_baseClone-BwI25-yt.js","./index-DrFu-skq.js","./FAQ-DEyWZawx.js","./Introduction-BnsAvIha.js","./Documentation-DxmKRIUH.js","./SelectWithRangePicker.stories-BQ0XV4nb.js","./dayjs.min-kn1EBQqj.js","./GlobalNavigation-Be6idjSk.js","./ConfigProvider-aHzMMMgW.js","./LightTheme-BZ07JyGW.js","./index-BxrKW6hI.js","./useToken-Dnjd_Rha.js","./Serializer-DsJDcYJc.js","./row-BOpWxek0.js","./customParseFormat-CECOPgIS.js","./GlobalNavigation-CbLH_p75.css","./index-C7MMNn6a.js","./index-TL6_15PV.js","./Introduction-Caom7aEM.js","./Introducing new ones-T6MNfHwP.js","./Promoting to a component-CZrocmvh.js","./Using existing ones-DVOwGlbd.js","./Change process-216Wr30R.js","./Using components-DpGTYKcm.js","./Introduction-BFyvVCpi.js","./Introduction-CLXMyLcH.js","./Commits-mQFBa5QQ.js","./Introduction-DHtdZ5cg.js","./Maintainers-DAwaVQr2.js","./Release Process-aG-udTYc.js","./Testing in the platforms-2-W9Xdv5.js","./Directory-CU-XwiKA.js","./Colors-DO2S-94w.js","./Errors-B9mKyRL_.js","./Icons-CL6cHsW1.js","./Loading-ClQHb6l_.js","./Typography-CdzpG-vN.js","./Avatar.stories-_gkokeKk.js","./ExampleStory-CVE-sUMV.js","./Badge.stories-3vdIWofK.js","./Calendar.stories-q4o1f5PA.js","./Card.stories-hge4uqQE.js","./Carousel.stories-BNsbO7Dm.js","./Collapse.stories-epbKGaWN.js","./index-RLXX1y2c.js","./Descriptions.stories-nnhLbE6z.js","./Empty.stories-CUM8Eo5G.js","./Image.stories-D3cc9alV.js","./List.stories-DCiZ8WVU.js","./Popover.stories-YRB_gU11.js","./QRCode.stories-BUmpE4c7.js","./Segmented.stories-D_uzF0n_.js","./Statistic.stories-Cui2Ellm.js","./Table.stories-CiJc5Mg8.js","./Tabs.stories-BZ6M5Sau.js","./Tag.stories-DCphVgVE.js","./Timeline.stories-Bf8fFUxJ.js","./Tooltip.stories-d9J5kivK.js","./Tour.stories-CVwGOuxe.js","./Tree.stories-nVXKVCDI.js","./AutoComplete.stories-CJ1pr6oM.js","./Cascader.stories-KBCq5Qc3.js","./Checkbox.stories-ZAUs02LH.js","./ColorPicker.stories-CD4t87lw.js","./DatePicker.stories-BgZXeiJI.js","./Form.stories-Dx5qDwjf.js","./Input.stories-BX2vI5MX.js","./InputNumber.stories-Dxh_Ec2x.js","./Mentions.stories-DA7VZ4Y4.js","./Action.stories-B88zJx_7.js","./Cascader.stories-opKMDFPr.js","./NumberInput.stories-Cd5PLXO1.js","./Qualifier.stories-B5ECeXxO.js","./QueryItem.stories-DT9J082s.js","./Text.stories-BlOMENVk.js","./TextInput.stories-HOm3qQvw.js","./ValueSelector.stories-CZKOQEJi.js","./Radio.stories-Bk87y9IF.js","./RadioButton.stories-CZ857rpS.js","./RadioGroup.stories-B7JcJZyl.js","./Rate.stories-DXtKqTr-.js","./Select.stories-QSxIUc7U.js","./Slider.stories-pCDgFa62.js","./Switch.stories-B6boXKuZ.js","./TimePicker.stories-QaYdhPRL.js","./Transfer.stories-D96hzjcZ.js","./TreeSelect.stories-BGpMgvVR.js","./Upload.stories-BqHHCWYq.js","./Alert.stories-DdLMWW_Y.js","./Drawer.stories-BkQOwa09.js","./LoadingModal.stories-DU_L3ipW.js","./Message.stories-BVFFllSg.js","./Modal.stories-DAINgQYX.js","./Notification.stories-B5oBKMvG.js","./Popconfirm.stories--aTJ_KMk.js","./Progress.stories-Dh4TaGDj.js","./Result.stories-BqbIPWas.js","./Skeleton.stories-0plwzcjG.js","./Spin.stories-CF9y6wb2.js","./Watermark.stories-Cz3SvC9w.js","./Button.stories-D1Ph77Cg.js","./FloatButton.stories-D-xUhOOk.js","./Icon.stories-BxCy0EPl.js","./Link.stories-C4fWKAmO.js","./Paragraph.stories-gLrk9PBF.js","./Text.stories-Bfpw2aEV.js","./Title.stories-6i7nv2er.js","./Center.stories-DWmPPws2.js","./Divider.stories-CU-fyz0M.js","./Flex.stories-B2ajL1zx.js","./Grid.stories-h3UcXmvP.js","./Layout.stories-Fn3jk7ro.js","./Space.stories-eW_SGrDD.js","./Anchor.stories-BIL3x4sV.js","./Breadcrumb.stories-CSbGnKCi.js","./Dropdown.stories-Dp79r8cv.js","./GlobalNavigation.stories-CeBxnGoY.js","./NavigationItem.stories-DbiOff0w.js","./Menu.stories-Po5DcqNy.js","./Pagination.stories-c38YTaVl.js","./Steps.stories-fykzqO4l.js","./Affix.stories-C-jMRLQ3.js","./App.stories-OxchJ4oc.js","./ConfigProvider.stories-CL2mExo9.js","./GetGlobalToken.stories-BQI2uWdi.js","./SvgPrettfier.stories-DjxngXQk.js","./entry-preview-BolVloqx.js","./react-18-ay8dXnv6.js","./entry-preview-docs-BzN4I97e.js","./preview-6uLYm2Ic.js","./preview-bfuXExbA.js","./stringify-DnirLPRY.js","./preview-3sz2p-OZ.js","./preview-BAz7FMXc.js","./preview-CkNqzwOK.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/pr-preview/pr-419/assets/index-BdmlDa2_.js b/pr-preview/pr-419/assets/index-XNuu3Woq.js similarity index 99% rename from pr-preview/pr-419/assets/index-BdmlDa2_.js rename to pr-preview/pr-419/assets/index-XNuu3Woq.js index d4836849c..90d23b550 100644 --- a/pr-preview/pr-419/assets/index-BdmlDa2_.js +++ b/pr-preview/pr-419/assets/index-XNuu3Woq.js @@ -1,4 +1,4 @@ -var nu=Object.defineProperty,au=Object.defineProperties;var ou=Object.getOwnPropertyDescriptors;var hn=Object.getOwnPropertySymbols;var ai=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable;var ni=(e,t,r)=>t in e?nu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b=(e,t)=>{for(var r in t||(t={}))ai.call(t,r)&&ni(e,r,t[r]);if(hn)for(var r of hn(t))oi.call(t,r)&&ni(e,r,t[r]);return e},z=(e,t)=>au(e,ou(t));var R=(e,t)=>{var r={};for(var n in e)ai.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hn)for(var n of hn(e))t.indexOf(n)<0&&oi.call(e,n)&&(r[n]=e[n]);return r};var nr=(e,t,r)=>new Promise((n,o)=>{var a=s=>{try{c(r.next(s))}catch(d){o(d)}},i=s=>{try{c(r.throw(s))}catch(d){o(d)}},c=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);c((r=r.apply(e,t)).next())});import{_ as Gt}from"./iframe-CrQm7WUj.js";import{r as l,b as so,g as Kn,R as p,c as xa}from"./index-Ca44TZ0D.js";import{r as Xn,R as J0}from"./index-DFiuTWKW.js";import{_ as ee}from"./extends-CCbyfPlC.js";import{O as Q0,P as lu}from"./index-DYADbu9O.js";import{b as qo,a as iu,_ as su,c as cu}from"./isNativeReflectConstruct-DQQXTUsj.js";import{_ as es,k as du,l as uu,m as fu,n as pu,o as ts,p as hu,q as mu,S as li,b as Ea}from"./index-BObpwDOh.js";import{_ as gu,a as vu,b as bu}from"./_baseClone-BwI25-yt.js";import{B as yu,i as wu,D as xu}from"./_getPrototype-fDUIJvdn.js";import{d as Eu}from"./index-DrFu-skq.js";var Ne=e=>`control-${e.replace(/\s+/g,"-")}`,Zn=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:Cu}=__STORYBOOK_MODULE_GLOBAL__,{logger:Su}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Ru=Object.create,rs=Object.defineProperty,Iu=Object.getOwnPropertyDescriptor,ns=Object.getOwnPropertyNames,Au=Object.getPrototypeOf,_u=Object.prototype.hasOwnProperty,Go=(e,t)=>function(){return t||(0,e[ns(e)[0]])((t={exports:{}}).exports,t),t.exports},ku=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ns(t))!_u.call(e,o)&&o!==r&&rs(e,o,{get:()=>t[o],enumerable:!(n=Iu(t,o))||n.enumerable});return e},as=(e,t,r)=>(r=e!=null?Ru(Au(e)):{},ku(t||!e||!e.__esModule?rs(r,"default",{value:e,enumerable:!0}):r,e));function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var t=1;tt in e?nu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b=(e,t)=>{for(var r in t||(t={}))ai.call(t,r)&&ni(e,r,t[r]);if(hn)for(var r of hn(t))oi.call(t,r)&&ni(e,r,t[r]);return e},z=(e,t)=>au(e,ou(t));var R=(e,t)=>{var r={};for(var n in e)ai.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hn)for(var n of hn(e))t.indexOf(n)<0&&oi.call(e,n)&&(r[n]=e[n]);return r};var nr=(e,t,r)=>new Promise((n,o)=>{var a=s=>{try{c(r.next(s))}catch(d){o(d)}},i=s=>{try{c(r.throw(s))}catch(d){o(d)}},c=s=>s.done?n(s.value):Promise.resolve(s.value).then(a,i);c((r=r.apply(e,t)).next())});import{_ as Gt}from"./iframe-BNbdtpq9.js";import{r as l,b as so,g as Kn,R as p,c as xa}from"./index-Ca44TZ0D.js";import{r as Xn,R as J0}from"./index-DFiuTWKW.js";import{_ as ee}from"./extends-CCbyfPlC.js";import{O as Q0,P as lu}from"./index-DYADbu9O.js";import{b as qo,a as iu,_ as su,c as cu}from"./isNativeReflectConstruct-DQQXTUsj.js";import{_ as es,k as du,l as uu,m as fu,n as pu,o as ts,p as hu,q as mu,S as li,b as Ea}from"./index-BObpwDOh.js";import{_ as gu,a as vu,b as bu}from"./_baseClone-BwI25-yt.js";import{B as yu,i as wu,D as xu}from"./_getPrototype-fDUIJvdn.js";import{d as Eu}from"./index-DrFu-skq.js";var Ne=e=>`control-${e.replace(/\s+/g,"-")}`,Zn=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:Cu}=__STORYBOOK_MODULE_GLOBAL__,{logger:Su}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Ru=Object.create,rs=Object.defineProperty,Iu=Object.getOwnPropertyDescriptor,ns=Object.getOwnPropertyNames,Au=Object.getPrototypeOf,_u=Object.prototype.hasOwnProperty,Go=(e,t)=>function(){return t||(0,e[ns(e)[0]])((t={exports:{}}).exports,t),t.exports},ku=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ns(t))!_u.call(e,o)&&o!==r&&rs(e,o,{get:()=>t[o],enumerable:!(n=Iu(t,o))||n.enumerable});return e},as=(e,t,r)=>(r=e!=null?Ru(Au(e)):{},ku(t||!e||!e.__esModule?rs(r,"default",{value:e,enumerable:!0}):r,e));function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?o-1:0),i=1;i=0&&o<1?(c=a,s=i):o>=1&&o<2?(c=i,s=a):o>=2&&o<3?(s=a,d=i):o>=3&&o<4?(s=i,d=a):o>=4&&o<5?(c=i,d=a):o>=5&&o<6&&(c=a,d=i);var u=r-a/2,h=c+u,g=s+u,f=d+u;return n(h,g,f)}var i0={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"639",red:"f00",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",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Ab(e){if(typeof e!="string")return e;var t=e.toLowerCase();return i0[t]?"#"+i0[t]:e}var _b=/^#[a-fA-F0-9]{6}$/,kb=/^#[a-fA-F0-9]{8}$/,$b=/^#[a-fA-F0-9]{3}$/,Ob=/^#[a-fA-F0-9]{4}$/,Va=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Tb=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Mb=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Lb=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Rl(e){if(typeof e!="string")throw new ot(3);var t=Ab(e);if(t.match(_b))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(kb)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match($b))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Ob)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=Va.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=Tb.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=Mb.exec(t);if(i){var c=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,u="rgb("+Qr(c,s,d)+")",h=Va.exec(u);if(!h)throw new ot(4,t,u);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10)}}var g=Lb.exec(t.substring(0,50));if(g){var f=parseInt(""+g[1],10),v=parseInt(""+g[2],10)/100,m=parseInt(""+g[3],10)/100,x="rgb("+Qr(f,v,m)+")",S=Va.exec(x);if(!S)throw new ot(4,t,x);return{red:parseInt(""+S[1],10),green:parseInt(""+S[2],10),blue:parseInt(""+S[3],10),alpha:parseFloat(""+g[4])>1?parseFloat(""+g[4])/100:parseFloat(""+g[4])}}throw new ot(5)}function zb(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c,s=o-a,d=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:c=(r-n)/s+(r=1?Wn(e,t,r):"rgba("+Qr(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Wn(e.hue,e.saturation,e.lightness):"rgba("+Qr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ot(2)}function To(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Oo("#"+Pt(e)+Pt(t)+Pt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Oo("#"+Pt(e.red)+Pt(e.green)+Pt(e.blue));throw new ot(6)}function qn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Rl(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?To(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?To(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new ot(7)}var Nb=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Db=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},jb=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Vb=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function c1(e){if(typeof e!="object")throw new ot(8);if(Db(e))return qn(e);if(Nb(e))return To(e);if(Vb(e))return Hb(e);if(jb(e))return Fb(e);throw new ot(8)}function d1(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):d1(e,t,n)}}function Il(e){return d1(e,e.length,[])}function Al(e,t,r){return Math.max(e,Math.min(t,r))}function Ub(e,t){if(t==="transparent")return t;var r=s1(t);return c1(X({},r,{lightness:Al(0,1,r.lightness-parseFloat(e))}))}var Wb=Il(Ub),dr=Wb;function qb(e,t){if(t==="transparent")return t;var r=s1(t);return c1(X({},r,{lightness:Al(0,1,r.lightness+parseFloat(e))}))}var Gb=Il(qb),s0=Gb;function Yb(e,t){if(t==="transparent")return t;var r=Rl(t),n=typeof r.alpha=="number"?r.alpha:1,o=X({},r,{alpha:Al(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return qn(o)}var Kb=Il(Yb),Oe=Kb,Ir=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),gt=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Oe(.1,e.color.defaultText):Oe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),oe=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),Jt={margin:"16px 0"},Xb=r=>{var n=r,{href:e}=n,t=R(n,["href"]);let o=/^\//.test(e)?`./?path=${e}`:e,a=/^#.*/.test(e)?"_self":"_top";return p.createElement("a",b({href:o,target:a},t))},u1=k(Xb)(oe,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),f1=k.blockquote(oe,Jt,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Zb=e=>typeof e=="string",Jb=/[\n\r]/g,Qb=k.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),gt),ey=k(hl)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),_l=n=>{var o=n,{className:e,children:t}=o,r=R(o,["className","children"]);var c;let a=(e||"").match(/lang-(\S+)/),i=l.Children.toArray(t);return i.filter(Zb).some(s=>s.match(Jb))?p.createElement(ey,b({bordered:!0,copyable:!0,language:(c=a==null?void 0:a[1])!=null?c:"text",format:!1},r),t):p.createElement(Qb,z(b({},r),{className:e}),i)},p1=k.div(oe),h1=k.dl(oe,Jt,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),m1=k.h1(oe,Ir,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),kl=k.h2(oe,Ir,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),$l=k.h3(oe,Ir,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),g1=k.h4(oe,Ir,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),v1=k.h5(oe,Ir,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),b1=k.h6(oe,Ir,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),y1=k.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),w1=k.img({maxWidth:"100%"}),x1=k.li(oe,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":gt({theme:e})})),ty={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},E1=k.ol(oe,Jt,ty,{listStyle:"decimal"}),C1=k.p(oe,Jt,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":gt({theme:e})})),S1=k.pre(oe,Jt,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),R1=k.span(oe,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),I1=k.table(oe,Jt,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),A1=k.title(gt),ry={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},_1=k.ul(oe,Jt,ry,{listStyle:"disc"}),Ol=k.div(oe),k1={h1:e=>p.createElement(m1,b({},ae(e,"h1"))),h2:e=>p.createElement(kl,b({},ae(e,"h2"))),h3:e=>p.createElement($l,b({},ae(e,"h3"))),h4:e=>p.createElement(g1,b({},ae(e,"h4"))),h5:e=>p.createElement(v1,b({},ae(e,"h5"))),h6:e=>p.createElement(b1,b({},ae(e,"h6"))),pre:e=>p.createElement(S1,b({},ae(e,"pre"))),a:e=>p.createElement(u1,b({},ae(e,"a"))),hr:e=>p.createElement(y1,b({},ae(e,"hr"))),dl:e=>p.createElement(h1,b({},ae(e,"dl"))),blockquote:e=>p.createElement(f1,b({},ae(e,"blockquote"))),table:e=>p.createElement(I1,b({},ae(e,"table"))),img:e=>p.createElement(w1,b({},ae(e,"img"))),div:e=>p.createElement(p1,b({},ae(e,"div"))),span:e=>p.createElement(R1,b({},ae(e,"span"))),li:e=>p.createElement(x1,b({},ae(e,"li"))),ul:e=>p.createElement(_1,b({},ae(e,"ul"))),ol:e=>p.createElement(E1,b({},ae(e,"ol"))),p:e=>p.createElement(C1,b({},ae(e,"p"))),code:e=>p.createElement(_l,b({},ae(e,"code"))),tt:e=>p.createElement(A1,b({},ae(e,"tt"))),resetwrapper:e=>p.createElement(Ol,b({},ae(e,"resetwrapper")))},ny=k.div(({theme:e})=>({display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:e.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Oe(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Oe(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.color.dark,background:e.color.mediumlight,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Oe(.9,e.color.dark)}`:"none"};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Oe(.9,e.color.positiveText)}`:"none"};default:return{}}}),ay=t=>{var e=R(t,[]);return p.createElement(ny,b({},e))},oy=0,ly=e=>e.button===oy&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,iy=(e,t)=>{ly(e)&&(e.preventDefault(),t(e))},sy=k.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),cy=k.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:dr(.07,e.color.secondary),"svg path:not([fill])":{fill:dr(.07,e.color.secondary)}},"&:active":{color:dr(.1,e.color.secondary),"svg path:not([fill])":{fill:dr(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Wt=s=>{var d=s,{cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:a=void 0,style:i=void 0}=d,c=R(d,["cancel","children","onClick","withArrow","containsIcon","className","style"]);return p.createElement(cy,z(b({},c),{onClick:r&&e?u=>iy(u,r):r,className:a}),p.createElement(sy,{withArrow:n,containsIcon:o},t,n&&p.createElement(El,null)))},dy=k.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"&&e.color.darkest}})),qt=[],xr=null,uy=l.lazy(()=>nr(void 0,null,function*(){let{SyntaxHighlighter:e}=yield Gt(()=>import("./syntaxhighlighter-BP7B2CQK-BMfPl9gr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return qt.length>0&&(qt.forEach(t=>{e.registerLanguage(...t)}),qt=[]),xr===null&&(xr=e),{default:t=>p.createElement(e,b({},t))}})),fy=l.lazy(()=>nr(void 0,null,function*(){let[{SyntaxHighlighter:e},{formatter:t}]=yield Promise.all([Gt(()=>import("./syntaxhighlighter-BP7B2CQK-BMfPl9gr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),Gt(()=>import("./formatter-2WMMO6ZP-J0ZH1JfW.js"),__vite__mapDeps([11,1,2,3,4,5,6,7,8,9,10]),import.meta.url)]);return qt.length>0&&(qt.forEach(r=>{e.registerLanguage(...r)}),qt=[]),xr===null&&(xr=e),{default:r=>p.createElement(e,z(b({},r),{formatter:t}))}})),pa=e=>p.createElement(l.Suspense,{fallback:p.createElement("div",null)},e.format!==!1?p.createElement(fy,b({},e)):p.createElement(uy,b({},e)));pa.registerLanguage=(...e)=>{if(xr!==null){xr.registerLanguage(...e);return}qt.push(e)};var $1={};Qp($1,{Actions:()=>wy,CloseButton:()=>L1,Col:()=>B1,Container:()=>M1,Content:()=>gy,Description:()=>yy,Error:()=>xy,ErrorWrapper:()=>P1,Header:()=>vy,Overlay:()=>T1,Row:()=>z1,Title:()=>by});var kt=l.forwardRef((u,d)=>{var h=u,{asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:o="medium",disabled:a=!1,active:i=!1,onClick:c}=h,s=R(h,["asChild","animation","size","variant","padding","disabled","active","onClick"]);let g="button";s.isLink&&(g="a"),e&&(g=an);let f=n,v=r,[m,x]=l.useState(!1),S=y=>{c&&c(y),t!=="none"&&x(!0)};if(l.useEffect(()=>{let y=setTimeout(()=>{m&&x(!1)},1e3);return()=>clearTimeout(y)},[m]),s.primary&&(f="solid",v="medium"),(s.secondary||s.tertiary||s.gray||s.outline||s.inForm)&&(f="outline",v="medium"),s.small||s.isLink||s.primary||s.secondary||s.tertiary||s.gray||s.outline||s.inForm||s.containsIcon){let y=p.Children.toArray(s.children).filter(w=>typeof w=="string"&&w!=="");l1(`Use of deprecated props in the button ${y.length>0?`"${y.join(" ")}"`:"component"} detected, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-ui-and-props-for-button-and-iconbutton-components`)}return p.createElement(py,b({as:g,ref:d,variant:f,size:v,padding:o,disabled:a,active:i,animating:m,animation:t,onClick:S},s))});kt.displayName="Button";var py=k("button",{shouldForwardProp:e=>Ko(e)})(({theme:e,variant:t,size:r,disabled:n,active:o,animating:a,animation:i,padding:c})=>z(b({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:c==="small"&&r==="small"?"0 7px":c==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&o?e.background.hoverable:"transparent"},t==="ghost"?{".sb-bar &":{background:o?Oe(.9,e.barTextColor):"transparent",color:o?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:Oe(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:Oe(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${qn(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{}),{color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&o?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?Oe(.86,e.color.secondary):e.base==="light"?dr(.02,s):s0(.03,s)})()},"&:active":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?dr(.02,s):s0(.03,s)})()},"&:focus":{boxShadow:`${qn(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:a&&i!=="none"?`${e.animation[i]} 1000ms ease-out`:""}})),St=l.forwardRef((o,n)=>{var a=o,{padding:e="small",variant:t="ghost"}=a,r=R(a,["padding","variant"]);return p.createElement(kt,b({padding:e,variant:t,ref:n},r))});St.displayName="IconButton";var O1=ht({from:{opacity:0},to:{opacity:1}}),hy=ht({from:{maxHeight:0},to:{}}),my=ht({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),T1=k.div({backgroundColor:"rgba(27, 28, 29, 0.2)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${O1} 200ms`}),M1=k.div(({theme:e,width:t,height:r})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"rgba(255, 255, 255, 0.05) 0 0 0 1px inset, rgba(14, 18, 22, 0.35) 0px 10px 38px -10px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t!=null?t:740,height:r!=null?r:"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"hidden",zIndex:11,animation:`${my} 200ms`,"&:focus-visible":{outline:"none"}})),L1=e=>p.createElement(o1,{asChild:!0},p.createElement(St,b({},e),p.createElement(xc,null))),gy=k.div({display:"flex",flexDirection:"column",margin:16,gap:16}),z1=k.div({display:"flex",justifyContent:"space-between",gap:16}),B1=k.div({display:"flex",flexDirection:"column",gap:4}),vy=e=>p.createElement(z1,null,p.createElement(B1,b({},e)),p.createElement(L1,null)),by=k(n1)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),yy=k(a1)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),wy=k.div({display:"flex",flexDirection:"row-reverse",gap:8}),P1=k.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${hy} 300ms, ${O1} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),xy=r=>{var n=r,{children:e}=n,t=R(n,["children"]);return p.createElement(P1,b({},t),p.createElement("div",null,e))};function Ey(s){var d=s,{children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:o=u=>u.preventDefault(),className:a,container:i}=d,c=R(d,["children","width","height","onEscapeKeyDown","onInteractOutside","className","container"]);return p.createElement(Qc,b({},c),p.createElement(e1,{container:i},p.createElement(t1,{asChild:!0},p.createElement(T1,null)),p.createElement(r1,{asChild:!0,onInteractOutside:o,onEscapeKeyDown:n},p.createElement(M1,{className:a,width:t,height:r},e))))}var Cy=Object.assign(Ey,$1,{Dialog:vb}),Sy=e=>typeof e=="number"?e:Number(e),Ry=k.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${bo}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${bo}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),Iy=a=>{var i=a,{col:e,row:t,outer:r,children:n}=i,o=R(i,["col","row","outer","children"]);let c=Sy(typeof r=="number"||!r?r:e||t);return p.createElement(Ry,b({col:e,row:t,outer:c},o),n)},Ay=k.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),_y=k.div(),ky=k.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),$y=r=>{var n=r,{children:e}=n,t=R(n,["children"]);let[o,a]=l.Children.toArray(e);return p.createElement(ky,b({},t),p.createElement(Ay,null,o),a&&p.createElement(_y,null,a))};function Oy(e,t){var r=l.useRef(null),n=l.useRef(null);n.current=t;var o=l.useRef(null);l.useEffect(function(){a()});var a=l.useCallback(function(){var i=o.current,c=n.current,s=i||(c?c instanceof Element?c:c.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return l.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),l.useCallback(function(i){o.current=i,a()},[a])}function c0(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function F1(e){e===void 0&&(e={});var t=e.onResize,r=l.useRef(void 0);r.current=t;var n=e.round||Math.round,o=l.useRef(),a=l.useState({width:void 0,height:void 0}),i=a[0],c=a[1],s=l.useRef(!1);l.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var d=l.useRef({width:void 0,height:void 0}),u=Oy(l.useCallback(function(h){return(!o.current||o.current.box!==e.box||o.current.round!==n)&&(o.current={box:e.box,round:n,instance:new ResizeObserver(function(g){var f=g[0],v=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",m=c0(f,v,"inlineSize"),x=c0(f,v,"blockSize"),S=m?n(m):void 0,y=x?n(x):void 0;if(d.current.width!==S||d.current.height!==y){var w={width:S,height:y};d.current.width=S,d.current.height=y,r.current?r.current(w):s.current||c(w)}})}),o.current.instance.observe(h,{box:e.box}),function(){o.current&&o.current.instance.unobserve(h)}},[e.box,n]),e.ref);return l.useMemo(function(){return{ref:u,width:i.width,height:i.height}},[u,i.width,i.height])}var Ty=k.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function My({scale:e,children:t}){let r=l.useRef(null),[n,o]=l.useState(0),a=l.useCallback(({height:i})=>{i&&o(i/e)},[e]);return l.useEffect(()=>{r.current&&o(r.current.getBoundingClientRect().height)},[e]),F1({ref:r,onResize:a}),p.createElement(Ty,{scale:e,elementHeight:n},p.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var Ly=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}catch(t){this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return p.createElement(p.Fragment,null,e)}},H1={Element:My,IFrame:Ly},{document:zy}=yb,By=k.strong(({theme:e})=>({color:e.color.orange})),Py=k.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),d0=k.em(({theme:e})=>({color:e.textMutedColor})),Fy=/(Error): (.*)\n/,Hy=/at (?:(.*) )?\(?(.+)\)?/,Ny=/([^@]+)?(?:\/<)?@(.+)?/,Dy=/([^@]+)?@(.+)?/,N1=({error:e})=>{if(!e)return p.createElement(l.Fragment,null,"This error has no stack or message");if(!e.stack)return p.createElement(l.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message} +`};function Rb(){for(var e=arguments.length,t=new Array(e),r=0;r1?o-1:0),i=1;i=0&&o<1?(c=a,s=i):o>=1&&o<2?(c=i,s=a):o>=2&&o<3?(s=a,d=i):o>=3&&o<4?(s=i,d=a):o>=4&&o<5?(c=i,d=a):o>=5&&o<6&&(c=a,d=i);var u=r-a/2,h=c+u,g=s+u,f=d+u;return n(h,g,f)}var i0={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"639",red:"f00",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",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Ab(e){if(typeof e!="string")return e;var t=e.toLowerCase();return i0[t]?"#"+i0[t]:e}var _b=/^#[a-fA-F0-9]{6}$/,kb=/^#[a-fA-F0-9]{8}$/,$b=/^#[a-fA-F0-9]{3}$/,Ob=/^#[a-fA-F0-9]{4}$/,Va=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Tb=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Mb=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Lb=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Rl(e){if(typeof e!="string")throw new ot(3);var t=Ab(e);if(t.match(_b))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(kb)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match($b))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Ob)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=Va.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=Tb.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=Mb.exec(t);if(i){var c=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,u="rgb("+Qr(c,s,d)+")",h=Va.exec(u);if(!h)throw new ot(4,t,u);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10)}}var g=Lb.exec(t.substring(0,50));if(g){var f=parseInt(""+g[1],10),v=parseInt(""+g[2],10)/100,m=parseInt(""+g[3],10)/100,x="rgb("+Qr(f,v,m)+")",S=Va.exec(x);if(!S)throw new ot(4,t,x);return{red:parseInt(""+S[1],10),green:parseInt(""+S[2],10),blue:parseInt(""+S[3],10),alpha:parseFloat(""+g[4])>1?parseFloat(""+g[4])/100:parseFloat(""+g[4])}}throw new ot(5)}function zb(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c,s=o-a,d=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:c=(r-n)/s+(r=1?Wn(e,t,r):"rgba("+Qr(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Wn(e.hue,e.saturation,e.lightness):"rgba("+Qr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ot(2)}function To(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Oo("#"+Pt(e)+Pt(t)+Pt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Oo("#"+Pt(e.red)+Pt(e.green)+Pt(e.blue));throw new ot(6)}function qn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Rl(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?To(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?To(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new ot(7)}var Nb=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Db=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},jb=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Vb=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function c1(e){if(typeof e!="object")throw new ot(8);if(Db(e))return qn(e);if(Nb(e))return To(e);if(Vb(e))return Hb(e);if(jb(e))return Fb(e);throw new ot(8)}function d1(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):d1(e,t,n)}}function Il(e){return d1(e,e.length,[])}function Al(e,t,r){return Math.max(e,Math.min(t,r))}function Ub(e,t){if(t==="transparent")return t;var r=s1(t);return c1(X({},r,{lightness:Al(0,1,r.lightness-parseFloat(e))}))}var Wb=Il(Ub),dr=Wb;function qb(e,t){if(t==="transparent")return t;var r=s1(t);return c1(X({},r,{lightness:Al(0,1,r.lightness+parseFloat(e))}))}var Gb=Il(qb),s0=Gb;function Yb(e,t){if(t==="transparent")return t;var r=Rl(t),n=typeof r.alpha=="number"?r.alpha:1,o=X({},r,{alpha:Al(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return qn(o)}var Kb=Il(Yb),Oe=Kb,Ir=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),gt=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Oe(.1,e.color.defaultText):Oe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),oe=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),Jt={margin:"16px 0"},Xb=r=>{var n=r,{href:e}=n,t=R(n,["href"]);let o=/^\//.test(e)?`./?path=${e}`:e,a=/^#.*/.test(e)?"_self":"_top";return p.createElement("a",b({href:o,target:a},t))},u1=k(Xb)(oe,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),f1=k.blockquote(oe,Jt,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Zb=e=>typeof e=="string",Jb=/[\n\r]/g,Qb=k.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),gt),ey=k(hl)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),_l=n=>{var o=n,{className:e,children:t}=o,r=R(o,["className","children"]);var c;let a=(e||"").match(/lang-(\S+)/),i=l.Children.toArray(t);return i.filter(Zb).some(s=>s.match(Jb))?p.createElement(ey,b({bordered:!0,copyable:!0,language:(c=a==null?void 0:a[1])!=null?c:"text",format:!1},r),t):p.createElement(Qb,z(b({},r),{className:e}),i)},p1=k.div(oe),h1=k.dl(oe,Jt,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),m1=k.h1(oe,Ir,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),kl=k.h2(oe,Ir,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),$l=k.h3(oe,Ir,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),g1=k.h4(oe,Ir,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),v1=k.h5(oe,Ir,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),b1=k.h6(oe,Ir,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),y1=k.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),w1=k.img({maxWidth:"100%"}),x1=k.li(oe,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":gt({theme:e})})),ty={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},E1=k.ol(oe,Jt,ty,{listStyle:"decimal"}),C1=k.p(oe,Jt,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":gt({theme:e})})),S1=k.pre(oe,Jt,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),R1=k.span(oe,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),I1=k.table(oe,Jt,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),A1=k.title(gt),ry={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},_1=k.ul(oe,Jt,ry,{listStyle:"disc"}),Ol=k.div(oe),k1={h1:e=>p.createElement(m1,b({},ae(e,"h1"))),h2:e=>p.createElement(kl,b({},ae(e,"h2"))),h3:e=>p.createElement($l,b({},ae(e,"h3"))),h4:e=>p.createElement(g1,b({},ae(e,"h4"))),h5:e=>p.createElement(v1,b({},ae(e,"h5"))),h6:e=>p.createElement(b1,b({},ae(e,"h6"))),pre:e=>p.createElement(S1,b({},ae(e,"pre"))),a:e=>p.createElement(u1,b({},ae(e,"a"))),hr:e=>p.createElement(y1,b({},ae(e,"hr"))),dl:e=>p.createElement(h1,b({},ae(e,"dl"))),blockquote:e=>p.createElement(f1,b({},ae(e,"blockquote"))),table:e=>p.createElement(I1,b({},ae(e,"table"))),img:e=>p.createElement(w1,b({},ae(e,"img"))),div:e=>p.createElement(p1,b({},ae(e,"div"))),span:e=>p.createElement(R1,b({},ae(e,"span"))),li:e=>p.createElement(x1,b({},ae(e,"li"))),ul:e=>p.createElement(_1,b({},ae(e,"ul"))),ol:e=>p.createElement(E1,b({},ae(e,"ol"))),p:e=>p.createElement(C1,b({},ae(e,"p"))),code:e=>p.createElement(_l,b({},ae(e,"code"))),tt:e=>p.createElement(A1,b({},ae(e,"tt"))),resetwrapper:e=>p.createElement(Ol,b({},ae(e,"resetwrapper")))},ny=k.div(({theme:e})=>({display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:e.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Oe(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Oe(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.color.dark,background:e.color.mediumlight,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Oe(.9,e.color.dark)}`:"none"};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Oe(.9,e.color.positiveText)}`:"none"};default:return{}}}),ay=t=>{var e=R(t,[]);return p.createElement(ny,b({},e))},oy=0,ly=e=>e.button===oy&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,iy=(e,t)=>{ly(e)&&(e.preventDefault(),t(e))},sy=k.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),cy=k.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:dr(.07,e.color.secondary),"svg path:not([fill])":{fill:dr(.07,e.color.secondary)}},"&:active":{color:dr(.1,e.color.secondary),"svg path:not([fill])":{fill:dr(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Wt=s=>{var d=s,{cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:a=void 0,style:i=void 0}=d,c=R(d,["cancel","children","onClick","withArrow","containsIcon","className","style"]);return p.createElement(cy,z(b({},c),{onClick:r&&e?u=>iy(u,r):r,className:a}),p.createElement(sy,{withArrow:n,containsIcon:o},t,n&&p.createElement(El,null)))},dy=k.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"&&e.color.darkest}})),qt=[],xr=null,uy=l.lazy(()=>nr(void 0,null,function*(){let{SyntaxHighlighter:e}=yield Gt(()=>import("./syntaxhighlighter-BP7B2CQK-BjOlNbxl.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return qt.length>0&&(qt.forEach(t=>{e.registerLanguage(...t)}),qt=[]),xr===null&&(xr=e),{default:t=>p.createElement(e,b({},t))}})),fy=l.lazy(()=>nr(void 0,null,function*(){let[{SyntaxHighlighter:e},{formatter:t}]=yield Promise.all([Gt(()=>import("./syntaxhighlighter-BP7B2CQK-BjOlNbxl.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),Gt(()=>import("./formatter-2WMMO6ZP-BT36p0-D.js"),__vite__mapDeps([11,1,2,3,4,5,6,7,8,9,10]),import.meta.url)]);return qt.length>0&&(qt.forEach(r=>{e.registerLanguage(...r)}),qt=[]),xr===null&&(xr=e),{default:r=>p.createElement(e,z(b({},r),{formatter:t}))}})),pa=e=>p.createElement(l.Suspense,{fallback:p.createElement("div",null)},e.format!==!1?p.createElement(fy,b({},e)):p.createElement(uy,b({},e)));pa.registerLanguage=(...e)=>{if(xr!==null){xr.registerLanguage(...e);return}qt.push(e)};var $1={};Qp($1,{Actions:()=>wy,CloseButton:()=>L1,Col:()=>B1,Container:()=>M1,Content:()=>gy,Description:()=>yy,Error:()=>xy,ErrorWrapper:()=>P1,Header:()=>vy,Overlay:()=>T1,Row:()=>z1,Title:()=>by});var kt=l.forwardRef((u,d)=>{var h=u,{asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:o="medium",disabled:a=!1,active:i=!1,onClick:c}=h,s=R(h,["asChild","animation","size","variant","padding","disabled","active","onClick"]);let g="button";s.isLink&&(g="a"),e&&(g=an);let f=n,v=r,[m,x]=l.useState(!1),S=y=>{c&&c(y),t!=="none"&&x(!0)};if(l.useEffect(()=>{let y=setTimeout(()=>{m&&x(!1)},1e3);return()=>clearTimeout(y)},[m]),s.primary&&(f="solid",v="medium"),(s.secondary||s.tertiary||s.gray||s.outline||s.inForm)&&(f="outline",v="medium"),s.small||s.isLink||s.primary||s.secondary||s.tertiary||s.gray||s.outline||s.inForm||s.containsIcon){let y=p.Children.toArray(s.children).filter(w=>typeof w=="string"&&w!=="");l1(`Use of deprecated props in the button ${y.length>0?`"${y.join(" ")}"`:"component"} detected, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-ui-and-props-for-button-and-iconbutton-components`)}return p.createElement(py,b({as:g,ref:d,variant:f,size:v,padding:o,disabled:a,active:i,animating:m,animation:t,onClick:S},s))});kt.displayName="Button";var py=k("button",{shouldForwardProp:e=>Ko(e)})(({theme:e,variant:t,size:r,disabled:n,active:o,animating:a,animation:i,padding:c})=>z(b({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:c==="small"&&r==="small"?"0 7px":c==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&o?e.background.hoverable:"transparent"},t==="ghost"?{".sb-bar &":{background:o?Oe(.9,e.barTextColor):"transparent",color:o?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:Oe(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:Oe(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${qn(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{}),{color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&o?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?Oe(.86,e.color.secondary):e.base==="light"?dr(.02,s):s0(.03,s)})()},"&:active":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?dr(.02,s):s0(.03,s)})()},"&:focus":{boxShadow:`${qn(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:a&&i!=="none"?`${e.animation[i]} 1000ms ease-out`:""}})),St=l.forwardRef((o,n)=>{var a=o,{padding:e="small",variant:t="ghost"}=a,r=R(a,["padding","variant"]);return p.createElement(kt,b({padding:e,variant:t,ref:n},r))});St.displayName="IconButton";var O1=ht({from:{opacity:0},to:{opacity:1}}),hy=ht({from:{maxHeight:0},to:{}}),my=ht({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),T1=k.div({backgroundColor:"rgba(27, 28, 29, 0.2)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${O1} 200ms`}),M1=k.div(({theme:e,width:t,height:r})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"rgba(255, 255, 255, 0.05) 0 0 0 1px inset, rgba(14, 18, 22, 0.35) 0px 10px 38px -10px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t!=null?t:740,height:r!=null?r:"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"hidden",zIndex:11,animation:`${my} 200ms`,"&:focus-visible":{outline:"none"}})),L1=e=>p.createElement(o1,{asChild:!0},p.createElement(St,b({},e),p.createElement(xc,null))),gy=k.div({display:"flex",flexDirection:"column",margin:16,gap:16}),z1=k.div({display:"flex",justifyContent:"space-between",gap:16}),B1=k.div({display:"flex",flexDirection:"column",gap:4}),vy=e=>p.createElement(z1,null,p.createElement(B1,b({},e)),p.createElement(L1,null)),by=k(n1)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),yy=k(a1)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),wy=k.div({display:"flex",flexDirection:"row-reverse",gap:8}),P1=k.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${hy} 300ms, ${O1} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),xy=r=>{var n=r,{children:e}=n,t=R(n,["children"]);return p.createElement(P1,b({},t),p.createElement("div",null,e))};function Ey(s){var d=s,{children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:o=u=>u.preventDefault(),className:a,container:i}=d,c=R(d,["children","width","height","onEscapeKeyDown","onInteractOutside","className","container"]);return p.createElement(Qc,b({},c),p.createElement(e1,{container:i},p.createElement(t1,{asChild:!0},p.createElement(T1,null)),p.createElement(r1,{asChild:!0,onInteractOutside:o,onEscapeKeyDown:n},p.createElement(M1,{className:a,width:t,height:r},e))))}var Cy=Object.assign(Ey,$1,{Dialog:vb}),Sy=e=>typeof e=="number"?e:Number(e),Ry=k.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${bo}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${bo}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),Iy=a=>{var i=a,{col:e,row:t,outer:r,children:n}=i,o=R(i,["col","row","outer","children"]);let c=Sy(typeof r=="number"||!r?r:e||t);return p.createElement(Ry,b({col:e,row:t,outer:c},o),n)},Ay=k.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),_y=k.div(),ky=k.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),$y=r=>{var n=r,{children:e}=n,t=R(n,["children"]);let[o,a]=l.Children.toArray(e);return p.createElement(ky,b({},t),p.createElement(Ay,null,o),a&&p.createElement(_y,null,a))};function Oy(e,t){var r=l.useRef(null),n=l.useRef(null);n.current=t;var o=l.useRef(null);l.useEffect(function(){a()});var a=l.useCallback(function(){var i=o.current,c=n.current,s=i||(c?c instanceof Element?c:c.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return l.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),l.useCallback(function(i){o.current=i,a()},[a])}function c0(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function F1(e){e===void 0&&(e={});var t=e.onResize,r=l.useRef(void 0);r.current=t;var n=e.round||Math.round,o=l.useRef(),a=l.useState({width:void 0,height:void 0}),i=a[0],c=a[1],s=l.useRef(!1);l.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var d=l.useRef({width:void 0,height:void 0}),u=Oy(l.useCallback(function(h){return(!o.current||o.current.box!==e.box||o.current.round!==n)&&(o.current={box:e.box,round:n,instance:new ResizeObserver(function(g){var f=g[0],v=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",m=c0(f,v,"inlineSize"),x=c0(f,v,"blockSize"),S=m?n(m):void 0,y=x?n(x):void 0;if(d.current.width!==S||d.current.height!==y){var w={width:S,height:y};d.current.width=S,d.current.height=y,r.current?r.current(w):s.current||c(w)}})}),o.current.instance.observe(h,{box:e.box}),function(){o.current&&o.current.instance.unobserve(h)}},[e.box,n]),e.ref);return l.useMemo(function(){return{ref:u,width:i.width,height:i.height}},[u,i.width,i.height])}var Ty=k.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function My({scale:e,children:t}){let r=l.useRef(null),[n,o]=l.useState(0),a=l.useCallback(({height:i})=>{i&&o(i/e)},[e]);return l.useEffect(()=>{r.current&&o(r.current.getBoundingClientRect().height)},[e]),F1({ref:r,onResize:a}),p.createElement(Ty,{scale:e,elementHeight:n},p.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var Ly=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}catch(t){this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return p.createElement(p.Fragment,null,e)}},H1={Element:My,IFrame:Ly},{document:zy}=yb,By=k.strong(({theme:e})=>({color:e.color.orange})),Py=k.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),d0=k.em(({theme:e})=>({color:e.textMutedColor})),Fy=/(Error): (.*)\n/,Hy=/at (?:(.*) )?\(?(.+)\)?/,Ny=/([^@]+)?(?:\/<)?@(.+)?/,Dy=/([^@]+)?@(.+)?/,N1=({error:e})=>{if(!e)return p.createElement(l.Fragment,null,"This error has no stack or message");if(!e.stack)return p.createElement(l.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message} -${t}`);let r=t.match(Fy);if(!r)return p.createElement(l.Fragment,null,t);let[,n,o]=r,a=t.split(/\n/).slice(1),[,...i]=a.map(c=>{let s=c.match(Hy)||c.match(Ny)||c.match(Dy);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(zy.location.origin,"")}:null}).filter(Boolean);return p.createElement(l.Fragment,null,p.createElement("span",null,n),": ",p.createElement(By,null,o),p.createElement("br",null),i.map((c,s)=>c.name?p.createElement(l.Fragment,{key:s}," ","at ",p.createElement(Py,null,c.name)," (",p.createElement(d0,null,c.location),")",p.createElement("br",null)):p.createElement(l.Fragment,{key:s}," ","at ",p.createElement(d0,null,c.location),p.createElement("br",null))))},jy=k.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),Vy=k.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),Uy=n=>{var o=n,{label:e,children:t}=o,r=R(o,["label","children"]);return p.createElement(jy,b({},r),e?p.createElement(Vy,null,p.createElement("span",null,e)):null,t)},Wy=l.useLayoutEffect,qy=Wy,Gy=function(e){var t=l.useRef(e);return qy(function(){t.current=e}),t},u0=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},Yy=function(e,t){var r=l.useRef();return l.useCallback(function(n){e.current=n,r.current&&u0(r.current,null),r.current=t,t&&u0(t,n)},[t])},Ky=Yy,f0={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Xy=function(e){Object.keys(f0).forEach(function(t){e.style.setProperty(t,f0[t],"important")})},p0=Xy,xe=null,h0=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function Zy(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),xe||(xe=document.createElement("textarea"),xe.setAttribute("tabindex","-1"),xe.setAttribute("aria-hidden","true"),p0(xe)),xe.parentNode===null&&document.body.appendChild(xe);var o=e.paddingSize,a=e.borderSize,i=e.sizingStyle,c=i.boxSizing;Object.keys(i).forEach(function(g){var f=g;xe.style[f]=i[f]}),p0(xe),xe.value=t;var s=h0(xe,e);xe.value=t,s=h0(xe,e),xe.value="x";var d=xe.scrollHeight-o,u=d*r;c==="border-box"&&(u=u+o+a),s=Math.max(u,s);var h=d*n;return c==="border-box"&&(h=h+o+a),s=Math.min(h,s),[s,d]}var m0=function(){},Jy=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},Qy=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],e6=!!document.documentElement.currentStyle,t6=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=Jy(Qy,t),n=r.boxSizing;if(n==="")return null;e6&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),a=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:a}},r6=t6;function D1(e,t,r){var n=Gy(r);l.useLayoutEffect(function(){var o=function(a){return n.current(a)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var n6=function(e){D1(window,"resize",e)},a6=function(e){D1(document.fonts,"loadingdone",e)},o6=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],l6=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,a=e.onChange,i=a===void 0?m0:a,c=e.onHeightChange,s=c===void 0?m0:c,d=al(e,o6),u=d.value!==void 0,h=l.useRef(null),g=Ky(h,t),f=l.useRef(0),v=l.useRef(),m=function(){var S=h.current,y=r&&v.current?v.current:r6(S);if(y){v.current=y;var w=Zy(y,S.value||S.placeholder||"x",o,n),E=w[0],C=w[1];f.current!==E&&(f.current=E,S.style.setProperty("height",E+"px","important"),s(E,{rowHeight:C}))}},x=function(S){u||m(),i(S)};return l.useLayoutEffect(m),n6(m),a6(m),l.createElement("textarea",X({},d,{onChange:x,ref:g}))},i6=l.forwardRef(l6),s6={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Tl=({theme:e})=>z(b({},s6),{transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),Ml=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},j1=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},Ll=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},c6=Object.assign(k(l.forwardRef(function(a,o){var i=a,{size:e,valid:t,align:r}=i,n=R(i,["size","valid","align"]);return p.createElement("input",z(b({},n),{ref:o}))}))(Tl,Ml,j1,Ll,{minHeight:32}),{displayName:"Input"}),d6=Object.assign(k(l.forwardRef(function(a,o){var i=a,{size:e,valid:t,align:r}=i,n=R(i,["size","valid","align"]);return p.createElement("select",z(b({},n),{ref:o}))}))(Tl,Ml,Ll,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),u6=Object.assign(k(l.forwardRef(function(a,o){var i=a,{size:e,valid:t,align:r}=i,n=R(i,["size","valid","align"]);return p.createElement(i6,z(b({},n),{ref:o}))}))(Tl,Ml,j1,Ll,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Ar=Object.assign(k.form({boxSizing:"border-box",width:"100%"}),{Field:Uy,Input:c6,Select:d6,Textarea:u6,Button:kt}),f6=l.lazy(()=>Gt(()=>import("./WithTooltip-KJL26V4Q-zZok1gnI.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>({default:e.WithTooltip}))),p6=e=>p.createElement(l.Suspense,{fallback:p.createElement("div",null)},p.createElement(f6,b({},e))),h6=l.lazy(()=>Gt(()=>import("./WithTooltip-KJL26V4Q-zZok1gnI.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),V1=e=>p.createElement(l.Suspense,{fallback:p.createElement("div",null)},p.createElement(h6,b({},e))),m6=k.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),g6=k.span(),v6=k.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),b6=k.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),y6=k.div({padding:15,width:280,boxSizing:"border-box"}),w6=({title:e,desc:t,links:r})=>p.createElement(y6,null,p.createElement(b6,null,e&&p.createElement(m6,null,e),t&&p.createElement(g6,null,t)),r&&p.createElement(v6,null,r.map(a=>{var i=a,{title:n}=i,o=R(i,["title"]);return p.createElement(Wt,z(b({},o),{key:n}),n)}))),x6=k.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),E6=r=>{var n=r,{note:e}=n,t=R(n,["note"]);return p.createElement(x6,b({},t),e)},C6=k(o=>{var a=o,{active:e,loading:t,disabled:r}=a,n=R(a,["active","loading","disabled"]);return p.createElement("span",b({},n))})(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?b({display:"inline-block",flex:"none"},t.animation.inlineGlow):{},({disabled:e,theme:t})=>e?{color:Oe(.7,t.color.defaultText)}:{}),S6=k.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),R6=k.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),I6=k.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),A6=k.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),_6=k.a(({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),({disabled:e})=>e?{cursor:"not-allowed"}:{}),k6=Xt(100)((e,t,r)=>{let n={};return e&&Object.assign(n,{onClick:e}),t&&Object.assign(n,{href:t}),r&&t&&Object.assign(n,{to:t,as:r}),n}),$6=g=>{var f=g,{loading:e=!1,title:t=p.createElement("span",null,"Loading state"),center:r=null,right:n=null,active:o=!1,disabled:a=!1,isIndented:i,href:c=null,onClick:s=null,icon:d,LinkWrapper:u=null}=f,h=R(f,["loading","title","center","right","active","disabled","isIndented","href","onClick","icon","LinkWrapper"]);let v=k6(s,c,u),m={active:o,disabled:a};return p.createElement(_6,b(b(b({},m),h),v),d&&p.createElement(A6,b({},m),d),t||r?p.createElement(R6,{isIndented:!d&&i},t&&p.createElement(C6,z(b({},m),{loading:e}),t),r&&p.createElement(I6,b({},m),r)):null,n&&p.createElement(S6,b({},m),n))},U1=$6,O6=k.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),T6=e=>{let h=e,{LinkWrapper:t,onClick:r,id:n,isIndented:o}=h,a=R(h,["LinkWrapper","onClick","id","isIndented"]),{title:i,href:c,active:s}=a,d=l.useCallback(g=>{r(g,a)},[r]),u=!!r;return p.createElement(U1,b(b({title:i,active:s,href:c,id:`list-item-${n}`,LinkWrapper:t,isIndented:o},a),u?{onClick:d}:{}))},W1=({links:e,LinkWrapper:t=null})=>{let r=e.some(n=>n.icon);return p.createElement(O6,null,e.map(a=>{var i=a,{isGatsby:n}=i,o=R(i,["isGatsby"]);return p.createElement(T6,b({key:o.id,LinkWrapper:n?t:null,isIndented:r},o))}))},M6=e=>typeof e.props.href=="string",L6=e=>typeof e.props.href!="string";function z6(n,r){var o=n,{children:e}=o,t=R(o,["children"]);let a={props:t,ref:r};if(M6(a))return p.createElement("a",b({ref:a.ref},a.props),e);if(L6(a))return p.createElement("button",b({ref:a.ref,type:"button"},a.props),e);throw new Error("invalid props")}var q1=l.forwardRef(z6);q1.displayName="ButtonOrLink";var dn=k(q1,{shouldForwardProp:Ko})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}});dn.displayName="TabButton";var B6=k.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),P6=k.div(()=>({marginTop:6,padding:7,height:28})),F6=()=>p.createElement(P6,null,p.createElement(B6,null)),Mo=k.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{});Mo.displayName="Side";var H6=({children:e,className:t,scrollable:r})=>r?p.createElement(ca,{vertical:!1,className:t},e):p.createElement("div",{className:t},e),zl=k(H6)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});zl.displayName="Bar";var N6=k.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),ha=o=>{var a=o,{children:e,backgroundColor:t,className:r}=a,n=R(a,["children","backgroundColor","className"]);let[i,c]=l.Children.toArray(e);return p.createElement(zl,b({className:`sb-bar ${r}`},n),p.createElement(N6,{bgColor:t},p.createElement(Mo,{scrollable:n.scrollable,left:!0},i),c?p.createElement(Mo,{right:!0},c):null))};ha.displayName="FlexBar";var G1=k.div(({active:e})=>e?{display:"block"}:{display:"none"}),D6=e=>l.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let a=Array.isArray(o)?o[0]:o;return z(b({title:t,id:r},n?{color:n}:{}),{render:typeof a=="function"?a:({active:i})=>p.createElement(G1,{active:i,role:"tabpanel"},a)})}),j6=k.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),V6=k(dn)(({active:e,theme:t,preActive:r})=>` +${t}`);let r=t.match(Fy);if(!r)return p.createElement(l.Fragment,null,t);let[,n,o]=r,a=t.split(/\n/).slice(1),[,...i]=a.map(c=>{let s=c.match(Hy)||c.match(Ny)||c.match(Dy);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(zy.location.origin,"")}:null}).filter(Boolean);return p.createElement(l.Fragment,null,p.createElement("span",null,n),": ",p.createElement(By,null,o),p.createElement("br",null),i.map((c,s)=>c.name?p.createElement(l.Fragment,{key:s}," ","at ",p.createElement(Py,null,c.name)," (",p.createElement(d0,null,c.location),")",p.createElement("br",null)):p.createElement(l.Fragment,{key:s}," ","at ",p.createElement(d0,null,c.location),p.createElement("br",null))))},jy=k.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),Vy=k.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),Uy=n=>{var o=n,{label:e,children:t}=o,r=R(o,["label","children"]);return p.createElement(jy,b({},r),e?p.createElement(Vy,null,p.createElement("span",null,e)):null,t)},Wy=l.useLayoutEffect,qy=Wy,Gy=function(e){var t=l.useRef(e);return qy(function(){t.current=e}),t},u0=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},Yy=function(e,t){var r=l.useRef();return l.useCallback(function(n){e.current=n,r.current&&u0(r.current,null),r.current=t,t&&u0(t,n)},[t])},Ky=Yy,f0={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Xy=function(e){Object.keys(f0).forEach(function(t){e.style.setProperty(t,f0[t],"important")})},p0=Xy,xe=null,h0=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function Zy(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),xe||(xe=document.createElement("textarea"),xe.setAttribute("tabindex","-1"),xe.setAttribute("aria-hidden","true"),p0(xe)),xe.parentNode===null&&document.body.appendChild(xe);var o=e.paddingSize,a=e.borderSize,i=e.sizingStyle,c=i.boxSizing;Object.keys(i).forEach(function(g){var f=g;xe.style[f]=i[f]}),p0(xe),xe.value=t;var s=h0(xe,e);xe.value=t,s=h0(xe,e),xe.value="x";var d=xe.scrollHeight-o,u=d*r;c==="border-box"&&(u=u+o+a),s=Math.max(u,s);var h=d*n;return c==="border-box"&&(h=h+o+a),s=Math.min(h,s),[s,d]}var m0=function(){},Jy=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},Qy=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],e6=!!document.documentElement.currentStyle,t6=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=Jy(Qy,t),n=r.boxSizing;if(n==="")return null;e6&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),a=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:a}},r6=t6;function D1(e,t,r){var n=Gy(r);l.useLayoutEffect(function(){var o=function(a){return n.current(a)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var n6=function(e){D1(window,"resize",e)},a6=function(e){D1(document.fonts,"loadingdone",e)},o6=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],l6=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,a=e.onChange,i=a===void 0?m0:a,c=e.onHeightChange,s=c===void 0?m0:c,d=al(e,o6),u=d.value!==void 0,h=l.useRef(null),g=Ky(h,t),f=l.useRef(0),v=l.useRef(),m=function(){var S=h.current,y=r&&v.current?v.current:r6(S);if(y){v.current=y;var w=Zy(y,S.value||S.placeholder||"x",o,n),E=w[0],C=w[1];f.current!==E&&(f.current=E,S.style.setProperty("height",E+"px","important"),s(E,{rowHeight:C}))}},x=function(S){u||m(),i(S)};return l.useLayoutEffect(m),n6(m),a6(m),l.createElement("textarea",X({},d,{onChange:x,ref:g}))},i6=l.forwardRef(l6),s6={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Tl=({theme:e})=>z(b({},s6),{transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),Ml=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},j1=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},Ll=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},c6=Object.assign(k(l.forwardRef(function(a,o){var i=a,{size:e,valid:t,align:r}=i,n=R(i,["size","valid","align"]);return p.createElement("input",z(b({},n),{ref:o}))}))(Tl,Ml,j1,Ll,{minHeight:32}),{displayName:"Input"}),d6=Object.assign(k(l.forwardRef(function(a,o){var i=a,{size:e,valid:t,align:r}=i,n=R(i,["size","valid","align"]);return p.createElement("select",z(b({},n),{ref:o}))}))(Tl,Ml,Ll,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),u6=Object.assign(k(l.forwardRef(function(a,o){var i=a,{size:e,valid:t,align:r}=i,n=R(i,["size","valid","align"]);return p.createElement(i6,z(b({},n),{ref:o}))}))(Tl,Ml,j1,Ll,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Ar=Object.assign(k.form({boxSizing:"border-box",width:"100%"}),{Field:Uy,Input:c6,Select:d6,Textarea:u6,Button:kt}),f6=l.lazy(()=>Gt(()=>import("./WithTooltip-KJL26V4Q-B525ZNjS.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>({default:e.WithTooltip}))),p6=e=>p.createElement(l.Suspense,{fallback:p.createElement("div",null)},p.createElement(f6,b({},e))),h6=l.lazy(()=>Gt(()=>import("./WithTooltip-KJL26V4Q-B525ZNjS.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),V1=e=>p.createElement(l.Suspense,{fallback:p.createElement("div",null)},p.createElement(h6,b({},e))),m6=k.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),g6=k.span(),v6=k.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),b6=k.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),y6=k.div({padding:15,width:280,boxSizing:"border-box"}),w6=({title:e,desc:t,links:r})=>p.createElement(y6,null,p.createElement(b6,null,e&&p.createElement(m6,null,e),t&&p.createElement(g6,null,t)),r&&p.createElement(v6,null,r.map(a=>{var i=a,{title:n}=i,o=R(i,["title"]);return p.createElement(Wt,z(b({},o),{key:n}),n)}))),x6=k.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),E6=r=>{var n=r,{note:e}=n,t=R(n,["note"]);return p.createElement(x6,b({},t),e)},C6=k(o=>{var a=o,{active:e,loading:t,disabled:r}=a,n=R(a,["active","loading","disabled"]);return p.createElement("span",b({},n))})(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?b({display:"inline-block",flex:"none"},t.animation.inlineGlow):{},({disabled:e,theme:t})=>e?{color:Oe(.7,t.color.defaultText)}:{}),S6=k.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),R6=k.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),I6=k.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),A6=k.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),_6=k.a(({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),({disabled:e})=>e?{cursor:"not-allowed"}:{}),k6=Xt(100)((e,t,r)=>{let n={};return e&&Object.assign(n,{onClick:e}),t&&Object.assign(n,{href:t}),r&&t&&Object.assign(n,{to:t,as:r}),n}),$6=g=>{var f=g,{loading:e=!1,title:t=p.createElement("span",null,"Loading state"),center:r=null,right:n=null,active:o=!1,disabled:a=!1,isIndented:i,href:c=null,onClick:s=null,icon:d,LinkWrapper:u=null}=f,h=R(f,["loading","title","center","right","active","disabled","isIndented","href","onClick","icon","LinkWrapper"]);let v=k6(s,c,u),m={active:o,disabled:a};return p.createElement(_6,b(b(b({},m),h),v),d&&p.createElement(A6,b({},m),d),t||r?p.createElement(R6,{isIndented:!d&&i},t&&p.createElement(C6,z(b({},m),{loading:e}),t),r&&p.createElement(I6,b({},m),r)):null,n&&p.createElement(S6,b({},m),n))},U1=$6,O6=k.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),T6=e=>{let h=e,{LinkWrapper:t,onClick:r,id:n,isIndented:o}=h,a=R(h,["LinkWrapper","onClick","id","isIndented"]),{title:i,href:c,active:s}=a,d=l.useCallback(g=>{r(g,a)},[r]),u=!!r;return p.createElement(U1,b(b({title:i,active:s,href:c,id:`list-item-${n}`,LinkWrapper:t,isIndented:o},a),u?{onClick:d}:{}))},W1=({links:e,LinkWrapper:t=null})=>{let r=e.some(n=>n.icon);return p.createElement(O6,null,e.map(a=>{var i=a,{isGatsby:n}=i,o=R(i,["isGatsby"]);return p.createElement(T6,b({key:o.id,LinkWrapper:n?t:null,isIndented:r},o))}))},M6=e=>typeof e.props.href=="string",L6=e=>typeof e.props.href!="string";function z6(n,r){var o=n,{children:e}=o,t=R(o,["children"]);let a={props:t,ref:r};if(M6(a))return p.createElement("a",b({ref:a.ref},a.props),e);if(L6(a))return p.createElement("button",b({ref:a.ref,type:"button"},a.props),e);throw new Error("invalid props")}var q1=l.forwardRef(z6);q1.displayName="ButtonOrLink";var dn=k(q1,{shouldForwardProp:Ko})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}});dn.displayName="TabButton";var B6=k.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),P6=k.div(()=>({marginTop:6,padding:7,height:28})),F6=()=>p.createElement(P6,null,p.createElement(B6,null)),Mo=k.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{});Mo.displayName="Side";var H6=({children:e,className:t,scrollable:r})=>r?p.createElement(ca,{vertical:!1,className:t},e):p.createElement("div",{className:t},e),zl=k(H6)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});zl.displayName="Bar";var N6=k.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),ha=o=>{var a=o,{children:e,backgroundColor:t,className:r}=a,n=R(a,["children","backgroundColor","className"]);let[i,c]=l.Children.toArray(e);return p.createElement(zl,b({className:`sb-bar ${r}`},n),p.createElement(N6,{bgColor:t},p.createElement(Mo,{scrollable:n.scrollable,left:!0},i),c?p.createElement(Mo,{right:!0},c):null))};ha.displayName="FlexBar";var G1=k.div(({active:e})=>e?{display:"block"}:{display:"none"}),D6=e=>l.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let a=Array.isArray(o)?o[0]:o;return z(b({title:t,id:r},n?{color:n}:{}),{render:typeof a=="function"?a:({active:i})=>p.createElement(G1,{active:i,role:"tabpanel"},a)})}),j6=k.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),V6=k(dn)(({active:e,theme:t,preActive:r})=>` color: ${r||e?t.barSelectedColor:t.barTextColor}; .addon-collapsible-icon { color: ${r||e?t.barSelectedColor:t.barTextColor}; @@ -497,7 +497,7 @@ ${t}`);let r=t.match(Fy);if(!r)return p.createElement(l.Fragment,null,t);let[,n, ${Ze(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Ht(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${Ht(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${tt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),Yd=k.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),CR=k(Yd)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),SR=k.div({display:"flex",alignItems:"center",width:"100%"});function RR(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var IR=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:i,onFocus:c,argType:s})=>{var f;let d=v=>{r(BS(v.target.value))},u=t!==void 0,h=l.useMemo(()=>RR(a),[a]),g=!!((f=s==null?void 0:s.table)!=null&&f.readonly);return p.createElement(SR,{"aria-readonly":g},p.createElement(Yd,null,n),p.createElement(ER,{id:Ne(e),type:"range",disabled:g,onChange:d,name:e,value:t,min:n,max:o,step:a,onFocus:c,onBlur:i}),p.createElement(CR,{numberOFDecimalsPlaces:h,max:o},u?t.toFixed(h):"--"," / ",o))},AR=k.label({display:"flex"}),_R=k.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),kR=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:i})=>{var f,v;let c=m=>{r(m.target.value)},s=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,u]=l.useState(!1),h=l.useCallback(()=>{r(""),u(!0)},[u]);if(t===void 0)return p.createElement(kt,{variant:"outline",size:"medium",disabled:s,id:Zn(e),onClick:h},"Set string");let g=typeof t=="string";return p.createElement(AR,null,p.createElement(Ar.Textarea,{id:Ne(e),maxLength:a,onChange:c,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:g?null:"error",name:e,value:g?t:"",onFocus:n,onBlur:o}),a&&p.createElement(_R,{isMaxed:(t==null?void 0:t.length)===a},(v=t==null?void 0:t.length)!=null?v:0," / ",a))},$R=k(Ar.Input)({padding:10});function OR(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var TR=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{var s;let a=l.useRef(null),i=(s=o==null?void 0:o.control)==null?void 0:s.readOnly;function c(d){if(!d.target.files)return;let u=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(u),OR(n)}return l.useEffect(()=>{n==null&&a.current&&(a.current.value=null)},[n,t]),p.createElement($R,{ref:a,id:Ne(t),type:"file",name:t,multiple:!0,disabled:i,onChange:c,accept:r,size:"flex"})},MR=l.lazy(()=>Gt(()=>import("./Color-PRSJMWNM-ww_P78OC.js"),__vite__mapDeps([13,2,8,7,1,3,4,5,6,9,10]),import.meta.url)),LR=e=>p.createElement(l.Suspense,{fallback:p.createElement("div",null)},p.createElement(MR,b({},e))),zR={array:K0,object:K0,boolean:_S,color:LR,date:LS,number:FS,check:sr,"inline-check":sr,radio:sr,"inline-radio":sr,select:sr,"multi-select":sr,range:IR,text:kR,file:TR},X0=()=>p.createElement(p.Fragment,null,"-"),BR=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var m;let{key:o,control:a}=e,[i,c]=l.useState(!1),[s,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let u=l.useCallback(x=>(d({value:x}),r({[o]:x}),x),[r,o]),h=l.useCallback(()=>c(!1),[]),g=l.useCallback(()=>c(!0),[]);if(!a||a.disable){let x=(a==null?void 0:a.disable)!==!0&&((m=e==null?void 0:e.type)==null?void 0:m.name)!=="function";return n&&x?p.createElement(Wt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):p.createElement(X0,null)}let f={name:o,argType:e,value:s.value,onChange:u,onBlur:h,onFocus:g},v=zR[a.type]||X0;return p.createElement(v,z(b(b({},f),a),{controlType:a.type}))},PR=k.span({fontWeight:"bold"}),FR=k.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),HR=k.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:z(b({},gt({theme:e})),{fontSize:12,fontFamily:e.typography.fonts.mono}),"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),NR=k.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ne(.1,e.color.defaultText):ne(.2,e.color.defaultText),marginTop:t?4:0})),DR=k.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ne(.1,e.color.defaultText):ne(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),jR=k.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),VR=e=>e&&{summary:typeof e=="string"?e:e.name},An=e=>{var m;let[t,r]=l.useState(!1),{row:n,updateArgs:o,compact:a,expandable:i,initialExpandedArgs:c}=e,{name:s,description:d}=n,u=n.table||{},h=u.type||VR(n.type),g=u.defaultValue||n.defaultValue,f=(m=n.type)==null?void 0:m.required,v=d!=null&&d!=="";return p.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},p.createElement(jR,{expandable:i},p.createElement(PR,null,s),f?p.createElement(FR,{title:"Required"},"*"):null),a?null:p.createElement("td",null,v&&p.createElement(HR,null,p.createElement(yd,null,d)),u.jsDocTags!=null?p.createElement(p.Fragment,null,p.createElement(DR,{hasDescription:v},p.createElement(oo,{value:h,initialExpandedArgs:c})),p.createElement(mS,{tags:u.jsDocTags})):p.createElement(NR,{hasDescription:v},p.createElement(oo,{value:h,initialExpandedArgs:c}))),a?null:p.createElement("td",null,p.createElement(oo,{value:g,initialExpandedArgs:c})),o?p.createElement("td",null,p.createElement(BR,z(b({},e),{isHovered:t}))):null)},UR=k(Rc)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ne(.25,e.color.defaultText):ne(.3,e.color.defaultText),border:"none",display:"inline-block"})),WR=k(El)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ne(.25,e.color.defaultText):ne(.3,e.color.defaultText),border:"none",display:"inline-block"})),qR=k.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),GR=k.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?ne(.4,e.color.defaultText):ne(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),YR=k.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),KR=k.td(()=>({position:"relative"})),XR=k.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Ht(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Z0=k.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),io=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=l.useState(n),c=e==="subsection"?YR:GR,s=(r==null?void 0:r.length)||0,d=e==="subsection"?`${s} item${s!==1?"s":""}`:"",u=`${a?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return p.createElement(p.Fragment,null,p.createElement(XR,{title:u},p.createElement(c,{colSpan:1},p.createElement(Z0,{onClick:h=>i(!a),tabIndex:0},u),p.createElement(qR,null,a?p.createElement(UR,null):p.createElement(WR,null),t)),p.createElement(KR,{colSpan:o-1},p.createElement(Z0,{onClick:h=>i(!a),tabIndex:-1,style:{outline:"none"}},u),a?null:d)),a?r:null)},_n=k.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),ge=k.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ue=k.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),ve=[2,4,2,2],ZR=()=>p.createElement(p.Fragment,null,p.createElement(_n,null,p.createElement(ge,{numColumn:ve[0]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[1]},p.createElement(ue,{width:"30%"})),p.createElement(ge,{numColumn:ve[2]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[3]},p.createElement(ue,{width:"60%"}))),p.createElement(_n,null,p.createElement(ge,{numColumn:ve[0]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[1]},p.createElement(ue,{width:"80%"}),p.createElement(ue,{width:"30%"})),p.createElement(ge,{numColumn:ve[2]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[3]},p.createElement(ue,{width:"60%"}))),p.createElement(_n,null,p.createElement(ge,{numColumn:ve[0]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[1]},p.createElement(ue,{width:"80%"}),p.createElement(ue,{width:"30%"})),p.createElement(ge,{numColumn:ve[2]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[3]},p.createElement(ue,{width:"60%"}))),p.createElement(_n,null,p.createElement(ge,{numColumn:ve[0]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[1]},p.createElement(ue,{width:"80%"}),p.createElement(ue,{width:"30%"})),p.createElement(ge,{numColumn:ve[2]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[3]},p.createElement(ue,{width:"60%"})))),JR=k.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),QR=k.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),eI=k.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),tI=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:p.createElement(JR,{inAddonPanel:e},p.createElement(Bl,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:p.createElement(p.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:p.createElement(QR,null,e&&p.createElement(p.Fragment,null,p.createElement(Wt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},p.createElement(wc,null)," Watch 5m video"),p.createElement(eI,null),p.createElement(Wt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},p.createElement(Un,null)," Read docs")),!e&&p.createElement(Wt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},p.createElement(Un,null)," Learn how to set that up"))}))},rI=k.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":b({},t?null:{width:"35%"}),"td:nth-of-type(3)":b({},t?null:{width:"15%"}),"th:last-of-type, td:last-of-type":b({paddingRight:20},t?null:{width:"25%"}),th:{color:e.base==="light"?ne(.25,e.color.defaultText):ne(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:b(z(b({},r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"}),{"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`}}),r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}})}})),nI=k(St)(({theme:e})=>({margin:"-4px -12px -4px 0"})),aI=k.span({display:"flex",justifyContent:"space-between"}),oI={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},lI=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:c,subcategory:s}=(i==null?void 0:i.table)||{};if(c){let d=r.sections[c]||{ungrouped:[],subsections:{}};if(!s)d.ungrouped.push(b({key:a},i));else{let u=d.subsections[s]||[];u.push(b({key:a},i)),d.subsections[s]=u}r.sections[c]=d}else if(s){let d=r.ungroupedSubsections[s]||[];d.push(b({key:a},i)),r.ungroupedSubsections[s]=d}else r.ungrouped.push(b({key:a},i))});let n=oI[t],o=a=>n?Object.keys(a).reduce((i,c)=>z(b({},i),{[c]:a[c].sort(n)}),{}):a;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>z(b({},a),{[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:o(r.sections[i].subsections)}}),{})}},iI=(e,t,r)=>{try{return lu(e,t,r)}catch(n){return FC.warn(n.message),!1}},Vo=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:a,sort:i="none",isLoading:c}=e;if("error"in e){let{error:y}=e;return p.createElement(Od,null,y," ",p.createElement(Wt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},p.createElement(Un,null)," Read the docs"))}if(c)return p.createElement(ZR,null);let{rows:s,args:d,globals:u}="rows"in e&&e,h=lI(E8(s,y=>{var w;return!((w=y==null?void 0:y.table)!=null&&w.disable)&&iI(y,d||{},u||{})}),i),g=h.ungrouped.length===0,f=Object.entries(h.sections).length===0,v=Object.entries(h.ungroupedSubsections).length===0;if(g&&f&&v)return p.createElement(tI,{inAddonPanel:o});let m=1;t&&(m+=1),n||(m+=2);let x=Object.keys(h.sections).length>0,S={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return p.createElement(Ol,null,p.createElement(rI,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},p.createElement("thead",{className:"docblock-argstable-head"},p.createElement("tr",null,p.createElement("th",null,p.createElement("span",null,"Name")),n?null:p.createElement("th",null,p.createElement("span",null,"Description")),n?null:p.createElement("th",null,p.createElement("span",null,"Default")),t?p.createElement("th",null,p.createElement(aI,null,"Control"," ",!c&&r&&p.createElement(nI,{onClick:()=>r(),title:"Reset controls"},p.createElement(Ac,{"aria-hidden":!0})))):null)),p.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(y=>p.createElement(An,b({key:y.key,row:y,arg:d&&d[y.key]},S))),Object.entries(h.ungroupedSubsections).map(([y,w])=>p.createElement(io,{key:y,label:y,level:"subsection",colSpan:m},w.map(E=>p.createElement(An,b({key:E.key,row:E,arg:d&&d[E.key],expandable:x},S))))),Object.entries(h.sections).map(([y,w])=>p.createElement(io,{key:y,label:y,level:"section",colSpan:m},w.ungrouped.map(E=>p.createElement(An,b({key:E.key,row:E,arg:d&&d[E.key]},S))),Object.entries(w.subsections).map(([E,C])=>p.createElement(io,{key:E,label:E,level:"subsection",colSpan:m},C.map(I=>p.createElement(An,b({key:I.key,row:I,arg:d&&d[I.key],expandable:x},S))))))))))},sI=r=>{var n=r,{tabs:e}=n,t=R(n,["tabs"]);let o=Object.entries(e);return o.length===1?p.createElement(Vo,b(b({},o[0][1]),t)):p.createElement(Hl,null,o.map((a,i)=>{let[c,s]=a,d=`prop_table_div_${c}`,u="div",h=i===0?t:{sort:t.sort};return p.createElement(u,{key:d,id:d,title:c},({active:g})=>g?p.createElement(Vo,b(b({key:`prop_table_${c}`},s),h)):null)}))};k.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ne(.4,e.color.defaultText):ne(.6,e.color.defaultText)}));k.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});k.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});k.div(oe,({theme:e})=>z(b({},va(e)),{margin:"25px 0 40px",padding:"30px 20px"}));k.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));k.div(({theme:e})=>({color:e.base==="light"?ne(.2,e.color.defaultText):ne(.6,e.color.defaultText)}));k.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});k.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ne(.4,e.color.defaultText):ne(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));k.div({display:"flex",flexDirection:"row"});k.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));k.div(({theme:e})=>z(b({},va(e)),{display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));k.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});k.div({flex:1,display:"flex",flexDirection:"row"});k.div({display:"flex",alignItems:"flex-start"});k.div({flex:"0 0 30%"});k.div({flex:1});k.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ne(.4,e.color.defaultText):ne(.6,e.color.defaultText)}));k.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));k.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));k.div(({theme:e})=>z(b({},va(e)),{overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));k.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});k.div({display:"flex",flexFlow:"row wrap"});var cI=e=>`anchor--${e}`,Kd=({storyId:e,children:t})=>p.createElement("div",{id:cI(e),className:"sb-anchor"},t);Te&&Te.__DOCS_CONTEXT__===void 0&&(Te.__DOCS_CONTEXT__=l.createContext(null),Te.__DOCS_CONTEXT__.displayName="DocsContext");var je=Te?Te.__DOCS_CONTEXT__:l.createContext(null),Qt=(e,t)=>l.useContext(je).resolveOf(e,t),dI=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),uI=e=>{if(e)return typeof e=="string"?e.includes("-")?dI(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function fI(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function Xd(e){return OC(e,{allowFunction:!1})}var Zd=l.createContext({sources:{}}),Jd="--unknown--",pI=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let o=(a,i=null,c=!1)=>{let{id:s,args:d=void 0,source:u,format:h}=typeof a=="string"?{id:a,source:i,format:c}:a,g=d?Xd(d):Jd;n(f=>z(b({},f),{[s]:z(b({},f[s]),{[g]:{code:u,format:h}})}))};return t.on(li,o),()=>t.off(li,o)},[]),p.createElement(Zd.Provider,{value:{sources:r}},e)},hI=(e,t,r)=>{let{sources:n}=r,o=n==null?void 0:n[e];return(o==null?void 0:o[Xd(t)])||(o==null?void 0:o[Jd])||{code:""}},mI=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var s,d;let{__isArgsStory:o}=t.parameters,a=((s=t.parameters.docs)==null?void 0:s.source)||{},i=r||a.type||Ea.AUTO;if(a.code!==void 0)return a.code;let c=i===Ea.DYNAMIC||i===Ea.AUTO&&e&&o?e:a.originalSource||"";return((d=n!=null?n:a.transform)==null?void 0:d(c,t))||c},gI=(e,t,r)=>{var f,v,m,x,S,y,w,E,C,I,A;let n,{of:o}=e;if("of"in e&&o===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(o)n=t.resolveOf(o,["story"]).story;else try{n=t.storyById()}catch(_){}let a=((v=(f=n==null?void 0:n.parameters)==null?void 0:f.docs)==null?void 0:v.source)||{},{code:i}=e,c=(m=e.format)!=null?m:a.format,s=(S=(x=e.language)!=null?x:a.language)!=null?S:"jsx",d=(w=(y=e.dark)!=null?y:a.dark)!=null?w:!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:c,language:s,dark:d};let u=t.getStoryContext(n),h=e.__forceInitialArgs?u.initialArgs:u.unmappedArgs,g=hI(n.id,h,r);return c=(A=(I=g.format)!=null?I:(C=(E=n.parameters.docs)==null?void 0:E.source)==null?void 0:C.format)!=null?A:!1,{code:mI({snippet:g.code,storyContext:z(b({},u),{args:h}),typeFromProps:e.type,transformFromProps:e.transform}),format:c,language:s,dark:d}};function vI(e,t){let r=bI([e],t);return r&&r[0]}function bI(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(o=>nr(this,null,function*(){let a=yield t.loadStory(o);n(i=>i[o]===a?i:z(b({},i),{[o]:a}))})))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch(a){return null}})}var yI=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},wI=(e,t,r)=>{var c,s,d,u,h,g,f,v;let{parameters:n={}}=t||{},{docs:o={}}=n,a=o.story||{};if(o.disable)return null;if((s=(c=e.inline)!=null?c:a.inline)!=null&&s){let m=(d=e.height)!=null?d:a.height,x=(h=(u=e.autoplay)!=null?u:a.autoplay)!=null?h:!1;return{story:t,inline:!0,height:m,autoplay:x,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=(v=(f=(g=e.height)!=null?g:a.height)!=null?f:a.iframeHeight)!=null?v:"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},xI=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(je),r=yI(e,t),n=vI(r,t);if(!n)return p.createElement(Ld,null);let o=wI(e,n,t);return o?p.createElement(iS,b({},o)):null},EI=e=>{var g,f,v,m,x,S,y,w,E,C,I,A,_,$,O,T,M,L,N;let t=l.useContext(je),r=l.useContext(Zd),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:a}=Qt(n||"story",["story"]),i=gI(b(b({},o),n&&{of:n}),t,r),c=(x=(m=(g=e.layout)!=null?g:a.parameters.layout)!=null?m:(v=(f=a.parameters.docs)==null?void 0:f.canvas)==null?void 0:v.layout)!=null?x:"padded",s=(E=(w=e.withToolbar)!=null?w:(y=(S=a.parameters.docs)==null?void 0:S.canvas)==null?void 0:y.withToolbar)!=null?E:!1,d=(A=e.additionalActions)!=null?A:(I=(C=a.parameters.docs)==null?void 0:C.canvas)==null?void 0:I.additionalActions,u=(T=(O=e.sourceState)!=null?O:($=(_=a.parameters.docs)==null?void 0:_.canvas)==null?void 0:$.sourceState)!=null?T:"hidden",h=(N=e.className)!=null?N:(L=(M=a.parameters.docs)==null?void 0:M.canvas)==null?void 0:L.className;return p.createElement(zd,{withSource:u==="none"?void 0:i,isExpanded:u==="shown",withToolbar:s,additionalActions:d,className:h,layout:c},p.createElement(xI,b({of:n||a.moduleExport,meta:e.meta},e.story)))},CI=(e,t)=>{let r=t.getStoryContext(e),[n,o]=l.useState(r.globals);return l.useEffect(()=>{let a=i=>{o(i.globals)};return t.channel.on(F0,a),()=>t.channel.off(F0,a)},[t.channel]),[n]},SI=(e,t)=>{let r=RI(e,t);if(!r)throw new Error("No result when story was defined");return r},RI=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,a]=l.useState(r.args);l.useEffect(()=>{let s=d=>{d.storyId===n&&a(d.args)};return t.channel.on(H0,s),()=>t.channel.off(H0,s)},[n,t.channel]);let i=l.useCallback(s=>t.channel.emit(HC,{storyId:n,updatedArgs:s}),[n,t.channel]),c=l.useCallback(s=>t.channel.emit(NC,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,i,c]};function II(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var AI=e=>{var E,C,I,A;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=l.useContext(je),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:o,argTypes:a,component:i,subcomponents:c}=n,s=((E=o.docs)==null?void 0:E.controls)||{},d=(C=e.include)!=null?C:s.include,u=(I=e.exclude)!=null?I:s.exclude,h=(A=e.sort)!=null?A:s.sort,[g,f,v]=SI(n,r),[m]=CI(n,r),x=P0(a,d,u);if(!(c&&Object.keys(c).length>0))return Object.keys(x).length>0||Object.keys(g).length>0?p.createElement(Vo,{rows:x,sort:h,args:g,globals:m,updateArgs:f,resetArgs:v}):null;let S=uI(i),y=Object.fromEntries(Object.entries(c).map(([_,$])=>[_,{rows:P0(II($,o),d,u),sort:h}])),w=b({[S]:{rows:x,sort:h}},y);return p.createElement(sI,{tabs:w,sort:h,args:g,globals:m,updateArgs:f,resetArgs:v})},{document:Qd}=Te,_I=n=>{var o=n,{className:e,children:t}=o,r=R(o,["className","children"]);if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return p.createElement(_l,null,t);let a=e&&e.split("-");return p.createElement(Td,b({language:a&&a[1]||"text",format:!1,code:t},r))};function Zl(e,t){e.channel.emit(DC,t)}var Uo=X1.a,kI=({hash:e,children:t})=>{let r=l.useContext(je);return p.createElement(Uo,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);Qd.getElementById(o)&&Zl(r,e)}},t)},$I=e=>{let i=e,{href:t,target:r,children:n}=i,o=R(i,["href","target","children"]),a=l.useContext(je);return!t||r==="_blank"||/^https?:\/\//.test(t)?p.createElement(Uo,b({},e)):t.startsWith("#")?p.createElement(kI,{hash:t},n):p.createElement(Uo,b({href:t,onClick:c=>{c.button===0&&!c.altKey&&!c.ctrlKey&&!c.metaKey&&!c.shiftKey&&(c.preventDefault(),Zl(a,c.currentTarget.getAttribute("href")))},target:r},o),n)},eu=["h1","h2","h3","h4","h5","h6"],OI=eu.reduce((e,t)=>z(b({},e),{[t]:k(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),TI=k.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),MI=o=>{var a=o,{as:e,id:t,children:r}=a,n=R(a,["as","id","children"]);let i=l.useContext(je),c=OI[e],s=`#${t}`;return p.createElement(c,b({id:t},n),p.createElement(TI,{"aria-hidden":"true",href:s,tabIndex:-1,target:"_self",onClick:d=>{Qd.getElementById(t)&&Zl(i,s)}},p.createElement(Sc,null)),r)},Jl=e=>{let s=e,{as:t,id:r,children:n}=s,o=R(s,["as","id","children"]);if(r)return p.createElement(MI,b({as:t,id:r},o),n);let a=t,d=e,{as:i}=d,c=R(d,["as"]);return p.createElement(a,b({},ae(c,t)))},LI=eu.reduce((e,t)=>z(b({},e),{[t]:r=>p.createElement(Jl,b({as:t},r))}),{}),zI=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(Eu`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + ${Ht(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${tt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),Yd=k.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),CR=k(Yd)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),SR=k.div({display:"flex",alignItems:"center",width:"100%"});function RR(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var IR=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:i,onFocus:c,argType:s})=>{var f;let d=v=>{r(BS(v.target.value))},u=t!==void 0,h=l.useMemo(()=>RR(a),[a]),g=!!((f=s==null?void 0:s.table)!=null&&f.readonly);return p.createElement(SR,{"aria-readonly":g},p.createElement(Yd,null,n),p.createElement(ER,{id:Ne(e),type:"range",disabled:g,onChange:d,name:e,value:t,min:n,max:o,step:a,onFocus:c,onBlur:i}),p.createElement(CR,{numberOFDecimalsPlaces:h,max:o},u?t.toFixed(h):"--"," / ",o))},AR=k.label({display:"flex"}),_R=k.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),kR=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:i})=>{var f,v;let c=m=>{r(m.target.value)},s=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,u]=l.useState(!1),h=l.useCallback(()=>{r(""),u(!0)},[u]);if(t===void 0)return p.createElement(kt,{variant:"outline",size:"medium",disabled:s,id:Zn(e),onClick:h},"Set string");let g=typeof t=="string";return p.createElement(AR,null,p.createElement(Ar.Textarea,{id:Ne(e),maxLength:a,onChange:c,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:g?null:"error",name:e,value:g?t:"",onFocus:n,onBlur:o}),a&&p.createElement(_R,{isMaxed:(t==null?void 0:t.length)===a},(v=t==null?void 0:t.length)!=null?v:0," / ",a))},$R=k(Ar.Input)({padding:10});function OR(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var TR=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{var s;let a=l.useRef(null),i=(s=o==null?void 0:o.control)==null?void 0:s.readOnly;function c(d){if(!d.target.files)return;let u=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(u),OR(n)}return l.useEffect(()=>{n==null&&a.current&&(a.current.value=null)},[n,t]),p.createElement($R,{ref:a,id:Ne(t),type:"file",name:t,multiple:!0,disabled:i,onChange:c,accept:r,size:"flex"})},MR=l.lazy(()=>Gt(()=>import("./Color-PRSJMWNM-Bz2B8K5d.js"),__vite__mapDeps([13,2,8,7,1,3,4,5,6,9,10]),import.meta.url)),LR=e=>p.createElement(l.Suspense,{fallback:p.createElement("div",null)},p.createElement(MR,b({},e))),zR={array:K0,object:K0,boolean:_S,color:LR,date:LS,number:FS,check:sr,"inline-check":sr,radio:sr,"inline-radio":sr,select:sr,"multi-select":sr,range:IR,text:kR,file:TR},X0=()=>p.createElement(p.Fragment,null,"-"),BR=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var m;let{key:o,control:a}=e,[i,c]=l.useState(!1),[s,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let u=l.useCallback(x=>(d({value:x}),r({[o]:x}),x),[r,o]),h=l.useCallback(()=>c(!1),[]),g=l.useCallback(()=>c(!0),[]);if(!a||a.disable){let x=(a==null?void 0:a.disable)!==!0&&((m=e==null?void 0:e.type)==null?void 0:m.name)!=="function";return n&&x?p.createElement(Wt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):p.createElement(X0,null)}let f={name:o,argType:e,value:s.value,onChange:u,onBlur:h,onFocus:g},v=zR[a.type]||X0;return p.createElement(v,z(b(b({},f),a),{controlType:a.type}))},PR=k.span({fontWeight:"bold"}),FR=k.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),HR=k.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:z(b({},gt({theme:e})),{fontSize:12,fontFamily:e.typography.fonts.mono}),"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),NR=k.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ne(.1,e.color.defaultText):ne(.2,e.color.defaultText),marginTop:t?4:0})),DR=k.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ne(.1,e.color.defaultText):ne(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),jR=k.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),VR=e=>e&&{summary:typeof e=="string"?e:e.name},An=e=>{var m;let[t,r]=l.useState(!1),{row:n,updateArgs:o,compact:a,expandable:i,initialExpandedArgs:c}=e,{name:s,description:d}=n,u=n.table||{},h=u.type||VR(n.type),g=u.defaultValue||n.defaultValue,f=(m=n.type)==null?void 0:m.required,v=d!=null&&d!=="";return p.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},p.createElement(jR,{expandable:i},p.createElement(PR,null,s),f?p.createElement(FR,{title:"Required"},"*"):null),a?null:p.createElement("td",null,v&&p.createElement(HR,null,p.createElement(yd,null,d)),u.jsDocTags!=null?p.createElement(p.Fragment,null,p.createElement(DR,{hasDescription:v},p.createElement(oo,{value:h,initialExpandedArgs:c})),p.createElement(mS,{tags:u.jsDocTags})):p.createElement(NR,{hasDescription:v},p.createElement(oo,{value:h,initialExpandedArgs:c}))),a?null:p.createElement("td",null,p.createElement(oo,{value:g,initialExpandedArgs:c})),o?p.createElement("td",null,p.createElement(BR,z(b({},e),{isHovered:t}))):null)},UR=k(Rc)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ne(.25,e.color.defaultText):ne(.3,e.color.defaultText),border:"none",display:"inline-block"})),WR=k(El)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ne(.25,e.color.defaultText):ne(.3,e.color.defaultText),border:"none",display:"inline-block"})),qR=k.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),GR=k.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?ne(.4,e.color.defaultText):ne(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),YR=k.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),KR=k.td(()=>({position:"relative"})),XR=k.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Ht(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Z0=k.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),io=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=l.useState(n),c=e==="subsection"?YR:GR,s=(r==null?void 0:r.length)||0,d=e==="subsection"?`${s} item${s!==1?"s":""}`:"",u=`${a?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return p.createElement(p.Fragment,null,p.createElement(XR,{title:u},p.createElement(c,{colSpan:1},p.createElement(Z0,{onClick:h=>i(!a),tabIndex:0},u),p.createElement(qR,null,a?p.createElement(UR,null):p.createElement(WR,null),t)),p.createElement(KR,{colSpan:o-1},p.createElement(Z0,{onClick:h=>i(!a),tabIndex:-1,style:{outline:"none"}},u),a?null:d)),a?r:null)},_n=k.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),ge=k.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ue=k.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),ve=[2,4,2,2],ZR=()=>p.createElement(p.Fragment,null,p.createElement(_n,null,p.createElement(ge,{numColumn:ve[0]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[1]},p.createElement(ue,{width:"30%"})),p.createElement(ge,{numColumn:ve[2]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[3]},p.createElement(ue,{width:"60%"}))),p.createElement(_n,null,p.createElement(ge,{numColumn:ve[0]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[1]},p.createElement(ue,{width:"80%"}),p.createElement(ue,{width:"30%"})),p.createElement(ge,{numColumn:ve[2]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[3]},p.createElement(ue,{width:"60%"}))),p.createElement(_n,null,p.createElement(ge,{numColumn:ve[0]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[1]},p.createElement(ue,{width:"80%"}),p.createElement(ue,{width:"30%"})),p.createElement(ge,{numColumn:ve[2]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[3]},p.createElement(ue,{width:"60%"}))),p.createElement(_n,null,p.createElement(ge,{numColumn:ve[0]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[1]},p.createElement(ue,{width:"80%"}),p.createElement(ue,{width:"30%"})),p.createElement(ge,{numColumn:ve[2]},p.createElement(ue,{width:"60%"})),p.createElement(ge,{numColumn:ve[3]},p.createElement(ue,{width:"60%"})))),JR=k.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),QR=k.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),eI=k.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),tI=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:p.createElement(JR,{inAddonPanel:e},p.createElement(Bl,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:p.createElement(p.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:p.createElement(QR,null,e&&p.createElement(p.Fragment,null,p.createElement(Wt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},p.createElement(wc,null)," Watch 5m video"),p.createElement(eI,null),p.createElement(Wt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},p.createElement(Un,null)," Read docs")),!e&&p.createElement(Wt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},p.createElement(Un,null)," Learn how to set that up"))}))},rI=k.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":b({},t?null:{width:"35%"}),"td:nth-of-type(3)":b({},t?null:{width:"15%"}),"th:last-of-type, td:last-of-type":b({paddingRight:20},t?null:{width:"25%"}),th:{color:e.base==="light"?ne(.25,e.color.defaultText):ne(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:b(z(b({},r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"}),{"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`}}),r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}})}})),nI=k(St)(({theme:e})=>({margin:"-4px -12px -4px 0"})),aI=k.span({display:"flex",justifyContent:"space-between"}),oI={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},lI=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:c,subcategory:s}=(i==null?void 0:i.table)||{};if(c){let d=r.sections[c]||{ungrouped:[],subsections:{}};if(!s)d.ungrouped.push(b({key:a},i));else{let u=d.subsections[s]||[];u.push(b({key:a},i)),d.subsections[s]=u}r.sections[c]=d}else if(s){let d=r.ungroupedSubsections[s]||[];d.push(b({key:a},i)),r.ungroupedSubsections[s]=d}else r.ungrouped.push(b({key:a},i))});let n=oI[t],o=a=>n?Object.keys(a).reduce((i,c)=>z(b({},i),{[c]:a[c].sort(n)}),{}):a;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>z(b({},a),{[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:o(r.sections[i].subsections)}}),{})}},iI=(e,t,r)=>{try{return lu(e,t,r)}catch(n){return FC.warn(n.message),!1}},Vo=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:a,sort:i="none",isLoading:c}=e;if("error"in e){let{error:y}=e;return p.createElement(Od,null,y," ",p.createElement(Wt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},p.createElement(Un,null)," Read the docs"))}if(c)return p.createElement(ZR,null);let{rows:s,args:d,globals:u}="rows"in e&&e,h=lI(E8(s,y=>{var w;return!((w=y==null?void 0:y.table)!=null&&w.disable)&&iI(y,d||{},u||{})}),i),g=h.ungrouped.length===0,f=Object.entries(h.sections).length===0,v=Object.entries(h.ungroupedSubsections).length===0;if(g&&f&&v)return p.createElement(tI,{inAddonPanel:o});let m=1;t&&(m+=1),n||(m+=2);let x=Object.keys(h.sections).length>0,S={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return p.createElement(Ol,null,p.createElement(rI,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},p.createElement("thead",{className:"docblock-argstable-head"},p.createElement("tr",null,p.createElement("th",null,p.createElement("span",null,"Name")),n?null:p.createElement("th",null,p.createElement("span",null,"Description")),n?null:p.createElement("th",null,p.createElement("span",null,"Default")),t?p.createElement("th",null,p.createElement(aI,null,"Control"," ",!c&&r&&p.createElement(nI,{onClick:()=>r(),title:"Reset controls"},p.createElement(Ac,{"aria-hidden":!0})))):null)),p.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(y=>p.createElement(An,b({key:y.key,row:y,arg:d&&d[y.key]},S))),Object.entries(h.ungroupedSubsections).map(([y,w])=>p.createElement(io,{key:y,label:y,level:"subsection",colSpan:m},w.map(E=>p.createElement(An,b({key:E.key,row:E,arg:d&&d[E.key],expandable:x},S))))),Object.entries(h.sections).map(([y,w])=>p.createElement(io,{key:y,label:y,level:"section",colSpan:m},w.ungrouped.map(E=>p.createElement(An,b({key:E.key,row:E,arg:d&&d[E.key]},S))),Object.entries(w.subsections).map(([E,C])=>p.createElement(io,{key:E,label:E,level:"subsection",colSpan:m},C.map(I=>p.createElement(An,b({key:I.key,row:I,arg:d&&d[I.key],expandable:x},S))))))))))},sI=r=>{var n=r,{tabs:e}=n,t=R(n,["tabs"]);let o=Object.entries(e);return o.length===1?p.createElement(Vo,b(b({},o[0][1]),t)):p.createElement(Hl,null,o.map((a,i)=>{let[c,s]=a,d=`prop_table_div_${c}`,u="div",h=i===0?t:{sort:t.sort};return p.createElement(u,{key:d,id:d,title:c},({active:g})=>g?p.createElement(Vo,b(b({key:`prop_table_${c}`},s),h)):null)}))};k.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ne(.4,e.color.defaultText):ne(.6,e.color.defaultText)}));k.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});k.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});k.div(oe,({theme:e})=>z(b({},va(e)),{margin:"25px 0 40px",padding:"30px 20px"}));k.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));k.div(({theme:e})=>({color:e.base==="light"?ne(.2,e.color.defaultText):ne(.6,e.color.defaultText)}));k.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});k.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ne(.4,e.color.defaultText):ne(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));k.div({display:"flex",flexDirection:"row"});k.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));k.div(({theme:e})=>z(b({},va(e)),{display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));k.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});k.div({flex:1,display:"flex",flexDirection:"row"});k.div({display:"flex",alignItems:"flex-start"});k.div({flex:"0 0 30%"});k.div({flex:1});k.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ne(.4,e.color.defaultText):ne(.6,e.color.defaultText)}));k.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));k.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));k.div(({theme:e})=>z(b({},va(e)),{overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));k.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});k.div({display:"flex",flexFlow:"row wrap"});var cI=e=>`anchor--${e}`,Kd=({storyId:e,children:t})=>p.createElement("div",{id:cI(e),className:"sb-anchor"},t);Te&&Te.__DOCS_CONTEXT__===void 0&&(Te.__DOCS_CONTEXT__=l.createContext(null),Te.__DOCS_CONTEXT__.displayName="DocsContext");var je=Te?Te.__DOCS_CONTEXT__:l.createContext(null),Qt=(e,t)=>l.useContext(je).resolveOf(e,t),dI=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),uI=e=>{if(e)return typeof e=="string"?e.includes("-")?dI(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function fI(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function Xd(e){return OC(e,{allowFunction:!1})}var Zd=l.createContext({sources:{}}),Jd="--unknown--",pI=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let o=(a,i=null,c=!1)=>{let{id:s,args:d=void 0,source:u,format:h}=typeof a=="string"?{id:a,source:i,format:c}:a,g=d?Xd(d):Jd;n(f=>z(b({},f),{[s]:z(b({},f[s]),{[g]:{code:u,format:h}})}))};return t.on(li,o),()=>t.off(li,o)},[]),p.createElement(Zd.Provider,{value:{sources:r}},e)},hI=(e,t,r)=>{let{sources:n}=r,o=n==null?void 0:n[e];return(o==null?void 0:o[Xd(t)])||(o==null?void 0:o[Jd])||{code:""}},mI=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var s,d;let{__isArgsStory:o}=t.parameters,a=((s=t.parameters.docs)==null?void 0:s.source)||{},i=r||a.type||Ea.AUTO;if(a.code!==void 0)return a.code;let c=i===Ea.DYNAMIC||i===Ea.AUTO&&e&&o?e:a.originalSource||"";return((d=n!=null?n:a.transform)==null?void 0:d(c,t))||c},gI=(e,t,r)=>{var f,v,m,x,S,y,w,E,C,I,A;let n,{of:o}=e;if("of"in e&&o===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(o)n=t.resolveOf(o,["story"]).story;else try{n=t.storyById()}catch(_){}let a=((v=(f=n==null?void 0:n.parameters)==null?void 0:f.docs)==null?void 0:v.source)||{},{code:i}=e,c=(m=e.format)!=null?m:a.format,s=(S=(x=e.language)!=null?x:a.language)!=null?S:"jsx",d=(w=(y=e.dark)!=null?y:a.dark)!=null?w:!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:c,language:s,dark:d};let u=t.getStoryContext(n),h=e.__forceInitialArgs?u.initialArgs:u.unmappedArgs,g=hI(n.id,h,r);return c=(A=(I=g.format)!=null?I:(C=(E=n.parameters.docs)==null?void 0:E.source)==null?void 0:C.format)!=null?A:!1,{code:mI({snippet:g.code,storyContext:z(b({},u),{args:h}),typeFromProps:e.type,transformFromProps:e.transform}),format:c,language:s,dark:d}};function vI(e,t){let r=bI([e],t);return r&&r[0]}function bI(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(o=>nr(this,null,function*(){let a=yield t.loadStory(o);n(i=>i[o]===a?i:z(b({},i),{[o]:a}))})))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch(a){return null}})}var yI=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},wI=(e,t,r)=>{var c,s,d,u,h,g,f,v;let{parameters:n={}}=t||{},{docs:o={}}=n,a=o.story||{};if(o.disable)return null;if((s=(c=e.inline)!=null?c:a.inline)!=null&&s){let m=(d=e.height)!=null?d:a.height,x=(h=(u=e.autoplay)!=null?u:a.autoplay)!=null?h:!1;return{story:t,inline:!0,height:m,autoplay:x,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=(v=(f=(g=e.height)!=null?g:a.height)!=null?f:a.iframeHeight)!=null?v:"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},xI=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(je),r=yI(e,t),n=vI(r,t);if(!n)return p.createElement(Ld,null);let o=wI(e,n,t);return o?p.createElement(iS,b({},o)):null},EI=e=>{var g,f,v,m,x,S,y,w,E,C,I,A,_,$,O,T,M,L,N;let t=l.useContext(je),r=l.useContext(Zd),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:a}=Qt(n||"story",["story"]),i=gI(b(b({},o),n&&{of:n}),t,r),c=(x=(m=(g=e.layout)!=null?g:a.parameters.layout)!=null?m:(v=(f=a.parameters.docs)==null?void 0:f.canvas)==null?void 0:v.layout)!=null?x:"padded",s=(E=(w=e.withToolbar)!=null?w:(y=(S=a.parameters.docs)==null?void 0:S.canvas)==null?void 0:y.withToolbar)!=null?E:!1,d=(A=e.additionalActions)!=null?A:(I=(C=a.parameters.docs)==null?void 0:C.canvas)==null?void 0:I.additionalActions,u=(T=(O=e.sourceState)!=null?O:($=(_=a.parameters.docs)==null?void 0:_.canvas)==null?void 0:$.sourceState)!=null?T:"hidden",h=(N=e.className)!=null?N:(L=(M=a.parameters.docs)==null?void 0:M.canvas)==null?void 0:L.className;return p.createElement(zd,{withSource:u==="none"?void 0:i,isExpanded:u==="shown",withToolbar:s,additionalActions:d,className:h,layout:c},p.createElement(xI,b({of:n||a.moduleExport,meta:e.meta},e.story)))},CI=(e,t)=>{let r=t.getStoryContext(e),[n,o]=l.useState(r.globals);return l.useEffect(()=>{let a=i=>{o(i.globals)};return t.channel.on(F0,a),()=>t.channel.off(F0,a)},[t.channel]),[n]},SI=(e,t)=>{let r=RI(e,t);if(!r)throw new Error("No result when story was defined");return r},RI=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,a]=l.useState(r.args);l.useEffect(()=>{let s=d=>{d.storyId===n&&a(d.args)};return t.channel.on(H0,s),()=>t.channel.off(H0,s)},[n,t.channel]);let i=l.useCallback(s=>t.channel.emit(HC,{storyId:n,updatedArgs:s}),[n,t.channel]),c=l.useCallback(s=>t.channel.emit(NC,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,i,c]};function II(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var AI=e=>{var E,C,I,A;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=l.useContext(je),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:o,argTypes:a,component:i,subcomponents:c}=n,s=((E=o.docs)==null?void 0:E.controls)||{},d=(C=e.include)!=null?C:s.include,u=(I=e.exclude)!=null?I:s.exclude,h=(A=e.sort)!=null?A:s.sort,[g,f,v]=SI(n,r),[m]=CI(n,r),x=P0(a,d,u);if(!(c&&Object.keys(c).length>0))return Object.keys(x).length>0||Object.keys(g).length>0?p.createElement(Vo,{rows:x,sort:h,args:g,globals:m,updateArgs:f,resetArgs:v}):null;let S=uI(i),y=Object.fromEntries(Object.entries(c).map(([_,$])=>[_,{rows:P0(II($,o),d,u),sort:h}])),w=b({[S]:{rows:x,sort:h}},y);return p.createElement(sI,{tabs:w,sort:h,args:g,globals:m,updateArgs:f,resetArgs:v})},{document:Qd}=Te,_I=n=>{var o=n,{className:e,children:t}=o,r=R(o,["className","children"]);if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return p.createElement(_l,null,t);let a=e&&e.split("-");return p.createElement(Td,b({language:a&&a[1]||"text",format:!1,code:t},r))};function Zl(e,t){e.channel.emit(DC,t)}var Uo=X1.a,kI=({hash:e,children:t})=>{let r=l.useContext(je);return p.createElement(Uo,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);Qd.getElementById(o)&&Zl(r,e)}},t)},$I=e=>{let i=e,{href:t,target:r,children:n}=i,o=R(i,["href","target","children"]),a=l.useContext(je);return!t||r==="_blank"||/^https?:\/\//.test(t)?p.createElement(Uo,b({},e)):t.startsWith("#")?p.createElement(kI,{hash:t},n):p.createElement(Uo,b({href:t,onClick:c=>{c.button===0&&!c.altKey&&!c.ctrlKey&&!c.metaKey&&!c.shiftKey&&(c.preventDefault(),Zl(a,c.currentTarget.getAttribute("href")))},target:r},o),n)},eu=["h1","h2","h3","h4","h5","h6"],OI=eu.reduce((e,t)=>z(b({},e),{[t]:k(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),TI=k.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),MI=o=>{var a=o,{as:e,id:t,children:r}=a,n=R(a,["as","id","children"]);let i=l.useContext(je),c=OI[e],s=`#${t}`;return p.createElement(c,b({id:t},n),p.createElement(TI,{"aria-hidden":"true",href:s,tabIndex:-1,target:"_self",onClick:d=>{Qd.getElementById(t)&&Zl(i,s)}},p.createElement(Sc,null)),r)},Jl=e=>{let s=e,{as:t,id:r,children:n}=s,o=R(s,["as","id","children"]);if(r)return p.createElement(MI,b({as:t,id:r},o),n);let a=t,d=e,{as:i}=d,c=R(d,["as"]);return p.createElement(a,b({},ae(c,t)))},LI=eu.reduce((e,t)=>z(b({},e),{[t]:r=>p.createElement(Jl,b({as:t},r))}),{}),zI=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(Eu`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' This is often caused by not wrapping the child in a template string. This is invalid: @@ -516,7 +516,7 @@ ${t}`);let r=t.match(Fy);if(!r)return p.createElement(l.Fragment,null,t);let[,n, `);return p.createElement(yd,z(b({},e),{options:b({forceBlock:!0,overrides:b(b({code:_I,a:$I},LI),(t=e==null?void 0:e.options)==null?void 0:t.overrides)},e==null?void 0:e.options)}))},BI=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(BI||{}),PI=e=>{var t,r,n,o,a,i,c,s;switch(e.type){case"story":return((r=(t=e.story.parameters.docs)==null?void 0:t.description)==null?void 0:r.story)||null;case"meta":{let{parameters:d,component:u}=e.preparedMeta;return((o=(n=d.docs)==null?void 0:n.description)==null?void 0:o.component)||((i=(a=d.docs)==null?void 0:a.extractComponentDescription)==null?void 0:i.call(a,u,{component:u,parameters:d}))||null}case"component":{let{component:d,projectAnnotations:{parameters:u}}=e;return((s=(c=u.docs)==null?void 0:c.extractComponentDescription)==null?void 0:s.call(c,d,{component:d,parameters:u}))||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},Wo=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=Qt(t||"meta"),n=PI(r);return n?p.createElement(zI,null,n):null},FI=k.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),HI=k.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),NI=k.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),DI=({title:e})=>e===null?null:typeof e=="string"?p.createElement(NI,null,e):e,jI=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:a})=>(l.useEffect(()=>{let i=b({tocSelector:".toc-wrapper",contentSelector:n!=null?n:".sbdocs-content",headingSelector:r!=null?r:"h3",ignoreSelector:o!=null?o:".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1},a),c=setTimeout(()=>B0.init(i),100);return()=>{clearTimeout(c),B0.destroy()}},[t]),p.createElement(p.Fragment,null,p.createElement(FI,null,t?null:p.createElement(HI,null,p.createElement(DI,{title:e||null}),p.createElement("div",{className:"toc-wrapper"}))))),{document:VI,window:UI}=Te,WI=({context:e,theme:t,children:r})=>{var o,a,i,c,s;let n;try{n=(a=(o=e.resolveOf("meta",["meta"]).preparedMeta.parameters)==null?void 0:o.docs)==null?void 0:a.toc}catch(d){n=(s=(c=(i=e==null?void 0:e.projectAnnotations)==null?void 0:i.parameters)==null?void 0:c.docs)==null?void 0:s.toc}return l.useEffect(()=>{let d;try{if(d=new URL(UI.parent.location.toString()),d.hash){let u=VI.getElementById(d.hash.substring(1));u&&setTimeout(()=>{fI(u)},200)}}catch(u){}}),p.createElement(je.Provider,{value:e},p.createElement(pI,{channel:e.channel},p.createElement(Rs,{theme:Yp(t)},p.createElement(XC,{toc:n?p.createElement(jI,b({className:"sbdocs sbdocs-toc--custom"},n)):null},r))))},qI=/\s*\/\s*/,GI=e=>{let t=e.trim().split(qI);return(t==null?void 0:t[(t==null?void 0:t.length)-1])||e},YI=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=Qt(r||"meta",["meta"]).preparedMeta}catch(a){if(t&&!a.message.includes("did you forget to use ?"))throw a}let o=t||GI(n==null?void 0:n.title);return o?p.createElement(qC,{className:"sbdocs-title sb-unstyled"},o):null},KI="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",XI=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=Qt(t||"meta",["meta"]).preparedMeta}catch(c){if(r&&!c.message.includes("did you forget to use ?"))throw c}let{componentSubtitle:o,docs:a}=(n==null?void 0:n.parameters)||{};o&&PC(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${KI}`);let i=r||(a==null?void 0:a.subtitle)||o;return i?p.createElement(GC,{className:"sbdocs-subtitle sb-unstyled"},i):null},ZI=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return p.createElement($l,null,e);let r=globalThis.encodeURIComponent(e.toLowerCase());return p.createElement(Jl,{as:"h3",id:r},e)},tu=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:o=!1})=>{var c,s,d;let{story:a}=Qt(e||"story",["story"]),i=(d=(s=(c=a.parameters.docs)==null?void 0:c.canvas)==null?void 0:s.withToolbar)!=null?d:r;return p.createElement(Kd,{storyId:a.id},t&&p.createElement(p.Fragment,null,p.createElement(ZI,null,a.name),p.createElement(Wo,{of:e})),p.createElement(EI,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:o},source:{__forceInitialArgs:n}}))},JI=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile:r}=Qt(t||"meta",["meta"]),n=l.useContext(je).componentStoriesFromCSFFile(r)[0];return n?p.createElement(tu,{of:n.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},QI=n=>{var o=n,{children:e,disableAnchor:t}=o,r=R(o,["children","disableAnchor"]);if(t||typeof e!="string")return p.createElement(kl,null,e);let a=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return p.createElement(Jl,b({as:"h2",id:a},r),e)},eA=k(QI)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),tA=({title:e="Stories",includePrimary:t=!0})=>{var c;let{componentStories:r,projectAnnotations:n,getStoryContext:o}=l.useContext(je),a=r(),{stories:{filter:i}={filter:void 0}}=((c=n.parameters)==null?void 0:c.docs)||{};return i&&(a=a.filter(s=>i(s,o(s)))),a.some(s=>{var d;return(d=s.tags)==null?void 0:d.includes("autodocs")})&&(a=a.filter(s=>{var d;return(d=s.tags)==null?void 0:d.includes("autodocs")})),t||(a=a.slice(1)),!a||a.length===0?null:p.createElement(p.Fragment,null,p.createElement(eA,null,e),a.map(s=>s&&p.createElement(tu,{key:s.id,of:s.moduleExport,expanded:!0,__forceInitialArgs:!0})))},rA=()=>{let e=Qt("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return p.createElement(p.Fragment,null,p.createElement(YI,null),p.createElement(XI,null),p.createElement(Wo,{of:"meta"}),r?p.createElement(Wo,{of:"story"}):null,p.createElement(JI,null),p.createElement(AI,null),r?null:p.createElement(tA,null))};function wA({context:e,docsParameter:t}){let r=t.container||WI,n=t.page||rA;return p.createElement(r,{context:e,theme:t.theme},p.createElement(n,null))}var xA=({of:e})=>{let t=l.useContext(je);e&&t.referenceMeta(e,!0);try{let r=t.storyById();return p.createElement(Kd,{storyId:r.id})}catch(r){return null}};export{$I as A,_I as C,wA as D,Ar as F,LI as H,xA as M,hl as S,E6 as T,Ug as W,hm as a,Vg as b,ec as c,xI as d,zI as e,p6 as f,L2 as g,Ne as h,Xt as m,k as n,mA as s}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./syntaxhighlighter-BP7B2CQK-BMfPl9gr.js","./iframe-CrQm7WUj.js","./index-Ca44TZ0D.js","./index-DFiuTWKW.js","./extends-CCbyfPlC.js","./index-DYADbu9O.js","./isNativeReflectConstruct-DQQXTUsj.js","./index-BObpwDOh.js","./_getPrototype-fDUIJvdn.js","./_baseClone-BwI25-yt.js","./index-DrFu-skq.js","./formatter-2WMMO6ZP-J0ZH1JfW.js","./WithTooltip-KJL26V4Q-zZok1gnI.js","./Color-PRSJMWNM-ww_P78OC.js"] + __vite__mapDeps.viteFileDeps = ["./syntaxhighlighter-BP7B2CQK-BjOlNbxl.js","./iframe-BNbdtpq9.js","./index-Ca44TZ0D.js","./index-DFiuTWKW.js","./extends-CCbyfPlC.js","./index-DYADbu9O.js","./isNativeReflectConstruct-DQQXTUsj.js","./index-BObpwDOh.js","./_getPrototype-fDUIJvdn.js","./_baseClone-BwI25-yt.js","./index-DrFu-skq.js","./formatter-2WMMO6ZP-BT36p0-D.js","./WithTooltip-KJL26V4Q-B525ZNjS.js","./Color-PRSJMWNM-Bz2B8K5d.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/pr-preview/pr-419/assets/info-46DW6VJ7-BkVm7qR0.js b/pr-preview/pr-419/assets/info-46DW6VJ7-BkVm7qR0.js new file mode 100644 index 000000000..64d6d717a --- /dev/null +++ b/pr-preview/pr-419/assets/info-46DW6VJ7-BkVm7qR0.js @@ -0,0 +1 @@ +import{I as l,c as u}from"./mermaid-parser.core-B5qxKanj.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./Using existing ones-DVOwGlbd.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";import"./clone-Bp7QSEXO.js";export{l as InfoModule,u as createInfoServices}; diff --git a/pr-preview/pr-419/assets/info-46DW6VJ7-D6cvRm3F.js b/pr-preview/pr-419/assets/info-46DW6VJ7-D6cvRm3F.js deleted file mode 100644 index 32989db63..000000000 --- a/pr-preview/pr-419/assets/info-46DW6VJ7-D6cvRm3F.js +++ /dev/null @@ -1 +0,0 @@ -import{I as l,c as u}from"./mermaid-parser.core-D7Lfk3oe.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./Using existing ones-1ACZX-0W.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";import"./clone-qL6R6e7B.js";export{l as InfoModule,u as createInfoServices}; diff --git a/pr-preview/pr-419/assets/infoDiagram-7APDZ6AT-DKk3s9oT.js b/pr-preview/pr-419/assets/infoDiagram-7APDZ6AT-CIcI_zld.js similarity index 66% rename from pr-preview/pr-419/assets/infoDiagram-7APDZ6AT-DKk3s9oT.js rename to pr-preview/pr-419/assets/infoDiagram-7APDZ6AT-CIcI_zld.js index f0b2fd047..7dc6f26cc 100644 --- a/pr-preview/pr-419/assets/infoDiagram-7APDZ6AT-DKk3s9oT.js +++ b/pr-preview/pr-419/assets/infoDiagram-7APDZ6AT-CIcI_zld.js @@ -1,2 +1,2 @@ -var m=(a,e,t)=>new Promise((o,i)=>{var v=r=>{try{s(t.next(r))}catch(p){i(p)}},d=r=>{try{s(t.throw(r))}catch(p){i(p)}},s=r=>r.done?o(r.value):Promise.resolve(r.value).then(v,d);s((t=t.apply(a,e)).next())});import{_ as n,l as g,K as c,k as l,L as f}from"./Using existing ones-1ACZX-0W.js";import{p as u}from"./mermaid-parser.core-D7Lfk3oe.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";import"./clone-qL6R6e7B.js";var x={parse:n(a=>m(void 0,null,function*(){const e=yield u("info",a);g.debug(e)}),"parse")},_={version:f},b=n(()=>_.version,"getVersion"),w={getVersion:b},y=n((a,e,t)=>{g.debug(`rendering info diagram +var m=(a,e,t)=>new Promise((o,i)=>{var v=r=>{try{s(t.next(r))}catch(p){i(p)}},d=r=>{try{s(t.throw(r))}catch(p){i(p)}},s=r=>r.done?o(r.value):Promise.resolve(r.value).then(v,d);s((t=t.apply(a,e)).next())});import{_ as n,l as g,K as c,k as l,L as f}from"./Using existing ones-DVOwGlbd.js";import{p as u}from"./mermaid-parser.core-B5qxKanj.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";import"./clone-Bp7QSEXO.js";var x={parse:n(a=>m(void 0,null,function*(){const e=yield u("info",a);g.debug(e)}),"parse")},_={version:f},b=n(()=>_.version,"getVersion"),w={getVersion:b},y=n((a,e,t)=>{g.debug(`rendering info diagram `+a);const o=c(e);l(o,100,400,!0),o.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${t}`)},"draw"),S={draw:y},T={parser:x,db:w,renderer:S};export{T as diagram}; diff --git a/pr-preview/pr-419/assets/journeyDiagram-G5LC7W2K-5MkmSIV1.js b/pr-preview/pr-419/assets/journeyDiagram-G5LC7W2K-Do6w_qs5.js similarity index 98% rename from pr-preview/pr-419/assets/journeyDiagram-G5LC7W2K-5MkmSIV1.js rename to pr-preview/pr-419/assets/journeyDiagram-G5LC7W2K-Do6w_qs5.js index 84be5c197..ac16f3d49 100644 --- a/pr-preview/pr-419/assets/journeyDiagram-G5LC7W2K-5MkmSIV1.js +++ b/pr-preview/pr-419/assets/journeyDiagram-G5LC7W2K-Do6w_qs5.js @@ -1,4 +1,4 @@ -import{d as ft,f as gt,g as at,b as mt}from"./chunk-XVOYOM2C-C3A1cAVg.js";import{_ as i,d as A,q as xt,r as kt,s as _t,g as vt,c as bt,b as wt,t as Tt,j as W,k as St}from"./Using existing ones-1ACZX-0W.js";import{d as tt}from"./arc-CGPltd1w.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var H=function(){var t=i(function(g,r,a,l){for(a=a||{},l=g.length;l--;a[g[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],n=[1,9],c=[1,10],s=[1,11],u=[1,12],h=[1,13],p=[1,14],d={trace:i(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:i(function(r,a,l,y,f,o,S){var _=o.length-1;switch(f){case 1:return o[_-1];case 2:this.$=[];break;case 3:o[_-1].push(o[_]),this.$=o[_-1];break;case 4:case 5:this.$=o[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(o[_].substr(6)),this.$=o[_].substr(6);break;case 9:this.$=o[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=o[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(o[_].substr(8)),this.$=o[_].substr(8);break;case 13:y.addTask(o[_-1],o[_]),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:n,12:c,14:s,16:u,17:h,18:p},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:c,14:s,16:u,17:h,18:p},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: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],y=[],f=[null],o=[],S=this.table,_="",B=0,J=0,ut=2,K=1,yt=o.slice.call(arguments,1),k=Object.create(this.lexer),E={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(E.yy[O]=this.yy[O]);k.setInput(r,E.yy),E.yy.lexer=k,E.yy.parser=this,typeof k.yylloc=="undefined"&&(k.yylloc={});var Y=k.yylloc;o.push(Y);var dt=k.options&&k.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(b){l.length=l.length-2*b,f.length=f.length-b,o.length=o.length-b}i(pt,"popStack");function Q(){var b;return b=y.pop()||k.lex()||K,typeof b!="number"&&(b instanceof Array&&(y=b,b=y.pop()),b=a.symbols_[b]||b),b}i(Q,"lex");for(var v,P,w,q,C={},j,M,D,N;;){if(P=l[l.length-1],this.defaultActions[P]?w=this.defaultActions[P]:((v===null||typeof v=="undefined")&&(v=Q()),w=S[P]&&S[P][v]),typeof w=="undefined"||!w.length||!w[0]){var G="";N=[];for(j in S[P])this.terminals_[j]&&j>ut&&N.push("'"+this.terminals_[j]+"'");k.showPosition?G="Parse error on line "+(B+1)+`: +import{d as ft,f as gt,g as at,b as mt}from"./chunk-XVOYOM2C-zOgot8-d.js";import{_ as i,d as A,q as xt,r as kt,s as _t,g as vt,c as bt,b as wt,t as Tt,j as W,k as St}from"./Using existing ones-DVOwGlbd.js";import{d as tt}from"./arc-CyEqX_RK.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var H=function(){var t=i(function(g,r,a,l){for(a=a||{},l=g.length;l--;a[g[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],n=[1,9],c=[1,10],s=[1,11],u=[1,12],h=[1,13],p=[1,14],d={trace:i(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:i(function(r,a,l,y,f,o,S){var _=o.length-1;switch(f){case 1:return o[_-1];case 2:this.$=[];break;case 3:o[_-1].push(o[_]),this.$=o[_-1];break;case 4:case 5:this.$=o[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(o[_].substr(6)),this.$=o[_].substr(6);break;case 9:this.$=o[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=o[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(o[_].substr(8)),this.$=o[_].substr(8);break;case 13:y.addTask(o[_-1],o[_]),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:n,12:c,14:s,16:u,17:h,18:p},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:c,14:s,16:u,17:h,18:p},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: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],y=[],f=[null],o=[],S=this.table,_="",B=0,J=0,ut=2,K=1,yt=o.slice.call(arguments,1),k=Object.create(this.lexer),E={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(E.yy[O]=this.yy[O]);k.setInput(r,E.yy),E.yy.lexer=k,E.yy.parser=this,typeof k.yylloc=="undefined"&&(k.yylloc={});var Y=k.yylloc;o.push(Y);var dt=k.options&&k.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(b){l.length=l.length-2*b,f.length=f.length-b,o.length=o.length-b}i(pt,"popStack");function Q(){var b;return b=y.pop()||k.lex()||K,typeof b!="number"&&(b instanceof Array&&(y=b,b=y.pop()),b=a.symbols_[b]||b),b}i(Q,"lex");for(var v,P,w,q,C={},j,M,D,N;;){if(P=l[l.length-1],this.defaultActions[P]?w=this.defaultActions[P]:((v===null||typeof v=="undefined")&&(v=Q()),w=S[P]&&S[P][v]),typeof w=="undefined"||!w.length||!w[0]){var G="";N=[];for(j in S[P])this.terminals_[j]&&j>ut&&N.push("'"+this.terminals_[j]+"'");k.showPosition?G="Parse error on line "+(B+1)+`: `+k.showPosition()+` Expecting `+N.join(", ")+", got '"+(this.terminals_[v]||v)+"'":G="Parse error on line "+(B+1)+": Unexpected "+(v==K?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(G,{text:k.match,token:this.terminals_[v]||v,line:k.yylineno,loc:Y,expected:N})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+v);switch(w[0]){case 1:l.push(v),f.push(k.yytext),o.push(k.yylloc),l.push(w[1]),v=null,J=k.yyleng,_=k.yytext,B=k.yylineno,Y=k.yylloc;break;case 2:if(M=this.productions_[w[1]][1],C.$=f[f.length-M],C._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},dt&&(C._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),q=this.performAction.apply(C,[_,J,B,E.yy,w[1],f,o].concat(yt)),typeof q!="undefined")return q;M&&(l=l.slice(0,-1*M*2),f=f.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[w[1]][0]),f.push(C.$),o.push(C._$),D=S[l[l.length-2]][l[l.length-1]],l.push(D);break;case 3:return!0}}return!0},"parse")},x=function(){var g={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 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),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===y.length?this.yylloc.first_column:0)+y[y.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/pr-preview/pr-419/assets/json-DoIU1IdZ.js b/pr-preview/pr-419/assets/json-BhmxDxce.js similarity index 68% rename from pr-preview/pr-419/assets/json-DoIU1IdZ.js rename to pr-preview/pr-419/assets/json-BhmxDxce.js index 64c996cac..c1997b72d 100644 --- a/pr-preview/pr-419/assets/json-DoIU1IdZ.js +++ b/pr-preview/pr-419/assets/json-BhmxDxce.js @@ -1 +1 @@ -import"./graph-BbauKfQB.js";import{i as o}from"./_baseUniq-DLWEyx0q.js";import{c as d}from"./clone-qL6R6e7B.js";import{m as t}from"./_basePickBy-UIHw3QVG.js";function v(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:u(e),edges:p(e)};return o(e.graph())||(r.value=d(e.graph())),r}function u(e){return t(e.nodes(),function(r){var i=e.node(r),n=e.parent(r),a={v:r};return o(i)||(a.value=i),o(n)||(a.parent=n),a})}function p(e){return t(e.edges(),function(r){var i=e.edge(r),n={v:r.v,w:r.w};return o(r.name)||(n.name=r.name),o(i)||(n.value=i),n})}export{v as w}; +import"./graph-wuI2A7_P.js";import{i as o}from"./_baseUniq-JfSCQjs8.js";import{c as d}from"./clone-Bp7QSEXO.js";import{m as t}from"./_basePickBy-Cka5hBJe.js";function v(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:u(e),edges:p(e)};return o(e.graph())||(r.value=d(e.graph())),r}function u(e){return t(e.nodes(),function(r){var i=e.node(r),n=e.parent(r),a={v:r};return o(i)||(a.value=i),o(n)||(a.parent=n),a})}function p(e){return t(e.edges(),function(r){var i=e.edge(r),n={v:r.v,w:r.w};return o(r.name)||(n.name=r.name),o(i)||(n.value=i),n})}export{v as w}; diff --git a/pr-preview/pr-419/assets/layout-CpgFbA5F.js b/pr-preview/pr-419/assets/layout-CNdX_jlv.js similarity index 99% rename from pr-preview/pr-419/assets/layout-CpgFbA5F.js rename to pr-preview/pr-419/assets/layout-CNdX_jlv.js index 5755451d5..b7de42f98 100644 --- a/pr-preview/pr-419/assets/layout-CpgFbA5F.js +++ b/pr-preview/pr-419/assets/layout-CNdX_jlv.js @@ -1 +1 @@ -import{G as k}from"./graph-BbauKfQB.js";import{b1 as Sn,b2 as On,b3 as Fn,b4 as Vn,aK as An,b5 as Bn,aO as vn,aN as pn,b6 as Gn,aJ as W,ay as Yn,aQ as Dn,aA as $n,b7 as j}from"./Using existing ones-1ACZX-0W.js";import{b as qn,p as mn,q as wn,g as X,e as en,m as A,o as Wn,s as jn,c as zn,u as Xn,d as s,h as m,i as g,f as I,v as y,r as O}from"./_baseUniq-DLWEyx0q.js";import{f as N,b as bn,a as Un,c as Hn,d as Jn,t as B,m as w,e as R,g as U,l as P,h as Kn}from"./_basePickBy-UIHw3QVG.js";function Qn(n){return Sn(On(n,void 0,N),n+"")}var Zn=1,ne=4;function ee(n){return qn(n,Zn|ne)}var rn=function(){return Fn.Date.now()};function re(n,e){return n==null?n:Vn(n,mn(e),An)}function ie(n,e){return n&&wn(n,mn(e))}function te(n,e){return n>e}function F(n,e){var r={};return e=X(e),wn(n,function(i,t,a){Bn(r,t,e(i,t,a))}),r}function x(n){return n&&n.length?bn(n,vn,te):void 0}function H(n,e){return n&&n.length?bn(n,X(e),Un):void 0}function ae(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function oe(n,e){if(n!==e){var r=n!==void 0,i=n===null,t=n===n,a=en(n),o=e!==void 0,u=e===null,d=e===e,f=en(e);if(!u&&!f&&!a&&n>e||a&&o&&d&&!u&&!f||i&&o&&d||!r&&d||!t)return 1;if(!i&&!a&&!f&&n=u)return d;var f=r[i];return d*(f=="desc"?-1:1)}}return n.index-e.index}function de(n,e,r){e.length?e=A(e,function(a){return pn(a)?function(o){return Wn(o,a.length===1?a[0]:a)}:a}):e=[vn];var i=-1;e=A(e,Gn(X));var t=Hn(n,function(a,o,u){var d=A(e,function(f){return f(a)});return{criteria:d,index:++i,value:a}});return ae(t,function(a,o){return ue(a,o,r)})}function fe(n,e){return Jn(n,e,function(r,i){return jn(n,i)})}var S=Qn(function(n,e){return n==null?{}:fe(n,e)}),se=Math.ceil,ce=Math.max;function le(n,e,r,i){for(var t=-1,a=ce(se((e-n)/(r||1)),0),o=Array(a);a--;)o[i?a:++t]=n,n+=r;return o}function he(n){return function(e,r,i){return i&&typeof i!="number"&&W(e,r,i)&&(r=i=void 0),e=B(e),r===void 0?(r=e,e=0):r=B(r),i=i===void 0?e1&&W(n,e[0],e[1])?e=[]:r>2&&W(e[0],e[1],e[2])&&(e=[e[0]]),de(n,zn(e,1),[])}),ve=0;function J(n){var e=++ve;return Xn(n)+e}function pe(n,e,r){for(var i=-1,t=n.length,a=e.length,o={};++i0;--u)if(o=e[u].dequeue(),o){i=i.concat(G(n,e,r,o,!0));break}}}return i}function G(n,e,r,i,t){var a=t?[]:void 0;return s(n.inEdges(i.v),function(o){var u=n.edge(o),d=n.node(o.v);t&&a.push({v:o.v,w:o.w}),d.out-=u,z(e,r,d)}),s(n.outEdges(i.v),function(o){var u=n.edge(o),d=o.w,f=n.node(d);f.in-=u,z(e,r,f)}),n.removeNode(i.v),a}function Ee(n,e){var r=new k,i=0,t=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),t=Math.max(t,r.node(u.v).out+=f),i=Math.max(i,r.node(u.w).in+=f)});var a=L(t+i+3).map(function(){return new we}),o=i+1;return s(r.nodes(),function(u){z(a,o,r.node(u))}),{graph:r,buckets:a,zeroIdx:o}}function z(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function ye(n){var e=n.graph().acyclicer==="greedy"?ke(n,r(n)):Le(n);s(e,function(i){var t=n.edge(i);n.removeEdge(i),t.forwardName=i.name,t.reversed=!0,n.setEdge(i.w,i.v,t,J("rev"))});function r(i){return function(t){return i.edge(t).weight}}}function Le(n){var e=[],r={},i={};function t(a){m(i,a)||(i[a]=!0,r[a]=!0,s(n.outEdges(a),function(o){m(r,o.w)?e.push(o):t(o.w)}),delete r[a])}return s(n.nodes(),t),e}function Ne(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var i=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,i)}})}function C(n,e,r,i){var t;do t=J(i);while(n.hasNode(t));return r.dummy=e,n.setNode(t,r),t}function Ce(n){var e=new k().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var i=e.edge(r.v,r.w)||{weight:0,minlen:1},t=n.edge(r);e.setEdge(r.v,r.w,{weight:i.weight+t.weight,minlen:Math.max(i.minlen,t.minlen)})}),e}function gn(n){var e=new k({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function an(n,e){var r=n.x,i=n.y,t=e.x-r,a=e.y-i,o=n.width/2,u=n.height/2;if(!t&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(a)*o>Math.abs(t)*u?(a<0&&(u=-u),d=u*t/a,f=u):(t<0&&(o=-o),d=o,f=o*a/t),{x:r+d,y:i+f}}function V(n){var e=w(L(kn(n)+1),function(){return[]});return s(n.nodes(),function(r){var i=n.node(r),t=i.rank;g(t)||(e[t][i.order]=r)}),e}function _e(n){var e=R(w(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var i=n.node(r);m(i,"rank")&&(i.rank-=e)})}function Re(n){var e=R(w(n.nodes(),function(a){return n.node(a).rank})),r=[];s(n.nodes(),function(a){var o=n.node(a).rank-e;r[o]||(r[o]=[]),r[o].push(a)});var i=0,t=n.graph().nodeRankFactor;s(r,function(a,o){g(a)&&o%t!==0?--i:i&&s(a,function(u){n.node(u).rank+=i})})}function on(n,e,r,i){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=i),C(n,"border",t,e)}function kn(n){return x(w(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function Te(n,e){var r={lhs:[],rhs:[]};return s(n,function(i){e(i)?r.lhs.push(i):r.rhs.push(i)}),r}function Ie(n,e){var r=rn();try{return e()}finally{console.log(n+" time: "+(rn()-r)+"ms")}}function Me(n,e){return e()}function Pe(n){function e(r){var i=n.children(r),t=n.node(r);if(i.length&&s(i,e),m(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var a=t.minRank,o=t.maxRank+1;ao.lim&&(u=o,d=!0);var f=I(e.edges(),function(c){return d===fn(n,n.node(c.v),u)&&d!==fn(n,n.node(c.w),u)});return H(f,function(c){return T(e,c)})}function Tn(n,e,r,i){var t=r.v,a=r.w;n.removeEdge(t,a),n.setEdge(i.v,i.w,{}),Z(n),Q(n,e),Xe(n,e)}function Xe(n,e){var r=U(n.nodes(),function(t){return!e.node(t).parent}),i=je(n,r);i=i.slice(1),s(i,function(t){var a=n.node(t).parent,o=e.edge(t,a),u=!1;o||(o=e.edge(a,t),u=!0),e.node(t).rank=e.node(a).rank+(u?o.minlen:-o.minlen)})}function Ue(n,e,r){return n.hasEdge(e,r)}function fn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function He(n){switch(n.graph().ranker){case"network-simplex":sn(n);break;case"tight-tree":Ke(n);break;case"longest-path":Je(n);break;default:sn(n)}}var Je=K;function Ke(n){K(n),En(n)}function sn(n){E(n)}function Qe(n){var e=C(n,"root",{},"_root"),r=Ze(n),i=x(y(r))-1,t=2*i+1;n.graph().nestingRoot=e,s(n.edges(),function(o){n.edge(o).minlen*=t});var a=nr(n)+1;s(n.children(),function(o){In(n,e,t,a,i,r,o)}),n.graph().nodeRankFactor=t}function In(n,e,r,i,t,a,o){var u=n.children(o);if(!u.length){o!==e&&n.setEdge(e,o,{weight:0,minlen:r});return}var d=on(n,"_bt"),f=on(n,"_bb"),c=n.node(o);n.setParent(d,o),c.borderTop=d,n.setParent(f,o),c.borderBottom=f,s(u,function(l){In(n,e,r,i,t,a,l);var h=n.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,b=h.borderTop?i:2*i,_=v!==p?1:t-a[o]+1;n.setEdge(d,v,{weight:b,minlen:_,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:_,nestingEdge:!0})}),n.parent(o)||n.setEdge(e,d,{weight:0,minlen:t+a[o]})}function Ze(n){var e={};function r(i,t){var a=n.children(i);a&&a.length&&s(a,function(o){r(o,t+1)}),e[i]=t}return s(n.children(),function(i){r(i,1)}),e}function nr(n){return O(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function er(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var i=n.edge(r);i.nestingEdge&&n.removeEdge(r)})}function rr(n,e,r){var i={},t;s(r,function(a){for(var o=n.parent(a),u,d;o;){if(u=n.parent(o),u?(d=i[u],i[u]=o):(d=t,t=o),d&&d!==o){e.setEdge(d,o);return}o=u}})}function ir(n,e,r){var i=tr(n),t=new k({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(a){return n.node(a)});return s(n.nodes(),function(a){var o=n.node(a),u=n.parent(a);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(t.setNode(a),t.setParent(a,u||i),s(n[r](a),function(d){var f=d.v===a?d.w:d.v,c=t.edge(f,a),l=g(c)?0:c.weight;t.setEdge(f,a,{weight:n.edge(d).weight+l})}),m(o,"minRank")&&t.setNode(a,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),t}function tr(n){for(var e;n.hasNode(e=J("_root")););return e}function ar(n,e){for(var r=0,i=1;i0;)c%2&&(l+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*l})),d}function ur(n){var e={},r=I(n.nodes(),function(u){return!n.children(u).length}),i=x(w(r,function(u){return n.node(u).rank})),t=w(L(i+1),function(){return[]});function a(u){if(!m(e,u)){e[u]=!0;var d=n.node(u);t[d.rank].push(u),s(n.successors(u),a)}}var o=M(r,function(u){return n.node(u).rank});return s(o,a),t}function dr(n,e){return w(e,function(r){var i=n.inEdges(r);if(i.length){var t=O(i,function(a,o){var u=n.edge(o),d=n.node(o.v);return{sum:a.sum+u.weight*d.order,weight:a.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function fr(n,e){var r={};s(n,function(t,a){var o=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:a};g(t.barycenter)||(o.barycenter=t.barycenter,o.weight=t.weight)}),s(e.edges(),function(t){var a=r[t.v],o=r[t.w];!g(a)&&!g(o)&&(o.indegree++,a.out.push(r[t.w]))});var i=I(r,function(t){return!t.indegree});return sr(i)}function sr(n){var e=[];function r(a){return function(o){o.merged||(g(o.barycenter)||g(a.barycenter)||o.barycenter>=a.barycenter)&&cr(a,o)}}function i(a){return function(o){o.in.push(a),--o.indegree===0&&n.push(o)}}for(;n.length;){var t=n.pop();e.push(t),s(t.in.reverse(),r(t)),s(t.out,i(t))}return w(I(e,function(a){return!a.merged}),function(a){return S(a,["vs","i","barycenter","weight"])})}function cr(n,e){var r=0,i=0;n.weight&&(r+=n.barycenter*n.weight,i+=n.weight),e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/i,n.weight=i,n.i=Math.min(e.i,n.i),e.merged=!0}function lr(n,e){var r=Te(n,function(c){return m(c,"barycenter")}),i=r.lhs,t=M(r.rhs,function(c){return-c.i}),a=[],o=0,u=0,d=0;i.sort(hr(!!e)),d=cn(a,t,d),s(i,function(c){d+=c.vs.length,a.push(c.vs),o+=c.barycenter*c.weight,u+=c.weight,d=cn(a,t,d)});var f={vs:N(a)};return u&&(f.barycenter=o/u,f.weight=u),f}function cn(n,e,r){for(var i;e.length&&(i=P(e)).i<=r;)e.pop(),n.push(i.vs),r++;return r}function hr(n){return function(e,r){return e.barycenterr.barycenter?1:n?r.i-e.i:e.i-r.i}}function Mn(n,e,r,i){var t=n.children(e),a=n.node(e),o=a?a.borderLeft:void 0,u=a?a.borderRight:void 0,d={};o&&(t=I(t,function(p){return p!==o&&p!==u}));var f=dr(n,t);s(f,function(p){if(n.children(p.v).length){var b=Mn(n,p.v,r,i);d[p.v]=b,m(b,"barycenter")&&pr(p,b)}});var c=fr(f,r);vr(c,d);var l=lr(c,i);if(o&&(l.vs=N([o,l.vs,u]),n.predecessors(o).length)){var h=n.node(n.predecessors(o)[0]),v=n.node(n.predecessors(u)[0]);m(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function vr(n,e){s(n,function(r){r.vs=N(r.vs.map(function(i){return e[i]?e[i].vs:i}))})}function pr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function mr(n){var e=kn(n),r=ln(n,L(1,e+1),"inEdges"),i=ln(n,L(e-1,-1,-1),"outEdges"),t=ur(n);hn(n,t);for(var a=Number.POSITIVE_INFINITY,o,u=0,d=0;d<4;++u,++d){wr(u%2?r:i,u%4>=2),t=V(n);var f=ar(n,t);fo||u>e[d].lim));for(f=d,d=i;(d=n.parent(d))!==f;)a.push(d);return{path:t.concat(a.reverse()),lca:f}}function kr(n){var e={},r=0;function i(t){var a=r;s(n.children(t),i),e[t]={low:a,lim:r++}}return s(n.children(),i),e}function xr(n,e){var r={};function i(t,a){var o=0,u=0,d=t.length,f=P(a);return s(a,function(c,l){var h=yr(n,c),v=h?n.node(h).order:d;(h||c===f)&&(s(a.slice(u,l+1),function(p){s(n.predecessors(p),function(b){var _=n.node(b),nn=_.order;(nnf)&&Pn(r,h,c)})})}function t(a,o){var u=-1,d,f=0;return s(o,function(c,l){if(n.node(c).dummy==="border"){var h=n.predecessors(c);h.length&&(d=n.node(h[0]).order,i(o,f,l,u,d),f=l,u=d)}i(o,f,o.length,d,a.length)}),o}return O(e,t),r}function yr(n,e){if(n.node(e).dummy)return U(n.predecessors(e),function(r){return n.node(r).dummy})}function Pn(n,e,r){if(e>r){var i=e;e=r,r=i}var t=n[e];t||(n[e]=t={}),t[r]=!0}function Lr(n,e,r){if(e>r){var i=e;e=r,r=i}return m(n[e],r)}function Nr(n,e,r,i){var t={},a={},o={};return s(e,function(u){s(u,function(d,f){t[d]=d,a[d]=d,o[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=i(f);if(c.length){c=M(c,function(b){return o[b]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];a[f]===f&&de}function F(n,e){var r={};return e=X(e),wn(n,function(i,t,a){Bn(r,t,e(i,t,a))}),r}function x(n){return n&&n.length?bn(n,vn,te):void 0}function H(n,e){return n&&n.length?bn(n,X(e),Un):void 0}function ae(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function oe(n,e){if(n!==e){var r=n!==void 0,i=n===null,t=n===n,a=en(n),o=e!==void 0,u=e===null,d=e===e,f=en(e);if(!u&&!f&&!a&&n>e||a&&o&&d&&!u&&!f||i&&o&&d||!r&&d||!t)return 1;if(!i&&!a&&!f&&n=u)return d;var f=r[i];return d*(f=="desc"?-1:1)}}return n.index-e.index}function de(n,e,r){e.length?e=A(e,function(a){return pn(a)?function(o){return Wn(o,a.length===1?a[0]:a)}:a}):e=[vn];var i=-1;e=A(e,Gn(X));var t=Hn(n,function(a,o,u){var d=A(e,function(f){return f(a)});return{criteria:d,index:++i,value:a}});return ae(t,function(a,o){return ue(a,o,r)})}function fe(n,e){return Jn(n,e,function(r,i){return jn(n,i)})}var S=Qn(function(n,e){return n==null?{}:fe(n,e)}),se=Math.ceil,ce=Math.max;function le(n,e,r,i){for(var t=-1,a=ce(se((e-n)/(r||1)),0),o=Array(a);a--;)o[i?a:++t]=n,n+=r;return o}function he(n){return function(e,r,i){return i&&typeof i!="number"&&W(e,r,i)&&(r=i=void 0),e=B(e),r===void 0?(r=e,e=0):r=B(r),i=i===void 0?e1&&W(n,e[0],e[1])?e=[]:r>2&&W(e[0],e[1],e[2])&&(e=[e[0]]),de(n,zn(e,1),[])}),ve=0;function J(n){var e=++ve;return Xn(n)+e}function pe(n,e,r){for(var i=-1,t=n.length,a=e.length,o={};++i0;--u)if(o=e[u].dequeue(),o){i=i.concat(G(n,e,r,o,!0));break}}}return i}function G(n,e,r,i,t){var a=t?[]:void 0;return s(n.inEdges(i.v),function(o){var u=n.edge(o),d=n.node(o.v);t&&a.push({v:o.v,w:o.w}),d.out-=u,z(e,r,d)}),s(n.outEdges(i.v),function(o){var u=n.edge(o),d=o.w,f=n.node(d);f.in-=u,z(e,r,f)}),n.removeNode(i.v),a}function Ee(n,e){var r=new k,i=0,t=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),t=Math.max(t,r.node(u.v).out+=f),i=Math.max(i,r.node(u.w).in+=f)});var a=L(t+i+3).map(function(){return new we}),o=i+1;return s(r.nodes(),function(u){z(a,o,r.node(u))}),{graph:r,buckets:a,zeroIdx:o}}function z(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function ye(n){var e=n.graph().acyclicer==="greedy"?ke(n,r(n)):Le(n);s(e,function(i){var t=n.edge(i);n.removeEdge(i),t.forwardName=i.name,t.reversed=!0,n.setEdge(i.w,i.v,t,J("rev"))});function r(i){return function(t){return i.edge(t).weight}}}function Le(n){var e=[],r={},i={};function t(a){m(i,a)||(i[a]=!0,r[a]=!0,s(n.outEdges(a),function(o){m(r,o.w)?e.push(o):t(o.w)}),delete r[a])}return s(n.nodes(),t),e}function Ne(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var i=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,i)}})}function C(n,e,r,i){var t;do t=J(i);while(n.hasNode(t));return r.dummy=e,n.setNode(t,r),t}function Ce(n){var e=new k().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var i=e.edge(r.v,r.w)||{weight:0,minlen:1},t=n.edge(r);e.setEdge(r.v,r.w,{weight:i.weight+t.weight,minlen:Math.max(i.minlen,t.minlen)})}),e}function gn(n){var e=new k({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function an(n,e){var r=n.x,i=n.y,t=e.x-r,a=e.y-i,o=n.width/2,u=n.height/2;if(!t&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(a)*o>Math.abs(t)*u?(a<0&&(u=-u),d=u*t/a,f=u):(t<0&&(o=-o),d=o,f=o*a/t),{x:r+d,y:i+f}}function V(n){var e=w(L(kn(n)+1),function(){return[]});return s(n.nodes(),function(r){var i=n.node(r),t=i.rank;g(t)||(e[t][i.order]=r)}),e}function _e(n){var e=R(w(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var i=n.node(r);m(i,"rank")&&(i.rank-=e)})}function Re(n){var e=R(w(n.nodes(),function(a){return n.node(a).rank})),r=[];s(n.nodes(),function(a){var o=n.node(a).rank-e;r[o]||(r[o]=[]),r[o].push(a)});var i=0,t=n.graph().nodeRankFactor;s(r,function(a,o){g(a)&&o%t!==0?--i:i&&s(a,function(u){n.node(u).rank+=i})})}function on(n,e,r,i){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=i),C(n,"border",t,e)}function kn(n){return x(w(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function Te(n,e){var r={lhs:[],rhs:[]};return s(n,function(i){e(i)?r.lhs.push(i):r.rhs.push(i)}),r}function Ie(n,e){var r=rn();try{return e()}finally{console.log(n+" time: "+(rn()-r)+"ms")}}function Me(n,e){return e()}function Pe(n){function e(r){var i=n.children(r),t=n.node(r);if(i.length&&s(i,e),m(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var a=t.minRank,o=t.maxRank+1;ao.lim&&(u=o,d=!0);var f=I(e.edges(),function(c){return d===fn(n,n.node(c.v),u)&&d!==fn(n,n.node(c.w),u)});return H(f,function(c){return T(e,c)})}function Tn(n,e,r,i){var t=r.v,a=r.w;n.removeEdge(t,a),n.setEdge(i.v,i.w,{}),Z(n),Q(n,e),Xe(n,e)}function Xe(n,e){var r=U(n.nodes(),function(t){return!e.node(t).parent}),i=je(n,r);i=i.slice(1),s(i,function(t){var a=n.node(t).parent,o=e.edge(t,a),u=!1;o||(o=e.edge(a,t),u=!0),e.node(t).rank=e.node(a).rank+(u?o.minlen:-o.minlen)})}function Ue(n,e,r){return n.hasEdge(e,r)}function fn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function He(n){switch(n.graph().ranker){case"network-simplex":sn(n);break;case"tight-tree":Ke(n);break;case"longest-path":Je(n);break;default:sn(n)}}var Je=K;function Ke(n){K(n),En(n)}function sn(n){E(n)}function Qe(n){var e=C(n,"root",{},"_root"),r=Ze(n),i=x(y(r))-1,t=2*i+1;n.graph().nestingRoot=e,s(n.edges(),function(o){n.edge(o).minlen*=t});var a=nr(n)+1;s(n.children(),function(o){In(n,e,t,a,i,r,o)}),n.graph().nodeRankFactor=t}function In(n,e,r,i,t,a,o){var u=n.children(o);if(!u.length){o!==e&&n.setEdge(e,o,{weight:0,minlen:r});return}var d=on(n,"_bt"),f=on(n,"_bb"),c=n.node(o);n.setParent(d,o),c.borderTop=d,n.setParent(f,o),c.borderBottom=f,s(u,function(l){In(n,e,r,i,t,a,l);var h=n.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,b=h.borderTop?i:2*i,_=v!==p?1:t-a[o]+1;n.setEdge(d,v,{weight:b,minlen:_,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:_,nestingEdge:!0})}),n.parent(o)||n.setEdge(e,d,{weight:0,minlen:t+a[o]})}function Ze(n){var e={};function r(i,t){var a=n.children(i);a&&a.length&&s(a,function(o){r(o,t+1)}),e[i]=t}return s(n.children(),function(i){r(i,1)}),e}function nr(n){return O(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function er(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var i=n.edge(r);i.nestingEdge&&n.removeEdge(r)})}function rr(n,e,r){var i={},t;s(r,function(a){for(var o=n.parent(a),u,d;o;){if(u=n.parent(o),u?(d=i[u],i[u]=o):(d=t,t=o),d&&d!==o){e.setEdge(d,o);return}o=u}})}function ir(n,e,r){var i=tr(n),t=new k({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(a){return n.node(a)});return s(n.nodes(),function(a){var o=n.node(a),u=n.parent(a);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(t.setNode(a),t.setParent(a,u||i),s(n[r](a),function(d){var f=d.v===a?d.w:d.v,c=t.edge(f,a),l=g(c)?0:c.weight;t.setEdge(f,a,{weight:n.edge(d).weight+l})}),m(o,"minRank")&&t.setNode(a,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),t}function tr(n){for(var e;n.hasNode(e=J("_root")););return e}function ar(n,e){for(var r=0,i=1;i0;)c%2&&(l+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*l})),d}function ur(n){var e={},r=I(n.nodes(),function(u){return!n.children(u).length}),i=x(w(r,function(u){return n.node(u).rank})),t=w(L(i+1),function(){return[]});function a(u){if(!m(e,u)){e[u]=!0;var d=n.node(u);t[d.rank].push(u),s(n.successors(u),a)}}var o=M(r,function(u){return n.node(u).rank});return s(o,a),t}function dr(n,e){return w(e,function(r){var i=n.inEdges(r);if(i.length){var t=O(i,function(a,o){var u=n.edge(o),d=n.node(o.v);return{sum:a.sum+u.weight*d.order,weight:a.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function fr(n,e){var r={};s(n,function(t,a){var o=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:a};g(t.barycenter)||(o.barycenter=t.barycenter,o.weight=t.weight)}),s(e.edges(),function(t){var a=r[t.v],o=r[t.w];!g(a)&&!g(o)&&(o.indegree++,a.out.push(r[t.w]))});var i=I(r,function(t){return!t.indegree});return sr(i)}function sr(n){var e=[];function r(a){return function(o){o.merged||(g(o.barycenter)||g(a.barycenter)||o.barycenter>=a.barycenter)&&cr(a,o)}}function i(a){return function(o){o.in.push(a),--o.indegree===0&&n.push(o)}}for(;n.length;){var t=n.pop();e.push(t),s(t.in.reverse(),r(t)),s(t.out,i(t))}return w(I(e,function(a){return!a.merged}),function(a){return S(a,["vs","i","barycenter","weight"])})}function cr(n,e){var r=0,i=0;n.weight&&(r+=n.barycenter*n.weight,i+=n.weight),e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/i,n.weight=i,n.i=Math.min(e.i,n.i),e.merged=!0}function lr(n,e){var r=Te(n,function(c){return m(c,"barycenter")}),i=r.lhs,t=M(r.rhs,function(c){return-c.i}),a=[],o=0,u=0,d=0;i.sort(hr(!!e)),d=cn(a,t,d),s(i,function(c){d+=c.vs.length,a.push(c.vs),o+=c.barycenter*c.weight,u+=c.weight,d=cn(a,t,d)});var f={vs:N(a)};return u&&(f.barycenter=o/u,f.weight=u),f}function cn(n,e,r){for(var i;e.length&&(i=P(e)).i<=r;)e.pop(),n.push(i.vs),r++;return r}function hr(n){return function(e,r){return e.barycenterr.barycenter?1:n?r.i-e.i:e.i-r.i}}function Mn(n,e,r,i){var t=n.children(e),a=n.node(e),o=a?a.borderLeft:void 0,u=a?a.borderRight:void 0,d={};o&&(t=I(t,function(p){return p!==o&&p!==u}));var f=dr(n,t);s(f,function(p){if(n.children(p.v).length){var b=Mn(n,p.v,r,i);d[p.v]=b,m(b,"barycenter")&&pr(p,b)}});var c=fr(f,r);vr(c,d);var l=lr(c,i);if(o&&(l.vs=N([o,l.vs,u]),n.predecessors(o).length)){var h=n.node(n.predecessors(o)[0]),v=n.node(n.predecessors(u)[0]);m(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function vr(n,e){s(n,function(r){r.vs=N(r.vs.map(function(i){return e[i]?e[i].vs:i}))})}function pr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function mr(n){var e=kn(n),r=ln(n,L(1,e+1),"inEdges"),i=ln(n,L(e-1,-1,-1),"outEdges"),t=ur(n);hn(n,t);for(var a=Number.POSITIVE_INFINITY,o,u=0,d=0;d<4;++u,++d){wr(u%2?r:i,u%4>=2),t=V(n);var f=ar(n,t);fo||u>e[d].lim));for(f=d,d=i;(d=n.parent(d))!==f;)a.push(d);return{path:t.concat(a.reverse()),lca:f}}function kr(n){var e={},r=0;function i(t){var a=r;s(n.children(t),i),e[t]={low:a,lim:r++}}return s(n.children(),i),e}function xr(n,e){var r={};function i(t,a){var o=0,u=0,d=t.length,f=P(a);return s(a,function(c,l){var h=yr(n,c),v=h?n.node(h).order:d;(h||c===f)&&(s(a.slice(u,l+1),function(p){s(n.predecessors(p),function(b){var _=n.node(b),nn=_.order;(nnf)&&Pn(r,h,c)})})}function t(a,o){var u=-1,d,f=0;return s(o,function(c,l){if(n.node(c).dummy==="border"){var h=n.predecessors(c);h.length&&(d=n.node(h[0]).order,i(o,f,l,u,d),f=l,u=d)}i(o,f,o.length,d,a.length)}),o}return O(e,t),r}function yr(n,e){if(n.node(e).dummy)return U(n.predecessors(e),function(r){return n.node(r).dummy})}function Pn(n,e,r){if(e>r){var i=e;e=r,r=i}var t=n[e];t||(n[e]=t={}),t[r]=!0}function Lr(n,e,r){if(e>r){var i=e;e=r,r=i}return m(n[e],r)}function Nr(n,e,r,i){var t={},a={},o={};return s(e,function(u){s(u,function(d,f){t[d]=d,a[d]=d,o[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=i(f);if(c.length){c=M(c,function(b){return o[b]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];a[f]===f&&dt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function W(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=W(F),dn=sn.right;W(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.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 $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function U(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const _={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:bn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>U(n*100,t),r:U,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function H(n){return n}var J=Array.prototype.map,K=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?H:jn(J.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?H:Pn(J.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,G=h.trim,d=h.type;d==="n"?(T=!0,d="g"):_[d]||(w===void 0&&(w=12),G=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",O=_[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var N=en,g=on,x,X,j;if(d==="c")g=O(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?K[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,X=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return V.toString=function(){return h+""},V}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=K[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var Q=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Gn:Bn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=Sn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Xn(){return Vn()(A,A)}function Yn(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r==null?",f":r),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e==null?10:e)},n.tickFormat=function(e,r){var i=t();return Yn(i[0],i[i.length-1],e==null?10:e,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Un(){var n=Xn();return n.copy=function(){return On(n,Un())},cn.apply(n,arguments),Zn(n)}export{On as a,W as b,Xn as c,Un as l,wn as t}; +import{aY as un,aZ as I,a_ as Y,a$ as Z,b0 as fn}from"./Using existing ones-DVOwGlbd.js";import{i as cn}from"./init-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:nt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function W(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=W(F),dn=sn.right;W(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.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 $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function U(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const _={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:bn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>U(n*100,t),r:U,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function H(n){return n}var J=Array.prototype.map,K=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?H:jn(J.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?H:Pn(J.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,S=h.symbol,k=h.zero,b=h.width,T=h.comma,w=h.precision,G=h.trim,d=h.type;d==="n"?(T=!0,d="g"):_[d]||(w===void 0&&(w=12),G=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=S==="$"?e:S==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=S==="$"?r:/[%p]/.test(d)?a:"",O=_[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var N=en,g=on,x,X,j;if(d==="c")g=O(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?K[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,X=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return V.toString=function(){return h+""},V}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,S=Math.pow(10,-y),k=K[8+y/3];return function(b){return p(S*b)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var Q=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Gn:Bn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=Sn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Xn(){return Vn()(A,A)}function Yn(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r==null?",f":r),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e==null?10:e)},n.tickFormat=function(e,r){var i=t();return Yn(i[0],i[i.length-1],e==null?10:e,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Un(){var n=Xn();return n.copy=function(){return On(n,Un())},cn.apply(n,arguments),Zn(n)}export{On as a,W as b,Xn as c,Un as l,wn as t}; diff --git a/pr-preview/pr-419/assets/mermaid-parser.core-D7Lfk3oe.js b/pr-preview/pr-419/assets/mermaid-parser.core-B5qxKanj.js similarity index 99% rename from pr-preview/pr-419/assets/mermaid-parser.core-D7Lfk3oe.js rename to pr-preview/pr-419/assets/mermaid-parser.core-B5qxKanj.js index b682a0a4a..87e7425b8 100644 --- a/pr-preview/pr-419/assets/mermaid-parser.core-D7Lfk3oe.js +++ b/pr-preview/pr-419/assets/mermaid-parser.core-B5qxKanj.js @@ -1,4 +1,4 @@ -var Oc=Object.defineProperty;var bc=(n,e,t)=>e in n?Oc(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Qe=(n,e,t)=>(bc(n,typeof e!="symbol"?e+"":e,t),t);var $=(n,e,t)=>new Promise((r,i)=>{var s=l=>{try{o(t.next(l))}catch(c){i(c)}},a=l=>{try{o(t.throw(l))}catch(c){i(c)}},o=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,a);o((t=t.apply(n,e)).next())});import{_ as Wt}from"./iframe-CrQm7WUj.js";import{bv as Pc,bw as Mc,aM as ao,bf as Dc,aQ as Fc,aN as ee,b6 as oo,ay as Gc,az as is,aJ as lo,b5 as Uc,b8 as co,b9 as uo,bk as ss,aB as gt,aC as F,aO as as,aI as Bc}from"./Using existing ones-1ACZX-0W.js";import{k as St,l as Ni,g as bt,m as fo,S as Vc,w as Wc,x as jc,y as Hc,c as ho,v as z,z as po,A as Kc,B as zc,C as qc,D as Yc,a as mo,d as C,i as qe,h as w,r as le,f as ve,E as Y}from"./_baseUniq-DLWEyx0q.js";import{i as cr,m as S,d as Xc,f as Ce,g as It,h as Ci,l as xt,e as Jc}from"./_basePickBy-UIHw3QVG.js";import{c as ne}from"./clone-qL6R6e7B.js";var Qc=Object.prototype,Zc=Qc.hasOwnProperty,Ee=Pc(function(n,e){if(Mc(e)||ao(e)){Dc(e,St(e),n);return}for(var t in e)Zc.call(e,t)&&Fc(n,t,e[t])});function go(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++r=ru&&(s=Hc,a=!1,e=new Vc(e));e:for(;++i-1:!!i&&po(n,e,t)>-1}var fu=Math.max;function os(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=t==null?0:cr(t);return i<0&&(i=fu(r+i,0)),po(n,e,i)}var hu="[object RegExp]";function pu(n){return co(n)&&uo(n)==hu}var ls=ss&&ss.isRegExp,Ye=ls?oo(ls):pu,mu="Expected a function";function gu(n){if(typeof n!="function")throw new TypeError(mu);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function Me(n,e){if(n==null)return{};var t=fo(Kc(n),function(r){return[r]});return e=bt(e),Xc(n,t,function(r,i){return e(r,i[0])})}function dr(n,e){var t=ee(n)?zc:qc;return t(n,gu(bt(e)))}function yu(n,e){var t;return Ni(n,function(r,i,s){return t=e(r,i,s),!t}),!!t}function yo(n,e,t){var r=ee(n)?Yc:yu;return t&&lo(n,e,t)&&(e=void 0),r(n,bt(e))}function wi(n){return n&&n.length?mo(n):[]}function Tu(n,e){return n&&n.length?mo(n,bt(e)):[]}function oe(n){return typeof n=="object"&&n!==null&&typeof n.$type=="string"}function Ue(n){return typeof n=="object"&&n!==null&&typeof n.$refText=="string"}function Ru(n){return typeof n=="object"&&n!==null&&typeof n.name=="string"&&typeof n.type=="string"&&typeof n.path=="string"}function $n(n){return typeof n=="object"&&n!==null&&oe(n.container)&&Ue(n.reference)&&typeof n.message=="string"}class To{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return oe(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[t];if(i!==void 0)return i;{const s=this.computeIsSubtype(e,t);return r[t]=s,s}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function Nt(n){return typeof n=="object"&&n!==null&&Array.isArray(n.content)}function Ro(n){return typeof n=="object"&&n!==null&&typeof n.tokenType=="object"}function Ao(n){return Nt(n)&&typeof n.fullText=="string"}class se{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){const e=[],t=this.iterator();let r;do r=t.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,t){const r=this.map(i=>[e?e(i):i,t?t(i):i]);return new Map(r)}toString(){return this.join()}concat(e){const t=e[Symbol.iterator]();return new se(()=>({first:this.startFn(),firstDone:!1}),r=>{let i;if(!r.firstDone){do if(i=this.nextFn(r.first),!i.done)return i;while(!i.done);r.firstDone=!0}do if(i=t.next(),!i.done)return i;while(!i.done);return Ne})}join(e=","){const t=this.iterator();let r="",i,s=!1;do i=t.next(),i.done||(s&&(r+=e),r+=Au(i.value)),s=!0;while(!i.done);return r}indexOf(e,t=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=t&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;)e(i.value,r),i=t.next(),r++}map(e){return new se(this.startFn,t=>{const{done:r,value:i}=this.nextFn(t);return r?Ne:{done:!1,value:e(i)}})}filter(e){return new se(this.startFn,t=>{let r;do if(r=this.nextFn(t),!r.done&&e(r.value))return r;while(!r.done);return Ne})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){const r=this.iterator();let i=t,s=r.next();for(;!s.done;)i===void 0?i=s.value:i=e(i,s.value),s=r.next();return i}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,t,r);return s===void 0?i.value:t(s,i.value)}find(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;){if(e(i.value))return r;i=t.next(),r++}return-1}includes(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(e){return new se(()=>({this:this.startFn()}),t=>{do{if(t.iterator){const s=t.iterator.next();if(s.done)t.iterator=void 0;else return s}const{done:r,value:i}=this.nextFn(t.this);if(!r){const s=e(i);if(Fn(s))t.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(t.iterator);return Ne})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const t=e>1?this.flat(e-1):this;return new se(()=>({this:t.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:i,value:s}=t.nextFn(r.this);if(!i)if(Fn(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(r.iterator);return Ne})}head(){const t=this.iterator().next();if(!t.done)return t.value}tail(e=1){return new se(()=>{const t=this.startFn();for(let r=0;r({size:0,state:this.startFn()}),t=>(t.size++,t.size>e?Ne:this.nextFn(t.state)))}distinct(e){const t=new Set;return this.filter(r=>{const i=e?e(r):r;return t.has(i)?!1:(t.add(i),!0)})}exclude(e,t){const r=new Set;for(const i of e){const s=t?t(i):i;r.add(s)}return this.filter(i=>{const s=t?t(i):i;return!r.has(s)})}}function Au(n){return typeof n=="string"?n:typeof n=="undefined"?"undefined":typeof n.toString=="function"?n.toString():Object.prototype.toString.call(n)}function Fn(n){return!!n&&typeof n[Symbol.iterator]=="function"}const Eu=new se(()=>{},()=>Ne),Ne=Object.freeze({done:!0,value:void 0});function Z(...n){if(n.length===1){const e=n[0];if(e instanceof se)return e;if(Fn(e))return new se(()=>e[Symbol.iterator](),t=>t.next());if(typeof e.length=="number")return new se(()=>({index:0}),t=>t.index1?new se(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}if(e.array){if(e.arrIndex({iterators:r!=null&&r.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const a=i.iterators[i.iterators.length-1].next();if(a.done)i.iterators.pop();else return i.iterators.push(t(a.value)[Symbol.iterator]()),a}return Ne})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var Vr;(function(n){function e(s){return s.reduce((a,o)=>a+o,0)}n.sum=e;function t(s){return s.reduce((a,o)=>a*o,0)}n.product=t;function r(s){return s.reduce((a,o)=>Math.min(a,o))}n.min=r;function i(s){return s.reduce((a,o)=>Math.max(a,o))}n.max=i})(Vr||(Vr={}));function Wr(n){return new Gn(n,e=>Nt(e)?e.content:[],{includeRoot:!0})}function vu(n,e){for(;n.container;)if(n=n.container,n===e)return!0;return!1}function jr(n){return{start:{character:n.startColumn-1,line:n.startLine-1},end:{character:n.endColumn,line:n.endLine-1}}}function Un(n){if(!n)return;const{offset:e,end:t,range:r}=n;return{range:r,offset:e,end:t,length:t-e}}var et;(function(n){n[n.Before=0]="Before",n[n.After=1]="After",n[n.OverlapFront=2]="OverlapFront",n[n.OverlapBack=3]="OverlapBack",n[n.Inside=4]="Inside"})(et||(et={}));function ku(n,e){if(n.end.linee.end.line||n.start.line===e.end.line&&n.start.character>e.end.character)return et.After;const t=n.start.line>e.start.line||n.start.line===e.start.line&&n.start.character>=e.start.character,r=n.end.lineet.After}const Iu=/^[\w\p{L}]$/u;function xu(n,e){if(n){const t=Nu(n,!0);if(t&&cs(t,e))return t;if(Ao(n)){const r=n.content.findIndex(i=>!i.hidden);for(let i=r-1;i>=0;i--){const s=n.content[i];if(cs(s,e))return s}}}}function cs(n,e){return Ro(n)&&e.includes(n.tokenType.name)}function Nu(n,e=!0){for(;n.container;){const t=n.container;let r=t.content.indexOf(n);for(;r>0;){r--;const i=t.content[r];if(e||!i.hidden)return i}n=t}}class Eo extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}}function fr(n){throw new Error("Error! The input value was not handled.")}const Cr="AbstractRule",wr="AbstractType",us="Condition",Cu="TypeDefinition",ds="ValueLiteral",vo="AbstractElement";function wu(n){return D.isInstance(n,vo)}const _u="ArrayLiteral",Lu="ArrayType",ko="BooleanLiteral";function $u(n){return D.isInstance(n,ko)}const So="Conjunction";function Ou(n){return D.isInstance(n,So)}const Io="Disjunction";function bu(n){return D.isInstance(n,Io)}const Pu="Grammar",xo="InferredType";function No(n){return D.isInstance(n,xo)}const Co="Interface";function wo(n){return D.isInstance(n,Co)}const _o="Negation";function Mu(n){return D.isInstance(n,_o)}const Du="NumberLiteral",Fu="Parameter",Lo="ParameterReference";function Gu(n){return D.isInstance(n,Lo)}const $o="ParserRule";function we(n){return D.isInstance(n,$o)}const Uu="ReferenceType",Bu="ReturnType";function Vu(n){return D.isInstance(n,Bu)}const Oo="SimpleType";function Wu(n){return D.isInstance(n,Oo)}const ju="StringLiteral",Hr="TerminalRule";function yt(n){return D.isInstance(n,Hr)}const bo="Type";function Po(n){return D.isInstance(n,bo)}const Hu="UnionType",Mo="Action";function hr(n){return D.isInstance(n,Mo)}const Do="Alternatives";function Fo(n){return D.isInstance(n,Do)}const Go="Assignment";function dt(n){return D.isInstance(n,Go)}const Uo="CharacterRange";function Ku(n){return D.isInstance(n,Uo)}const Bo="CrossReference";function _i(n){return D.isInstance(n,Bo)}const Vo="EndOfFile";function zu(n){return D.isInstance(n,Vo)}const Wo="Group";function Li(n){return D.isInstance(n,Wo)}const jo="Keyword";function ft(n){return D.isInstance(n,jo)}const Ho="NegatedToken";function qu(n){return D.isInstance(n,Ho)}const Ko="RegexToken";function Yu(n){return D.isInstance(n,Ko)}const zo="RuleCall";function ht(n){return D.isInstance(n,zo)}const qo="TerminalAlternatives";function Xu(n){return D.isInstance(n,qo)}const Yo="TerminalGroup";function Ju(n){return D.isInstance(n,Yo)}const Xo="TerminalRuleCall";function Jo(n){return D.isInstance(n,Xo)}const Qo="UnorderedGroup";function Zo(n){return D.isInstance(n,Qo)}const el="UntilToken";function Qu(n){return D.isInstance(n,el)}const tl="Wildcard";function Zu(n){return D.isInstance(n,tl)}class nl extends To{getAllTypes(){return["AbstractElement","AbstractRule","AbstractType","Action","Alternatives","ArrayLiteral","ArrayType","Assignment","BooleanLiteral","CharacterRange","Condition","Conjunction","CrossReference","Disjunction","EndOfFile","Grammar","GrammarImport","Group","InferredType","Interface","Keyword","NamedArgument","NegatedToken","Negation","NumberLiteral","Parameter","ParameterReference","ParserRule","ReferenceType","RegexToken","ReturnType","RuleCall","SimpleType","StringLiteral","TerminalAlternatives","TerminalGroup","TerminalRule","TerminalRuleCall","Type","TypeAttribute","TypeDefinition","UnionType","UnorderedGroup","UntilToken","ValueLiteral","Wildcard"]}computeIsSubtype(e,t){switch(e){case Mo:case Do:case Go:case Uo:case Bo:case Vo:case Wo:case jo:case Ho:case Ko:case zo:case qo:case Yo:case Xo:case Qo:case el:case tl:return this.isSubtype(vo,t);case _u:case Du:case ju:return this.isSubtype(ds,t);case Lu:case Uu:case Oo:case Hu:return this.isSubtype(Cu,t);case ko:return this.isSubtype(us,t)||this.isSubtype(ds,t);case So:case Io:case _o:case Lo:return this.isSubtype(us,t);case xo:case Co:case bo:return this.isSubtype(wr,t);case $o:return this.isSubtype(Cr,t)||this.isSubtype(wr,t);case Hr:return this.isSubtype(Cr,t);default:return!1}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return wr;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return Cr;case"Grammar:usedGrammars":return Pu;case"NamedArgument:parameter":case"ParameterReference:parameter":return Fu;case"TerminalRuleCall:rule":return Hr;default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case"AbstractElement":return{name:"AbstractElement",properties:[{name:"cardinality"},{name:"lookahead"}]};case"ArrayLiteral":return{name:"ArrayLiteral",properties:[{name:"elements",defaultValue:[]}]};case"ArrayType":return{name:"ArrayType",properties:[{name:"elementType"}]};case"BooleanLiteral":return{name:"BooleanLiteral",properties:[{name:"true",defaultValue:!1}]};case"Conjunction":return{name:"Conjunction",properties:[{name:"left"},{name:"right"}]};case"Disjunction":return{name:"Disjunction",properties:[{name:"left"},{name:"right"}]};case"Grammar":return{name:"Grammar",properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case"GrammarImport":return{name:"GrammarImport",properties:[{name:"path"}]};case"InferredType":return{name:"InferredType",properties:[{name:"name"}]};case"Interface":return{name:"Interface",properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case"NamedArgument":return{name:"NamedArgument",properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case"Negation":return{name:"Negation",properties:[{name:"value"}]};case"NumberLiteral":return{name:"NumberLiteral",properties:[{name:"value"}]};case"Parameter":return{name:"Parameter",properties:[{name:"name"}]};case"ParameterReference":return{name:"ParameterReference",properties:[{name:"parameter"}]};case"ParserRule":return{name:"ParserRule",properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case"ReferenceType":return{name:"ReferenceType",properties:[{name:"referenceType"}]};case"ReturnType":return{name:"ReturnType",properties:[{name:"name"}]};case"SimpleType":return{name:"SimpleType",properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case"StringLiteral":return{name:"StringLiteral",properties:[{name:"value"}]};case"TerminalRule":return{name:"TerminalRule",properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case"Type":return{name:"Type",properties:[{name:"name"},{name:"type"}]};case"TypeAttribute":return{name:"TypeAttribute",properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case"UnionType":return{name:"UnionType",properties:[{name:"types",defaultValue:[]}]};case"Action":return{name:"Action",properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case"Alternatives":return{name:"Alternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"Assignment":return{name:"Assignment",properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case"CharacterRange":return{name:"CharacterRange",properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case"CrossReference":return{name:"CrossReference",properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case"EndOfFile":return{name:"EndOfFile",properties:[{name:"cardinality"},{name:"lookahead"}]};case"Group":return{name:"Group",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case"Keyword":return{name:"Keyword",properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case"NegatedToken":return{name:"NegatedToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"RegexToken":return{name:"RegexToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case"RuleCall":return{name:"RuleCall",properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"TerminalAlternatives":return{name:"TerminalAlternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalGroup":return{name:"TerminalGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalRuleCall":return{name:"TerminalRuleCall",properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"UnorderedGroup":return{name:"UnorderedGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"UntilToken":return{name:"UntilToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"Wildcard":return{name:"Wildcard",properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}}const D=new nl;function ed(n){for(const[e,t]of Object.entries(n))e.startsWith("$")||(Array.isArray(t)?t.forEach((r,i)=>{oe(r)&&(r.$container=n,r.$containerProperty=e,r.$containerIndex=i)}):oe(t)&&(t.$container=n,t.$containerProperty=e))}function pr(n,e){let t=n;for(;t;){if(e(t))return t;t=t.$container}}function Be(n){const t=td(n).$document;if(!t)throw new Error("AST node has no document.");return t}function td(n){for(;n.$container;)n=n.$container;return n}function $i(n,e){if(!n)throw new Error("Node must be an AstNode.");const t=e==null?void 0:e.range;return new se(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndex$i(t,e))}function vt(n,e){if(n){if(e!=null&&e.range&&!Kr(n,e.range))return new Gn(n,()=>[])}else throw new Error("Root node must be an AstNode.");return new Gn(n,t=>$i(t,e),{includeRoot:!0})}function Kr(n,e){var t;if(!e)return!0;const r=(t=n.$cstNode)===null||t===void 0?void 0:t.range;return r?Su(r,e):!1}function rl(n){return new se(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndexe in n?Oc(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Qe=(n,e,t)=>(bc(n,typeof e!="symbol"?e+"":e,t),t);var $=(n,e,t)=>new Promise((r,i)=>{var s=l=>{try{o(t.next(l))}catch(c){i(c)}},a=l=>{try{o(t.throw(l))}catch(c){i(c)}},o=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,a);o((t=t.apply(n,e)).next())});import{_ as Wt}from"./iframe-BNbdtpq9.js";import{bv as Pc,bw as Mc,aM as ao,bf as Dc,aQ as Fc,aN as ee,b6 as oo,ay as Gc,az as is,aJ as lo,b5 as Uc,b8 as co,b9 as uo,bk as ss,aB as gt,aC as F,aO as as,aI as Bc}from"./Using existing ones-DVOwGlbd.js";import{k as St,l as Ni,g as bt,m as fo,S as Vc,w as Wc,x as jc,y as Hc,c as ho,v as z,z as po,A as Kc,B as zc,C as qc,D as Yc,a as mo,d as C,i as qe,h as w,r as le,f as ve,E as Y}from"./_baseUniq-JfSCQjs8.js";import{i as cr,m as S,d as Xc,f as Ce,g as It,h as Ci,l as xt,e as Jc}from"./_basePickBy-Cka5hBJe.js";import{c as ne}from"./clone-Bp7QSEXO.js";var Qc=Object.prototype,Zc=Qc.hasOwnProperty,Ee=Pc(function(n,e){if(Mc(e)||ao(e)){Dc(e,St(e),n);return}for(var t in e)Zc.call(e,t)&&Fc(n,t,e[t])});function go(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++r=ru&&(s=Hc,a=!1,e=new Vc(e));e:for(;++i-1:!!i&&po(n,e,t)>-1}var fu=Math.max;function os(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=t==null?0:cr(t);return i<0&&(i=fu(r+i,0)),po(n,e,i)}var hu="[object RegExp]";function pu(n){return co(n)&&uo(n)==hu}var ls=ss&&ss.isRegExp,Ye=ls?oo(ls):pu,mu="Expected a function";function gu(n){if(typeof n!="function")throw new TypeError(mu);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function Me(n,e){if(n==null)return{};var t=fo(Kc(n),function(r){return[r]});return e=bt(e),Xc(n,t,function(r,i){return e(r,i[0])})}function dr(n,e){var t=ee(n)?zc:qc;return t(n,gu(bt(e)))}function yu(n,e){var t;return Ni(n,function(r,i,s){return t=e(r,i,s),!t}),!!t}function yo(n,e,t){var r=ee(n)?Yc:yu;return t&&lo(n,e,t)&&(e=void 0),r(n,bt(e))}function wi(n){return n&&n.length?mo(n):[]}function Tu(n,e){return n&&n.length?mo(n,bt(e)):[]}function oe(n){return typeof n=="object"&&n!==null&&typeof n.$type=="string"}function Ue(n){return typeof n=="object"&&n!==null&&typeof n.$refText=="string"}function Ru(n){return typeof n=="object"&&n!==null&&typeof n.name=="string"&&typeof n.type=="string"&&typeof n.path=="string"}function $n(n){return typeof n=="object"&&n!==null&&oe(n.container)&&Ue(n.reference)&&typeof n.message=="string"}class To{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return oe(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[t];if(i!==void 0)return i;{const s=this.computeIsSubtype(e,t);return r[t]=s,s}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function Nt(n){return typeof n=="object"&&n!==null&&Array.isArray(n.content)}function Ro(n){return typeof n=="object"&&n!==null&&typeof n.tokenType=="object"}function Ao(n){return Nt(n)&&typeof n.fullText=="string"}class se{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){const e=[],t=this.iterator();let r;do r=t.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,t){const r=this.map(i=>[e?e(i):i,t?t(i):i]);return new Map(r)}toString(){return this.join()}concat(e){const t=e[Symbol.iterator]();return new se(()=>({first:this.startFn(),firstDone:!1}),r=>{let i;if(!r.firstDone){do if(i=this.nextFn(r.first),!i.done)return i;while(!i.done);r.firstDone=!0}do if(i=t.next(),!i.done)return i;while(!i.done);return Ne})}join(e=","){const t=this.iterator();let r="",i,s=!1;do i=t.next(),i.done||(s&&(r+=e),r+=Au(i.value)),s=!0;while(!i.done);return r}indexOf(e,t=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=t&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;)e(i.value,r),i=t.next(),r++}map(e){return new se(this.startFn,t=>{const{done:r,value:i}=this.nextFn(t);return r?Ne:{done:!1,value:e(i)}})}filter(e){return new se(this.startFn,t=>{let r;do if(r=this.nextFn(t),!r.done&&e(r.value))return r;while(!r.done);return Ne})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){const r=this.iterator();let i=t,s=r.next();for(;!s.done;)i===void 0?i=s.value:i=e(i,s.value),s=r.next();return i}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,t,r);return s===void 0?i.value:t(s,i.value)}find(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;){if(e(i.value))return r;i=t.next(),r++}return-1}includes(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(e){return new se(()=>({this:this.startFn()}),t=>{do{if(t.iterator){const s=t.iterator.next();if(s.done)t.iterator=void 0;else return s}const{done:r,value:i}=this.nextFn(t.this);if(!r){const s=e(i);if(Fn(s))t.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(t.iterator);return Ne})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const t=e>1?this.flat(e-1):this;return new se(()=>({this:t.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:i,value:s}=t.nextFn(r.this);if(!i)if(Fn(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(r.iterator);return Ne})}head(){const t=this.iterator().next();if(!t.done)return t.value}tail(e=1){return new se(()=>{const t=this.startFn();for(let r=0;r({size:0,state:this.startFn()}),t=>(t.size++,t.size>e?Ne:this.nextFn(t.state)))}distinct(e){const t=new Set;return this.filter(r=>{const i=e?e(r):r;return t.has(i)?!1:(t.add(i),!0)})}exclude(e,t){const r=new Set;for(const i of e){const s=t?t(i):i;r.add(s)}return this.filter(i=>{const s=t?t(i):i;return!r.has(s)})}}function Au(n){return typeof n=="string"?n:typeof n=="undefined"?"undefined":typeof n.toString=="function"?n.toString():Object.prototype.toString.call(n)}function Fn(n){return!!n&&typeof n[Symbol.iterator]=="function"}const Eu=new se(()=>{},()=>Ne),Ne=Object.freeze({done:!0,value:void 0});function Z(...n){if(n.length===1){const e=n[0];if(e instanceof se)return e;if(Fn(e))return new se(()=>e[Symbol.iterator](),t=>t.next());if(typeof e.length=="number")return new se(()=>({index:0}),t=>t.index1?new se(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}if(e.array){if(e.arrIndex({iterators:r!=null&&r.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const a=i.iterators[i.iterators.length-1].next();if(a.done)i.iterators.pop();else return i.iterators.push(t(a.value)[Symbol.iterator]()),a}return Ne})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var Vr;(function(n){function e(s){return s.reduce((a,o)=>a+o,0)}n.sum=e;function t(s){return s.reduce((a,o)=>a*o,0)}n.product=t;function r(s){return s.reduce((a,o)=>Math.min(a,o))}n.min=r;function i(s){return s.reduce((a,o)=>Math.max(a,o))}n.max=i})(Vr||(Vr={}));function Wr(n){return new Gn(n,e=>Nt(e)?e.content:[],{includeRoot:!0})}function vu(n,e){for(;n.container;)if(n=n.container,n===e)return!0;return!1}function jr(n){return{start:{character:n.startColumn-1,line:n.startLine-1},end:{character:n.endColumn,line:n.endLine-1}}}function Un(n){if(!n)return;const{offset:e,end:t,range:r}=n;return{range:r,offset:e,end:t,length:t-e}}var et;(function(n){n[n.Before=0]="Before",n[n.After=1]="After",n[n.OverlapFront=2]="OverlapFront",n[n.OverlapBack=3]="OverlapBack",n[n.Inside=4]="Inside"})(et||(et={}));function ku(n,e){if(n.end.linee.end.line||n.start.line===e.end.line&&n.start.character>e.end.character)return et.After;const t=n.start.line>e.start.line||n.start.line===e.start.line&&n.start.character>=e.start.character,r=n.end.lineet.After}const Iu=/^[\w\p{L}]$/u;function xu(n,e){if(n){const t=Nu(n,!0);if(t&&cs(t,e))return t;if(Ao(n)){const r=n.content.findIndex(i=>!i.hidden);for(let i=r-1;i>=0;i--){const s=n.content[i];if(cs(s,e))return s}}}}function cs(n,e){return Ro(n)&&e.includes(n.tokenType.name)}function Nu(n,e=!0){for(;n.container;){const t=n.container;let r=t.content.indexOf(n);for(;r>0;){r--;const i=t.content[r];if(e||!i.hidden)return i}n=t}}class Eo extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}}function fr(n){throw new Error("Error! The input value was not handled.")}const Cr="AbstractRule",wr="AbstractType",us="Condition",Cu="TypeDefinition",ds="ValueLiteral",vo="AbstractElement";function wu(n){return D.isInstance(n,vo)}const _u="ArrayLiteral",Lu="ArrayType",ko="BooleanLiteral";function $u(n){return D.isInstance(n,ko)}const So="Conjunction";function Ou(n){return D.isInstance(n,So)}const Io="Disjunction";function bu(n){return D.isInstance(n,Io)}const Pu="Grammar",xo="InferredType";function No(n){return D.isInstance(n,xo)}const Co="Interface";function wo(n){return D.isInstance(n,Co)}const _o="Negation";function Mu(n){return D.isInstance(n,_o)}const Du="NumberLiteral",Fu="Parameter",Lo="ParameterReference";function Gu(n){return D.isInstance(n,Lo)}const $o="ParserRule";function we(n){return D.isInstance(n,$o)}const Uu="ReferenceType",Bu="ReturnType";function Vu(n){return D.isInstance(n,Bu)}const Oo="SimpleType";function Wu(n){return D.isInstance(n,Oo)}const ju="StringLiteral",Hr="TerminalRule";function yt(n){return D.isInstance(n,Hr)}const bo="Type";function Po(n){return D.isInstance(n,bo)}const Hu="UnionType",Mo="Action";function hr(n){return D.isInstance(n,Mo)}const Do="Alternatives";function Fo(n){return D.isInstance(n,Do)}const Go="Assignment";function dt(n){return D.isInstance(n,Go)}const Uo="CharacterRange";function Ku(n){return D.isInstance(n,Uo)}const Bo="CrossReference";function _i(n){return D.isInstance(n,Bo)}const Vo="EndOfFile";function zu(n){return D.isInstance(n,Vo)}const Wo="Group";function Li(n){return D.isInstance(n,Wo)}const jo="Keyword";function ft(n){return D.isInstance(n,jo)}const Ho="NegatedToken";function qu(n){return D.isInstance(n,Ho)}const Ko="RegexToken";function Yu(n){return D.isInstance(n,Ko)}const zo="RuleCall";function ht(n){return D.isInstance(n,zo)}const qo="TerminalAlternatives";function Xu(n){return D.isInstance(n,qo)}const Yo="TerminalGroup";function Ju(n){return D.isInstance(n,Yo)}const Xo="TerminalRuleCall";function Jo(n){return D.isInstance(n,Xo)}const Qo="UnorderedGroup";function Zo(n){return D.isInstance(n,Qo)}const el="UntilToken";function Qu(n){return D.isInstance(n,el)}const tl="Wildcard";function Zu(n){return D.isInstance(n,tl)}class nl extends To{getAllTypes(){return["AbstractElement","AbstractRule","AbstractType","Action","Alternatives","ArrayLiteral","ArrayType","Assignment","BooleanLiteral","CharacterRange","Condition","Conjunction","CrossReference","Disjunction","EndOfFile","Grammar","GrammarImport","Group","InferredType","Interface","Keyword","NamedArgument","NegatedToken","Negation","NumberLiteral","Parameter","ParameterReference","ParserRule","ReferenceType","RegexToken","ReturnType","RuleCall","SimpleType","StringLiteral","TerminalAlternatives","TerminalGroup","TerminalRule","TerminalRuleCall","Type","TypeAttribute","TypeDefinition","UnionType","UnorderedGroup","UntilToken","ValueLiteral","Wildcard"]}computeIsSubtype(e,t){switch(e){case Mo:case Do:case Go:case Uo:case Bo:case Vo:case Wo:case jo:case Ho:case Ko:case zo:case qo:case Yo:case Xo:case Qo:case el:case tl:return this.isSubtype(vo,t);case _u:case Du:case ju:return this.isSubtype(ds,t);case Lu:case Uu:case Oo:case Hu:return this.isSubtype(Cu,t);case ko:return this.isSubtype(us,t)||this.isSubtype(ds,t);case So:case Io:case _o:case Lo:return this.isSubtype(us,t);case xo:case Co:case bo:return this.isSubtype(wr,t);case $o:return this.isSubtype(Cr,t)||this.isSubtype(wr,t);case Hr:return this.isSubtype(Cr,t);default:return!1}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return wr;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return Cr;case"Grammar:usedGrammars":return Pu;case"NamedArgument:parameter":case"ParameterReference:parameter":return Fu;case"TerminalRuleCall:rule":return Hr;default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case"AbstractElement":return{name:"AbstractElement",properties:[{name:"cardinality"},{name:"lookahead"}]};case"ArrayLiteral":return{name:"ArrayLiteral",properties:[{name:"elements",defaultValue:[]}]};case"ArrayType":return{name:"ArrayType",properties:[{name:"elementType"}]};case"BooleanLiteral":return{name:"BooleanLiteral",properties:[{name:"true",defaultValue:!1}]};case"Conjunction":return{name:"Conjunction",properties:[{name:"left"},{name:"right"}]};case"Disjunction":return{name:"Disjunction",properties:[{name:"left"},{name:"right"}]};case"Grammar":return{name:"Grammar",properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case"GrammarImport":return{name:"GrammarImport",properties:[{name:"path"}]};case"InferredType":return{name:"InferredType",properties:[{name:"name"}]};case"Interface":return{name:"Interface",properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case"NamedArgument":return{name:"NamedArgument",properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case"Negation":return{name:"Negation",properties:[{name:"value"}]};case"NumberLiteral":return{name:"NumberLiteral",properties:[{name:"value"}]};case"Parameter":return{name:"Parameter",properties:[{name:"name"}]};case"ParameterReference":return{name:"ParameterReference",properties:[{name:"parameter"}]};case"ParserRule":return{name:"ParserRule",properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case"ReferenceType":return{name:"ReferenceType",properties:[{name:"referenceType"}]};case"ReturnType":return{name:"ReturnType",properties:[{name:"name"}]};case"SimpleType":return{name:"SimpleType",properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case"StringLiteral":return{name:"StringLiteral",properties:[{name:"value"}]};case"TerminalRule":return{name:"TerminalRule",properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case"Type":return{name:"Type",properties:[{name:"name"},{name:"type"}]};case"TypeAttribute":return{name:"TypeAttribute",properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case"UnionType":return{name:"UnionType",properties:[{name:"types",defaultValue:[]}]};case"Action":return{name:"Action",properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case"Alternatives":return{name:"Alternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"Assignment":return{name:"Assignment",properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case"CharacterRange":return{name:"CharacterRange",properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case"CrossReference":return{name:"CrossReference",properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case"EndOfFile":return{name:"EndOfFile",properties:[{name:"cardinality"},{name:"lookahead"}]};case"Group":return{name:"Group",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case"Keyword":return{name:"Keyword",properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case"NegatedToken":return{name:"NegatedToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"RegexToken":return{name:"RegexToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case"RuleCall":return{name:"RuleCall",properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"TerminalAlternatives":return{name:"TerminalAlternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalGroup":return{name:"TerminalGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalRuleCall":return{name:"TerminalRuleCall",properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"UnorderedGroup":return{name:"UnorderedGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"UntilToken":return{name:"UntilToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"Wildcard":return{name:"Wildcard",properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}}const D=new nl;function ed(n){for(const[e,t]of Object.entries(n))e.startsWith("$")||(Array.isArray(t)?t.forEach((r,i)=>{oe(r)&&(r.$container=n,r.$containerProperty=e,r.$containerIndex=i)}):oe(t)&&(t.$container=n,t.$containerProperty=e))}function pr(n,e){let t=n;for(;t;){if(e(t))return t;t=t.$container}}function Be(n){const t=td(n).$document;if(!t)throw new Error("AST node has no document.");return t}function td(n){for(;n.$container;)n=n.$container;return n}function $i(n,e){if(!n)throw new Error("Node must be an AstNode.");const t=e==null?void 0:e.range;return new se(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndex$i(t,e))}function vt(n,e){if(n){if(e!=null&&e.range&&!Kr(n,e.range))return new Gn(n,()=>[])}else throw new Error("Root node must be an AstNode.");return new Gn(n,t=>$i(t,e),{includeRoot:!0})}function Kr(n,e){var t;if(!e)return!0;const r=(t=n.$cstNode)===null||t===void 0?void 0:t.range;return r?Su(r,e):!1}function rl(n){return new se(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndexthis.documentationLinkRenderer(e,i,s),renderTag:i=>this.documentationTagRenderer(e,i)})}documentationLinkRenderer(e,t,r){var i;const s=(i=this.findNameInPrecomputedScopes(e,t))!==null&&i!==void 0?i:this.findNameInGlobalScope(e,t);if(s&&s.nameSegment){const a=s.nameSegment.range.start.line+1,o=s.nameSegment.range.start.character+1,l=s.documentUri.with({fragment:`L${a},${o}`});return`[${r}](${l.toString()})`}else return}documentationTagRenderer(e,t){}findNameInPrecomputedScopes(e,t){const i=Be(e).precomputedScopes;if(!i)return;let s=e;do{const o=i.get(s).find(l=>l.name===t);if(o)return o;s=s.$container}while(s)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(i=>i.name===t)}}class Bm{constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){var t;return dm(e)?e.$comment:(t=xu(e.$cstNode,this.grammarConfig().multilineCommentRules))===null||t===void 0?void 0:t.text}}class Vm{constructor(e){this.syncParser=e.parser.LangiumParser}parse(e){return Promise.resolve(this.syncParser.parse(e))}}class Wm{constructor(){this.previousTokenSource=new Ei,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();const t=new Ei;return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,r){const i=new Xi,s={action:t,deferred:i,cancellationToken:r!=null?r:J.None};return e.push(s),this.performNextOperation(),i.promise}performNextOperation(){return $(this,null,function*(){if(!this.done)return;const e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,yield Promise.all(e.map(s=>$(this,[s],function*({action:t,deferred:r,cancellationToken:i}){try{const a=yield Promise.resolve().then(()=>t(i));r.resolve(a)}catch(a){Yi(a)?r.resolve(void 0):r.reject(a)}}))),this.done=!0,this.performNextOperation()})}cancelWrite(){this.previousTokenSource.cancel()}}class jm{constructor(e){this.grammarElementIdMap=new qa,this.tokenTypeIdMap=new qa,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors.map(t=>Object.assign({},t)),parserErrors:e.parserErrors.map(t=>Object.assign({},t)),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}createDehyrationContext(e){const t=new Map,r=new Map;for(const i of vt(e))t.set(i,{});if(e.$cstNode)for(const i of Wr(e.$cstNode))r.set(i,{});return{astNodes:t,cstNodes:r}}dehydrateAstNode(e,t){const r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(r.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for(const[i,s]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(s)){const a=[];r[i]=a;for(const o of s)oe(o)?a.push(this.dehydrateAstNode(o,t)):Ue(o)?a.push(this.dehydrateReference(o,t)):a.push(o)}else oe(s)?r[i]=this.dehydrateAstNode(s,t):Ue(s)?r[i]=this.dehydrateReference(s,t):s!==void 0&&(r[i]=s);return r}dehydrateReference(e,t){const r={};return r.$refText=e.$refText,e.$refNode&&(r.$refNode=t.cstNodes.get(e.$refNode)),r}dehydrateCstNode(e,t){const r=t.cstNodes.get(e);return Ao(e)?r.fullText=e.fullText:r.grammarSource=this.getGrammarElementId(e.grammarSource),r.hidden=e.hidden,r.astNode=t.astNodes.get(e.astNode),Nt(e)?r.content=e.content.map(i=>this.dehydrateCstNode(i,t)):Ro(e)&&(r.tokenType=e.tokenType.name,r.offset=e.offset,r.length=e.length,r.startLine=e.range.start.line,r.startColumn=e.range.start.character,r.endLine=e.range.end.line,r.endColumn=e.range.end.character),r}hydrate(e){const t=e.value,r=this.createHydrationContext(t);return"$cstNode"in t&&this.hydrateCstNode(t.$cstNode,r),{lexerErrors:e.lexerErrors,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,r)}}createHydrationContext(e){const t=new Map,r=new Map;for(const s of vt(e))t.set(s,{});let i;if(e.$cstNode)for(const s of Wr(e.$cstNode)){let a;"fullText"in s?(a=new ic(s.fullText),i=a):"content"in s?a=new zi:"tokenType"in s&&(a=this.hydrateCstLeafNode(s)),a&&(r.set(s,a),a.root=i)}return{astNodes:t,cstNodes:r}}hydrateAstNode(e,t){const r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode&&(r.$cstNode=t.cstNodes.get(e.$cstNode));for(const[i,s]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(s)){const a=[];r[i]=a;for(const o of s)oe(o)?a.push(this.setParent(this.hydrateAstNode(o,t),r)):Ue(o)?a.push(this.hydrateReference(o,r,i,t)):a.push(o)}else oe(s)?r[i]=this.setParent(this.hydrateAstNode(s,t),r):Ue(s)?r[i]=this.hydrateReference(s,r,i,t):s!==void 0&&(r[i]=s);return r}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,r,i){return this.linker.buildReference(t,r,i.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,r=0){const i=t.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(i.grammarSource=this.getGrammarElement(e.grammarSource)),i.astNode=t.astNodes.get(e.astNode),Nt(i))for(const s of e.content){const a=this.hydrateCstNode(s,t,r++);i.content.push(a)}return i}hydrateCstLeafNode(e){const t=this.getTokenType(e.tokenType),r=e.offset,i=e.length,s=e.startLine,a=e.startColumn,o=e.endLine,l=e.endColumn,c=e.hidden;return new gi(r,i,{start:{line:s,character:a},end:{line:o,character:l}},t,c)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap();const t=this.grammarElementIdMap.getKey(e);if(t)return t;throw new Error("Invalid grammar element id: "+e)}createGrammarElementIdMap(){let e=0;for(const t of vt(this.grammar))wu(t)&&this.grammarElementIdMap.set(t,e++)}}function Gt(n){return{documentation:{CommentProvider:e=>new Bm(e),DocumentationProvider:e=>new Um(e)},parser:{AsyncParser:e=>new Vm(e),GrammarConfig:e=>Cd(e),LangiumParser:e=>Dp(e),CompletionParser:e=>Mp(e),ValueConverter:()=>new hc,TokenBuilder:()=>new fc,Lexer:e=>new Sm(e),ParserErrorMessageProvider:()=>new oc},workspace:{AstNodeLocator:()=>new Rm,AstNodeDescriptionProvider:e=>new ym(e),ReferenceDescriptionProvider:e=>new Tm(e)},references:{Linker:e=>new tm(e),NameProvider:()=>new rm,ScopeProvider:e=>new um(e),ScopeComputation:e=>new sm(e),References:e=>new im(e)},serializer:{Hydrator:e=>new jm(e),JsonSerializer:e=>new fm(e)},validation:{DocumentValidator:e=>new mm(e),ValidationRegistry:e=>new pm(e)},shared:()=>n.shared}}function Ut(n){return{ServiceRegistry:()=>new hm,workspace:{LangiumDocuments:e=>new em(e),LangiumDocumentFactory:e=>new Zp(e),DocumentBuilder:e=>new Em(e),IndexManager:e=>new vm(e),WorkspaceManager:e=>new km(e),FileSystemProvider:e=>n.fileSystemProvider(e),WorkspaceLock:()=>new Wm,ConfigurationProvider:e=>new Am(e)}}}var no;(function(n){n.merge=(e,t)=>lr(lr({},e),t)})(no||(no={}));function _e(n,e,t,r,i,s,a,o,l){const c=[n,e,t,r,i,s,a,o,l].reduce(lr,{});return xc(c)}const ro=Symbol("isProxy");function xc(n,e){const t=new Proxy({},{deleteProperty:()=>!1,get:(r,i)=>so(r,i,n,e||t),getOwnPropertyDescriptor:(r,i)=>(so(r,i,n,e||t),Object.getOwnPropertyDescriptor(r,i)),has:(r,i)=>i in n,ownKeys:()=>[...Reflect.ownKeys(n),ro]});return t[ro]=!0,t}const io=Symbol();function so(n,e,t,r){if(e in n){if(n[e]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable.",{cause:n[e]});if(n[e]===io)throw new Error('Cycle detected. Please make "'+String(e)+'" lazy. See https://langium.org/docs/configuration-services/#resolving-cyclic-dependencies');return n[e]}else if(e in t){const i=t[e];n[e]=io;try{n[e]=typeof i=="function"?i(r):xc(i,r)}catch(s){throw n[e]=s instanceof Error?s:void 0,s}return n[e]}else return}function lr(n,e){if(e){for(const[t,r]of Object.entries(e))if(r!==void 0){const i=n[t];i!==null&&r!==null&&typeof i=="object"&&typeof r=="object"?n[t]=lr(i,r):n[t]=r}}return n}class Hm{readFile(){throw new Error("No file system is available.")}readDirectory(){return $(this,null,function*(){return[]})}}const Bt={fileSystemProvider:()=>new Hm},Km={Grammar:()=>{},LanguageMetaData:()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"})},zm={AstReflection:()=>new nl};function qm(){const n=_e(Ut(Bt),zm),e=_e(Gt({shared:n}),Km);return n.ServiceRegistry.register(e),e}function En(n){var e;const t=qm(),r=t.serializer.JsonSerializer.deserialize(n);return t.shared.workspace.LangiumDocumentFactory.fromModel(r,Ot.parse(`memory://${(e=r.name)!==null&&e!==void 0?e:"grammar"}.langium`)),r}var Ym=Object.defineProperty,x=(n,e)=>Ym(n,"name",{value:e,configurable:!0}),Xm="Statement",Jm="Architecture";function Qm(n){return De.isInstance(n,Jm)}x(Qm,"isArchitecture");var Nc="Branch";function Zm(n){return De.isInstance(n,Nc)}x(Zm,"isBranch");var eg="Checkout",tg="CherryPicking",Cc="Commit";function ng(n){return De.isInstance(n,Cc)}x(ng,"isCommit");var rg="Common";function ig(n){return De.isInstance(n,rg)}x(ig,"isCommon");var wc="GitGraph";function sg(n){return De.isInstance(n,wc)}x(sg,"isGitGraph");var ag="Info";function og(n){return De.isInstance(n,ag)}x(og,"isInfo");var _c="Merge";function lg(n){return De.isInstance(n,_c)}x(lg,"isMerge");var cg="Packet";function ug(n){return De.isInstance(n,cg)}x(ug,"isPacket");var dg="PacketBlock";function fg(n){return De.isInstance(n,dg)}x(fg,"isPacketBlock");var hg="Pie";function pg(n){return De.isInstance(n,hg)}x(pg,"isPie");var mg="PieSection";function gg(n){return De.isInstance(n,mg)}x(gg,"isPieSection");var yg="Direction",en,Lc=(en=class extends To{getAllTypes(){return["Architecture","Branch","Checkout","CherryPicking","Commit","Common","Direction","Edge","GitGraph","Group","Info","Junction","Merge","Packet","PacketBlock","Pie","PieSection","Service","Statement"]}computeIsSubtype(e,t){switch(e){case Nc:case eg:case tg:case Cc:case _c:return this.isSubtype(Xm,t);case yg:return this.isSubtype(wc,t);default:return!1}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case"Architecture":return{name:"Architecture",properties:[{name:"accDescr"},{name:"accTitle"},{name:"edges",defaultValue:[]},{name:"groups",defaultValue:[]},{name:"junctions",defaultValue:[]},{name:"services",defaultValue:[]},{name:"title"}]};case"Branch":return{name:"Branch",properties:[{name:"name"},{name:"order"}]};case"Checkout":return{name:"Checkout",properties:[{name:"branch"}]};case"CherryPicking":return{name:"CherryPicking",properties:[{name:"id"},{name:"parent"},{name:"tags",defaultValue:[]}]};case"Commit":return{name:"Commit",properties:[{name:"id"},{name:"message"},{name:"tags",defaultValue:[]},{name:"type"}]};case"Common":return{name:"Common",properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case"Edge":return{name:"Edge",properties:[{name:"lhsDir"},{name:"lhsGroup",defaultValue:!1},{name:"lhsId"},{name:"lhsInto",defaultValue:!1},{name:"rhsDir"},{name:"rhsGroup",defaultValue:!1},{name:"rhsId"},{name:"rhsInto",defaultValue:!1},{name:"title"}]};case"GitGraph":return{name:"GitGraph",properties:[{name:"accDescr"},{name:"accTitle"},{name:"statements",defaultValue:[]},{name:"title"}]};case"Group":return{name:"Group",properties:[{name:"icon"},{name:"id"},{name:"in"},{name:"title"}]};case"Info":return{name:"Info",properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case"Junction":return{name:"Junction",properties:[{name:"id"},{name:"in"}]};case"Merge":return{name:"Merge",properties:[{name:"branch"},{name:"id"},{name:"tags",defaultValue:[]},{name:"type"}]};case"Packet":return{name:"Packet",properties:[{name:"accDescr"},{name:"accTitle"},{name:"blocks",defaultValue:[]},{name:"title"}]};case"PacketBlock":return{name:"PacketBlock",properties:[{name:"end"},{name:"label"},{name:"start"}]};case"Pie":return{name:"Pie",properties:[{name:"accDescr"},{name:"accTitle"},{name:"sections",defaultValue:[]},{name:"showData",defaultValue:!1},{name:"title"}]};case"PieSection":return{name:"PieSection",properties:[{name:"label"},{name:"value"}]};case"Service":return{name:"Service",properties:[{name:"icon"},{name:"iconText"},{name:"id"},{name:"in"},{name:"title"}]};case"Direction":return{name:"Direction",properties:[{name:"accDescr"},{name:"accTitle"},{name:"dir"},{name:"statements",defaultValue:[]},{name:"title"}]};default:return{name:e,properties:[]}}}},x(en,"MermaidAstReflection"),en),De=new Lc,Nn,Tg=x(()=>Nn!=null?Nn:Nn=En('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'),"InfoGrammar"),Cn,Rg=x(()=>Cn!=null?Cn:Cn=En(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`),"PacketGrammar"),wn,Ag=x(()=>wn!=null?wn:wn=En('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'),"PieGrammar"),_n,Eg=x(()=>_n!=null?_n:_n=En('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'),"ArchitectureGrammar"),Ln,vg=x(()=>Ln!=null?Ln:Ln=En(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`),"GitGraphGrammar"),kg={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},Sg={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},Ig={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},xg={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},Ng={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},vn={AstReflection:x(()=>new Lc,"AstReflection")},Cg={Grammar:x(()=>Tg(),"Grammar"),LanguageMetaData:x(()=>kg,"LanguageMetaData"),parser:{}},wg={Grammar:x(()=>Rg(),"Grammar"),LanguageMetaData:x(()=>Sg,"LanguageMetaData"),parser:{}},_g={Grammar:x(()=>Ag(),"Grammar"),LanguageMetaData:x(()=>Ig,"LanguageMetaData"),parser:{}},Lg={Grammar:x(()=>Eg(),"Grammar"),LanguageMetaData:x(()=>xg,"LanguageMetaData"),parser:{}},$g={Grammar:x(()=>vg(),"Grammar"),LanguageMetaData:x(()=>Ng,"LanguageMetaData"),parser:{}},Og=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,bg=/accTitle[\t ]*:([^\n\r]*)/,Pg=/title([\t ][^\n\r]*|)/,Mg={ACC_DESCR:Og,ACC_TITLE:bg,TITLE:Pg},tn,Zi=(tn=class extends hc{runConverter(e,t,r){let i=this.runCommonConverter(e,t,r);return i===void 0&&(i=this.runCustomConverter(e,t,r)),i===void 0?super.runConverter(e,t,r):i}runCommonConverter(e,t,r){const i=Mg[e.name];if(i===void 0)return;const s=i.exec(t);if(s!==null){if(s[1]!==void 0)return s[1].trim().replace(/[\t ]{2,}/gm," ");if(s[2]!==void 0)return s[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,` -`)}}},x(tn,"AbstractMermaidValueConverter"),tn),nn,es=(nn=class extends Zi{runCustomConverter(e,t,r){}},x(nn,"CommonValueConverter"),nn),rn,Vt=(rn=class extends fc{constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,r){const i=super.buildKeywordTokens(e,t,r);return i.forEach(s=>{this.keywords.has(s.name)&&s.PATTERN!==void 0&&(s.PATTERN=new RegExp(s.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),i}},x(rn,"AbstractMermaidTokenBuilder"),rn),sn;sn=class extends Vt{},x(sn,"CommonTokenBuilder");var an,Dg=(an=class extends Vt{constructor(){super(["gitGraph"])}},x(an,"GitGraphTokenBuilder"),an),Fg={parser:{TokenBuilder:x(()=>new Dg,"TokenBuilder"),ValueConverter:x(()=>new es,"ValueConverter")}};function Gg(n=Bt){const e=_e(Ut(n),vn),t=_e(Gt({shared:e}),$g,Fg);return e.ServiceRegistry.register(t),{shared:e,GitGraph:t}}x(Gg,"createGitGraphServices");var on,Ug=(on=class extends Vt{constructor(){super(["info","showInfo"])}},x(on,"InfoTokenBuilder"),on),Bg={parser:{TokenBuilder:x(()=>new Ug,"TokenBuilder"),ValueConverter:x(()=>new es,"ValueConverter")}};function Vg(n=Bt){const e=_e(Ut(n),vn),t=_e(Gt({shared:e}),Cg,Bg);return e.ServiceRegistry.register(t),{shared:e,Info:t}}x(Vg,"createInfoServices");var ln,Wg=(ln=class extends Vt{constructor(){super(["packet-beta"])}},x(ln,"PacketTokenBuilder"),ln),jg={parser:{TokenBuilder:x(()=>new Wg,"TokenBuilder"),ValueConverter:x(()=>new es,"ValueConverter")}};function Hg(n=Bt){const e=_e(Ut(n),vn),t=_e(Gt({shared:e}),wg,jg);return e.ServiceRegistry.register(t),{shared:e,Packet:t}}x(Hg,"createPacketServices");var cn,Kg=(cn=class extends Vt{constructor(){super(["pie","showData"])}},x(cn,"PieTokenBuilder"),cn),un,zg=(un=class extends Zi{runCustomConverter(e,t,r){if(e.name==="PIE_SECTION_LABEL")return t.replace(/"/g,"").trim()}},x(un,"PieValueConverter"),un),qg={parser:{TokenBuilder:x(()=>new Kg,"TokenBuilder"),ValueConverter:x(()=>new zg,"ValueConverter")}};function Yg(n=Bt){const e=_e(Ut(n),vn),t=_e(Gt({shared:e}),_g,qg);return e.ServiceRegistry.register(t),{shared:e,Pie:t}}x(Yg,"createPieServices");var dn,Xg=(dn=class extends Vt{constructor(){super(["architecture"])}},x(dn,"ArchitectureTokenBuilder"),dn),fn,Jg=(fn=class extends Zi{runCustomConverter(e,t,r){if(e.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();if(e.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");if(e.name==="ARCH_TITLE")return t.replace(/[[\]]/g,"").trim()}},x(fn,"ArchitectureValueConverter"),fn),Qg={parser:{TokenBuilder:x(()=>new Xg,"TokenBuilder"),ValueConverter:x(()=>new Jg,"ValueConverter")}};function Zg(n=Bt){const e=_e(Ut(n),vn),t=_e(Gt({shared:e}),Lg,Qg);return e.ServiceRegistry.register(t),{shared:e,Architecture:t}}x(Zg,"createArchitectureServices");var ct={},ey={info:x(()=>$(void 0,null,function*(){const{createInfoServices:n}=yield Wt(()=>import("./info-46DW6VJ7-D6cvRm3F.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=n().Info.parser.LangiumParser;ct.info=e}),"info"),packet:x(()=>$(void 0,null,function*(){const{createPacketServices:n}=yield Wt(()=>import("./packet-W2GHVCYJ-CH651zQ2.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=n().Packet.parser.LangiumParser;ct.packet=e}),"packet"),pie:x(()=>$(void 0,null,function*(){const{createPieServices:n}=yield Wt(()=>import("./pie-BEWT4RHE-chtKKmyw.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=n().Pie.parser.LangiumParser;ct.pie=e}),"pie"),architecture:x(()=>$(void 0,null,function*(){const{createArchitectureServices:n}=yield Wt(()=>import("./architecture-I3QFYML2-Cr7VjhJ7.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=n().Architecture.parser.LangiumParser;ct.architecture=e}),"architecture"),gitGraph:x(()=>$(void 0,null,function*(){const{createGitGraphServices:n}=yield Wt(()=>import("./gitGraph-YCYPL57B-BsO982K2.js"),__vite__mapDeps([15,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=n().GitGraph.parser.LangiumParser;ct.gitGraph=e}),"gitGraph")};function ty(n,e){return $(this,null,function*(){const t=ey[n];if(!t)throw new Error(`Unknown diagram type: ${n}`);ct[n]||(yield t());const i=ct[n].parse(e);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new ny(i);return i.value})}x(ty,"parse");var hn,ny=(hn=class extends Error{constructor(e){const t=e.lexerErrors.map(i=>i.message).join(` +`)}}},x(tn,"AbstractMermaidValueConverter"),tn),nn,es=(nn=class extends Zi{runCustomConverter(e,t,r){}},x(nn,"CommonValueConverter"),nn),rn,Vt=(rn=class extends fc{constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,r){const i=super.buildKeywordTokens(e,t,r);return i.forEach(s=>{this.keywords.has(s.name)&&s.PATTERN!==void 0&&(s.PATTERN=new RegExp(s.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),i}},x(rn,"AbstractMermaidTokenBuilder"),rn),sn;sn=class extends Vt{},x(sn,"CommonTokenBuilder");var an,Dg=(an=class extends Vt{constructor(){super(["gitGraph"])}},x(an,"GitGraphTokenBuilder"),an),Fg={parser:{TokenBuilder:x(()=>new Dg,"TokenBuilder"),ValueConverter:x(()=>new es,"ValueConverter")}};function Gg(n=Bt){const e=_e(Ut(n),vn),t=_e(Gt({shared:e}),$g,Fg);return e.ServiceRegistry.register(t),{shared:e,GitGraph:t}}x(Gg,"createGitGraphServices");var on,Ug=(on=class extends Vt{constructor(){super(["info","showInfo"])}},x(on,"InfoTokenBuilder"),on),Bg={parser:{TokenBuilder:x(()=>new Ug,"TokenBuilder"),ValueConverter:x(()=>new es,"ValueConverter")}};function Vg(n=Bt){const e=_e(Ut(n),vn),t=_e(Gt({shared:e}),Cg,Bg);return e.ServiceRegistry.register(t),{shared:e,Info:t}}x(Vg,"createInfoServices");var ln,Wg=(ln=class extends Vt{constructor(){super(["packet-beta"])}},x(ln,"PacketTokenBuilder"),ln),jg={parser:{TokenBuilder:x(()=>new Wg,"TokenBuilder"),ValueConverter:x(()=>new es,"ValueConverter")}};function Hg(n=Bt){const e=_e(Ut(n),vn),t=_e(Gt({shared:e}),wg,jg);return e.ServiceRegistry.register(t),{shared:e,Packet:t}}x(Hg,"createPacketServices");var cn,Kg=(cn=class extends Vt{constructor(){super(["pie","showData"])}},x(cn,"PieTokenBuilder"),cn),un,zg=(un=class extends Zi{runCustomConverter(e,t,r){if(e.name==="PIE_SECTION_LABEL")return t.replace(/"/g,"").trim()}},x(un,"PieValueConverter"),un),qg={parser:{TokenBuilder:x(()=>new Kg,"TokenBuilder"),ValueConverter:x(()=>new zg,"ValueConverter")}};function Yg(n=Bt){const e=_e(Ut(n),vn),t=_e(Gt({shared:e}),_g,qg);return e.ServiceRegistry.register(t),{shared:e,Pie:t}}x(Yg,"createPieServices");var dn,Xg=(dn=class extends Vt{constructor(){super(["architecture"])}},x(dn,"ArchitectureTokenBuilder"),dn),fn,Jg=(fn=class extends Zi{runCustomConverter(e,t,r){if(e.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();if(e.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");if(e.name==="ARCH_TITLE")return t.replace(/[[\]]/g,"").trim()}},x(fn,"ArchitectureValueConverter"),fn),Qg={parser:{TokenBuilder:x(()=>new Xg,"TokenBuilder"),ValueConverter:x(()=>new Jg,"ValueConverter")}};function Zg(n=Bt){const e=_e(Ut(n),vn),t=_e(Gt({shared:e}),Lg,Qg);return e.ServiceRegistry.register(t),{shared:e,Architecture:t}}x(Zg,"createArchitectureServices");var ct={},ey={info:x(()=>$(void 0,null,function*(){const{createInfoServices:n}=yield Wt(()=>import("./info-46DW6VJ7-BkVm7qR0.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=n().Info.parser.LangiumParser;ct.info=e}),"info"),packet:x(()=>$(void 0,null,function*(){const{createPacketServices:n}=yield Wt(()=>import("./packet-W2GHVCYJ-CsCAhKMv.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=n().Packet.parser.LangiumParser;ct.packet=e}),"packet"),pie:x(()=>$(void 0,null,function*(){const{createPieServices:n}=yield Wt(()=>import("./pie-BEWT4RHE-DrvWmk3I.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=n().Pie.parser.LangiumParser;ct.pie=e}),"pie"),architecture:x(()=>$(void 0,null,function*(){const{createArchitectureServices:n}=yield Wt(()=>import("./architecture-I3QFYML2-CigrQGbf.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=n().Architecture.parser.LangiumParser;ct.architecture=e}),"architecture"),gitGraph:x(()=>$(void 0,null,function*(){const{createGitGraphServices:n}=yield Wt(()=>import("./gitGraph-YCYPL57B-DD6McXd7.js"),__vite__mapDeps([15,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),e=n().GitGraph.parser.LangiumParser;ct.gitGraph=e}),"gitGraph")};function ty(n,e){return $(this,null,function*(){const t=ey[n];if(!t)throw new Error(`Unknown diagram type: ${n}`);ct[n]||(yield t());const i=ct[n].parse(e);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new ny(i);return i.value})}x(ty,"parse");var hn,ny=(hn=class extends Error{constructor(e){const t=e.lexerErrors.map(i=>i.message).join(` `),r=e.parserErrors.map(i=>i.message).join(` `);super(`Parsing failed: ${t} ${r}`),this.result=e}},x(hn,"MermaidParseError"),hn);export{Qg as A,Fg as G,Bg as I,jg as P,Hg as a,qg as b,Vg as c,Yg as d,Zg as e,Gg as f,ty as p}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./info-46DW6VJ7-D6cvRm3F.js","./iframe-CrQm7WUj.js","./Using existing ones-1ACZX-0W.js","./jsx-runtime-CS-_a2eV.js","./index-Ca44TZ0D.js","./index-Bqh_nw6E.js","./dayjs.min-kn1EBQqj.js","./index-DrFu-skq.js","./Serializer-DsJDcYJc.js","./_baseUniq-DLWEyx0q.js","./_basePickBy-UIHw3QVG.js","./clone-qL6R6e7B.js","./packet-W2GHVCYJ-CH651zQ2.js","./pie-BEWT4RHE-chtKKmyw.js","./architecture-I3QFYML2-Cr7VjhJ7.js","./gitGraph-YCYPL57B-BsO982K2.js"] + __vite__mapDeps.viteFileDeps = ["./info-46DW6VJ7-BkVm7qR0.js","./iframe-BNbdtpq9.js","./Using existing ones-DVOwGlbd.js","./jsx-runtime-CS-_a2eV.js","./index-Ca44TZ0D.js","./index-Bqh_nw6E.js","./dayjs.min-kn1EBQqj.js","./index-DrFu-skq.js","./Serializer-DsJDcYJc.js","./_baseUniq-JfSCQjs8.js","./_basePickBy-Cka5hBJe.js","./clone-Bp7QSEXO.js","./packet-W2GHVCYJ-CsCAhKMv.js","./pie-BEWT4RHE-DrvWmk3I.js","./architecture-I3QFYML2-CigrQGbf.js","./gitGraph-YCYPL57B-DD6McXd7.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/pr-preview/pr-419/assets/mindmap-definition-FCEC46F3-Ddszh-gs.js b/pr-preview/pr-419/assets/mindmap-definition-FCEC46F3-BiIE9Yg1.js similarity index 99% rename from pr-preview/pr-419/assets/mindmap-definition-FCEC46F3-Ddszh-gs.js rename to pr-preview/pr-419/assets/mindmap-definition-FCEC46F3-BiIE9Yg1.js index b15843072..db634c5b4 100644 --- a/pr-preview/pr-419/assets/mindmap-definition-FCEC46F3-Ddszh-gs.js +++ b/pr-preview/pr-419/assets/mindmap-definition-FCEC46F3-BiIE9Yg1.js @@ -1,4 +1,4 @@ -var tt=(A,w,u)=>new Promise((D,v)=>{var r=i=>{try{e(u.next(i))}catch(o){v(o)}},t=i=>{try{e(u.throw(i))}catch(o){v(o)}},e=i=>i.done?D(i.value):Promise.resolve(i.value).then(r,t);e((u=u.apply(A,w)).next())});import{_ as S,l as z,j as mt,D as Dt,a6 as Ot,d as ot,K as At,aa as It,F as et,i as rt,aj as Ct,ak as Rt,al as xt}from"./Using existing ones-1ACZX-0W.js";import{c as dt}from"./cytoscape.esm-BI0LHGOR.js";import{c as ht,g as Mt}from"./index-Ca44TZ0D.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var vt={exports:{}},nt={exports:{}},st={exports:{}},ft;function wt(){return ft||(ft=1,function(A,w){(function(D,v){A.exports=v()})(ht,function(){return function(u){var D={};function v(r){if(D[r])return D[r].exports;var t=D[r]={i:r,l:!1,exports:{}};return u[r].call(t.exports,t,t.exports,v),t.l=!0,t.exports}return v.m=u,v.c=D,v.i=function(r){return r},v.d=function(r,t,e){v.o(r,t)||Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:e})},v.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return v.d(t,"a",t),t},v.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},v.p="",v(v.s=26)}([function(u,D,v){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,u.exports=r},function(u,D,v){var r=v(2),t=v(8),e=v(9);function i(g,a,y){r.call(this,y),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=y,this.bendpoints=[],this.source=g,this.target=a}i.prototype=Object.create(r.prototype);for(var o in r)i[o]=r[o];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,a){for(var y=this.getOtherEnd(g),n=a.getGraphManager().getRoot();;){if(y.getOwner()==a)return y;if(y.getOwner()==n)break;y=y.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=t.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.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=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},u.exports=i},function(u,D,v){function r(t){this.vGraphObject=t}u.exports=r},function(u,D,v){var r=v(2),t=v(10),e=v(13),i=v(0),o=v(16),g=v(4);function a(n,h,c,E){c==null&&E==null&&(E=h),r.call(this,E),n.graphManager!=null&&(n=n.graphManager),this.estimatedSize=t.MIN_VALUE,this.inclusionTreeDepth=t.MAX_VALUE,this.vGraphObject=E,this.edges=[],this.graphManager=n,c!=null&&h!=null?this.rect=new e(h.x,h.y,c.width,c.height):this.rect=new e}a.prototype=Object.create(r.prototype);for(var y in r)a[y]=r[y];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(n){this.rect.width=n},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(n){this.rect.height=n},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 g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},a.prototype.getLocation=function(){return new g(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(n,h){this.rect.x=n.x,this.rect.y=n.y,this.rect.width=h.width,this.rect.height=h.height},a.prototype.setCenter=function(n,h){this.rect.x=n-this.rect.width/2,this.rect.y=h-this.rect.height/2},a.prototype.setLocation=function(n,h){this.rect.x=n,this.rect.y=h},a.prototype.moveBy=function(n,h){this.rect.x+=n,this.rect.y+=h},a.prototype.getEdgeListToNode=function(n){var h=[],c=this;return c.edges.forEach(function(E){if(E.target==n){if(E.source!=c)throw"Incorrect edge source!";h.push(E)}}),h},a.prototype.getEdgesBetween=function(n){var h=[],c=this;return c.edges.forEach(function(E){if(!(E.source==c||E.target==c))throw"Incorrect edge source and/or target";(E.target==n||E.source==n)&&h.push(E)}),h},a.prototype.getNeighborsList=function(){var n=new Set,h=this;return h.edges.forEach(function(c){if(c.source==h)n.add(c.target);else{if(c.target!=h)throw"Incorrect incidency!";n.add(c.source)}}),n},a.prototype.withChildren=function(){var n=new Set,h,c;if(n.add(this),this.child!=null)for(var E=this.child.getNodes(),T=0;Th&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>c&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-c)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-c),this.setHeight(this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==t.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(n){var h=this.rect.x;h>i.WORLD_BOUNDARY?h=i.WORLD_BOUNDARY:h<-i.WORLD_BOUNDARY&&(h=-i.WORLD_BOUNDARY);var c=this.rect.y;c>i.WORLD_BOUNDARY?c=i.WORLD_BOUNDARY:c<-i.WORLD_BOUNDARY&&(c=-i.WORLD_BOUNDARY);var E=new g(h,c),T=n.inverseTransformPoint(E);this.setLocation(T.x,T.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()},u.exports=a},function(u,D,v){function r(t,e){t==null&&e==null?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},u.exports=r},function(u,D,v){var r=v(2),t=v(10),e=v(0),i=v(6),o=v(3),g=v(1),a=v(13),y=v(12),n=v(11);function h(E,T,m){r.call(this,m),this.estimatedSize=t.MIN_VALUE,this.margin=e.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=E,T!=null&&T instanceof i?this.graphManager=T:T!=null&&T instanceof Layout&&(this.graphManager=T.graphManager)}h.prototype=Object.create(r.prototype);for(var c in r)h[c]=r[c];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(E,T,m){if(T==null&&m==null){var L=E;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(L)>-1)throw"Node already in graph!";return L.owner=this,this.getNodes().push(L),L}else{var O=E;if(!(this.getNodes().indexOf(T)>-1&&this.getNodes().indexOf(m)>-1))throw"Source or target not in graph!";if(!(T.owner==m.owner&&T.owner==this))throw"Both owners must be this graph!";return T.owner!=m.owner?null:(O.source=T,O.target=m,O.isInterGraph=!1,this.getEdges().push(O),T.edges.push(O),m!=T&&m.edges.push(O),O)}},h.prototype.remove=function(E){var T=E;if(E instanceof o){if(T==null)throw"Node is null!";if(!(T.owner!=null&&T.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var m=T.edges.slice(),L,O=m.length,d=0;d-1&&l>-1))throw"Source and/or target doesn't know this edge!";L.source.edges.splice(s,1),L.target!=L.source&&L.target.edges.splice(l,1);var N=L.source.owner.getEdges().indexOf(L);if(N==-1)throw"Not in owner's edge list!";L.source.owner.getEdges().splice(N,1)}},h.prototype.updateLeftTop=function(){for(var E=t.MAX_VALUE,T=t.MAX_VALUE,m,L,O,d=this.getNodes(),N=d.length,s=0;sm&&(E=m),T>L&&(T=L)}return E==t.MAX_VALUE?null:(d[0].getParent().paddingLeft!=null?O=d[0].getParent().paddingLeft:O=this.margin,this.left=T-O,this.top=E-O,new y(this.left,this.top))},h.prototype.updateBounds=function(E){for(var T=t.MAX_VALUE,m=-t.MAX_VALUE,L=t.MAX_VALUE,O=-t.MAX_VALUE,d,N,s,l,f,p=this.nodes,I=p.length,C=0;Cd&&(T=d),ms&&(L=s),Od&&(T=d),ms&&(L=s),O=this.nodes.length){var I=0;m.forEach(function(C){C.owner==E&&I++}),I==this.nodes.length&&(this.isConnected=!0)}},u.exports=h},function(u,D,v){var r,t=v(1);function e(i){r=v(5),this.layout=i,this.graphs=[],this.edges=[]}e.prototype.addRoot=function(){var i=this.layout.newGraph(),o=this.layout.newNode(null),g=this.add(i,o);return this.setRootGraph(g),this.rootGraph},e.prototype.add=function(i,o,g,a,y){if(g==null&&a==null&&y==null){if(i==null)throw"Graph is null!";if(o==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(o.child!=null)throw"Already has a child!";return i.parent=o,o.child=i,i}else{y=g,a=o,g=i;var n=a.getOwner(),h=y.getOwner();if(!(n!=null&&n.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(n==h)return g.isInterGraph=!1,n.add(g,a,y);if(g.isInterGraph=!0,g.source=a,g.target=y,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},e.prototype.remove=function(i){if(i instanceof r){var o=i;if(o.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(o==this.rootGraph||o.parent!=null&&o.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(o.getEdges());for(var a,y=g.length,n=0;n=i.getRight()?o[0]+=Math.min(i.getX()-e.getX(),e.getRight()-i.getRight()):i.getX()<=e.getX()&&i.getRight()>=e.getRight()&&(o[0]+=Math.min(e.getX()-i.getX(),i.getRight()-e.getRight())),e.getY()<=i.getY()&&e.getBottom()>=i.getBottom()?o[1]+=Math.min(i.getY()-e.getY(),e.getBottom()-i.getBottom()):i.getY()<=e.getY()&&i.getBottom()>=e.getBottom()&&(o[1]+=Math.min(e.getY()-i.getY(),i.getBottom()-e.getBottom()));var y=Math.abs((i.getCenterY()-e.getCenterY())/(i.getCenterX()-e.getCenterX()));i.getCenterY()===e.getCenterY()&&i.getCenterX()===e.getCenterX()&&(y=1);var n=y*o[0],h=o[1]/y;o[0]n)return o[0]=g,o[1]=c,o[2]=y,o[3]=p,!1;if(ay)return o[0]=h,o[1]=a,o[2]=l,o[3]=n,!1;if(gy?(o[0]=T,o[1]=m,x=!0):(o[0]=E,o[1]=c,x=!0):U===M&&(g>y?(o[0]=h,o[1]=c,x=!0):(o[0]=L,o[1]=m,x=!0)),-X===M?y>g?(o[2]=f,o[3]=p,_=!0):(o[2]=l,o[3]=s,_=!0):X===M&&(y>g?(o[2]=N,o[3]=s,_=!0):(o[2]=I,o[3]=p,_=!0)),x&&_)return!1;if(g>y?a>n?(G=this.getCardinalDirection(U,M,4),F=this.getCardinalDirection(X,M,2)):(G=this.getCardinalDirection(-U,M,3),F=this.getCardinalDirection(-X,M,1)):a>n?(G=this.getCardinalDirection(-U,M,1),F=this.getCardinalDirection(-X,M,3)):(G=this.getCardinalDirection(U,M,2),F=this.getCardinalDirection(X,M,4)),!x)switch(G){case 1:Y=c,b=g+-d/M,o[0]=b,o[1]=Y;break;case 2:b=L,Y=a+O*M,o[0]=b,o[1]=Y;break;case 3:Y=m,b=g+d/M,o[0]=b,o[1]=Y;break;case 4:b=T,Y=a+-O*M,o[0]=b,o[1]=Y;break}if(!_)switch(F){case 1:H=s,k=y+-R/M,o[2]=k,o[3]=H;break;case 2:k=I,H=n+C*M,o[2]=k,o[3]=H;break;case 3:H=p,k=y+R/M,o[2]=k,o[3]=H;break;case 4:k=f,H=n+-C*M,o[2]=k,o[3]=H;break}}return!1},t.getCardinalDirection=function(e,i,o){return e>i?o:1+o%4},t.getIntersection=function(e,i,o,g){if(g==null)return this.getIntersection2(e,i,o);var a=e.x,y=e.y,n=i.x,h=i.y,c=o.x,E=o.y,T=g.x,m=g.y,L=void 0,O=void 0,d=void 0,N=void 0,s=void 0,l=void 0,f=void 0,p=void 0,I=void 0;return d=h-y,s=a-n,f=n*y-a*h,N=m-E,l=c-T,p=T*E-c*m,I=d*l-N*s,I===0?null:(L=(s*p-l*f)/I,O=(N*f-d*p)/I,new r(L,O))},t.angleOfVector=function(e,i,o,g){var a=void 0;return e!==o?(a=Math.atan((g-i)/(o-e)),o0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},u.exports=r},function(u,D,v){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,u.exports=r},function(u,D,v){var r=function(){function a(y,n){for(var h=0;h0&&E;){for(d.push(s[0]);d.length>0&&E;){var l=d[0];d.splice(0,1),O.add(l);for(var f=l.getEdges(),L=0;L-1&&s.splice(R,1)}O=new Set,N=new Map}}return c},h.prototype.createDummyNodesForBendpoints=function(c){for(var E=[],T=c.source,m=this.graphManager.calcLowestCommonAncestor(c.source,c.target),L=0;L0){for(var m=this.edgeToDummyNodes.get(T),L=0;L=0&&E.splice(p,1);var I=N.getNeighborsList();I.forEach(function(x){if(T.indexOf(x)<0){var _=m.get(x),U=_-1;U==1&&l.push(x),m.set(x,U)}})}T=T.concat(l),(E.length==1||E.length==2)&&(L=!0,O=E[0])}return O},h.prototype.setGraphManager=function(c){this.graphManager=c},u.exports=h},function(u,D,v){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},u.exports=r},function(u,D,v){var r=v(4);function t(e,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}t.prototype.getWorldOrgX=function(){return this.lworldOrgX},t.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},t.prototype.getWorldOrgY=function(){return this.lworldOrgY},t.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},t.prototype.getWorldExtX=function(){return this.lworldExtX},t.prototype.setWorldExtX=function(e){this.lworldExtX=e},t.prototype.getWorldExtY=function(){return this.lworldExtY},t.prototype.setWorldExtY=function(e){this.lworldExtY=e},t.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},t.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},t.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},t.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},t.prototype.getDeviceExtX=function(){return this.ldeviceExtX},t.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},t.prototype.getDeviceExtY=function(){return this.ldeviceExtY},t.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},t.prototype.transformX=function(e){var i=0,o=this.lworldExtX;return o!=0&&(i=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/o),i},t.prototype.transformY=function(e){var i=0,o=this.lworldExtY;return o!=0&&(i=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/o),i},t.prototype.inverseTransformX=function(e){var i=0,o=this.ldeviceExtX;return o!=0&&(i=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/o),i},t.prototype.inverseTransformY=function(e){var i=0,o=this.ldeviceExtY;return o!=0&&(i=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/o),i},t.prototype.inverseTransformPoint=function(e){var i=new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y));return i},u.exports=t},function(u,D,v){function r(n){if(Array.isArray(n)){for(var h=0,c=Array(n.length);he.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*e.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(n-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-e.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT_INCREMENTAL):(n>e.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(e.COOLING_ADAPTATION_FACTOR,1-(n-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*(1-e.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=e.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 n=this.getAllEdges(),h,c=0;c0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c,E,T,m,L=this.getAllNodes(),O;if(this.useFRGridVariant)for(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&n&&this.updateGrid(),O=new Set,c=0;cd||O>d)&&(n.gravitationForceX=-this.gravityConstant*T,n.gravitationForceY=-this.gravityConstant*m)):(d=h.getEstimatedSize()*this.compoundGravityRangeFactor,(L>d||O>d)&&(n.gravitationForceX=-this.gravityConstant*T*this.compoundGravityConstant,n.gravitationForceY=-this.gravityConstant*m*this.compoundGravityConstant))},a.prototype.isConverged=function(){var n,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),n=this.totalDisplacement=L.length||d>=L[0].length)){for(var N=0;Na}}]),o}();u.exports=i},function(u,D,v){var r=function(){function i(o,g){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;t(this,i),this.sequence1=o,this.sequence2=g,this.match_score=a,this.mismatch_penalty=y,this.gap_penalty=n,this.iMax=o.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;o--){var g=this.listeners[o];g.event===e&&g.callback===i&&this.listeners.splice(o,1)}},t.emit=function(e,i){for(var o=0;og.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*e.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),g.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},i.prototype.propogateDisplacementToChildren=function(g,a){for(var y=this.getChild().getNodes(),n,h=0;h0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var l=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(p){return l.has(p)});this.graphManager.setAllNodesToApplyGravitation(f),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},d.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%y.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()),l=this.nodesWithGravity.filter(function(I){return s.has(I)});this.graphManager.setAllNodesToApplyGravitation(l),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=y.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=y.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var f=!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(f,p),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},d.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),l={},f=0;f1){var x;for(x=0;xp&&(p=Math.floor(R.y)),C=Math.floor(R.x+a.DEFAULT_COMPONENT_SEPERATION)}this.transform(new c(n.WORLD_CENTER_X-R.x/2,n.WORLD_CENTER_Y-R.y/2))},d.radialLayout=function(s,l,f){var p=Math.max(this.maxDiagonalInTree(s),a.DEFAULT_RADIAL_SEPARATION);d.branchRadialLayout(l,null,0,359,0,p);var I=L.calculateBounds(s),C=new O;C.setDeviceOrgX(I.getMinX()),C.setDeviceOrgY(I.getMinY()),C.setWorldOrgX(f.x),C.setWorldOrgY(f.y);for(var R=0;R1;){var H=k[0];k.splice(0,1);var P=M.indexOf(H);P>=0&&M.splice(P,1),b--,G--}l!=null?Y=(M.indexOf(k[0])+1)%b:Y=0;for(var B=Math.abs(p-f)/G,$=Y;F!=G;$=++$%b){var K=M[$].getOtherEnd(s);if(K!=l){var Q=(f+F*B)%360,J=(Q+B)%360;d.branchRadialLayout(K,s,Q,J,I+C,C),F++}}},d.maxDiagonalInTree=function(s){for(var l=T.MIN_VALUE,f=0;fl&&(l=I)}return l},d.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},d.prototype.groupZeroDegreeMembers=function(){var s=this,l={};this.memberGroups={},this.idToDummyNode={};for(var f=[],p=this.graphManager.getAllNodes(),I=0;I1){var U="DummyCompound_"+_;s.memberGroups[U]=l[_];var X=l[_][0].getParent(),M=new o(s.graphManager);M.id=U,M.paddingLeft=X.paddingLeft||0,M.paddingRight=X.paddingRight||0,M.paddingBottom=X.paddingBottom||0,M.paddingTop=X.paddingTop||0,s.idToDummyNode[U]=M;var G=s.getGraphManager().add(s.newGraph(),M),F=X.getChild();F.add(M);for(var b=0;b=0;s--){var l=this.compoundOrder[s],f=l.id,p=l.paddingLeft,I=l.paddingTop;this.adjustLocations(this.tiledMemberPack[f],l.rect.x,l.rect.y,p,I)}},d.prototype.repopulateZeroDegreeMembers=function(){var s=this,l=this.tiledZeroDegreePack;Object.keys(l).forEach(function(f){var p=s.idToDummyNode[f],I=p.paddingLeft,C=p.paddingTop;s.adjustLocations(l[f],p.rect.x,p.rect.y,I,C)})},d.prototype.getToBeTiled=function(s){var l=s.id;if(this.toBeTiled[l]!=null)return this.toBeTiled[l];var f=s.getChild();if(f==null)return this.toBeTiled[l]=!1,!1;for(var p=f.getNodes(),I=0;I0)return this.toBeTiled[l]=!1,!1;if(C.getChild()==null){this.toBeTiled[C.id]=!1;continue}if(!this.getToBeTiled(C))return this.toBeTiled[l]=!1,!1}return this.toBeTiled[l]=!0,!0},d.prototype.getNodeDegree=function(s){s.id;for(var l=s.getEdges(),f=0,p=0;p_&&(_=X.rect.height)}f+=_+s.verticalPadding}},d.prototype.tileCompoundMembers=function(s,l){var f=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(p){var I=l[p];f.tiledMemberPack[p]=f.tileNodes(s[p],I.paddingLeft+I.paddingRight),I.rect.width=f.tiledMemberPack[p].width,I.rect.height=f.tiledMemberPack[p].height})},d.prototype.tileNodes=function(s,l){var f=a.TILING_PADDING_VERTICAL,p=a.TILING_PADDING_HORIZONTAL,I={rows:[],rowWidth:[],rowHeight:[],width:0,height:l,verticalPadding:f,horizontalPadding:p};s.sort(function(x,_){return x.rect.width*x.rect.height>_.rect.width*_.rect.height?-1:x.rect.width*x.rect.height<_.rect.width*_.rect.height?1:0});for(var C=0;C0&&(R+=s.horizontalPadding),s.rowWidth[f]=R,s.width0&&(x+=s.verticalPadding);var _=0;x>s.rowHeight[f]&&(_=s.rowHeight[f],s.rowHeight[f]=x,_=s.rowHeight[f]-_),s.height+=_,s.rows[f].push(l)},d.prototype.getShortestRowIndex=function(s){for(var l=-1,f=Number.MAX_VALUE,p=0;pf&&(l=p,f=s.rowWidth[p]);return l},d.prototype.canAddHorizontal=function(s,l,f){var p=this.getShortestRowIndex(s);if(p<0)return!0;var I=s.rowWidth[p];if(I+s.horizontalPadding+l<=s.width)return!0;var C=0;s.rowHeight[p]0&&(C=f+s.verticalPadding-s.rowHeight[p]);var R;s.width-I>=l+s.horizontalPadding?R=(s.height+C)/(I+l+s.horizontalPadding):R=(s.height+C)/s.width,C=f+s.verticalPadding;var x;return s.widthC&&l!=f){p.splice(-1,1),s.rows[f].push(I),s.rowWidth[l]=s.rowWidth[l]-C,s.rowWidth[f]=s.rowWidth[f]+C,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var R=Number.MIN_VALUE,x=0;xR&&(R=p[x].height);l>0&&(R+=s.verticalPadding);var _=s.rowHeight[l]+s.rowHeight[f];s.rowHeight[l]=R,s.rowHeight[f]0)for(var F=I;F<=C;F++)G[0]+=this.grid[F][R-1].length+this.grid[F][R].length-1;if(C0)for(var F=R;F<=x;F++)G[3]+=this.grid[I-1][F].length+this.grid[I][F].length-1;for(var b=T.MAX_VALUE,Y,k,H=0;H0){var x;x=O.getGraphManager().add(O.newGraph(),f),this.processChildrenList(x,l,O)}}},c.prototype.stop=function(){return this.stopped=!0,this};var T=function(L){L("layout","cose-bilkent",c)};typeof cytoscape!="undefined"&&T(cytoscape),D.exports=T}])})})(vt);var Gt=vt.exports;const _t=Mt(Gt);var at=function(){var A=S(function(O,d,N,s){for(N=N||{},s=O.length;s--;N[O[s]]=d);return N},"o"),w=[1,4],u=[1,13],D=[1,12],v=[1,15],r=[1,16],t=[1,20],e=[1,19],i=[6,7,8],o=[1,26],g=[1,24],a=[1,25],y=[6,7,11],n=[1,6,13,15,16,19,22],h=[1,33],c=[1,34],E=[1,6,7,11,13,15,16,19,22],T={trace:S(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:S(function(d,N,s,l,f,p,I){var C=p.length-1;switch(f){case 6:case 7:return l;case 8:l.getLogger().trace("Stop NL ");break;case 9:l.getLogger().trace("Stop EOF ");break;case 11:l.getLogger().trace("Stop NL2 ");break;case 12:l.getLogger().trace("Stop EOF2 ");break;case 15:l.getLogger().info("Node: ",p[C].id),l.addNode(p[C-1].length,p[C].id,p[C].descr,p[C].type);break;case 16:l.getLogger().trace("Icon: ",p[C]),l.decorateNode({icon:p[C]});break;case 17:case 21:l.decorateNode({class:p[C]});break;case 18:l.getLogger().trace("SPACELIST");break;case 19:l.getLogger().trace("Node: ",p[C].id),l.addNode(0,p[C].id,p[C].descr,p[C].type);break;case 20:l.decorateNode({icon:p[C]});break;case 25:l.getLogger().trace("node found ..",p[C-2]),this.$={id:p[C-1],descr:p[C-1],type:l.getType(p[C-2],p[C])};break;case 26:this.$={id:p[C],descr:p[C],type:l.nodeType.DEFAULT};break;case 27:l.getLogger().trace("node found ..",p[C-3]),this.$={id:p[C-3],descr:p[C-1],type:l.getType(p[C-2],p[C])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:w},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:w},{6:u,7:[1,10],9:9,12:11,13:D,14:14,15:v,16:r,17:17,18:18,19:t,22:e},A(i,[2,3]),{1:[2,2]},A(i,[2,4]),A(i,[2,5]),{1:[2,6],6:u,12:21,13:D,14:14,15:v,16:r,17:17,18:18,19:t,22:e},{6:u,9:22,12:11,13:D,14:14,15:v,16:r,17:17,18:18,19:t,22:e},{6:o,7:g,10:23,11:a},A(y,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:t,22:e}),A(y,[2,18]),A(y,[2,19]),A(y,[2,20]),A(y,[2,21]),A(y,[2,23]),A(y,[2,24]),A(y,[2,26],{19:[1,30]}),{20:[1,31]},{6:o,7:g,10:32,11:a},{1:[2,7],6:u,12:21,13:D,14:14,15:v,16:r,17:17,18:18,19:t,22:e},A(n,[2,14],{7:h,11:c}),A(E,[2,8]),A(E,[2,9]),A(E,[2,10]),A(y,[2,15]),A(y,[2,16]),A(y,[2,17]),{20:[1,35]},{21:[1,36]},A(n,[2,13],{7:h,11:c}),A(E,[2,11]),A(E,[2,12]),{21:[1,37]},A(y,[2,25]),A(y,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:S(function(d,N){if(N.recoverable)this.trace(d);else{var s=new Error(d);throw s.hash=N,s}},"parseError"),parse:S(function(d){var N=this,s=[0],l=[],f=[null],p=[],I=this.table,C="",R=0,x=0,_=2,U=1,X=p.slice.call(arguments,1),M=Object.create(this.lexer),G={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(G.yy[F]=this.yy[F]);M.setInput(d,G.yy),G.yy.lexer=M,G.yy.parser=this,typeof M.yylloc=="undefined"&&(M.yylloc={});var b=M.yylloc;p.push(b);var Y=M.options&&M.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function k(V){s.length=s.length-2*V,f.length=f.length-V,p.length=p.length-V}S(k,"popStack");function H(){var V;return V=l.pop()||M.lex()||U,typeof V!="number"&&(V instanceof Array&&(l=V,V=l.pop()),V=N.symbols_[V]||V),V}S(H,"lex");for(var P,B,$,K,Q={},J,j,ut,q;;){if(B=s[s.length-1],this.defaultActions[B]?$=this.defaultActions[B]:((P===null||typeof P=="undefined")&&(P=H()),$=I[B]&&I[B][P]),typeof $=="undefined"||!$.length||!$[0]){var it="";q=[];for(J in I[B])this.terminals_[J]&&J>_&&q.push("'"+this.terminals_[J]+"'");M.showPosition?it="Parse error on line "+(R+1)+`: +var tt=(A,w,u)=>new Promise((D,v)=>{var r=i=>{try{e(u.next(i))}catch(o){v(o)}},t=i=>{try{e(u.throw(i))}catch(o){v(o)}},e=i=>i.done?D(i.value):Promise.resolve(i.value).then(r,t);e((u=u.apply(A,w)).next())});import{_ as S,l as z,j as mt,D as Dt,a6 as Ot,d as ot,K as At,aa as It,F as et,i as rt,aj as Ct,ak as Rt,al as xt}from"./Using existing ones-DVOwGlbd.js";import{c as dt}from"./cytoscape.esm-BI0LHGOR.js";import{c as ht,g as Mt}from"./index-Ca44TZ0D.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var vt={exports:{}},nt={exports:{}},st={exports:{}},ft;function wt(){return ft||(ft=1,function(A,w){(function(D,v){A.exports=v()})(ht,function(){return function(u){var D={};function v(r){if(D[r])return D[r].exports;var t=D[r]={i:r,l:!1,exports:{}};return u[r].call(t.exports,t,t.exports,v),t.l=!0,t.exports}return v.m=u,v.c=D,v.i=function(r){return r},v.d=function(r,t,e){v.o(r,t)||Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:e})},v.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return v.d(t,"a",t),t},v.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},v.p="",v(v.s=26)}([function(u,D,v){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,u.exports=r},function(u,D,v){var r=v(2),t=v(8),e=v(9);function i(g,a,y){r.call(this,y),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=y,this.bendpoints=[],this.source=g,this.target=a}i.prototype=Object.create(r.prototype);for(var o in r)i[o]=r[o];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,a){for(var y=this.getOtherEnd(g),n=a.getGraphManager().getRoot();;){if(y.getOwner()==a)return y;if(y.getOwner()==n)break;y=y.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=t.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.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=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},u.exports=i},function(u,D,v){function r(t){this.vGraphObject=t}u.exports=r},function(u,D,v){var r=v(2),t=v(10),e=v(13),i=v(0),o=v(16),g=v(4);function a(n,h,c,E){c==null&&E==null&&(E=h),r.call(this,E),n.graphManager!=null&&(n=n.graphManager),this.estimatedSize=t.MIN_VALUE,this.inclusionTreeDepth=t.MAX_VALUE,this.vGraphObject=E,this.edges=[],this.graphManager=n,c!=null&&h!=null?this.rect=new e(h.x,h.y,c.width,c.height):this.rect=new e}a.prototype=Object.create(r.prototype);for(var y in r)a[y]=r[y];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(n){this.rect.width=n},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(n){this.rect.height=n},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 g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},a.prototype.getLocation=function(){return new g(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(n,h){this.rect.x=n.x,this.rect.y=n.y,this.rect.width=h.width,this.rect.height=h.height},a.prototype.setCenter=function(n,h){this.rect.x=n-this.rect.width/2,this.rect.y=h-this.rect.height/2},a.prototype.setLocation=function(n,h){this.rect.x=n,this.rect.y=h},a.prototype.moveBy=function(n,h){this.rect.x+=n,this.rect.y+=h},a.prototype.getEdgeListToNode=function(n){var h=[],c=this;return c.edges.forEach(function(E){if(E.target==n){if(E.source!=c)throw"Incorrect edge source!";h.push(E)}}),h},a.prototype.getEdgesBetween=function(n){var h=[],c=this;return c.edges.forEach(function(E){if(!(E.source==c||E.target==c))throw"Incorrect edge source and/or target";(E.target==n||E.source==n)&&h.push(E)}),h},a.prototype.getNeighborsList=function(){var n=new Set,h=this;return h.edges.forEach(function(c){if(c.source==h)n.add(c.target);else{if(c.target!=h)throw"Incorrect incidency!";n.add(c.source)}}),n},a.prototype.withChildren=function(){var n=new Set,h,c;if(n.add(this),this.child!=null)for(var E=this.child.getNodes(),T=0;Th&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>c&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-c)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-c),this.setHeight(this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==t.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(n){var h=this.rect.x;h>i.WORLD_BOUNDARY?h=i.WORLD_BOUNDARY:h<-i.WORLD_BOUNDARY&&(h=-i.WORLD_BOUNDARY);var c=this.rect.y;c>i.WORLD_BOUNDARY?c=i.WORLD_BOUNDARY:c<-i.WORLD_BOUNDARY&&(c=-i.WORLD_BOUNDARY);var E=new g(h,c),T=n.inverseTransformPoint(E);this.setLocation(T.x,T.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()},u.exports=a},function(u,D,v){function r(t,e){t==null&&e==null?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},u.exports=r},function(u,D,v){var r=v(2),t=v(10),e=v(0),i=v(6),o=v(3),g=v(1),a=v(13),y=v(12),n=v(11);function h(E,T,m){r.call(this,m),this.estimatedSize=t.MIN_VALUE,this.margin=e.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=E,T!=null&&T instanceof i?this.graphManager=T:T!=null&&T instanceof Layout&&(this.graphManager=T.graphManager)}h.prototype=Object.create(r.prototype);for(var c in r)h[c]=r[c];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(E,T,m){if(T==null&&m==null){var L=E;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(L)>-1)throw"Node already in graph!";return L.owner=this,this.getNodes().push(L),L}else{var O=E;if(!(this.getNodes().indexOf(T)>-1&&this.getNodes().indexOf(m)>-1))throw"Source or target not in graph!";if(!(T.owner==m.owner&&T.owner==this))throw"Both owners must be this graph!";return T.owner!=m.owner?null:(O.source=T,O.target=m,O.isInterGraph=!1,this.getEdges().push(O),T.edges.push(O),m!=T&&m.edges.push(O),O)}},h.prototype.remove=function(E){var T=E;if(E instanceof o){if(T==null)throw"Node is null!";if(!(T.owner!=null&&T.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var m=T.edges.slice(),L,O=m.length,d=0;d-1&&l>-1))throw"Source and/or target doesn't know this edge!";L.source.edges.splice(s,1),L.target!=L.source&&L.target.edges.splice(l,1);var N=L.source.owner.getEdges().indexOf(L);if(N==-1)throw"Not in owner's edge list!";L.source.owner.getEdges().splice(N,1)}},h.prototype.updateLeftTop=function(){for(var E=t.MAX_VALUE,T=t.MAX_VALUE,m,L,O,d=this.getNodes(),N=d.length,s=0;sm&&(E=m),T>L&&(T=L)}return E==t.MAX_VALUE?null:(d[0].getParent().paddingLeft!=null?O=d[0].getParent().paddingLeft:O=this.margin,this.left=T-O,this.top=E-O,new y(this.left,this.top))},h.prototype.updateBounds=function(E){for(var T=t.MAX_VALUE,m=-t.MAX_VALUE,L=t.MAX_VALUE,O=-t.MAX_VALUE,d,N,s,l,f,p=this.nodes,I=p.length,C=0;Cd&&(T=d),ms&&(L=s),Od&&(T=d),ms&&(L=s),O=this.nodes.length){var I=0;m.forEach(function(C){C.owner==E&&I++}),I==this.nodes.length&&(this.isConnected=!0)}},u.exports=h},function(u,D,v){var r,t=v(1);function e(i){r=v(5),this.layout=i,this.graphs=[],this.edges=[]}e.prototype.addRoot=function(){var i=this.layout.newGraph(),o=this.layout.newNode(null),g=this.add(i,o);return this.setRootGraph(g),this.rootGraph},e.prototype.add=function(i,o,g,a,y){if(g==null&&a==null&&y==null){if(i==null)throw"Graph is null!";if(o==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(o.child!=null)throw"Already has a child!";return i.parent=o,o.child=i,i}else{y=g,a=o,g=i;var n=a.getOwner(),h=y.getOwner();if(!(n!=null&&n.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(n==h)return g.isInterGraph=!1,n.add(g,a,y);if(g.isInterGraph=!0,g.source=a,g.target=y,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},e.prototype.remove=function(i){if(i instanceof r){var o=i;if(o.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(o==this.rootGraph||o.parent!=null&&o.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(o.getEdges());for(var a,y=g.length,n=0;n=i.getRight()?o[0]+=Math.min(i.getX()-e.getX(),e.getRight()-i.getRight()):i.getX()<=e.getX()&&i.getRight()>=e.getRight()&&(o[0]+=Math.min(e.getX()-i.getX(),i.getRight()-e.getRight())),e.getY()<=i.getY()&&e.getBottom()>=i.getBottom()?o[1]+=Math.min(i.getY()-e.getY(),e.getBottom()-i.getBottom()):i.getY()<=e.getY()&&i.getBottom()>=e.getBottom()&&(o[1]+=Math.min(e.getY()-i.getY(),i.getBottom()-e.getBottom()));var y=Math.abs((i.getCenterY()-e.getCenterY())/(i.getCenterX()-e.getCenterX()));i.getCenterY()===e.getCenterY()&&i.getCenterX()===e.getCenterX()&&(y=1);var n=y*o[0],h=o[1]/y;o[0]n)return o[0]=g,o[1]=c,o[2]=y,o[3]=p,!1;if(ay)return o[0]=h,o[1]=a,o[2]=l,o[3]=n,!1;if(gy?(o[0]=T,o[1]=m,x=!0):(o[0]=E,o[1]=c,x=!0):U===M&&(g>y?(o[0]=h,o[1]=c,x=!0):(o[0]=L,o[1]=m,x=!0)),-X===M?y>g?(o[2]=f,o[3]=p,_=!0):(o[2]=l,o[3]=s,_=!0):X===M&&(y>g?(o[2]=N,o[3]=s,_=!0):(o[2]=I,o[3]=p,_=!0)),x&&_)return!1;if(g>y?a>n?(G=this.getCardinalDirection(U,M,4),F=this.getCardinalDirection(X,M,2)):(G=this.getCardinalDirection(-U,M,3),F=this.getCardinalDirection(-X,M,1)):a>n?(G=this.getCardinalDirection(-U,M,1),F=this.getCardinalDirection(-X,M,3)):(G=this.getCardinalDirection(U,M,2),F=this.getCardinalDirection(X,M,4)),!x)switch(G){case 1:Y=c,b=g+-d/M,o[0]=b,o[1]=Y;break;case 2:b=L,Y=a+O*M,o[0]=b,o[1]=Y;break;case 3:Y=m,b=g+d/M,o[0]=b,o[1]=Y;break;case 4:b=T,Y=a+-O*M,o[0]=b,o[1]=Y;break}if(!_)switch(F){case 1:H=s,k=y+-R/M,o[2]=k,o[3]=H;break;case 2:k=I,H=n+C*M,o[2]=k,o[3]=H;break;case 3:H=p,k=y+R/M,o[2]=k,o[3]=H;break;case 4:k=f,H=n+-C*M,o[2]=k,o[3]=H;break}}return!1},t.getCardinalDirection=function(e,i,o){return e>i?o:1+o%4},t.getIntersection=function(e,i,o,g){if(g==null)return this.getIntersection2(e,i,o);var a=e.x,y=e.y,n=i.x,h=i.y,c=o.x,E=o.y,T=g.x,m=g.y,L=void 0,O=void 0,d=void 0,N=void 0,s=void 0,l=void 0,f=void 0,p=void 0,I=void 0;return d=h-y,s=a-n,f=n*y-a*h,N=m-E,l=c-T,p=T*E-c*m,I=d*l-N*s,I===0?null:(L=(s*p-l*f)/I,O=(N*f-d*p)/I,new r(L,O))},t.angleOfVector=function(e,i,o,g){var a=void 0;return e!==o?(a=Math.atan((g-i)/(o-e)),o0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},u.exports=r},function(u,D,v){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,u.exports=r},function(u,D,v){var r=function(){function a(y,n){for(var h=0;h0&&E;){for(d.push(s[0]);d.length>0&&E;){var l=d[0];d.splice(0,1),O.add(l);for(var f=l.getEdges(),L=0;L-1&&s.splice(R,1)}O=new Set,N=new Map}}return c},h.prototype.createDummyNodesForBendpoints=function(c){for(var E=[],T=c.source,m=this.graphManager.calcLowestCommonAncestor(c.source,c.target),L=0;L0){for(var m=this.edgeToDummyNodes.get(T),L=0;L=0&&E.splice(p,1);var I=N.getNeighborsList();I.forEach(function(x){if(T.indexOf(x)<0){var _=m.get(x),U=_-1;U==1&&l.push(x),m.set(x,U)}})}T=T.concat(l),(E.length==1||E.length==2)&&(L=!0,O=E[0])}return O},h.prototype.setGraphManager=function(c){this.graphManager=c},u.exports=h},function(u,D,v){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},u.exports=r},function(u,D,v){var r=v(4);function t(e,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}t.prototype.getWorldOrgX=function(){return this.lworldOrgX},t.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},t.prototype.getWorldOrgY=function(){return this.lworldOrgY},t.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},t.prototype.getWorldExtX=function(){return this.lworldExtX},t.prototype.setWorldExtX=function(e){this.lworldExtX=e},t.prototype.getWorldExtY=function(){return this.lworldExtY},t.prototype.setWorldExtY=function(e){this.lworldExtY=e},t.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},t.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},t.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},t.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},t.prototype.getDeviceExtX=function(){return this.ldeviceExtX},t.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},t.prototype.getDeviceExtY=function(){return this.ldeviceExtY},t.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},t.prototype.transformX=function(e){var i=0,o=this.lworldExtX;return o!=0&&(i=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/o),i},t.prototype.transformY=function(e){var i=0,o=this.lworldExtY;return o!=0&&(i=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/o),i},t.prototype.inverseTransformX=function(e){var i=0,o=this.ldeviceExtX;return o!=0&&(i=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/o),i},t.prototype.inverseTransformY=function(e){var i=0,o=this.ldeviceExtY;return o!=0&&(i=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/o),i},t.prototype.inverseTransformPoint=function(e){var i=new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y));return i},u.exports=t},function(u,D,v){function r(n){if(Array.isArray(n)){for(var h=0,c=Array(n.length);he.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*e.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(n-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-e.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT_INCREMENTAL):(n>e.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(e.COOLING_ADAPTATION_FACTOR,1-(n-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*(1-e.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=e.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 n=this.getAllEdges(),h,c=0;c0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c,E,T,m,L=this.getAllNodes(),O;if(this.useFRGridVariant)for(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&n&&this.updateGrid(),O=new Set,c=0;cd||O>d)&&(n.gravitationForceX=-this.gravityConstant*T,n.gravitationForceY=-this.gravityConstant*m)):(d=h.getEstimatedSize()*this.compoundGravityRangeFactor,(L>d||O>d)&&(n.gravitationForceX=-this.gravityConstant*T*this.compoundGravityConstant,n.gravitationForceY=-this.gravityConstant*m*this.compoundGravityConstant))},a.prototype.isConverged=function(){var n,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),n=this.totalDisplacement=L.length||d>=L[0].length)){for(var N=0;Na}}]),o}();u.exports=i},function(u,D,v){var r=function(){function i(o,g){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;t(this,i),this.sequence1=o,this.sequence2=g,this.match_score=a,this.mismatch_penalty=y,this.gap_penalty=n,this.iMax=o.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;o--){var g=this.listeners[o];g.event===e&&g.callback===i&&this.listeners.splice(o,1)}},t.emit=function(e,i){for(var o=0;og.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*e.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),g.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},i.prototype.propogateDisplacementToChildren=function(g,a){for(var y=this.getChild().getNodes(),n,h=0;h0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var l=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(p){return l.has(p)});this.graphManager.setAllNodesToApplyGravitation(f),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},d.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%y.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()),l=this.nodesWithGravity.filter(function(I){return s.has(I)});this.graphManager.setAllNodesToApplyGravitation(l),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=y.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=y.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var f=!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(f,p),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},d.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),l={},f=0;f1){var x;for(x=0;xp&&(p=Math.floor(R.y)),C=Math.floor(R.x+a.DEFAULT_COMPONENT_SEPERATION)}this.transform(new c(n.WORLD_CENTER_X-R.x/2,n.WORLD_CENTER_Y-R.y/2))},d.radialLayout=function(s,l,f){var p=Math.max(this.maxDiagonalInTree(s),a.DEFAULT_RADIAL_SEPARATION);d.branchRadialLayout(l,null,0,359,0,p);var I=L.calculateBounds(s),C=new O;C.setDeviceOrgX(I.getMinX()),C.setDeviceOrgY(I.getMinY()),C.setWorldOrgX(f.x),C.setWorldOrgY(f.y);for(var R=0;R1;){var H=k[0];k.splice(0,1);var P=M.indexOf(H);P>=0&&M.splice(P,1),b--,G--}l!=null?Y=(M.indexOf(k[0])+1)%b:Y=0;for(var B=Math.abs(p-f)/G,$=Y;F!=G;$=++$%b){var K=M[$].getOtherEnd(s);if(K!=l){var Q=(f+F*B)%360,J=(Q+B)%360;d.branchRadialLayout(K,s,Q,J,I+C,C),F++}}},d.maxDiagonalInTree=function(s){for(var l=T.MIN_VALUE,f=0;fl&&(l=I)}return l},d.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},d.prototype.groupZeroDegreeMembers=function(){var s=this,l={};this.memberGroups={},this.idToDummyNode={};for(var f=[],p=this.graphManager.getAllNodes(),I=0;I1){var U="DummyCompound_"+_;s.memberGroups[U]=l[_];var X=l[_][0].getParent(),M=new o(s.graphManager);M.id=U,M.paddingLeft=X.paddingLeft||0,M.paddingRight=X.paddingRight||0,M.paddingBottom=X.paddingBottom||0,M.paddingTop=X.paddingTop||0,s.idToDummyNode[U]=M;var G=s.getGraphManager().add(s.newGraph(),M),F=X.getChild();F.add(M);for(var b=0;b=0;s--){var l=this.compoundOrder[s],f=l.id,p=l.paddingLeft,I=l.paddingTop;this.adjustLocations(this.tiledMemberPack[f],l.rect.x,l.rect.y,p,I)}},d.prototype.repopulateZeroDegreeMembers=function(){var s=this,l=this.tiledZeroDegreePack;Object.keys(l).forEach(function(f){var p=s.idToDummyNode[f],I=p.paddingLeft,C=p.paddingTop;s.adjustLocations(l[f],p.rect.x,p.rect.y,I,C)})},d.prototype.getToBeTiled=function(s){var l=s.id;if(this.toBeTiled[l]!=null)return this.toBeTiled[l];var f=s.getChild();if(f==null)return this.toBeTiled[l]=!1,!1;for(var p=f.getNodes(),I=0;I0)return this.toBeTiled[l]=!1,!1;if(C.getChild()==null){this.toBeTiled[C.id]=!1;continue}if(!this.getToBeTiled(C))return this.toBeTiled[l]=!1,!1}return this.toBeTiled[l]=!0,!0},d.prototype.getNodeDegree=function(s){s.id;for(var l=s.getEdges(),f=0,p=0;p_&&(_=X.rect.height)}f+=_+s.verticalPadding}},d.prototype.tileCompoundMembers=function(s,l){var f=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(p){var I=l[p];f.tiledMemberPack[p]=f.tileNodes(s[p],I.paddingLeft+I.paddingRight),I.rect.width=f.tiledMemberPack[p].width,I.rect.height=f.tiledMemberPack[p].height})},d.prototype.tileNodes=function(s,l){var f=a.TILING_PADDING_VERTICAL,p=a.TILING_PADDING_HORIZONTAL,I={rows:[],rowWidth:[],rowHeight:[],width:0,height:l,verticalPadding:f,horizontalPadding:p};s.sort(function(x,_){return x.rect.width*x.rect.height>_.rect.width*_.rect.height?-1:x.rect.width*x.rect.height<_.rect.width*_.rect.height?1:0});for(var C=0;C0&&(R+=s.horizontalPadding),s.rowWidth[f]=R,s.width0&&(x+=s.verticalPadding);var _=0;x>s.rowHeight[f]&&(_=s.rowHeight[f],s.rowHeight[f]=x,_=s.rowHeight[f]-_),s.height+=_,s.rows[f].push(l)},d.prototype.getShortestRowIndex=function(s){for(var l=-1,f=Number.MAX_VALUE,p=0;pf&&(l=p,f=s.rowWidth[p]);return l},d.prototype.canAddHorizontal=function(s,l,f){var p=this.getShortestRowIndex(s);if(p<0)return!0;var I=s.rowWidth[p];if(I+s.horizontalPadding+l<=s.width)return!0;var C=0;s.rowHeight[p]0&&(C=f+s.verticalPadding-s.rowHeight[p]);var R;s.width-I>=l+s.horizontalPadding?R=(s.height+C)/(I+l+s.horizontalPadding):R=(s.height+C)/s.width,C=f+s.verticalPadding;var x;return s.widthC&&l!=f){p.splice(-1,1),s.rows[f].push(I),s.rowWidth[l]=s.rowWidth[l]-C,s.rowWidth[f]=s.rowWidth[f]+C,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var R=Number.MIN_VALUE,x=0;xR&&(R=p[x].height);l>0&&(R+=s.verticalPadding);var _=s.rowHeight[l]+s.rowHeight[f];s.rowHeight[l]=R,s.rowHeight[f]0)for(var F=I;F<=C;F++)G[0]+=this.grid[F][R-1].length+this.grid[F][R].length-1;if(C0)for(var F=R;F<=x;F++)G[3]+=this.grid[I-1][F].length+this.grid[I][F].length-1;for(var b=T.MAX_VALUE,Y,k,H=0;H0){var x;x=O.getGraphManager().add(O.newGraph(),f),this.processChildrenList(x,l,O)}}},c.prototype.stop=function(){return this.stopped=!0,this};var T=function(L){L("layout","cose-bilkent",c)};typeof cytoscape!="undefined"&&T(cytoscape),D.exports=T}])})})(vt);var Gt=vt.exports;const _t=Mt(Gt);var at=function(){var A=S(function(O,d,N,s){for(N=N||{},s=O.length;s--;N[O[s]]=d);return N},"o"),w=[1,4],u=[1,13],D=[1,12],v=[1,15],r=[1,16],t=[1,20],e=[1,19],i=[6,7,8],o=[1,26],g=[1,24],a=[1,25],y=[6,7,11],n=[1,6,13,15,16,19,22],h=[1,33],c=[1,34],E=[1,6,7,11,13,15,16,19,22],T={trace:S(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:S(function(d,N,s,l,f,p,I){var C=p.length-1;switch(f){case 6:case 7:return l;case 8:l.getLogger().trace("Stop NL ");break;case 9:l.getLogger().trace("Stop EOF ");break;case 11:l.getLogger().trace("Stop NL2 ");break;case 12:l.getLogger().trace("Stop EOF2 ");break;case 15:l.getLogger().info("Node: ",p[C].id),l.addNode(p[C-1].length,p[C].id,p[C].descr,p[C].type);break;case 16:l.getLogger().trace("Icon: ",p[C]),l.decorateNode({icon:p[C]});break;case 17:case 21:l.decorateNode({class:p[C]});break;case 18:l.getLogger().trace("SPACELIST");break;case 19:l.getLogger().trace("Node: ",p[C].id),l.addNode(0,p[C].id,p[C].descr,p[C].type);break;case 20:l.decorateNode({icon:p[C]});break;case 25:l.getLogger().trace("node found ..",p[C-2]),this.$={id:p[C-1],descr:p[C-1],type:l.getType(p[C-2],p[C])};break;case 26:this.$={id:p[C],descr:p[C],type:l.nodeType.DEFAULT};break;case 27:l.getLogger().trace("node found ..",p[C-3]),this.$={id:p[C-3],descr:p[C-1],type:l.getType(p[C-2],p[C])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:w},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:w},{6:u,7:[1,10],9:9,12:11,13:D,14:14,15:v,16:r,17:17,18:18,19:t,22:e},A(i,[2,3]),{1:[2,2]},A(i,[2,4]),A(i,[2,5]),{1:[2,6],6:u,12:21,13:D,14:14,15:v,16:r,17:17,18:18,19:t,22:e},{6:u,9:22,12:11,13:D,14:14,15:v,16:r,17:17,18:18,19:t,22:e},{6:o,7:g,10:23,11:a},A(y,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:t,22:e}),A(y,[2,18]),A(y,[2,19]),A(y,[2,20]),A(y,[2,21]),A(y,[2,23]),A(y,[2,24]),A(y,[2,26],{19:[1,30]}),{20:[1,31]},{6:o,7:g,10:32,11:a},{1:[2,7],6:u,12:21,13:D,14:14,15:v,16:r,17:17,18:18,19:t,22:e},A(n,[2,14],{7:h,11:c}),A(E,[2,8]),A(E,[2,9]),A(E,[2,10]),A(y,[2,15]),A(y,[2,16]),A(y,[2,17]),{20:[1,35]},{21:[1,36]},A(n,[2,13],{7:h,11:c}),A(E,[2,11]),A(E,[2,12]),{21:[1,37]},A(y,[2,25]),A(y,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:S(function(d,N){if(N.recoverable)this.trace(d);else{var s=new Error(d);throw s.hash=N,s}},"parseError"),parse:S(function(d){var N=this,s=[0],l=[],f=[null],p=[],I=this.table,C="",R=0,x=0,_=2,U=1,X=p.slice.call(arguments,1),M=Object.create(this.lexer),G={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(G.yy[F]=this.yy[F]);M.setInput(d,G.yy),G.yy.lexer=M,G.yy.parser=this,typeof M.yylloc=="undefined"&&(M.yylloc={});var b=M.yylloc;p.push(b);var Y=M.options&&M.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function k(V){s.length=s.length-2*V,f.length=f.length-V,p.length=p.length-V}S(k,"popStack");function H(){var V;return V=l.pop()||M.lex()||U,typeof V!="number"&&(V instanceof Array&&(l=V,V=l.pop()),V=N.symbols_[V]||V),V}S(H,"lex");for(var P,B,$,K,Q={},J,j,ut,q;;){if(B=s[s.length-1],this.defaultActions[B]?$=this.defaultActions[B]:((P===null||typeof P=="undefined")&&(P=H()),$=I[B]&&I[B][P]),typeof $=="undefined"||!$.length||!$[0]){var it="";q=[];for(J in I[B])this.terminals_[J]&&J>_&&q.push("'"+this.terminals_[J]+"'");M.showPosition?it="Parse error on line "+(R+1)+`: `+M.showPosition()+` Expecting `+q.join(", ")+", got '"+(this.terminals_[P]||P)+"'":it="Parse error on line "+(R+1)+": Unexpected "+(P==U?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(it,{text:M.match,token:this.terminals_[P]||P,line:M.yylineno,loc:b,expected:q})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+P);switch($[0]){case 1:s.push(P),f.push(M.yytext),p.push(M.yylloc),s.push($[1]),P=null,x=M.yyleng,C=M.yytext,R=M.yylineno,b=M.yylloc;break;case 2:if(j=this.productions_[$[1]][1],Q.$=f[f.length-j],Q._$={first_line:p[p.length-(j||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(j||1)].first_column,last_column:p[p.length-1].last_column},Y&&(Q._$.range=[p[p.length-(j||1)].range[0],p[p.length-1].range[1]]),K=this.performAction.apply(Q,[C,x,R,G.yy,$[1],f,p].concat(X)),typeof K!="undefined")return K;j&&(s=s.slice(0,-1*j*2),f=f.slice(0,-1*j),p=p.slice(0,-1*j)),s.push(this.productions_[$[1]][0]),f.push(Q.$),p.push(Q._$),ut=I[s[s.length-2]][s[s.length-1]],s.push(ut);break;case 3:return!0}}return!0},"parse")},m=function(){var O={EOF:1,parseError:S(function(N,s){if(this.yy.parser)this.yy.parser.parseError(N,s);else throw new Error(N)},"parseError"),setInput:S(function(d,N){return this.yy=N||this.yy||{},this._input=d,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 d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var N=d.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),d},"input"),unput:S(function(d){var N=d.length,s=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-N),this.offset-=N;var l=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 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:s?(s.length===l.length?this.yylloc.first_column:0)+l[l.length-s.length].length-s[0].length:this.yylloc.first_column-N},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-N]),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(d){this.unput(this.match.slice(d))},"less"),pastInput:S(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var d=this.pastInput(),N=new Array(d.length+1).join("-");return d+this.upcomingInput()+` diff --git a/pr-preview/pr-419/assets/packet-W2GHVCYJ-CH651zQ2.js b/pr-preview/pr-419/assets/packet-W2GHVCYJ-CH651zQ2.js deleted file mode 100644 index 01dc2a2d0..000000000 --- a/pr-preview/pr-419/assets/packet-W2GHVCYJ-CH651zQ2.js +++ /dev/null @@ -1 +0,0 @@ -import{P as l,a as u}from"./mermaid-parser.core-D7Lfk3oe.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./Using existing ones-1ACZX-0W.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";import"./clone-qL6R6e7B.js";export{l as PacketModule,u as createPacketServices}; diff --git a/pr-preview/pr-419/assets/packet-W2GHVCYJ-CsCAhKMv.js b/pr-preview/pr-419/assets/packet-W2GHVCYJ-CsCAhKMv.js new file mode 100644 index 000000000..36aab5de0 --- /dev/null +++ b/pr-preview/pr-419/assets/packet-W2GHVCYJ-CsCAhKMv.js @@ -0,0 +1 @@ +import{P as l,a as u}from"./mermaid-parser.core-B5qxKanj.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./Using existing ones-DVOwGlbd.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";import"./clone-Bp7QSEXO.js";export{l as PacketModule,u as createPacketServices}; diff --git a/pr-preview/pr-419/assets/pie-BEWT4RHE-DrvWmk3I.js b/pr-preview/pr-419/assets/pie-BEWT4RHE-DrvWmk3I.js new file mode 100644 index 000000000..5571aa3f7 --- /dev/null +++ b/pr-preview/pr-419/assets/pie-BEWT4RHE-DrvWmk3I.js @@ -0,0 +1 @@ +import{b as l,d as u}from"./mermaid-parser.core-B5qxKanj.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./Using existing ones-DVOwGlbd.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";import"./clone-Bp7QSEXO.js";export{l as PieModule,u as createPieServices}; diff --git a/pr-preview/pr-419/assets/pie-BEWT4RHE-chtKKmyw.js b/pr-preview/pr-419/assets/pie-BEWT4RHE-chtKKmyw.js deleted file mode 100644 index 374dac98f..000000000 --- a/pr-preview/pr-419/assets/pie-BEWT4RHE-chtKKmyw.js +++ /dev/null @@ -1 +0,0 @@ -import{b as l,d as u}from"./mermaid-parser.core-D7Lfk3oe.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./Using existing ones-1ACZX-0W.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";import"./clone-qL6R6e7B.js";export{l as PieModule,u as createPieServices}; diff --git a/pr-preview/pr-419/assets/pieDiagram-OZX6XH5M-DoWSWPYl.js b/pr-preview/pr-419/assets/pieDiagram-OZX6XH5M-Bu0ZpKbB.js similarity index 91% rename from pr-preview/pr-419/assets/pieDiagram-OZX6XH5M-DoWSWPYl.js rename to pr-preview/pr-419/assets/pieDiagram-OZX6XH5M-Bu0ZpKbB.js index 85d1a3e95..88d5cb061 100644 --- a/pr-preview/pr-419/assets/pieDiagram-OZX6XH5M-DoWSWPYl.js +++ b/pr-preview/pr-419/assets/pieDiagram-OZX6XH5M-Bu0ZpKbB.js @@ -1,4 +1,4 @@ -var R=(t,r,p)=>new Promise((o,c)=>{var h=a=>{try{e(p.next(a))}catch(s){c(s)}},i=a=>{try{e(p.throw(a))}catch(s){c(s)}},e=a=>a.done?o(a.value):Promise.resolve(a.value).then(h,i);e((p=p.apply(t,r)).next())});import{p as j}from"./chunk-OQCM5LHU-Bqj1NGSi.js";import{Y as A,P as z,aE as q,F as K,q as Y,r as Z,s as H,g as J,c as Q,b as X,_ as d,l as F,t as tt,d as et,G as at,K as rt,a6 as nt,k as it}from"./Using existing ones-1ACZX-0W.js";import{p as st}from"./mermaid-parser.core-D7Lfk3oe.js";import{d as I}from"./arc-CGPltd1w.js";import{o as ot}from"./ordinal-Cboi1Yqb.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";import"./clone-qL6R6e7B.js";import"./init-Gi6I4Gst.js";function lt(t,r){return rt?1:r>=t?0:NaN}function ct(t){return t}function pt(){var t=ct,r=lt,p=null,o=A(0),c=A(z),h=A(0);function i(e){var a,s=(e=q(e)).length,u,w,y=0,g=new Array(s),n=new Array(s),f=+o.apply(this,arguments),C=Math.min(z,Math.max(-z,c.apply(this,arguments)-f)),v,$=Math.min(Math.abs(C)/s,h.apply(this,arguments)),E=$*(C<0?-1:1),m;for(a=0;a0&&(y+=m);for(r!=null?g.sort(function(x,D){return r(n[x],n[D])}):p!=null&&g.sort(function(x,D){return p(e[x],e[D])}),a=0,w=y?(C-s*E)/y:0;a0?m*w:0)+E,n[u]={data:e[u],index:a,value:m,startAngle:f,endAngle:v,padAngle:$};return n}return i.value=function(e){return arguments.length?(t=typeof e=="function"?e:A(+e),i):t},i.sortValues=function(e){return arguments.length?(r=e,p=null,i):r},i.sort=function(e){return arguments.length?(p=e,r=null,i):p},i.startAngle=function(e){return arguments.length?(o=typeof e=="function"?e:A(+e),i):o},i.endAngle=function(e){return arguments.length?(c=typeof e=="function"?e:A(+e),i):c},i.padAngle=function(e){return arguments.length?(h=typeof e=="function"?e:A(+e),i):h},i}var L=K.pie,G={sections:new Map,showData:!1,config:L},k=G.sections,P=G.showData,ut=structuredClone(L),gt=d(()=>structuredClone(ut),"getConfig"),dt=d(()=>{k=new Map,P=G.showData,tt()},"clear"),ft=d(({label:t,value:r})=>{k.has(t)||(k.set(t,r),F.debug(`added new section: ${t}, with value: ${r}`))},"addSection"),mt=d(()=>k,"getSections"),ht=d(t=>{P=t},"setShowData"),vt=d(()=>P,"getShowData"),W={getConfig:gt,clear:dt,setDiagramTitle:Y,getDiagramTitle:Z,setAccTitle:H,getAccTitle:J,setAccDescription:Q,getAccDescription:X,addSection:ft,getSections:mt,setShowData:ht,getShowData:vt},yt=d((t,r)=>{j(t,r),r.setShowData(t.showData),t.sections.map(r.addSection)},"populateDb"),xt={parse:d(t=>R(void 0,null,function*(){const r=yield st("pie",t);F.debug(r),yt(r,W)}),"parse")},St=d(t=>` +var R=(t,r,p)=>new Promise((o,c)=>{var h=a=>{try{e(p.next(a))}catch(s){c(s)}},i=a=>{try{e(p.throw(a))}catch(s){c(s)}},e=a=>a.done?o(a.value):Promise.resolve(a.value).then(h,i);e((p=p.apply(t,r)).next())});import{p as j}from"./chunk-OQCM5LHU-BNRaZOS_.js";import{Y as A,P as z,aE as q,F as K,q as Y,r as Z,s as H,g as J,c as Q,b as X,_ as d,l as F,t as tt,d as et,G as at,K as rt,a6 as nt,k as it}from"./Using existing ones-DVOwGlbd.js";import{p as st}from"./mermaid-parser.core-B5qxKanj.js";import{d as I}from"./arc-CyEqX_RK.js";import{o as ot}from"./ordinal-Cboi1Yqb.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";import"./clone-Bp7QSEXO.js";import"./init-Gi6I4Gst.js";function lt(t,r){return rt?1:r>=t?0:NaN}function ct(t){return t}function pt(){var t=ct,r=lt,p=null,o=A(0),c=A(z),h=A(0);function i(e){var a,s=(e=q(e)).length,u,w,y=0,g=new Array(s),n=new Array(s),f=+o.apply(this,arguments),C=Math.min(z,Math.max(-z,c.apply(this,arguments)-f)),v,$=Math.min(Math.abs(C)/s,h.apply(this,arguments)),E=$*(C<0?-1:1),m;for(a=0;a0&&(y+=m);for(r!=null?g.sort(function(x,D){return r(n[x],n[D])}):p!=null&&g.sort(function(x,D){return p(e[x],e[D])}),a=0,w=y?(C-s*E)/y:0;a0?m*w:0)+E,n[u]={data:e[u],index:a,value:m,startAngle:f,endAngle:v,padAngle:$};return n}return i.value=function(e){return arguments.length?(t=typeof e=="function"?e:A(+e),i):t},i.sortValues=function(e){return arguments.length?(r=e,p=null,i):r},i.sort=function(e){return arguments.length?(p=e,r=null,i):p},i.startAngle=function(e){return arguments.length?(o=typeof e=="function"?e:A(+e),i):o},i.endAngle=function(e){return arguments.length?(c=typeof e=="function"?e:A(+e),i):c},i.padAngle=function(e){return arguments.length?(h=typeof e=="function"?e:A(+e),i):h},i}var L=K.pie,G={sections:new Map,showData:!1,config:L},k=G.sections,P=G.showData,ut=structuredClone(L),gt=d(()=>structuredClone(ut),"getConfig"),dt=d(()=>{k=new Map,P=G.showData,tt()},"clear"),ft=d(({label:t,value:r})=>{k.has(t)||(k.set(t,r),F.debug(`added new section: ${t}, with value: ${r}`))},"addSection"),mt=d(()=>k,"getSections"),ht=d(t=>{P=t},"setShowData"),vt=d(()=>P,"getShowData"),W={getConfig:gt,clear:dt,setDiagramTitle:Y,getDiagramTitle:Z,setAccTitle:H,getAccTitle:J,setAccDescription:Q,getAccDescription:X,addSection:ft,getSections:mt,setShowData:ht,getShowData:vt},yt=d((t,r)=>{j(t,r),r.setShowData(t.showData),t.sections.map(r.addSection)},"populateDb"),xt={parse:d(t=>R(void 0,null,function*(){const r=yield st("pie",t);F.debug(r),yt(r,W)}),"parse")},St=d(t=>` .pieCircle{ stroke: ${t.pieStrokeColor}; stroke-width : ${t.pieStrokeWidth}; diff --git a/pr-preview/pr-419/assets/preview-so6oI_c-.js b/pr-preview/pr-419/assets/preview-C-P8A6st.js similarity index 75% rename from pr-preview/pr-419/assets/preview-so6oI_c-.js rename to pr-preview/pr-419/assets/preview-C-P8A6st.js index c61c4355a..69632355b 100644 --- a/pr-preview/pr-419/assets/preview-so6oI_c-.js +++ b/pr-preview/pr-419/assets/preview-C-P8A6st.js @@ -1,7 +1,7 @@ -var l=(e,o,r)=>new Promise((a,i)=>{var n=t=>{try{s(r.next(t))}catch(_){i(_)}},m=t=>{try{s(r.throw(t))}catch(_){i(_)}},s=t=>t.done?a(t.value):Promise.resolve(t.value).then(n,m);s((r=r.apply(e,o)).next())});import{_ as O}from"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";const{global:c}=__STORYBOOK_MODULE_GLOBAL__;var d,p=Object.entries((d=c.TAGS_OPTIONS)!=null?d:{}).reduce((e,o)=>{let[r,a]=o;return a.excludeFromDocsStories&&(e[r]=!0),e},{}),D={docs:{renderer:()=>l(void 0,null,function*(){let{DocsRenderer:e}=yield O(()=>import("./DocsRenderer-K4EAMTCU-DeNNJ93g.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url);return new e}),stories:{filter:e=>{var o;return(e.tags||[]).filter(r=>p[r]).length===0&&!((o=e.parameters.docs)!=null&&o.disable)}}}};export{D as parameters}; +var l=(e,o,r)=>new Promise((a,i)=>{var n=t=>{try{s(r.next(t))}catch(_){i(_)}},m=t=>{try{s(r.throw(t))}catch(_){i(_)}},s=t=>t.done?a(t.value):Promise.resolve(t.value).then(n,m);s((r=r.apply(e,o)).next())});import{_ as O}from"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";const{global:c}=__STORYBOOK_MODULE_GLOBAL__;var d,p=Object.entries((d=c.TAGS_OPTIONS)!=null?d:{}).reduce((e,o)=>{let[r,a]=o;return a.excludeFromDocsStories&&(e[r]=!0),e},{}),D={docs:{renderer:()=>l(void 0,null,function*(){let{DocsRenderer:e}=yield O(()=>import("./DocsRenderer-K4EAMTCU-DJSJuGmH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url);return new e}),stories:{filter:e=>{var o;return(e.tags||[]).filter(r=>p[r]).length===0&&!((o=e.parameters.docs)!=null&&o.disable)}}}};export{D as parameters}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./DocsRenderer-K4EAMTCU-DeNNJ93g.js","./iframe-CrQm7WUj.js","./index-Ca44TZ0D.js","./react-18-ay8dXnv6.js","./index-DFiuTWKW.js","./index-BdmlDa2_.js","./extends-CCbyfPlC.js","./index-DYADbu9O.js","./isNativeReflectConstruct-DQQXTUsj.js","./index-BObpwDOh.js","./_getPrototype-fDUIJvdn.js","./_baseClone-BwI25-yt.js","./index-DrFu-skq.js"] + __vite__mapDeps.viteFileDeps = ["./DocsRenderer-K4EAMTCU-DJSJuGmH.js","./iframe-BNbdtpq9.js","./index-Ca44TZ0D.js","./react-18-ay8dXnv6.js","./index-DFiuTWKW.js","./index-XNuu3Woq.js","./extends-CCbyfPlC.js","./index-DYADbu9O.js","./isNativeReflectConstruct-DQQXTUsj.js","./index-BObpwDOh.js","./_getPrototype-fDUIJvdn.js","./_baseClone-BwI25-yt.js","./index-DrFu-skq.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/pr-preview/pr-419/assets/quadrantDiagram-VG34DGKC-CNKBWwSf.js b/pr-preview/pr-419/assets/quadrantDiagram-VG34DGKC-BTY3QjFH.js similarity index 99% rename from pr-preview/pr-419/assets/quadrantDiagram-VG34DGKC-CNKBWwSf.js rename to pr-preview/pr-419/assets/quadrantDiagram-VG34DGKC-BTY3QjFH.js index aa61b59f3..5aa171e03 100644 --- a/pr-preview/pr-419/assets/quadrantDiagram-VG34DGKC-CNKBWwSf.js +++ b/pr-preview/pr-419/assets/quadrantDiagram-VG34DGKC-BTY3QjFH.js @@ -1,4 +1,4 @@ -var Fe=Object.defineProperty;var ie=Object.getOwnPropertySymbols;var Pe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable;var ae=(t,a,o)=>a in t?Fe(t,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[a]=o,Q=(t,a)=>{for(var o in a||(a={}))Pe.call(a,o)&&ae(t,o,a[o]);if(ie)for(var o of ie(a))ve.call(a,o)&&ae(t,o,a[o]);return t};import{_ as l,a1 as Ce,F as D,l as Ft,d as Rt,i as Le,r as se,s as Ee,g as De,q as ze,b as Ve,c as Ie,t as we,j as It,k as Be}from"./Using existing ones-1ACZX-0W.js";import{l as ne}from"./linear-DgCw1O8s.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./init-Gi6I4Gst.js";var wt=function(){var t=l(function(j,r,h,g){for(h=h||{},g=j.length;g--;h[j[g]]=r);return h},"o"),a=[1,3],o=[1,4],u=[1,5],c=[1,6],p=[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],n=[55,56,57],A=[2,36],x=[1,37],q=[1,36],b=[1,38],T=[1,35],m=[1,43],d=[1,41],N=[1,14],Y=[1,23],G=[1,18],mt=[1,19],qt=[1,20],ht=[1,21],vt=[1,22],ct=[1,24],dt=[1,25],ut=[1,26],xt=[1,27],ft=[1,28],gt=[1,29],B=[1,32],e=[1,33],k=[1,34],F=[1,39],P=[1,40],v=[1,42],C=[1,44],H=[1,62],X=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,65],Wt=[1,66],Ut=[1,67],Qt=[1,68],Ot=[1,69],Ht=[1,70],Xt=[1,71],Mt=[1,72],Yt=[1,73],jt=[1,74],Gt=[1,75],Kt=[1,76],I=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,90],$=[1,91],tt=[1,92],et=[1,99],it=[1,93],at=[1,96],nt=[1,94],st=[1,95],rt=[1,97],ot=[1,98],Ct=[1,102],Zt=[10,55,56,57],W=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],Lt={trace:l(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:l(function(r,h,g,f,_,i,pt){var s=i.length-1;switch(_){case 23:this.$=i[s];break;case 24:this.$=i[s-1]+""+i[s];break;case 26:this.$=i[s-1]+i[s];break;case 27:this.$=[i[s].trim()];break;case 28:i[s-2].push(i[s].trim()),this.$=i[s-2];break;case 29:this.$=i[s-4],f.addClass(i[s-2],i[s]);break;case 37:this.$=[];break;case 42:this.$=i[s].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=i[s].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=i[s].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(i[s].substr(8)),this.$=i[s].substr(8);break;case 47:f.addPoint(i[s-3],"",i[s-1],i[s],[]);break;case 48:f.addPoint(i[s-4],i[s-3],i[s-1],i[s],[]);break;case 49:f.addPoint(i[s-4],"",i[s-2],i[s-1],i[s]);break;case 50:f.addPoint(i[s-5],i[s-4],i[s-2],i[s-1],i[s]);break;case 51:f.setXAxisLeftText(i[s-2]),f.setXAxisRightText(i[s]);break;case 52:i[s-1].text+=" ⟶ ",f.setXAxisLeftText(i[s-1]);break;case 53:f.setXAxisLeftText(i[s]);break;case 54:f.setYAxisBottomText(i[s-2]),f.setYAxisTopText(i[s]);break;case 55:i[s-1].text+=" ⟶ ",f.setYAxisBottomText(i[s-1]);break;case 56:f.setYAxisBottomText(i[s]);break;case 57:f.setQuadrant1Text(i[s]);break;case 58:f.setQuadrant2Text(i[s]);break;case 59:f.setQuadrant3Text(i[s]);break;case 60:f.setQuadrant4Text(i[s]);break;case 64:this.$={text:i[s],type:"text"};break;case 65:this.$={text:i[s-1].text+""+i[s],type:i[s-1].type};break;case 66:this.$={text:i[s],type:"text"};break;case 67:this.$={text:i[s],type:"markdown"};break;case 68:this.$=i[s];break;case 69:this.$=i[s-1]+""+i[s];break}},"anonymous"),table:[{18:a,26:1,27:2,28:o,55:u,56:c,57:p},{1:[3]},{18:a,26:8,27:2,28:o,55:u,56:c,57:p},{18:a,26:9,27:2,28:o,55:u,56:c,57:p},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(n,A,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:x,5:q,10:b,12:T,13:m,14:d,18:N,25:Y,35:G,37:mt,39:qt,41:ht,42:vt,48:ct,50:dt,51:ut,52:xt,53:ft,54:gt,60:B,61:e,63:k,64:F,65:P,66:v,67:C}),t(y,[2,34]),{27:45,55:u,56:c,57:p},t(n,[2,37]),t(n,A,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:x,5:q,10:b,12:T,13:m,14:d,18:N,25:Y,35:G,37:mt,39:qt,41:ht,42:vt,48:ct,50:dt,51:ut,52:xt,53:ft,54:gt,60:B,61:e,63:k,64:F,65:P,66:v,67:C}),t(n,[2,39]),t(n,[2,40]),t(n,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(n,[2,45]),t(n,[2,46]),{18:[1,50]},{4:x,5:q,10:b,12:T,13:m,14:d,43:51,58:31,60:B,61:e,63:k,64:F,65:P,66:v,67:C},{4:x,5:q,10:b,12:T,13:m,14:d,43:52,58:31,60:B,61:e,63:k,64:F,65:P,66:v,67:C},{4:x,5:q,10:b,12:T,13:m,14:d,43:53,58:31,60:B,61:e,63:k,64:F,65:P,66:v,67:C},{4:x,5:q,10:b,12:T,13:m,14:d,43:54,58:31,60:B,61:e,63:k,64:F,65:P,66:v,67:C},{4:x,5:q,10:b,12:T,13:m,14:d,43:55,58:31,60:B,61:e,63:k,64:F,65:P,66:v,67:C},{4:x,5:q,10:b,12:T,13:m,14:d,43:56,58:31,60:B,61:e,63:k,64:F,65:P,66:v,67:C},{4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,44:[1,57],47:[1,58],58:60,59:59,63:k,64:F,65:P,66:v,67:C},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(y,[2,35]),t(n,[2,38]),t(n,[2,42]),t(n,[2,43]),t(n,[2,44]),{3:64,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:63},t(n,[2,53],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,49:[1,77],63:k,64:F,65:P,66:v,67:C}),t(n,[2,56],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,49:[1,78],63:k,64:F,65:P,66:v,67:C}),t(n,[2,57],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,63:k,64:F,65:P,66:v,67:C}),t(n,[2,58],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,63:k,64:F,65:P,66:v,67:C}),t(n,[2,59],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,63:k,64:F,65:P,66:v,67:C}),t(n,[2,60],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,63:k,64:F,65:P,66:v,67:C}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,81]},t(I,[2,23]),t(I,[2,1]),t(I,[2,2]),t(I,[2,3]),t(I,[2,4]),t(I,[2,5]),t(I,[2,6]),t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12]),t(n,[2,52],{58:31,43:83,4:x,5:q,10:b,12:T,13:m,14:d,60:B,61:e,63:k,64:F,65:P,66:v,67:C}),t(n,[2,55],{58:31,43:84,4:x,5:q,10:b,12:T,13:m,14:d,60:B,61:e,63:k,64:F,65:P,66:v,67:C}),{46:[1,85]},{45:[1,86]},{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:88,23:87},t(I,[2,24]),t(n,[2,51],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,63:k,64:F,65:P,66:v,67:C}),t(n,[2,54],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,63:k,64:F,65:P,66:v,67:C}),t(n,[2,47],{22:88,16:89,23:100,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{46:[1,101]},t(n,[2,29],{10:Ct}),t(Zt,[2,27],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),t(W,[2,25]),t(W,[2,13]),t(W,[2,14]),t(W,[2,15]),t(W,[2,16]),t(W,[2,17]),t(W,[2,18]),t(W,[2,19]),t(W,[2,20]),t(W,[2,21]),t(W,[2,22]),t(n,[2,49],{10:Ct}),t(n,[2,48],{22:88,16:89,23:104,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:105},t(W,[2,26]),t(n,[2,50],{10:Ct}),t(Zt,[2,28],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:l(function(r,h){if(h.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=h,g}},"parseError"),parse:l(function(r){var h=this,g=[0],f=[],_=[null],i=[],pt=this.table,s="",St=0,Jt=0,Se=2,$t=1,_e=i.slice.call(arguments,1),E=Object.create(this.lexer),K={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(K.yy[Et]=this.yy[Et]);E.setInput(r,K.yy),K.yy.lexer=E,K.yy.parser=this,typeof E.yylloc=="undefined"&&(E.yylloc={});var Dt=E.yylloc;i.push(Dt);var Ae=E.options&&E.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(R){g.length=g.length-2*R,_.length=_.length-R,i.length=i.length-R}l(ke,"popStack");function te(){var R;return R=f.pop()||E.lex()||$t,typeof R!="number"&&(R instanceof Array&&(f=R,R=f.pop()),R=h.symbols_[R]||R),R}l(te,"lex");for(var w,Z,U,zt,lt={},_t,M,ee,At;;){if(Z=g[g.length-1],this.defaultActions[Z]?U=this.defaultActions[Z]:((w===null||typeof w=="undefined")&&(w=te()),U=pt[Z]&&pt[Z][w]),typeof U=="undefined"||!U.length||!U[0]){var Vt="";At=[];for(_t in pt[Z])this.terminals_[_t]&&_t>Se&&At.push("'"+this.terminals_[_t]+"'");E.showPosition?Vt="Parse error on line "+(St+1)+`: +var Fe=Object.defineProperty;var ie=Object.getOwnPropertySymbols;var Pe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable;var ae=(t,a,o)=>a in t?Fe(t,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[a]=o,Q=(t,a)=>{for(var o in a||(a={}))Pe.call(a,o)&&ae(t,o,a[o]);if(ie)for(var o of ie(a))ve.call(a,o)&&ae(t,o,a[o]);return t};import{_ as l,a1 as Ce,F as D,l as Ft,d as Rt,i as Le,r as se,s as Ee,g as De,q as ze,b as Ve,c as Ie,t as we,j as It,k as Be}from"./Using existing ones-DVOwGlbd.js";import{l as ne}from"./linear-CvLLWfVT.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./init-Gi6I4Gst.js";var wt=function(){var t=l(function(j,r,h,g){for(h=h||{},g=j.length;g--;h[j[g]]=r);return h},"o"),a=[1,3],o=[1,4],u=[1,5],c=[1,6],p=[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],n=[55,56,57],A=[2,36],x=[1,37],q=[1,36],b=[1,38],T=[1,35],m=[1,43],d=[1,41],N=[1,14],Y=[1,23],G=[1,18],mt=[1,19],qt=[1,20],ht=[1,21],vt=[1,22],ct=[1,24],dt=[1,25],ut=[1,26],xt=[1,27],ft=[1,28],gt=[1,29],B=[1,32],e=[1,33],k=[1,34],F=[1,39],P=[1,40],v=[1,42],C=[1,44],H=[1,62],X=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,65],Wt=[1,66],Ut=[1,67],Qt=[1,68],Ot=[1,69],Ht=[1,70],Xt=[1,71],Mt=[1,72],Yt=[1,73],jt=[1,74],Gt=[1,75],Kt=[1,76],I=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,90],$=[1,91],tt=[1,92],et=[1,99],it=[1,93],at=[1,96],nt=[1,94],st=[1,95],rt=[1,97],ot=[1,98],Ct=[1,102],Zt=[10,55,56,57],W=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],Lt={trace:l(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:l(function(r,h,g,f,_,i,pt){var s=i.length-1;switch(_){case 23:this.$=i[s];break;case 24:this.$=i[s-1]+""+i[s];break;case 26:this.$=i[s-1]+i[s];break;case 27:this.$=[i[s].trim()];break;case 28:i[s-2].push(i[s].trim()),this.$=i[s-2];break;case 29:this.$=i[s-4],f.addClass(i[s-2],i[s]);break;case 37:this.$=[];break;case 42:this.$=i[s].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=i[s].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=i[s].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(i[s].substr(8)),this.$=i[s].substr(8);break;case 47:f.addPoint(i[s-3],"",i[s-1],i[s],[]);break;case 48:f.addPoint(i[s-4],i[s-3],i[s-1],i[s],[]);break;case 49:f.addPoint(i[s-4],"",i[s-2],i[s-1],i[s]);break;case 50:f.addPoint(i[s-5],i[s-4],i[s-2],i[s-1],i[s]);break;case 51:f.setXAxisLeftText(i[s-2]),f.setXAxisRightText(i[s]);break;case 52:i[s-1].text+=" ⟶ ",f.setXAxisLeftText(i[s-1]);break;case 53:f.setXAxisLeftText(i[s]);break;case 54:f.setYAxisBottomText(i[s-2]),f.setYAxisTopText(i[s]);break;case 55:i[s-1].text+=" ⟶ ",f.setYAxisBottomText(i[s-1]);break;case 56:f.setYAxisBottomText(i[s]);break;case 57:f.setQuadrant1Text(i[s]);break;case 58:f.setQuadrant2Text(i[s]);break;case 59:f.setQuadrant3Text(i[s]);break;case 60:f.setQuadrant4Text(i[s]);break;case 64:this.$={text:i[s],type:"text"};break;case 65:this.$={text:i[s-1].text+""+i[s],type:i[s-1].type};break;case 66:this.$={text:i[s],type:"text"};break;case 67:this.$={text:i[s],type:"markdown"};break;case 68:this.$=i[s];break;case 69:this.$=i[s-1]+""+i[s];break}},"anonymous"),table:[{18:a,26:1,27:2,28:o,55:u,56:c,57:p},{1:[3]},{18:a,26:8,27:2,28:o,55:u,56:c,57:p},{18:a,26:9,27:2,28:o,55:u,56:c,57:p},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(n,A,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:x,5:q,10:b,12:T,13:m,14:d,18:N,25:Y,35:G,37:mt,39:qt,41:ht,42:vt,48:ct,50:dt,51:ut,52:xt,53:ft,54:gt,60:B,61:e,63:k,64:F,65:P,66:v,67:C}),t(y,[2,34]),{27:45,55:u,56:c,57:p},t(n,[2,37]),t(n,A,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:x,5:q,10:b,12:T,13:m,14:d,18:N,25:Y,35:G,37:mt,39:qt,41:ht,42:vt,48:ct,50:dt,51:ut,52:xt,53:ft,54:gt,60:B,61:e,63:k,64:F,65:P,66:v,67:C}),t(n,[2,39]),t(n,[2,40]),t(n,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(n,[2,45]),t(n,[2,46]),{18:[1,50]},{4:x,5:q,10:b,12:T,13:m,14:d,43:51,58:31,60:B,61:e,63:k,64:F,65:P,66:v,67:C},{4:x,5:q,10:b,12:T,13:m,14:d,43:52,58:31,60:B,61:e,63:k,64:F,65:P,66:v,67:C},{4:x,5:q,10:b,12:T,13:m,14:d,43:53,58:31,60:B,61:e,63:k,64:F,65:P,66:v,67:C},{4:x,5:q,10:b,12:T,13:m,14:d,43:54,58:31,60:B,61:e,63:k,64:F,65:P,66:v,67:C},{4:x,5:q,10:b,12:T,13:m,14:d,43:55,58:31,60:B,61:e,63:k,64:F,65:P,66:v,67:C},{4:x,5:q,10:b,12:T,13:m,14:d,43:56,58:31,60:B,61:e,63:k,64:F,65:P,66:v,67:C},{4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,44:[1,57],47:[1,58],58:60,59:59,63:k,64:F,65:P,66:v,67:C},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(y,[2,35]),t(n,[2,38]),t(n,[2,42]),t(n,[2,43]),t(n,[2,44]),{3:64,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:63},t(n,[2,53],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,49:[1,77],63:k,64:F,65:P,66:v,67:C}),t(n,[2,56],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,49:[1,78],63:k,64:F,65:P,66:v,67:C}),t(n,[2,57],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,63:k,64:F,65:P,66:v,67:C}),t(n,[2,58],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,63:k,64:F,65:P,66:v,67:C}),t(n,[2,59],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,63:k,64:F,65:P,66:v,67:C}),t(n,[2,60],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,63:k,64:F,65:P,66:v,67:C}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,81]},t(I,[2,23]),t(I,[2,1]),t(I,[2,2]),t(I,[2,3]),t(I,[2,4]),t(I,[2,5]),t(I,[2,6]),t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12]),t(n,[2,52],{58:31,43:83,4:x,5:q,10:b,12:T,13:m,14:d,60:B,61:e,63:k,64:F,65:P,66:v,67:C}),t(n,[2,55],{58:31,43:84,4:x,5:q,10:b,12:T,13:m,14:d,60:B,61:e,63:k,64:F,65:P,66:v,67:C}),{46:[1,85]},{45:[1,86]},{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:88,23:87},t(I,[2,24]),t(n,[2,51],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,63:k,64:F,65:P,66:v,67:C}),t(n,[2,54],{59:59,58:60,4:x,5:q,8:H,10:b,12:T,13:m,14:d,18:X,63:k,64:F,65:P,66:v,67:C}),t(n,[2,47],{22:88,16:89,23:100,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{46:[1,101]},t(n,[2,29],{10:Ct}),t(Zt,[2,27],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),t(W,[2,25]),t(W,[2,13]),t(W,[2,14]),t(W,[2,15]),t(W,[2,16]),t(W,[2,17]),t(W,[2,18]),t(W,[2,19]),t(W,[2,20]),t(W,[2,21]),t(W,[2,22]),t(n,[2,49],{10:Ct}),t(n,[2,48],{22:88,16:89,23:104,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:105},t(W,[2,26]),t(n,[2,50],{10:Ct}),t(Zt,[2,28],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:l(function(r,h){if(h.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=h,g}},"parseError"),parse:l(function(r){var h=this,g=[0],f=[],_=[null],i=[],pt=this.table,s="",St=0,Jt=0,Se=2,$t=1,_e=i.slice.call(arguments,1),E=Object.create(this.lexer),K={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(K.yy[Et]=this.yy[Et]);E.setInput(r,K.yy),K.yy.lexer=E,K.yy.parser=this,typeof E.yylloc=="undefined"&&(E.yylloc={});var Dt=E.yylloc;i.push(Dt);var Ae=E.options&&E.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(R){g.length=g.length-2*R,_.length=_.length-R,i.length=i.length-R}l(ke,"popStack");function te(){var R;return R=f.pop()||E.lex()||$t,typeof R!="number"&&(R instanceof Array&&(f=R,R=f.pop()),R=h.symbols_[R]||R),R}l(te,"lex");for(var w,Z,U,zt,lt={},_t,M,ee,At;;){if(Z=g[g.length-1],this.defaultActions[Z]?U=this.defaultActions[Z]:((w===null||typeof w=="undefined")&&(w=te()),U=pt[Z]&&pt[Z][w]),typeof U=="undefined"||!U.length||!U[0]){var Vt="";At=[];for(_t in pt[Z])this.terminals_[_t]&&_t>Se&&At.push("'"+this.terminals_[_t]+"'");E.showPosition?Vt="Parse error on line "+(St+1)+`: `+E.showPosition()+` Expecting `+At.join(", ")+", got '"+(this.terminals_[w]||w)+"'":Vt="Parse error on line "+(St+1)+": Unexpected "+(w==$t?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(Vt,{text:E.match,token:this.terminals_[w]||w,line:E.yylineno,loc:Dt,expected:At})}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+w);switch(U[0]){case 1:g.push(w),_.push(E.yytext),i.push(E.yylloc),g.push(U[1]),w=null,Jt=E.yyleng,s=E.yytext,St=E.yylineno,Dt=E.yylloc;break;case 2:if(M=this.productions_[U[1]][1],lt.$=_[_.length-M],lt._$={first_line:i[i.length-(M||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(M||1)].first_column,last_column:i[i.length-1].last_column},Ae&&(lt._$.range=[i[i.length-(M||1)].range[0],i[i.length-1].range[1]]),zt=this.performAction.apply(lt,[s,Jt,St,K.yy,U[1],_,i].concat(_e)),typeof zt!="undefined")return zt;M&&(g=g.slice(0,-1*M*2),_=_.slice(0,-1*M),i=i.slice(0,-1*M)),g.push(this.productions_[U[1]][0]),_.push(lt.$),i.push(lt._$),ee=pt[g[g.length-2]][g[g.length-1]],g.push(ee);break;case 3:return!0}}return!0},"parse")},be=function(){var j={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(r,h){return this.yy=h||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:l(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var h=r.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),r},"input"),unput:l(function(r){var h=r.length,g=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;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),g.length-1&&(this.yylineno-=g.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:g?(g.length===f.length?this.yylloc.first_column:0)+f[f.length-g.length].length-g[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[_[0],_[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(r){this.unput(this.match.slice(r))},"less"),pastInput:l(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:l(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:l(function(){var r=this.pastInput(),h=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/pr-preview/pr-419/assets/requirementDiagram-FPZB6IJI-BkzHvxH4.js b/pr-preview/pr-419/assets/requirementDiagram-FPZB6IJI-BOm83o6L.js similarity index 98% rename from pr-preview/pr-419/assets/requirementDiagram-FPZB6IJI-BkzHvxH4.js rename to pr-preview/pr-419/assets/requirementDiagram-FPZB6IJI-BOm83o6L.js index 296448eed..33f26bd6e 100644 --- a/pr-preview/pr-419/assets/requirementDiagram-FPZB6IJI-BkzHvxH4.js +++ b/pr-preview/pr-419/assets/requirementDiagram-FPZB6IJI-BOm83o6L.js @@ -1,4 +1,4 @@ -import{_ as r,d as ve,s as Fe,g as De,c as Pe,b as Ye,l as xe,t as Ue,j as ce,k as Be,a2 as Qe,e as Te}from"./Using existing ones-1ACZX-0W.js";import{G as He}from"./graph-BbauKfQB.js";import{l as We}from"./layout-CpgFbA5F.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";var he=function(){var e=r(function($,i,a,l){for(a=a||{},l=$.length;l--;a[$[l]]=i);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],g=[1,23],R=[1,24],I=[1,25],b=[1,26],w=[1,27],q=[1,20],v=[1,28],A=[1,29],F=[62,63],pe=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],fe=[1,47],ye=[1,48],_e=[1,49],ge=[1,50],Ee=[1,51],Re=[1,52],me=[1,53],O=[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],ne={trace:r(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:r(function(i,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:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},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:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{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:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{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:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{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:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{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:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{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(pe,[2,49]),e(pe,[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:fe,56:ye,57:_e,58:ge,59:Ee,60:Re,61:me},{52:54,55:fe,56:ye,57:_e,58:ge,59:Ee,60:Re,61:me},{5:[1,55]},{5:[1,56]},{53:[1,57]},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]),{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:v,63:A},{23:72,62:v,63:A},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:v,63:A},{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:r(function(i,a){if(a.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=a,l}},"parseError"),parse:r(function(i){var a=this,l=[0],n=[],f=[null],s=[],K=this.table,E="",te=0,Ie=0,Le=2,be=1,Oe=s.slice.call(arguments,1),m=Object.create(this.lexer),C={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(C.yy[se]=this.yy[se]);m.setInput(i,C.yy),C.yy.lexer=m,C.yy.parser=this,typeof m.yylloc=="undefined"&&(m.yylloc={});var ae=m.yylloc;s.push(ae);var Ce=m.options&&m.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(N){l.length=l.length-2*N,f.length=f.length-N,s.length=s.length-N}r(Me,"popStack");function Se(){var N;return N=n.pop()||m.lex()||be,typeof N!="number"&&(N instanceof Array&&(n=N,N=n.pop()),N=a.symbols_[N]||N),N}r(Se,"lex");for(var k,M,x,le,H={},ie,V,ke,re;;){if(M=l[l.length-1],this.defaultActions[M]?x=this.defaultActions[M]:((k===null||typeof k=="undefined")&&(k=Se()),x=K[M]&&K[M][k]),typeof x=="undefined"||!x.length||!x[0]){var oe="";re=[];for(ie in K[M])this.terminals_[ie]&&ie>Le&&re.push("'"+this.terminals_[ie]+"'");m.showPosition?oe="Parse error on line "+(te+1)+`: +import{_ as r,d as ve,s as Fe,g as De,c as Pe,b as Ye,l as xe,t as Ue,j as ce,k as Be,a2 as Qe,e as Te}from"./Using existing ones-DVOwGlbd.js";import{G as He}from"./graph-wuI2A7_P.js";import{l as We}from"./layout-CNdX_jlv.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";var he=function(){var e=r(function($,i,a,l){for(a=a||{},l=$.length;l--;a[$[l]]=i);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],g=[1,23],R=[1,24],I=[1,25],b=[1,26],w=[1,27],q=[1,20],v=[1,28],A=[1,29],F=[62,63],pe=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],fe=[1,47],ye=[1,48],_e=[1,49],ge=[1,50],Ee=[1,51],Re=[1,52],me=[1,53],O=[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],ne={trace:r(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:r(function(i,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:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},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:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{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:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{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:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{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:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{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:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{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(pe,[2,49]),e(pe,[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:fe,56:ye,57:_e,58:ge,59:Ee,60:Re,61:me},{52:54,55:fe,56:ye,57:_e,58:ge,59:Ee,60:Re,61:me},{5:[1,55]},{5:[1,56]},{53:[1,57]},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]),{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:v,63:A},{23:72,62:v,63:A},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:v,63:A},{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:r(function(i,a){if(a.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=a,l}},"parseError"),parse:r(function(i){var a=this,l=[0],n=[],f=[null],s=[],K=this.table,E="",te=0,Ie=0,Le=2,be=1,Oe=s.slice.call(arguments,1),m=Object.create(this.lexer),C={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(C.yy[se]=this.yy[se]);m.setInput(i,C.yy),C.yy.lexer=m,C.yy.parser=this,typeof m.yylloc=="undefined"&&(m.yylloc={});var ae=m.yylloc;s.push(ae);var Ce=m.options&&m.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(N){l.length=l.length-2*N,f.length=f.length-N,s.length=s.length-N}r(Me,"popStack");function Se(){var N;return N=n.pop()||m.lex()||be,typeof N!="number"&&(N instanceof Array&&(n=N,N=n.pop()),N=a.symbols_[N]||N),N}r(Se,"lex");for(var k,M,x,le,H={},ie,V,ke,re;;){if(M=l[l.length-1],this.defaultActions[M]?x=this.defaultActions[M]:((k===null||typeof k=="undefined")&&(k=Se()),x=K[M]&&K[M][k]),typeof x=="undefined"||!x.length||!x[0]){var oe="";re=[];for(ie in K[M])this.terminals_[ie]&&ie>Le&&re.push("'"+this.terminals_[ie]+"'");m.showPosition?oe="Parse error on line "+(te+1)+`: `+m.showPosition()+` Expecting `+re.join(", ")+", got '"+(this.terminals_[k]||k)+"'":oe="Parse error on line "+(te+1)+": Unexpected "+(k==be?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(oe,{text:m.match,token:this.terminals_[k]||k,line:m.yylineno,loc:ae,expected:re})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+k);switch(x[0]){case 1:l.push(k),f.push(m.yytext),s.push(m.yylloc),l.push(x[1]),k=null,Ie=m.yyleng,E=m.yytext,te=m.yylineno,ae=m.yylloc;break;case 2:if(V=this.productions_[x[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},Ce&&(H._$.range=[s[s.length-(V||1)].range[0],s[s.length-1].range[1]]),le=this.performAction.apply(H,[E,Ie,te,C.yy,x[1],f,s].concat(Oe)),typeof le!="undefined")return le;V&&(l=l.slice(0,-1*V*2),f=f.slice(0,-1*V),s=s.slice(0,-1*V)),l.push(this.productions_[x[1]][0]),f.push(H.$),s.push(H._$),ke=K[l[l.length-2]][l[l.length-1]],l.push(ke);break;case 3:return!0}}return!0},"parse")},$e=function(){var $={EOF:1,parseError:r(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:r(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:r(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:r(function(i){var a=i.length,l=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 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: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(i){this.unput(this.match.slice(i))},"less"),pastInput:r(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:r(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:r(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/pr-preview/pr-419/assets/sankeyDiagram-KMMQDL5K-BOnGZHfD.js b/pr-preview/pr-419/assets/sankeyDiagram-KMMQDL5K-MuXWLZMK.js similarity index 99% rename from pr-preview/pr-419/assets/sankeyDiagram-KMMQDL5K-BOnGZHfD.js rename to pr-preview/pr-419/assets/sankeyDiagram-KMMQDL5K-MuXWLZMK.js index 2353ed182..953f787ea 100644 --- a/pr-preview/pr-419/assets/sankeyDiagram-KMMQDL5K-BOnGZHfD.js +++ b/pr-preview/pr-419/assets/sankeyDiagram-KMMQDL5K-MuXWLZMK.js @@ -1,4 +1,4 @@ -import{_ as g,d as lt,g as _t,s as xt,b as vt,c as bt,r as wt,q as St,t as Lt,e as Et,p as At,j as H,aa as Tt}from"./Using existing ones-1ACZX-0W.js";import{o as Mt}from"./ordinal-Cboi1Yqb.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./init-Gi6I4Gst.js";function Nt(t){for(var i=t.length/6|0,s=new Array(i),l=0;l=l)&&(s=l);else{let l=-1;for(let h of t)(h=i(h,++l,t))!=null&&(s=h)&&(s=h)}return s}function gt(t,i){let s;if(i===void 0)for(const l of t)l!=null&&(s>l||s===void 0&&l>=l)&&(s=l);else{let l=-1;for(let h of t)(h=i(h,++l,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}function nt(t,i){let s=0;if(i===void 0)for(let l of t)(l=+l)&&(s+=l);else{let l=-1;for(let h of t)(h=+i(h,++l,t))&&(s+=h)}return s}function Pt(t){return t.target.depth}function Ct(t){return t.depth}function Ot(t,i){return i-1-t.height}function mt(t,i){return t.sourceLinks.length?t.depth:i-1}function Dt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?gt(t.sourceLinks,Pt)-1:0}function X(t){return function(){return t}}function ut(t,i){return Q(t.source,i.source)||t.index-i.index}function ht(t,i){return Q(t.target,i.target)||t.index-i.index}function Q(t,i){return t.y0-i.y0}function it(t){return t.value}function jt(t){return t.index}function zt(t){return t.nodes}function $t(t){return t.links}function ft(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}function yt({nodes:t}){for(const i of t){let s=i.y0,l=s;for(const h of i.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of i.targetLinks)h.y1=l+h.width/2,l+=h.width}}function Bt(){let t=0,i=0,s=1,l=1,h=24,d=8,p,k=jt,o=mt,a,c,_=zt,x=$t,y=6;function v(){const n={nodes:_.apply(null,arguments),links:x.apply(null,arguments)};return T(n),A(n),M(n),P(n),w(n),yt(n),n}v.update=function(n){return yt(n),n},v.nodeId=function(n){return arguments.length?(k=typeof n=="function"?n:X(n),v):k},v.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:X(n),v):o},v.nodeSort=function(n){return arguments.length?(a=n,v):a},v.nodeWidth=function(n){return arguments.length?(h=+n,v):h},v.nodePadding=function(n){return arguments.length?(d=p=+n,v):d},v.nodes=function(n){return arguments.length?(_=typeof n=="function"?n:X(n),v):_},v.links=function(n){return arguments.length?(x=typeof n=="function"?n:X(n),v):x},v.linkSort=function(n){return arguments.length?(c=n,v):c},v.size=function(n){return arguments.length?(t=i=0,s=+n[0],l=+n[1],v):[s-t,l-i]},v.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],l=+n[1][1],v):[[t,i],[s,l]]},v.iterations=function(n){return arguments.length?(y=+n,v):y};function T({nodes:n,links:f}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((e,r)=>[k(e,r,n),e]));for(const[e,r]of f.entries()){r.index=e;let{source:m,target:b}=r;typeof m!="object"&&(m=r.source=ft(u,m)),typeof b!="object"&&(b=r.target=ft(u,b)),m.sourceLinks.push(r),b.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(c),r.sort(c)}function A({nodes:n}){for(const f of n)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function M({nodes:n}){const f=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const m of u){m.depth=r;for(const{target:b}of m.sourceLinks)e.add(b)}if(++r>f)throw new Error("circular link");u=e,e=new Set}}function P({nodes:n}){const f=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const m of u){m.height=r;for(const{source:b}of m.targetLinks)e.add(b)}if(++r>f)throw new Error("circular link");u=e,e=new Set}}function D({nodes:n}){const f=ct(n,r=>r.depth)+1,u=(s-t-h)/(f-1),e=new Array(f);for(const r of n){const m=Math.max(0,Math.min(f-1,Math.floor(o.call(null,r,f))));r.layer=m,r.x0=t+m*u,r.x1=r.x0+h,e[m]?e[m].push(r):e[m]=[r]}if(a)for(const r of e)r.sort(a);return e}function B(n){const f=gt(n,u=>(l-i-(u.length-1)*p)/nt(u,it));for(const u of n){let e=i;for(const r of u){r.y0=e,r.y1=e+r.value*f,e=r.y1+p;for(const m of r.sourceLinks)m.width=m.value*f}e=(l-e+p)/(u.length+1);for(let r=0;ru.length)-1)),B(f);for(let u=0;u0))continue;let W=(L/V-b.y0)*f;b.y0+=W,b.y1+=W,z(b)}a===void 0&&m.sort(Q),C(m,u)}}function j(n,f,u){for(let e=n.length,r=e-2;r>=0;--r){const m=n[r];for(const b of m){let L=0,V=0;for(const{target:U,value:et}of b.sourceLinks){let G=et*(U.layer-b.layer);L+=E(b,U)*G,V+=G}if(!(V>0))continue;let W=(L/V-b.y0)*f;b.y0+=W,b.y1+=W,z(b)}a===void 0&&m.sort(Q),C(m,u)}}function C(n,f){const u=n.length>>1,e=n[u];R(n,e.y0-p,u-1,f),O(n,e.y1+p,u+1,f),R(n,l,n.length-1,f),O(n,i,0,f)}function O(n,f,u,e){for(;u1e-6&&(r.y0+=m,r.y1+=m),f=r.y1+p}}function R(n,f,u,e){for(;u>=0;--u){const r=n[u],m=(r.y1-f)*e;m>1e-6&&(r.y0-=m,r.y1-=m),f=r.y0-p}}function z({sourceLinks:n,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:u}}of f)u.sort(ht);for(const{target:{targetLinks:u}}of n)u.sort(ut)}}function S(n){if(c===void 0)for(const{sourceLinks:f,targetLinks:u}of n)f.sort(ht),u.sort(ut)}function N(n,f){let u=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:e,width:r}of n.sourceLinks){if(e===f)break;u+=r+p}for(const{source:e,width:r}of f.targetLinks){if(e===n)break;u-=r}return u}function E(n,f){let u=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:e,width:r}of f.targetLinks){if(e===n)break;u+=r+p}for(const{target:e,width:r}of n.sourceLinks){if(e===f)break;u-=r}return u}return v}var rt=Math.PI,st=2*rt,F=1e-6,Rt=st-F;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function kt(){return new ot}ot.prototype=kt.prototype={constructor:ot,moveTo:function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},quadraticCurveTo:function(t,i,s,l){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+l)},bezierCurveTo:function(t,i,s,l,h,d){this._+="C"+ +t+","+ +i+","+ +s+","+ +l+","+(this._x1=+h)+","+(this._y1=+d)},arcTo:function(t,i,s,l,h){t=+t,i=+i,s=+s,l=+l,h=+h;var d=this._x1,p=this._y1,k=s-t,o=l-i,a=d-t,c=p-i,_=a*a+c*c;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(_>F)if(!(Math.abs(c*k-o*a)>F)||!h)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var x=s-d,y=l-p,v=k*k+o*o,T=x*x+y*y,A=Math.sqrt(v),M=Math.sqrt(_),P=h*Math.tan((rt-Math.acos((v+_-T)/(2*A*M)))/2),D=P/M,B=P/A;Math.abs(D-1)>F&&(this._+="L"+(t+D*a)+","+(i+D*c)),this._+="A"+h+","+h+",0,0,"+ +(c*x>a*y)+","+(this._x1=t+B*k)+","+(this._y1=i+B*o)}},arc:function(t,i,s,l,h,d){t=+t,i=+i,s=+s,d=!!d;var p=s*Math.cos(l),k=s*Math.sin(l),o=t+p,a=i+k,c=1^d,_=d?l-h:h-l;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+a:(Math.abs(this._x1-o)>F||Math.abs(this._y1-a)>F)&&(this._+="L"+o+","+a),s&&(_<0&&(_=_%st+st),_>Rt?this._+="A"+s+","+s+",0,1,"+c+","+(t-p)+","+(i-k)+"A"+s+","+s+",0,1,"+c+","+(this._x1=o)+","+(this._y1=a):_>F&&(this._+="A"+s+","+s+",0,"+ +(_>=rt)+","+c+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=i+s*Math.sin(h))))},rect:function(t,i,s,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +l+"h"+-s+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Vt(t){return t[0]}function Ft(t){return t[1]}var Wt=Array.prototype.slice;function Ut(t){return t.source}function Gt(t){return t.target}function Yt(t){var i=Ut,s=Gt,l=Vt,h=Ft,d=null;function p(){var k,o=Wt.call(arguments),a=i.apply(this,o),c=s.apply(this,o);if(d||(d=k=kt()),t(d,+l.apply(this,(o[0]=a,o)),+h.apply(this,o),+l.apply(this,(o[0]=c,o)),+h.apply(this,o)),k)return d=null,k+""||null}return p.source=function(k){return arguments.length?(i=k,p):i},p.target=function(k){return arguments.length?(s=k,p):s},p.x=function(k){return arguments.length?(l=typeof k=="function"?k:dt(+k),p):l},p.y=function(k){return arguments.length?(h=typeof k=="function"?k:dt(+k),p):h},p.context=function(k){return arguments.length?(d=k==null?null:k,p):d},p}function qt(t,i,s,l,h){t.moveTo(i,s),t.bezierCurveTo(i=(i+l)/2,s,i,h,l,h)}function Ht(){return Yt(qt)}function Xt(t){return[t.source.x1,t.y0]}function Qt(t){return[t.target.x0,t.y1]}function Kt(){return Ht().source(Xt).target(Qt)}var at=function(){var t=g(function(k,o,a,c){for(a=a||{},c=k.length;c--;a[k[c]]=o);return a},"o"),i=[1,9],s=[1,10],l=[1,5,10,12],h={trace:g(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:g(function(o,a,c,_,x,y,v){var T=y.length-1;switch(x){case 7:const A=_.findOrCreateNode(y[T-4].trim().replaceAll('""','"')),M=_.findOrCreateNode(y[T-2].trim().replaceAll('""','"')),P=parseFloat(y[T].trim());_.addLink(A,M,P);break;case 8:case 9:case 11:this.$=y[T];break;case 10:this.$=y[T-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:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(function(o,a){if(a.recoverable)this.trace(o);else{var c=new Error(o);throw c.hash=a,c}},"parseError"),parse:g(function(o){var a=this,c=[0],_=[],x=[null],y=[],v=this.table,T="",A=0,M=0,P=2,D=1,B=y.slice.call(arguments,1),w=Object.create(this.lexer),I={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(I.yy[j]=this.yy[j]);w.setInput(o,I.yy),I.yy.lexer=w,I.yy.parser=this,typeof w.yylloc=="undefined"&&(w.yylloc={});var C=w.yylloc;y.push(C);var O=w.options&&w.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function R(L){c.length=c.length-2*L,x.length=x.length-L,y.length=y.length-L}g(R,"popStack");function z(){var L;return L=_.pop()||w.lex()||D,typeof L!="number"&&(L instanceof Array&&(_=L,L=_.pop()),L=a.symbols_[L]||L),L}g(z,"lex");for(var S,N,E,n,f={},u,e,r,m;;){if(N=c[c.length-1],this.defaultActions[N]?E=this.defaultActions[N]:((S===null||typeof S=="undefined")&&(S=z()),E=v[N]&&v[N][S]),typeof E=="undefined"||!E.length||!E[0]){var b="";m=[];for(u in v[N])this.terminals_[u]&&u>P&&m.push("'"+this.terminals_[u]+"'");w.showPosition?b="Parse error on line "+(A+1)+`: +import{_ as g,d as lt,g as _t,s as xt,b as vt,c as bt,r as wt,q as St,t as Lt,e as Et,p as At,j as H,aa as Tt}from"./Using existing ones-DVOwGlbd.js";import{o as Mt}from"./ordinal-Cboi1Yqb.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./init-Gi6I4Gst.js";function Nt(t){for(var i=t.length/6|0,s=new Array(i),l=0;l=l)&&(s=l);else{let l=-1;for(let h of t)(h=i(h,++l,t))!=null&&(s=h)&&(s=h)}return s}function gt(t,i){let s;if(i===void 0)for(const l of t)l!=null&&(s>l||s===void 0&&l>=l)&&(s=l);else{let l=-1;for(let h of t)(h=i(h,++l,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}function nt(t,i){let s=0;if(i===void 0)for(let l of t)(l=+l)&&(s+=l);else{let l=-1;for(let h of t)(h=+i(h,++l,t))&&(s+=h)}return s}function Pt(t){return t.target.depth}function Ct(t){return t.depth}function Ot(t,i){return i-1-t.height}function mt(t,i){return t.sourceLinks.length?t.depth:i-1}function Dt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?gt(t.sourceLinks,Pt)-1:0}function X(t){return function(){return t}}function ut(t,i){return Q(t.source,i.source)||t.index-i.index}function ht(t,i){return Q(t.target,i.target)||t.index-i.index}function Q(t,i){return t.y0-i.y0}function it(t){return t.value}function jt(t){return t.index}function zt(t){return t.nodes}function $t(t){return t.links}function ft(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}function yt({nodes:t}){for(const i of t){let s=i.y0,l=s;for(const h of i.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of i.targetLinks)h.y1=l+h.width/2,l+=h.width}}function Bt(){let t=0,i=0,s=1,l=1,h=24,d=8,p,k=jt,o=mt,a,c,_=zt,x=$t,y=6;function v(){const n={nodes:_.apply(null,arguments),links:x.apply(null,arguments)};return T(n),A(n),M(n),P(n),w(n),yt(n),n}v.update=function(n){return yt(n),n},v.nodeId=function(n){return arguments.length?(k=typeof n=="function"?n:X(n),v):k},v.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:X(n),v):o},v.nodeSort=function(n){return arguments.length?(a=n,v):a},v.nodeWidth=function(n){return arguments.length?(h=+n,v):h},v.nodePadding=function(n){return arguments.length?(d=p=+n,v):d},v.nodes=function(n){return arguments.length?(_=typeof n=="function"?n:X(n),v):_},v.links=function(n){return arguments.length?(x=typeof n=="function"?n:X(n),v):x},v.linkSort=function(n){return arguments.length?(c=n,v):c},v.size=function(n){return arguments.length?(t=i=0,s=+n[0],l=+n[1],v):[s-t,l-i]},v.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],l=+n[1][1],v):[[t,i],[s,l]]},v.iterations=function(n){return arguments.length?(y=+n,v):y};function T({nodes:n,links:f}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((e,r)=>[k(e,r,n),e]));for(const[e,r]of f.entries()){r.index=e;let{source:m,target:b}=r;typeof m!="object"&&(m=r.source=ft(u,m)),typeof b!="object"&&(b=r.target=ft(u,b)),m.sourceLinks.push(r),b.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(c),r.sort(c)}function A({nodes:n}){for(const f of n)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function M({nodes:n}){const f=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const m of u){m.depth=r;for(const{target:b}of m.sourceLinks)e.add(b)}if(++r>f)throw new Error("circular link");u=e,e=new Set}}function P({nodes:n}){const f=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const m of u){m.height=r;for(const{source:b}of m.targetLinks)e.add(b)}if(++r>f)throw new Error("circular link");u=e,e=new Set}}function D({nodes:n}){const f=ct(n,r=>r.depth)+1,u=(s-t-h)/(f-1),e=new Array(f);for(const r of n){const m=Math.max(0,Math.min(f-1,Math.floor(o.call(null,r,f))));r.layer=m,r.x0=t+m*u,r.x1=r.x0+h,e[m]?e[m].push(r):e[m]=[r]}if(a)for(const r of e)r.sort(a);return e}function B(n){const f=gt(n,u=>(l-i-(u.length-1)*p)/nt(u,it));for(const u of n){let e=i;for(const r of u){r.y0=e,r.y1=e+r.value*f,e=r.y1+p;for(const m of r.sourceLinks)m.width=m.value*f}e=(l-e+p)/(u.length+1);for(let r=0;ru.length)-1)),B(f);for(let u=0;u0))continue;let W=(L/V-b.y0)*f;b.y0+=W,b.y1+=W,z(b)}a===void 0&&m.sort(Q),C(m,u)}}function j(n,f,u){for(let e=n.length,r=e-2;r>=0;--r){const m=n[r];for(const b of m){let L=0,V=0;for(const{target:U,value:et}of b.sourceLinks){let G=et*(U.layer-b.layer);L+=E(b,U)*G,V+=G}if(!(V>0))continue;let W=(L/V-b.y0)*f;b.y0+=W,b.y1+=W,z(b)}a===void 0&&m.sort(Q),C(m,u)}}function C(n,f){const u=n.length>>1,e=n[u];R(n,e.y0-p,u-1,f),O(n,e.y1+p,u+1,f),R(n,l,n.length-1,f),O(n,i,0,f)}function O(n,f,u,e){for(;u1e-6&&(r.y0+=m,r.y1+=m),f=r.y1+p}}function R(n,f,u,e){for(;u>=0;--u){const r=n[u],m=(r.y1-f)*e;m>1e-6&&(r.y0-=m,r.y1-=m),f=r.y0-p}}function z({sourceLinks:n,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:u}}of f)u.sort(ht);for(const{target:{targetLinks:u}}of n)u.sort(ut)}}function S(n){if(c===void 0)for(const{sourceLinks:f,targetLinks:u}of n)f.sort(ht),u.sort(ut)}function N(n,f){let u=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:e,width:r}of n.sourceLinks){if(e===f)break;u+=r+p}for(const{source:e,width:r}of f.targetLinks){if(e===n)break;u-=r}return u}function E(n,f){let u=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:e,width:r}of f.targetLinks){if(e===n)break;u+=r+p}for(const{target:e,width:r}of n.sourceLinks){if(e===f)break;u-=r}return u}return v}var rt=Math.PI,st=2*rt,F=1e-6,Rt=st-F;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function kt(){return new ot}ot.prototype=kt.prototype={constructor:ot,moveTo:function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},quadraticCurveTo:function(t,i,s,l){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+l)},bezierCurveTo:function(t,i,s,l,h,d){this._+="C"+ +t+","+ +i+","+ +s+","+ +l+","+(this._x1=+h)+","+(this._y1=+d)},arcTo:function(t,i,s,l,h){t=+t,i=+i,s=+s,l=+l,h=+h;var d=this._x1,p=this._y1,k=s-t,o=l-i,a=d-t,c=p-i,_=a*a+c*c;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(_>F)if(!(Math.abs(c*k-o*a)>F)||!h)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var x=s-d,y=l-p,v=k*k+o*o,T=x*x+y*y,A=Math.sqrt(v),M=Math.sqrt(_),P=h*Math.tan((rt-Math.acos((v+_-T)/(2*A*M)))/2),D=P/M,B=P/A;Math.abs(D-1)>F&&(this._+="L"+(t+D*a)+","+(i+D*c)),this._+="A"+h+","+h+",0,0,"+ +(c*x>a*y)+","+(this._x1=t+B*k)+","+(this._y1=i+B*o)}},arc:function(t,i,s,l,h,d){t=+t,i=+i,s=+s,d=!!d;var p=s*Math.cos(l),k=s*Math.sin(l),o=t+p,a=i+k,c=1^d,_=d?l-h:h-l;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+a:(Math.abs(this._x1-o)>F||Math.abs(this._y1-a)>F)&&(this._+="L"+o+","+a),s&&(_<0&&(_=_%st+st),_>Rt?this._+="A"+s+","+s+",0,1,"+c+","+(t-p)+","+(i-k)+"A"+s+","+s+",0,1,"+c+","+(this._x1=o)+","+(this._y1=a):_>F&&(this._+="A"+s+","+s+",0,"+ +(_>=rt)+","+c+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=i+s*Math.sin(h))))},rect:function(t,i,s,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +l+"h"+-s+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Vt(t){return t[0]}function Ft(t){return t[1]}var Wt=Array.prototype.slice;function Ut(t){return t.source}function Gt(t){return t.target}function Yt(t){var i=Ut,s=Gt,l=Vt,h=Ft,d=null;function p(){var k,o=Wt.call(arguments),a=i.apply(this,o),c=s.apply(this,o);if(d||(d=k=kt()),t(d,+l.apply(this,(o[0]=a,o)),+h.apply(this,o),+l.apply(this,(o[0]=c,o)),+h.apply(this,o)),k)return d=null,k+""||null}return p.source=function(k){return arguments.length?(i=k,p):i},p.target=function(k){return arguments.length?(s=k,p):s},p.x=function(k){return arguments.length?(l=typeof k=="function"?k:dt(+k),p):l},p.y=function(k){return arguments.length?(h=typeof k=="function"?k:dt(+k),p):h},p.context=function(k){return arguments.length?(d=k==null?null:k,p):d},p}function qt(t,i,s,l,h){t.moveTo(i,s),t.bezierCurveTo(i=(i+l)/2,s,i,h,l,h)}function Ht(){return Yt(qt)}function Xt(t){return[t.source.x1,t.y0]}function Qt(t){return[t.target.x0,t.y1]}function Kt(){return Ht().source(Xt).target(Qt)}var at=function(){var t=g(function(k,o,a,c){for(a=a||{},c=k.length;c--;a[k[c]]=o);return a},"o"),i=[1,9],s=[1,10],l=[1,5,10,12],h={trace:g(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:g(function(o,a,c,_,x,y,v){var T=y.length-1;switch(x){case 7:const A=_.findOrCreateNode(y[T-4].trim().replaceAll('""','"')),M=_.findOrCreateNode(y[T-2].trim().replaceAll('""','"')),P=parseFloat(y[T].trim());_.addLink(A,M,P);break;case 8:case 9:case 11:this.$=y[T];break;case 10:this.$=y[T-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:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(function(o,a){if(a.recoverable)this.trace(o);else{var c=new Error(o);throw c.hash=a,c}},"parseError"),parse:g(function(o){var a=this,c=[0],_=[],x=[null],y=[],v=this.table,T="",A=0,M=0,P=2,D=1,B=y.slice.call(arguments,1),w=Object.create(this.lexer),I={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(I.yy[j]=this.yy[j]);w.setInput(o,I.yy),I.yy.lexer=w,I.yy.parser=this,typeof w.yylloc=="undefined"&&(w.yylloc={});var C=w.yylloc;y.push(C);var O=w.options&&w.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function R(L){c.length=c.length-2*L,x.length=x.length-L,y.length=y.length-L}g(R,"popStack");function z(){var L;return L=_.pop()||w.lex()||D,typeof L!="number"&&(L instanceof Array&&(_=L,L=_.pop()),L=a.symbols_[L]||L),L}g(z,"lex");for(var S,N,E,n,f={},u,e,r,m;;){if(N=c[c.length-1],this.defaultActions[N]?E=this.defaultActions[N]:((S===null||typeof S=="undefined")&&(S=z()),E=v[N]&&v[N][S]),typeof E=="undefined"||!E.length||!E[0]){var b="";m=[];for(u in v[N])this.terminals_[u]&&u>P&&m.push("'"+this.terminals_[u]+"'");w.showPosition?b="Parse error on line "+(A+1)+`: `+w.showPosition()+` Expecting `+m.join(", ")+", got '"+(this.terminals_[S]||S)+"'":b="Parse error on line "+(A+1)+": Unexpected "+(S==D?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(b,{text:w.match,token:this.terminals_[S]||S,line:w.yylineno,loc:C,expected:m})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+N+", token: "+S);switch(E[0]){case 1:c.push(S),x.push(w.yytext),y.push(w.yylloc),c.push(E[1]),S=null,M=w.yyleng,T=w.yytext,A=w.yylineno,C=w.yylloc;break;case 2:if(e=this.productions_[E[1]][1],f.$=x[x.length-e],f._$={first_line:y[y.length-(e||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(e||1)].first_column,last_column:y[y.length-1].last_column},O&&(f._$.range=[y[y.length-(e||1)].range[0],y[y.length-1].range[1]]),n=this.performAction.apply(f,[T,M,A,I.yy,E[1],x,y].concat(B)),typeof n!="undefined")return n;e&&(c=c.slice(0,-1*e*2),x=x.slice(0,-1*e),y=y.slice(0,-1*e)),c.push(this.productions_[E[1]][0]),x.push(f.$),y.push(f._$),r=v[c[c.length-2]][c[c.length-1]],c.push(r);break;case 3:return!0}}return!0},"parse")},d=function(){var k={EOF:1,parseError:g(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:g(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:g(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:g(function(o){var a=o.length,c=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 _=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 x=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===_.length?this.yylloc.first_column:0)+_[_.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(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:g(function(o){this.unput(this.match.slice(o))},"less"),pastInput:g(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:g(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:g(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/pr-preview/pr-419/assets/sequenceDiagram-PQT5PN7B-DFJlhQFx.js b/pr-preview/pr-419/assets/sequenceDiagram-PQT5PN7B-CN9UeIty.js similarity index 99% rename from pr-preview/pr-419/assets/sequenceDiagram-PQT5PN7B-DFJlhQFx.js rename to pr-preview/pr-419/assets/sequenceDiagram-PQT5PN7B-CN9UeIty.js index 7514469bf..976673ab0 100644 --- a/pr-preview/pr-419/assets/sequenceDiagram-PQT5PN7B-DFJlhQFx.js +++ b/pr-preview/pr-419/assets/sequenceDiagram-PQT5PN7B-CN9UeIty.js @@ -1,4 +1,4 @@ -var J=(t,e,n)=>new Promise((r,a)=>{var i=p=>{try{d(n.next(p))}catch(s){a(s)}},c=p=>{try{d(n.throw(p))}catch(s){a(s)}},d=p=>p.done?r(p.value):Promise.resolve(p.value).then(i,c);d((n=n.apply(t,e)).next())});import{g as Mt,a as Ut,d as Me,b as Re,c as De,e as Ce}from"./chunk-XVOYOM2C-C3A1cAVg.js";import{I as Oe}from"./chunk-2RYQ3QTB-D277TTZy.js";import{_ as h,g as Be,r as Ve,q as Ye,d as it,s as ae,c as Fe,b as We,e as _,a3 as dt,a4 as It,u as F,l as Z,t as qe,i as Rt,a as ze,j as Nt,k as He,m as ie,a5 as ne,H as Wt,a6 as oe,a7 as Ke}from"./Using existing ones-1ACZX-0W.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var qt=function(){var t=h(function(ut,I,L,A){for(L=L||{},A=ut.length;A--;L[ut[A]]=I);return L},"o"),e=[1,2],n=[1,3],r=[1,4],a=[2,4],i=[1,9],c=[1,11],d=[1,13],p=[1,14],s=[1,16],f=[1,17],E=[1,18],g=[1,24],T=[1,25],m=[1,26],w=[1,27],k=[1,28],V=[1,29],M=[1,30],Y=[1,31],C=[1,32],z=[1,33],H=[1,34],Q=[1,35],rt=[1,36],K=[1,37],U=[1,38],q=[1,39],R=[1,41],j=[1,42],G=[1,43],$=[1,44],st=[1,45],S=[1,46],y=[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],nt=[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],N=[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],Zt=[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],ct=[68,69,70],ht=[1,122],Ot={trace:h(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:h(function(I,L,A,b,D,l,vt){var u=l.length-1;switch(D){case 3:return b.apply(l[u]),l[u];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:b.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:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[u-1].actor};break;case 29:b.setDiagramTitle(l[u].substring(6)),this.$=l[u].substring(6);break;case 30:b.setDiagramTitle(l[u].substring(7)),this.$=l[u].substring(7);break;case 31:this.$=l[u].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=l[u].trim(),b.setAccDescription(this.$);break;case 34:l[u-1].unshift({type:"loopStart",loopText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.LOOP_START}),l[u-1].push({type:"loopEnd",loopText:l[u-2],signalType:b.LINETYPE.LOOP_END}),this.$=l[u-1];break;case 35:l[u-1].unshift({type:"rectStart",color:b.parseMessage(l[u-2]),signalType:b.LINETYPE.RECT_START}),l[u-1].push({type:"rectEnd",color:b.parseMessage(l[u-2]),signalType:b.LINETYPE.RECT_END}),this.$=l[u-1];break;case 36:l[u-1].unshift({type:"optStart",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.OPT_START}),l[u-1].push({type:"optEnd",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.OPT_END}),this.$=l[u-1];break;case 37:l[u-1].unshift({type:"altStart",altText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.ALT_START}),l[u-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=l[u-1];break;case 38:l[u-1].unshift({type:"parStart",parText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.PAR_START}),l[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[u-1];break;case 39:l[u-1].unshift({type:"parStart",parText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.PAR_OVER_START}),l[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[u-1];break;case 40:l[u-1].unshift({type:"criticalStart",criticalText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.CRITICAL_START}),l[u-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=l[u-1];break;case 41:l[u-1].unshift({type:"breakStart",breakText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.BREAK_START}),l[u-1].push({type:"breakEnd",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.BREAK_END}),this.$=l[u-1];break;case 43:this.$=l[u-3].concat([{type:"option",optionText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.CRITICAL_OPTION},l[u]]);break;case 45:this.$=l[u-3].concat([{type:"and",parText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.PAR_AND},l[u]]);break;case 47:this.$=l[u-3].concat([{type:"else",altText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.ALT_ELSE},l[u]]);break;case 48:l[u-3].draw="participant",l[u-3].type="addParticipant",l[u-3].description=b.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=b.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:b.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.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.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:b.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:b.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.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=b.LINETYPE.DOTTED;break;case 74:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=b.LINETYPE.SOLID_CROSS;break;case 76:this.$=b.LINETYPE.DOTTED_CROSS;break;case 77:this.$=b.LINETYPE.SOLID_POINT;break;case 78:this.$=b.LINETYPE.DOTTED_POINT;break;case 79:this.$=b.parseMessage(l[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:n,6:r},{1:[3]},{3:5,4:e,5:n,6:r},{3:6,4:e,5:n,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],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:d,14:p,17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},t(y,[2,5]),{9:47,12:12,13:d,14:p,17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:K,52:U,53:q},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:S},{22:55,70:S},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[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:S},{22:72,70:S},{22:73,70:S},{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:S},{22:90,70:S},{22:91,70:S},{22:92,70:S},t([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:93}),t(y,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},t(y,[2,21]),{5:[1,97]},{5:[1,98]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(tt,a,{7:99}),t(tt,a,{7:100}),t(tt,a,{7:101}),t(nt,a,{40:102,7:103}),t(N,a,{42:104,7:105}),t(N,a,{7:105,42:106}),t(Zt,a,{45:107,7:108}),t(tt,a,{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:S},t(ct,[2,69]),t(ct,[2,70]),t(ct,[2,71]),t(ct,[2,72]),t(ct,[2,73]),t(ct,[2,74]),t(ct,[2,75]),t(ct,[2,76]),t(ct,[2,77]),t(ct,[2,78]),{22:118,70:S},{22:120,58:119,70:S},{70:[2,63]},{70:[2,64]},{56:121,81:ht},{56:123,81:ht},{56:124,81:ht},{56:125,81:ht},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:K,52:U,53:q},{5:[1,131]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[1,132],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[1,133],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[1,134],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{16:[1,135]},{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[2,46],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,49:[1,136],50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{16:[1,137]},{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[2,44],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,48:[1,138],50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{16:[1,139]},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[2,42],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,47:[1,141],50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[1,142],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{15:[1,143]},t(y,[2,49]),{15:[1,144]},t(y,[2,51]),t(y,[2,52]),{22:145,70:S},{22:146,70:S},{56:147,81:ht},{56:148,81:ht},{56:149,81:ht},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:151,50:K,52:U,53:q},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,152]},t(y,[2,38]),{15:[1,153]},t(y,[2,39]),t(y,[2,40]),{15:[1,154]},t(y,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:ht},{56:158,81:ht},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:S},t(P,[2,11]),t(nt,a,{7:103,40:160}),t(N,a,{7:105,42:161}),t(Zt,a,{7:108,45:162}),t(y,[2,48]),t(y,[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:h(function(I,L){if(L.recoverable)this.trace(I);else{var A=new Error(I);throw A.hash=L,A}},"parseError"),parse:h(function(I){var L=this,A=[0],b=[],D=[null],l=[],vt=this.table,u="",Pt=0,Qt=0,Ae=2,jt=1,ke=l.slice.call(arguments,1),W=Object.create(this.lexer),gt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(gt.yy[Bt]=this.yy[Bt]);W.setInput(I,gt.yy),gt.yy.lexer=W,gt.yy.parser=this,typeof W.yylloc=="undefined"&&(W.yylloc={});var Vt=W.yylloc;l.push(Vt);var Ne=W.options&&W.options.ranges;typeof gt.yy.parseError=="function"?this.parseError=gt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Se(et){A.length=A.length-2*et,D.length=D.length-et,l.length=l.length-et}h(Se,"popStack");function $t(){var et;return et=b.pop()||W.lex()||jt,typeof et!="number"&&(et instanceof Array&&(b=et,et=b.pop()),et=L.symbols_[et]||et),et}h($t,"lex");for(var X,ft,at,Yt,Et={},At,pt,te,kt;;){if(ft=A[A.length-1],this.defaultActions[ft]?at=this.defaultActions[ft]:((X===null||typeof X=="undefined")&&(X=$t()),at=vt[ft]&&vt[ft][X]),typeof at=="undefined"||!at.length||!at[0]){var Ft="";kt=[];for(At in vt[ft])this.terminals_[At]&&At>Ae&&kt.push("'"+this.terminals_[At]+"'");W.showPosition?Ft="Parse error on line "+(Pt+1)+`: +var J=(t,e,n)=>new Promise((r,a)=>{var i=p=>{try{d(n.next(p))}catch(s){a(s)}},c=p=>{try{d(n.throw(p))}catch(s){a(s)}},d=p=>p.done?r(p.value):Promise.resolve(p.value).then(i,c);d((n=n.apply(t,e)).next())});import{g as Mt,a as Ut,d as Me,b as Re,c as De,e as Ce}from"./chunk-XVOYOM2C-zOgot8-d.js";import{I as Oe}from"./chunk-2RYQ3QTB-Bwu55N5N.js";import{_ as h,g as Be,r as Ve,q as Ye,d as it,s as ae,c as Fe,b as We,e as _,a3 as dt,a4 as It,u as F,l as Z,t as qe,i as Rt,a as ze,j as Nt,k as He,m as ie,a5 as ne,H as Wt,a6 as oe,a7 as Ke}from"./Using existing ones-DVOwGlbd.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var qt=function(){var t=h(function(ut,I,L,A){for(L=L||{},A=ut.length;A--;L[ut[A]]=I);return L},"o"),e=[1,2],n=[1,3],r=[1,4],a=[2,4],i=[1,9],c=[1,11],d=[1,13],p=[1,14],s=[1,16],f=[1,17],E=[1,18],g=[1,24],T=[1,25],m=[1,26],w=[1,27],k=[1,28],V=[1,29],M=[1,30],Y=[1,31],C=[1,32],z=[1,33],H=[1,34],Q=[1,35],rt=[1,36],K=[1,37],U=[1,38],q=[1,39],R=[1,41],j=[1,42],G=[1,43],$=[1,44],st=[1,45],S=[1,46],y=[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],nt=[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],N=[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],Zt=[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],ct=[68,69,70],ht=[1,122],Ot={trace:h(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:h(function(I,L,A,b,D,l,vt){var u=l.length-1;switch(D){case 3:return b.apply(l[u]),l[u];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:b.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:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[u-1].actor};break;case 29:b.setDiagramTitle(l[u].substring(6)),this.$=l[u].substring(6);break;case 30:b.setDiagramTitle(l[u].substring(7)),this.$=l[u].substring(7);break;case 31:this.$=l[u].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=l[u].trim(),b.setAccDescription(this.$);break;case 34:l[u-1].unshift({type:"loopStart",loopText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.LOOP_START}),l[u-1].push({type:"loopEnd",loopText:l[u-2],signalType:b.LINETYPE.LOOP_END}),this.$=l[u-1];break;case 35:l[u-1].unshift({type:"rectStart",color:b.parseMessage(l[u-2]),signalType:b.LINETYPE.RECT_START}),l[u-1].push({type:"rectEnd",color:b.parseMessage(l[u-2]),signalType:b.LINETYPE.RECT_END}),this.$=l[u-1];break;case 36:l[u-1].unshift({type:"optStart",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.OPT_START}),l[u-1].push({type:"optEnd",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.OPT_END}),this.$=l[u-1];break;case 37:l[u-1].unshift({type:"altStart",altText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.ALT_START}),l[u-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=l[u-1];break;case 38:l[u-1].unshift({type:"parStart",parText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.PAR_START}),l[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[u-1];break;case 39:l[u-1].unshift({type:"parStart",parText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.PAR_OVER_START}),l[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[u-1];break;case 40:l[u-1].unshift({type:"criticalStart",criticalText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.CRITICAL_START}),l[u-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=l[u-1];break;case 41:l[u-1].unshift({type:"breakStart",breakText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.BREAK_START}),l[u-1].push({type:"breakEnd",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.BREAK_END}),this.$=l[u-1];break;case 43:this.$=l[u-3].concat([{type:"option",optionText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.CRITICAL_OPTION},l[u]]);break;case 45:this.$=l[u-3].concat([{type:"and",parText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.PAR_AND},l[u]]);break;case 47:this.$=l[u-3].concat([{type:"else",altText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.ALT_ELSE},l[u]]);break;case 48:l[u-3].draw="participant",l[u-3].type="addParticipant",l[u-3].description=b.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=b.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:b.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.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.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:b.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:b.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.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=b.LINETYPE.DOTTED;break;case 74:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=b.LINETYPE.SOLID_CROSS;break;case 76:this.$=b.LINETYPE.DOTTED_CROSS;break;case 77:this.$=b.LINETYPE.SOLID_POINT;break;case 78:this.$=b.LINETYPE.DOTTED_POINT;break;case 79:this.$=b.parseMessage(l[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:n,6:r},{1:[3]},{3:5,4:e,5:n,6:r},{3:6,4:e,5:n,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],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:d,14:p,17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},t(y,[2,5]),{9:47,12:12,13:d,14:p,17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:K,52:U,53:q},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:S},{22:55,70:S},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[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:S},{22:72,70:S},{22:73,70:S},{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:S},{22:90,70:S},{22:91,70:S},{22:92,70:S},t([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:93}),t(y,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},t(y,[2,21]),{5:[1,97]},{5:[1,98]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(tt,a,{7:99}),t(tt,a,{7:100}),t(tt,a,{7:101}),t(nt,a,{40:102,7:103}),t(N,a,{42:104,7:105}),t(N,a,{7:105,42:106}),t(Zt,a,{45:107,7:108}),t(tt,a,{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:S},t(ct,[2,69]),t(ct,[2,70]),t(ct,[2,71]),t(ct,[2,72]),t(ct,[2,73]),t(ct,[2,74]),t(ct,[2,75]),t(ct,[2,76]),t(ct,[2,77]),t(ct,[2,78]),{22:118,70:S},{22:120,58:119,70:S},{70:[2,63]},{70:[2,64]},{56:121,81:ht},{56:123,81:ht},{56:124,81:ht},{56:125,81:ht},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:K,52:U,53:q},{5:[1,131]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[1,132],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[1,133],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[1,134],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{16:[1,135]},{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[2,46],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,49:[1,136],50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{16:[1,137]},{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[2,44],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,48:[1,138],50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{16:[1,139]},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[2,42],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,47:[1,141],50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{4:i,5:c,8:8,9:10,12:12,13:d,14:p,16:[1,142],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Q,46:rt,50:K,52:U,53:q,54:R,59:j,60:G,61:$,62:st,70:S},{15:[1,143]},t(y,[2,49]),{15:[1,144]},t(y,[2,51]),t(y,[2,52]),{22:145,70:S},{22:146,70:S},{56:147,81:ht},{56:148,81:ht},{56:149,81:ht},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:151,50:K,52:U,53:q},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,152]},t(y,[2,38]),{15:[1,153]},t(y,[2,39]),t(y,[2,40]),{15:[1,154]},t(y,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:ht},{56:158,81:ht},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:S},t(P,[2,11]),t(nt,a,{7:103,40:160}),t(N,a,{7:105,42:161}),t(Zt,a,{7:108,45:162}),t(y,[2,48]),t(y,[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:h(function(I,L){if(L.recoverable)this.trace(I);else{var A=new Error(I);throw A.hash=L,A}},"parseError"),parse:h(function(I){var L=this,A=[0],b=[],D=[null],l=[],vt=this.table,u="",Pt=0,Qt=0,Ae=2,jt=1,ke=l.slice.call(arguments,1),W=Object.create(this.lexer),gt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(gt.yy[Bt]=this.yy[Bt]);W.setInput(I,gt.yy),gt.yy.lexer=W,gt.yy.parser=this,typeof W.yylloc=="undefined"&&(W.yylloc={});var Vt=W.yylloc;l.push(Vt);var Ne=W.options&&W.options.ranges;typeof gt.yy.parseError=="function"?this.parseError=gt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Se(et){A.length=A.length-2*et,D.length=D.length-et,l.length=l.length-et}h(Se,"popStack");function $t(){var et;return et=b.pop()||W.lex()||jt,typeof et!="number"&&(et instanceof Array&&(b=et,et=b.pop()),et=L.symbols_[et]||et),et}h($t,"lex");for(var X,ft,at,Yt,Et={},At,pt,te,kt;;){if(ft=A[A.length-1],this.defaultActions[ft]?at=this.defaultActions[ft]:((X===null||typeof X=="undefined")&&(X=$t()),at=vt[ft]&&vt[ft][X]),typeof at=="undefined"||!at.length||!at[0]){var Ft="";kt=[];for(At in vt[ft])this.terminals_[At]&&At>Ae&&kt.push("'"+this.terminals_[At]+"'");W.showPosition?Ft="Parse error on line "+(Pt+1)+`: `+W.showPosition()+` Expecting `+kt.join(", ")+", got '"+(this.terminals_[X]||X)+"'":Ft="Parse error on line "+(Pt+1)+": Unexpected "+(X==jt?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(Ft,{text:W.match,token:this.terminals_[X]||X,line:W.yylineno,loc:Vt,expected:kt})}if(at[0]instanceof Array&&at.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ft+", token: "+X);switch(at[0]){case 1:A.push(X),D.push(W.yytext),l.push(W.yylloc),A.push(at[1]),X=null,Qt=W.yyleng,u=W.yytext,Pt=W.yylineno,Vt=W.yylloc;break;case 2:if(pt=this.productions_[at[1]][1],Et.$=D[D.length-pt],Et._$={first_line:l[l.length-(pt||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(pt||1)].first_column,last_column:l[l.length-1].last_column},Ne&&(Et._$.range=[l[l.length-(pt||1)].range[0],l[l.length-1].range[1]]),Yt=this.performAction.apply(Et,[u,Qt,Pt,gt.yy,at[1],D,l].concat(ke)),typeof Yt!="undefined")return Yt;pt&&(A=A.slice(0,-1*pt*2),D=D.slice(0,-1*pt),l=l.slice(0,-1*pt)),A.push(this.productions_[at[1]][0]),D.push(Et.$),l.push(Et._$),te=vt[A[A.length-2]][A[A.length-1]],A.push(te);break;case 3:return!0}}return!0},"parse")},Pe=function(){var ut={EOF:1,parseError:h(function(L,A){if(this.yy.parser)this.yy.parser.parseError(L,A);else throw new Error(L)},"parseError"),setInput:h(function(I,L){return this.yy=L||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:h(function(){var I=this._input[0];this.yytext+=I,this.yyleng++,this.offset++,this.match+=I,this.matched+=I;var L=I.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),I},"input"),unput:h(function(I){var L=I.length,A=I.split(/(?:\r\n?|\n)/g);this._input=I+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-L),this.offset-=L;var b=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===b.length?this.yylloc.first_column:0)+b[b.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:h(function(){return this._more=!0,this},"more"),reject:h(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:h(function(I){this.unput(this.match.slice(I))},"less"),pastInput:h(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:h(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:h(function(){var I=this.pastInput(),L=new Array(I.length+1).join("-");return I+this.upcomingInput()+` diff --git a/pr-preview/pr-419/assets/stateDiagram-TQSDS2D4-fQq-ESgZ.js b/pr-preview/pr-419/assets/stateDiagram-TQSDS2D4-CMNkZd09.js similarity index 95% rename from pr-preview/pr-419/assets/stateDiagram-TQSDS2D4-fQq-ESgZ.js rename to pr-preview/pr-419/assets/stateDiagram-TQSDS2D4-CMNkZd09.js index 5d659f656..b71939e17 100644 --- a/pr-preview/pr-419/assets/stateDiagram-TQSDS2D4-fQq-ESgZ.js +++ b/pr-preview/pr-419/assets/stateDiagram-TQSDS2D4-CMNkZd09.js @@ -1 +1 @@ -import{s as W,a as N,b as P}from"./chunk-2JBRQKJ5-CLcKtf3M.js";import{_ as u,d as t,j as H,l as S,k as C,e as z,a2 as U,a8 as F,u as O}from"./Using existing ones-1ACZX-0W.js";import"./chunk-YWFND7JV-BUZzWDIH.js";import{G as J}from"./graph-BbauKfQB.js";import{l as X}from"./layout-CpgFbA5F.js";import"./chunk-DUMQOTYW-CesEDirL.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-DLWEyx0q.js";import"./_basePickBy-UIHw3QVG.js";var L={},D=u((e,i)=>{L[e]=i},"set"),Y=u(e=>L[e],"get"),G=u(()=>Object.keys(L),"keys"),I=u(()=>G().length,"size"),$={get:Y,set:D,keys:G,size:I},j=u(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"),q=u(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"),Z=u((e,i)=>{const d=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(i.id),o=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o.width+2*t().state.padding).attr("height",o.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),K=u((e,i)=>{const d=u(function(l,B,m){const k=l.append("tspan").attr("x",2*t().state.padding).text(B);m||k.attr("dy",t().state.textHeight)},"addTspan"),n=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(i.descriptions[0]).node().getBBox(),g=n.height,h=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(l){a||(d(h,l,s),s=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=h.node().getBBox(),c=Math.max(x.width,n.width);return y.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",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),Q=u((e,i,d)=>{const o=t().state.padding,n=2*t().state.padding,g=e.node().getBBox(),h=g.width,a=g.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let c=Math.max(x,h);c===h&&(c=c+n);let l;const B=e.node().getBBox();i.doc,l=a-o,x>h&&(l=(h-c)/2+o),Math.abs(a-B.x)h&&(l=a-(x-h)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",l+o),x<=h&&s.attr("x",a+(c-n)/2-x/2+o),e.insert("rect",":first-child").attr("x",l).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",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=u(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"),tt=u((e,i)=>{let d=t().state.forkWidth,o=t().state.forkHeight;if(i.parentId){let n=d;d=o,o=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",o).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),et=u((e,i,d,o)=>{let n=0;const g=o.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let h=e.replace(/\r\n/g,"
");h=h.replace(/\n/g,"
");const a=h.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const c=g.append("tspan");if(c.text(x),s===0){const l=c.node().getBBox();s+=l.height}n+=s,c.attr("x",i+t().state.noteMargin),c.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:n}},"_drawLongText"),at=u((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),o=i.append("g"),{textWidth:n,textHeight:g}=et(e,0,0,o);return d.attr("height",g+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),_=u(function(e,i){const d=i.id,o={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&j(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&tt(n,i),i.type==="note"&&at(i.note.text,n),i.type==="divider"&&q(n),i.type==="default"&&i.descriptions.length===0&&Z(n,i),i.type==="default"&&i.descriptions.length>0&&K(n,i);const g=n.node().getBBox();return o.width=g.width+2*t().state.padding,o.height=g.height+2*t().state.padding,$.set(d,o),o},"drawState"),A=0,it=u(function(e,i,d){const o=u(function(s){switch(s){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");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,g=U().x(function(s){return s.x}).y(function(s){return s.y}).curve(F),h=e.append("path").attr("d",g(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),h.attr("marker-end","url("+a+"#"+o(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:y,y:x}=O.calcLabelPosition(i.points),c=z.getRows(d.title);let l=0;const B=[];let m=0,k=0;for(let f=0;f<=c.length;f++){const p=s.append("text").attr("text-anchor","middle").text(c[f]).attr("x",y).attr("y",x+l),w=p.node().getBBox();m=Math.max(m,w.width),k=Math.min(k,w.x),S.info(w.x,y,x+l),l===0&&(l=p.node().getBBox().height,S.info("Title height",l,x)),B.push(p)}let E=l*c.length;if(c.length>1){const f=(c.length-1)*l*.5;B.forEach((p,w)=>p.attr("y",x+w*l-f)),E=l*c.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",y-m/2-t().state.padding/2).attr("y",x-E/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",E+t().state.padding),S.info(r)}A++},"drawEdge"),b,T={},rt=u(function(){},"setConf"),nt=u(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"),st=u(function(e,i,d,o){b=t().state;const n=t().securityLevel;let g;n==="sandbox"&&(g=H("#i"+i));const h=n==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?g.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=h.select(`[id='${i}']`);nt(s);const y=o.db.getRootDoc();R(y,s,void 0,!1,h,a,o);const x=b.padding,c=s.node().getBBox(),l=c.width+x*2,B=c.height+x*2,m=l*1.75;C(s,B,m,b.useMaxWidth),s.attr("viewBox",`${c.x-b.padding} ${c.y-b.padding} `+l+" "+B)},"draw"),dt=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),R=u((e,i,d,o,n,g,h)=>{const a=new J({compound:!0,multigraph:!0});let s,y=!0;for(s=0;s{const w=p.parentElement;let v=0,M=0;w&&(w.parentElement&&(v=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),p.setAttribute("x1",0-M+8),p.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),it(i,a.edge(r),a.edge(r).relation))}),k=m.getBBox();const E={id:d||"root",label:d||"root",width:0,height:0};return E.width=k.width+2*b.padding,E.height=k.height+2*b.padding,S.debug("Doc rendered",E,a),E},"renderDoc"),ot={setConf:rt,draw:st},Et={parser:W,db:N,renderer:ot,styles:P,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()},"init")};export{Et as diagram}; +import{s as W,a as N,b as P}from"./chunk-2JBRQKJ5-DTPl3fdd.js";import{_ as u,d as t,j as H,l as S,k as C,e as z,a2 as U,a8 as F,u as O}from"./Using existing ones-DVOwGlbd.js";import"./chunk-YWFND7JV-Df64Lrc0.js";import{G as J}from"./graph-wuI2A7_P.js";import{l as X}from"./layout-CNdX_jlv.js";import"./chunk-DUMQOTYW-CXsvfPAi.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";import"./_baseUniq-JfSCQjs8.js";import"./_basePickBy-Cka5hBJe.js";var L={},D=u((e,i)=>{L[e]=i},"set"),Y=u(e=>L[e],"get"),G=u(()=>Object.keys(L),"keys"),I=u(()=>G().length,"size"),$={get:Y,set:D,keys:G,size:I},j=u(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"),q=u(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"),Z=u((e,i)=>{const d=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(i.id),o=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o.width+2*t().state.padding).attr("height",o.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),K=u((e,i)=>{const d=u(function(l,B,m){const k=l.append("tspan").attr("x",2*t().state.padding).text(B);m||k.attr("dy",t().state.textHeight)},"addTspan"),n=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(i.descriptions[0]).node().getBBox(),g=n.height,h=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(l){a||(d(h,l,s),s=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=h.node().getBBox(),c=Math.max(x.width,n.width);return y.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",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),Q=u((e,i,d)=>{const o=t().state.padding,n=2*t().state.padding,g=e.node().getBBox(),h=g.width,a=g.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let c=Math.max(x,h);c===h&&(c=c+n);let l;const B=e.node().getBBox();i.doc,l=a-o,x>h&&(l=(h-c)/2+o),Math.abs(a-B.x)h&&(l=a-(x-h)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",l+o),x<=h&&s.attr("x",a+(c-n)/2-x/2+o),e.insert("rect",":first-child").attr("x",l).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",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=u(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"),tt=u((e,i)=>{let d=t().state.forkWidth,o=t().state.forkHeight;if(i.parentId){let n=d;d=o,o=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",o).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),et=u((e,i,d,o)=>{let n=0;const g=o.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let h=e.replace(/\r\n/g,"
");h=h.replace(/\n/g,"
");const a=h.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const c=g.append("tspan");if(c.text(x),s===0){const l=c.node().getBBox();s+=l.height}n+=s,c.attr("x",i+t().state.noteMargin),c.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:n}},"_drawLongText"),at=u((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),o=i.append("g"),{textWidth:n,textHeight:g}=et(e,0,0,o);return d.attr("height",g+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),_=u(function(e,i){const d=i.id,o={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&j(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&tt(n,i),i.type==="note"&&at(i.note.text,n),i.type==="divider"&&q(n),i.type==="default"&&i.descriptions.length===0&&Z(n,i),i.type==="default"&&i.descriptions.length>0&&K(n,i);const g=n.node().getBBox();return o.width=g.width+2*t().state.padding,o.height=g.height+2*t().state.padding,$.set(d,o),o},"drawState"),A=0,it=u(function(e,i,d){const o=u(function(s){switch(s){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");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,g=U().x(function(s){return s.x}).y(function(s){return s.y}).curve(F),h=e.append("path").attr("d",g(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),h.attr("marker-end","url("+a+"#"+o(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:y,y:x}=O.calcLabelPosition(i.points),c=z.getRows(d.title);let l=0;const B=[];let m=0,k=0;for(let f=0;f<=c.length;f++){const p=s.append("text").attr("text-anchor","middle").text(c[f]).attr("x",y).attr("y",x+l),w=p.node().getBBox();m=Math.max(m,w.width),k=Math.min(k,w.x),S.info(w.x,y,x+l),l===0&&(l=p.node().getBBox().height,S.info("Title height",l,x)),B.push(p)}let E=l*c.length;if(c.length>1){const f=(c.length-1)*l*.5;B.forEach((p,w)=>p.attr("y",x+w*l-f)),E=l*c.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",y-m/2-t().state.padding/2).attr("y",x-E/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",E+t().state.padding),S.info(r)}A++},"drawEdge"),b,T={},rt=u(function(){},"setConf"),nt=u(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"),st=u(function(e,i,d,o){b=t().state;const n=t().securityLevel;let g;n==="sandbox"&&(g=H("#i"+i));const h=n==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?g.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=h.select(`[id='${i}']`);nt(s);const y=o.db.getRootDoc();R(y,s,void 0,!1,h,a,o);const x=b.padding,c=s.node().getBBox(),l=c.width+x*2,B=c.height+x*2,m=l*1.75;C(s,B,m,b.useMaxWidth),s.attr("viewBox",`${c.x-b.padding} ${c.y-b.padding} `+l+" "+B)},"draw"),dt=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),R=u((e,i,d,o,n,g,h)=>{const a=new J({compound:!0,multigraph:!0});let s,y=!0;for(s=0;s{const w=p.parentElement;let v=0,M=0;w&&(w.parentElement&&(v=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),p.setAttribute("x1",0-M+8),p.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),it(i,a.edge(r),a.edge(r).relation))}),k=m.getBBox();const E={id:d||"root",label:d||"root",width:0,height:0};return E.width=k.width+2*b.padding,E.height=k.height+2*b.padding,S.debug("Doc rendered",E,a),E},"renderDoc"),ot={setConf:rt,draw:st},Et={parser:W,db:N,renderer:ot,styles:P,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()},"init")};export{Et as diagram}; diff --git a/pr-preview/pr-419/assets/stateDiagram-v2-J5TZWJW5-Bz577HFi.js b/pr-preview/pr-419/assets/stateDiagram-v2-J5TZWJW5-Bz577HFi.js deleted file mode 100644 index 0586556cb..000000000 --- a/pr-preview/pr-419/assets/stateDiagram-v2-J5TZWJW5-Bz577HFi.js +++ /dev/null @@ -1 +0,0 @@ -import{s as a,a as r,c as e,b as i}from"./chunk-2JBRQKJ5-CLcKtf3M.js";import{_ as o}from"./Using existing ones-1ACZX-0W.js";import"./chunk-YWFND7JV-BUZzWDIH.js";import"./chunk-DUMQOTYW-CesEDirL.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var v={parser:a,db:r,renderer:e,styles:i,init:o(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,r.clear()},"init")};export{v as diagram}; diff --git a/pr-preview/pr-419/assets/stateDiagram-v2-J5TZWJW5-CgvaZRch.js b/pr-preview/pr-419/assets/stateDiagram-v2-J5TZWJW5-CgvaZRch.js new file mode 100644 index 000000000..76586efad --- /dev/null +++ b/pr-preview/pr-419/assets/stateDiagram-v2-J5TZWJW5-CgvaZRch.js @@ -0,0 +1 @@ +import{s as a,a as r,c as e,b as i}from"./chunk-2JBRQKJ5-DTPl3fdd.js";import{_ as o}from"./Using existing ones-DVOwGlbd.js";import"./chunk-YWFND7JV-Df64Lrc0.js";import"./chunk-DUMQOTYW-CXsvfPAi.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var v={parser:a,db:r,renderer:e,styles:i,init:o(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,r.clear()},"init")};export{v as diagram}; diff --git a/pr-preview/pr-419/assets/syntaxhighlighter-BP7B2CQK-BMfPl9gr.js b/pr-preview/pr-419/assets/syntaxhighlighter-BP7B2CQK-BjOlNbxl.js similarity index 75% rename from pr-preview/pr-419/assets/syntaxhighlighter-BP7B2CQK-BMfPl9gr.js rename to pr-preview/pr-419/assets/syntaxhighlighter-BP7B2CQK-BjOlNbxl.js index 64fea9941..4705f2646 100644 --- a/pr-preview/pr-419/assets/syntaxhighlighter-BP7B2CQK-BMfPl9gr.js +++ b/pr-preview/pr-419/assets/syntaxhighlighter-BP7B2CQK-BjOlNbxl.js @@ -1 +1 @@ -import{S as d,c as l,s as f,a as h}from"./index-BdmlDa2_.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./index-Ca44TZ0D.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./index-BObpwDOh.js";import"./_getPrototype-fDUIJvdn.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";export{d as SyntaxHighlighter,l as createCopyToClipboardFunction,f as default,h as supportedLanguages}; +import{S as d,c as l,s as f,a as h}from"./index-XNuu3Woq.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./index-Ca44TZ0D.js";import"./index-DFiuTWKW.js";import"./extends-CCbyfPlC.js";import"./index-DYADbu9O.js";import"./isNativeReflectConstruct-DQQXTUsj.js";import"./index-BObpwDOh.js";import"./_getPrototype-fDUIJvdn.js";import"./_baseClone-BwI25-yt.js";import"./index-DrFu-skq.js";export{d as SyntaxHighlighter,l as createCopyToClipboardFunction,f as default,h as supportedLanguages}; diff --git a/pr-preview/pr-419/assets/timeline-definition-KYQAIZUX-Bzz22sDY.js b/pr-preview/pr-419/assets/timeline-definition-KYQAIZUX-CPQW5OwW.js similarity index 99% rename from pr-preview/pr-419/assets/timeline-definition-KYQAIZUX-Bzz22sDY.js rename to pr-preview/pr-419/assets/timeline-definition-KYQAIZUX-CPQW5OwW.js index 6f4178e68..a4dd9b70c 100644 --- a/pr-preview/pr-419/assets/timeline-definition-KYQAIZUX-Bzz22sDY.js +++ b/pr-preview/pr-419/assets/timeline-definition-KYQAIZUX-CPQW5OwW.js @@ -1,4 +1,4 @@ -import{_ as s,ah as xt,ai as kt,t as vt,j as U,d as _t,l as T,aa as bt,aj as wt,ak as St,al as Et}from"./Using existing ones-1ACZX-0W.js";import{d as nt}from"./arc-CGPltd1w.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var X=function(){var n=s(function(f,i,a,d){for(a=a||{},d=f.length;d--;a[f[d]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],h=[1,12],c=[1,13],g=[1,16],m=[1,17],p={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,d,u,y,o,E){var k=o.length-1;switch(y){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 15:u.addTask(o[k],0,""),this.$=o[k];break;case 16:u.addEvent(o[k].substr(2)),this.$=o[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:l,14:r,16:h,17:c,18:14,19:15,20:g,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:r,16:h,17:c,18:14,19:15,20:g,21:m},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 d=new Error(i);throw d.hash=a,d}},"parseError"),parse:s(function(i){var a=this,d=[0],u=[],y=[null],o=[],E=this.table,k="",$=0,C=0,B=2,K=1,j=o.slice.call(arguments,1),v=Object.create(this.lexer),L={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(L.yy[R]=this.yy[R]);v.setInput(i,L.yy),L.yy.lexer=v,L.yy.parser=this,typeof v.yylloc=="undefined"&&(v.yylloc={});var F=v.yylloc;o.push(F);var A=v.options&&v.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function S(I){d.length=d.length-2*I,y.length=y.length-I,o.length=o.length-I}s(S,"popStack");function M(){var I;return I=u.pop()||v.lex()||K,typeof I!="number"&&(I instanceof Array&&(u=I,I=u.pop()),I=a.symbols_[I]||I),I}s(M,"lex");for(var b,N,w,O,z={},G,P,et,q;;){if(N=d[d.length-1],this.defaultActions[N]?w=this.defaultActions[N]:((b===null||typeof b=="undefined")&&(b=M()),w=E[N]&&E[N][b]),typeof w=="undefined"||!w.length||!w[0]){var Q="";q=[];for(G in E[N])this.terminals_[G]&&G>B&&q.push("'"+this.terminals_[G]+"'");v.showPosition?Q="Parse error on line "+($+1)+`: +import{_ as s,ah as xt,ai as kt,t as vt,j as U,d as _t,l as T,aa as bt,aj as wt,ak as St,al as Et}from"./Using existing ones-DVOwGlbd.js";import{d as nt}from"./arc-CyEqX_RK.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";var X=function(){var n=s(function(f,i,a,d){for(a=a||{},d=f.length;d--;a[f[d]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],h=[1,12],c=[1,13],g=[1,16],m=[1,17],p={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,d,u,y,o,E){var k=o.length-1;switch(y){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 15:u.addTask(o[k],0,""),this.$=o[k];break;case 16:u.addEvent(o[k].substr(2)),this.$=o[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:l,14:r,16:h,17:c,18:14,19:15,20:g,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:r,16:h,17:c,18:14,19:15,20:g,21:m},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 d=new Error(i);throw d.hash=a,d}},"parseError"),parse:s(function(i){var a=this,d=[0],u=[],y=[null],o=[],E=this.table,k="",$=0,C=0,B=2,K=1,j=o.slice.call(arguments,1),v=Object.create(this.lexer),L={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(L.yy[R]=this.yy[R]);v.setInput(i,L.yy),L.yy.lexer=v,L.yy.parser=this,typeof v.yylloc=="undefined"&&(v.yylloc={});var F=v.yylloc;o.push(F);var A=v.options&&v.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function S(I){d.length=d.length-2*I,y.length=y.length-I,o.length=o.length-I}s(S,"popStack");function M(){var I;return I=u.pop()||v.lex()||K,typeof I!="number"&&(I instanceof Array&&(u=I,I=u.pop()),I=a.symbols_[I]||I),I}s(M,"lex");for(var b,N,w,O,z={},G,P,et,q;;){if(N=d[d.length-1],this.defaultActions[N]?w=this.defaultActions[N]:((b===null||typeof b=="undefined")&&(b=M()),w=E[N]&&E[N][b]),typeof w=="undefined"||!w.length||!w[0]){var Q="";q=[];for(G in E[N])this.terminals_[G]&&G>B&&q.push("'"+this.terminals_[G]+"'");v.showPosition?Q="Parse error on line "+($+1)+`: `+v.showPosition()+` Expecting `+q.join(", ")+", got '"+(this.terminals_[b]||b)+"'":Q="Parse error on line "+($+1)+": Unexpected "+(b==K?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Q,{text:v.match,token:this.terminals_[b]||b,line:v.yylineno,loc:F,expected:q})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+N+", token: "+b);switch(w[0]){case 1:d.push(b),y.push(v.yytext),o.push(v.yylloc),d.push(w[1]),b=null,C=v.yyleng,k=v.yytext,$=v.yylineno,F=v.yylloc;break;case 2:if(P=this.productions_[w[1]][1],z.$=y[y.length-P],z._$={first_line:o[o.length-(P||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(P||1)].first_column,last_column:o[o.length-1].last_column},A&&(z._$.range=[o[o.length-(P||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(z,[k,C,$,L.yy,w[1],y,o].concat(j)),typeof O!="undefined")return O;P&&(d=d.slice(0,-1*P*2),y=y.slice(0,-1*P),o=o.slice(0,-1*P)),d.push(this.productions_[w[1]][0]),y.push(z.$),o.push(z._$),et=E[d[d.length-2]][d[d.length-1]],d.push(et);break;case 3:return!0}}return!0},"parse")},x=function(){var f={EOF:1,parseError:s(function(a,d){if(this.yy.parser)this.yy.parser.parseError(a,d);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,d=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 u=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 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:d?(d.length===u.length?this.yylloc.first_column:0)+u[u.length-d.length].length-d[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/pr-preview/pr-419/assets/xychartDiagram-LESROZAQ-DLGqRkA9.js b/pr-preview/pr-419/assets/xychartDiagram-LESROZAQ-BqbOHeeh.js similarity index 99% rename from pr-preview/pr-419/assets/xychartDiagram-LESROZAQ-DLGqRkA9.js rename to pr-preview/pr-419/assets/xychartDiagram-LESROZAQ-BqbOHeeh.js index 6cda622dd..0f7b12aca 100644 --- a/pr-preview/pr-419/assets/xychartDiagram-LESROZAQ-DLGqRkA9.js +++ b/pr-preview/pr-419/assets/xychartDiagram-LESROZAQ-BqbOHeeh.js @@ -1,4 +1,4 @@ -import{_ as a,aD as ui,l as Ft,a2 as Bt,a1 as gi,H as At,G as Xt,F as xi,i as di,r as Nt,s as pi,g as fi,q as mi,b as yi,c as bi,t as Ai,K as wi,k as Ci}from"./Using existing ones-1ACZX-0W.js";import{i as Si}from"./init-Gi6I4Gst.js";import{o as _i}from"./ordinal-Cboi1Yqb.js";import{l as Wt}from"./linear-DgCw1O8s.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-CrQm7WUj.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";function ki(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++soi&&rt.push("'"+this.terminals_[at]+"'");T.showPosition?dt="Parse error on line "+(nt+1)+`: +import{_ as a,aD as ui,l as Ft,a2 as Bt,a1 as gi,H as At,G as Xt,F as xi,i as di,r as Nt,s as pi,g as fi,q as mi,b as yi,c as bi,t as Ai,K as wi,k as Ci}from"./Using existing ones-DVOwGlbd.js";import{i as Si}from"./init-Gi6I4Gst.js";import{o as _i}from"./ordinal-Cboi1Yqb.js";import{l as Wt}from"./linear-CvLLWfVT.js";import"./jsx-runtime-CS-_a2eV.js";import"./index-Ca44TZ0D.js";import"./index-Bqh_nw6E.js";import"./iframe-BNbdtpq9.js";import"../sb-preview/runtime.js";import"./dayjs.min-kn1EBQqj.js";import"./index-DrFu-skq.js";import"./Serializer-DsJDcYJc.js";function ki(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++soi&&rt.push("'"+this.terminals_[at]+"'");T.showPosition?dt="Parse error on line "+(nt+1)+`: `+T.showPosition()+` Expecting `+rt.join(", ")+", got '"+(this.terminals_[P]||P)+"'":dt="Parse error on line "+(nt+1)+": Unexpected "+(P==It?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(dt,{text:T.match,token:this.terminals_[P]||P,line:T.yylineno,loc:gt,expected:rt})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+P);switch(M[0]){case 1:g.push(P),A.push(T.yytext),r.push(T.yylloc),g.push(M[1]),P=null,Et=T.yyleng,d=T.yytext,nt=T.yylineno,gt=T.yylloc;break;case 2:if(V=this.productions_[M[1]][1],z.$=A[A.length-V],z._$={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},li&&(z._$.range=[r[r.length-(V||1)].range[0],r[r.length-1].range[1]]),xt=this.performAction.apply(z,[d,Et,nt,W.yy,M[1],A,r].concat(hi)),typeof xt!="undefined")return xt;V&&(g=g.slice(0,-1*V*2),A=A.slice(0,-1*V),r=r.slice(0,-1*V)),g.push(this.productions_[M[1]][0]),A.push(z.$),r.push(z._$),Vt=N[g[g.length-2]][g[g.length-1]],g.push(Vt);break;case 3:return!0}}return!0},"parse")},ri=function(){var B={EOF:1,parseError:a(function(c,g){if(this.yy.parser)this.yy.parser.parseError(c,g);else throw new Error(c)},"parseError"),setInput:a(function(h,c){return this.yy=c||this.yy||{},this._input=h,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 h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var c=h.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),h},"input"),unput:a(function(h){var c=h.length,g=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var x=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 A=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===x.length?this.yylloc.first_column:0)+x[x.length-g.length].length-g[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-c]),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(h){this.unput(this.match.slice(h))},"less"),pastInput:a(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var h=this.pastInput(),c=new Array(h.length+1).join("-");return h+this.upcomingInput()+` diff --git a/pr-preview/pr-419/iframe.html b/pr-preview/pr-419/iframe.html index ba6e31aa0..ba94d6182 100644 --- a/pr-preview/pr-419/iframe.html +++ b/pr-preview/pr-419/iframe.html @@ -505,7 +505,7 @@ } - + diff --git a/pr-preview/pr-419/project.json b/pr-preview/pr-419/project.json index 95a5bbdc8..d6c57094c 100644 --- a/pr-preview/pr-419/project.json +++ b/pr-preview/pr-419/project.json @@ -1 +1 @@ -{"generatedAt":1727296788604,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{"vitest":"1.3.1"},"packageManager":{"type":"npm","version":"10.8.1"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.1.10","storybookVersionSpecifier":"8.1.10","language":"typescript","storybookPackages":{"@storybook/addon-onboarding":{"version":"8.1.10"},"@storybook/blocks":{"version":"8.1.10"},"@storybook/react":{"version":"8.1.10"},"@storybook/react-vite":{"version":"8.1.10"},"@storybook/test":{"version":"8.1.10"},"@storybook/test-runner":{"version":"0.18.2"},"storybook":{"version":"8.1.10"}},"addons":{"@storybook/addon-links":{"version":"8.1.10"},"@storybook/addon-essentials":{"version":"8.1.10"},"@storybook/addon-interactions":{"version":"8.1.10"},"@storybook/addon-docs":{"version":"8.1.10"}}} +{"generatedAt":1727297120499,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{"vitest":"1.3.1"},"packageManager":{"type":"npm","version":"10.8.1"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.1.10","storybookVersionSpecifier":"8.1.10","language":"typescript","storybookPackages":{"@storybook/addon-onboarding":{"version":"8.1.10"},"@storybook/blocks":{"version":"8.1.10"},"@storybook/react":{"version":"8.1.10"},"@storybook/react-vite":{"version":"8.1.10"},"@storybook/test":{"version":"8.1.10"},"@storybook/test-runner":{"version":"0.18.2"},"storybook":{"version":"8.1.10"}},"addons":{"@storybook/addon-links":{"version":"8.1.10"},"@storybook/addon-essentials":{"version":"8.1.10"},"@storybook/addon-interactions":{"version":"8.1.10"},"@storybook/addon-docs":{"version":"8.1.10"}}}