@rainmanhhh/pi-web 0.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +147 -0
- package/README.zh-CN.md +145 -0
- package/dist/server.mjs +403 -0
- package/dist/static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/static/assets/_baseFor-D6HAxaEF.js +1 -0
- package/dist/static/assets/arc-Cev3HYkO.js +1 -0
- package/dist/static/assets/architecture-YZFGNWBL-DSVeA3Mc.js +1 -0
- package/dist/static/assets/architectureDiagram-Q4EWVU46-BUaFXLue.js +36 -0
- package/dist/static/assets/array-BifhSqXX.js +1 -0
- package/dist/static/assets/blockDiagram-DXYQGD6D-BD7crHZn.js +132 -0
- package/dist/static/assets/c4Diagram-AHTNJAMY-BTvR1Qix.js +10 -0
- package/dist/static/assets/channel-DSbgxqFl.js +1 -0
- package/dist/static/assets/chunk-4BX2VUAB-C9I87hfN.js +1 -0
- package/dist/static/assets/chunk-4TB4RGXK-CYXNKQNe.js +206 -0
- package/dist/static/assets/chunk-55IACEB6-DAYR8bYh.js +1 -0
- package/dist/static/assets/chunk-5FUZZQ4R-BghvyuR7.js +62 -0
- package/dist/static/assets/chunk-5PVQY5BW-CZT35iHI.js +2 -0
- package/dist/static/assets/chunk-BSJP7CBP-BclwT518.js +1 -0
- package/dist/static/assets/chunk-EDXVE4YY-C4TkNvln.js +1 -0
- package/dist/static/assets/chunk-ENJZ2VHE-BNRddB0h.js +10 -0
- package/dist/static/assets/chunk-FMBD7UC4-4iiTC4rp.js +15 -0
- package/dist/static/assets/chunk-ICPOFSXX-BIhiNjvk.js +122 -0
- package/dist/static/assets/chunk-K5T4RW27-FpH_VPgE.js +94 -0
- package/dist/static/assets/chunk-OYMX7WX6-Dg0dFe8H.js +231 -0
- package/dist/static/assets/chunk-QZHKN3VN-DnoLcr4T.js +1 -0
- package/dist/static/assets/chunk-U2HBQHQK-CJqSKuXA.js +70 -0
- package/dist/static/assets/chunk-X2U36JSP-DVXuKdYc.js +1 -0
- package/dist/static/assets/chunk-YZCP3GAM-D4t97aMk.js +1 -0
- package/dist/static/assets/chunk-ZZ45TVLE-D3ALxVxH.js +1 -0
- package/dist/static/assets/classDiagram-6PBFFD2Q-3fKgRhOi.js +1 -0
- package/dist/static/assets/classDiagram-v2-HSJHXN6E-3fKgRhOi.js +1 -0
- package/dist/static/assets/clone-Dgktwry5.js +1 -0
- package/dist/static/assets/cose-bilkent-S5V4N54A-CVHW-V1c.js +1 -0
- package/dist/static/assets/cytoscape.esm-KkXhEuBu.js +321 -0
- package/dist/static/assets/dagre-DANBRJgS.js +1 -0
- package/dist/static/assets/dagre-KV5264BT-RX495Ogs.js +4 -0
- package/dist/static/assets/defaultLocale-BFoDCU3G.js +1 -0
- package/dist/static/assets/diagram-5BDNPKRD-B3TQrwLp.js +10 -0
- package/dist/static/assets/diagram-G4DWMVQ6-DMTfV1fq.js +24 -0
- package/dist/static/assets/diagram-MMDJMWI5-BA8Bf6LU.js +43 -0
- package/dist/static/assets/diagram-TYMM5635-DZgWIMF2.js +24 -0
- package/dist/static/assets/dist-C_yfW-4f.js +1 -0
- package/dist/static/assets/erDiagram-SMLLAGMA-BPjiJgpM.js +85 -0
- package/dist/static/assets/flatten-DYA82rhy.js +1 -0
- package/dist/static/assets/flowDiagram-DWJPFMVM-C8itnDyk.js +162 -0
- package/dist/static/assets/ganttDiagram-T4ZO3ILL-QijQZ_7A.js +292 -0
- package/dist/static/assets/gitGraph-7Q5UKJZL-DUTBJasc.js +1 -0
- package/dist/static/assets/gitGraphDiagram-UUTBAWPF-B4SbXUo2.js +106 -0
- package/dist/static/assets/graphlib-CAZZWEle.js +1 -0
- package/dist/static/assets/highlighted-body-OFNGDK62-B6SZt-Xj.js +1 -0
- package/dist/static/assets/index-BSAN2ZmA.css +1 -0
- package/dist/static/assets/index-CtaBtFPm.js +492 -0
- package/dist/static/assets/info-OMHHGYJF-y8VVrvpT.js +1 -0
- package/dist/static/assets/infoDiagram-42DDH7IO-SEL8m7Hn.js +2 -0
- package/dist/static/assets/init-C-OQMol4.js +1 -0
- package/dist/static/assets/ishikawaDiagram-UXIWVN3A-BiGygTnl.js +70 -0
- package/dist/static/assets/journeyDiagram-VCZTEJTY-x16DmnC7.js +139 -0
- package/dist/static/assets/kanban-definition-6JOO6SKY-B_Vmy_se.js +89 -0
- package/dist/static/assets/katex-9tSoZCUs.js +257 -0
- package/dist/static/assets/line-BXZmYadU.js +1 -0
- package/dist/static/assets/linear-BDsPwGxk.js +1 -0
- package/dist/static/assets/mermaid-GHXKKRXX-CZfowopI.js +1 -0
- package/dist/static/assets/mermaid-parser.core-BdiNtuYK.js +4 -0
- package/dist/static/assets/mermaid.core-Cy3kC-2x.js +42 -0
- package/dist/static/assets/mindmap-definition-QFDTVHPH-DibAS34Z.js +96 -0
- package/dist/static/assets/ordinal-DtR4qwUh.js +1 -0
- package/dist/static/assets/packet-4T2RLAQJ-QWjI5ifX.js +1 -0
- package/dist/static/assets/path-fybaL0A-.js +1 -0
- package/dist/static/assets/pie-ZZUOXDRM-CCpZfmHW.js +1 -0
- package/dist/static/assets/pieDiagram-DEJITSTG-DE3IRdo2.js +30 -0
- package/dist/static/assets/quadrantDiagram-34T5L4WZ-BnFzq8uS.js +7 -0
- package/dist/static/assets/radar-PYXPWWZC-DJRfpCAG.js +1 -0
- package/dist/static/assets/reduce-D9Ymtwj-.js +1 -0
- package/dist/static/assets/requirementDiagram-MS252O5E-4JH5mfMt.js +84 -0
- package/dist/static/assets/rolldown-runtime-C_s2cVnS.js +1 -0
- package/dist/static/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/dist/static/assets/sankeyDiagram-XADWPNL6-BBM3bCVp.js +10 -0
- package/dist/static/assets/sequenceDiagram-FGHM5R23-Ngkhph4n.js +157 -0
- package/dist/static/assets/src-D3QavEJ4.js +1 -0
- package/dist/static/assets/stateDiagram-FHFEXIEX-B8QHUbFP.js +1 -0
- package/dist/static/assets/stateDiagram-v2-QKLJ7IA2-8s677m33.js +1 -0
- package/dist/static/assets/timeline-definition-GMOUNBTQ-Cj_jCa6v.js +120 -0
- package/dist/static/assets/treeView-SZITEDCU-BYIf12Kb.js +1 -0
- package/dist/static/assets/treemap-W4RFUUIX-ChTAE-ps.js +1 -0
- package/dist/static/assets/vennDiagram-DHZGUBPP-Nv73eNL-.js +34 -0
- package/dist/static/assets/wardley-RL74JXVD-D4JZq5aY.js +1 -0
- package/dist/static/assets/wardleyDiagram-NUSXRM2D-D4_-w6kd.js +20 -0
- package/dist/static/assets/xychartDiagram-5P7HB3ND-BWrW2XAn.js +7 -0
- package/dist/static/icons/apple-touch-icon.png +0 -0
- package/dist/static/icons/icon-192.png +0 -0
- package/dist/static/icons/icon-512.png +0 -0
- package/dist/static/index.html +46 -0
- package/dist/static/manifest.webmanifest +28 -0
- package/dist/static/offline.html +83 -0
- package/dist/static/sw.js +75 -0
- package/package.json +107 -0
- package/public/icons/apple-touch-icon.png +0 -0
- package/public/icons/icon-192.png +0 -0
- package/public/icons/icon-512.png +0 -0
- package/public/manifest.webmanifest +28 -0
- package/public/offline.html +83 -0
- package/public/sw.js +75 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./path-fybaL0A-.js";import{t as n}from"./array-BifhSqXX.js";import{G as r}from"./chunk-5PVQY5BW-CZT35iHI.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=e(!0),l=null,u=r,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:e(o),s=typeof s==`function`?s:s===void 0?a:e(s);function p(e){var t,r=(e=n(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=r;++t)!(t<r&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(t){return arguments.length?(o=typeof t==`function`?t:e(+t),p):o},p.y=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),p):s},p.defined=function(t){return arguments.length?(c=typeof t==`function`?t:e(!!t),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e,n as t,o as n,r,t as i}from"./src-D3QavEJ4.js";import{i as a,n as o,r as s,t as c}from"./defaultLocale-BFoDCU3G.js";import{t as l}from"./init-C-OQMol4.js";function u(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function d(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function f(e){let t,n,r;e.length===2?(t=e===u||e===d?e:p,n=e,r=e):(t=u,n=(t,n)=>u(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function p(){return 0}function m(e){return e===null?NaN:+e}var h=f(u),g=h.right;h.left,f(m).center;var _=Math.sqrt(50),v=Math.sqrt(10),y=Math.sqrt(2);function b(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=_?10:a>=v?5:a>=y?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?b(e,t,n*2):[s,c,l]}function x(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?b(t,e,n):b(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function S(e,t,n){return t=+t,e=+e,n=+n,b(e,t,n)[2]}function C(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?S(t,e,n):S(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function w(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function T(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function E(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=k(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function D(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function O(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=k(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}function k(a,o){var s=typeof o,c;return o==null||s===`boolean`?n(o):(s===`number`?t:s===`string`?(c=e(o))?(o=c,r):i:o instanceof e?r:o instanceof Date?D:T(o)?w:Array.isArray(o)?E:typeof o.valueOf!=`function`&&typeof o.toString!=`function`||isNaN(o)?O:t)(a,o)}function A(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function j(e){return Math.max(0,-a(Math.abs(e)))}function M(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(t)/3)))*3-a(Math.abs(e)))}function N(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,a(t)-a(e))+1}function P(e){return function(){return e}}function F(e){return+e}var I=[0,1];function L(e){return e}function R(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:P(isNaN(t)?NaN:.5)}function z(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function B(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=R(i,r),a=n(o,a)):(r=R(r,i),a=n(a,o)),function(e){return a(r(e))}}function V(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=R(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=g(e,t,1,r)-1;return a[n](i[n](t))}}function H(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function U(){var e=I,n=I,r=k,i,a,o,s=L,c,l,u;function d(){var t=Math.min(e.length,n.length);return s!==L&&(s=z(e[0],e[t-1])),c=t>2?V:B,l=u=null,f}function f(t){return t==null||isNaN(t=+t)?o:(l||=c(e.map(i),n,r))(i(s(t)))}return f.invert=function(r){return s(a((u||=c(n,e.map(i),t))(r)))},f.domain=function(t){return arguments.length?(e=Array.from(t,F),d()):e.slice()},f.range=function(e){return arguments.length?(n=Array.from(e),d()):n.slice()},f.rangeRound=function(e){return n=Array.from(e),r=A,d()},f.clamp=function(e){return arguments.length?(s=e?!0:L,d()):s!==L},f.interpolate=function(e){return arguments.length?(r=e,d()):r},f.unknown=function(e){return arguments.length?(o=e,f):o},function(e,t){return i=e,a=t,d()}}function W(){return U()(L,L)}function G(e,t,n,r){var i=C(e,t,n),a;switch(r=s(r??`,f`),r.type){case`s`:var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=M(i,l))&&(r.precision=a),o(r,l);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=N(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=j(i))&&(r.precision=a-(r.type===`%`)*2)}return c(r)}function K(e){var t=e.domain;return e.ticks=function(e){var n=t();return x(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return G(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=S(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function q(){var e=W();return e.copy=function(){return H(e,q())},l.apply(e,arguments),K(e)}export{f as a,C as i,W as n,H as r,q as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./index-CtaBtFPm.js";export{e as Mermaid};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/info-OMHHGYJF-y8VVrvpT.js","assets/chunk-K5T4RW27-FpH_VPgE.js","assets/rolldown-runtime-C_s2cVnS.js","assets/reduce-D9Ymtwj-.js","assets/_baseFor-D6HAxaEF.js","assets/mermaid.core-Cy3kC-2x.js","assets/index-CtaBtFPm.js","assets/index-BSAN2ZmA.css","assets/src-D3QavEJ4.js","assets/chunk-ICPOFSXX-BIhiNjvk.js","assets/chunk-5PVQY5BW-CZT35iHI.js","assets/dist-C_yfW-4f.js","assets/chunk-U2HBQHQK-CJqSKuXA.js","assets/chunk-BSJP7CBP-BclwT518.js","assets/chunk-ZZ45TVLE-D3ALxVxH.js","assets/chunk-X2U36JSP-DVXuKdYc.js","assets/chunk-5FUZZQ4R-BghvyuR7.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-ENJZ2VHE-BNRddB0h.js","assets/line-BXZmYadU.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/flatten-DYA82rhy.js","assets/packet-4T2RLAQJ-QWjI5ifX.js","assets/pie-ZZUOXDRM-CCpZfmHW.js","assets/treeView-SZITEDCU-BYIf12Kb.js","assets/architecture-YZFGNWBL-DSVeA3Mc.js","assets/gitGraph-7Q5UKJZL-DUTBJasc.js","assets/radar-PYXPWWZC-DJRfpCAG.js","assets/treemap-W4RFUUIX-ChTAE-ps.js","assets/wardley-RL74JXVD-D4JZq5aY.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e}from"./index-CtaBtFPm.js";import{_ as t,a as n,c as r,d as i,f as a,g as o,h as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g,u as _,v}from"./chunk-K5T4RW27-FpH_VPgE.js";var y=class extends g{static{u(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},b=class extends d{static{u(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){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`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},x={parser:{TokenBuilder:u(()=>new y,`TokenBuilder`),ValueConverter:u(()=>new b,`ValueConverter`)}};function S(e=s){let n=o(v(e),h),r=o(t({shared:n}),m,x);return n.ServiceRegistry.register(r),{shared:n,Architecture:r}}u(S,`createArchitectureServices`);var C=class extends g{static{u(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},w={parser:{TokenBuilder:u(()=>new C,`TokenBuilder`),ValueConverter:u(()=>new c,`ValueConverter`)}};function T(e=s){let r=o(v(e),h),i=o(t({shared:r}),n,w);return r.ServiceRegistry.register(i),{shared:r,GitGraph:i}}u(T,`createGitGraphServices`);var ee=class extends g{static{u(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},E={parser:{TokenBuilder:u(()=>new ee,`TokenBuilder`),ValueConverter:u(()=>new c,`ValueConverter`)}};function D(e=s){let n=o(v(e),h),r=o(t({shared:n}),f,E);return n.ServiceRegistry.register(r),{shared:n,Info:r}}u(D,`createInfoServices`);var O=class extends g{static{u(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},k={parser:{TokenBuilder:u(()=>new O,`TokenBuilder`),ValueConverter:u(()=>new c,`ValueConverter`)}};function A(e=s){let n=o(v(e),h),i=o(t({shared:n}),r,k);return n.ServiceRegistry.register(i),{shared:n,Packet:i}}u(A,`createPacketServices`);var j=class extends g{static{u(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},M=class extends d{static{u(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},N={parser:{TokenBuilder:u(()=>new j,`TokenBuilder`),ValueConverter:u(()=>new M,`ValueConverter`)}};function P(e=s){let n=o(v(e),h),r=o(t({shared:n}),l,N);return n.ServiceRegistry.register(r),{shared:n,Pie:r}}u(P,`createPieServices`);var F=class extends g{static{u(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},I={parser:{TokenBuilder:u(()=>new F,`TokenBuilder`),ValueConverter:u(()=>new c,`ValueConverter`)}};function L(e=s){let n=o(v(e),h),r=o(t({shared:n}),_,I);return n.ServiceRegistry.register(r),{shared:n,Radar:r}}u(L,`createRadarServices`);var R=class extends d{static{u(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`STRING2`)return t.substring(1,t.length-1)}},z=class extends g{static{u(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},B={parser:{TokenBuilder:u(()=>new z,`TokenBuilder`),ValueConverter:u(()=>new R,`ValueConverter`)}};function V(e=s){let n=o(v(e),h),r=o(t({shared:n}),i,B);return n.ServiceRegistry.register(r),{shared:n,TreeView:r}}u(V,`createTreeViewServices`);var H=class extends g{static{u(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},U=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,W=class extends d{static{u(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=U.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function G(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}u(G,`registerValidationChecks`);var K=class{static{u(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},q={parser:{TokenBuilder:u(()=>new H,`TokenBuilder`),ValueConverter:u(()=>new W,`ValueConverter`)},validation:{TreemapValidator:u(()=>new K,`TreemapValidator`)}};function J(e=s){let n=o(v(e),h),r=o(t({shared:n}),a,q);return n.ServiceRegistry.register(r),G(r),{shared:n,Treemap:r}}u(J,`createTreemapServices`);var Y=class extends d{static{u(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},X={parser:{ValueConverter:u(()=>new Y,`ValueConverter`)}};function Z(e=s){let n=o(v(e),h),r=o(t({shared:n}),p,X);return n.ServiceRegistry.register(r),{shared:n,Wardley:r}}u(Z,`createWardleyServices`);var Q={},te={info:u(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-OMHHGYJF-y8VVrvpT.js`);return{createInfoServices:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]));Q.info=t().Info.parser.LangiumParser},`info`),packet:u(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-4T2RLAQJ-QWjI5ifX.js`);return{createPacketServices:e}},__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]));Q.packet=t().Packet.parser.LangiumParser},`packet`),pie:u(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-ZZUOXDRM-CCpZfmHW.js`);return{createPieServices:e}},__vite__mapDeps([24,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]));Q.pie=t().Pie.parser.LangiumParser},`pie`),treeView:u(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-SZITEDCU-BYIf12Kb.js`);return{createTreeViewServices:e}},__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]));Q.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:u(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-YZFGNWBL-DSVeA3Mc.js`);return{createArchitectureServices:e}},__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]));Q.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:u(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-7Q5UKJZL-DUTBJasc.js`);return{createGitGraphServices:e}},__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]));Q.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),radar:u(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-PYXPWWZC-DJRfpCAG.js`);return{createRadarServices:e}},__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]));Q.radar=t().Radar.parser.LangiumParser},`radar`),treemap:u(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-W4RFUUIX-ChTAE-ps.js`);return{createTreemapServices:e}},__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]));Q.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:u(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-RL74JXVD-D4JZq5aY.js`);return{createWardleyServices:e}},__vite__mapDeps([30,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]));Q.wardley=t().Wardley.parser.LangiumParser},`wardley`)};async function $(e,t){let n=te[e];if(!n)throw Error(`Unknown diagram type: ${e}`);Q[e]||await n();let r=Q[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new ne(r);return r.value}u($,`parse`);var ne=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
|
|
3
|
+
`),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(`
|
|
4
|
+
`);super(`Parsing failed: ${t} ${n}`),this.result=e}static{u(this,`MermaidParseError`)}};export{T as _,J as a,I as c,P as d,k as f,w as g,D as h,q as i,L as l,E as m,X as n,B as o,A as p,Z as r,V as s,$ as t,N as u,x as v,S as y};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-KV5264BT-RX495Ogs.js","assets/flatten-DYA82rhy.js","assets/reduce-D9Ymtwj-.js","assets/_baseFor-D6HAxaEF.js","assets/src-D3QavEJ4.js","assets/rolldown-runtime-C_s2cVnS.js","assets/chunk-ICPOFSXX-BIhiNjvk.js","assets/index-CtaBtFPm.js","assets/index-BSAN2ZmA.css","assets/chunk-5PVQY5BW-CZT35iHI.js","assets/dist-C_yfW-4f.js","assets/chunk-U2HBQHQK-CJqSKuXA.js","assets/chunk-BSJP7CBP-BclwT518.js","assets/chunk-ZZ45TVLE-D3ALxVxH.js","assets/graphlib-CAZZWEle.js","assets/clone-Dgktwry5.js","assets/dagre-DANBRJgS.js","assets/chunk-X2U36JSP-DVXuKdYc.js","assets/chunk-5FUZZQ4R-BghvyuR7.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-ENJZ2VHE-BNRddB0h.js","assets/line-BXZmYadU.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/cose-bilkent-S5V4N54A-CVHW-V1c.js","assets/cytoscape.esm-KkXhEuBu.js","assets/c4Diagram-AHTNJAMY-BTvR1Qix.js","assets/chunk-YZCP3GAM-D4t97aMk.js","assets/flowDiagram-DWJPFMVM-C8itnDyk.js","assets/channel-DSbgxqFl.js","assets/chunk-FMBD7UC4-4iiTC4rp.js","assets/chunk-55IACEB6-DAYR8bYh.js","assets/chunk-EDXVE4YY-C4TkNvln.js","assets/erDiagram-SMLLAGMA-BPjiJgpM.js","assets/gitGraphDiagram-UUTBAWPF-B4SbXUo2.js","assets/mermaid-parser.core-BdiNtuYK.js","assets/chunk-K5T4RW27-FpH_VPgE.js","assets/chunk-4BX2VUAB-C9I87hfN.js","assets/chunk-QZHKN3VN-DnoLcr4T.js","assets/ganttDiagram-T4ZO3ILL-QijQZ_7A.js","assets/linear-BDsPwGxk.js","assets/defaultLocale-BFoDCU3G.js","assets/init-C-OQMol4.js","assets/infoDiagram-42DDH7IO-SEL8m7Hn.js","assets/pieDiagram-DEJITSTG-DE3IRdo2.js","assets/ordinal-DtR4qwUh.js","assets/arc-Cev3HYkO.js","assets/quadrantDiagram-34T5L4WZ-BnFzq8uS.js","assets/xychartDiagram-5P7HB3ND-BWrW2XAn.js","assets/requirementDiagram-MS252O5E-4JH5mfMt.js","assets/sequenceDiagram-FGHM5R23-Ngkhph4n.js","assets/classDiagram-6PBFFD2Q-3fKgRhOi.js","assets/chunk-4TB4RGXK-CYXNKQNe.js","assets/classDiagram-v2-HSJHXN6E-3fKgRhOi.js","assets/stateDiagram-FHFEXIEX-B8QHUbFP.js","assets/chunk-OYMX7WX6-Dg0dFe8H.js","assets/stateDiagram-v2-QKLJ7IA2-8s677m33.js","assets/journeyDiagram-VCZTEJTY-x16DmnC7.js","assets/timeline-definition-GMOUNBTQ-Cj_jCa6v.js","assets/mindmap-definition-QFDTVHPH-DibAS34Z.js","assets/kanban-definition-6JOO6SKY-B_Vmy_se.js","assets/sankeyDiagram-XADWPNL6-BBM3bCVp.js","assets/diagram-TYMM5635-DZgWIMF2.js","assets/diagram-MMDJMWI5-BA8Bf6LU.js","assets/blockDiagram-DXYQGD6D-BD7crHZn.js","assets/diagram-5BDNPKRD-B3TQrwLp.js","assets/architectureDiagram-Q4EWVU46-BUaFXLue.js","assets/ishikawaDiagram-UXIWVN3A-BiGygTnl.js","assets/vennDiagram-DHZGUBPP-Nv73eNL-.js","assets/diagram-G4DWMVQ6-DMTfV1fq.js","assets/wardleyDiagram-NUSXRM2D-D4_-w6kd.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e}from"./index-CtaBtFPm.js";import{D as t,S as n,T as r,a as i,b as a,c as o,g as s,i as c,m as l,o as u,p as d,x as f}from"./_baseFor-D6HAxaEF.js";import{_ as p,g as m,h,p as g}from"./src-D3QavEJ4.js";import{F as _,G as v,H as y,J as b,M as x,N as S,S as C,T as w,X as ee,Y as te,Z as ne,b as re,c as ie,f as ae,g as T,h as oe,l as se,n as ce,p as le,r as ue,s as de,t as fe,w as pe,x as me,y as E,z as he}from"./chunk-ICPOFSXX-BIhiNjvk.js";import{a as ge,d as _e,h as ve,i as ye,m as be,r as xe,u as Se}from"./chunk-5PVQY5BW-CZT35iHI.js";import{i as Ce,o as we}from"./chunk-U2HBQHQK-CJqSKuXA.js";import"./chunk-BSJP7CBP-BclwT518.js";import"./chunk-ZZ45TVLE-D3ALxVxH.js";import"./chunk-X2U36JSP-DVXuKdYc.js";import{a as Te,i as Ee,s as De}from"./chunk-5FUZZQ4R-BghvyuR7.js";import{a as Oe,i as ke,n as Ae,r as je}from"./chunk-ENJZ2VHE-BNRddB0h.js";var Me=i(Object.keys,Object),Ne=Object.prototype.hasOwnProperty;function Pe(e){if(!u(e))return Me(e);var t=[];for(var n in Object(e))Ne.call(e,n)&&n!=`constructor`&&t.push(n);return t}var Fe=f(t,`DataView`),Ie=f(t,`Promise`),Le=f(t,`Set`),Re=f(t,`WeakMap`),ze=`[object Map]`,Be=`[object Object]`,Ve=`[object Promise]`,He=`[object Set]`,Ue=`[object WeakMap]`,We=`[object DataView]`,Ge=n(Fe),Ke=n(a),qe=n(Ie),Je=n(Le),Ye=n(Re),D=r;(Fe&&D(new Fe(new ArrayBuffer(1)))!=We||a&&D(new a)!=ze||Ie&&D(Ie.resolve())!=Ve||Le&&D(new Le)!=He||Re&&D(new Re)!=Ue)&&(D=function(e){var t=r(e),i=t==Be?e.constructor:void 0,a=i?n(i):``;if(a)switch(a){case Ge:return We;case Ke:return ze;case qe:return Ve;case Je:return He;case Ye:return Ue}return t});var Xe=D,Ze=`[object Map]`,Qe=`[object Set]`,$e=Object.prototype.hasOwnProperty;function et(e){if(e==null)return!0;if(c(e)&&(s(e)||typeof e==`string`||typeof e.splice==`function`||d(e)||o(e)||l(e)))return!e.length;var t=Xe(e);if(t==Ze||t==Qe)return!e.size;if(u(e))return!Pe(e).length;for(var n in e)if($e.call(e,n))return!1;return!0}var tt=h(e=>{let{securityLevel:t}=re(),n=g(`body`);if(t===`sandbox`){let t=g(`#i${e}`).node()?.contentDocument??document;n=g(t.body)}return n.select(`#${e}`)},`selectSvgElement`),nt={common:de,getConfig:E,insertCluster:Ee,insertEdge:Ae,insertEdgeLabel:je,insertMarkers:ke,insertNode:Te,interpolateToCurve:Se,labelHelper:De,log:m,positionEdgeLabel:Oe},rt={},it=h(e=>{for(let t of e)rt[t.name]=t},`registerLayoutLoaders`);h(()=>{it([{name:`dagre`,loader:h(async()=>await e(()=>import(`./dagre-KV5264BT-RX495Ogs.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23])),`loader`)},{name:`cose-bilkent`,loader:h(async()=>await e(()=>import(`./cose-bilkent-S5V4N54A-CVHW-V1c.js`),__vite__mapDeps([24,5,4,25])),`loader`)}])},`registerDefaultLayoutLoaders`)();var at=h(async(e,t)=>{if(!(e.layoutAlgorithm in rt))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=rt[e.layoutAlgorithm],r=await n.loader(),{theme:i,themeVariables:a}=e.config,{useGradient:o,gradientStart:s,gradientStop:c}=a,l=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${l}-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${l}-drop-shadow-small`).attr(`height`,`150%`).attr(`width`,`150%`).append(`feDropShadow`).attr(`dx`,`2`).attr(`dy`,`2`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),o){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,s).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,c).attr(`stop-opacity`,1)}return r.render(e,t,nt,{algorithm:n.algorithm})},`render`),ot=h((e=``,{fallback:t=`dagre`}={})=>{if(e in rt)return e;if(t in rt)return m.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},`getRegisteredLayoutAlgorithm`);function st(e){return e==null}h(st,`isNothing`);function ct(e){return typeof e==`object`&&!!e}h(ct,`isObject`);function lt(e){return Array.isArray(e)?e:st(e)?[]:[e]}h(lt,`toArray`);function ut(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}h(ut,`extend`);function dt(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}h(dt,`repeat`);function ft(e){return e===0&&1/e==-1/0}h(ft,`isNegativeZero`);var O={isNothing:st,isObject:ct,toArray:lt,repeat:dt,isNegativeZero:ft,extend:ut};function pt(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
|
|
3
|
+
|
|
4
|
+
`+e.mark.snippet),r+` `+n):r}h(pt,`formatError`);function k(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=pt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}h(k,`YAMLException$1`),k.prototype=Object.create(Error.prototype),k.prototype.constructor=k,k.prototype.toString=h(function(e){return this.name+`: `+pt(this,e)},`toString`);var A=k;function mt(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}h(mt,`getLine`);function ht(e,t){return O.repeat(` `,t-e.length)+e}h(ht,`padStart`);function gt(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s=``,c,l,u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)l=mt(e.buffer,r[o-c],i[o-c],e.position-(r[o]-r[o-c]),d),s=O.repeat(` `,t.indent)+ht((e.line-c+1).toString(),u)+` | `+l.str+`
|
|
5
|
+
`+s;for(l=mt(e.buffer,r[o],i[o],e.position,d),s+=O.repeat(` `,t.indent)+ht((e.line+1).toString(),u)+` | `+l.str+`
|
|
6
|
+
`,s+=O.repeat(`-`,t.indent+u+3+l.pos)+`^
|
|
7
|
+
`,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)l=mt(e.buffer,r[o+c],i[o+c],e.position-(r[o]-r[o+c]),d),s+=O.repeat(` `,t.indent)+ht((e.line+c+1).toString(),u)+` | `+l.str+`
|
|
8
|
+
`;return s.replace(/\n$/,``)}h(gt,`makeSnippet`);var _t=gt,vt=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],yt=[`scalar`,`sequence`,`mapping`];function bt(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}h(bt,`compileStyleAliases`);function xt(e,t){if(t||={},Object.keys(t).forEach(function(t){if(vt.indexOf(t)===-1)throw new A(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=bt(t.styleAliases||null),yt.indexOf(this.kind)===-1)throw new A(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}h(xt,`Type$1`);var j=xt;function St(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}h(St,`compileList`);function Ct(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(h(r,`collectType`),t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}h(Ct,`compileMap`);function wt(e){return this.extend(e)}h(wt,`Schema$1`),wt.prototype.extend=h(function(e){var t=[],n=[];if(e instanceof j)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new A(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof j))throw new A(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new A(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new A(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),n.forEach(function(e){if(!(e instanceof j))throw new A(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(wt.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=St(r,`implicit`),r.compiledExplicit=St(r,`explicit`),r.compiledTypeMap=Ct(r.compiledImplicit,r.compiledExplicit),r},`extend`);var Tt=new wt({explicit:[new j(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:h(function(e){return e===null?``:e},`construct`)}),new j(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:h(function(e){return e===null?[]:e},`construct`)}),new j(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:h(function(e){return e===null?{}:e},`construct`)})]});function Et(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}h(Et,`resolveYamlNull`);function Dt(){return null}h(Dt,`constructYamlNull`);function Ot(e){return e===null}h(Ot,`isNull`);var kt=new j(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:Et,construct:Dt,predicate:Ot,represent:{canonical:h(function(){return`~`},`canonical`),lowercase:h(function(){return`null`},`lowercase`),uppercase:h(function(){return`NULL`},`uppercase`),camelcase:h(function(){return`Null`},`camelcase`),empty:h(function(){return``},`empty`)},defaultStyle:`lowercase`});function At(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}h(At,`resolveYamlBoolean`);function jt(e){return e===`true`||e===`True`||e===`TRUE`}h(jt,`constructYamlBoolean`);function Mt(e){return Object.prototype.toString.call(e)===`[object Boolean]`}h(Mt,`isBoolean`);var Nt=new j(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:At,construct:jt,predicate:Mt,represent:{lowercase:h(function(e){return e?`true`:`false`},`lowercase`),uppercase:h(function(e){return e?`TRUE`:`FALSE`},`uppercase`),camelcase:h(function(e){return e?`True`:`False`},`camelcase`)},defaultStyle:`lowercase`});function Pt(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}h(Pt,`isHexCode`);function Ft(e){return 48<=e&&e<=55}h(Ft,`isOctCode`);function It(e){return 48<=e&&e<=57}h(It,`isDecCode`);function Lt(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i===`-`||i===`+`)&&(i=e[++n]),i===`0`){if(n+1===t)return!0;if(i=e[++n],i===`b`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(i!==`0`&&i!==`1`)return!1;r=!0}return r&&i!==`_`}if(i===`x`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!Pt(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}if(i===`o`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!Ft(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}}if(i===`_`)return!1;for(;n<t;n++)if(i=e[n],i!==`_`){if(!It(e.charCodeAt(n)))return!1;r=!0}return!(!r||i===`_`)}h(Lt,`resolveYamlInteger`);function Rt(e){var t=e,n=1,r;if(t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}h(Rt,`constructYamlInteger`);function zt(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!O.isNegativeZero(e)}h(zt,`isInteger`);var Bt=new j(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:Lt,construct:Rt,predicate:zt,represent:{binary:h(function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:h(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:h(function(e){return e.toString(10)},`decimal`),hexadecimal:h(function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)},`hexadecimal`)},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),Vt=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function Ht(e){return!(e===null||!Vt.test(e)||e[e.length-1]===`_`)}h(Ht,`resolveYamlFloat`);function Ut(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}h(Ut,`constructYamlFloat`);var Wt=/^[-+]?[0-9]+e/;function Gt(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(O.isNegativeZero(e))return`-0.0`;return n=e.toString(10),Wt.test(n)?n.replace(`e`,`.e`):n}h(Gt,`representYamlFloat`);function Kt(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||O.isNegativeZero(e))}h(Kt,`isFloat`);var qt=new j(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:Ht,construct:Ut,predicate:Kt,represent:Gt,defaultStyle:`lowercase`}),Jt=Tt.extend({implicit:[kt,Nt,Bt,qt]}),Yt=Jt,Xt=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Zt=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function Qt(e){return e===null?!1:Xt.exec(e)!==null||Zt.exec(e)!==null}h(Qt,`resolveYamlTimestamp`);function $t(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=Xt.exec(e),t===null&&(t=Zt.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}h($t,`constructYamlTimestamp`);function en(e){return e.toISOString()}h(en,`representYamlTimestamp`);var tn=new j(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:Qt,construct:$t,instanceOf:Date,represent:en});function nn(e){return e===`<<`||e===null}h(nn,`resolveYamlMerge`);var rn=new j(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:nn}),an=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
9
|
+
\r`;function on(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=an;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}h(on,`resolveYamlBinary`);function sn(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=an,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}h(sn,`constructYamlBinary`);function cn(e){var t=``,n=0,r,i,a=e.length,o=an;for(r=0;r<a;r++)r%3==0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}h(cn,`representYamlBinary`);function ln(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}h(ln,`isBinary`);var un=new j(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:on,construct:sn,predicate:ln,represent:cn}),dn=Object.prototype.hasOwnProperty,fn=Object.prototype.toString;function pn(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,fn.call(i)!==`[object Object]`)return!1;for(a in i)if(dn.call(i,a)){if(!o)o=!0;else return!1}if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}h(pn,`resolveYamlOmap`);function mn(e){return e===null?[]:e}h(mn,`constructYamlOmap`);var hn=new j(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:pn,construct:mn}),gn=Object.prototype.toString;function _n(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],gn.call(r)!==`[object Object]`||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}h(_n,`resolveYamlPairs`);function vn(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}h(vn,`constructYamlPairs`);var yn=new j(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:_n,construct:vn}),bn=Object.prototype.hasOwnProperty;function xn(e){if(e===null)return!0;var t,n=e;for(t in n)if(bn.call(n,t)&&n[t]!==null)return!1;return!0}h(xn,`resolveYamlSet`);function Sn(e){return e===null?{}:e}h(Sn,`constructYamlSet`);var Cn=new j(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:xn,construct:Sn}),wn=Yt.extend({implicit:[tn,rn],explicit:[un,hn,yn,Cn]}),M=Object.prototype.hasOwnProperty,Tn=1,En=2,Dn=3,On=4,kn=1,An=2,jn=3,Mn=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Nn=/[\x85\u2028\u2029]/,Pn=/[,\[\]\{\}]/,Fn=/^(?:!|!!|![a-z\-]+!)$/i,In=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ln(e){return Object.prototype.toString.call(e)}h(Ln,`_class`);function N(e){return e===10||e===13}h(N,`is_EOL`);function P(e){return e===9||e===32}h(P,`is_WHITE_SPACE`);function F(e){return e===9||e===32||e===10||e===13}h(F,`is_WS_OR_EOL`);function I(e){return e===44||e===91||e===93||e===123||e===125}h(I,`is_FLOW_INDICATOR`);function Rn(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}h(Rn,`fromHexCode`);function zn(e){return e===120?2:e===117?4:e===85?8:0}h(zn,`escapedHexLen`);function Bn(e){return 48<=e&&e<=57?e-48:-1}h(Bn,`fromDecimalCode`);function Vn(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?`
|
|
10
|
+
`:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`
`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}h(Vn,`simpleEscapeSequence`);function Hn(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}h(Hn,`charFromCodepoint`);function Un(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}h(Un,`setProperty`);var Wn=Array(256),Gn=Array(256);for(L=0;L<256;L++)Wn[L]=+!!Vn(L),Gn[L]=Vn(L);var L;function Kn(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||wn,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}h(Kn,`State$1`);function qn(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=_t(n),new A(t,n)}h(qn,`generateError`);function R(e,t){throw qn(e,t)}h(R,`throwError`);function Jn(e,t){e.onWarning&&e.onWarning.call(null,qn(e,t))}h(Jn,`throwWarning`);var Yn={YAML:h(function(e,t,n){var r,i,a;e.version!==null&&R(e,`duplication of %YAML directive`),n.length!==1&&R(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&R(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&R(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&Jn(e,`unsupported YAML version of the document`)},`handleYamlDirective`),TAG:h(function(e,t,n){var r,i;n.length!==2&&R(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],Fn.test(r)||R(e,`ill-formed tag handle (first argument) of the TAG directive`),M.call(e.tagMap,r)&&R(e,`there is a previously declared suffix for "`+r+`" tag handle`),In.test(i)||R(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{R(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i},`handleTagDirective`)};function z(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||R(e,`expected valid JSON character`);else Mn.test(s)&&R(e,`the stream contains non-printable characters`);e.result+=s}}h(z,`captureSegment`);function Xn(e,t,n,r){var i,a,o,s;for(O.isObject(n)||R(e,`cannot merge mappings; the provided source object is unacceptable`),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],M.call(t,a)||(Un(t,a,n[a]),r[a]=!0)}h(Xn,`mergeMappings`);function B(e,t,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&R(e,`nested arrays are not supported inside keys`),typeof i==`object`&&Ln(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(typeof i==`object`&&Ln(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`){if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)Xn(e,t,a[l],n);else Xn(e,t,a,n)}else!e.json&&!M.call(n,i)&&M.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,R(e,`duplicated mapping key`)),Un(t,i,a),delete n[i];return t}h(B,`storeMappingPair`);function Zn(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):R(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}h(Zn,`readLineBreak`);function V(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;P(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(N(i))for(Zn(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Jn(e,`deficient indentation`),r}h(V,`skipSeparationSpace`);function Qn(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||F(n)))}h(Qn,`testDocumentSeparator`);function $n(e,t){t===1?e.result+=` `:t>1&&(e.result+=O.repeat(`
|
|
11
|
+
`,t-1))}h($n,`writeFoldedLines`);function er(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(F(p)||I(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),F(i)||n&&I(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),F(i)||n&&I(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),F(r))break}else if(e.position===e.lineStart&&Qn(e)||n&&I(p))break;else if(N(p)){if(c=e.line,l=e.lineStart,u=e.lineIndent,V(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(z(e,a,o,!1),$n(e,e.line-c),a=o=e.position,!1),P(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return z(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}h(er,`readPlainScalar`);function tr(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39){if(z(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0}else N(n)?(z(e,r,i,!0),$n(e,V(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Qn(e)?R(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);R(e,`unexpected end of the stream within a single quoted scalar`)}h(tr,`readSingleQuotedScalar`);function nr(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return z(e,n,e.position,!0),e.position++,!0;else if(s===92){if(z(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),N(s))V(e,!1,t);else if(s<256&&Wn[s])e.result+=Gn[s],e.position++;else if((o=zn(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=Rn(s))>=0?a=(a<<4)+o:R(e,`expected hexadecimal character`);e.result+=Hn(a),e.position++}else R(e,`unknown escape sequence`);n=r=e.position}else N(s)?(z(e,n,r,!0),$n(e,V(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Qn(e)?R(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);R(e,`unexpected end of the stream within a double quoted scalar`)}h(nr,`readDoubleQuotedScalar`);function rr(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(V(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&R(e,`expected the node content, but found ','`):R(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),F(l)&&(d=f=!0,e.position++,V(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,H(e,t,Tn,!1,!0),g=e.tag,h=e.result,V(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),V(e,!0,t),H(e,t,Tn,!1,!0),_=e.result),p?B(e,s,m,g,h,_,r,i,a):d?s.push(B(e,null,m,g,h,_,r,i,a)):s.push(h),V(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}R(e,`unexpected end of the stream within a flow collection`)}h(rr,`readFlowCollection`);function ir(e,t){var n,r,i=kn,a=!1,o=!1,s=t,c=0,l=!1,u,d=e.input.charCodeAt(e.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)kn===i?i=d===43?jn:An:R(e,`repeat of a chomping mode identifier`);else if((u=Bn(d))>=0)u===0?R(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?R(e,`repeat of an indentation width identifier`):(s=t+u-1,o=!0);else break;if(P(d)){do d=e.input.charCodeAt(++e.position);while(P(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!N(d)&&d!==0)}for(;d!==0;){for(Zn(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),N(d)){c++;continue}if(e.lineIndent<s){i===jn?e.result+=O.repeat(`
|
|
12
|
+
`,a?1+c:c):i===kn&&a&&(e.result+=`
|
|
13
|
+
`);break}for(r?P(d)?(l=!0,e.result+=O.repeat(`
|
|
14
|
+
`,a?1+c:c)):l?(l=!1,e.result+=O.repeat(`
|
|
15
|
+
`,c+1)):c===0?a&&(e.result+=` `):e.result+=O.repeat(`
|
|
16
|
+
`,c):e.result+=O.repeat(`
|
|
17
|
+
`,a?1+c:c),a=!0,o=!0,c=0,n=e.position;!N(d)&&d!==0;)d=e.input.charCodeAt(++e.position);z(e,n,e.position,!1)}return!0}h(ir,`readBlockScalar`);function ar(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,R(e,`tab characters must not be used in indentation`)),!(c!==45||(o=e.input.charCodeAt(e.position+1),!F(o))));){if(s=!0,e.position++,V(e,!0,-1)&&e.lineIndent<=t){a.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,H(e,t,Dn,!1,!0),a.push(e.result),V(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)R(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind=`sequence`,e.result=a,!0):!1}h(ar,`readBlockSequence`);function or(e,t,n){var r,i,a,o,s,c,l=e.tag,u=e.anchor,d={},f=Object.create(null),p=null,m=null,h=null,g=!1,_=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),v=e.input.charCodeAt(e.position);v!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,R(e,`tab characters must not be used in indentation`)),r=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&F(r))v===63?(g&&(B(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!0,i=!0):g?(g=!1,i=!0):R(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=r;else{if(o=e.line,s=e.lineStart,c=e.position,!H(e,n,En,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);P(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),F(v)||R(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(B(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!1,i=!1,p=e.tag,m=e.result;else if(_)R(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=l,e.anchor=u,!0}else if(_)R(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=l,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(g&&(o=e.line,s=e.lineStart,c=e.position),H(e,t,On,!0,i)&&(g?m=e.result:h=e.result),g||(B(e,d,f,p,m,h,o,s,c),p=m=h=null),V(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)R(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&B(e,d,f,p,m,null,o,s,c),_&&(e.tag=l,e.anchor=u,e.kind=`mapping`,e.result=d),_}h(or,`readBlockMapping`);function sr(e){var t,n=!1,r=!1,i,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;if(e.tag!==null&&R(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i=`!!`,o=e.input.charCodeAt(++e.position)):i=`!`,t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):R(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!F(o);)o===33&&(r?R(e,`tag suffix cannot contain exclamation marks`):(i=e.input.slice(t-1,e.position+1),Fn.test(i)||R(e,`named tag handle cannot contain such characters`),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),Pn.test(a)&&R(e,`tag suffix cannot contain flow indicator characters`)}a&&!In.test(a)&&R(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{R(e,`tag name is malformed: `+a)}return n?e.tag=a:M.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i===`!`?e.tag=`!`+a:i===`!!`?e.tag=`tag:yaml.org,2002:`+a:R(e,`undeclared tag handle "`+i+`"`),!0}h(sr,`readTagProperty`);function cr(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&R(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!F(n)&&!I(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&R(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}h(cr,`readAnchorProperty`);function lr(e){var t,n,r=e.input.charCodeAt(e.position);if(r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!F(r)&&!I(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&R(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),M.call(e.anchorMap,n)||R(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],V(e,!0,-1),!0}h(lr,`readAlias`);function H(e,t,n,r,i){var a,o,s,c=1,l=!1,u=!1,d,f,p,m,h,g;if(e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=On===n||Dn===n,r&&V(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;sr(e)||cr(e);)V(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1;if(s&&=l||i,(c===1||On===n)&&(h=Tn===n||En===n?t:t+1,g=e.position-e.lineStart,c===1?s&&(ar(e,g)||or(e,g,h))||rr(e,h)?u=!0:(o&&ir(e,h)||tr(e,h)||nr(e,h)?u=!0:lr(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&R(e,`alias node should not have any properties`)):er(e,h,Tn===n)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=s&&ar(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag===`?`){for(e.result!==null&&e.kind!==`scalar`&&R(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d<f;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!==`!`){if(M.call(e.typeMap[e.kind||`fallback`],e.tag))m=e.typeMap[e.kind||`fallback`][e.tag];else for(m=null,p=e.typeMap.multi[e.kind||`fallback`],d=0,f=p.length;d<f;d+=1)if(e.tag.slice(0,p[d].tag.length)===p[d].tag){m=p[d];break}m||R(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&m.kind!==e.kind&&R(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):R(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}h(H,`composeNode`);function ur(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(V(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!F(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&R(e,`directive name must not be less than one character in length`);o!==0;){for(;P(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!N(o));break}if(N(o))break;for(n=e.position;o!==0&&!F(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&Zn(e),M.call(Yn,r)?Yn[r](e,r,i):Jn(e,`unknown document directive "`+r+`"`)}if(V(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,V(e,!0,-1)):a&&R(e,`directives end mark is expected`),H(e,e.lineIndent-1,On,!1,!0),V(e,!0,-1),e.checkLineBreaks&&Nn.test(e.input.slice(t,e.position))&&Jn(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&Qn(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,V(e,!0,-1));return}if(e.position<e.length-1)R(e,`end of the stream or a document separator is expected`);else return}h(ur,`readDocument`);function dr(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
18
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new Kn(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,R(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)ur(n);return n.documents}h(dr,`loadDocuments`);function fr(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);var r=dr(e,n);if(typeof t!=`function`)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}h(fr,`loadAll$1`);function pr(e,t){var n=dr(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new A(`expected a single document in the stream, but found more`)}}h(pr,`load$1`);var mr={loadAll:fr,load:pr},hr=Object.prototype.toString,gr=Object.prototype.hasOwnProperty,_r=65279,vr=9,yr=10,br=13,xr=32,Sr=33,Cr=34,wr=35,Tr=37,Er=38,Dr=39,Or=42,kr=44,Ar=45,jr=58,Mr=61,Nr=62,Pr=63,Fr=64,Ir=91,Lr=93,Rr=96,zr=123,Br=124,Vr=125,U={};U[0]=`\\0`,U[7]=`\\a`,U[8]=`\\b`,U[9]=`\\t`,U[10]=`\\n`,U[11]=`\\v`,U[12]=`\\f`,U[13]=`\\r`,U[27]=`\\e`,U[34]=`\\"`,U[92]=`\\\\`,U[133]=`\\N`,U[160]=`\\_`,U[8232]=`\\L`,U[8233]=`\\P`;var Hr=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],Ur=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Wr(e,t){var n,r,i,a,o,s,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)o=r[i],s=String(t[o]),o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&gr.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s;return n}h(Wr,`compileStyleMap`);function Gr(e){var t=e.toString(16).toUpperCase(),n,r;if(e<=255)n=`x`,r=2;else if(e<=65535)n=`u`,r=4;else if(e<=4294967295)n=`U`,r=8;else throw new A(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+n+O.repeat(`0`,r-t.length)+t}h(Gr,`encodeHex`);var Kr=1,qr=2;function Jr(e){this.schema=e.schema||wn,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=O.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Wr(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===`"`?qr:Kr,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}h(Jr,`State`);function Yr(e,t){for(var n=O.repeat(` `,t),r=0,i=-1,a=``,o,s=e.length;r<s;)i=e.indexOf(`
|
|
19
|
+
`,r),i===-1?(o=e.slice(r),r=s):(o=e.slice(r,i+1),r=i+1),o.length&&o!==`
|
|
20
|
+
`&&(a+=n),a+=o;return a}h(Yr,`indentString`);function Xr(e,t){return`
|
|
21
|
+
`+O.repeat(` `,e.indent*t)}h(Xr,`generateNextLine`);function Zr(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}h(Zr,`testImplicitResolving`);function Qr(e){return e===xr||e===vr}h(Qr,`isWhitespace`);function W(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==_r||65536<=e&&e<=1114111}h(W,`isPrintable`);function $r(e){return W(e)&&e!==_r&&e!==br&&e!==yr}h($r,`isNsCharOrWhitespace`);function ei(e,t,n){var r=$r(e),i=r&&!Qr(e);return(n?r:r&&e!==kr&&e!==Ir&&e!==Lr&&e!==zr&&e!==Vr)&&e!==wr&&!(t===jr&&!i)||$r(t)&&!Qr(t)&&e===wr||t===jr&&i}h(ei,`isPlainSafe`);function ti(e){return W(e)&&e!==_r&&!Qr(e)&&e!==Ar&&e!==Pr&&e!==jr&&e!==kr&&e!==Ir&&e!==Lr&&e!==zr&&e!==Vr&&e!==wr&&e!==Er&&e!==Or&&e!==Sr&&e!==Br&&e!==Mr&&e!==Nr&&e!==Dr&&e!==Cr&&e!==Tr&&e!==Fr&&e!==Rr}h(ti,`isPlainSafeFirst`);function ni(e){return!Qr(e)&&e!==jr}h(ni,`isPlainSafeLast`);function G(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}h(G,`codePointAt`);function ri(e){return/^\n* /.test(e)}h(ri,`needIndentIndicator`);var ii=1,ai=2,oi=3,si=4,ci=5;function li(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=ti(G(e,0))&&ni(G(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=G(e,c),!W(l))return ci;h&&=ei(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=G(e,c),l===yr)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!W(l))return ci;h&&=ei(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?ii:a===qr?ci:ai:n>9&&ri(e)?ci:o?a===qr?ci:ai:f?si:oi}h(li,`chooseScalarStyle`);function ui(e,t,n,r,i){e.dump=(function(){if(t.length===0)return e.quotingType===qr?`""`:`''`;if(!e.noCompatMode&&(Hr.indexOf(t)!==-1||Ur.test(t)))return e.quotingType===qr?`"`+t+`"`:`'`+t+`'`;var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return Zr(e,t)}switch(h(c,`testAmbiguity`),li(t,s,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,i)){case ii:return t;case ai:return`'`+t.replace(/'/g,`''`)+`'`;case oi:return`|`+di(t,e.indent)+fi(Yr(t,a));case si:return`>`+di(t,e.indent)+fi(Yr(pi(t,o),a));case ci:return`"`+hi(t)+`"`;default:throw new A(`impossible error: invalid scalar style`)}})()}h(ui,`writeScalar`);function di(e,t){var n=ri(e)?String(t):``,r=e[e.length-1]===`
|
|
22
|
+
`;return n+(r&&(e[e.length-2]===`
|
|
23
|
+
`||e===`
|
|
24
|
+
`)?`+`:r?``:`-`)+`
|
|
25
|
+
`}h(di,`blockHeader`);function fi(e){return e[e.length-1]===`
|
|
26
|
+
`?e.slice(0,-1):e}h(fi,`dropEndingNewline`);function pi(e,t){for(var n=/(\n+)([^\n]*)/g,r=(function(){var r=e.indexOf(`
|
|
27
|
+
`);return r=r===-1?e.length:r,n.lastIndex=r,mi(e.slice(0,r),t)})(),i=e[0]===`
|
|
28
|
+
`||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?`
|
|
29
|
+
`:``)+mi(c,t),i=a}return r}h(pi,`foldString`);function mi(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
|
|
30
|
+
`+e.slice(i,a),i=a+1),o=s;return c+=`
|
|
31
|
+
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
32
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}h(mi,`foldLine`);function hi(e){for(var t=``,n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=G(e,i),r=U[n],!r&&W(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||Gr(n);return t}h(hi,`escapeString`);function gi(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(K(e,t,s,!1,!1)||s===void 0&&K(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=i,e.dump=`[`+r+`]`}h(gi,`writeFlowSequence`);function _i(e,t,n,r){var i=``,a=e.tag,o,s,c;for(o=0,s=n.length;o<s;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(K(e,t+1,c,!0,!0,!1,!0)||c===void 0&&K(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=Xr(e,t)),e.dump&&yr===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump);e.tag=a,e.dump=i||`[]`}h(_i,`writeBlockSequence`);function vi(e,t,n){var r=``,i=e.tag,a=Object.keys(n),o,s,c,l,u;for(o=0,s=a.length;o<s;o+=1)u=``,r!==``&&(u+=`, `),e.condenseFlow&&(u+=`"`),c=a[o],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),K(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),K(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}h(vi,`writeFlowMapping`);function yi(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,l,u,d,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new A(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s<c;s+=1)f=``,(!r||i!==``)&&(f+=Xr(e,t)),l=o[s],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),K(e,t+1,l,!0,!0,!0)&&(d=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,d&&(e.dump&&yr===e.dump.charCodeAt(0)?f+=`?`:f+=`? `),f+=e.dump,d&&(f+=Xr(e,t)),K(e,t+1,u,!0,d)&&(e.dump&&yr===e.dump.charCodeAt(0)?f+=`:`:f+=`: `,f+=e.dump,i+=f));e.tag=a,e.dump=i||`{}`}h(yi,`writeBlockMapping`);function bi(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t==`object`&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(e.tag=n?s.multi&&s.representName?s.representName(t):s.tag:`?`,s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,hr.call(s.represent)===`[object Function]`)r=s.represent(t,c);else if(gr.call(s.represent,c))r=s.represent[c](t,c);else throw new A(`!<`+s.tag+`> tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}h(bi,`detectType`);function K(e,t,n,r,i,a,o){e.tag=null,e.dump=n,bi(e,n,!1)||bi(e,n,!0);var s=hr.call(e.dump),c=r,l;r&&=e.flowLevel<0||e.flowLevel>t;var u=s===`[object Object]`||s===`[object Array]`,d,f;if(u&&(d=e.duplicates.indexOf(n),f=d!==-1),(e.tag!==null&&e.tag!==`?`||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[d])e.dump=`*ref_`+d;else{if(u&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(yi(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(vi(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?_i(e,t-1,e.dump,i):_i(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(gi(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&ui(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new A(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(l=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),l=e.tag[0]===`!`?`!`+l:l.slice(0,18)===`tag:yaml.org,2002:`?`!!`+l.slice(18):`!<`+l+`>`,e.dump=l+` `+e.dump)}return!0}h(K,`writeNode`);function xi(e,t){var n=[],r=[],i,a;for(Si(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=Array(a)}h(xi,`getDuplicateReferences`);function Si(e,t,n){var r,i,a;if(typeof e==`object`&&e){if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)Si(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)Si(e[r[i]],t,n)}}h(Si,`inspectNode`);function Ci(e,t){t||={};var n=new Jr(t);n.noRefs||xi(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),K(n,0,r,!0,!0)?n.dump+`
|
|
33
|
+
`:``}h(Ci,`dump$1`);var wi={dump:Ci};function Ti(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}h(Ti,`renamed`);var Ei=Jt,Di=mr.load;mr.loadAll,wi.dump;var Oi=`comm`,ki=`rule`,Ai=`decl`,ji=`@import`,Mi=`@namespace`,Ni=`@keyframes`,Pi=`@layer`,Fi=Math.abs,Ii=String.fromCharCode;function Li(e){return e.trim()}function Ri(e,t,n){return e.replace(t,n)}function zi(e,t){return e.charCodeAt(t)|0}function Bi(e,t,n){return e.slice(t,n)}function q(e){return e.length}function Vi(e){return e.length}function Hi(e,t){return t.push(e),e}var Ui=1,Wi=1,Gi=0,J=0,Y=0,Ki=``;function qi(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Ui,column:Wi,length:o,return:``,siblings:s}}function Ji(){return Y}function Yi(){return Y=J>0?zi(Ki,--J):0,Wi--,Y===10&&(Wi=1,Ui--),Y}function X(){return Y=J<Gi?zi(Ki,J++):0,Wi++,Y===10&&(Wi=1,Ui++),Y}function Z(){return zi(Ki,J)}function Xi(){return J}function Zi(e,t){return Bi(Ki,e,t)}function Qi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $i(e){return Ui=Wi=1,Gi=q(Ki=e),J=0,[]}function ea(e){return Ki=``,e}function ta(e){return Li(Zi(J-1,ia(e===91?e+2:e===40?e+1:e)))}function na(e){for(;(Y=Z())&&Y<33;)X();return Qi(e)>2||Qi(Y)>3?``:` `}function ra(e,t){for(;--t&&X()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return Zi(e,Xi()+(t<6&&Z()==32&&X()==32))}function ia(e){for(;X();)switch(Y){case e:return J;case 34:case 39:e!==34&&e!==39&&ia(Y);break;case 40:e===41&&ia(e);break;case 92:X();break}return J}function aa(e,t){for(;X()&&e+Y!==57&&(e+Y!==84||Z()!==47););return`/*`+Zi(t,J-1)+`*`+Ii(e===47?e:X())}function oa(e){for(;!Qi(Z());)X();return Zi(e,J)}function sa(e){return ea(ca(``,null,null,null,[``],e=$i(e),0,[0],e))}function ca(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=X()){case 40:m!=108&&zi(w,d-1)==58?(v++,w+=`(`):w+=ta(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=ta(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=Ii(y);break}w+=na(m);break;case 92:w+=ra(Xi()-1,7);continue;case 47:switch(Z()){case 42:case 47:Hi(ua(aa(X(),Xi()),t,n,c),c),(Qi(m||1)==5||Qi(Z()||1)==5)&&q(w)&&Bi(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=q(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=Ii(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Ri(w,/\f/g,``)),p>0&&(q(w)-d||h===0)&&Hi(p>32?da(w+`;`,r,n,d-1,c):da(Ri(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(Hi(C=la(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123){if(u===0)ca(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(zi(w,3)===110)break;case 108:if(zi(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?ca(e,C,C,r&&Hi(la(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):ca(w,C,C,C,[``],S,0,s,S)}}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+q(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&Yi()==125)continue}switch(w+=Ii(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(q(w)-1)*_,_=1;break;case 64:Z()===45&&(w+=ta(X())),f=Z(),u=d=q(b=w+=oa(Xi())),y++;break;case 45:m===45&&q(w)==2&&(h=0)}}return a}function la(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=Vi(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=Bi(e,f+1,f=Fi(g=o[h])),b=e;v<m;++v)(b=Li(g>0?p[v]+` `+y:Ri(y,/&\f/g,p[v])))&&(c[_++]=b);return qi(e,t,n,i===0?ki:s,c,l,u,d)}function ua(e,t,n,r){return qi(e,t,n,Oi,Ii(Ji()),Bi(e,2,-2),0,r)}function da(e,t,n,r,i){return qi(e,t,n,Ai,Bi(e,0,r),Bi(e,r+1,-1),r,i)}function fa(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function pa(e,t,n,r){switch(e.type){case Pi:if(e.children.length)break;case ji:case Mi:case Ai:return e.return=e.return||e.value;case Oi:return``;case Ni:return e.return=e.value+`{`+fa(e.children,r)+`}`;case ki:if(!q(e.value=e.props.join(`,`)))return``}return q(n=fa(e.children,r))?e.return=e.value+`{`+n+`}`:``}var ma=`c4`,ha={id:ma,detector:h(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./c4Diagram-AHTNJAMY-BTvR1Qix.js`);return{diagram:e}},__vite__mapDeps([26,4,5,6,7,8,10,9,3,27]));return{id:ma,diagram:t}},`loader`)},ga=`flowchart`,_a={id:ga,detector:h((e,t)=>t?.flowchart?.defaultRenderer===`dagre-wrapper`||t?.flowchart?.defaultRenderer===`elk`?!1:/^\s*graph/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./flowDiagram-DWJPFMVM-C8itnDyk.js`);return{diagram:e}},__vite__mapDeps([28,4,5,6,7,8,29,9,3,10,11,30,12,13,27,31,32,17,18,19,20,21,22,23]));return{id:ga,diagram:t}},`loader`)},va=`flowchart-v2`,ya={id:va,detector:h((e,t)=>t?.flowchart?.defaultRenderer!==`dagre-d3`&&(t?.flowchart?.defaultRenderer===`elk`&&(t.layout=`elk`),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer===`dagre-wrapper`?!0:/^\s*flowchart/.test(e)),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./flowDiagram-DWJPFMVM-C8itnDyk.js`);return{diagram:e}},__vite__mapDeps([28,4,5,6,7,8,29,9,3,10,11,30,12,13,27,31,32,17,18,19,20,21,22,23]));return{id:va,diagram:t}},`loader`)},ba=`er`,xa={id:ba,detector:h(e=>/^\s*erDiagram/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./erDiagram-SMLLAGMA-BPjiJgpM.js`);return{diagram:e}},__vite__mapDeps([33,4,5,6,7,8,29,9,3,10,11,12,13,31,32,17,18,19,20,21,22,23]));return{id:ba,diagram:t}},`loader`)},Sa=`gitGraph`,Ca={id:Sa,detector:h(e=>/^\s*gitGraph/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./gitGraphDiagram-UUTBAWPF-B4SbXUo2.js`);return{diagram:e}},__vite__mapDeps([34,35,7,5,8,36,2,3,1,4,6,9,10,37,38]));return{id:Sa,diagram:t}},`loader`)},wa=`gantt`,Ta={id:wa,detector:h(e=>/^\s*gantt/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./ganttDiagram-T4ZO3ILL-QijQZ_7A.js`);return{diagram:e}},__vite__mapDeps([39,5,4,6,7,8,40,41,42,10,9,3]));return{id:wa,diagram:t}},`loader`)},Ea=`info`,Da={id:Ea,detector:h(e=>/^\s*info/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./infoDiagram-42DDH7IO-SEL8m7Hn.js`);return{diagram:e}},__vite__mapDeps([43,35,7,5,8,36,2,3,1,4,6]));return{id:Ea,diagram:t}},`loader`)},Oa=`pie`,ka={id:Oa,detector:h(e=>/^\s*pie/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./pieDiagram-DEJITSTG-DE3IRdo2.js`);return{diagram:e}},__vite__mapDeps([44,35,7,5,8,36,2,3,1,4,6,45,42,22,10,46,23,9,37]));return{id:Oa,diagram:t}},`loader`)},Aa=`quadrantChart`,ja={id:Aa,detector:h(e=>/^\s*quadrantChart/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./quadrantDiagram-34T5L4WZ-BnFzq8uS.js`);return{diagram:e}},__vite__mapDeps([47,4,5,6,7,8,40,41,42]));return{id:Aa,diagram:t}},`loader`)},Ma=`xychart`,Na={id:Ma,detector:h(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./xychartDiagram-5P7HB3ND-BWrW2XAn.js`);return{diagram:e}},__vite__mapDeps([48,4,5,6,7,8,40,41,42,45,9,3,10,21,22,23,11]));return{id:Ma,diagram:t}},`loader`)},Pa=`requirement`,Fa={id:Pa,detector:h(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./requirementDiagram-MS252O5E-4JH5mfMt.js`);return{diagram:e}},__vite__mapDeps([49,4,5,6,7,8,9,3,10,11,12,13,31,32,17,18,19,20,21,22,23]));return{id:Pa,diagram:t}},`loader`)},Ia=`sequence`,La={id:Ia,detector:h(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./sequenceDiagram-FGHM5R23-Ngkhph4n.js`);return{diagram:e}},__vite__mapDeps([50,4,5,6,7,8,10,9,3,27,38]));return{id:Ia,diagram:t}},`loader`)},Ra=`class`,za={id:Ra,detector:h((e,t)=>t?.class?.defaultRenderer!==`dagre-wrapper`&&/^\s*classDiagram/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./classDiagram-6PBFFD2Q-3fKgRhOi.js`);return{diagram:e}},__vite__mapDeps([51,4,5,6,7,8,9,3,10,11,30,12,13,27,31,32,17,18,19,20,21,22,23,52]));return{id:Ra,diagram:t}},`loader`)},Ba=`classDiagram`,Va={id:Ba,detector:h((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer===`dagre-wrapper`?!0:/^\s*classDiagram-v2/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./classDiagram-v2-HSJHXN6E-3fKgRhOi.js`);return{diagram:e}},__vite__mapDeps([53,4,5,6,7,8,9,3,10,11,30,12,13,27,31,32,17,18,19,20,21,22,23,52]));return{id:Ba,diagram:t}},`loader`)},Ha=`state`,Ua={id:Ha,detector:h((e,t)=>t?.state?.defaultRenderer!==`dagre-wrapper`&&/^\s*stateDiagram/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./stateDiagram-FHFEXIEX-B8QHUbFP.js`);return{diagram:e}},__vite__mapDeps([54,4,5,6,7,8,9,3,10,21,22,23,11,12,13,14,2,16,1,31,32,17,18,19,20,55]));return{id:Ha,diagram:t}},`loader`)},Wa=`stateDiagram`,Ga={id:Wa,detector:h((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer===`dagre-wrapper`),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./stateDiagram-v2-QKLJ7IA2-8s677m33.js`);return{diagram:e}},__vite__mapDeps([56,4,5,6,7,8,9,3,10,11,12,13,31,32,17,18,19,20,21,22,23,55]));return{id:Wa,diagram:t}},`loader`)},Ka=`journey`,qa={id:Ka,detector:h(e=>/^\s*journey/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./journeyDiagram-VCZTEJTY-x16DmnC7.js`);return{diagram:e}},__vite__mapDeps([57,4,5,6,7,8,46,22,10,30,27]));return{id:Ka,diagram:t}},`loader`)},Ja={draw:h((e,t,n)=>{m.debug(`rendering svg for syntax error
|
|
34
|
+
`);let r=tt(t),i=r.append(`g`);r.attr(`viewBox`,`0 0 2412 512`),ie(r,100,512,!0),i.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`),i.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`),i.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`),i.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`),i.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`),i.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`),i.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`),i.append(`text`).attr(`class`,`error-text`).attr(`x`,1250).attr(`y`,400).attr(`font-size`,`100px`).style(`text-anchor`,`middle`).text(`mermaid version ${n}`)},`draw`)},Ya=Ja,Xa={db:{},renderer:Ja,parser:{parse:h(()=>{},`parse`)}},Za=`flowchart-elk`,Qa={id:Za,detector:h((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer===`elk`?(t.layout=`elk`,!0):!1,`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./flowDiagram-DWJPFMVM-C8itnDyk.js`);return{diagram:e}},__vite__mapDeps([28,4,5,6,7,8,29,9,3,10,11,30,12,13,27,31,32,17,18,19,20,21,22,23]));return{id:Za,diagram:t}},`loader`)},$a=`timeline`,eo={id:$a,detector:h(e=>/^\s*timeline/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./timeline-definition-GMOUNBTQ-Cj_jCa6v.js`);return{diagram:e}},__vite__mapDeps([58,4,5,6,7,8,46,22,10,9,3]));return{id:$a,diagram:t}},`loader`)},to=`mindmap`,no={id:to,detector:h(e=>/^\s*mindmap/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./mindmap-definition-QFDTVHPH-DibAS34Z.js`);return{diagram:e}},__vite__mapDeps([59,4,5,6,7,8,9,3,10,11,12,13,31,32,17,18,19,20,21,22,23]));return{id:to,diagram:t}},`loader`)},ro=`kanban`,io={id:ro,detector:h(e=>/^\s*kanban/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./kanban-definition-6JOO6SKY-B_Vmy_se.js`);return{diagram:e}},__vite__mapDeps([60,4,5,6,7,8,9,3,10,11,30,13,17,18,19]));return{id:ro,diagram:t}},`loader`)},ao=`sankey`,oo={id:ao,detector:h(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./sankeyDiagram-XADWPNL6-BBM3bCVp.js`);return{diagram:e}},__vite__mapDeps([61,4,5,6,7,8,45,42]));return{id:ao,diagram:t}},`loader`)},so=`packet`,co={id:so,detector:h(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./diagram-TYMM5635-DZgWIMF2.js`);return{diagram:e}},__vite__mapDeps([62,35,7,5,8,36,2,3,1,4,6,9,10,37]));return{id:so,diagram:t}},`loader`)},lo=`radar`,uo={id:lo,detector:h(e=>/^\s*radar-beta/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./diagram-MMDJMWI5-BA8Bf6LU.js`);return{diagram:e}},__vite__mapDeps([63,35,7,5,8,36,2,3,1,4,6,9,10,37]));return{id:lo,diagram:t}},`loader`)},fo=`block`,po={id:fo,detector:h(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./blockDiagram-DXYQGD6D-BD7crHZn.js`);return{diagram:e}},__vite__mapDeps([64,4,5,6,7,8,29,9,3,10,21,22,23,11,30,12,13,14,2,15]));return{id:fo,diagram:t}},`loader`)},mo=`treeView`,ho={id:mo,detector:h(e=>/^\s*treeView-beta/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./diagram-5BDNPKRD-B3TQrwLp.js`);return{diagram:e}},__vite__mapDeps([65,35,7,5,8,36,2,3,1,4,6,9,10,37,38]));return{id:mo,diagram:t}},`loader`)},go=`architecture`,_o={id:go,detector:h(e=>/^\s*architecture/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./architectureDiagram-Q4EWVU46-BUaFXLue.js`);return{diagram:e}},__vite__mapDeps([66,5,35,7,8,36,2,3,1,4,6,9,10,11,37,25]));return{id:go,diagram:t}},`loader`)},vo=`ishikawa`,yo={id:vo,detector:h(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./ishikawaDiagram-UXIWVN3A-BiGygTnl.js`);return{diagram:e}},__vite__mapDeps([67,4,5,6,7,8,9,3,10,19]));return{id:vo,diagram:t}},`loader`)},bo=`venn`,xo={id:bo,detector:h(e=>/^\s*venn-beta/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./vennDiagram-DHZGUBPP-Nv73eNL-.js`);return{diagram:e}},__vite__mapDeps([68,4,5,6,7,8,9,3,10,19]));return{id:bo,diagram:t}},`loader`)},So=`treemap`,Co={id:So,detector:h(e=>/^\s*treemap/.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./diagram-G4DWMVQ6-DMTfV1fq.js`);return{diagram:e}},__vite__mapDeps([69,35,7,5,8,36,2,3,1,4,6,45,42,41,9,10,37,32,17]));return{id:So,diagram:t}},`loader`)},wo=`wardley-beta`,To={id:wo,detector:h(e=>/^\s*wardley-beta/i.test(e),`detector`),loader:h(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./wardleyDiagram-NUSXRM2D-D4_-w6kd.js`);return{diagram:e}},__vite__mapDeps([70,35,7,5,8,36,2,3,1,4,6,37]));return{id:wo,diagram:t}},`loader`)},Eo=!1,Do=h(()=>{Eo||(Eo=!0,x(`error`,Xa,e=>e.toLowerCase().trim()===`error`),x(`---`,{db:{clear:h(()=>{},`clear`)},styles:{},renderer:{draw:h(()=>{},`draw`)},parser:{parse:h(()=>{throw 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:h(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),S(Qa,no,_o),S(ha,io,Va,za,xa,Ta,Da,ka,Fa,La,ya,_a,eo,Ca,Ga,Ua,qa,ja,oo,co,Na,po,ho,uo,yo,Co,xo,To))},`addDiagrams`),Oo=h(async()=>{m.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(le).map(async([e,{detector:t,loader:n}])=>{if(n)try{me(e)}catch{try{let{diagram:e,id:r}=await n();x(r,e,t)}catch(t){throw m.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete le[e],t}}}))).filter(e=>e.status===`rejected`);if(e.length>0){m.error(`Failed to load ${e.length} external diagrams`);for(let t of e)m.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),ko=`graphics-document document`;function Ao(e,t){e.attr(`role`,ko),t!==``&&e.attr(`aria-roledescription`,t)}h(Ao,`setA11yDiagramInfo`);function jo(e,t,n,r){if(e.insert!==void 0){if(n){let t=`chart-desc-${r}`;e.attr(`aria-describedby`,t),e.insert(`desc`,`:first-child`).attr(`id`,t).text(n)}if(t){let n=`chart-title-${r}`;e.attr(`aria-labelledby`,n),e.insert(`title`,`:first-child`).attr(`id`,n).text(t)}}}h(jo,`addSVGa11yTitleDescription`);var Mo=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{h(this,`Diagram`)}static async fromText(t,n={}){let r=E(),i=ae(t,r);t=ge(t)+`
|
|
35
|
+
`;try{me(i)}catch{let e=C(i);if(!e)throw new fe(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();x(t,n)}let{db:a,parser:o,renderer:s,init:c}=me(i);return o.parser&&(o.parser.yy=a),a.clear?.(),c?.(r),n.title&&a.setDiagramTitle?.(n.title),await o.parse(t),new e(i,t,a,o,s)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},No=[],Po=h(()=>{No.forEach(e=>{e()}),No=[]},`attachFunctions`),Fo=h(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`);function Io(e){let t=e.match(T);if(!t)return{text:e,metadata:{}};let n=Di(t[1],{schema:Ei})??{};n=typeof n==`object`&&!Array.isArray(n)?n:{};let r={};return n.displayMode&&(r.displayMode=n.displayMode.toString()),n.title&&(r.title=n.title.toString()),n.config&&(r.config=n.config),{text:e.slice(t[0].length),metadata:r}}h(Io,`extractFrontMatter`);var Lo=h(e=>e.replace(/\r\n?/g,`
|
|
36
|
+
`).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),Ro=h(e=>{let{text:t,metadata:n}=Io(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),zo=h(e=>{let t=ve.detectInit(e)??{},n=ve.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:be(e),directive:t}},`processDirectives`);function Bo(e){let t=Ro(Lo(e)),n=zo(t.text),r=xe(t.config,n.directive);return e=Fo(n.text),{code:e,title:t.title,config:r}}h(Bo,`preprocessDiagram`);function Vo(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}h(Vo,`toBase64`);var Ho=5e4,Uo=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,Wo=`sandbox`,Go=`loose`,Ko=`http://www.w3.org/2000/svg`,qo=`http://www.w3.org/1999/xlink`,Jo=`http://www.w3.org/1999/xhtml`,Yo=`100%`,Xo=`100%`,Zo=`border:0;margin:0;`,Qo=`margin:0`,$o=`allow-top-navigation-by-user-activation allow-popups`,es=`The "iframe" tag is not supported by your browser.`,ts=[`foreignobject`],ns=[`dominant-baseline`];function rs(e){let t=Bo(e);return _(),ce(t.config??{}),t}h(rs,`processAndSetConfigs`);async function is(e,t){Do();try{let{code:t,config:n}=rs(e);return{diagramType:(await hs(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}h(is,`parse`);var as=h((e,t,n=[])=>`
|
|
37
|
+
.${e} ${t} { ${n.join(` !important; `)} !important; }`,`cssImportantStyles`),os=h((e,t=new Map)=>{let n=``;if(e.themeCSS!==void 0&&(n+=`
|
|
38
|
+
${e.themeCSS}`),e.fontFamily!==void 0&&(n+=`
|
|
39
|
+
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(n+=`
|
|
40
|
+
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){let r=pe(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];t.forEach(e=>{et(e.styles)||r.forEach(t=>{n+=as(e.id,t,e.styles)}),et(e.textStyles)||(n+=as(e.id,`tspan`,(e?.textStyles||[]).map(e=>e.replace(`color`,`fill`))))})}return n},`createCssStyles`),ss=h((e,t,n,r)=>{let i=os(e,n);return fa(sa(`${r}{${b(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r)}}`),pa)},`createUserStyles`),cs=h((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=ye(r),r=r.replace(/<br>/g,`<br/>`),r},`cleanUpSvgCode`),ls=h((e=``,t)=>`<iframe style="width:${Yo};height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+`px`:Xo};${Zo}" src="data:text/html;charset=UTF-8;base64,${Vo(`<body style="${Qo}">${e}</body>`)}" sandbox="${$o}">
|
|
41
|
+
${es}
|
|
42
|
+
</iframe>`,`putIntoIFrame`),us=h((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,Ko);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function ds(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}h(ds,`sandboxedIframe`);var fs=h((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),ps=h(async function(e,t,n){Do();let r=rs(t);t=r.code;let i=E();m.debug(i),t.length>(i?.maxTextSize??Ho)&&(t=Uo);let a=`#`+e,o=`i`+e,s=`#`+o,c=`d`+e,l=`#`+c,u=h(()=>{let e=g(f?s:l).node();e&&`remove`in e&&e.remove()},`removeTempElements`),d=g(`body`),f=i.securityLevel===Wo,p=i.securityLevel===Go,_=i.fontFamily;if(n!==void 0){if(n&&(n.innerHTML=``),f){let e=ds(g(n),o);d=g(e.nodes()[0].contentDocument.body),d.node().style.margin=0}else d=g(n);us(d,e,c,`font-family: ${_}`,qo)}else{if(fs(document,e,c,o),f){let e=ds(g(`body`),o);d=g(e.nodes()[0].contentDocument.body),d.node().style.margin=0}else d=g(`body`);us(d,e,c)}let v,y;try{v=await Mo.fromText(t,{title:r.title})}catch(e){if(i.suppressErrorRendering)throw u(),e;v=await Mo.fromText(`error`),y=e}let b=d.select(l).node(),x=v.type,S=b.firstChild,C=S.firstChild,w=v.renderer.getClasses?.(t,v),ee=ss(i,x,w,a),te=document.createElement(`style`);te.innerHTML=ee,S.insertBefore(te,C);try{await v.renderer.draw(t,e,`11.14.0`,v)}catch(n){throw i.suppressErrorRendering?u():Ya.draw(t,e,`11.14.0`),n}let re=d.select(`${l} svg`),ie=v.db.getAccTitle?.(),ae=v.db.getAccDescription?.();gs(x,re,ie,ae),d.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,Jo);let T=d.select(l).node().innerHTML;if(m.debug(`config.arrowMarkerAbsolute`,i.arrowMarkerAbsolute),T=cs(T,f,oe(i.arrowMarkerAbsolute)),f){let e=d.select(l+` svg`).node();T=ls(T,e)}else p||(T=ne.sanitize(T,{ADD_TAGS:ts,ADD_ATTR:ns,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Po(),y)throw y;return u(),{diagramType:x,svg:T,bindFunctions:v.db.bindFunctions}},`render`);function ms(e={}){let t=ue({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),he(t),t?.theme&&t.theme in te?t.themeVariables=te[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=te.default.getThemeVariables(t.themeVariables));let n=typeof t==`object`?v(t):w();p(n.logLevel),Do()}h(ms,`initialize`);var hs=h((e,t={})=>{let{code:n}=Bo(e);return Mo.fromText(n,t)},`getDiagramFromText`);function gs(e,t,n,r){Ao(t,e),jo(t,n,r,t.attr(`id`))}h(gs,`addA11yInfo`);var Q=Object.freeze({render:ps,parse:is,getDiagramFromText:hs,initialize:ms,getConfig:E,setConfig:y,getSiteConfig:w,updateSiteConfig:ee,reset:h(()=>{_()},`reset`),globalReset:h(()=>{_(se)},`globalReset`),defaultConfig:se});p(E().logLevel),_(E());var _s=h((e,t,n)=>{m.warn(e),_e(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),vs=h(async function(e={querySelector:`.mermaid`}){try{await ys(e)}catch(t){if(_e(t)&&m.error(t.str),$.parseError&&$.parseError(t),!e.suppressErrors)throw m.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),ys=h(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=Q.getConfig();m.debug(`${e?``:`No `}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);m.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(m.debug(`Start On Load: `+r?.startOnLoad),Q.updateSiteConfig({startOnLoad:r?.startOnLoad}));let a=new ve.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),o,s=[];for(let t of Array.from(i)){if(m.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${a.next()}`;o=t.innerHTML,o=we(ve.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,`<br/>`);let r=ve.detectInit(o);r&&m.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await ks(n,o,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){_s(e,s,$.parseError)}}if(s.length>0)throw s[0]},`runThrowsErrors`),bs=h(function(e){Q.initialize(e)},`initialize`),xs=h(async function(e,t,n){m.warn(`mermaid.init is deprecated. Please use run instead.`),e&&bs(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(r.nodes=t instanceof HTMLElement?[t]:t),await vs(r)},`init`),Ss=h(async(e,{lazyLoad:t=!0}={})=>{Do(),S(...e),t===!1&&await Oo()},`registerExternalDiagrams`),Cs=h(function(){if($.startOnLoad){let{startOnLoad:e}=Q.getConfig();e&&$.run().catch(e=>m.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,Cs,!1);var ws=h(function(e){$.parseError=e},`setParseErrorHandler`),Ts=[],Es=!1,Ds=h(async()=>{if(!Es){for(Es=!0;Ts.length>0;){let e=Ts.shift();if(e)try{await e()}catch(e){m.error(`Error executing queue`,e)}}Es=!1}},`executeQueue`),Os=h(async(e,t)=>new Promise((n,r)=>{let i=h(()=>new Promise((i,a)=>{Q.parse(e,t).then(e=>{i(e),n(e)},e=>{m.error(`Error parsing`,e),$.parseError?.(e),a(e),r(e)})}),`performCall`);Ts.push(i),Ds().catch(r)}),`parse`),ks=h((e,t,n)=>new Promise((r,i)=>{let a=h(()=>new Promise((a,o)=>{Q.render(e,t,n).then(e=>{a(e),r(e)},e=>{m.error(`Error parsing`,e),$.parseError?.(e),o(e),i(e)})}),`performCall`);Ts.push(a),Ds().catch(i)}),`render`),$={startOnLoad:!0,mermaidAPI:Q,parse:Os,render:ks,init:xs,run:vs,registerExternalDiagrams:Ss,registerLayoutLoaders:it,initialize:bs,parseError:void 0,contentLoaded:Cs,setParseErrorHandler:ws,detectType:ae,registerIconPacks:Ce,getRegisteredDiagramsMetadata:h(()=>Object.keys(le).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},As=$;export{tt as a,Le as c,As as default,at as i,Pe as l,Di as n,et as o,ot as r,Xe as s,Ei as t};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import{g as e,h as t}from"./src-D3QavEJ4.js";import{$ as n,L as r,O as i,Q as a,b as o,d as s,tt as c,y as l}from"./chunk-ICPOFSXX-BIhiNjvk.js";import"./chunk-5PVQY5BW-CZT35iHI.js";import"./chunk-U2HBQHQK-CJqSKuXA.js";import"./chunk-BSJP7CBP-BclwT518.js";import"./chunk-ZZ45TVLE-D3ALxVxH.js";import{t as u}from"./chunk-55IACEB6-DAYR8bYh.js";import{t as d}from"./chunk-EDXVE4YY-C4TkNvln.js";import"./chunk-X2U36JSP-DVXuKdYc.js";import"./chunk-5FUZZQ4R-BghvyuR7.js";import"./chunk-ENJZ2VHE-BNRddB0h.js";import{i as f,r as p}from"./mermaid.core-Cy3kC-2x.js";var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function h(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+`-`+m[e[t+4]]+m[e[t+5]]+`-`+m[e[t+6]]+m[e[t+7]]+`-`+m[e[t+8]]+m[e[t+9]]+`-`+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var g,_=new Uint8Array(16);function v(){if(!g){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);g=crypto.getRandomValues.bind(crypto)}return g(_)}var y={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function b(e,t,n){if(y.randomUUID&&!t&&!e)return y.randomUUID();e||={};let r=e.random??e.rng?.()??v();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return h(r)}var x=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:t(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:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(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).
|
|
4
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return e.getLogger().trace(`Found comment`,t.yytext),6;case 1:return 8;case 2:this.begin(`CLASS`);break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 6:return e.getLogger().trace(`SPACELINE`),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace(`end icon`),this.popState();break;case 10:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),19;case 11:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),19;case 12:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),19;case 13:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),19;case 14:return this.begin(`NODE`),19;case 15:return this.begin(`NODE`),19;case 16:return this.begin(`NODE`),19;case 17:return this.begin(`NODE`),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin(`NSTR2`);break;case 22:return`NODE_DESCR`;case 23:this.popState();break;case 24:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 28:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 29:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 30:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;case 36:return e.getLogger().trace(`Long description:`,t.yytext),20}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}})();function y(){this.yy={}}return t(y,`Parser`),y.prototype=v,v.Parser=y,new y})();x.parser=x;var S=x,C=12,w={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},T=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=w,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{t(this,`MindmapDB`)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(t,n,i,a){e.info(`addNode`,t,n,i,a);let c=!1;this.nodes.length===0?(this.baseLevel=t,t=0,c=!0):this.baseLevel!==void 0&&(t-=this.baseLevel,c=!1);let l=o(),u=l.mindmap?.padding??s.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:u*=2}let d={id:this.count++,nodeId:r(n,l),level:t,descr:r(i,l),type:a,children:[],width:l.mindmap?.maxNodeWidth??s.mindmap.maxNodeWidth,padding:u,isRoot:c},f=this.getParent(t);if(f)f.children.push(d),this.nodes.push(d);else if(c)this.nodes.push(d);else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`)}getType(t,n){switch(e.debug(`In get type`,t,n),t){case`[`:return this.nodeType.RECT;case`(`:return n===`)`?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case`((`:return this.nodeType.CIRCLE;case`)`:return this.nodeType.CLOUD;case`))`:return this.nodeType.BANG;case`{{`:return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=o(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=r(e.icon,t)),e.class&&(n.class=r(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return`no-border`;case this.nodeType.RECT:return`rect`;case this.nodeType.ROUNDED_RECT:return`rounded-rect`;case this.nodeType.CIRCLE:return`circle`;case this.nodeType.CLOUD:return`cloud`;case this.nodeType.BANG:return`bang`;case this.nodeType.HEXAGON:return`hexgon`;default:return`no-border`}}assignSections(e,t){if(e.section=e.level===0?void 0:t,e.children)for(let[n,r]of e.children.entries()){let i=e.level===0?n%(C-1):t;this.assignSections(r,i)}}flattenNodes(e,n){let r=o(),i=[`mindmap-node`];e.isRoot===!0?i.push(`section-root`,`section--1`):e.section!==void 0&&i.push(`section-${e.section}`),e.class&&i.push(e.class);let a=i.join(` `),s=t(e=>{let t=(r.theme?.toLowerCase()??``).includes(`redux`);switch(e){case w.CIRCLE:return`mindmapCircle`;case w.RECT:return`rect`;case w.ROUNDED_RECT:return`rounded`;case w.CLOUD:return`cloud`;case w.BANG:return`bang`;case w.HEXAGON:return`hexagon`;case w.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case w.NO_BORDER:default:return`rect`}},`getShapeFromType`),c={id:e.id.toString(),domId:`node_`+e.id.toString(),label:e.descr,labelType:`markdown`,isGroup:!1,shape:s(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:a,cssStyles:[],look:r.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(n.push(c),e.children)for(let t of e.children)this.flattenNodes(t,n)}generateEdges(e,t){if(!e.children)return;let n=o();for(let r of e.children){let i=`edge`;r.section!==void 0&&(i+=` section-edge-${r.section}`);let a=e.level+1;i+=` edge-depth-${a}`;let o={id:`edge_${e.id}_${r.id}`,start:e.id.toString(),end:r.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:n.look,classes:i,depth:e.level,section:r.section};t.push(o),this.generateEdges(r,t)}}getData(){let t=this.getMindmap(),n=o(),r=i().layout!==void 0,a=n;if(r||(a.layout=`cose-bilkent`),!t)return{nodes:[],edges:[],config:a};e.debug(`getData: mindmapRoot`,t,n),this.assignSections(t);let s=[],c=[];this.flattenNodes(t,s),this.generateEdges(t,c),e.debug(`getData: processed ${s.length} nodes and ${c.length} edges`);let l=new Map;for(let e of s)l.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:s,edges:c,config:a,rootNode:t,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(l),type:`mindmap`,diagramId:`mindmap-`+b()}}getLogger(){return e}},E={draw:t(async(t,n,r,i)=>{e.debug(`Rendering mindmap diagram
|
|
7
|
+
`+t);let a=i.db,o=a.getData(),c=u(n,o.config.securityLevel);if(o.type=i.type,o.layoutAlgorithm=p(o.config.layout,{fallback:`cose-bilkent`}),o.diagramId=n,!a.getMindmap())return;o.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`?(e.width=0,e.padding=10):e.shape===`hexagon`&&(e.width=0,e.height=0)}),await f(o,c);let{themeVariables:m}=l(),{useGradient:h,gradientStart:g,gradientStop:_}=m;if(h&&g&&_){let e=c.attr(`id`),t=c.append(`defs`).append(`linearGradient`).attr(`id`,`${e}-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,_).attr(`stop-opacity`,1)}d(c,o.config.mindmap?.padding??s.mindmap.padding,`mindmapDiagram`,o.config.mindmap?.useMaxWidth??s.mindmap.useMaxWidth)},`draw`)},D=t(e=>{let{theme:t,look:r}=e,i=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],c(e[`lineColor`+t])?e[`lineColor`+t]=n(e[`lineColor`+t],20):e[`lineColor`+t]=a(e[`lineColor`+t],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let a=``+(r===`neo`?Math.max(10-(n-1)*2,2):17-3*n);i+=`
|
|
8
|
+
.section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {
|
|
9
|
+
fill: ${e[`cScale`+n]};
|
|
10
|
+
}
|
|
11
|
+
.section-${n-1} text {
|
|
12
|
+
fill: ${e[`cScaleLabel`+n]};
|
|
13
|
+
}
|
|
14
|
+
.section-${n-1} span {
|
|
15
|
+
color: ${e[`cScaleLabel`+n]};
|
|
16
|
+
}
|
|
17
|
+
.node-icon-${n-1} {
|
|
18
|
+
font-size: 40px;
|
|
19
|
+
color: ${e[`cScaleLabel`+n]};
|
|
20
|
+
}
|
|
21
|
+
.section-edge-${n-1}{
|
|
22
|
+
stroke: ${e[`cScale`+n]};
|
|
23
|
+
}
|
|
24
|
+
.edge-depth-${n-1}{
|
|
25
|
+
stroke-width: ${a};
|
|
26
|
+
}
|
|
27
|
+
.section-${n-1} line {
|
|
28
|
+
stroke: ${e[`cScaleInv`+n]} ;
|
|
29
|
+
stroke-width: 3;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.disabled, .disabled circle, .disabled text {
|
|
33
|
+
fill: lightgray;
|
|
34
|
+
}
|
|
35
|
+
.disabled text {
|
|
36
|
+
fill: #efefef;
|
|
37
|
+
}
|
|
38
|
+
[data-look="neo"].mindmap-node.section-${n-1} rect, [data-look="neo"].mindmap-node.section-${n-1} path, [data-look="neo"].mindmap-node.section-${n-1} circle, [data-look="neo"].mindmap-node.section-${n-1} polygon {
|
|
39
|
+
fill: ${t===`redux`||t===`redux-dark`||t===`neutral`?e.mainBkg:e[`cScale`+n]};
|
|
40
|
+
stroke: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScale`+n]};
|
|
41
|
+
stroke-width: ${e.strokeWidth??2}px;
|
|
42
|
+
}
|
|
43
|
+
[data-look="neo"].section-edge-${n-1}{
|
|
44
|
+
stroke: ${t?.includes(`redux`)||t===`neo-dark`?e.nodeBorder:e[`cScale`+n]};
|
|
45
|
+
}
|
|
46
|
+
[data-look="neo"].mindmap-node.section-${n-1} text {
|
|
47
|
+
fill: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScaleLabel`+(t===`neutral`?1:n)]};
|
|
48
|
+
}
|
|
49
|
+
`}return i},`genSections`),O=t((e,t,n)=>{let r=``;for(let i=0;i<e;i++)r+=`
|
|
50
|
+
[data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {
|
|
51
|
+
stroke: url(${t}-gradient);
|
|
52
|
+
fill: ${n};
|
|
53
|
+
}
|
|
54
|
+
.section-${i-1} line {
|
|
55
|
+
stroke-width: 0;
|
|
56
|
+
}`;return r},`genGradient`),k={get db(){return new T},renderer:E,parser:S,styles:t(e=>{let{theme:t}=e,n=e.svgId,r=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return`
|
|
57
|
+
.edge {
|
|
58
|
+
stroke-width: 3;
|
|
59
|
+
}
|
|
60
|
+
${D(e)}
|
|
61
|
+
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
62
|
+
fill: ${e.git0};
|
|
63
|
+
}
|
|
64
|
+
.section-root text {
|
|
65
|
+
fill: ${e.gitBranchLabel0};
|
|
66
|
+
}
|
|
67
|
+
.section-root span {
|
|
68
|
+
color: ${t?.includes(`redux`)?e.nodeBorder:e.gitBranchLabel0};
|
|
69
|
+
}
|
|
70
|
+
.icon-container {
|
|
71
|
+
height:100%;
|
|
72
|
+
display: flex;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
}
|
|
76
|
+
.edge {
|
|
77
|
+
fill: none;
|
|
78
|
+
}
|
|
79
|
+
.mindmap-node-label {
|
|
80
|
+
dy: 1em;
|
|
81
|
+
alignment-baseline: middle;
|
|
82
|
+
text-anchor: middle;
|
|
83
|
+
dominant-baseline: middle;
|
|
84
|
+
text-align: center;
|
|
85
|
+
}
|
|
86
|
+
[data-look="neo"].mindmap-node {
|
|
87
|
+
filter: ${r};
|
|
88
|
+
}
|
|
89
|
+
[data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
|
|
90
|
+
fill: ${t?.includes(`redux`)?e.mainBkg:e.git0};
|
|
91
|
+
}
|
|
92
|
+
[data-look="neo"].mindmap-node.section-root .text-inner-tspan {
|
|
93
|
+
fill: ${t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)]};
|
|
94
|
+
}
|
|
95
|
+
${e.useGradient&&n&&e.mainBkg?O(e.THEME_COLOR_LIMIT,n,e.mainBkg):``}
|
|
96
|
+
`},`getStyles`)};export{k as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./init-C-OQMol4.js";var t=class extends Map{constructor(e,t=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(n(this,e))}has(e){return super.has(n(this,e))}set(e,t){return super.set(r(this,e),t)}delete(e){return super.delete(i(this,e))}};function n({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function r({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function i({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function a(e){return typeof e==`object`&&e?e.valueOf():e}var o=Symbol(`implicit`);function s(){var n=new t,r=[],i=[],a=o;function c(e){let t=n.get(e);if(t===void 0){if(a!==o)return a;n.set(e,t=r.push(e)-1)}return i[t%i.length]}return c.domain=function(e){if(!arguments.length)return r.slice();r=[],n=new t;for(let t of e)n.has(t)||n.set(t,r.push(t)-1);return c},c.range=function(e){return arguments.length?(i=Array.from(e),c):i.slice()},c.unknown=function(e){return arguments.length?(a=e,c):a},c.copy=function(){return s(r,i).unknown(a)},e.apply(c,arguments),c}export{s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-K5T4RW27-FpH_VPgE.js";import{p as e}from"./mermaid-parser.core-BdiNtuYK.js";export{e as createPacketServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Math.PI,t=2*e,n=1e-6,r=t-n;function i(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function a(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return i;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var o=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?i:a(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(t,r,i,a,o){if(t=+t,r=+r,i=+i,a=+a,o=+o,o<0)throw Error(`negative radius: ${o}`);let s=this._x1,c=this._y1,l=i-t,u=a-r,d=s-t,f=c-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>n){if(!(Math.abs(f*l-u*d)>n)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let m=i-s,h=a-c,g=l*l+u*u,_=m*m+h*h,v=Math.sqrt(g),y=Math.sqrt(p),b=o*Math.tan((e-Math.acos((g+p-_)/(2*v*y)))/2),x=b/y,S=b/v;Math.abs(x-1)>n&&this._append`L${t+x*d},${r+x*f}`,this._append`A${o},${o},0,0,${+(f*m>d*h)},${this._x1=t+S*l},${this._y1=r+S*u}`}}}arc(i,a,o,s,c,l){if(i=+i,a=+a,o=+o,l=!!l,o<0)throw Error(`negative radius: ${o}`);let u=o*Math.cos(s),d=o*Math.sin(s),f=i+u,p=a+d,m=1^l,h=l?s-c:c-s;this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>n||Math.abs(this._y1-p)>n)&&this._append`L${f},${p}`,o&&(h<0&&(h=h%t+t),h>r?this._append`A${o},${o},0,1,${m},${i-u},${a-d}A${o},${o},0,1,${m},${this._x1=f},${this._y1=p}`:h>n&&this._append`A${o},${o},0,${+(h>=e)},${m},${this._x1=i+o*Math.cos(c)},${this._y1=a+o*Math.sin(c)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};o.prototype;function s(e){return function(){return e}}function c(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new o(t)}export{s as n,c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-K5T4RW27-FpH_VPgE.js";import{d as e}from"./mermaid-parser.core-BdiNtuYK.js";export{e as createPieServices};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import{t as e}from"./mermaid-parser.core-BdiNtuYK.js";import{g as t,h as n}from"./src-D3QavEJ4.js";import{B as r,C as i,V as a,W as o,_ as s,a as c,b as l,c as u,d,v as f}from"./chunk-ICPOFSXX-BIhiNjvk.js";import{t as p}from"./ordinal-DtR4qwUh.js";import{n as m}from"./path-fybaL0A-.js";import{m as h}from"./dist-C_yfW-4f.js";import{t as g}from"./arc-Cev3HYkO.js";import{t as _}from"./array-BifhSqXX.js";import{f as v,r as y}from"./chunk-5PVQY5BW-CZT35iHI.js";import{t as b}from"./chunk-4BX2VUAB-C9I87hfN.js";import{a as x}from"./mermaid.core-Cy3kC-2x.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=m(0),i=m(h),a=m(0);function o(o){var s,c=(o=_(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),g=Math.min(h,Math.max(-h,i.apply(this,arguments)-m)),v,y=Math.min(Math.abs(g)/c,a.apply(this,arguments)),b=y*(g<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(g-c*b)/d:0;s<c;++s,m=v)l=f[s],x=p[l],v=m+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:m,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:m(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:m(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:m(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:m(+e),o):a},o}var T=d.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:n(()=>structuredClone(k),`getConfig`),clear:n(()=>{D=new Map,O=E.showData,c()},`clear`),setDiagramTitle:o,getDiagramTitle:i,setAccTitle:a,getAccTitle:f,setAccDescription:r,getAccDescription:s,addSection:n(({label:e,value:n})=>{if(n<0)throw Error(`"${e}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,n),t.debug(`added new section: ${e}, with value: ${n}`))},`addSection`),getSections:n(()=>D,`getSections`),setShowData:n(e=>{O=e},`setShowData`),getShowData:n(()=>O,`getShowData`)},j=n((e,t)=>{b(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:n(async n=>{let r=await e(`pie`,n);t.debug(r),j(r,A)},`parse`)},N=n(e=>`
|
|
2
|
+
.pieCircle{
|
|
3
|
+
stroke: ${e.pieStrokeColor};
|
|
4
|
+
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
+
opacity : ${e.pieOpacity};
|
|
6
|
+
}
|
|
7
|
+
.pieOuterCircle{
|
|
8
|
+
stroke: ${e.pieOuterStrokeColor};
|
|
9
|
+
stroke-width: ${e.pieOuterStrokeWidth};
|
|
10
|
+
fill: none;
|
|
11
|
+
}
|
|
12
|
+
.pieTitleText {
|
|
13
|
+
text-anchor: middle;
|
|
14
|
+
font-size: ${e.pieTitleTextSize};
|
|
15
|
+
fill: ${e.pieTitleTextColor};
|
|
16
|
+
font-family: ${e.fontFamily};
|
|
17
|
+
}
|
|
18
|
+
.slice {
|
|
19
|
+
font-family: ${e.fontFamily};
|
|
20
|
+
fill: ${e.pieSectionTextColor};
|
|
21
|
+
font-size:${e.pieSectionTextSize};
|
|
22
|
+
// fill: white;
|
|
23
|
+
}
|
|
24
|
+
.legend text {
|
|
25
|
+
fill: ${e.pieLegendTextColor};
|
|
26
|
+
font-family: ${e.fontFamily};
|
|
27
|
+
font-size: ${e.pieLegendTextSize};
|
|
28
|
+
}
|
|
29
|
+
`,`getStyles`),P=n(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:n((e,n,r,i)=>{t.debug(`rendering pie chart
|
|
30
|
+
`+e);let a=i.db,o=l(),s=y(a.getConfig(),o.pie),c=x(n),d=c.append(`g`);d.attr(`transform`,`translate(225,225)`);let{themeVariables:f}=o,[m]=v(f.pieOuterStrokeWidth);m??=2;let h=s.textPosition,_=g().innerRadius(0).outerRadius(185),b=g().innerRadius(185*h).outerRadius(185*h);d.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+m/2).attr(`class`,`pieOuterCircle`);let S=a.getSections(),C=P(S),w=[f.pie1,f.pie2,f.pie3,f.pie4,f.pie5,f.pie6,f.pie7,f.pie8,f.pie9,f.pie10,f.pie11,f.pie12],T=0;S.forEach(e=>{T+=e});let E=C.filter(e=>(e.data.value/T*100).toFixed(0)!==`0`),D=p(w).domain([...S.keys()]);d.selectAll(`mySlices`).data(E).enter().append(`path`).attr(`d`,_).attr(`fill`,e=>D(e.data.label)).attr(`class`,`pieCircle`),d.selectAll(`mySlices`).data(E).enter().append(`text`).text(e=>(e.data.value/T*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+b.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let O=d.append(`text`).text(a.getDiagramTitle()).attr(`x`,0).attr(`y`,-200).attr(`class`,`pieTitleText`),k=[...S.entries()].map(([e,t])=>({label:e,value:t})),A=d.selectAll(`.legend`).data(k).enter().append(`g`).attr(`class`,`legend`).attr(`transform`,(e,t)=>{let n=22*k.length/2;return`translate(216,`+(t*22-n)+`)`});A.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>D(e.label)).style(`stroke`,e=>D(e.label)),A.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>a.getShowData()?`${e.label} [${e.value}]`:e.label);let j=512+Math.max(...A.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),M=O.node()?.getBoundingClientRect().width??0,N=225-M/2,F=225+M/2,I=Math.min(0,N),L=Math.max(j,F)-I;c.attr(`viewBox`,`${I} 0 ${L} 450`),u(c,450,L,s.useMaxWidth)},`draw`)},styles:N};export{F as diagram};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{g as e,h as t,p as n}from"./src-D3QavEJ4.js";import{B as r,C as i,E as a,L as o,V as s,W as c,_ as l,a as u,b as d,c as f,d as p,v as m}from"./chunk-ICPOFSXX-BIhiNjvk.js";import{t as h}from"./linear-BDsPwGxk.js";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[1,7],s=[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],c=[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],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,14],v=[1,23],y=[1,18],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,24],T=[1,25],E=[1,26],D=[1,27],O=[1,28],k=[1,29],A=[1,32],j=[1,33],M=[1,34],N=[1,39],P=[1,40],F=[1,42],I=[1,44],L=[1,62],R=[1,61],z=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],B=[1,65],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,90],U=[1,91],W=[1,92],G=[1,99],K=[1,93],q=[1,96],J=[1,94],Y=[1,95],X=[1,97],Z=[1,98],de=[1,102],fe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],pe={trace:t(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:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[{18:n,26:1,27:2,28:r,55:i,56:a,57:o},{1:[3]},{18:n,26:8,27:2,28:r,55:i,56:a,57:o},{18:n,26:9,27:2,28:r,55:i,56:a,57:o},e(s,[2,33],{29:10}),e(c,[2,61]),e(c,[2,62]),e(c,[2,63]),{1:[2,30]},{1:[2,31]},e(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,18:_,25:v,35:y,37:b,39:x,41:S,42:C,48:w,50:T,51:E,52:D,53:O,54:k,60:A,61:j,63:M,64:N,65:P,66:F,67:I}),e(s,[2,34]),{27:45,55:i,56:a,57:o},e(l,[2,37]),e(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:f,10:p,12:m,13:h,14:g,18:_,25:v,35:y,37:b,39:x,41:S,42:C,48:w,50:T,51:E,52:D,53:O,54:k,60:A,61:j,63:M,64:N,65:P,66:F,67:I}),e(l,[2,39]),e(l,[2,40]),e(l,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},e(l,[2,45]),e(l,[2,46]),{18:[1,50]},{4:d,5:f,10:p,12:m,13:h,14:g,43:51,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:d,5:f,10:p,12:m,13:h,14:g,43:52,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:d,5:f,10:p,12:m,13:h,14:g,43:53,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:d,5:f,10:p,12:m,13:h,14:g,43:54,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:d,5:f,10:p,12:m,13:h,14:g,43:55,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:d,5:f,10:p,12:m,13:h,14:g,43:56,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,44:[1,57],47:[1,58],58:60,59:59,63:M,64:N,65:P,66:F,67:I},e(z,[2,64]),e(z,[2,66]),e(z,[2,67]),e(z,[2,70]),e(z,[2,71]),e(z,[2,72]),e(z,[2,73]),e(z,[2,74]),e(z,[2,75]),e(z,[2,76]),e(z,[2,77]),e(z,[2,78]),e(z,[2,79]),e(z,[2,80]),e(s,[2,35]),e(l,[2,38]),e(l,[2,42]),e(l,[2,43]),e(l,[2,44]),{3:64,4:B,5:ee,6:te,7:ne,8:re,9:ie,10:ae,11:oe,12:se,13:ce,14:le,15:ue,21:63},e(l,[2,53],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,49:[1,77],63:M,64:N,65:P,66:F,67:I}),e(l,[2,56],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,49:[1,78],63:M,64:N,65:P,66:F,67:I}),e(l,[2,57],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(l,[2,58],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(l,[2,59],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(l,[2,60],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),{45:[1,79]},{44:[1,80]},e(z,[2,65]),e(z,[2,81]),e(z,[2,82]),e(z,[2,83]),{3:82,4:B,5:ee,6:te,7:ne,8:re,9:ie,10:ae,11:oe,12:se,13:ce,14:le,15:ue,18:[1,81]},e(V,[2,23]),e(V,[2,1]),e(V,[2,2]),e(V,[2,3]),e(V,[2,4]),e(V,[2,5]),e(V,[2,6]),e(V,[2,7]),e(V,[2,8]),e(V,[2,9]),e(V,[2,10]),e(V,[2,11]),e(V,[2,12]),e(l,[2,52],{58:31,43:83,4:d,5:f,10:p,12:m,13:h,14:g,60:A,61:j,63:M,64:N,65:P,66:F,67:I}),e(l,[2,55],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,60:A,61:j,63:M,64:N,65:P,66:F,67:I}),{46:[1,85]},{45:[1,86]},{4:H,5:U,6:W,8:G,11:K,13:q,16:89,17:J,18:Y,19:X,20:Z,22:88,23:87},e(V,[2,24]),e(l,[2,51],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(l,[2,54],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(l,[2,47],{22:88,16:89,23:100,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,101]},e(l,[2,29],{10:de}),e(fe,[2,27],{16:103,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),e(Q,[2,25]),e(Q,[2,13]),e(Q,[2,14]),e(Q,[2,15]),e(Q,[2,16]),e(Q,[2,17]),e(Q,[2,18]),e(Q,[2,19]),e(Q,[2,20]),e(Q,[2,21]),e(Q,[2,22]),e(l,[2,49],{10:de}),e(l,[2,48],{22:88,16:89,23:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:89,17:J,18:Y,19:X,20:Z,22:105},e(Q,[2,26]),e(l,[2,50],{10:de}),e(fe,[2,28],{16:103,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};pe.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(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).
|
|
4
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}}})();function $(){this.yy={}}return t($,`Parser`),$.prototype=pe,pe.Parser=$,new $})();g.parser=g;var _=g,v=a(),y=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{t(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:p.quadrantChart?.chartWidth||500,chartWidth:p.quadrantChart?.chartHeight||500,titlePadding:p.quadrantChart?.titlePadding||10,titleFontSize:p.quadrantChart?.titleFontSize||20,quadrantPadding:p.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:p.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:p.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:p.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:p.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:p.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:p.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:p.quadrantChart?.pointTextPadding||5,pointLabelFontSize:p.quadrantChart?.pointLabelFontSize||12,pointRadius:p.quadrantChart?.pointRadius||5,xAxisPosition:p.quadrantChart?.xAxisPosition||`top`,yAxisPosition:p.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:p.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:p.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:v.quadrant1Fill,quadrant2Fill:v.quadrant2Fill,quadrant3Fill:v.quadrant3Fill,quadrant4Fill:v.quadrant4Fill,quadrant1TextFill:v.quadrant1TextFill,quadrant2TextFill:v.quadrant2TextFill,quadrant3TextFill:v.quadrant3TextFill,quadrant4TextFill:v.quadrant4TextFill,quadrantPointFill:v.quadrantPointFill,quadrantPointTextFill:v.quadrantPointTextFill,quadrantXAxisTextFill:v.quadrantXAxisTextFill,quadrantYAxisTextFill:v.quadrantYAxisTextFill,quadrantTitleFill:v.quadrantTitleFill,quadrantInternalBorderStrokeFill:v.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:v.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,e.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(t){e.trace(`setConfig called with: `,t),this.config={...this.config,...t}}setThemeConfig(t){e.trace(`setThemeConfig called with: `,t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},c=this.config.titleFontSize+this.config.titlePadding*2,l={top:r?c:0},u=this.config.quadrantPadding+s.left,d=this.config.quadrantPadding+a.top+l.top,f=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,p=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-l.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:l,quadrantSpace:{quadrantLeft:u,quadrantTop:d,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:d}=i,f=!!this.data.xAxisRightText,p=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&t&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+l+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+s-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+o-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),m}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a,width:i,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(e){let{quadrantSpace:t}=e,{quadrantHeight:n,quadrantLeft:r,quadrantTop:i,quadrantWidth:a}=t,o=h().domain([0,1]).range([r,a+r]),s=h().domain([0,1]).range([n+i,i]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:o(e.x),y:s(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:o(e.x),y:s(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+c+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+t,x2:a+c,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+c+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+c-t,y2:s+r}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:`top`,verticalPos:`center`,rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},b=class extends Error{static{t(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}};function x(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}t(x,`validateHexCode`);function S(e){return!/^\d+$/.test(e)}t(S,`validateNumber`);function C(e){return!/^\d+px$/.test(e)}t(C,`validateSizeInPixels`);var w=d();function T(e){return o(e.trim(),w)}t(T,`textSanitizer`);var E=new y;function D(e){E.setData({quadrant1Text:T(e.text)})}t(D,`setQuadrant1Text`);function O(e){E.setData({quadrant2Text:T(e.text)})}t(O,`setQuadrant2Text`);function k(e){E.setData({quadrant3Text:T(e.text)})}t(k,`setQuadrant3Text`);function A(e){E.setData({quadrant4Text:T(e.text)})}t(A,`setQuadrant4Text`);function j(e){E.setData({xAxisLeftText:T(e.text)})}t(j,`setXAxisLeftText`);function M(e){E.setData({xAxisRightText:T(e.text)})}t(M,`setXAxisRightText`);function N(e){E.setData({yAxisTopText:T(e.text)})}t(N,`setYAxisTopText`);function P(e){E.setData({yAxisBottomText:T(e.text)})}t(P,`setYAxisBottomText`);function F(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(S(r))throw new b(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(x(r))throw new b(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(x(r))throw new b(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(C(r))throw new b(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}t(F,`parseStyles`);function I(e,t,n,r,i){let a=F(i);E.addPoints([{x:n,y:r,text:T(e.text),className:t,...a}])}t(I,`addPoint`);function L(e,t){E.addClass(e,F(t))}t(L,`addClass`);function R(e){E.setConfig({chartWidth:e})}t(R,`setWidth`);function z(e){E.setConfig({chartHeight:e})}t(z,`setHeight`);function B(){let{themeVariables:e,quadrantChart:t}=d();return t&&E.setConfig(t),E.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),E.setData({titleText:i()}),E.build()}t(B,`getQuadrantData`);var ee={parser:_,db:{setWidth:R,setHeight:z,setQuadrant1Text:D,setQuadrant2Text:O,setQuadrant3Text:k,setQuadrant4Text:A,setXAxisLeftText:j,setXAxisRightText:M,setYAxisTopText:N,setYAxisBottomText:P,parseStyles:F,addPoint:I,addClass:L,getQuadrantData:B,clear:t(function(){E.clear(),u()},`clear`),setAccTitle:s,getAccTitle:m,setDiagramTitle:c,getDiagramTitle:i,getAccDescription:l,setAccDescription:r},renderer:{draw:t((r,i,a,o)=>{function s(e){return e===`top`?`hanging`:`middle`}t(s,`getDominantBaseLine`);function c(e){return e===`left`?`start`:`middle`}t(c,`getTextAnchor`);function l(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}t(l,`getTransformation`);let u=d();e.debug(`Rendering quadrant chart
|
|
7
|
+
`+r);let p=u.securityLevel,m;p===`sandbox`&&(m=n(`#i`+i));let h=n(p===`sandbox`?m.nodes()[0].contentDocument.body:`body`).select(`[id="${i}"]`),g=h.append(`g`).attr(`class`,`main`),_=u.quadrantChart?.chartWidth??500,v=u.quadrantChart?.chartHeight??500;f(h,v,_,u.quadrantChart?.useMaxWidth??!0),h.attr(`viewBox`,`0 0 `+_+` `+v),o.db.setHeight(v),o.db.setWidth(_);let y=o.db.getQuadrantData(),b=g.append(`g`).attr(`class`,`quadrants`),x=g.append(`g`).attr(`class`,`border`),S=g.append(`g`).attr(`class`,`data-points`),C=g.append(`g`).attr(`class`,`labels`),w=g.append(`g`).attr(`class`,`title`);y.title&&w.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,y.title.fill).attr(`font-size`,y.title.fontSize).attr(`dominant-baseline`,s(y.title.horizontalPos)).attr(`text-anchor`,c(y.title.verticalPos)).attr(`transform`,l(y.title)).text(y.title.text),y.borderLines&&x.selectAll(`line`).data(y.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let T=b.selectAll(`g.quadrant`).data(y.quadrants).enter().append(`g`).attr(`class`,`quadrant`);T.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),T.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>s(e.text.horizontalPos)).attr(`text-anchor`,e=>c(e.text.verticalPos)).attr(`transform`,e=>l(e.text)).text(e=>e.text.text),C.selectAll(`g.label`).data(y.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>s(e.horizontalPos)).attr(`text-anchor`,e=>c(e.verticalPos)).attr(`transform`,e=>l(e));let E=S.selectAll(`g.data-point`).data(y.points).enter().append(`g`).attr(`class`,`data-point`);E.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),E.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>s(e.text.horizontalPos)).attr(`text-anchor`,e=>c(e.text.verticalPos)).attr(`transform`,e=>l(e.text))},`draw`)},styles:t(()=>``,`styles`)};export{ee as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-K5T4RW27-FpH_VPgE.js";import{l as e}from"./mermaid-parser.core-BdiNtuYK.js";export{e as createRadarServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as e,O as t,T as n,_ as r,c as i,d as a,f as o,g as s,h as c,i as l,m as u,n as d,p as f,r as p,s as m,t as h,v as g,w as _,y as v}from"./_baseFor-D6HAxaEF.js";import{c as y,l as b,s as ee}from"./mermaid.core-Cy3kC-2x.js";function x(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var te=`__lodash_hash_undefined__`;function ne(e){return this.__data__.set(e,te),this}function re(e){return this.__data__.has(e)}function S(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new v;++t<n;)this.add(e[t])}S.prototype.add=S.prototype.push=ne,S.prototype.has=re;function ie(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function C(e,t){return e.has(t)}var ae=1,oe=2;function se(e,t,n,r,i,a){var o=n&ae,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&oe?new S:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!ie(t,function(e,t){if(!C(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function ce(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function w(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var le=1,ue=2,de=`[object Boolean]`,fe=`[object Date]`,pe=`[object Error]`,me=`[object Map]`,he=`[object Number]`,ge=`[object RegExp]`,_e=`[object Set]`,ve=`[object String]`,ye=`[object Symbol]`,be=`[object ArrayBuffer]`,xe=`[object DataView]`,T=e?e.prototype:void 0,E=T?T.valueOf:void 0;function Se(e,n,i,a,o,s,c){switch(i){case xe:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case be:return!(e.byteLength!=n.byteLength||!s(new r(e),new r(n)));case de:case fe:case he:return t(+e,+n);case pe:return e.name==n.name&&e.message==n.message;case ge:case ve:return e==n+``;case me:var l=ce;case _e:var u=a≤if(l||=w,e.size!=n.size&&!u)return!1;var d=c.get(e);if(d)return d==n;a|=ue,c.set(e,n);var f=se(l(e),l(n),a,o,s,c);return c.delete(e),f;case ye:if(E)return E.call(e)==E.call(n)}return!1}function D(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function O(e,t,n){var r=t(e);return s(e)?r:D(r,n(e))}function k(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function A(){return[]}var Ce=Object.prototype.propertyIsEnumerable,j=Object.getOwnPropertySymbols,M=j?function(e){return e==null?[]:(e=Object(e),k(j(e),function(t){return Ce.call(e,t)}))}:A;function N(e){return l(e)?m(e):b(e)}function P(e){return O(e,N,M)}var we=1,Te=Object.prototype.hasOwnProperty;function Ee(e,t,n,r,i,a){var o=n&we,s=P(e),c=s.length;if(c!=P(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:Te.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var De=1,F=`[object Arguments]`,I=`[object Array]`,L=`[object Object]`,R=Object.prototype.hasOwnProperty;function Oe(e,t,n,r,a,o){var c=s(e),l=s(t),u=c?I:ee(e),d=l?I:ee(t);u=u==F?L:u,d=d==F?L:d;var p=u==L,m=d==L,h=u==d;if(h&&f(e)){if(!f(t))return!1;c=!0,p=!1}if(h&&!p)return o||=new g,c||i(e)?se(e,t,n,r,a,o):Se(e,t,u,n,r,a,o);if(!(n&De)){var _=p&&R.call(e,`__wrapped__`),v=m&&R.call(t,`__wrapped__`);if(_||v){var y=_?e.value():e,b=v?t.value():t;return o||=new g,a(y,b,n,r,o)}}return h?(o||=new g,Ee(e,t,n,r,a,o)):!1}function z(e,t,n,r,i){return e===t?!0:e==null||t==null||!c(e)&&!c(t)?e!==e&&t!==t:Oe(e,t,n,r,z,i)}var ke=1,Ae=2;function je(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new g;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?z(u,l,ke|Ae,r,d):f))return!1}}return!0}function B(e){return e===e&&!_(e)}function Me(e){for(var t=N(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,B(i)]}return t}function V(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}function Ne(e){var t=Me(e);return t.length==1&&t[0][2]?V(t[0][0],t[0][1]):function(n){return n===e||je(n,e,t)}}var Pe=`[object Symbol]`;function H(e){return typeof e==`symbol`||c(e)&&n(e)==Pe}var Fe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ie=/^\w*$/;function U(e,t){if(s(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||H(e)?!0:Ie.test(e)||!Fe.test(e)||t!=null&&e in Object(t)}var Le=500;function Re(e){var t=p(e,function(e){return n.size===Le&&n.clear(),e}),n=t.cache;return t}var ze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Be=/\\(\\)?/g,Ve=Re(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(ze,function(e,n,r,i){t.push(r?i.replace(Be,`$1`):n||e)}),t}),He=1/0,W=e?e.prototype:void 0,G=W?W.toString:void 0;function K(e){if(typeof e==`string`)return e;if(s(e))return x(e,K)+``;if(H(e))return G?G.call(e):``;var t=e+``;return t==`0`&&1/e==-He?`-0`:t}function q(e){return e==null?``:K(e)}function J(e,t){return s(e)?e:U(e,t)?[e]:Ve(q(e))}var Ue=1/0;function Y(e){if(typeof e==`string`||H(e))return e;var t=e+``;return t==`0`&&1/e==-Ue?`-0`:t}function X(e,t){t=J(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Y(t[n++])];return n&&n==r?e:void 0}function We(e,t,n){var r=e==null?void 0:X(e,t);return r===void 0?n:r}function Ge(e,t){return e!=null&&t in Object(e)}function Ke(e,t,n){t=J(t,e);for(var r=-1,i=t.length,c=!1;++r<i;){var l=Y(t[r]);if(!(c=e!=null&&n(e,l)))break;e=e[l]}return c||++r!=i?c:(i=e==null?0:e.length,!!i&&a(i)&&o(l,i)&&(s(e)||u(e)))}function qe(e,t){return e!=null&&Ke(e,t,Ge)}var Je=1,Ye=2;function Xe(e,t){return U(e)&&B(t)?V(Y(e),t):function(n){var r=We(n,e);return r===void 0&&r===t?qe(n,e):z(t,r,Je|Ye)}}function Ze(e){return function(t){return t?.[e]}}function Qe(e){return function(t){return X(t,e)}}function $e(e){return U(e)?Ze(Y(e)):Qe(e)}function Z(e){return typeof e==`function`?e:e==null?d:typeof e==`object`?s(e)?Xe(e[0],e[1]):Ne(e):$e(e)}function et(e,t){return e&&h(e,t,N)}function tt(e,t){return function(n,r){if(n==null)return n;if(!l(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var Q=tt(et);function nt(e,t){var n=[];return Q(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function rt(e,t){return(s(e)?k:nt)(e,Z(t,3))}var it=e?e.isConcatSpreadable:void 0;function at(e){return s(e)||u(e)||!!(it&&e&&e[it])}function ot(e,t,n,r,i){var a=-1,o=e.length;for(n||=at,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?ot(s,t-1,n,r,i):D(i,s):r||(i[i.length]=s)}return i}function st(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function ct(e){return e!==e}function lt(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function ut(e,t,n){return t===t?lt(e,t,n):st(e,ct,n)}function dt(e,t){return!!(e!=null&&e.length)&&ut(e,t,0)>-1}function ft(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function pt(){}var mt=y&&1/w(new y([,-0]))[1]==1/0?function(e){return new y(e)}:pt,ht=200;function gt(e,t,n){var r=-1,i=dt,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=ft;else if(a>=ht){var l=t?null:mt(e);if(l)return w(l);o=!1,i=C,c=new S}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function _t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function $(e){return typeof e==`function`?e:d}function vt(e,t){return(s(e)?_t:Q)(e,$(t))}function yt(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function bt(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function xt(e,t,n){var r=s(e)?yt:bt,i=arguments.length<3;return r(e,Z(t,4),n,i,Q)}export{A as C,x as E,M as S,D as T,J as _,gt as a,P as b,rt as c,Z as d,Ze as f,Y as g,X as h,_t as i,Q as l,Ke as m,vt as n,st as o,qe as p,$ as r,ot as s,xt as t,et as u,q as v,O as w,N as x,H as y};
|