@plaso-infi/whiteboard-sdk 0.9.9-alpha1.1 → 0.9.10-alpha1.2
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/dist/esm/arc-f453aa24-001bbdd5.js +1 -0
- package/dist/esm/blockDiagram-38ab4fdb-5054d111-916200b0.js +1 -0
- package/dist/esm/c4Diagram-3d4e48cf-5c418a03-d69b6a9c.js +1 -0
- package/dist/esm/channel-d0c23f49-f259a6d1.js +1 -0
- package/dist/esm/classDiagram-70f12bd4-491ee226-467aef5f.js +1 -0
- package/dist/esm/classDiagram-v2-f2320105-e90ceb2f-abf81ed0.js +1 -0
- package/dist/esm/clone-f55b0cc7-e67cd753.js +1 -0
- package/dist/esm/createText-2e5e7dd3-dcc34ae8-3c64ca2d.js +1 -0
- package/dist/esm/edges-e0da2a9e-8abaed90-a3e3f930.js +1 -0
- package/dist/esm/erDiagram-9861fffd-20c9cea5-06108c89.js +1 -0
- package/dist/esm/{flowDb-956e92f1-05858601-f0b0a431.js → flowDb-956e92f1-3b9320a7-67f62d02.js} +1 -1
- package/dist/esm/flowDiagram-66a62f08-08a6f0e7-acbc8998.js +1 -0
- package/dist/esm/flowDiagram-v2-96b9c2cf-6b10acd5-d6f5b177.js +1 -0
- package/dist/esm/flowchart-elk-definition-4a651766-e5b3ba00-a86e3534.js +1 -0
- package/dist/esm/ganttDiagram-c361ad54-be9f4bb3-9fd6d707.js +1 -0
- package/dist/esm/{gitGraphDiagram-72cf32ee-6962610d-ce66735c.js → gitGraphDiagram-72cf32ee-a0e338f3-fedb2c3a.js} +1 -1
- package/dist/esm/graph-afe27007-8e18cc75.js +1 -0
- package/dist/esm/hls-8060cc31-cbc4e4b4.js +1 -0
- package/dist/esm/{index-0c25c9f2.js → index-167f08a0.js} +10 -10
- package/dist/esm/index-3862675e-87ca6a66-f6d07d04.js +1 -0
- package/dist/esm/index-43b715ff-0a40eb86.js +7 -0
- package/dist/esm/index.css +27675 -31377
- package/dist/esm/index.d.ts +6 -143
- package/dist/esm/index.js +1 -1
- package/dist/esm/{infoDiagram-f8f76790-ff02a986-1c2bb5a5.js → infoDiagram-f8f76790-4379e779-22c1733f.js} +1 -1
- package/dist/esm/journeyDiagram-49397b02-2cca535b-67946860.js +1 -0
- package/dist/esm/layout-ae3a065f-6e640144.js +1 -0
- package/dist/esm/{line-8bf27c33-c9dee662.js → line-7161536c-1eab81ab.js} +1 -1
- package/dist/esm/linear-5dc481fe-05c0f51e.js +1 -0
- package/dist/esm/lottie-e933e82b-ded8d0d3.js +1 -0
- package/dist/esm/mindmap-definition-fc14e90a-5dcd2e6e-eef8a18b.js +9 -0
- package/dist/esm/{ordinal-9e8754c0-c9285688.js → ordinal-03018387-faf5bec3.js} +1 -1
- package/dist/esm/pdf_lib-55fc68be-7c552411.js +1 -0
- package/dist/esm/{pieDiagram-8a3498a8-95075175-f271e7e0.js → pieDiagram-8a3498a8-6c705dfb-ac29777a.js} +1 -1
- package/dist/esm/quadrantDiagram-120e2f19-ce717132-2ca6a80f.js +1 -0
- package/dist/esm/{requirementDiagram-deff3bca-29300a5c-74399573.js → requirementDiagram-deff3bca-94ff9b49-53ba3062.js} +1 -1
- package/dist/esm/sankeyDiagram-04a897e0-7f5565ac-73d22dce.js +1 -0
- package/dist/esm/sequenceDiagram-704730f1-65919a25-99547f7a.js +1 -0
- package/dist/esm/stateDiagram-587899a1-2d298c91-69f94d43.js +1 -0
- package/dist/esm/stateDiagram-v2-d93cdb3a-d0d0a3cb-c5f54ac0.js +1 -0
- package/dist/esm/{styles-6aaf32cf-27c06757-9924063a.js → styles-6aaf32cf-9dfc64a7-73ae2457.js} +1 -1
- package/dist/esm/{styles-9a916d00-db7a32f0-40cad9b3.js → styles-9a916d00-f70df3fd-82031337.js} +1 -1
- package/dist/esm/styles-c10674c1-9ccf4241-d16c7c7b.js +1 -0
- package/dist/esm/{svgDrawCommon-08f97a94-12aefbff-7bed41c9.js → svgDrawCommon-08f97a94-6a32c869-fc129345.js} +1 -1
- package/dist/esm/{timeline-definition-85554ec2-475c323b-17118daa.js → timeline-definition-85554ec2-0d0b57da-737d18f2.js} +1 -1
- package/dist/esm/web-pinyin-dbdcf553.js +1 -0
- package/dist/esm/xychartDiagram-e933f94c-d01b914a-f5a15a41.js +1 -0
- package/package.json +2 -6
- package/dist/esm/arc-0fffff1f-cb15888d.js +0 -1
- package/dist/esm/blockDiagram-38ab4fdb-b22c3166-94cafbe4.js +0 -1
- package/dist/esm/c4Diagram-3d4e48cf-ab3a2217-04f37a60.js +0 -1
- package/dist/esm/channel-ff3e58f7-441d1956.js +0 -1
- package/dist/esm/classDiagram-70f12bd4-b7cecb7d-02f67aec.js +0 -1
- package/dist/esm/classDiagram-v2-f2320105-88330ff5-f9e02a46.js +0 -1
- package/dist/esm/clone-e72fc4b8-e0d9c611.js +0 -1
- package/dist/esm/createText-2e5e7dd3-3d197991-1dc23da3.js +0 -1
- package/dist/esm/edges-e0da2a9e-fba3c3a7-06d257f8.js +0 -1
- package/dist/esm/erDiagram-9861fffd-3dedc17c-b3410b98.js +0 -1
- package/dist/esm/export_as_markdown-b48293a8-00bd7ea7.js +0 -1
- package/dist/esm/flowDiagram-66a62f08-b3c97779-70248993.js +0 -1
- package/dist/esm/flowDiagram-v2-96b9c2cf-58d3ab5f-20c5bbe1.js +0 -1
- package/dist/esm/flowchart-elk-definition-4a651766-4ec085d8-a42f0ee1.js +0 -1
- package/dist/esm/ganttDiagram-c361ad54-25aec23c-d8a3f436.js +0 -1
- package/dist/esm/graph-a2efb7be-713af9a6.js +0 -1
- package/dist/esm/hls-2930c8f9-d0274088.js +0 -1
- package/dist/esm/index-069d79ba-7af162da.js +0 -7
- package/dist/esm/index-3862675e-b2881445-8d90f1dc.js +0 -1
- package/dist/esm/journeyDiagram-49397b02-8ee31d6c-be9e21a6.js +0 -1
- package/dist/esm/layout-f41a9481-b65a914c.js +0 -1
- package/dist/esm/linear-bf7a4ead-aef02647.js +0 -1
- package/dist/esm/lottie-b2af09ef-63710b41.js +0 -1
- package/dist/esm/mindmap-definition-fc14e90a-5d304050-073c89e4.js +0 -9
- package/dist/esm/pdf_lib-759c3824-5535ffeb.js +0 -1
- package/dist/esm/quadrantDiagram-120e2f19-8bb878d9-47628e3e.js +0 -1
- package/dist/esm/sankeyDiagram-04a897e0-8e1ff3ae-7e61ab0d.js +0 -1
- package/dist/esm/sequenceDiagram-704730f1-6a89eb72-b6d29a75.js +0 -1
- package/dist/esm/stateDiagram-587899a1-615f787b-70f1fbc3.js +0 -1
- package/dist/esm/stateDiagram-v2-d93cdb3a-0da1e02b-9d5b2272.js +0 -1
- package/dist/esm/styles-c10674c1-3e724aac-5b3a371b.js +0 -1
- package/dist/esm/web-pinyin-cc77b789.js +0 -1
- package/dist/esm/xychartDiagram-e933f94c-43d0ec04-d4af0981.js +0 -1
- /package/dist/esm/{Tableau10-0d093dcf-a3138301.js → Tableau10-e8b1eccc-4cef513c.js} +0 -0
- /package/dist/esm/{array-75b204b6-7055adac.js → array-5c028890-e9486e2e.js} +0 -0
- /package/dist/esm/{init-7e0ff151-92a0ac09.js → init-426b8023-e9aac3aa.js} +0 -0
- /package/dist/esm/{path-5bb65086-3ae6d6fa.js → path-a3e377ce-ded30e71.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,be as t,bf as n}from"./index-0c25c9f2.js";const r={};function i(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return o(e.children,t,n)}return Array.isArray(e)?o(e,t,n):""}function o(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=i(e[o],t,n);return r.join("")}function c(e,t,n,r){const i=e.length;let o,c=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);c<r.length;)o=r.slice(c,c+1e4),o.unshift(t,0),e.splice(...o),c+=1e4,t+=1e4}function u(e,t){return e.length>0?(c(e,e.length,0,t),e):t}const s={}.hasOwnProperty;function a(e,t){let n;for(n in t){const r=(s.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){s.call(r,o)||(r[o]=[]);const e=i[o];l(r[o],Array.isArray(e)?e:e?[e]:[])}}}function l(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);c(e,0,0,r)}const f=S(/[A-Za-z]/),p=S(/[\dA-Za-z]/),d=S(/[#-'*+\--9=?A-Z^-~]/);function h(e){return null!==e&&(e<32||127===e)}const g=S(/\d/),m=S(/[\dA-Fa-f]/),b=S(/[!-/:-@[-`{-~]/);function x(e){return null!==e&&e<-2}function k(e){return null!==e&&(e<0||32===e)}function y(e){return-2===e||-1===e||32===e}const v=S(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),w=S(/\s/);function S(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function q(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return y(r)?(e.enter(n),c(r)):t(r)};function c(r){return y(r)&&o++<i?(e.consume(r),c):(e.exit(n),t(r))}}const E={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),q(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):x(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}},F={tokenize:function(e){const t=this,n=[];let r,i,o,u=0;return s;function s(r){if(u<n.length){const i=n[u];return t.containerState=i[1],e.attempt(i[0].continuation,a,l)(r)}return l(r)}function a(e){if(u++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}k(u);let s=n;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return c(t.events,o+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(i){if(u===n.length){if(!r)return d(i);if(r.currentConstruct&&r.currentConstruct.concrete)return g(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(A,f,p)(i)}function f(e){return r&&y(),k(u),d(e)}function p(e){return t.parser.lazy[t.now().line]=u!==n.length,o=t.now().offset,g(e)}function d(n){return t.containerState={},e.attempt(A,h,g)(n)}function h(e){return u++,n.push([t.currentConstruct,t.containerState]),d(e)}function g(n){return null===n?(r&&y(),k(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),m(n))}function m(n){return null===n?(b(e.exit("chunkFlow"),!0),k(0),void e.consume(n)):x(n)?(e.consume(n),b(e.exit("chunkFlow")),u=0,t.interrupt=void 0,s):(e.consume(n),m)}function b(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,s,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){if(i){s=t.events[a][1].end;break}i=!0}for(k(u),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;c(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function k(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},A={tokenize:function(e,t,n){return q(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function D(e){return null===e||k(e)||w(e)?1:v(e)?2:void 0}function T(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const L={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=D(r);let o;return function(t){return o=t,e.enter("attentionSequence"),c(t)};function c(u){if(u===o)return e.consume(u),c;const s=e.exit("attentionSequence"),a=D(u),l=!a||2===a&&i||n.includes(u),f=!i||2===i&&a||n.includes(r);return s._open=Boolean(42===o?l:l&&(i||!f)),s._close=Boolean(42===o?f:f&&(a||!l)),t(u)}},resolveAll:function(e,t){let n,r,i,o,s,a,l,f,p=-1;for(;++p<e.length;)if("enter"===e[p][0]&&"attentionSequence"===e[p][1].type&&e[p][1]._close)for(n=p;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[p][1]).charCodeAt(0)){if((e[n][1]._close||e[p][1]._open)&&(e[p][1].end.offset-e[p][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[p][1].end.offset-e[p][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[p][1].end.offset-e[p][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),h=Object.assign({},e[p][1].start);C(d,-a),C(h,a),o={type:a>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},s={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[p][1].start),end:h},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[p][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[p][1].start=Object.assign({},s.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=u(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=u(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=u(l,T(t.parser.constructs.insideSpan.null,e.slice(n+1,p),t)),l=u(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[p][1].end.offset-e[p][1].start.offset?(f=2,l=u(l,[["enter",e[p][1],t],["exit",e[p][1],t]])):f=0,c(e,n-1,p-n+3,l),p=n+l.length-f-2;break}for(p=-1;++p<e.length;)"attentionSequence"===e[p][1].type&&(e[p][1].type="data");return e}};function C(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const I={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return f(t)?(e.consume(t),o):s(t)}function o(e){return 43===e||45===e||46===e||p(e)?(r=1,c(e)):s(e)}function c(t){return 58===t?(e.consume(t),r=0,u):(43===t||45===t||46===t||p(t))&&r++<32?(e.consume(t),c):(r=0,s(t))}function u(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||h(r)?n(r):(e.consume(r),u)}function s(t){return 64===t?(e.consume(t),a):d(t)?(e.consume(t),s):n(t)}function a(e){return p(e)?l(e):n(e)}function l(n){return 46===n?(e.consume(n),r=0,a):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):g(n)}function g(t){if((45===t||p(t))&&r++<63){const n=45===t?g:l;return e.consume(t),n}return n(t)}}},B={tokenize:function(e,t,n){return function(t){return y(t)?q(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||x(e)?t(e):n(e)}},partial:!0},z={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return y(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){return y(t)?q(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(z,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}},R={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return b(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},N={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},P={}.hasOwnProperty;function V(e){return!!P.call(N,e)&&N[e]}const O={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,c=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),u};function u(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),i=31,o=p,a(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=m,a):(e.enter("characterReferenceValue"),i=7,o=g,a(t))}function a(u){if(59===u&&c){const i=e.exit("characterReferenceValue");return o!==p||V(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(u)}return o(u)&&c++<i?(e.consume(u),a):n(u)}}},_={tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},H={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c};function c(t){return e.enter("codeFencedFence"),y(t)?q(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===o?(e.enter("codeFencedFenceSequence"),a(t)):n(t)}function a(t){return t===o?(i++,e.consume(t),a):i>=u?(e.exit("codeFencedFenceSequence"),y(t)?q(e,l,"whitespace")(t):l(t)):n(t)}function l(r){return null===r||x(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,c=0,u=0;return function(t){return function(t){const n=r.events[r.events.length-1];return c=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===o?(u++,e.consume(t),s):u<3?n(t):(e.exit("codeFencedFenceSequence"),y(t)?q(e,a,"whitespace")(t):a(t))}function a(n){return null===n||x(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(_,d,k)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),l(n))}function l(t){return null===t||x(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(t)):y(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),q(e,f,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),l)}function f(t){return null===t||x(t)?a(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||x(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),a(t)):96===t&&t===o?n(t):(e.consume(t),p)}function d(t){return e.attempt(i,k,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return c>0&&y(t)?q(e,m,"linePrefix",c+1)(t):m(t)}function m(t){return null===t||x(t)?e.check(_,d,k)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||x(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),b)}function k(n){return e.exit("codeFenced"),t(n)}},concrete:!0},M={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),q(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?u(t):x(t)?e.attempt(U,o,u)(t):(e.enter("codeFlowValue"),c(t))}function c(t){return null===t||x(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),c)}function u(n){return e.exit("codeIndented"),t(n)}}},U={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):x(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):q(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):x(e)?i(e):n(e)}},partial:!0},j={name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),c(t)};function c(t){return 96===t?(e.consume(t),o++,c):(e.exit("codeTextSequence"),u(t))}function u(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),u):96===t?(i=e.enter("codeTextSequence"),r=0,a(t)):x(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||x(t)?(e.exit("codeTextData"),u(t)):(e.consume(t),s)}function a(n){return 96===n?(e.consume(n),r++,a):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",s(n))}},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function G(e){const t={};let n,r,i,o,u,s,a,l=-1;for(;++l<e.length;){for(;l in t;)l=t[l];if(n=e[l],l&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[l-1][1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Q(e,l)),l=t[l],a=!0);else if(n[1]._container){for(i=l,r=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(e[r][1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},e[r][1].start),u=e.slice(r,l),u.unshift(n),c(e,r,l-r+1,u))}}return!a}function Q(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],u=n._tokenizer||r.parser[n.contentType](n.start),s=u.events,a=[],l={};let f,p,d=-1,h=n,g=0,m=0;const b=[m];for(;h;){for(;e[++i][1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),p&&u.defineSkip(h.start),h._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(f),h._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),p=h,h=h.next}for(h=n;++d<s.length;)"exit"===s[d][0]&&"enter"===s[d-1][0]&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(m=d+1,b.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(u.events=[],h?(h._tokenizer=void 0,h.previous=void 0):b.pop(),d=b.length;d--;){const t=s.slice(b[d],b[d+1]),n=o.pop();a.unshift([n,n+t.length-1]),c(e,n,2,t)}for(d=-1;++d<a.length;)l[g+a[d][0]]=g+a[d][1],g+=a[d][1]-a[d][0]-1;return l}const W={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):x(t)?e.check(Z,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return G(e),e}},Z={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),q(e,i,"linePrefix")};function i(i){if(null===i||x(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};function J(e,t,n,r,i,o,c,u,s){const a=s||Number.POSITIVE_INFINITY;let l=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f):null===t||32===t||41===t||h(t)?n(t):(e.enter(r),e.enter(c),e.enter(u),e.enter("chunkString",{contentType:"string"}),g(t))};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(u),f(t)):null===t||60===t||x(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function g(i){return l||null!==i&&41!==i&&!k(i)?l<a&&40===i?(e.consume(i),l++,g):41===i?(e.consume(i),l--,g):null===i||32===i||40===i||h(i)?n(i):(e.consume(i),92===i?m:g):(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),g):g(t)}}function Y(e,t,n,r,i,o){const c=this;let u,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),a};function a(f){return s>999||null===f||91===f||93===f&&!u||94===f&&!s&&"_hiddenFootnoteSupport"in c.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):x(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),a):(e.enter("chunkString",{contentType:"string"}),l(f))}function l(t){return null===t||91===t||93===t||x(t)||s++>999?(e.exit("chunkString"),a(t)):(e.consume(t),u||(u=!y(t)),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function $(e,t,n,r,i,o){let c;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),c=40===t?41:t,u):n(t)};function u(n){return n===c?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),s(n))}function s(t){return t===c?(e.exit(o),u(c)):null===t?n(t):x(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),q(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),a(t))}function a(t){return t===c||null===t||x(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?l:a)}function l(t){return t===c||92===t?(e.consume(t),a):a(t)}}function K(e,t){let n;return function r(i){return x(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):y(i)?q(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function X(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ee={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return Y.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=X(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),c):n(t)}function c(t){return k(t)?K(e,u)(t):u(t)}function u(t){return J(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(te,a,a)(t)}function a(t){return y(t)?q(e,l,"whitespace")(t):l(t)}function l(o){return null===o||x(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},te={tokenize:function(e,t,n){return function(t){return k(t)?K(e,r)(t):n(t)};function r(t){return $(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return y(t)?q(e,o,"whitespace")(t):o(t)}function o(e){return null===e||x(e)?t(e):n(e)}},partial:!0},ne={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return x(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},re={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||k(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),c(n)):null===n||x(n)?(e.exit("atxHeading"),t(n)):y(n)?q(e,o,"whitespace")(n):(e.enter("atxHeadingText"),u(n))}function c(t){return 35===t?(e.consume(t),c):(e.exit("atxHeadingSequence"),o(t))}function u(t){return null===t||35===t||k(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),u)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[o][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},c(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},ie=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],oe=["pre","script","style","textarea"],ce={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,c,u,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),a}(t)};function a(u){return 33===u?(e.consume(u),l):47===u?(e.consume(u),o=!0,g):63===u?(e.consume(u),i=3,r.interrupt?t:O):f(u)?(e.consume(u),c=String.fromCharCode(u),m):n(u)}function l(o){return 45===o?(e.consume(o),i=2,d):91===o?(e.consume(o),i=5,u=0,h):f(o)?(e.consume(o),i=4,r.interrupt?t:O):n(o)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:O):n(i)}function h(i){return i==="CDATA[".charCodeAt(u++)?(e.consume(i),6===u?r.interrupt?t:C:h):n(i)}function g(t){return f(t)?(e.consume(t),c=String.fromCharCode(t),m):n(t)}function m(u){if(null===u||47===u||62===u||k(u)){const s=47===u,a=c.toLowerCase();return s||o||!oe.includes(a)?ie.includes(c.toLowerCase())?(i=6,s?(e.consume(u),b):r.interrupt?t(u):C(u)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(u):o?v(u):w(u)):(i=1,r.interrupt?t(u):C(u))}return 45===u||p(u)?(e.consume(u),c+=String.fromCharCode(u),m):n(u)}function b(i){return 62===i?(e.consume(i),r.interrupt?t:C):n(i)}function v(t){return y(t)?(e.consume(t),v):T(t)}function w(t){return 47===t?(e.consume(t),T):58===t||95===t||f(t)?(e.consume(t),S):y(t)?(e.consume(t),w):T(t)}function S(t){return 45===t||46===t||58===t||95===t||p(t)?(e.consume(t),S):q(t)}function q(t){return 61===t?(e.consume(t),E):y(t)?(e.consume(t),q):w(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,F):y(t)?(e.consume(t),E):A(t)}function F(t){return t===s?(e.consume(t),s=null,D):null===t||x(t)?n(t):(e.consume(t),F)}function A(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||k(t)?q(t):(e.consume(t),A)}function D(e){return 47===e||62===e||y(e)?w(e):n(e)}function T(t){return 62===t?(e.consume(t),L):n(t)}function L(t){return null===t||x(t)?C(t):y(t)?(e.consume(t),L):n(t)}function C(t){return 45===t&&2===i?(e.consume(t),R):60===t&&1===i?(e.consume(t),N):62===t&&4===i?(e.consume(t),_):63===t&&3===i?(e.consume(t),O):93===t&&5===i?(e.consume(t),V):!x(t)||6!==i&&7!==i?null===t||x(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(ue,H,I)(t))}function I(t){return e.check(se,B,H)(t)}function B(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z}function z(t){return null===t||x(t)?I(t):(e.enter("htmlFlowData"),C(t))}function R(t){return 45===t?(e.consume(t),O):C(t)}function N(t){return 47===t?(e.consume(t),c="",P):C(t)}function P(t){if(62===t){const n=c.toLowerCase();return oe.includes(n)?(e.consume(t),_):C(t)}return f(t)&&c.length<8?(e.consume(t),c+=String.fromCharCode(t),P):C(t)}function V(t){return 93===t?(e.consume(t),O):C(t)}function O(t){return 62===t?(e.consume(t),_):45===t&&2===i?(e.consume(t),O):C(t)}function _(t){return null===t||x(t)?(e.exit("htmlFlowData"),H(t)):(e.consume(t),_)}function H(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},ue={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(B,t,n)}},partial:!0},se={tokenize:function(e,t,n){const r=this;return function(t){return x(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},ae={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,c;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),u};function u(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),F):63===t?(e.consume(t),S):f(t)?(e.consume(t),T):n(t)}function s(t){return 45===t?(e.consume(t),a):91===t?(e.consume(t),o=0,g):f(t)?(e.consume(t),w):n(t)}function a(t){return 45===t?(e.consume(t),h):n(t)}function l(t){return null===t?n(t):45===t?(e.consume(t),d):x(t)?(c=l,V(t)):(e.consume(t),l)}function d(t){return 45===t?(e.consume(t),h):l(t)}function h(e){return 62===e?P(e):45===e?d(e):l(e)}function g(t){return t==="CDATA[".charCodeAt(o++)?(e.consume(t),6===o?m:g):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),b):x(t)?(c=m,V(t)):(e.consume(t),m)}function b(t){return 93===t?(e.consume(t),v):m(t)}function v(t){return 62===t?P(t):93===t?(e.consume(t),v):m(t)}function w(t){return null===t||62===t?P(t):x(t)?(c=w,V(t)):(e.consume(t),w)}function S(t){return null===t?n(t):63===t?(e.consume(t),E):x(t)?(c=S,V(t)):(e.consume(t),S)}function E(e){return 62===e?P(e):S(e)}function F(t){return f(t)?(e.consume(t),A):n(t)}function A(t){return 45===t||p(t)?(e.consume(t),A):D(t)}function D(t){return x(t)?(c=D,V(t)):y(t)?(e.consume(t),D):P(t)}function T(t){return 45===t||p(t)?(e.consume(t),T):47===t||62===t||k(t)?L(t):n(t)}function L(t){return 47===t?(e.consume(t),P):58===t||95===t||f(t)?(e.consume(t),C):x(t)?(c=L,V(t)):y(t)?(e.consume(t),L):P(t)}function C(t){return 45===t||46===t||58===t||95===t||p(t)?(e.consume(t),C):I(t)}function I(t){return 61===t?(e.consume(t),B):x(t)?(c=I,V(t)):y(t)?(e.consume(t),I):L(t)}function B(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,z):x(t)?(c=B,V(t)):y(t)?(e.consume(t),B):(e.consume(t),R)}function z(t){return t===i?(e.consume(t),i=void 0,N):null===t?n(t):x(t)?(c=z,V(t)):(e.consume(t),z)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||k(t)?L(t):(e.consume(t),R)}function N(e){return 47===e||62===e||k(e)?L(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function V(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return y(t)?q(e,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):_(t)}function _(t){return e.enter("htmlTextData"),c(t)}}},le={name:"labelEnd",tokenize:function(e,t,n){const r=this;let i,o,c=r.events.length;for(;c--;)if(("labelImage"===r.events[c][1].type||"labelLink"===r.events[c][1].type)&&!r.events[c][1]._balanced){i=r.events[c][1];break}return function(t){return i?i._inactive?l(t):(o=r.parser.defined.includes(X(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),u):n(t)};function u(t){return 40===t?e.attempt(fe,a,o?a:l)(t):91===t?e.attempt(pe,a,o?s:l)(t):o?a(t):l(t)}function s(t){return e.attempt(de,a,l)(t)}function a(e){return t(e)}function l(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=s);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},f={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},p={type:"labelText",start:Object.assign({},e[r+a+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",l,t],["enter",f,t]],o=u(o,e.slice(r+1,r+a+3)),o=u(o,[["enter",p,t]]),o=u(o,T(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=u(o,[["exit",p,t],e[i-2],e[i-1],["exit",f,t]]),o=u(o,e.slice(i+1)),o=u(o,[["exit",l,t]]),c(e,r,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},fe={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return k(t)?K(e,i)(t):i(t)}function i(t){return 41===t?a(t):J(e,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return k(t)?K(e,u)(t):a(t)}function c(e){return n(e)}function u(t){return 34===t||39===t||40===t?$(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):a(t)}function s(t){return k(t)?K(e,a)(t):a(t)}function a(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},pe={tokenize:function(e,t,n){const r=this;return function(t){return Y.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(X(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},de={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},he={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:le.resolveAll},ge={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:le.resolveAll},me={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),q(e,t,"linePrefix")}}},be={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),c(o)):i>=3&&(null===o||x(o))?(e.exit("thematicBreak"),t(o)):n(o)}function c(t){return t===r?(e.consume(t),i++,c):(e.exit("thematicBreakSequence"),y(t)?q(e,o,"whitespace")(t):o(t))}}},xe={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,c=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:g(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(be,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(t)}return n(t)};function u(t){return g(t)&&++c<10?(e.consume(t),u):(!r.interrupt||c<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(B,r.interrupt?n:a,e.attempt(ke,f,l))}function a(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function l(t){return y(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(B,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,q(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!y(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ye,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,q(e,e.attempt(xe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},ke={tokenize:function(e,t,n){const r=this;return q(e,function(e){const i=r.events[r.events.length-1];return!y(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},ye={tokenize:function(e,t,n){const r=this;return q(e,function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},ve={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let c,u=r.events.length;for(;u--;)if("lineEnding"!==r.events[u][1].type&&"linePrefix"!==r.events[u][1].type&&"content"!==r.events[u][1].type){c="paragraph"===r.events[u][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!c?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t))};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),y(t)?q(e,c,"lineSuffix")(t):c(t))}function c(r){return null===r||x(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const c={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",c,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=c,e.push(["exit",c,t]),e}},we={tokenize:function(e){const t=this,n=e.attempt(B,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,q(e,e.attempt(this.parser.constructs.flow,r,e.attempt(W,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},Se={resolveAll:Ae()},qe=Fe("string"),Ee=Fe("text");function Fe(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,c);return o;function o(e){return s(e)?i(e):c(e)}function c(e){if(null!==e)return t.enter("data"),t.consume(e),u;t.consume(e)}function u(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),u)}function s(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:Ae("text"===e?De:void 0)}}function Ae(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function De(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,c=i.length,u=-1,s=0;for(;c--;){const e=i[c];if("string"==typeof e){for(u=e.length;32===e.charCodeAt(u-1);)s++,u--;if(u)break;u=-1}else if(-2===e)o=!0,s++;else if(-1!==e){c++;break}}if(s){const i={type:n===e.length||o||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+c,_bufferIndex:c?u:r.start._bufferIndex+u},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function Te(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let s=[],a=[];const l={consume:function(e){x(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=h(),f.events.push(["enter",n,f]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=h(),f.events.push(["exit",t,f]),t},attempt:b(function(e,t){k(e,t.from)}),check:b(m),interrupt:b(m,{interrupt:!0})},f={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let c;if("string"==typeof o)c=o;else switch(o){case-5:c="\r";break;case-4:c="\n";break;case-3:c="\r\n";break;case-2:c=t?" ":"\t";break;case-1:if(!t&&i)continue;c=" ";break;default:c=String.fromCharCode(o)}i=-2===o,r.push(c)}return r.join("")}(d(e),t)},now:h,defineSkip:function(e){i[e.line]=e.column,y()},write:function(e){return s=u(s,e),function(){let e;for(;r._index<s.length;){const t=s[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}(),null!==s[s.length-1]?[]:(k(t,0),f.events=T(o,f.events,f),f.events)}};let p=t.tokenize.call(f,l);return t.resolveAll&&o.push(t),f;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let c;if(n===i)c=[e[n].slice(r,o)];else{if(c=e.slice(n,i),r>-1){const e=c[0];"string"==typeof e?c[0]=e.slice(r):c.shift()}o>0&&c.push(e[i].slice(0,o))}return c}(s,e)}function h(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function g(e){p=p(e)}function m(e,t){t.restore()}function b(e,t){return function(n,i,o){let c,u,s,p;return Array.isArray(n)?d(n):"tokenize"in n?d([n]):function(e){return function(t){const n=null!==t&&e[t],r=null!==t&&e.null;return d([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function d(e){return c=e,u=0,0===e.length?o:g(e[u])}function g(e){return function(n){return p=function(){const e=h(),t=f.previous,n=f.currentConstruct,i=f.events.length,o=Array.from(a);return{restore:function(){r=e,f.previous=t,f.currentConstruct=n,f.events.length=i,a=o,y()},from:i}}(),s=e,e.partial||(f.currentConstruct=e),e.name&&f.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(f),t):f,l,m,b)(n)}}function m(t){return e(s,p),i}function b(e){return p.restore(),++u<c.length?g(c[u]):o}}}function k(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&c(f.events,t,f.events.length-t,e.resolve(f.events.slice(t),f)),e.resolveTo&&(f.events=e.resolveTo(f.events,f))}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const Le={42:xe,43:xe,45:xe,48:xe,49:xe,50:xe,51:xe,52:xe,53:xe,54:xe,55:xe,56:xe,57:xe,62:z},Ce={91:ee},Ie={[-2]:M,[-1]:M,32:M},Be={35:re,42:be,45:[ve,be],60:ce,61:ve,95:be,96:H,126:H},ze={38:O,92:R},Re={[-5]:me,[-4]:me,[-3]:me,33:he,38:O,42:L,60:[I,ae],91:ge,92:[ne,R],93:le,95:L,96:j},Ne={null:[L,Se]};var Pe=Object.freeze({__proto__:null,document:Le,contentInitial:Ce,flowInitial:Ie,flow:Be,string:ze,text:Re,insideSpan:Ne,attentionMarkers:{null:[42,95]},disable:{null:[]}});const Ve=/[\0\t\n\r]/g;function Oe(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}const _e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function He(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Oe(n.slice(t?2:1),t?16:10)}return V(n)||e}function Me(e){return e&&"object"==typeof e?"position"in e||"type"in e?je(e.position):"start"in e||"end"in e?je(e):"line"in e||"column"in e?Ue(e):"":""}function Ue(e){return Ge(e&&e.line)+":"+Ge(e&&e.column)}function je(e){return Ue(e&&e.start)+"-"+Ue(e&&e.end)}function Ge(e){return e&&"number"==typeof e?e:1}const Qe={}.hasOwnProperty,We=function(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(w),autolinkProtocol:h,autolinkEmail:h,atxHeading:s(k),blockQuote:s(function(){return{type:"blockquote",children:[]}}),characterEscape:h,characterReference:h,codeFenced:s(x),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(x,a),codeText:s(function(){return{type:"inlineCode",value:""}},a),codeTextData:h,data:h,codeFlowValue:h,definition:s(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:s(y),hardBreakTrailing:s(y),htmlFlow:s(v,a),htmlFlowData:h,htmlText:s(v,a),htmlTextData:h,image:s(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:s(w),listItem:s(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){u("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),c("expectingFirstListItemValue"))},listOrdered:s(S,function(){c("expectingFirstListItemValue",!0)}),listUnordered:s(S),paragraph:s(function(){return{type:"paragraph",children:[]}}),reference:function(){c("referenceType","collapsed")},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(k),strong:s(function(){return{type:"strong",children:[]}}),thematicBreak:s(function(){return{type:"thematicBreak"}})},exit:{atxHeading:f(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:f(),autolinkEmail:function(e){g.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){g.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:f(),characterEscapeValue:g,characterReferenceMarkerHexadecimal:b,characterReferenceMarkerNumeric:b,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=u("characterReferenceType");let r;n?(r=Oe(t,"characterReferenceMarkerNumeric"===n?10:16),c("characterReferenceType")):r=V(t);const i=this.stack.pop();i.value+=r,i.position.end=Ze(e.end)},codeFenced:f(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c("flowCodeInside")}),codeFencedFence:function(){u("flowCodeInside")||(this.buffer(),c("flowCodeInside",!0))},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:g,codeIndented:f(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:f(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:g,data:g,definition:f(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=X(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:f(),hardBreakEscape:f(m),hardBreakTrailing:f(m),htmlFlow:f(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:g,htmlText:f(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:g,image:f(function(){const e=this.stack[this.stack.length-1];if(u("inReference")){const t=u("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;c("referenceType")}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(c("inReference",!0),"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(_e,He)}(t),n.identifier=X(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(u("atHardBreak"))return n.children[n.children.length-1].position.end=Ze(e.end),void c("atHardBreak");!u("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(h.call(this,e),g.call(this,e))},link:f(function(){const e=this.stack[this.stack.length-1];if(u("inReference")){const t=u("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;c("referenceType")}),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=X(this.sliceSerialize(e)).toLowerCase(),c("referenceType","full")},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){c("inReference")},setextHeading:f(function(){c("setextHeadingSlurpLineEnding")}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){c("setextHeadingSlurpLineEnding",!0)},strong:f(),thematicBreak:f()}};Je(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let n={type:"root",children:[]};const r={stack:[n],tokenStack:[],config:t,enter:l,exit:p,buffer:a,resume:d,setData:c,getData:u},i=[];let s=-1;for(;++s<e.length;)"listOrdered"!==e[s][1].type&&"listUnordered"!==e[s][1].type||("enter"===e[s][0]?i.push(s):s=o(e,i.pop(),s));for(s=-1;++s<e.length;){const n=t[e[s][0]];Qe.call(n,e[s][1].type)&&n[e[s][1].type].call(Object.assign({sliceSerialize:e[s][2].sliceSerialize},r),e[s][1])}if(r.tokenStack.length>0){const e=r.tokenStack[r.tokenStack.length-1];(e[1]||$e).call(r,void 0,e[0])}for(n.position={start:Ze(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ze(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},s=-1;++s<t.transforms.length;)n=t.transforms[s](n)||n;return n};function o(e,t,n){let r,i,o,c,u=t-1,s=-1,a=!1;for(;++u<=n;){const t=e[u];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?s++:s--,c=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!r||c||s||o||(o=u),c=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(c=void 0),!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let c=u;for(i=void 0;c--;){const t=e[c];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",a=!0),t[1].type="lineEnding",i=c}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||u,0,["exit",r,t[2]]),u++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(u,0,["enter",r,t[2]]),u++,n++,o=void 0,c=!0)}}return e[t][1]._spread=a,n}function c(e,t){n[e]=t}function u(e){return n[e]}function s(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:Ze(t.start)},e}function f(e){return function(t){e&&e.call(this,t),p.call(this,t)}}function p(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Me({start:e.start,end:e.end})+"): it’s not open");return r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||$e).call(this,e,r[0])),n.position.end=Ze(e.end),n}function d(){return function(e){return i(e,"boolean"!=typeof r.includeImageAlt||r.includeImageAlt,"boolean"!=typeof r.includeHtml||r.includeHtml)}(this.stack.pop())}function h(e){const t=this.stack[this.stack.length-1];let n=t.children[t.children.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Ze(e.start)},t.children.push(n)),this.stack.push(n)}function g(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ze(e.end)}function m(){c("atHardBreak",!0)}function b(e){c("characterReferenceType",e.type)}function x(){return{type:"code",lang:null,meta:null,value:""}}function k(){return{type:"heading",depth:void 0,children:[]}}function y(){return{type:"break"}}function v(){return{type:"html",value:""}}function w(){return{type:"link",title:null,url:"",children:[]}}function S(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!G(e););return e}(function(e){const t=function(e){const t={};let n=-1;for(;++n<e.length;)a(t,e[n]);return t}([Pe,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:t,content:r(E),document:r(F),flow:r(we),string:r(qe),text:r(Ee)};return n;function r(e){return function(t){return Te(n,e,t)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,c){const u=[];let s,a,l,f,p;for(i=n+i.toString(o),l=0,n="",r&&(65279===i.charCodeAt(0)&&l++,r=void 0);l<i.length;){if(Ve.lastIndex=l,s=Ve.exec(i),f=s&&void 0!==s.index?s.index:i.length,p=i.charCodeAt(f),!s){n=i.slice(l);break}if(10===p&&l===f&&e)u.push(-3),e=void 0;else switch(e&&(u.push(-5),e=void 0),l<f&&(u.push(i.slice(l,f)),t+=f-l),p){case 0:u.push(65533),t++;break;case 9:for(a=4*Math.ceil(t/4),u.push(-2);t++<a;)u.push(-1);break;case 10:u.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return c&&(e&&u.push(-5),n&&u.push(n),u.push(null)),u}}()(e,t,!0))))};function Ze(e){return{line:e.line,column:e.column,offset:e.offset}}function Je(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Je(e,r):Ye(e,r)}}function Ye(e,t){let n;for(n in t)if(Qe.call(t,n))if("canContainEols"===n){const r=t[n];r&&e[n].push(...r)}else if("transforms"===n){const r=t[n];r&&e[n].push(...r)}else if("enter"===n||"exit"===n){const r=t[n];r&&Object.assign(e[n],r)}}function $e(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Me({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Me({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Me({start:t.start,end:t.end})+") is still open")}function Ke(e){const t=function(e){const t=e.replace(/\n{2,}/g,"\n");return n(t)}(e),{children:r}=We(t),i=[[]];let o=0;function c(e,t="normal"){"text"===e.type?e.value.split("\n").forEach((e,n)=>{0!==n&&(o++,i.push([])),e.split(" ").forEach(e=>{e&&i[o].push({content:e,type:t})})}):"strong"!==e.type&&"emphasis"!==e.type||e.children.forEach(t=>{c(t,e.type)})}return r.forEach(e=>{"paragraph"===e.type&&e.children.forEach(e=>{c(e)})}),i}function Xe(e,t){const n=function(e){return Intl.Segmenter?[...(new Intl.Segmenter).segment(e)].map(e=>e.segment):[...e]}(t.content);return et(e,[],n,t.type)}function et(e,t,n,r){if(0===n.length)return[{content:t.join(""),type:r},{content:"",type:r}];const[i,...o]=n,c=[...t,i];return e([{content:c.join(""),type:r}])?et(e,c,o,r):(0===t.length&&i&&(t.push(i),n.shift()),[{content:t.join(""),type:r},{content:n.join(""),type:r}])}function tt(e,t){if(e.some(({content:e})=>e.includes("\n")))throw new Error("splitLineToFitWidth does not support newlines in the line");return nt(e,t)}function nt(e,t,n=[],r=[]){if(0===e.length)return r.length>0&&n.push(r),n.length>0?n:[];let i="";" "===e[0].content&&(i=" ",e.shift());const o=e.shift()??{content:" ",type:"normal"},c=[...r];if(""!==i&&c.push({content:i,type:"normal"}),c.push(o),t(c))return nt(e,t,n,c);if(r.length>0)n.push(r),e.unshift(o);else if(o.content){const[r,i]=Xe(t,o);n.push([r]),i.content&&e.unshift(i)}return nt(e,t,n)}function rt(e,t,n){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*n-.1+"em").attr("dy",n+"em")}function it(e,t,n){const r=e.append("text"),i=rt(r,1,t);ct(i,n);const o=i.node().getComputedTextLength();return r.remove(),o}function ot(e,t,n){var r;const i=e.append("text"),o=rt(i,1,t);ct(o,[{content:n,type:"normal"}]);const c=null==(r=o.node())?void 0:r.getBoundingClientRect();return c&&i.remove(),c}function ct(e,t){e.text(""),t.forEach((t,n)=>{const r=e.append("tspan").attr("font-style","emphasis"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===n?r.text(t.content):r.text(" "+t.content)})}const ut=(n,r="",{style:i="",isTitle:o=!1,classes:c="",useHtmlLabels:u=!0,isNode:s=!0,width:a=200,addSvgBackground:l=!1}={})=>{if(e.info("createText",r,i,o,c,u,s,l),u){const e=function(e){const{children:t}=We(e);return t.map(function e(t){return"text"===t.type?t.value.replace(/\n/g,"<br/>"):"strong"===t.type?`<strong>${t.children.map(e).join("")}</strong>`:"emphasis"===t.type?`<em>${t.children.map(e).join("")}</em>`:"paragraph"===t.type?`<p>${t.children.map(e).join("")}</p>`:`Unsupported markdown: ${t.type}`}).join("")}(r),o=function(e,t,n,r,i=!1){const o=e.append("foreignObject"),c=o.append("xhtml:div"),u=t.label,s=t.isNode?"nodeLabel":"edgeLabel";var a,l;c.html(`\n <span class="${s} ${r}" `+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+u+"</span>"),a=c,(l=t.labelStyle)&&a.attr("style",l),c.style("display","table-cell"),c.style("white-space","nowrap"),c.style("max-width",n+"px"),c.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&c.attr("class","labelBkg");let f=c.node().getBoundingClientRect();return f.width===n&&(c.style("display","table"),c.style("white-space","break-spaces"),c.style("width",n+"px"),f=c.node().getBoundingClientRect()),o.style("width",f.width),o.style("height",f.height),o.node()}(n,{isNode:s,label:t(e).replace(/fa[blrs]?:fa-[\w-]+/g,e=>`<i class='${e.replace(":"," ")}'></i>`),labelStyle:i.replace("fill:","color:")},a,c,l);return o}{const e=function(e,t,n,r=!1){const i=t.append("g"),o=i.insert("rect").attr("class","background"),c=i.append("text").attr("y","-10.1");let u=0;for(const t of n){const n=t=>it(i,1.1,t)<=e,r=n(t)?[t]:tt(t,n);for(const e of r)ct(rt(c,u,1.1),e),u++}if(r){const e=c.node().getBBox(),t=2;return o.attr("x",-t).attr("y",-t).attr("width",e.width+2*t).attr("height",e.height+2*t),i.node()}return c.node()}(a,n,Ke(r),l);return e}};export{ot as c,ut as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as t,F as e,v as a,i as r,b as i,be as n,u as s,q as l}from"./index-0c25c9f2.js";import{s as d}from"./createText-2e5e7dd3-3d197991-1dc23da3.js";import{f as o}from"./line-8bf27c33-c9dee662.js";const h={extension:(t,e,a)=>{r.trace("Making markers for ",a),t.append("defs").append("marker").attr("id",a+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",a+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:(t,e,a)=>{t.append("defs").append("marker").attr("id",a+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",a+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:(t,e,a)=>{t.append("defs").append("marker").attr("id",a+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",a+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:(t,e,a)=>{t.append("defs").append("marker").attr("id",a+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",a+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:(t,e,a)=>{t.append("defs").append("marker").attr("id",a+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",a+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},point:(t,e,a)=>{t.append("marker").attr("id",a+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",a+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:(t,e,a)=>{t.append("marker").attr("id",a+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",a+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:(t,e,a)=>{t.append("marker").attr("id",a+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",a+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:(t,e,a)=>{t.append("defs").append("marker").attr("id",a+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}},c=(t,e,a,r)=>{e.forEach(e=>{h[e](t,a,r)})},y=(i,s,l,d)=>{let o=i||"";if("object"==typeof o&&(o=o[0]),t(e().flowchart.htmlLabels)){o=o.replace(/\\n|\n/g,"<br />"),r.debug("vertexText"+o);let t=function(t){const e=a(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),i=t.label,n=t.isNode?"nodeLabel":"edgeLabel";var s;return r.html('<span class="'+n+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+i+"</span>"),(s=t.labelStyle)&&r.attr("style",s),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}({isNode:d,label:n(o).replace(/fa[blrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`),labelStyle:s.replace("fill:","color:")});return t}{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",s.replace("color:","fill:"));let e=[];e="string"==typeof o?o.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(o)?o:[];for(const a of e){const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),l?e.setAttribute("class","title-row"):e.setAttribute("class","row"),e.textContent=a.trim(),t.appendChild(e)}return t}},p=async(r,i,l,o)=>{let h;const c=i.useHtmlLabels||t(e().flowchart.htmlLabels);h=l||"node default";const p=r.insert("g").attr("class",h).attr("id",i.domId||i.id),g=p.insert("g").attr("class","label").attr("style",i.labelStyle);let x;x=void 0===i.labelText?"":"string"==typeof i.labelText?i.labelText:i.labelText[0];const f=g.node();let u;u="markdown"===i.labelType?d(g,s(n(x),e()),{useHtmlLabels:c,width:i.width||e().flowchart.wrappingWidth,classes:"markdown-node-label"}):f.appendChild(y(s(n(x),e()),i.labelStyle,!1,o));let w=u.getBBox();const b=i.padding/2;if(t(e().flowchart.htmlLabels)){const t=u.children[0],r=a(u),i=t.getElementsByTagName("img");if(i){const t=""===x.replace(/<img[^>]*>/g,"").trim();await Promise.all([...i].map(a=>new Promise(r=>{function i(){if(a.style.display="flex",a.style.flexDirection="column",t){const t=e().fontSize?e().fontSize:window.getComputedStyle(document.body).fontSize,r=5,i=parseInt(t,10)*r+"px";a.style.minWidth=i,a.style.maxWidth=i}else a.style.width="100%";r(a)}setTimeout(()=>{a.complete&&i()}),a.addEventListener("error",i),a.addEventListener("load",i)})))}w=t.getBoundingClientRect(),r.attr("width",w.width),r.attr("height",w.height)}return c?g.attr("transform","translate("+-w.width/2+", "+-w.height/2+")"):g.attr("transform","translate(0, "+-w.height/2+")"),i.centerLabel&&g.attr("transform","translate("+-w.width/2+", "+-w.height/2+")"),g.insert("rect",":first-child"),{shapeSvg:p,bbox:w,halfPadding:b,label:g}},g=(t,e)=>{const a=e.node().getBBox();t.width=a.width,t.height=a.height};function x(t,e,a,r){return t.insert("polygon",":first-child").attr("points",r.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}function f(t,e,a,r){var i=t.x,n=t.y,s=i-r.x,l=n-r.y,d=Math.sqrt(e*e*l*l+a*a*s*s),o=Math.abs(e*a*s/d);r.x<i&&(o=-o);var h=Math.abs(e*a*l/d);return r.y<n&&(h=-h),{x:i+o,y:n+h}}function u(t,e,a,r){var i,n,s,l,d,o,h,c,y,p,g,x,f;if(i=e.y-t.y,s=t.x-e.x,d=e.x*t.y-t.x*e.y,y=i*a.x+s*a.y+d,p=i*r.x+s*r.y+d,!(0!==y&&0!==p&&w(y,p)||(n=r.y-a.y,l=a.x-r.x,o=r.x*a.y-a.x*r.y,h=n*t.x+l*t.y+o,c=n*e.x+l*e.y+o,0!==h&&0!==c&&w(h,c)||0==(g=i*l-n*s))))return x=Math.abs(g/2),{x:(f=s*o-l*d)<0?(f-x)/g:(f+x)/g,y:(f=n*d-i*o)<0?(f-x)/g:(f+x)/g}}function w(t,e){return t*e>0}const b=(t,e)=>{var a,r,i=t.x,n=t.y,s=e.x-i,l=e.y-n,d=t.width/2,o=t.height/2;return Math.abs(l)*d>Math.abs(s)*o?(l<0&&(o=-o),a=0===l?0:o*s/l,r=o):(s<0&&(d=-d),a=d,r=0===s?0:d*l/s),{x:i+a,y:n+r}},m=function(t,e,a){return f(t,e,e,a)},k=function(t,e,a){var r=t.x,i=t.y,n=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach(function(t){s=Math.min(s,t.x),l=Math.min(l,t.y)}):(s=Math.min(s,e.x),l=Math.min(l,e.y));for(var d=r-t.width/2-s,o=i-t.height/2-l,h=0;h<e.length;h++){var c=e[h],y=e[h<e.length-1?h+1:0],p=u(t,a,{x:d+c.x,y:o+c.y},{x:d+y.x,y:o+y.y});p&&n.push(p)}return n.length?(n.length>1&&n.sort(function(t,e){var r=t.x-a.x,i=t.y-a.y,n=Math.sqrt(r*r+i*i),s=e.x-a.x,l=e.y-a.y,d=Math.sqrt(s*s+l*l);return n<d?-1:n===d?0:1}),n[0]):t},v=b,L=t=>t?" "+t:"",S=(t,e)=>`${e||"node default"}${L(t.classes)} ${L(t.class)}`,M=async(t,e)=>{const{shapeSvg:a,bbox:i}=await p(t,e,S(e,void 0),!0),n=i.width+e.padding+(i.height+e.padding),s=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}];r.info("Question main (Circle)");const l=x(a,n,n,s);return l.attr("style",e.style),g(e,l),e.intersect=function(t){return r.warn("Intersect called"),k(e,s,t)},a};function T(t,e,a,i){const n=[],s=t=>{n.push(t,0)},l=t=>{n.push(0,t)};e.includes("t")?(r.debug("add top border"),s(a)):l(a),e.includes("r")?(r.debug("add right border"),s(i)):l(i),e.includes("b")?(r.debug("add bottom border"),s(a)):l(a),e.includes("l")?(r.debug("add left border"),s(i)):l(i),t.attr("stroke-dasharray",n.join(" "))}const B=(t,e,a)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let i=70,n=10;"LR"===a&&(i=10,n=70);const s=r.append("rect").attr("x",-1*i/2).attr("y",-1*n/2).attr("width",i).attr("height",n).attr("class","fork-join");return g(e,s),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return v(e,t)},r},_={rhombus:M,composite:async(t,e)=>{const{shapeSvg:a,bbox:i,halfPadding:n}=await p(t,e,"node "+e.classes,!0),s=a.insert("rect",":first-child"),l=e.positioned?e.width:i.width+e.padding,d=e.positioned?e.height:i.height+e.padding,o=e.positioned?-l/2:-i.width/2-n,h=e.positioned?-d/2:-i.height/2-n;if(s.attr("class","basic cluster composite label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",o).attr("y",h).attr("width",l).attr("height",d),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(T(s,e.props.borders,l,d),t.delete("borders")),t.forEach(t=>{r.warn(`Unknown node property ${t}`)})}return g(e,s),e.intersect=function(t){return v(e,t)},a},question:M,rect:async(t,e)=>{const{shapeSvg:a,bbox:i,halfPadding:n}=await p(t,e,"node "+e.classes+" "+e.class,!0),s=a.insert("rect",":first-child"),l=e.positioned?e.width:i.width+e.padding,d=e.positioned?e.height:i.height+e.padding,o=e.positioned?-l/2:-i.width/2-n,h=e.positioned?-d/2:-i.height/2-n;if(s.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",o).attr("y",h).attr("width",l).attr("height",d),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(T(s,e.props.borders,l,d),t.delete("borders")),t.forEach(t=>{r.warn(`Unknown node property ${t}`)})}return g(e,s),e.intersect=function(t){return v(e,t)},a},labelRect:async(t,e)=>{const{shapeSvg:a}=await p(t,e,"label",!0);r.trace("Classes = ",e.class);const i=a.insert("rect",":first-child");if(i.attr("width",0).attr("height",0),a.attr("class","label edgeLabel"),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(T(i,e.props.borders,0,0),t.delete("borders")),t.forEach(t=>{r.warn(`Unknown node property ${t}`)})}return g(e,i),e.intersect=function(t){return v(e,t)},a},rectWithTitle:(i,n)=>{let s;s=n.classes?"node "+n.classes:"node default";const l=i.insert("g").attr("class",s).attr("id",n.domId||n.id),d=l.insert("rect",":first-child"),o=l.insert("line"),h=l.insert("g").attr("class","label"),c=n.labelText.flat?n.labelText.flat():n.labelText;let p="";p="object"==typeof c?c[0]:c,r.info("Label text abc79",p,c,"object"==typeof c);const x=h.node().appendChild(y(p,n.labelStyle,!0,!0));let f={width:0,height:0};if(t(e().flowchart.htmlLabels)){const t=x.children[0],e=a(x);f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}r.info("Text 2",c);const u=c.slice(1,c.length);let w=x.getBBox();const b=h.node().appendChild(y(u.join?u.join("<br/>"):u,n.labelStyle,!0,!0));if(t(e().flowchart.htmlLabels)){const t=b.children[0],e=a(b);f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}const m=n.padding/2;return a(b).attr("transform","translate( "+(f.width>w.width?0:(w.width-f.width)/2)+", "+(w.height+m+5)+")"),a(x).attr("transform","translate( "+(f.width<w.width?0:-(w.width-f.width)/2)+", 0)"),f=h.node().getBBox(),h.attr("transform","translate("+-f.width/2+", "+(-f.height/2-m+3)+")"),d.attr("class","outer title-state").attr("x",-f.width/2-m).attr("y",-f.height/2-m).attr("width",f.width+n.padding).attr("height",f.height+n.padding),o.attr("class","divider").attr("x1",-f.width/2-m).attr("x2",f.width/2+m).attr("y1",-f.height/2-m+w.height+m).attr("y2",-f.height/2-m+w.height+m),g(n,d),n.intersect=function(t){return v(n,t)},l},choice:(t,e)=>{const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return a.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(t){return t.x+","+t.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return m(e,14,t)},a},circle:async(t,e)=>{const{shapeSvg:a,bbox:i,halfPadding:n}=await p(t,e,S(e,void 0),!0),s=a.insert("circle",":first-child");return s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+n).attr("width",i.width+e.padding).attr("height",i.height+e.padding),r.info("Circle main"),g(e,s),e.intersect=function(t){return r.info("Circle intersect",e,i.width/2+n,t),m(e,i.width/2+n,t)},a},doublecircle:async(t,e)=>{const{shapeSvg:a,bbox:i,halfPadding:n}=await p(t,e,S(e,void 0),!0),s=a.insert("g",":first-child"),l=s.insert("circle"),d=s.insert("circle");return s.attr("class",e.class),l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+n+5).attr("width",i.width+e.padding+10).attr("height",i.height+e.padding+10),d.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+n).attr("width",i.width+e.padding).attr("height",i.height+e.padding),r.info("DoubleCircle main"),g(e,l),e.intersect=function(t){return r.info("DoubleCircle intersect",e,i.width/2+n+5,t),m(e,i.width/2+n+5,t)},a},stadium:async(t,e)=>{const{shapeSvg:a,bbox:r}=await p(t,e,S(e,void 0),!0),i=r.height+e.padding,n=r.width+i/4+e.padding,s=a.insert("rect",":first-child").attr("style",e.style).attr("rx",i/2).attr("ry",i/2).attr("x",-n/2).attr("y",-i/2).attr("width",n).attr("height",i);return g(e,s),e.intersect=function(t){return v(e,t)},a},hexagon:async(t,e)=>{const{shapeSvg:a,bbox:r}=await p(t,e,S(e,void 0),!0),i=r.height+e.padding,n=i/4,s=r.width+2*n+e.padding,l=[{x:n,y:0},{x:s-n,y:0},{x:s,y:-i/2},{x:s-n,y:-i},{x:n,y:-i},{x:0,y:-i/2}],d=x(a,s,i,l);return d.attr("style",e.style),g(e,d),e.intersect=function(t){return k(e,l,t)},a},block_arrow:async(t,e)=>{const{shapeSvg:a,bbox:r}=await p(t,e,void 0,!0),i=r.height+2*e.padding,n=i/2,s=r.width+2*n+e.padding,l=((t,e,a)=>{const r=(t=>{const e=new Set;for(const a of t)switch(a){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(a)}return e})(t),i=e.height+2*a.padding,n=i/2,s=e.width+2*n+a.padding,l=a.padding/2;return r.has("right")&&r.has("left")&&r.has("up")&&r.has("down")?[{x:0,y:0},{x:n,y:0},{x:s/2,y:2*l},{x:s-n,y:0},{x:s,y:0},{x:s,y:-i/3},{x:s+2*l,y:-i/2},{x:s,y:-2*i/3},{x:s,y:-i},{x:s-n,y:-i},{x:s/2,y:-i-2*l},{x:n,y:-i},{x:0,y:-i},{x:0,y:-2*i/3},{x:-2*l,y:-i/2},{x:0,y:-i/3}]:r.has("right")&&r.has("left")&&r.has("up")?[{x:n,y:0},{x:s-n,y:0},{x:s,y:-i/2},{x:s-n,y:-i},{x:n,y:-i},{x:0,y:-i/2}]:r.has("right")&&r.has("left")&&r.has("down")?[{x:0,y:0},{x:n,y:-i},{x:s-n,y:-i},{x:s,y:0}]:r.has("right")&&r.has("up")&&r.has("down")?[{x:0,y:0},{x:s,y:-n},{x:s,y:-i+n},{x:0,y:-i}]:r.has("left")&&r.has("up")&&r.has("down")?[{x:s,y:0},{x:0,y:-n},{x:0,y:-i+n},{x:s,y:-i}]:r.has("right")&&r.has("left")?[{x:n,y:0},{x:n,y:-l},{x:s-n,y:-l},{x:s-n,y:0},{x:s,y:-i/2},{x:s-n,y:-i},{x:s-n,y:-i+l},{x:n,y:-i+l},{x:n,y:-i},{x:0,y:-i/2}]:r.has("up")&&r.has("down")?[{x:s/2,y:0},{x:0,y:-l},{x:n,y:-l},{x:n,y:-i+l},{x:0,y:-i+l},{x:s/2,y:-i},{x:s,y:-i+l},{x:s-n,y:-i+l},{x:s-n,y:-l},{x:s,y:-l}]:r.has("right")&&r.has("up")?[{x:0,y:0},{x:s,y:-n},{x:0,y:-i}]:r.has("right")&&r.has("down")?[{x:0,y:0},{x:s,y:0},{x:0,y:-i}]:r.has("left")&&r.has("up")?[{x:s,y:0},{x:0,y:-n},{x:s,y:-i}]:r.has("left")&&r.has("down")?[{x:s,y:0},{x:0,y:0},{x:s,y:-i}]:r.has("right")?[{x:n,y:-l},{x:n,y:-l},{x:s-n,y:-l},{x:s-n,y:0},{x:s,y:-i/2},{x:s-n,y:-i},{x:s-n,y:-i+l},{x:n,y:-i+l},{x:n,y:-i+l}]:r.has("left")?[{x:n,y:0},{x:n,y:-l},{x:s-n,y:-l},{x:s-n,y:-i+l},{x:n,y:-i+l},{x:n,y:-i},{x:0,y:-i/2}]:r.has("up")?[{x:n,y:-l},{x:n,y:-i+l},{x:0,y:-i+l},{x:s/2,y:-i},{x:s,y:-i+l},{x:s-n,y:-i+l},{x:s-n,y:-l}]:r.has("down")?[{x:s/2,y:0},{x:0,y:-l},{x:n,y:-l},{x:n,y:-i+l},{x:s-n,y:-i+l},{x:s-n,y:-l},{x:s,y:-l}]:[{x:0,y:0}]})(e.directions,r,e),d=x(a,s,i,l);return d.attr("style",e.style),g(e,d),e.intersect=function(t){return k(e,l,t)},a},rect_left_inv_arrow:async(t,e)=>{const{shapeSvg:a,bbox:r}=await p(t,e,S(e,void 0),!0),i=r.width+e.padding,n=r.height+e.padding,s=[{x:-n/2,y:0},{x:i,y:0},{x:i,y:-n},{x:-n/2,y:-n},{x:0,y:-n/2}];return x(a,i,n,s).attr("style",e.style),e.width=i+n,e.height=n,e.intersect=function(t){return k(e,s,t)},a},lean_right:async(t,e)=>{const{shapeSvg:a,bbox:r}=await p(t,e,S(e),!0),i=r.width+e.padding,n=r.height+e.padding,s=[{x:-2*n/6,y:0},{x:i-n/6,y:0},{x:i+2*n/6,y:-n},{x:n/6,y:-n}],l=x(a,i,n,s);return l.attr("style",e.style),g(e,l),e.intersect=function(t){return k(e,s,t)},a},lean_left:async(t,e)=>{const{shapeSvg:a,bbox:r}=await p(t,e,S(e,void 0),!0),i=r.width+e.padding,n=r.height+e.padding,s=[{x:2*n/6,y:0},{x:i+n/6,y:0},{x:i-2*n/6,y:-n},{x:-n/6,y:-n}],l=x(a,i,n,s);return l.attr("style",e.style),g(e,l),e.intersect=function(t){return k(e,s,t)},a},trapezoid:async(t,e)=>{const{shapeSvg:a,bbox:r}=await p(t,e,S(e,void 0),!0),i=r.width+e.padding,n=r.height+e.padding,s=[{x:-2*n/6,y:0},{x:i+2*n/6,y:0},{x:i-n/6,y:-n},{x:n/6,y:-n}],l=x(a,i,n,s);return l.attr("style",e.style),g(e,l),e.intersect=function(t){return k(e,s,t)},a},inv_trapezoid:async(t,e)=>{const{shapeSvg:a,bbox:r}=await p(t,e,S(e,void 0),!0),i=r.width+e.padding,n=r.height+e.padding,s=[{x:n/6,y:0},{x:i-n/6,y:0},{x:i+2*n/6,y:-n},{x:-2*n/6,y:-n}],l=x(a,i,n,s);return l.attr("style",e.style),g(e,l),e.intersect=function(t){return k(e,s,t)},a},rect_right_inv_arrow:async(t,e)=>{const{shapeSvg:a,bbox:r}=await p(t,e,S(e,void 0),!0),i=r.width+e.padding,n=r.height+e.padding,s=[{x:0,y:0},{x:i+n/2,y:0},{x:i,y:-n/2},{x:i+n/2,y:-n},{x:0,y:-n}],l=x(a,i,n,s);return l.attr("style",e.style),g(e,l),e.intersect=function(t){return k(e,s,t)},a},cylinder:async(t,e)=>{const{shapeSvg:a,bbox:r}=await p(t,e,S(e,void 0),!0),i=r.width+e.padding,n=i/2,s=n/(2.5+i/50),l=r.height+s+e.padding,d="M 0,"+s+" a "+n+","+s+" 0,0,0 "+i+" 0 a "+n+","+s+" 0,0,0 "+-i+" 0 l 0,"+l+" a "+n+","+s+" 0,0,0 "+i+" 0 l 0,"+-l,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",e.style).attr("d",d).attr("transform","translate("+-i/2+","+-(l/2+s)+")");return g(e,o),e.intersect=function(t){const a=v(e,t),r=a.x-e.x;if(0!=n&&(Math.abs(r)<e.width/2||Math.abs(r)==e.width/2&&Math.abs(a.y-e.y)>e.height/2-s)){let i=s*s*(1-r*r/(n*n));0!=i&&(i=Math.sqrt(i)),i=s-i,t.y-e.y>0&&(i=-i),a.y+=i}return a},a},start:(t,e)=>{const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=a.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),g(e,r),e.intersect=function(t){return m(e,7,t)},a},end:(t,e)=>{const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=a.insert("circle",":first-child"),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),r.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),g(e,i),e.intersect=function(t){return m(e,7,t)},a},note:async(t,a)=>{a.useHtmlLabels||e().flowchart.htmlLabels||(a.centerLabel=!0);const{shapeSvg:i,bbox:n,halfPadding:s}=await p(t,a,"node "+a.classes,!0);r.info("Classes = ",a.classes);const l=i.insert("rect",":first-child");return l.attr("rx",a.rx).attr("ry",a.ry).attr("x",-n.width/2-s).attr("y",-n.height/2-s).attr("width",n.width+a.padding).attr("height",n.height+a.padding),g(a,l),a.intersect=function(t){return v(a,t)},i},subroutine:async(t,e)=>{const{shapeSvg:a,bbox:r}=await p(t,e,S(e,void 0),!0),i=r.width+e.padding,n=r.height+e.padding,s=[{x:0,y:0},{x:i,y:0},{x:i,y:-n},{x:0,y:-n},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-n},{x:-8,y:-n},{x:-8,y:0}],l=x(a,i,n,s);return l.attr("style",e.style),g(e,l),e.intersect=function(t){return k(e,s,t)},a},fork:B,join:B,class_box:(r,i)=>{const n=i.padding/2;let s;s=i.classes?"node "+i.classes:"node default";const l=r.insert("g").attr("class",s).attr("id",i.domId||i.id),d=l.insert("rect",":first-child"),o=l.insert("line"),h=l.insert("line");let c=0,p=4;const x=l.insert("g").attr("class","label");let f=0;const u=i.classData.annotations&&i.classData.annotations[0],w=i.classData.annotations[0]?"«"+i.classData.annotations[0]+"»":"",b=x.node().appendChild(y(w,i.labelStyle,!0,!0));let m=b.getBBox();if(t(e().flowchart.htmlLabels)){const t=b.children[0],e=a(b);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}i.classData.annotations[0]&&(p+=m.height+4,c+=m.width);let k=i.classData.label;void 0!==i.classData.type&&""!==i.classData.type&&(e().flowchart.htmlLabels?k+="<"+i.classData.type+">":k+="<"+i.classData.type+">");const L=x.node().appendChild(y(k,i.labelStyle,!0,!0));a(L).attr("class","classTitle");let S=L.getBBox();if(t(e().flowchart.htmlLabels)){const t=L.children[0],e=a(L);S=t.getBoundingClientRect(),e.attr("width",S.width),e.attr("height",S.height)}p+=S.height+4,S.width>c&&(c=S.width);const M=[];i.classData.members.forEach(r=>{const n=r.getDisplayDetails();let s=n.displayText;e().flowchart.htmlLabels&&(s=s.replace(/</g,"<").replace(/>/g,">"));const l=x.node().appendChild(y(s,n.cssStyle?n.cssStyle:i.labelStyle,!0,!0));let d=l.getBBox();if(t(e().flowchart.htmlLabels)){const t=l.children[0],e=a(l);d=t.getBoundingClientRect(),e.attr("width",d.width),e.attr("height",d.height)}d.width>c&&(c=d.width),p+=d.height+4,M.push(l)}),p+=8;const T=[];if(i.classData.methods.forEach(r=>{const n=r.getDisplayDetails();let s=n.displayText;e().flowchart.htmlLabels&&(s=s.replace(/</g,"<").replace(/>/g,">"));const l=x.node().appendChild(y(s,n.cssStyle?n.cssStyle:i.labelStyle,!0,!0));let d=l.getBBox();if(t(e().flowchart.htmlLabels)){const t=l.children[0],e=a(l);d=t.getBoundingClientRect(),e.attr("width",d.width),e.attr("height",d.height)}d.width>c&&(c=d.width),p+=d.height+4,T.push(l)}),p+=8,u){let t=(c-m.width)/2;a(b).attr("transform","translate( "+(-1*c/2+t)+", "+-1*p/2+")"),f=m.height+4}let B=(c-S.width)/2;return a(L).attr("transform","translate( "+(-1*c/2+B)+", "+(-1*p/2+f)+")"),f+=S.height+4,o.attr("class","divider").attr("x1",-c/2-n).attr("x2",c/2+n).attr("y1",-p/2-n+8+f).attr("y2",-p/2-n+8+f),f+=8,M.forEach(t=>{a(t).attr("transform","translate( "+-c/2+", "+(-1*p/2+f+4)+")");const e=null==t?void 0:t.getBBox();f+=((null==e?void 0:e.height)??0)+4}),f+=8,h.attr("class","divider").attr("x1",-c/2-n).attr("x2",c/2+n).attr("y1",-p/2-n+8+f).attr("y2",-p/2-n+8+f),f+=8,T.forEach(t=>{a(t).attr("transform","translate( "+-c/2+", "+(-1*p/2+f)+")");const e=null==t?void 0:t.getBBox();f+=((null==e?void 0:e.height)??0)+4}),d.attr("style",i.style).attr("class","outer title-state").attr("x",-c/2-n).attr("y",-p/2-n).attr("width",c+i.padding).attr("height",p+i.padding),g(i,d),i.intersect=function(t){return v(i,t)},l}};let C={};const E=async(t,a,r)=>{let i,n;if(a.link){let s;"sandbox"===e().securityLevel?s="_top":a.linkTarget&&(s=a.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",a.link).attr("target",s),n=await _[a.shape](i,a,r)}else n=await _[a.shape](t,a,r),i=n;return a.tooltip&&n.attr("title",a.tooltip),a.class&&n.attr("class","node default "+a.class),i.attr("data-node","true"),i.attr("data-id",a.id),C[a.id]=i,a.haveCallback&&C[a.id].attr("class",C[a.id].attr("class")+" clickable"),i},$=(t,e)=>{C[e.id]=t},P=()=>{C={}},R=t=>{const e=C[t.id];r.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const a=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+a-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),a},Y=({flowchart:t})=>{var e,a;const r=(null==(e=null==t?void 0:t.subGraphTitleMargin)?void 0:e.top)??0,i=(null==(a=null==t?void 0:t.subGraphTitleMargin)?void 0:a.bottom)??0;return{subGraphTitleTopMargin:r,subGraphTitleBottomMargin:i,subGraphTitleTotalMargin:r+i}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function W(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=X(t),e=X(e);const[a,r]=[t.x,t.y],[i,n]=[e.x,e.y],s=i-a,l=n-r;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}const X=t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,j=t=>({x:function(e,a,r){let i=0;if(0===a&&Object.hasOwn(O,t.arrowTypeStart)){const{angle:e,deltaX:a}=W(r[0],r[1]);i=O[t.arrowTypeStart]*Math.cos(e)*(a>=0?1:-1)}else if(a===r.length-1&&Object.hasOwn(O,t.arrowTypeEnd)){const{angle:e,deltaX:a}=W(r[r.length-1],r[r.length-2]);i=O[t.arrowTypeEnd]*Math.cos(e)*(a>=0?1:-1)}return X(e).x+i},y:function(e,a,r){let i=0;if(0===a&&Object.hasOwn(O,t.arrowTypeStart)){const{angle:e,deltaY:a}=W(r[0],r[1]);i=O[t.arrowTypeStart]*Math.abs(Math.sin(e))*(a>=0?1:-1)}else if(a===r.length-1&&Object.hasOwn(O,t.arrowTypeEnd)){const{angle:e,deltaY:a}=W(r[r.length-1],r[r.length-2]);i=O[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(a>=0?1:-1)}return X(e).y+i}}),H=(t,e,a,r,i)=>{e.arrowTypeStart&&D(t,"start",e.arrowTypeStart,a,r,i),e.arrowTypeEnd&&D(t,"end",e.arrowTypeEnd,a,r,i)},I={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},D=(t,e,a,i,n,s)=>{const l=I[a];if(!l)return void r.warn(`Unknown arrow type: ${a}`);const d="start"===e?"Start":"End";t.attr(`marker-${e}`,`url(${i}#${n}_${s}-${l}${d})`)};let N={},U={};const A=()=>{N={},U={}},Z=(r,i)=>{const n=t(e().flowchart.htmlLabels),s="markdown"===i.labelType?d(r,i.label,{style:i.labelStyle,useHtmlLabels:n,addSvgBackground:!0}):y(i.label,i.labelStyle),l=r.insert("g").attr("class","edgeLabel"),o=l.insert("g").attr("class","label");o.node().appendChild(s);let h,c=s.getBBox();if(n){const t=s.children[0],e=a(s);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}if(o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),N[i.id]=l,i.width=c.width,i.height=c.height,i.startLabelLeft){const t=y(i.startLabelLeft,i.labelStyle),e=r.insert("g").attr("class","edgeTerminals"),a=e.insert("g").attr("class","inner");h=a.node().appendChild(t);const n=t.getBBox();a.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),U[i.id]||(U[i.id]={}),U[i.id].startLeft=e,q(h,i.startLabelLeft)}if(i.startLabelRight){const t=y(i.startLabelRight,i.labelStyle),e=r.insert("g").attr("class","edgeTerminals"),a=e.insert("g").attr("class","inner");h=e.node().appendChild(t),a.node().appendChild(t);const n=t.getBBox();a.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),U[i.id]||(U[i.id]={}),U[i.id].startRight=e,q(h,i.startLabelRight)}if(i.endLabelLeft){const t=y(i.endLabelLeft,i.labelStyle),e=r.insert("g").attr("class","edgeTerminals"),a=e.insert("g").attr("class","inner");h=a.node().appendChild(t);const n=t.getBBox();a.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),e.node().appendChild(t),U[i.id]||(U[i.id]={}),U[i.id].endLeft=e,q(h,i.endLabelLeft)}if(i.endLabelRight){const t=y(i.endLabelRight,i.labelStyle),e=r.insert("g").attr("class","edgeTerminals"),a=e.insert("g").attr("class","inner");h=a.node().appendChild(t);const n=t.getBBox();a.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),e.node().appendChild(t),U[i.id]||(U[i.id]={}),U[i.id].endRight=e,q(h,i.endLabelRight)}return s};function q(t,a){e().flowchart.htmlLabels&&t&&(t.style.width=9*a.length+"px",t.style.height="12px")}const z=(t,a)=>{r.debug("Moving label abc88 ",t.id,t.label,N[t.id],a);let n=a.updatedPath?a.updatedPath:a.originalPath;const s=e(),{subGraphTitleTotalMargin:l}=Y(s);if(t.label){const e=N[t.id];let s=t.x,d=t.y;if(n){const e=i.calcLabelPosition(n);r.debug("Moving label "+t.label+" from (",s,",",d,") to (",e.x,",",e.y,") abc88"),a.updatedPath&&(s=e.x,d=e.y)}e.attr("transform",`translate(${s}, ${d+l/2})`)}if(t.startLabelLeft){const e=U[t.id].startLeft;let a=t.x,r=t.y;if(n){const e=i.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",n);a=e.x,r=e.y}e.attr("transform",`translate(${a}, ${r})`)}if(t.startLabelRight){const e=U[t.id].startRight;let a=t.x,r=t.y;if(n){const e=i.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",n);a=e.x,r=e.y}e.attr("transform",`translate(${a}, ${r})`)}if(t.endLabelLeft){const e=U[t.id].endLeft;let a=t.x,r=t.y;if(n){const e=i.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",n);a=e.x,r=e.y}e.attr("transform",`translate(${a}, ${r})`)}if(t.endLabelRight){const e=U[t.id].endRight;let a=t.x,r=t.y;if(n){const e=i.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",n);a=e.x,r=e.y}e.attr("transform",`translate(${a}, ${r})`)}},G=(t,e)=>{r.debug("abc88 cutPathAtIntersect",t,e);let a=[],i=t[0],n=!1;return t.forEach(t=>{if(((t,e)=>{const a=t.x,r=t.y,i=Math.abs(e.x-a),n=Math.abs(e.y-r),s=t.width/2,l=t.height/2;return i>=s||n>=l})(e,t)||n)i=t,n||a.push(t);else{const s=((t,e,a)=>{r.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(a)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x,n=t.y,s=Math.abs(i-a.x),l=t.width/2;let d=a.x<e.x?l-s:l+s;const o=t.height/2,h=Math.abs(e.y-a.y),c=Math.abs(e.x-a.x);if(Math.abs(n-e.y)*l>Math.abs(i-e.x)*o){let t=a.y<e.y?e.y-o-n:n-o-e.y;d=c*t/h;const i={x:a.x<e.x?a.x+d:a.x-c+d,y:a.y<e.y?a.y+h-t:a.y-h+t};return 0===d&&(i.x=e.x,i.y=e.y),0===c&&(i.x=e.x),0===h&&(i.y=e.y),r.debug(`abc89 topp/bott calc, Q ${h}, q ${t}, R ${c}, r ${d}`,i),i}{d=a.x<e.x?e.x-l-i:i-l-e.x;let t=h*d/c,n=a.x<e.x?a.x+c-d:a.x-c+d,s=a.y<e.y?a.y+t:a.y-t;return r.debug(`sides calc abc89, Q ${h}, q ${t}, R ${c}, r ${d}`,{_x:n,_y:s}),0===d&&(n=e.x,s=e.y),0===c&&(n=e.x),0===h&&(s=e.y),{x:n,y:s}}})(e,i,t);let l=!1;a.forEach(t=>{l=l||t.x===s.x&&t.y===s.y}),a.some(t=>t.x===s.x&&t.y===s.y)||a.push(s),n=!0}}),a},V=function(t,a,i,n,s,d,h){let c=i.points;r.debug("abc88 InsertEdge: edge=",i,"e=",a);let y=!1;const p=d.node(a.v);var g=d.node(a.w);(null==g?void 0:g.intersect)&&(null==p?void 0:p.intersect)&&(c=c.slice(1,i.points.length-1),c.unshift(p.intersect(c[0])),c.push(g.intersect(c[c.length-1]))),i.toCluster&&(r.debug("to cluster abc88",n[i.toCluster]),c=G(i.points,n[i.toCluster].node),y=!0),i.fromCluster&&(r.debug("from cluster abc88",n[i.fromCluster]),c=G(c.reverse(),n[i.fromCluster].node).reverse(),y=!0);const x=c.filter(t=>!Number.isNaN(t.y));let f=l;!i.curve||"graph"!==s&&"flowchart"!==s||(f=i.curve);const{x:u,y:w}=j(i),b=o().x(u).y(w).curve(f);let m;switch(i.thickness){case"normal":m="edge-thickness-normal";break;case"thick":case"invisible":m="edge-thickness-thick";break;default:m=""}switch(i.pattern){case"solid":m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}const k=t.append("path").attr("d",b(x)).attr("id",i.id).attr("class"," "+m+(i.classes?" "+i.classes:"")).attr("style",i.style);let v="";(e().flowchart.arrowMarkerAbsolute||e().state.arrowMarkerAbsolute)&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replace(/\(/g,"\\("),v=v.replace(/\)/g,"\\)")),H(k,i,v,h,s);let L={};return y&&(L.updatedPath=c),L.originalPath=i.points,L};export{P as $,Z as A,E as C,$ as E,V as G,R as P,Y as R,A as U,j as W,H as X,b,c,g,p,z as q,y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as t,i as e,v as r,q as i,b as a,E as n,r as s,A as o,M as c,N as l,R as h,D as d,P as y,s as u}from"./index-0c25c9f2.js";import{N as p}from"./graph-a2efb7be-713af9a6.js";import{V as _}from"./layout-f41a9481-b65a914c.js";import{f}from"./line-8bf27c33-c9dee662.js";import"react";import"react-dom";import"stream";import"./array-75b204b6-7055adac.js";import"./path-5bb65086-3ae6d6fa.js";var m=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const E=[];for(let t=0;t<256;++t)E.push((t+256).toString(16).slice(1));function g(t,e,r,i){switch(t){case 0:return e&r^~e&i;case 1:case 3:return e^r^i;case 2:return e&r^e&i^r&i}}function O(t,e){return t<<e|t>>>32-e}var b=function(){function t(t,e,r,i){var a;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}(t)),"string"==typeof e&&(e=function(t){if(!function(t){return"string"==typeof t&&m.test(t)}(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=255&e,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=255&e,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=255&e,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=255&e,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=255&e,r}(e)),16!==(null===(a=e)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let n=new Uint8Array(16+t.length);if(n.set(e),n.set(t,e.length),n=function(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){const e=unescape(encodeURIComponent(t));t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const i=t.length/4+2,a=Math.ceil(i/16),n=new Array(a);for(let e=0;e<a;++e){const r=new Uint32Array(16);for(let i=0;i<16;++i)r[i]=t[64*e+4*i]<<24|t[64*e+4*i+1]<<16|t[64*e+4*i+2]<<8|t[64*e+4*i+3];n[e]=r}n[a-1][14]=8*(t.length-1)/Math.pow(2,32),n[a-1][14]=Math.floor(n[a-1][14]),n[a-1][15]=8*(t.length-1)&4294967295;for(let t=0;t<a;++t){const i=new Uint32Array(80);for(let e=0;e<16;++e)i[e]=n[t][e];for(let t=16;t<80;++t)i[t]=O(i[t-3]^i[t-8]^i[t-14]^i[t-16],1);let a=r[0],s=r[1],o=r[2],c=r[3],l=r[4];for(let t=0;t<80;++t){const r=Math.floor(t/20),n=O(a,5)+g(r,s,o,c)+l+e[r]+i[t]>>>0;l=c,c=o,o=O(s,30)>>>0,s=a,a=n}r[0]=r[0]+a>>>0,r[1]=r[1]+s>>>0,r[2]=r[2]+o>>>0,r[3]=r[3]+c>>>0,r[4]=r[4]+l>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}(n),n[6]=15&n[6]|80,n[8]=63&n[8]|128,r){i=i||0;for(let t=0;t<16;++t)r[i+t]=n[t];return r}return function(t,e=0){return E[t[e+0]]+E[t[e+1]]+E[t[e+2]]+E[t[e+3]]+"-"+E[t[e+4]]+E[t[e+5]]+"-"+E[t[e+6]]+E[t[e+7]]+"-"+E[t[e+8]]+E[t[e+9]]+"-"+E[t[e+10]]+E[t[e+11]]+E[t[e+12]]+E[t[e+13]]+E[t[e+14]]+E[t[e+15]]}(n)}try{t.name="v5"}catch(t){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}(),k=function(){var t=function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},e=[6,8,10,20,22,24,26,27,28],r=[1,10],i=[1,11],a=[1,12],n=[1,13],s=[1,14],o=[1,15],c=[1,21],l=[1,22],h=[1,23],d=[1,24],y=[1,25],u=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],p=[1,34],_=[27,28,46,47],f=[41,42,43,44,45],m=[17,34],E=[1,54],g=[1,53],O=[17,34,36,38],b={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(t,e,r,i,a,n,s){var o=n.length-1;switch(a){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:case 19:case 43:case 27:case 28:case 31:this.$=n[o];break;case 8:i.addEntity(n[o-4]),i.addEntity(n[o-2]),i.addRelationship(n[o-4],n[o],n[o-2],n[o-3]);break;case 9:i.addEntity(n[o-3]),i.addAttributes(n[o-3],n[o-1]);break;case 10:i.addEntity(n[o-2]);break;case 11:i.addEntity(n[o]);break;case 12:i.addEntity(n[o-6],n[o-4]),i.addAttributes(n[o-6],n[o-1]);break;case 13:i.addEntity(n[o-5],n[o-3]);break;case 14:i.addEntity(n[o-3],n[o-1]);break;case 15:case 16:this.$=n[o].trim(),i.setAccTitle(this.$);break;case 17:case 18:this.$=n[o].trim(),i.setAccDescription(this.$);break;case 20:case 41:case 42:case 32:this.$=n[o].replace(/"/g,"");break;case 21:case 29:this.$=[n[o]];break;case 22:n[o].push(n[o-1]),this.$=n[o];break;case 23:this.$={attributeType:n[o-1],attributeName:n[o]};break;case 24:this.$={attributeType:n[o-2],attributeName:n[o-1],attributeKeyTypeList:n[o]};break;case 25:this.$={attributeType:n[o-2],attributeName:n[o-1],attributeComment:n[o]};break;case 26:this.$={attributeType:n[o-3],attributeName:n[o-2],attributeKeyTypeList:n[o-1],attributeComment:n[o]};break;case 30:n[o-2].push(n[o]),this.$=n[o-2];break;case 33:this.$={cardA:n[o],relType:n[o-1],cardB:n[o-2]};break;case 34:this.$=i.Cardinality.ZERO_OR_ONE;break;case 35:this.$=i.Cardinality.ZERO_OR_MORE;break;case 36:this.$=i.Cardinality.ONE_OR_MORE;break;case 37:this.$=i.Cardinality.ONLY_ONE;break;case 38:this.$=i.Cardinality.MD_PARENT;break;case 39:this.$=i.Identification.NON_IDENTIFYING;break;case 40:this.$=i.Identification.IDENTIFYING}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:i,24:a,26:n,27:s,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:i,24:a,26:n,27:s,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:c,42:l,43:h,44:d,45:y}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(u,[2,19]),t(u,[2,20]),t(e,[2,4]),{11:29,27:s,28:o},{16:30,17:[1,31],29:32,30:33,34:p},{11:35,27:s,28:o},{40:36,46:[1,37],47:[1,38]},t(_,[2,34]),t(_,[2,35]),t(_,[2,36]),t(_,[2,37]),t(_,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:p},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:c,42:l,43:h,44:d,45:y},t(f,[2,39]),t(f,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(m,[2,23],{32:50,33:51,35:52,37:E,38:g}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(m,[2,24],{33:56,36:[1,57],38:g}),t(m,[2,25]),t(O,[2,29]),t(m,[2,32]),t(O,[2,31]),{16:58,17:[1,59],29:32,30:33,34:p},t(m,[2,26]),{35:60,37:E},{17:[1,61]},t(e,[2,13]),t(O,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=[0],r=[],i=[null],a=[],n=this.table,s="",o=0,c=0,l=a.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(d.yy[y]=this.yy[y]);h.setInput(t,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var u=h.yylloc;a.push(u);var p=h.options&&h.options.ranges;"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,f,m,E,g,O,b,k,R,N={};;){if(f=e[e.length-1],this.defaultActions[f]?m=this.defaultActions[f]:(null==_&&(R=void 0,"number"!=typeof(R=r.pop()||h.lex()||1)&&(R instanceof Array&&(R=(r=R).pop()),R=this.symbols_[R]||R),_=R),m=n[f]&&n[f][_]),void 0===m||!m.length||!m[0]){var x;for(g in k=[],n[f])this.terminals_[g]&&g>2&&k.push("'"+this.terminals_[g]+"'");x=h.showPosition?"Parse error on line "+(o+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(x,{text:h.match,token:this.terminals_[_]||_,line:h.yylineno,loc:u,expected:k})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+_);switch(m[0]){case 1:e.push(_),i.push(h.yytext),a.push(h.yylloc),e.push(m[1]),_=null,c=h.yyleng,s=h.yytext,o=h.yylineno,u=h.yylloc;break;case 2:if(O=this.productions_[m[1]][1],N.$=i[i.length-O],N._$={first_line:a[a.length-(O||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(O||1)].first_column,last_column:a[a.length-1].last_column},p&&(N._$.range=[a[a.length-(O||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(N,[s,c,o,d.yy,m[1],i,a].concat(l))))return E;O&&(e=e.slice(0,-1*O*2),i=i.slice(0,-1*O),a=a.slice(0,-1*O)),e.push(this.productions_[m[1]][0]),i.push(N.$),a.push(N._$),b=n[e[e.length-2]][e[e.length-1]],e.push(b);break;case 3:return!0}}return!0}},k={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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),r.length-1&&(this.yylineno-=r.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===i.length?this.yylloc.first_column:0)+i[i.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,i,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var n in a)this[n]=a[n];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),n=0;n<a.length;n++)if((r=this._input.match(this.rules[a[n]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,a[n])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,r,i){switch(r){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:case 15:case 20:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 16:return 37;case 17:case 18:return 34;case 19:return 38;case 21:return this.popState(),17;case 22:case 54:return e.yytext[0];case 23:return 18;case 24:return 19;case 25:case 29:case 30:case 43:return 41;case 26:case 27:case 28:case 36:case 38:case 45:return 43;case 31:case 32:case 33:case 34:case 35:case 37:case 44:return 42;case 39:case 40:case 41:case 42:return 44;case 46:return 45;case 47:case 50:case 51:case 52:return 46;case 48:case 49:return 47;case 53:return 27;case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};function R(){this.yy={}}return b.lexer=k,R.prototype=b,b.Parser=R,new R}();k.parser=k;const R=k;let N={},x=[];const T=function(t,r=void 0){return void 0===N[t]?(N[t]={attributes:[],alias:r},e.info("Added new entity :",t)):N[t]&&!N[t].alias&&r&&(N[t].alias=r,e.info(`Add alias '${r}' to entity '${t}'`)),N[t]},A={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},getConfig:()=>t().er,addEntity:T,addAttributes:function(t,r){let i,a=T(t);for(i=r.length-1;i>=0;i--)a.attributes.push(r[i]),e.debug("Added attribute ",r[i].attributeName)},getEntities:()=>N,addRelationship:function(t,r,i,a){let n={entityA:t,roleA:r,entityB:i,relSpec:a};x.push(n),e.debug("Added new relationship :",n)},getRelationships:()=>x,clear:function(){N={},x=[],s()},setAccTitle:o,getAccTitle:c,setAccDescription:l,getAccDescription:h,setDiagramTitle:d,getDiagramTitle:y},M={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},w=M,I=/[^\dA-Za-z](\W)*/g;let D={},S=new Map;const v=function(e,r,i){let a;return Object.keys(r).forEach(function(n){const s=function(t="",e=""){const r=t.replace(I,"");return`${C(e)}${C(r)}${b(t,B)}`}(n,"entity");S.set(n,s);const o=e.append("g").attr("id",s);a=void 0===a?s:a;const c="text-"+s,l=o.append("text").classed("er entityLabel",!0).attr("id",c).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",t().fontFamily).style("font-size",D.fontSize+"px").text(r[n].alias??n),{width:h,height:d}=((e,r,i)=>{const a=D.entityPadding/3,n=D.entityPadding/3,s=.85*D.fontSize,o=r.node().getBBox(),c=[];let l=!1,h=!1,d=0,y=0,p=0,_=0,f=o.height+2*a,m=1;i.forEach(t=>{void 0!==t.attributeKeyTypeList&&t.attributeKeyTypeList.length>0&&(l=!0),void 0!==t.attributeComment&&(h=!0)}),i.forEach(i=>{const n=`${r.node().id}-attr-${m}`;let o=0;const E=u(i.attributeType),g=e.append("text").classed("er entityLabel",!0).attr("id",`${n}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",t().fontFamily).style("font-size",s+"px").text(E),O=e.append("text").classed("er entityLabel",!0).attr("id",`${n}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",t().fontFamily).style("font-size",s+"px").text(i.attributeName),b={};b.tn=g,b.nn=O;const k=g.node().getBBox(),R=O.node().getBBox();if(d=Math.max(d,k.width),y=Math.max(y,R.width),o=Math.max(k.height,R.height),l){const r=void 0!==i.attributeKeyTypeList?i.attributeKeyTypeList.join(","):"",a=e.append("text").classed("er entityLabel",!0).attr("id",`${n}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",t().fontFamily).style("font-size",s+"px").text(r);b.kn=a;const c=a.node().getBBox();p=Math.max(p,c.width),o=Math.max(o,c.height)}if(h){const r=e.append("text").classed("er entityLabel",!0).attr("id",`${n}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",t().fontFamily).style("font-size",s+"px").text(i.attributeComment||"");b.cn=r;const a=r.node().getBBox();_=Math.max(_,a.width),o=Math.max(o,a.height)}b.height=o,c.push(b),f+=o+2*a,m+=1});let E=4;l&&(E+=2),h&&(E+=2);const g=d+y+p+_,O={width:Math.max(D.minEntityWidth,Math.max(o.width+2*D.entityPadding,g+n*E)),height:i.length>0?f:Math.max(D.minEntityHeight,o.height+2*D.entityPadding)};if(i.length>0){const t=Math.max(0,(O.width-g-n*E)/(E/2));r.attr("transform","translate("+O.width/2+","+(a+o.height/2)+")");let i=o.height+2*a,s="attributeBoxOdd";c.forEach(r=>{const o=i+a+r.height/2;r.tn.attr("transform","translate("+n+","+o+")");const c=e.insert("rect","#"+r.tn.node().id).classed(`er ${s}`,!0).attr("x",0).attr("y",i).attr("width",d+2*n+t).attr("height",r.height+2*a),u=parseFloat(c.attr("x"))+parseFloat(c.attr("width"));r.nn.attr("transform","translate("+(u+n)+","+o+")");const f=e.insert("rect","#"+r.nn.node().id).classed(`er ${s}`,!0).attr("x",u).attr("y",i).attr("width",y+2*n+t).attr("height",r.height+2*a);let m=parseFloat(f.attr("x"))+parseFloat(f.attr("width"));if(l){r.kn.attr("transform","translate("+(m+n)+","+o+")");const c=e.insert("rect","#"+r.kn.node().id).classed(`er ${s}`,!0).attr("x",m).attr("y",i).attr("width",p+2*n+t).attr("height",r.height+2*a);m=parseFloat(c.attr("x"))+parseFloat(c.attr("width"))}h&&(r.cn.attr("transform","translate("+(m+n)+","+o+")"),e.insert("rect","#"+r.cn.node().id).classed(`er ${s}`,"true").attr("x",m).attr("y",i).attr("width",_+2*n+t).attr("height",r.height+2*a)),i+=r.height+2*a,s="attributeBoxOdd"===s?"attributeBoxEven":"attributeBoxOdd"})}else O.height=Math.max(D.minEntityHeight,f),r.attr("transform","translate("+O.width/2+","+O.height/2+")");return O})(o,l,r[n].attributes),y=o.insert("rect","#"+c).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",h).attr("height",d).node().getBBox();i.setNode(s,{width:y.width,height:y.height,shape:"rect",id:s})}),a},L=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")};let $=0;const B="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function C(t=""){return t.length>0?`${t}-`:""}const P={parser:R,db:A,renderer:{setConf:function(t){const e=Object.keys(t);for(const r of e)D[r]=t[r]},draw:function(s,o,c,l){D=t().er,e.info("Drawing ER diagram");const h=t().securityLevel;let d;"sandbox"===h&&(d=r("#i"+o));const y=r("sandbox"===h?d.nodes()[0].contentDocument.body:"body").select(`[id='${o}']`);let u;(function(t,e){let r;t.append("defs").append("marker").attr("id",M.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",M.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",M.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",M.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",M.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",M.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",M.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",M.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",M.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",M.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(y,D),u=new p({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:D.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const m=v(y,l.db.getEntities(),u),E=function(t,e){return t.forEach(function(t){e.setEdge(S.get(t.entityA),S.get(t.entityB),{relationship:t},L(t))}),t}(l.db.getRelationships(),u);var g,O;_(u),g=y,(O=u).nodes().forEach(function(t){void 0!==t&&void 0!==O.node(t)&&g.select("#"+t).attr("transform","translate("+(O.node(t).x-O.node(t).width/2)+","+(O.node(t).y-O.node(t).height/2)+" )")}),E.forEach(function(e){!function(e,r,a,n,s){$++;const o=a.edge(S.get(r.entityA),S.get(r.entityB),L(r)),c=f().x(function(t){return t.x}).y(function(t){return t.y}).curve(i),l=e.insert("path","#"+n).classed("er relationshipLine",!0).attr("d",c(o.points)).style("stroke",D.stroke).style("fill","none");r.relSpec.relType===s.db.Identification.NON_IDENTIFYING&&l.attr("stroke-dasharray","8,8");let h="";switch(D.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),r.relSpec.cardA){case s.db.Cardinality.ZERO_OR_ONE:l.attr("marker-end","url("+h+"#"+w.ZERO_OR_ONE_END+")");break;case s.db.Cardinality.ZERO_OR_MORE:l.attr("marker-end","url("+h+"#"+w.ZERO_OR_MORE_END+")");break;case s.db.Cardinality.ONE_OR_MORE:l.attr("marker-end","url("+h+"#"+w.ONE_OR_MORE_END+")");break;case s.db.Cardinality.ONLY_ONE:l.attr("marker-end","url("+h+"#"+w.ONLY_ONE_END+")");break;case s.db.Cardinality.MD_PARENT:l.attr("marker-end","url("+h+"#"+w.MD_PARENT_END+")")}switch(r.relSpec.cardB){case s.db.Cardinality.ZERO_OR_ONE:l.attr("marker-start","url("+h+"#"+w.ZERO_OR_ONE_START+")");break;case s.db.Cardinality.ZERO_OR_MORE:l.attr("marker-start","url("+h+"#"+w.ZERO_OR_MORE_START+")");break;case s.db.Cardinality.ONE_OR_MORE:l.attr("marker-start","url("+h+"#"+w.ONE_OR_MORE_START+")");break;case s.db.Cardinality.ONLY_ONE:l.attr("marker-start","url("+h+"#"+w.ONLY_ONE_START+")");break;case s.db.Cardinality.MD_PARENT:l.attr("marker-start","url("+h+"#"+w.MD_PARENT_START+")")}const d=l.node().getTotalLength(),y=l.node().getPointAtLength(.5*d),u="rel"+$,p=e.append("text").classed("er relationshipLabel",!0).attr("id",u).attr("x",y.x).attr("y",y.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",t().fontFamily).style("font-size",D.fontSize+"px").text(r.roleA).node().getBBox();e.insert("rect","#"+u).classed("er relationshipLabelBox",!0).attr("x",y.x-p.width/2).attr("y",y.y-p.height/2).attr("width",p.width).attr("height",p.height)}(y,e,u,m,l)});const b=D.diagramPadding;a.insertTitle(y,"entityTitleText",D.titleTopMargin,l.db.getDiagramTitle());const k=y.node().getBBox(),R=k.width+2*b,N=k.height+2*b;n(y,N,R,D.useMaxWidth),y.attr("viewBox",`${k.x-b} ${k.y-b} ${R} ${N}`)}},styles:t=>`\n .entityBox {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxOdd {\n fill: ${t.attributeBackgroundColorOdd};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxEven {\n fill: ${t.attributeBackgroundColorEven};\n stroke: ${t.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${t.tertiaryColor};\n opacity: 0.7;\n background-color: ${t.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${t.lineColor};\n }\n\n .entityTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n } \n #MD_PARENT_START {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n #MD_PARENT_END {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n \n`};export{P as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{x as t,T as e,bg as n,bh as r,bi as o,bj as i,bk as s,bl as c}from"./index-0c25c9f2.js";import"react";import"react-dom";import"stream";var a=function(){function n(t){this.richTextProcessor=new c(t)}return n.prototype.convert=function(n){return t(this,void 0,void 0,function(){var t,r,o;return e(this,function(e){switch(e.label){case 0:return t=n.richTextClient,r=n.textStyle,t&&t.content?[4,this.richTextProcessor.convert(t.content)]:[2,""];case 1:return o=e.sent(),[2,o=this.applyTextStyle(o,r)]}})})},n.prototype.applyTextStyle=function(t,e){if(!e||!e.type)return t;switch(e.type){case"title":var n=e.level||1,r="#".repeat(Math.min(n,6));return"".concat(r," ").concat(t);case"list":return"- ".concat(t);case"orderedList":var o=e.index||1;return"".concat(o,". ").concat(t);case"todo":var i=e.checked?"[x]":"[ ]";return"".concat(i," ").concat(t);case"quote":return"> ".concat(t);default:return t}},n.prototype.dispose=function(){},n}(),u=function(){function n(t){this.upime=t,this.richTextProcessor=new c(t),this.imageGenerator=new s(t)}return n.prototype.convert=function(n){return t(this,void 0,void 0,function(){var t,r,o,i,s,c;return e(this,function(e){switch(e.label){case 0:return(t=n.renderingCells)&&0!==t.length?(r=[],[4,this.getTableHeaderRowAsync(t[0])]):[2,""];case 1:o=e.sent(),r.push("| ".concat(o.join(" | ")," |")),i=o.map(function(){return"---"}).join(" | "),r.push("| ".concat(i," |")),s=1,e.label=2;case 2:return s<t.length?[4,this.getTableDataRowAsync(t[s])]:[3,5];case 3:c=e.sent(),r.push("| ".concat(c.join(" | ")," |")),e.label=4;case 4:return s++,[3,2];case 5:return[2,r.join("\n")]}})})},n.prototype.getTableHeaderRowAsync=function(n){return t(this,void 0,void 0,function(){var r=this;return e(this,function(o){switch(o.label){case 0:return[4,Promise.all(n.map(function(n){return t(r,void 0,void 0,function(){return e(this,function(t){return n.clusterInfo?[2,this.getCellTitleAsync(n.clusterInfo)]:[2,this.getCellContentAsync(n)]})})}))];case 1:return[2,o.sent()]}})})},n.prototype.getTableDataRowAsync=function(n){return t(this,void 0,void 0,function(){var r=this;return e(this,function(o){switch(o.label){case 0:return[4,Promise.all(n.map(function(n){return t(r,void 0,void 0,function(){return e(this,function(t){return n.clusterInfo?[2,this.getCellContentAsync(n.clusterInfo)]:[2,this.getCellContentAsync(n)]})})}))];case 1:return[2,o.sent()]}})})},n.prototype.getCellTitleAsync=function(n){return t(this,void 0,void 0,function(){var t;return e(this,function(e){switch(e.label){case 0:return[4,this.getCellContentAsync(n)];case 1:return[2,(t=e.sent())?"**".concat(t,"**"):"**合并单元格**"]}})})},n.prototype.getCellContentAsync=function(n){return t(this,void 0,void 0,function(){var t,o,s,c,a,u,l;return e(this,function(e){switch(e.label){case 0:if(!(t=n.renderFlow)||0===t.length)return[2," "];o=[],s=Math.min(t.length,10),c=0,e.label=1;case 1:return c<s?(a=t[c].node,i(a)?[4,this.richTextProcessor.convert(a.richTextClient.content)]:[3,3]):[3,6];case 2:return(u=e.sent()).trim()&&o.push(u),[3,5];case 3:return r(a)?[4,this.imageGenerator.generateMarkdownForImgNode(a)]:[3,5];case 4:l=e.sent(),o.push(l),e.label=5;case 5:return c++,[3,1];case 6:return[2,o.join(" ").trim().replace(/\|/g,"\\|")||" "]}})})},n.prototype.dispose=function(){},n}(),l=function(){function c(t){this.bigDoc=t,this.textConverter=new a(this.bigDoc.upime),this.tableConverter=new u(this.bigDoc.upime),this.imageGenerator=new s(this.bigDoc.upime)}return c.prototype.export=function(){return t(this,void 0,void 0,function(){var t,n,r,o,i,s,c,a,u,l=this;return e(this,function(e){switch(e.label){case 0:e.trys.push([0,6,7,8]),t=[],(n=this.generateMetaInfo())&&t.push(n),r=this.bigDoc.renderFlow,o=20,i=0,e.label=1;case 1:return i<r.length?(s=r.slice(i,i+o),[4,Promise.all(s.map(function(t){var e=t.node;return l.convertNodeToMarkdown(e)}))]):[3,5];case 2:return c=e.sent(),a=c.filter(function(t){return t&&t.trim()}),t.push.apply(t,a),i+o<r.length?[4,new Promise(function(t){return setTimeout(t,0)})]:[3,4];case 3:e.sent(),e.label=4;case 4:return i+=o,[3,1];case 5:return[2,t.join("\n\n")];case 6:throw u=e.sent(),console.error("BigDoc markdown export failed:",u),u;case 7:return this.cleanup(),[7];case 8:return[2]}})})},c.prototype.convertNodeToMarkdown=function(s){return t(this,void 0,void 0,function(){var t;return e(this,function(e){switch(e.label){case 0:return e.trys.push([0,8,,9]),i(s)?[4,this.textConverter.convert(s)]:[3,2];case 1:return[2,e.sent()];case 2:return o(s)?[4,this.tableConverter.convert(s)]:[3,4];case 3:return[2,e.sent()];case 4:return r(s)?[4,this.imageGenerator.generateMarkdownForImgNode(s)]:[3,6];case 5:return[2,e.sent()];case 6:if(n(s))return[2,"---"];e.label=7;case 7:return[3,9];case 8:return t=e.sent(),console.warn("Failed to convert node:",s.id,t),[2,""];case 9:return[2,""]}})})},c.prototype.generateMetaInfo=function(){return null},c.prototype.cleanup=function(){this.textConverter.dispose(),this.tableConverter.dispose()},c}(),h=function(t){return new l(t)};export{l as BigDocMarkdownExporter,h as createBigDocMarkdownExporter};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as r,o as e}from"./flowDb-956e92f1-05858601-f0b0a431.js";import"./graph-a2efb7be-713af9a6.js";import"./index-0c25c9f2.js";import"./layout-f41a9481-b65a914c.js";import{N as t,j as o}from"./styles-c10674c1-3e724aac-5b3a371b.js";import"react";import"react-dom";import"stream";import"./createText-2e5e7dd3-3d197991-1dc23da3.js";import"./index-3862675e-b2881445-8d90f1dc.js";import"./clone-e72fc4b8-e0d9c611.js";import"./edges-e0da2a9e-fba3c3a7-06d257f8.js";import"./line-8bf27c33-c9dee662.js";import"./array-75b204b6-7055adac.js";import"./path-5bb65086-3ae6d6fa.js";import"./channel-ff3e58f7-441d1956.js";const a={parser:r,db:e,renderer:t,styles:o,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,function(r){const e=Object.keys(r);for(const t of e)r[t]}(r.flowchart),e.clear(),e.setGen("gen-1")}};export{a as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as r,o as e}from"./flowDb-956e92f1-05858601-f0b0a431.js";import{N as o,j as t}from"./styles-c10674c1-3e724aac-5b3a371b.js";import{z as a}from"./index-0c25c9f2.js";import"./graph-a2efb7be-713af9a6.js";import"./layout-f41a9481-b65a914c.js";import"./createText-2e5e7dd3-3d197991-1dc23da3.js";import"react";import"react-dom";import"stream";import"./index-3862675e-b2881445-8d90f1dc.js";import"./clone-e72fc4b8-e0d9c611.js";import"./edges-e0da2a9e-fba3c3a7-06d257f8.js";import"./line-8bf27c33-c9dee662.js";import"./array-75b204b6-7055adac.js";import"./path-5bb65086-3ae6d6fa.js";import"./channel-ff3e58f7-441d1956.js";const s={parser:r,db:e,renderer:o,styles:t,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,a({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),o.setConf(r.flowchart),e.clear(),e.setGen("gen-2")}};export{s as diagram};
|