(self.webpackChunkzidaAI=self.webpackChunkzidaAI||[]).push([[7340],{55679:function(t,e,r){var i,n=r(63686).default,a=r(47045).default,o=r(93794).default,s=Object.defineProperty,l=Object.defineProperties,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,f=function(t,e,r){return e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},y=function(t,e){for(var r in e||(e={}))p.call(e,r)&&f(t,r,e[r]);if(d){var i,n=o(d(e));try{for(n.s();!(i=n.n()).done;){r=i.value;g.call(e,r)&&f(t,r,e[r])}}catch(t){n.e(t)}finally{n.f()}}return t},m=function(t,e){return l(t,u(e))},v={};function x(t,e,r,i,n){try{return e.highlight(i,{language:""!==n?n:"plaintext",ignoreIllegals:r}).value}catch(e){return t.utils.escapeHtml(i)}}function b(t,e,r,i,n){if(""!==n)return x(t,e,r,i,n);try{return e.highlightAuto(i).value}catch(e){return t.utils.escapeHtml(i)}}function k(t){return function(){return t.apply(void 0,arguments).replace(/<code class="/g,'<code class="hljs ').replace(/<code>/g,'<code class="hljs">')}}function C(t){var e,r,i,a=o(t.tokens);try{for(a.s();!(i=a.n()).done;){var s=i.value;if("inline"===s.type&&null!=s.children){var l,c=o(s.children.entries());try{for(c.s();!(l=c.n()).done;){var u=n(l.value,2),h=u[0],d=u[1];if("code_inline"===d.type){var p=s.children[h+1];if(null!=p){var g=/^{:?\.([^}]+)}/.exec(p.content);if(null!=g){var f=g[1];p.content=p.content.slice(g[0].length);var v=null!=(e=d.attrGet("class"))?e:"";v+="".concat(null!=(r=t.md.options.langPrefix)?r:"language-").concat(f),d.attrSet("class",v),d.meta=m(y({},d.meta),{highlightLanguage:f})}}}}}catch(t){c.e(t)}finally{c.f()}}}}catch(t){a.e(t)}finally{a.f()}}function A(t,e,r,i,n){var a,o,s=t[e];if(null==r.highlight)throw new Error("`options.highlight` was null, this is not supposed to happen");var l=r.highlight(s.content,null!=(o=null==(a=s.meta)?void 0:a.highlightLanguage)?o:"","");return"<code".concat(n.renderAttrs(s),">").concat(l,"</code>")}function D(t,e){var r=y(y({},D.defaults),e);if(null==r.hljs)throw new Error("Please pass a highlight.js instance for the required `hljs` option.");null!=r.register&&function(t,e){for(var r=0,i=Object.entries(e);r<i.length;r++){var a=n(i[r],2),o=a[0],s=a[1];t.registerLanguage(o,s)}}(r.hljs,r.register),null!=r.registerAliases&&function(t,e){for(var r=0,i=Object.entries(e);r<i.length;r++){var a=n(i[r],2),o=a[0],s=a[1];t.registerAliases(s,{languageName:o})}}(r.hljs,r.registerAliases),t.options.highlight=(r.auto?b:x).bind(null,t,r.hljs,r.ignoreIllegals),null!=t.renderer.rules.fence&&(t.renderer.rules.fence=k(t.renderer.rules.fence)),r.code&&null!=t.renderer.rules.code_block&&(t.renderer.rules.code_block=k(t.renderer.rules.code_block)),r.inline&&(t.core.ruler.before("linkify","inline_code_language",C),t.renderer.rules.code_inline=k(A))}!function(t,e){for(var r in e)s(t,r,{get:e[r],enumerable:!0})}(v,{default:function(){return D}}),t.exports=(i=v,function(t,e,r,i){if(e&&"object"===a(e)||"function"==typeof e){var n,l=o(h(e));try{var u=function(){var a=n.value;p.call(t,a)||a===r||s(t,a,{get:function(){return e[a]},enumerable:!(i=c(e,a))||i.enumerable})};for(l.s();!(n=l.n()).done;)u()}catch(t){l.e(t)}finally{l.f()}}return t}(s({},"__esModule",{value:!0}),i)),D.defaults={auto:!1,code:!1,inline:!1,ignoreIllegals:!1}},8938:function(t,e,r){var i,n=r(47045).default,a=r(93794).default,o=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,h=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,g=function(t,e,r){return e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},f=function(t,e){for(var r in e||(e={}))d.call(e,r)&&g(t,r,e[r]);if(u){var i,n=a(u(e));try{for(n.s();!(i=n.n()).done;){r=i.value;p.call(e,r)&&g(t,r,e[r])}}catch(t){n.e(t)}finally{n.f()}}return t},y=function(t,e,r,i){if(e&&"object"===n(e)||"function"==typeof e){var o,u=a(c(e));try{var h=function(){var n=o.value;d.call(t,n)||n===r||s(t,n,{get:function(){return e[n]},enumerable:!(i=l(e,n))||i.enumerable})};for(u.s();!(o=u.n()).done;)h()}catch(t){u.e(t)}finally{u.f()}}return t},m=function(t,e,r){return r=null!=t?o(h(t)):{},y(!e&&t&&t.__esModule?r:s(r,"default",{value:t,enumerable:!0}),t)},v={};!function(t,e){for(var r in e)s(t,r,{get:e[r],enumerable:!0})}(v,{default:function(){return k}}),t.exports=(i=v,y(s({},"__esModule",{value:!0}),i));var x=m(r(12750)),b=m(r(55679));function k(t,e){return null==(e=f(f({},k.defaults),e)).hljs&&(e.hljs=x.default),(0,b.default)(t,e)}k.defaults={auto:!0,code:!0,inline:!1,ignoreIllegals:!0}},53873:function(t,e,r){t.exports=r(8938).default},95686:function(t,e,r){"use strict";t=r.nmd(t);var i=r(46437).default,n=r(93794).default,a=r(47045).default;function o(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function s(e,i){var l=s.mergeDelimiters(i&&i.delimiters),c=i&&i.outerSpace||!1,u=i&&i.katexOptions||{};u.throwOnError=u.throwOnError||!1,u.macros=u.macros||i&&i.macros,s.katex||(i&&"object"===a(i.engine)?s.katex=i.engine:"object"===a(t)?s.katex=r(91189):s.katex={renderToString:function(){return"No math renderer found."}});var h,d=n(l.inline);try{var p=function(){var t=h.value;c&&"outerSpace"in t&&(t.outerSpace=!0),e.inline.ruler.before("escape",t.name,s.inline(t)),e.renderer.rules[t.name]=function(e,r){return t.tmpl.replace(/\$1/,s.render(e[r].content,!!t.displayMode,u))}};for(d.s();!(h=d.n()).done;)p()}catch(t){d.e(t)}finally{d.f()}var g,f=n(l.block);try{var y=function(){var t=g.value;e.block.ruler.before("fence",t.name,s.block(t)),e.renderer.rules[t.name]=function(e,r){return t.tmpl.replace(/\$2/,o(e[r].info)).replace(/\$1/,s.render(e[r].content,!0,u))}};for(f.s();!(g=f.n()).done;)y()}catch(t){f.e(t)}finally{f.f()}}r(44114),r(18111),r(61701),s.mergeDelimiters=function(t){var e,r=Array.isArray(t)?t:"string"==typeof t?[t]:["dollars"],a={inline:[],block:[]},o=n(r);try{for(o.s();!(e=o.n()).done;){var l,c,u=e.value;if(u in s.rules)(l=a.inline).push.apply(l,i(s.rules[u].inline)),(c=a.block).push.apply(c,i(s.rules[u].block))}}catch(t){o.e(t)}finally{o.f()}return a},s.inline=function(t){return function(e,r){var i=e.pos,n=e.src,a=n.startsWith(t.tag,t.rex.lastIndex=i)&&(!t.pre||t.pre(n,t.outerSpace,i))&&t.rex.exec(n),o=!!a&&i<t.rex.lastIndex&&(!t.post||t.post(n,t.outerSpace,t.rex.lastIndex-1));if(o){if(!r){var s=e.push(t.name,"math",0);s.content=a[1],s.markup=t.tag}e.pos=t.rex.lastIndex}return o}},s.block=function(t){return function(e,r,i,n){var a=e.bMarks[r]+e.tShift[r],o=e.src,s=o.startsWith(t.tag,t.rex.lastIndex=a)&&(!t.pre||t.pre(o,!1,a))&&t.rex.exec(o),l=!!s&&a<t.rex.lastIndex&&(!t.post||t.post(o,!1,t.rex.lastIndex-1));if(l&&!n){var c,u=t.rex.lastIndex-1;for(c=r;c<i&&!(u>=e.bMarks[c]+e.tShift[c]&&u<=e.eMarks[c]);c++);var h=e.lineMax,d=e.parentType;e.lineMax=c,e.parentType="math","blockquote"===d&&(s[1]=s[1].replace(/(\n*?^(?:\s*>)+)/gm,""));var p=e.push(t.name,"math",0);p.block=!0,p.tag=t.tag,p.markup="",p.content=s[1],p.info=s[s.length-1],p.map=[r,c+1],e.parentType=d,e.lineMax=h,e.line=c+1}return l}},s.render=function(t,e,r){var i;r.displayMode=e;try{i=s.katex.renderToString(t,r)}catch(e){i=o("".concat(t,":").concat(e.message))}return i},s.use=function(t){return s.katex=t,s},s.inlineRuleNames=["math_inline","math_inline_double"],s.blockRuleNames=["math_block","math_block_eqno"],s.$_pre=function(t,e,r){var i=r>0&&t[r-1].charCodeAt(0);return e?!i||32===i:!i||92!==i&&(i<48||i>57)},s.$_post=function(t,e,r){var i=t[r+1]&&t[r+1].charCodeAt(0);return e?!i||32===i||46===i||44===i||59===i:!i||i<48||i>57},s.rules={brackets:{inline:[{name:"math_inline",rex:new RegExp("\\\\\\((.+?)\\\\\\)","gy"),tmpl:"<eq>$1</eq>",tag:"\\("}],block:[{name:"math_block_eqno",rex:new RegExp("\\\\\\[(((?!\\\\\\]|\\\\\\[)[\\s\\S])+?)\\\\\\]\\s*?\\(([^)$\\r\\n]+?)\\)","gmy"),tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"\\["},{name:"math_block",rex:new RegExp("\\\\\\[([\\s\\S]+?)\\\\\\]","gmy"),tmpl:"<section><eqn>$1</eqn></section>",tag:"\\["}]},doxygen:{inline:[{name:"math_inline",rex:new RegExp("\\\\f\\$(.+?)\\\\f\\$","gy"),tmpl:"<eq>$1</eq>",tag:"\\f$"}],block:[{name:"math_block_eqno",rex:new RegExp("\\\\f\\[([^]+?)\\\\f\\]\\s*?\\(([^)\\s]+?)\\)","gmy"),tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"\\f["},{name:"math_block",rex:new RegExp("\\\\f\\[([^]+?)\\\\f\\]","gmy"),tmpl:"<section><eqn>$1</eqn></section>",tag:"\\f["}]},gitlab:{inline:[{name:"math_inline",rex:new RegExp("\\$`(.+?)`\\$","gy"),tmpl:"<eq>$1</eq>",tag:"$`"}],block:[{name:"math_block_eqno",rex:/`{3}math\s*([^`]+?)\s*?`{3}\s*\(([^)\r\n]+?)\)/gm,tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"```math"},{name:"math_block",rex:/`{3}math\s*([^`]*?)\s*`{3}/gm,tmpl:"<section><eqn>$1</eqn></section>",tag:"```math"}]},julia:{inline:[{name:"math_inline",rex:new RegExp("`{2}([^`]+?)`{2}","gy"),tmpl:"<eq>$1</eq>",tag:"``"},{name:"math_inline",rex:new RegExp("\\$((?:\\S?)|(?:\\S.*?\\S))\\$","gy"),tmpl:"<eq>$1</eq>",tag:"$",spaceEnclosed:!1,pre:s.$_pre,post:s.$_post}],block:[{name:"math_block_eqno",rex:new RegExp("`{3}math\\s+?([^`]+?)\\s+?`{3}\\s*?\\(([^)$\\r\\n]+?)\\)","gmy"),tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"```math"},{name:"math_block",rex:new RegExp("`{3}math\\s+?([^`]+?)\\s+?`{3}","gmy"),tmpl:"<section><eqn>$1</eqn></section>",tag:"```math"}]},kramdown:{inline:[{name:"math_inline",rex:new RegExp("\\${2}(.+?)\\${2}","gy"),tmpl:"<eq>$1</eq>",tag:"$$"}],block:[{name:"math_block_eqno",rex:new RegExp("\\${2}([^$]+?)\\${2}\\s*?\\(([^)\\s]+?)\\)","gmy"),tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"$$"},{name:"math_block",rex:new RegExp("\\${2}([^$]+?)\\${2}","gmy"),tmpl:"<section><eqn>$1</eqn></section>",tag:"$$"}]},beg_end:{inline:[],block:[{name:"math_block",rex:new RegExp("(\\\\(?:begin)\\{([a-z]+)\\}[\\s\\S]+?\\\\(?:end)\\{\\2\\})","gmy"),tmpl:"<section><eqn>$1</eqn></section>",tag:"\\"}]},dollars:{inline:[{name:"math_inline_double",rex:new RegExp("\\${2}([^$]*?[^\\\\])\\${2}","gy"),tmpl:"<section><eqn>$1</eqn></section>",tag:"$$",displayMode:!0,pre:s.$_pre,post:s.$_post},{name:"math_inline",rex:new RegExp("\\$((?:[^\\s\\\\])|(?:\\S.*?[^\\s\\\\]))\\$","gy"),tmpl:"<eq>$1</eq>",tag:"$",outerSpace:!1,pre:s.$_pre,post:s.$_post}],block:[{name:"math_block_eqno",rex:new RegExp("\\${2}([^$]*?[^\\\\])\\${2}\\s*?\\(([^)\\s]+?)\\)","gmy"),tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"$$"},{name:"math_block",rex:new RegExp("\\${2}([^$]*?[^\\\\])\\${2}","gmy"),tmpl:"<section><eqn>$1</eqn></section>",tag:"$$"}]}},"object"===a(t)&&t.exports&&(t.exports=s)},58833:function(t,e,r){"use strict";r.d(e,{A:function(){return Ee}});var i={};r.r(i),r.d(i,{arrayReplaceAt:function(){return P},assign:function(){return K},escapeHtml:function(){return Z},escapeRE:function(){return J},fromCodePoint:function(){return z},has:function(){return N},isMdAsciiPunct:function(){return it},isPunctChar:function(){return rt},isSpace:function(){return tt},isString:function(){return O},isValidEntityCode:function(){return q},isWhiteSpace:function(){return et},lib:function(){return at},normalizeReference:function(){return nt},unescapeAll:function(){return U},unescapeMd:function(){return j}});var n={};r.r(n),r.d(n,{parseLinkDestination:function(){return st},parseLinkLabel:function(){return ot},parseLinkTitle:function(){return lt}});var a,o,s=r(54119),l=r(95272),c=r(25635),u=r(24692),h=r(80852),d=r(25026),p=r(69492),g=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)})),f=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)})),y=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),m=null!==(a=String.fromCodePoint)&&void 0!==a?a:function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)};function v(t){var e;return t>=55296&&t<=57343||t>1114111?65533:null!==(e=y.get(t))&&void 0!==e?e:t}!function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"}(o||(o={}));var x,b,k;function C(t){return t>=o.ZERO&&t<=o.NINE}function A(t){return t>=o.UPPER_A&&t<=o.UPPER_F||t>=o.LOWER_A&&t<=o.LOWER_F}function D(t){return t===o.EQUALS||function(t){return t>=o.UPPER_A&&t<=o.UPPER_Z||t>=o.LOWER_A&&t<=o.LOWER_Z||C(t)}(t)}!function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"}(x||(x={})),function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"}(b||(b={})),function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"}(k||(k={}));var E=function(){return(0,p.A)(function t(e,r,i){(0,d.A)(this,t),this.decodeTree=e,this.emitCodePoint=r,this.errors=i,this.state=b.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=k.Strict},[{key:"startEntity",value:function(t){this.decodeMode=t,this.state=b.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}},{key:"write",value:function(t,e){switch(this.state){case b.EntityStart:return t.charCodeAt(e)===o.NUM?(this.state=b.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1)):(this.state=b.NamedEntity,this.stateNamedEntity(t,e));case b.NumericStart:return this.stateNumericStart(t,e);case b.NumericDecimal:return this.stateNumericDecimal(t,e);case b.NumericHex:return this.stateNumericHex(t,e);case b.NamedEntity:return this.stateNamedEntity(t,e)}}},{key:"stateNumericStart",value:function(t,e){return e>=t.length?-1:(32|t.charCodeAt(e))===o.LOWER_X?(this.state=b.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1)):(this.state=b.NumericDecimal,this.stateNumericDecimal(t,e))}},{key:"addToNumericResult",value:function(t,e,r,i){if(e!==r){var n=r-e;this.result=this.result*Math.pow(i,n)+parseInt(t.substr(e,n),i),this.consumed+=n}}},{key:"stateNumericHex",value:function(t,e){for(var r=e;e<t.length;){var i=t.charCodeAt(e);if(!C(i)&&!A(i))return this.addToNumericResult(t,r,e,16),this.emitNumericEntity(i,3);e+=1}return this.addToNumericResult(t,r,e,16),-1}},{key:"stateNumericDecimal",value:function(t,e){for(var r=e;e<t.length;){var i=t.charCodeAt(e);if(!C(i))return this.addToNumericResult(t,r,e,10),this.emitNumericEntity(i,2);e+=1}return this.addToNumericResult(t,r,e,10),-1}},{key:"emitNumericEntity",value:function(t,e){var r;if(this.consumed<=e)return null===(r=this.errors)||void 0===r||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===o.SEMI)this.consumed+=1;else if(this.decodeMode===k.Strict)return 0;return this.emitCodePoint(v(this.result),this.consumed),this.errors&&(t!==o.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}},{key:"stateNamedEntity",value:function(t,e){for(var r=this.decodeTree,i=r[this.treeIndex],n=(i&x.VALUE_LENGTH)>>14;e<t.length;e++,this.excess++){var a=t.charCodeAt(e);if(this.treeIndex=w(r,i,this.treeIndex+Math.max(1,n),a),this.treeIndex<0)return 0===this.result||this.decodeMode===k.Attribute&&(0===n||D(a))?0:this.emitNotTerminatedNamedEntity();if(0!==(n=((i=r[this.treeIndex])&x.VALUE_LENGTH)>>14)){if(a===o.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);this.decodeMode!==k.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}},{key:"emitNotTerminatedNamedEntity",value:function(){var t,e=this.result,r=(this.decodeTree[e]&x.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,r,this.consumed),null===(t=this.errors)||void 0===t||t.missingSemicolonAfterCharacterReference(),this.consumed}},{key:"emitNamedEntityData",value:function(t,e,r){var i=this.decodeTree;return this.emitCodePoint(1===e?i[t]&~x.VALUE_LENGTH:i[t+1],r),3===e&&this.emitCodePoint(i[t+2],r),r}},{key:"end",value:function(){var t;switch(this.state){case b.NamedEntity:return 0===this.result||this.decodeMode===k.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case b.NumericDecimal:return this.emitNumericEntity(0,2);case b.NumericHex:return this.emitNumericEntity(0,3);case b.NumericStart:return null===(t=this.errors)||void 0===t||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case b.EntityStart:return 0}}}])}();function T(t){var e="",r=new E(t,function(t){return e+=m(t)});return function(t,i){for(var n=0,a=0;(a=t.indexOf("&",a))>=0;){e+=t.slice(n,a),r.startEntity(i);var o=r.write(t,a+1);if(o<0){n=a+r.end();break}n=a+o,a=0===o?n+1:n}var s=e+t.slice(n);return e="",s}}function w(t,e,r,i){var n=(e&x.BRANCH_LENGTH)>>7,a=e&x.JUMP_TABLE;if(0===n)return 0!==a&&i===a?r:-1;if(a){var o=i-a;return o<0||o>=n?-1:t[r+o]-1}for(var s=r,l=s+n-1;s<=l;){var c=s+l>>>1,u=t[c];if(u<i)s=c+1;else{if(!(u>i))return t[c+n];l=c-1}}return-1}var S=T(g);T(f);function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k.Legacy;return S(t,e)}function _(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}new Map(_([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(_([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(_([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(_([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var B=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);String.prototype.codePointAt;function L(t,e){return function(r){for(var i,n=0,a="";i=t.exec(r);)n!==i.index&&(a+=r.substring(n,i.index)),a+=e.get(i[0].charCodeAt(0)),n=i.index+1;return a+r.substring(n)}}var I,R;L(/[&<>'"]/g,B),L(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),L(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));function O(t){return"[object String]"===function(t){return Object.prototype.toString.call(t)}(t)}!function(t){t[t.XML=0]="XML",t[t.HTML=1]="HTML"}(I||(I={})),function(t){t[t.UTF8=0]="UTF8",t[t.ASCII=1]="ASCII",t[t.Extensive=2]="Extensive",t[t.Attribute=3]="Attribute",t[t.Text=4]="Text"}(R||(R={}));var M=Object.prototype.hasOwnProperty;function N(t,e){return M.call(t,e)}function K(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){if(e){if("object"!==(0,s.A)(e))throw new TypeError(e+"must be object");Object.keys(e).forEach(function(r){t[r]=e[r]})}}),t}function P(t,e,r){return[].concat(t.slice(0,e),r,t.slice(e+1))}function q(t){return!(t>=55296&&t<=57343)&&(!(t>=64976&&t<=65007)&&(!!(65535&~t&&65534!=(65535&t))&&(!(t>=0&&t<=8)&&(11!==t&&(!(t>=14&&t<=31)&&(!(t>=127&&t<=159)&&!(t>1114111)))))))}function z(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}var W=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Y=new RegExp(W.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),$=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function j(t){return t.indexOf("\\")<0?t:t.replace(W,"$1")}function U(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(Y,function(t,e,r){return e||function(t,e){if(35===e.charCodeAt(0)&&$.test(e)){var r="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return q(r)?z(r):t}var i=F(t);return i!==t?i:t}(t,r)})}var H=/[&<>"]/,V=/[&<>"]/g,G={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function X(t){return G[t]}function Z(t){return H.test(t)?t.replace(V,X):t}var Q=/[.?*+^$[\]\\(){}|-]/g;function J(t){return t.replace(Q,"\\$&")}function tt(t){switch(t){case 9:case 32:return!0}return!1}function et(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function rt(t){return c.A.test(t)||u.A.test(t)}function it(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function nt(t){return t=t.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}var at={mdurl:l,ucmicro:h};function ot(t,e,r){var i,n,a,o,s=t.posMax,l=t.pos;for(t.pos=e+1,i=1;t.pos<s;){if(93===(a=t.src.charCodeAt(t.pos))&&0===--i){n=!0;break}if(o=t.pos,t.md.inline.skipToken(t),91===a)if(o===t.pos-1)i++;else if(r)return t.pos=l,-1}var c=-1;return n&&(c=t.pos),t.pos=l,c}function st(t,e,r){var i,n=e,a={ok:!1,pos:0,str:""};if(60===t.charCodeAt(n)){for(n++;n<r;){if(10===(i=t.charCodeAt(n)))return a;if(60===i)return a;if(62===i)return a.pos=n+1,a.str=U(t.slice(e+1,n)),a.ok=!0,a;92===i&&n+1<r?n+=2:n++}return a}for(var o=0;n<r&&32!==(i=t.charCodeAt(n))&&!(i<32||127===i);)if(92===i&&n+1<r){if(32===t.charCodeAt(n+1))break;n+=2}else{if(40===i&&++o>32)return a;if(41===i){if(0===o)break;o--}n++}return e===n||0!==o||(a.str=U(t.slice(e,n)),a.pos=n,a.ok=!0),a}function lt(t,e,r,i){var n,a=e,o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)o.str=i.str,o.marker=i.marker;else{if(a>=r)return o;var s=t.charCodeAt(a);if(34!==s&&39!==s&&40!==s)return o;e++,a++,40===s&&(s=41),o.marker=s}for(;a<r;){if((n=t.charCodeAt(a))===o.marker)return o.pos=a+1,o.str+=U(t.slice(e,a)),o.ok=!0,o;if(40===n&&41===o.marker)return o;92===n&&a+1<r&&a++,a++}return o.can_continue=!0,o.str+=U(t.slice(e,a)),o}var ct={};function ut(){this.rules=K({},ct)}ct.code_inline=function(t,e,r,i,n){var a=t[e];return"<code"+n.renderAttrs(a)+">"+Z(a.content)+"</code>"},ct.code_block=function(t,e,r,i,n){var a=t[e];return"<pre"+n.renderAttrs(a)+"><code>"+Z(t[e].content)+"</code></pre>\n"},ct.fence=function(t,e,r,i,n){var a,o=t[e],s=o.info?U(o.info).trim():"",l="",c="";if(s){var u=s.split(/(\s+)/g);l=u[0],c=u.slice(2).join("")}if(0===(a=r.highlight&&r.highlight(o.content,l,c)||Z(o.content)).indexOf("<pre"))return a+"\n";if(s){var h=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[];h<0?d.push(["class",r.langPrefix+l]):(d[h]=d[h].slice(),d[h][1]+=" "+r.langPrefix+l);var p={attrs:d};return"<pre><code".concat(n.renderAttrs(p),">").concat(a,"</code></pre>\n")}return"<pre><code".concat(n.renderAttrs(o),">").concat(a,"</code></pre>\n")},ct.image=function(t,e,r,i,n){var a=t[e];return a.attrs[a.attrIndex("alt")][1]=n.renderInlineAsText(a.children,r,i),n.renderToken(t,e,r)},ct.hardbreak=function(t,e,r){return r.xhtmlOut?"<br />\n":"<br>\n"},ct.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},ct.text=function(t,e){return Z(t[e].content)},ct.html_block=function(t,e){return t[e].content},ct.html_inline=function(t,e){return t[e].content},ut.prototype.renderAttrs=function(t){var e,r,i;if(!t.attrs)return"";for(i="",e=0,r=t.attrs.length;e<r;e++)i+=" "+Z(t.attrs[e][0])+'="'+Z(t.attrs[e][1])+'"';return i},ut.prototype.renderToken=function(t,e,r){var i=t[e],n="";if(i.hidden)return"";i.block&&-1!==i.nesting&&e&&t[e-1].hidden&&(n+="\n"),n+=(-1===i.nesting?"</":"<")+i.tag,n+=this.renderAttrs(i),0===i.nesting&&r.xhtmlOut&&(n+=" /");var a=!1;if(i.block&&(a=!0,1===i.nesting&&e+1<t.length)){var o=t[e+1];("inline"===o.type||o.hidden||-1===o.nesting&&o.tag===i.tag)&&(a=!1)}return n+=a?">\n":">"},ut.prototype.renderInline=function(t,e,r){for(var i="",n=this.rules,a=0,o=t.length;a<o;a++){var s=t[a].type;void 0!==n[s]?i+=n[s](t,a,e,r,this):i+=this.renderToken(t,a,e)}return i},ut.prototype.renderInlineAsText=function(t,e,r){for(var i="",n=0,a=t.length;n<a;n++)switch(t[n].type){case"text":case"html_inline":case"html_block":i+=t[n].content;break;case"image":i+=this.renderInlineAsText(t[n].children,e,r);break;case"softbreak":case"hardbreak":i+="\n"}return i},ut.prototype.render=function(t,e,r){for(var i="",n=this.rules,a=0,o=t.length;a<o;a++){var s=t[a].type;"inline"===s?i+=this.renderInline(t[a].children,e,r):void 0!==n[s]?i+=n[s](t,a,e,r,this):i+=this.renderToken(t,a,e,r)}return i};var ht=ut;function dt(){this.__rules__=[],this.__cache__=null}dt.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},dt.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(t){e.indexOf(t)<0&&e.push(t)})}),t.__cache__={},e.forEach(function(e){t.__cache__[e]=[],t.__rules__.forEach(function(r){r.enabled&&(e&&r.alt.indexOf(e)<0||t.__cache__[e].push(r.fn))})})},dt.prototype.at=function(t,e,r){var i=this.__find__(t),n=r||{};if(-1===i)throw new Error("Parser rule not found: "+t);this.__rules__[i].fn=e,this.__rules__[i].alt=n.alt||[],this.__cache__=null},dt.prototype.before=function(t,e,r,i){var n=this.__find__(t),a=i||{};if(-1===n)throw new Error("Parser rule not found: "+t);this.__rules__.splice(n,0,{name:e,enabled:!0,fn:r,alt:a.alt||[]}),this.__cache__=null},dt.prototype.after=function(t,e,r,i){var n=this.__find__(t),a=i||{};if(-1===n)throw new Error("Parser rule not found: "+t);this.__rules__.splice(n+1,0,{name:e,enabled:!0,fn:r,alt:a.alt||[]}),this.__cache__=null},dt.prototype.push=function(t,e,r){var i=r||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:i.alt||[]}),this.__cache__=null},dt.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(t){var i=this.__find__(t);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[i].enabled=!0,r.push(t)},this),this.__cache__=null,r},dt.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(t,e)},dt.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(t){var i=this.__find__(t);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[i].enabled=!1,r.push(t)},this),this.__cache__=null,r},dt.prototype.getRules=function(t){return null===this.__cache__&&this.__compile__(),this.__cache__[t]||[]};var pt=dt;function gt(t,e,r){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}gt.prototype.attrIndex=function(t){if(!this.attrs)return-1;for(var e=this.attrs,r=0,i=e.length;r<i;r++)if(e[r][0]===t)return r;return-1},gt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},gt.prototype.attrSet=function(t,e){var r=this.attrIndex(t),i=[t,e];r<0?this.attrPush(i):this.attrs[r]=i},gt.prototype.attrGet=function(t){var e=this.attrIndex(t),r=null;return e>=0&&(r=this.attrs[e][1]),r},gt.prototype.attrJoin=function(t,e){var r=this.attrIndex(t);r<0?this.attrPush([t,e]):this.attrs[r][1]=this.attrs[r][1]+" "+e};var ft=gt;function yt(t,e,r){this.src=t,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=e}yt.prototype.Token=ft;var mt=yt,vt=/\r\n?|\n/g,xt=/\0/g;function bt(t){return/^<a[>\s]/i.test(t)}function kt(t){return/^<\/a\s*>/i.test(t)}var Ct=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,At=/\((c|tm|r)\)/i,Dt=/\((c|tm|r)\)/gi,Et={c:"©",r:"®",tm:"™"};function Tt(t,e){return Et[e.toLowerCase()]}function wt(t){for(var e=0,r=t.length-1;r>=0;r--){var i=t[r];"text"!==i.type||e||(i.content=i.content.replace(Dt,Tt)),"link_open"===i.type&&"auto"===i.info&&e--,"link_close"===i.type&&"auto"===i.info&&e++}}function St(t){for(var e=0,r=t.length-1;r>=0;r--){var i=t[r];"text"!==i.type||e||Ct.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===i.type&&"auto"===i.info&&e--,"link_close"===i.type&&"auto"===i.info&&e++}}var Ft=/['"]/,_t=/['"]/g;function Bt(t,e,r){return t.slice(0,e)+r+t.slice(e+1)}function Lt(t,e){for(var r,i=[],n=0;n<t.length;n++){var a=t[n],o=t[n].level;for(r=i.length-1;r>=0&&!(i[r].level<=o);r--);if(i.length=r+1,"text"===a.type){var s=a.content,l=0,c=s.length;t:for(;l<c;){_t.lastIndex=l;var u=_t.exec(s);if(!u)break;var h=!0,d=!0;l=u.index+1;var p="'"===u[0],g=32;if(u.index-1>=0)g=s.charCodeAt(u.index-1);else for(r=n-1;r>=0&&("softbreak"!==t[r].type&&"hardbreak"!==t[r].type);r--)if(t[r].content){g=t[r].content.charCodeAt(t[r].content.length-1);break}var f=32;if(l<c)f=s.charCodeAt(l);else for(r=n+1;r<t.length&&("softbreak"!==t[r].type&&"hardbreak"!==t[r].type);r++)if(t[r].content){f=t[r].content.charCodeAt(0);break}var y=it(g)||rt(String.fromCharCode(g)),m=it(f)||rt(String.fromCharCode(f)),v=et(g),x=et(f);if(x?h=!1:m&&(v||y||(h=!1)),v?d=!1:y&&(x||m||(d=!1)),34===f&&'"'===u[0]&&g>=48&&g<=57&&(d=h=!1),h&&d&&(h=y,d=m),h||d){if(d)for(r=i.length-1;r>=0;r--){var b=i[r];if(i[r].level<o)break;if(b.single===p&&i[r].level===o){b=i[r];var k=void 0,C=void 0;p?(k=e.md.options.quotes[2],C=e.md.options.quotes[3]):(k=e.md.options.quotes[0],C=e.md.options.quotes[1]),a.content=Bt(a.content,u.index,C),t[b.token].content=Bt(t[b.token].content,b.pos,k),l+=C.length-1,b.token===n&&(l+=k.length-1),c=(s=a.content).length,i.length=r;continue t}}h?i.push({token:n,pos:u.index,single:p,level:o}):d&&p&&(a.content=Bt(a.content,u.index,"’"))}else p&&(a.content=Bt(a.content,u.index,"’"))}}}}var It=[["normalize",function(t){var e;e=(e=t.src.replace(vt,"\n")).replace(xt,"�"),t.src=e}],["block",function(t){var e;t.inlineMode?((e=new t.Token("inline","",0)).content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}],["inline",function(t){for(var e=t.tokens,r=0,i=e.length;r<i;r++){var n=e[r];"inline"===n.type&&t.md.inline.parse(n.content,t.md,t.env,n.children)}}],["linkify",function(t){var e=t.tokens;if(t.md.options.linkify)for(var r=0,i=e.length;r<i;r++)if("inline"===e[r].type&&t.md.linkify.pretest(e[r].content))for(var n=e[r].children,a=0,o=n.length-1;o>=0;o--){var s=n[o];if("link_close"!==s.type){if("html_inline"===s.type&&(bt(s.content)&&a>0&&a--,kt(s.content)&&a++),!(a>0)&&"text"===s.type&&t.md.linkify.test(s.content)){var l=s.content,c=t.md.linkify.match(l),u=[],h=s.level,d=0;c.length>0&&0===c[0].index&&o>0&&"text_special"===n[o-1].type&&(c=c.slice(1));for(var p=0;p<c.length;p++){var g=c[p].url,f=t.md.normalizeLink(g);if(t.md.validateLink(f)){var y=c[p].text;y=c[p].schema?"mailto:"!==c[p].schema||/^mailto:/i.test(y)?t.md.normalizeLinkText(y):t.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):t.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,"");var m=c[p].index;if(m>d){var v=new t.Token("text","",0);v.content=l.slice(d,m),v.level=h,u.push(v)}var x=new t.Token("link_open","a",1);x.attrs=[["href",f]],x.level=h++,x.markup="linkify",x.info="auto",u.push(x);var b=new t.Token("text","",0);b.content=y,b.level=h,u.push(b);var k=new t.Token("link_close","a",-1);k.level=--h,k.markup="linkify",k.info="auto",u.push(k),d=c[p].lastIndex}}if(d<l.length){var C=new t.Token("text","",0);C.content=l.slice(d),C.level=h,u.push(C)}e[r].children=n=P(n,o,u)}}else for(o--;n[o].level!==s.level&&"link_open"!==n[o].type;)o--}}],["replacements",function(t){var e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&(At.test(t.tokens[e].content)&&wt(t.tokens[e].children),Ct.test(t.tokens[e].content)&&St(t.tokens[e].children))}],["smartquotes",function(t){if(t.md.options.typographer)for(var e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&Ft.test(t.tokens[e].content)&&Lt(t.tokens[e].children,t)}],["text_join",function(t){for(var e,r,i=t.tokens,n=i.length,a=0;a<n;a++)if("inline"===i[a].type){var o=i[a].children,s=o.length;for(e=0;e<s;e++)"text_special"===o[e].type&&(o[e].type="text");for(e=r=0;e<s;e++)"text"===o[e].type&&e+1<s&&"text"===o[e+1].type?o[e+1].content=o[e].content+o[e+1].content:(e!==r&&(o[r]=o[e]),r++);e!==r&&(o.length=r)}}]];function Rt(){this.ruler=new pt;for(var t=0;t<It.length;t++)this.ruler.push(It[t][0],It[t][1])}Rt.prototype.process=function(t){for(var e=this.ruler.getRules(""),r=0,i=e.length;r<i;r++)e[r](t)},Rt.prototype.State=mt;var Ot=Rt;function Mt(t,e,r,i){this.src=t,this.md=e,this.env=r,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;for(var n=this.src,a=0,o=0,s=0,l=0,c=n.length,u=!1;o<c;o++){var h=n.charCodeAt(o);if(!u){if(tt(h)){s++,9===h?l+=4-l%4:l++;continue}u=!0}10!==h&&o!==c-1||(10!==h&&o++,this.bMarks.push(a),this.eMarks.push(o),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),u=!1,s=0,l=0,a=o+1)}this.bMarks.push(n.length),this.eMarks.push(n.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Mt.prototype.push=function(t,e,r){var i=new ft(t,e,r);return i.block=!0,r<0&&this.level--,i.level=this.level,r>0&&this.level++,this.tokens.push(i),i},Mt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Mt.prototype.skipEmptyLines=function(t){for(var e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},Mt.prototype.skipSpaces=function(t){for(var e=this.src.length;t<e;t++){if(!tt(this.src.charCodeAt(t)))break}return t},Mt.prototype.skipSpacesBack=function(t,e){if(t<=e)return t;for(;t>e;)if(!tt(this.src.charCodeAt(--t)))return t+1;return t},Mt.prototype.skipChars=function(t,e){for(var r=this.src.length;t<r&&this.src.charCodeAt(t)===e;t++);return t},Mt.prototype.skipCharsBack=function(t,e,r){if(t<=r)return t;for(;t>r;)if(e!==this.src.charCodeAt(--t))return t+1;return t},Mt.prototype.getLines=function(t,e,r,i){if(t>=e)return"";for(var n=new Array(e-t),a=0,o=t;o<e;o++,a++){var s=0,l=this.bMarks[o],c=l,u=void 0;for(u=o+1<e||i?this.eMarks[o]+1:this.eMarks[o];c<u&&s<r;){var h=this.src.charCodeAt(c);if(tt(h))9===h?s+=4-(s+this.bsCount[o])%4:s++;else{if(!(c-l<this.tShift[o]))break;s++}c++}n[a]=s>r?new Array(s-r+1).join(" ")+this.src.slice(c,u):this.src.slice(c,u)}return n.join("")},Mt.prototype.Token=ft;var Nt=Mt;function Kt(t,e){var r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];return t.src.slice(r,i)}function Pt(t){for(var e=[],r=t.length,i=0,n=t.charCodeAt(i),a=!1,o=0,s="";i<r;)124===n&&(a?(s+=t.substring(o,i-1),o=i):(e.push(s+t.substring(o,i)),s="",o=i+1)),a=92===n,i++,n=t.charCodeAt(i);return e.push(s+t.substring(o)),e}function qt(t,e){var r=t.eMarks[e],i=t.bMarks[e]+t.tShift[e],n=t.src.charCodeAt(i++);if(42!==n&&45!==n&&43!==n)return-1;if(i<r&&!tt(t.src.charCodeAt(i)))return-1;return i}function zt(t,e){var r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=r;if(n+1>=i)return-1;var a=t.src.charCodeAt(n++);if(a<48||a>57)return-1;for(;;){if(n>=i)return-1;if(!((a=t.src.charCodeAt(n++))>=48&&a<=57)){if(41===a||46===a)break;return-1}if(n-r>=10)return-1}return n<i&&!tt(a=t.src.charCodeAt(n))?-1:n}var Wt="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Yt="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",$t=new RegExp("^(?:"+Wt+"|"+Yt+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),jt=new RegExp("^(?:"+Wt+"|"+Yt+")"),Ut=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["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"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(jt.source+"\\s*$"),/^$/,!1]];var Ht=[["table",function(t,e,r,i){if(e+2>r)return!1;var n=e+1;if(t.sCount[n]<t.blkIndent)return!1;if(t.sCount[n]-t.blkIndent>=4)return!1;var a=t.bMarks[n]+t.tShift[n];if(a>=t.eMarks[n])return!1;var o=t.src.charCodeAt(a++);if(124!==o&&45!==o&&58!==o)return!1;if(a>=t.eMarks[n])return!1;var s=t.src.charCodeAt(a++);if(124!==s&&45!==s&&58!==s&&!tt(s))return!1;if(45===o&&tt(s))return!1;for(;a<t.eMarks[n];){var l=t.src.charCodeAt(a);if(124!==l&&45!==l&&58!==l&&!tt(l))return!1;a++}for(var c=Kt(t,e+1),u=c.split("|"),h=[],d=0;d<u.length;d++){var p=u[d].trim();if(!p){if(0===d||d===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(p))return!1;58===p.charCodeAt(p.length-1)?h.push(58===p.charCodeAt(0)?"center":"right"):58===p.charCodeAt(0)?h.push("left"):h.push("")}if(-1===(c=Kt(t,e).trim()).indexOf("|"))return!1;if(t.sCount[e]-t.blkIndent>=4)return!1;(u=Pt(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();var g=u.length;if(0===g||g!==h.length)return!1;if(i)return!0;var f=t.parentType;t.parentType="table";var y,m=t.md.block.ruler.getRules("blockquote"),v=[e,0];t.push("table_open","table",1).map=v,t.push("thead_open","thead",1).map=[e,e+1],t.push("tr_open","tr",1).map=[e,e+1];for(var x=0;x<u.length;x++){var b=t.push("th_open","th",1);h[x]&&(b.attrs=[["style","text-align:"+h[x]]]);var k=t.push("inline","",0);k.content=u[x].trim(),k.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);var C=0;for(n=e+2;n<r&&!(t.sCount[n]<t.blkIndent);n++){for(var A=!1,D=0,E=m.length;D<E;D++)if(m[D](t,n,r,!0)){A=!0;break}if(A)break;if(!(c=Kt(t,n).trim()))break;if(t.sCount[n]-t.blkIndent>=4)break;if((u=Pt(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),(C+=g-u.length)>65536)break;n===e+2&&(t.push("tbody_open","tbody",1).map=y=[e+2,0]),t.push("tr_open","tr",1).map=[n,n+1];for(var T=0;T<g;T++){var w=t.push("td_open","td",1);h[T]&&(w.attrs=[["style","text-align:"+h[T]]]);var S=t.push("inline","",0);S.content=u[T]?u[T].trim():"",S.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return y&&(t.push("tbody_close","tbody",-1),y[1]=n),t.push("table_close","table",-1),v[1]=n,t.parentType=f,t.line=n,!0},["paragraph","reference"]],["code",function(t,e,r){if(t.sCount[e]-t.blkIndent<4)return!1;for(var i=e+1,n=i;i<r;)if(t.isEmpty(i))i++;else{if(!(t.sCount[i]-t.blkIndent>=4))break;n=++i}t.line=n;var a=t.push("code_block","code",0);return a.content=t.getLines(e,n,4+t.blkIndent,!1)+"\n",a.map=[e,t.line],!0}],["fence",function(t,e,r,i){var n=t.bMarks[e]+t.tShift[e],a=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(n+3>a)return!1;var o=t.src.charCodeAt(n);if(126!==o&&96!==o)return!1;var s=n,l=(n=t.skipChars(n,o))-s;if(l<3)return!1;var c=t.src.slice(s,n),u=t.src.slice(n,a);if(96===o&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(i)return!0;for(var h=e,d=!1;!(++h>=r)&&!((n=s=t.bMarks[h]+t.tShift[h])<(a=t.eMarks[h])&&t.sCount[h]<t.blkIndent);)if(t.src.charCodeAt(n)===o&&!(t.sCount[h]-t.blkIndent>=4||(n=t.skipChars(n,o))-s<l||(n=t.skipSpaces(n))<a)){d=!0;break}l=t.sCount[e],t.line=h+(d?1:0);var p=t.push("fence","code",0);return p.info=u,p.content=t.getLines(e+1,h,l,!0),p.markup=c,p.map=[e,t.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(t,e,r,i){var n=t.bMarks[e]+t.tShift[e],a=t.eMarks[e],o=t.lineMax;if(t.sCount[e]-t.blkIndent>=4)return!1;if(62!==t.src.charCodeAt(n))return!1;if(i)return!0;var s=[],l=[],c=[],u=[],h=t.md.block.ruler.getRules("blockquote"),d=t.parentType;t.parentType="blockquote";var p,g=!1;for(p=e;p<r;p++){var f=t.sCount[p]<t.blkIndent;if((n=t.bMarks[p]+t.tShift[p])>=(a=t.eMarks[p]))break;if(62!==t.src.charCodeAt(n++)||f){if(g)break;for(var y=!1,m=0,v=h.length;m<v;m++)if(h[m](t,p,r,!0)){y=!0;break}if(y){t.lineMax=p,0!==t.blkIndent&&(s.push(t.bMarks[p]),l.push(t.bsCount[p]),u.push(t.tShift[p]),c.push(t.sCount[p]),t.sCount[p]-=t.blkIndent);break}s.push(t.bMarks[p]),l.push(t.bsCount[p]),u.push(t.tShift[p]),c.push(t.sCount[p]),t.sCount[p]=-1}else{var x=t.sCount[p]+1,b=void 0,k=void 0;32===t.src.charCodeAt(n)?(n++,x++,k=!1,b=!0):9===t.src.charCodeAt(n)?(b=!0,(t.bsCount[p]+x)%4==3?(n++,x++,k=!1):k=!0):b=!1;var C=x;for(s.push(t.bMarks[p]),t.bMarks[p]=n;n<a;){var A=t.src.charCodeAt(n);if(!tt(A))break;9===A?C+=4-(C+t.bsCount[p]+(k?1:0))%4:C++,n++}g=n>=a,l.push(t.bsCount[p]),t.bsCount[p]=t.sCount[p]+1+(b?1:0),c.push(t.sCount[p]),t.sCount[p]=C-x,u.push(t.tShift[p]),t.tShift[p]=n-t.bMarks[p]}}var D=t.blkIndent;t.blkIndent=0;var E=t.push("blockquote_open","blockquote",1);E.markup=">";var T=[e,0];E.map=T,t.md.block.tokenize(t,e,p),t.push("blockquote_close","blockquote",-1).markup=">",t.lineMax=o,t.parentType=d,T[1]=t.line;for(var w=0;w<u.length;w++)t.bMarks[w+e]=s[w],t.tShift[w+e]=u[w],t.sCount[w+e]=c[w],t.bsCount[w+e]=l[w];return t.blkIndent=D,!0},["paragraph","reference","blockquote","list"]],["hr",function(t,e,r,i){var n=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;var a=t.bMarks[e]+t.tShift[e],o=t.src.charCodeAt(a++);if(42!==o&&45!==o&&95!==o)return!1;for(var s=1;a<n;){var l=t.src.charCodeAt(a++);if(l!==o&&!tt(l))return!1;l===o&&s++}if(s<3)return!1;if(i)return!0;t.line=e+1;var c=t.push("hr","hr",0);return c.map=[e,t.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0},["paragraph","reference","blockquote","list"]],["list",function(t,e,r,i){var n,a,o,s,l=e,c=!0;if(t.sCount[l]-t.blkIndent>=4)return!1;if(t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]<t.blkIndent)return!1;var u,h,d,p=!1;if(i&&"paragraph"===t.parentType&&t.sCount[l]>=t.blkIndent&&(p=!0),(d=zt(t,l))>=0){if(u=!0,o=t.bMarks[l]+t.tShift[l],h=Number(t.src.slice(o,d-1)),p&&1!==h)return!1}else{if(!((d=qt(t,l))>=0))return!1;u=!1}if(p&&t.skipSpaces(d)>=t.eMarks[l])return!1;if(i)return!0;var g=t.src.charCodeAt(d-1),f=t.tokens.length;u?(s=t.push("ordered_list_open","ol",1),1!==h&&(s.attrs=[["start",h]])):s=t.push("bullet_list_open","ul",1);var y=[l,0];s.map=y,s.markup=String.fromCharCode(g);var m=!1,v=t.md.block.ruler.getRules("list"),x=t.parentType;for(t.parentType="list";l<r;){a=d,n=t.eMarks[l];for(var b=t.sCount[l]+d-(t.bMarks[l]+t.tShift[l]),k=b;a<n;){var C=t.src.charCodeAt(a);if(9===C)k+=4-(k+t.bsCount[l])%4;else{if(32!==C)break;k++}a++}var A=a,D=void 0;(D=A>=n?1:k-b)>4&&(D=1);var E=b+D;(s=t.push("list_item_open","li",1)).markup=String.fromCharCode(g);var T=[l,0];s.map=T,u&&(s.info=t.src.slice(o,d-1));var w=t.tight,S=t.tShift[l],F=t.sCount[l],_=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=E,t.tight=!0,t.tShift[l]=A-t.bMarks[l],t.sCount[l]=k,A>=n&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,r):t.md.block.tokenize(t,l,r,!0),t.tight&&!m||(c=!1),m=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=_,t.tShift[l]=S,t.sCount[l]=F,t.tight=w,(s=t.push("list_item_close","li",-1)).markup=String.fromCharCode(g),l=t.line,T[1]=l,l>=r)break;if(t.sCount[l]<t.blkIndent)break;if(t.sCount[l]-t.blkIndent>=4)break;for(var B=!1,L=0,I=v.length;L<I;L++)if(v[L](t,l,r,!0)){B=!0;break}if(B)break;if(u){if((d=zt(t,l))<0)break;o=t.bMarks[l]+t.tShift[l]}else if((d=qt(t,l))<0)break;if(g!==t.src.charCodeAt(d-1))break}return(s=u?t.push("ordered_list_close","ol",-1):t.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(g),y[1]=l,t.line=l,t.parentType=x,c&&function(t,e){for(var r=t.level+2,i=e+2,n=t.tokens.length-2;i<n;i++)t.tokens[i].level===r&&"paragraph_open"===t.tokens[i].type&&(t.tokens[i+2].hidden=!0,t.tokens[i].hidden=!0,i+=2)}(t,f),!0},["paragraph","reference","blockquote"]],["reference",function(t,e,r,i){var n=t.bMarks[e]+t.tShift[e],a=t.eMarks[e],o=e+1;if(t.sCount[e]-t.blkIndent>=4)return!1;if(91!==t.src.charCodeAt(n))return!1;function s(e){var r=t.lineMax;if(e>=r||t.isEmpty(e))return null;var i=!1;if(t.sCount[e]-t.blkIndent>3&&(i=!0),t.sCount[e]<0&&(i=!0),!i){var n=t.md.block.ruler.getRules("reference"),a=t.parentType;t.parentType="reference";for(var o=!1,s=0,l=n.length;s<l;s++)if(n[s](t,e,r,!0)){o=!0;break}if(t.parentType=a,o)return null}var c=t.bMarks[e]+t.tShift[e],u=t.eMarks[e];return t.src.slice(c,u+1)}var l=t.src.slice(n,a+1);a=l.length;var c=-1;for(n=1;n<a;n++){var u=l.charCodeAt(n);if(91===u)return!1;if(93===u){c=n;break}if(10===u){var h=s(o);null!==h&&(a=(l+=h).length,o++)}else if(92===u&&++n<a&&10===l.charCodeAt(n)){var d=s(o);null!==d&&(a=(l+=d).length,o++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(n=c+2;n<a;n++){var p=l.charCodeAt(n);if(10===p){var g=s(o);null!==g&&(a=(l+=g).length,o++)}else if(!tt(p))break}var f=t.md.helpers.parseLinkDestination(l,n,a);if(!f.ok)return!1;var y=t.md.normalizeLink(f.str);if(!t.md.validateLink(y))return!1;for(var m=n=f.pos,v=o,x=n;n<a;n++){var b=l.charCodeAt(n);if(10===b){var k=s(o);null!==k&&(a=(l+=k).length,o++)}else if(!tt(b))break}for(var C,A=t.md.helpers.parseLinkTitle(l,n,a);A.can_continue;){var D=s(o);if(null===D)break;n=a,a=(l+=D).length,o++,A=t.md.helpers.parseLinkTitle(l,n,a,A)}for(n<a&&x!==n&&A.ok?(C=A.str,n=A.pos):(C="",n=m,o=v);n<a;){if(!tt(l.charCodeAt(n)))break;n++}if(n<a&&10!==l.charCodeAt(n)&&C)for(C="",n=m,o=v;n<a;){if(!tt(l.charCodeAt(n)))break;n++}if(n<a&&10!==l.charCodeAt(n))return!1;var E=nt(l.slice(1,c));return!!E&&(i||(void 0===t.env.references&&(t.env.references={}),void 0===t.env.references[E]&&(t.env.references[E]={title:C,href:y}),t.line=o),!0)}],["html_block",function(t,e,r,i){var n=t.bMarks[e]+t.tShift[e],a=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(!t.md.options.html)return!1;if(60!==t.src.charCodeAt(n))return!1;for(var o=t.src.slice(n,a),s=0;s<Ut.length&&!Ut[s][0].test(o);s++);if(s===Ut.length)return!1;if(i)return Ut[s][2];var l=e+1;if(!Ut[s][1].test(o))for(;l<r&&!(t.sCount[l]<t.blkIndent);l++)if(n=t.bMarks[l]+t.tShift[l],a=t.eMarks[l],o=t.src.slice(n,a),Ut[s][1].test(o)){0!==o.length&&l++;break}t.line=l;var c=t.push("html_block","",0);return c.map=[e,l],c.content=t.getLines(e,l,t.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(t,e,r,i){var n=t.bMarks[e]+t.tShift[e],a=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;var o=t.src.charCodeAt(n);if(35!==o||n>=a)return!1;var s=1;for(o=t.src.charCodeAt(++n);35===o&&n<a&&s<=6;)s++,o=t.src.charCodeAt(++n);if(s>6||n<a&&!tt(o))return!1;if(i)return!0;a=t.skipSpacesBack(a,n);var l=t.skipCharsBack(a,35,n);l>n&&tt(t.src.charCodeAt(l-1))&&(a=l),t.line=e+1;var c=t.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[e,t.line];var u=t.push("inline","",0);return u.content=t.src.slice(n,a).trim(),u.map=[e,t.line],u.children=[],t.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(t,e,r){var i=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;var n=t.parentType;t.parentType="paragraph";for(var a,o=0,s=e+1;s<r&&!t.isEmpty(s);s++)if(!(t.sCount[s]-t.blkIndent>3)){if(t.sCount[s]>=t.blkIndent){var l=t.bMarks[s]+t.tShift[s],c=t.eMarks[s];if(l<c&&(45===(a=t.src.charCodeAt(l))||61===a)&&(l=t.skipChars(l,a),(l=t.skipSpaces(l))>=c)){o=61===a?1:2;break}}if(!(t.sCount[s]<0)){for(var u=!1,h=0,d=i.length;h<d;h++)if(i[h](t,s,r,!0)){u=!0;break}if(u)break}}if(!o)return!1;var p=t.getLines(e,s,t.blkIndent,!1).trim();t.line=s+1;var g=t.push("heading_open","h"+String(o),1);g.markup=String.fromCharCode(a),g.map=[e,t.line];var f=t.push("inline","",0);return f.content=p,f.map=[e,t.line-1],f.children=[],t.push("heading_close","h"+String(o),-1).markup=String.fromCharCode(a),t.parentType=n,!0}],["paragraph",function(t,e,r){var i=t.md.block.ruler.getRules("paragraph"),n=t.parentType,a=e+1;for(t.parentType="paragraph";a<r&&!t.isEmpty(a);a++)if(!(t.sCount[a]-t.blkIndent>3||t.sCount[a]<0)){for(var o=!1,s=0,l=i.length;s<l;s++)if(i[s](t,a,r,!0)){o=!0;break}if(o)break}var c=t.getLines(e,a,t.blkIndent,!1).trim();t.line=a,t.push("paragraph_open","p",1).map=[e,t.line];var u=t.push("inline","",0);return u.content=c,u.map=[e,t.line],u.children=[],t.push("paragraph_close","p",-1),t.parentType=n,!0}]];function Vt(){this.ruler=new pt;for(var t=0;t<Ht.length;t++)this.ruler.push(Ht[t][0],Ht[t][1],{alt:(Ht[t][2]||[]).slice()})}Vt.prototype.tokenize=function(t,e,r){for(var i=this.ruler.getRules(""),n=i.length,a=t.md.options.maxNesting,o=e,s=!1;o<r&&(t.line=o=t.skipEmptyLines(o),!(o>=r))&&!(t.sCount[o]<t.blkIndent);){if(t.level>=a){t.line=r;break}for(var l=t.line,c=!1,u=0;u<n;u++)if(c=i[u](t,o,r,!1)){if(l>=t.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),(o=t.line)<r&&t.isEmpty(o)&&(s=!0,o++,t.line=o)}},Vt.prototype.parse=function(t,e,r,i){if(t){var n=new this.State(t,e,r,i);this.tokenize(n,n.line,n.lineMax)}},Vt.prototype.State=Nt;var Gt=Vt;function Xt(t,e,r,i){this.src=t,this.env=r,this.md=e,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Xt.prototype.pushPending=function(){var t=new ft("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},Xt.prototype.push=function(t,e,r){this.pending&&this.pushPending();var i=new ft(t,e,r),n=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],n={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(n),i},Xt.prototype.scanDelims=function(t,e){for(var r=this.posMax,i=this.src.charCodeAt(t),n=t>0?this.src.charCodeAt(t-1):32,a=t;a<r&&this.src.charCodeAt(a)===i;)a++;var o=a-t,s=a<r?this.src.charCodeAt(a):32,l=it(n)||rt(String.fromCharCode(n)),c=it(s)||rt(String.fromCharCode(s)),u=et(n),h=et(s),d=!h&&(!c||u||l),p=!u&&(!l||h||c);return{can_open:d&&(e||!p||l),can_close:p&&(e||!d||c),length:o}},Xt.prototype.Token=ft;var Zt=Xt;function Qt(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var Jt=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;for(var te=[],ee=0;ee<256;ee++)te.push(0);function re(t,e){for(var r,i=[],n=e.length,a=0;a<n;a++){var o=e[a];if(126===o.marker&&-1!==o.end){var s=e[o.end];(r=t.tokens[o.token]).type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",(r=t.tokens[s.token]).type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===t.tokens[s.token-1].type&&"~"===t.tokens[s.token-1].content&&i.push(s.token-1)}}for(;i.length;){for(var l=i.pop(),c=l+1;c<t.tokens.length&&"s_close"===t.tokens[c].type;)c++;l!==--c&&(r=t.tokens[c],t.tokens[c]=t.tokens[l],t.tokens[l]=r)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){te[t.charCodeAt(0)]=1});var ie={tokenize:function(t,e){var r=t.pos,i=t.src.charCodeAt(r);if(e)return!1;if(126!==i)return!1;var n=t.scanDelims(t.pos,!0),a=n.length,o=String.fromCharCode(i);if(a<2)return!1;a%2&&(t.push("text","",0).content=o,a--);for(var s=0;s<a;s+=2)t.push("text","",0).content=o+o,t.delimiters.push({marker:i,length:0,token:t.tokens.length-1,end:-1,open:n.can_open,close:n.can_close});return t.pos+=n.length,!0},postProcess:function(t){var e=t.tokens_meta,r=t.tokens_meta.length;re(t,t.delimiters);for(var i=0;i<r;i++)e[i]&&e[i].delimiters&&re(t,e[i].delimiters)}};function ne(t,e){for(var r=e.length-1;r>=0;r--){var i=e[r];if((95===i.marker||42===i.marker)&&-1!==i.end){var n=e[i.end],a=r>0&&e[r-1].end===i.end+1&&e[r-1].marker===i.marker&&e[r-1].token===i.token-1&&e[i.end+1].token===n.token+1,o=String.fromCharCode(i.marker),s=t.tokens[i.token];s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?o+o:o,s.content="";var l=t.tokens[n.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?o+o:o,l.content="",a&&(t.tokens[e[r-1].token].content="",t.tokens[e[i.end+1].token].content="",r--)}}}var ae={tokenize:function(t,e){var r=t.pos,i=t.src.charCodeAt(r);if(e)return!1;if(95!==i&&42!==i)return!1;for(var n=t.scanDelims(t.pos,42===i),a=0;a<n.length;a++){t.push("text","",0).content=String.fromCharCode(i),t.delimiters.push({marker:i,length:n.length,token:t.tokens.length-1,end:-1,open:n.can_open,close:n.can_close})}return t.pos+=n.length,!0},postProcess:function(t){var e=t.tokens_meta,r=t.tokens_meta.length;ne(t,t.delimiters);for(var i=0;i<r;i++)e[i]&&e[i].delimiters&&ne(t,e[i].delimiters)}};var oe=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,se=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;var le=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ce=/^&([a-z][a-z0-9]{1,31});/i;function ue(t){var e={},r=t.length;if(r)for(var i=0,n=-2,a=[],o=0;o<r;o++){var s=t[o];if(a.push(0),t[i].marker===s.marker&&n===s.token-1||(i=o),n=s.token,s.length=s.length||0,s.close){e.hasOwnProperty(s.marker)||(e[s.marker]=[-1,-1,-1,-1,-1,-1]);for(var l=e[s.marker][(s.open?3:0)+s.length%3],c=i-a[i]-1,u=c;c>l;c-=a[c]+1){var h=t[c];if(h.marker===s.marker&&(h.open&&h.end<0)){var d=!1;if((h.close||s.open)&&(h.length+s.length)%3==0&&(h.length%3==0&&s.length%3==0||(d=!0)),!d){var p=c>0&&!t[c-1].open?a[c-1]+1:0;a[o]=o-c+p,a[c]=p,s.open=!1,h.end=o,h.close=!1,u=-1,n=-2;break}}}-1!==u&&(e[s.marker][(s.open?3:0)+(s.length||0)%3]=u)}}}var he=[["text",function(t,e){for(var r=t.pos;r<t.posMax&&!Qt(t.src.charCodeAt(r));)r++;return r!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)}],["linkify",function(t,e){if(!t.md.options.linkify)return!1;if(t.linkLevel>0)return!1;var r=t.pos;if(r+3>t.posMax)return!1;if(58!==t.src.charCodeAt(r))return!1;if(47!==t.src.charCodeAt(r+1))return!1;if(47!==t.src.charCodeAt(r+2))return!1;var i=t.pending.match(Jt);if(!i)return!1;var n=i[1],a=t.md.linkify.matchAtStart(t.src.slice(r-n.length));if(!a)return!1;var o=a.url;if(o.length<=n.length)return!1;for(var s=o.length;s>0&&42===o.charCodeAt(s-1);)s--;s!==o.length&&(o=o.slice(0,s));var l=t.md.normalizeLink(o);if(!t.md.validateLink(l))return!1;if(!e){t.pending=t.pending.slice(0,-n.length);var c=t.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(o);var u=t.push("link_close","a",-1);u.markup="linkify",u.info="auto"}return t.pos+=o.length-n.length,!0}],["newline",function(t,e){var r=t.pos;if(10!==t.src.charCodeAt(r))return!1;var i=t.pending.length-1,n=t.posMax;if(!e)if(i>=0&&32===t.pending.charCodeAt(i))if(i>=1&&32===t.pending.charCodeAt(i-1)){for(var a=i-1;a>=1&&32===t.pending.charCodeAt(a-1);)a--;t.pending=t.pending.slice(0,a),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(r++;r<n&&tt(t.src.charCodeAt(r));)r++;return t.pos=r,!0}],["escape",function(t,e){var r=t.pos,i=t.posMax;if(92!==t.src.charCodeAt(r))return!1;if(++r>=i)return!1;var n=t.src.charCodeAt(r);if(10===n){for(e||t.push("hardbreak","br",0),r++;r<i&&tt(n=t.src.charCodeAt(r));)r++;return t.pos=r,!0}var a=t.src[r];if(n>=55296&&n<=56319&&r+1<i){var o=t.src.charCodeAt(r+1);o>=56320&&o<=57343&&(a+=t.src[r+1],r++)}var s="\\"+a;if(!e){var l=t.push("text_special","",0);n<256&&0!==te[n]?l.content=a:l.content=s,l.markup=s,l.info="escape"}return t.pos=r+1,!0}],["backticks",function(t,e){var r=t.pos;if(96!==t.src.charCodeAt(r))return!1;var i=r;r++;for(var n=t.posMax;r<n&&96===t.src.charCodeAt(r);)r++;var a=t.src.slice(i,r),o=a.length;if(t.backticksScanned&&(t.backticks[o]||0)<=i)return e||(t.pending+=a),t.pos+=o,!0;for(var s,l=r;-1!==(s=t.src.indexOf("`",l));){for(l=s+1;l<n&&96===t.src.charCodeAt(l);)l++;var c=l-s;if(c===o){if(!e){var u=t.push("code_inline","code",0);u.markup=a,u.content=t.src.slice(r,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=l,!0}t.backticks[c]=s}return t.backticksScanned=!0,e||(t.pending+=a),t.pos+=o,!0}],["strikethrough",ie.tokenize],["emphasis",ae.tokenize],["link",function(t,e){var r,i,n,a,o="",s="",l=t.pos,c=!0;if(91!==t.src.charCodeAt(t.pos))return!1;var u=t.pos,h=t.posMax,d=t.pos+1,p=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(p<0)return!1;var g=p+1;if(g<h&&40===t.src.charCodeAt(g)){for(c=!1,g++;g<h&&(tt(r=t.src.charCodeAt(g))||10===r);g++);if(g>=h)return!1;if(l=g,(n=t.md.helpers.parseLinkDestination(t.src,g,t.posMax)).ok){for(o=t.md.normalizeLink(n.str),t.md.validateLink(o)?g=n.pos:o="",l=g;g<h&&(tt(r=t.src.charCodeAt(g))||10===r);g++);if(n=t.md.helpers.parseLinkTitle(t.src,g,t.posMax),g<h&&l!==g&&n.ok)for(s=n.str,g=n.pos;g<h&&(tt(r=t.src.charCodeAt(g))||10===r);g++);}(g>=h||41!==t.src.charCodeAt(g))&&(c=!0),g++}if(c){if(void 0===t.env.references)return!1;if(g<h&&91===t.src.charCodeAt(g)?(l=g+1,(g=t.md.helpers.parseLinkLabel(t,g))>=0?i=t.src.slice(l,g++):g=p+1):g=p+1,i||(i=t.src.slice(d,p)),!(a=t.env.references[nt(i)]))return t.pos=u,!1;o=a.href,s=a.title}if(!e){t.pos=d,t.posMax=p;var f=[["href",o]];t.push("link_open","a",1).attrs=f,s&&f.push(["title",s]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=g,t.posMax=h,!0}],["image",function(t,e){var r,i,n,a,o,s,l,c,u="",h=t.pos,d=t.posMax;if(33!==t.src.charCodeAt(t.pos))return!1;if(91!==t.src.charCodeAt(t.pos+1))return!1;var p=t.pos+2,g=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(g<0)return!1;if((a=g+1)<d&&40===t.src.charCodeAt(a)){for(a++;a<d&&(tt(r=t.src.charCodeAt(a))||10===r);a++);if(a>=d)return!1;for(c=a,(s=t.md.helpers.parseLinkDestination(t.src,a,t.posMax)).ok&&(u=t.md.normalizeLink(s.str),t.md.validateLink(u)?a=s.pos:u=""),c=a;a<d&&(tt(r=t.src.charCodeAt(a))||10===r);a++);if(s=t.md.helpers.parseLinkTitle(t.src,a,t.posMax),a<d&&c!==a&&s.ok)for(l=s.str,a=s.pos;a<d&&(tt(r=t.src.charCodeAt(a))||10===r);a++);else l="";if(a>=d||41!==t.src.charCodeAt(a))return t.pos=h,!1;a++}else{if(void 0===t.env.references)return!1;if(a<d&&91===t.src.charCodeAt(a)?(c=a+1,(a=t.md.helpers.parseLinkLabel(t,a))>=0?n=t.src.slice(c,a++):a=g+1):a=g+1,n||(n=t.src.slice(p,g)),!(o=t.env.references[nt(n)]))return t.pos=h,!1;u=o.href,l=o.title}if(!e){i=t.src.slice(p,g);var f=[];t.md.inline.parse(i,t.md,t.env,f);var y=t.push("image","img",0),m=[["src",u],["alt",""]];y.attrs=m,y.children=f,y.content=i,l&&m.push(["title",l])}return t.pos=a,t.posMax=d,!0}],["autolink",function(t,e){var r=t.pos;if(60!==t.src.charCodeAt(r))return!1;for(var i=t.pos,n=t.posMax;;){if(++r>=n)return!1;var a=t.src.charCodeAt(r);if(60===a)return!1;if(62===a)break}var o=t.src.slice(i+1,r);if(se.test(o)){var s=t.md.normalizeLink(o);if(!t.md.validateLink(s))return!1;if(!e){var l=t.push("link_open","a",1);l.attrs=[["href",s]],l.markup="autolink",l.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(o);var c=t.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return t.pos+=o.length+2,!0}if(oe.test(o)){var u=t.md.normalizeLink("mailto:"+o);if(!t.md.validateLink(u))return!1;if(!e){var h=t.push("link_open","a",1);h.attrs=[["href",u]],h.markup="autolink",h.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(o);var d=t.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return t.pos+=o.length+2,!0}return!1}],["html_inline",function(t,e){if(!t.md.options.html)return!1;var r=t.posMax,i=t.pos;if(60!==t.src.charCodeAt(i)||i+2>=r)return!1;var n=t.src.charCodeAt(i+1);if(33!==n&&63!==n&&47!==n&&!function(t){var e=32|t;return e>=97&&e<=122}(n))return!1;var a,o=t.src.slice(i).match($t);if(!o)return!1;if(!e){var s=t.push("html_inline","",0);s.content=o[0],a=s.content,/^<a[>\s]/i.test(a)&&t.linkLevel++,function(t){return/^<\/a\s*>/i.test(t)}(s.content)&&t.linkLevel--}return t.pos+=o[0].length,!0}],["entity",function(t,e){var r=t.pos,i=t.posMax;if(38!==t.src.charCodeAt(r))return!1;if(r+1>=i)return!1;if(35===t.src.charCodeAt(r+1)){var n=t.src.slice(r).match(le);if(n){if(!e){var a="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),o=t.push("text_special","",0);o.content=q(a)?z(a):z(65533),o.markup=n[0],o.info="entity"}return t.pos+=n[0].length,!0}}else{var s=t.src.slice(r).match(ce);if(s){var l=F(s[0]);if(l!==s[0]){if(!e){var c=t.push("text_special","",0);c.content=l,c.markup=s[0],c.info="entity"}return t.pos+=s[0].length,!0}}}return!1}]],de=[["balance_pairs",function(t){var e=t.tokens_meta,r=t.tokens_meta.length;ue(t.delimiters);for(var i=0;i<r;i++)e[i]&&e[i].delimiters&&ue(e[i].delimiters)}],["strikethrough",ie.postProcess],["emphasis",ae.postProcess],["fragments_join",function(t){var e,r,i=0,n=t.tokens,a=t.tokens.length;for(e=r=0;e<a;e++)n[e].nesting<0&&i--,n[e].level=i,n[e].nesting>0&&i++,"text"===n[e].type&&e+1<a&&"text"===n[e+1].type?n[e+1].content=n[e].content+n[e+1].content:(e!==r&&(n[r]=n[e]),r++);e!==r&&(n.length=r)}]];function pe(){this.ruler=new pt;for(var t=0;t<he.length;t++)this.ruler.push(he[t][0],he[t][1]);this.ruler2=new pt;for(var e=0;e<de.length;e++)this.ruler2.push(de[e][0],de[e][1])}pe.prototype.skipToken=function(t){var e=t.pos,r=this.ruler.getRules(""),i=r.length,n=t.md.options.maxNesting,a=t.cache;if(void 0===a[e]){var o=!1;if(t.level<n){for(var s=0;s<i;s++)if(t.level++,o=r[s](t,!0),t.level--,o){if(e>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;o||t.pos++,a[e]=t.pos}else t.pos=a[e]},pe.prototype.tokenize=function(t){for(var e=this.ruler.getRules(""),r=e.length,i=t.posMax,n=t.md.options.maxNesting;t.pos<i;){var a=t.pos,o=!1;if(t.level<n)for(var s=0;s<r;s++)if(o=e[s](t,!1)){if(a>=t.pos)throw new Error("inline rule didn't increment state.pos");break}if(o){if(t.pos>=i)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},pe.prototype.parse=function(t,e,r,i){var n=new this.State(t,e,r,i);this.tokenize(n);for(var a=this.ruler2.getRules(""),o=a.length,s=0;s<o;s++)a[s](n)},pe.prototype.State=Zt;var ge=pe,fe=r(26761),ye=r(95447),me={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},ve=/^(vbscript|javascript|file|data):/,xe=/^data:image\/(gif|png|jpeg|webp);/;function be(t){var e=t.trim().toLowerCase();return!ve.test(e)||xe.test(e)}var ke=["http:","https:","mailto:"];function Ce(t){var e=l.parse(t,!0);if(e.hostname&&(!e.protocol||ke.indexOf(e.protocol)>=0))try{e.hostname=ye.Ay.toASCII(e.hostname)}catch(t){}return l.encode(l.format(e))}function Ae(t){var e=l.parse(t,!0);if(e.hostname&&(!e.protocol||ke.indexOf(e.protocol)>=0))try{e.hostname=ye.Ay.toUnicode(e.hostname)}catch(t){}return l.decode(l.format(e),l.decode.defaultChars+"%")}function De(t,e){if(!(this instanceof De))return new De(t,e);e||O(t)||(e=t||{},t="default"),this.inline=new ge,this.block=new Gt,this.core=new Ot,this.renderer=new ht,this.linkify=new fe.A,this.validateLink=be,this.normalizeLink=Ce,this.normalizeLinkText=Ae,this.utils=i,this.helpers=K({},n),this.options={},this.configure(t),e&&this.set(e)}De.prototype.set=function(t){return K(this.options,t),this},De.prototype.configure=function(t){var e=this;if(O(t)){var r=t;if(!(t=me[r]))throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enableOnly(t.components[r].rules),t.components[r].rules2&&e[r].ruler2.enableOnly(t.components[r].rules2)}),this},De.prototype.enable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){r=r.concat(this[e].ruler.enable(t,!0))},this),r=r.concat(this.inline.ruler2.enable(t,!0));var i=t.filter(function(t){return r.indexOf(t)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},De.prototype.disable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(e){r=r.concat(this[e].ruler.disable(t,!0))},this),r=r.concat(this.inline.ruler2.disable(t,!0));var i=t.filter(function(t){return r.indexOf(t)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},De.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},De.prototype.parse=function(t,e){if("string"!=typeof t)throw new Error("Input data should be a String");var r=new this.core.State(t,this,e);return this.core.process(r),r.tokens},De.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},De.prototype.parseInline=function(t,e){var r=new this.core.State(t,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens},De.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Ee=De},94944:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return lt}});var i,n=r(74721),a=r(3604),o=r(20908),s=r(30388),l=r(41034),c=r(23772),u=r(25026),h=r(69492),d=r(81587),p=r(52067),g=r(51266),f=r(17362),y=r(34539),m=r(40985),v=r(68548),x=r(79510),b=r(39326),k=r(12646),C=r(63219),A={L:"left",R:"right",T:"top",B:"bottom"},D={L:(0,v.K2)(function(t){return"".concat(t,",").concat(t/2," 0,").concat(t," 0,0")},"L"),R:(0,v.K2)(function(t){return"0,".concat(t/2," ").concat(t,",0 ").concat(t,",").concat(t)},"R"),T:(0,v.K2)(function(t){return"0,0 ".concat(t,",0 ").concat(t/2,",").concat(t)},"T"),B:(0,v.K2)(function(t){return"".concat(t/2,",0 ").concat(t,",").concat(t," 0,").concat(t)},"B")},E={L:(0,v.K2)(function(t,e){return t-e+2},"L"),R:(0,v.K2)(function(t,e){return t-2},"R"),T:(0,v.K2)(function(t,e){return t-e+2},"T"),B:(0,v.K2)(function(t,e){return t-2},"B")},T=(0,v.K2)(function(t){return S(t)?"L"===t?"R":"L":"T"===t?"B":"T"},"getOppositeArchitectureDirection"),w=(0,v.K2)(function(t){return"L"===t||"R"===t||"T"===t||"B"===t},"isArchitectureDirection"),S=(0,v.K2)(function(t){return"L"===t||"R"===t},"isArchitectureDirectionX"),F=(0,v.K2)(function(t){return"T"===t||"B"===t},"isArchitectureDirectionY"),_=(0,v.K2)(function(t,e){var r=S(t)&&F(e),i=F(t)&&S(e);return r||i},"isArchitectureDirectionXY"),B=(0,v.K2)(function(t){var e=t[0],r=t[1],i=S(e)&&F(r),n=F(e)&&S(r);return i||n},"isArchitecturePairXY"),L=(0,v.K2)(function(t){return"LL"!==t&&"RR"!==t&&"TT"!==t&&"BB"!==t},"isValidArchitectureDirectionPair"),I=(0,v.K2)(function(t,e){var r="".concat(t).concat(e);return L(r)?r:void 0},"getArchitectureDirectionPair"),R=(0,v.K2)(function(t,e){var r=(0,d.A)(t,2),i=r[0],n=r[1],a=e[0],o=e[1];return S(a)?F(o)?[i+("L"===a?-1:1),n+("T"===o?1:-1)]:[i+("L"===a?-1:1),n]:S(o)?[i+("L"===o?1:-1),n+("T"===a?1:-1)]:[i,n+("T"===a?1:-1)]},"shiftPositionByArchitectureDirectionPair"),O=(0,v.K2)(function(t){return"LT"===t||"TL"===t?[1,1]:"BL"===t||"LB"===t?[1,-1]:"BR"===t||"RB"===t?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),M=(0,v.K2)(function(t,e){return _(t,e)?"bend":S(t)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),N=(0,v.K2)(function(t){return"service"===t.type},"isArchitectureService"),K=(0,v.K2)(function(t){return"junction"===t.type},"isArchitectureJunction"),P=(0,v.K2)(function(t){return t.data()},"edgeData"),q=(0,v.K2)(function(t){return t.data()},"nodeData"),z=m.UI.architecture,W=(i=function(){return(0,h.A)(function t(){(0,u.A)(this,t),this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.diagramId="",this.setAccTitle=m.SV,this.getAccTitle=m.iN,this.setDiagramTitle=m.ke,this.getDiagramTitle=m.ab,this.getAccDescription=m.m7,this.setAccDescription=m.EI,this.clear()},[{key:"setDiagramId",value:function(t){this.diagramId=t}},{key:"getDiagramId",value:function(){return this.diagramId}},{key:"clear",value:function(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},this.diagramId="",(0,m.IU)()}},{key:"addService",value:function(t){var e=t.id,r=t.icon,i=t.in,n=t.title,a=t.iconText;if(void 0!==this.registeredIds[e])throw new Error("The service id [".concat(e,"] is already in use by another ").concat(this.registeredIds[e]));if(void 0!==i){if(e===i)throw new Error("The service [".concat(e,"] cannot be placed within itself"));if(void 0===this.registeredIds[i])throw new Error("The service [".concat(e,"]'s parent does not exist. Please make sure the parent is created before this service"));if("node"===this.registeredIds[i])throw new Error("The service [".concat(e,"]'s parent is not a group"))}this.registeredIds[e]="node",this.nodes[e]={id:e,type:"service",icon:r,iconText:a,title:n,edges:[],in:i}}},{key:"getServices",value:function(){return Object.values(this.nodes).filter(N)}},{key:"addJunction",value:function(t){var e=t.id,r=t.in;if(void 0!==this.registeredIds[e])throw new Error("The junction id [".concat(e,"] is already in use by another ").concat(this.registeredIds[e]));if(void 0!==r){if(e===r)throw new Error("The junction [".concat(e,"] cannot be placed within itself"));if(void 0===this.registeredIds[r])throw new Error("The junction [".concat(e,"]'s parent does not exist. Please make sure the parent is created before this junction"));if("node"===this.registeredIds[r])throw new Error("The junction [".concat(e,"]'s parent is not a group"))}this.registeredIds[e]="node",this.nodes[e]={id:e,type:"junction",edges:[],in:r}}},{key:"getJunctions",value:function(){return Object.values(this.nodes).filter(K)}},{key:"getNodes",value:function(){return Object.values(this.nodes)}},{key:"getNode",value:function(t){var e;return null!==(e=this.nodes[t])&&void 0!==e?e:null}},{key:"addGroup",value:function(t){var e,r=t.id,i=t.icon,n=t.in,a=t.title;if(void 0!==(null===(e=this.registeredIds)||void 0===e?void 0:e[r]))throw new Error("The group id [".concat(r,"] is already in use by another ").concat(this.registeredIds[r]));if(void 0!==n){var o,s;if(r===n)throw new Error("The group [".concat(r,"] cannot be placed within itself"));if(void 0===(null===(o=this.registeredIds)||void 0===o?void 0:o[n]))throw new Error("The group [".concat(r,"]'s parent does not exist. Please make sure the parent is created before this group"));if("node"===(null===(s=this.registeredIds)||void 0===s?void 0:s[n]))throw new Error("The group [".concat(r,"]'s parent is not a group"))}this.registeredIds[r]="group",this.groups[r]={id:r,icon:i,title:a,in:n}}},{key:"getGroups",value:function(){return Object.values(this.groups)}},{key:"addEdge",value:function(t){var e=t.lhsId,r=t.rhsId,i=t.lhsDir,n=t.rhsDir,a=t.lhsInto,o=t.rhsInto,s=t.lhsGroup,l=t.rhsGroup,c=t.title;if(!w(i))throw new Error("Invalid direction given for left hand side of edge ".concat(e,"--").concat(r,". Expected (L,R,T,B) got ").concat(String(i)));if(!w(n))throw new Error("Invalid direction given for right hand side of edge ".concat(e,"--").concat(r,". Expected (L,R,T,B) got ").concat(String(n)));if(void 0===this.nodes[e]&&void 0===this.groups[e])throw new Error("The left-hand id [".concat(e,"] does not yet exist. Please create the service/group before declaring an edge to it."));if(void 0===this.nodes[r]&&void 0===this.groups[r])throw new Error("The right-hand id [".concat(r,"] does not yet exist. Please create the service/group before declaring an edge to it."));var u=this.nodes[e].in,h=this.nodes[r].in;if(s&&u&&h&&u==h)throw new Error("The left-hand id [".concat(e,"] is modified to traverse the group boundary, but the edge does not pass through two groups."));if(l&&u&&h&&u==h)throw new Error("The right-hand id [".concat(r,"] is modified to traverse the group boundary, but the edge does not pass through two groups."));var d={lhsId:e,lhsDir:i,lhsInto:a,lhsGroup:s,rhsId:r,rhsDir:n,rhsInto:o,rhsGroup:l,title:c};this.edges.push(d),this.nodes[e]&&this.nodes[r]&&(this.nodes[e].edges.push(this.edges[this.edges.length-1]),this.nodes[r].edges.push(this.edges[this.edges.length-1]))}},{key:"getEdges",value:function(){return this.edges}},{key:"getDataStructures",value:function(){var t=this;if(void 0===this.dataStructures){for(var e={},r=Object.entries(this.nodes).reduce(function(r,i){var n=(0,d.A)(i,2),a=n[0],o=n[1];return r[a]=o.edges.reduce(function(r,i){var n,o,s=null===(n=t.getNode(i.lhsId))||void 0===n?void 0:n.in,l=null===(o=t.getNode(i.rhsId))||void 0===o?void 0:o.in;if(s&&l&&s!==l){var c,u,h=M(i.lhsDir,i.rhsDir);if("bend"!==h)null!==(c=e[s])&&void 0!==c||(e[s]={}),e[s][l]=h,null!==(u=e[l])&&void 0!==u||(e[l]={}),e[l][s]=h}if(i.lhsId===a){var d=I(i.lhsDir,i.rhsDir);d&&(r[d]=i.rhsId)}else{var p=I(i.rhsDir,i.lhsDir);p&&(r[p]=i.lhsId)}return r},{}),r},{}),i=Object.keys(r)[0],n=(0,c.A)({},i,1),a=Object.keys(r).reduce(function(t,e){return e===i?t:(0,l.A)((0,l.A)({},t),{},(0,c.A)({},e,1))},{}),o=(0,v.K2)(function(t){for(var e=(0,c.A)({},t,[0,0]),i=[t],o=function(){var t=i.shift();if(t){n[t]=1,delete a[t];var o=r[t],s=(0,d.A)(e[t],2),l=s[0],c=s[1];Object.entries(o).forEach(function(t){var r=(0,d.A)(t,2),a=r[0],o=r[1];n[o]||(e[o]=R([l,c],a),i.push(o))})}};i.length>0;)o();return e},"BFS"),s=[o(i)];Object.keys(a).length>0;)s.push(o(Object.keys(a)[0]));this.dataStructures={adjList:r,spatialMaps:s,groupAlignments:e}}return this.dataStructures}},{key:"setElementForId",value:function(t,e){this.elements[t]=e}},{key:"getElementById",value:function(t){return this.elements[t]}},{key:"getConfig",value:function(){return(0,y.$t)((0,l.A)((0,l.A)({},z),(0,m.zj)().architecture))}},{key:"getConfigField",value:function(t){return this.getConfig()[t]}}])}(),(0,v.K2)(i,"ArchitectureDB"),i),Y=(0,v.K2)(function(t,e){(0,f.S)(t,e),t.groups.map(function(t){return e.addGroup(t)}),t.services.map(function(t){return e.addService((0,l.A)((0,l.A)({},t),{},{type:"service"}))}),t.junctions.map(function(t){return e.addJunction((0,l.A)((0,l.A)({},t),{},{type:"junction"}))}),t.edges.map(function(t){return e.addEdge(t)})},"populateDb"),$={parser:{yy:void 0},parse:(0,v.K2)(function(){var t=(0,s.A)((0,o.A)().m(function t(e){var r,i,n;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,(0,x.qg)("architecture",e);case 1:if(i=t.v,v.Rm.debug(i),(n=null===(r=$.parser)||void 0===r?void 0:r.yy)instanceof W){t.n=2;break}throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");case 2:Y(i,n);case 3:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),"parse")},j=(0,v.K2)(function(t){return"\n  .edge {\n    stroke-width: ".concat(t.archEdgeWidth,";\n    stroke: ").concat(t.archEdgeColor,";\n    fill: none;\n  }\n\n  .arrow {\n    fill: ").concat(t.archEdgeArrowColor,";\n  }\n\n  .node-bkg {\n    fill: none;\n    stroke: ").concat(t.archGroupBorderColor,";\n    stroke-width: ").concat(t.archGroupBorderWidth,";\n    stroke-dasharray: 8;\n  }\n  .node-icon-text {\n    display: flex; \n    align-items: center;\n  }\n  \n  .node-icon-text > div {\n    color: #fff;\n    margin: 1px;\n    height: fit-content;\n    text-align: center;\n    overflow: hidden;\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n  }\n")},"getStyles"),U=(0,v.K2)(function(t){return'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>'.concat(t,"</g>")},"wrapIcon"),H={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:U('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:U('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:U('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:U('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:U('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:g.Gc,blank:{body:U("")}}},V=(0,v.K2)(function(){var t=(0,s.A)((0,o.A)().m(function t(e,r,i,n){var a,l,c,u,h;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return a=i.getConfigField("padding"),l=i.getConfigField("iconSize"),c=l/2,h=(u=l/6)/2,t.n=1,Promise.all(r.edges().map(function(){var t=(0,s.A)((0,o.A)().m(function t(r){var s,l,p,f,v,x,b,k,C,A,T,w,L,R,M,N,K,q,z,W,Y,$,j,U,H,V,G,X,Z,Q,J,tt,et,rt,it,nt,at;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:if(p=P(r),f=p.source,v=p.sourceDir,x=p.sourceArrow,b=p.sourceGroup,k=p.target,C=p.targetDir,A=p.targetArrow,T=p.targetGroup,w=p.label,L=r[0].sourceEndpoint(),R=L.x,M=L.y,N=r[0].midpoint(),K=N.x,q=N.y,z=r[0].targetEndpoint(),W=z.x,Y=z.y,$=a+4,b&&(S(v)?R+="L"===v?-$:$:M+="T"===v?-$:$+18),T&&(S(C)?W+="L"===C?-$:$:Y+="T"===C?-$:$+18),b||"junction"!==(null===(s=i.getNode(f))||void 0===s?void 0:s.type)||(S(v)?R+="L"===v?c:-c:M+="T"===v?c:-c),T||"junction"!==(null===(l=i.getNode(k))||void 0===l?void 0:l.type)||(S(C)?W+="L"===C?c:-c:Y+="T"===C?c:-c),!r[0]._private.rscratch){t.n=2;break}if((j=e.insert("g")).insert("path").attr("d","M ".concat(R,",").concat(M," L ").concat(K,",").concat(q," L").concat(W,",").concat(Y," ")).attr("class","edge").attr("id","".concat(n,"-").concat((0,y.rY)(f,k,{prefix:"L"}))),x&&(U=S(v)?E[v](R,u):R-h,H=F(v)?E[v](M,u):M-h,j.insert("polygon").attr("points",D[v](u)).attr("transform","translate(".concat(U,",").concat(H,")")).attr("class","arrow")),A&&(V=S(C)?E[C](W,u):W-h,G=F(C)?E[C](Y,u):Y-h,j.insert("polygon").attr("points",D[C](u)).attr("transform","translate(".concat(V,",").concat(G,")")).attr("class","arrow")),!w){t.n=2;break}return X=_(v,C)?"XY":S(v)?"X":"Y",Z=0,Z="X"===X?Math.abs(R-W):"Y"===X?Math.abs(M-Y)/1.5:Math.abs(R-W)/2,Q=j.append("g"),t.n=1,(0,g.GZ)(Q,w,{useHtmlLabels:!1,width:Z,classes:"architecture-service-label"},(0,m.D7)());case 1:Q.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),"X"===X?Q.attr("transform","translate("+K+", "+q+")"):"Y"===X?Q.attr("transform","translate("+K+", "+q+") rotate(-90)"):"XY"===X&&(J=I(v,C))&&B(J)&&(tt=Q.node().getBoundingClientRect(),et=O(J),rt=(0,d.A)(et,2),it=rt[0],nt=rt[1],Q.attr("dominant-baseline","auto").attr("transform","rotate(".concat(-1*it*nt*45,")")),at=Q.node().getBoundingClientRect(),Q.attr("transform","\n                translate(".concat(K,", ").concat(q-tt.height/2,")\n                translate(").concat(it*at.width/2,", ").concat(nt*at.height/2,")\n                rotate(").concat(-1*it*nt*45,", 0, ").concat(tt.height/2,")\n              ")));case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()));case 1:return t.a(2)}},t)}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"drawEdges"),G=(0,v.K2)(function(){var t=(0,s.A)((0,o.A)().m(function t(e,r,i,n){var a,l,c,u,h;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return a=i.getConfigField("padding"),l=.75*a,c=i.getConfigField("fontSize"),u=i.getConfigField("iconSize"),h=u/2,t.n=1,Promise.all(r.nodes().map(function(){var t=(0,s.A)((0,o.A)().m(function t(r){var a,s,u,d,p,f,y,v,x,b,k,C,A,D;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:if("group"!==(a=q(r)).type){t.n=5;break}if(s=r.boundingBox(),u=s.h,d=s.w,p=s.x1,f=s.y1,(y=e.append("rect")).attr("id","".concat(n,"-group-").concat(a.id)).attr("x",p+h).attr("y",f+h).attr("width",d).attr("height",u).attr("class","node-bkg"),v=e.append("g"),x=p,b=f,!a.icon){t.n=2;break}return k=v.append("g"),A=k,D="<g>",t.n=1,(0,g.WY)(a.icon,{height:l,width:l,fallbackPrefix:H.prefix});case 1:A.html.call(A,D.concat.call(D,t.v,"</g>")),k.attr("transform","translate("+(x+h+1)+", "+(b+h+1)+")"),x+=l,b+=c/2-1-2;case 2:if(!a.label){t.n=4;break}return C=v.append("g"),t.n=3,(0,g.GZ)(C,a.label,{useHtmlLabels:!1,width:d,classes:"architecture-service-label"},(0,m.D7)());case 3:C.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),C.attr("transform","translate("+(x+h+4)+", "+(b+h+2)+")");case 4:i.setElementForId(a.id,y);case 5:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()));case 1:return t.a(2)}},t)}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"drawGroups"),X=(0,v.K2)(function(){var t=(0,s.A)((0,o.A)().m(function t(e,r,i,n){var s,l,c,u,h,d,p,f,y,v,x,b,k,C,A,D,E,T,w,S,F;return(0,o.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:s=(0,m.D7)(),l=(0,a.A)(i),t.p=1,l.s();case 2:if((c=l.n()).done){t.n=11;break}if(u=c.value,h=r.append("g"),d=e.getConfigField("iconSize"),!u.title){t.n=4;break}return p=h.append("g"),t.n=3,(0,g.GZ)(p,u.title,{useHtmlLabels:!1,width:1.5*d,classes:"architecture-service-label"},s);case 3:p.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),p.attr("transform","translate("+d/2+", "+d+")");case 4:if(f=h.append("g"),!u.icon){t.n=6;break}return E=f,T="<g>",t.n=5,(0,g.WY)(u.icon,{height:d,width:d,fallbackPrefix:H.prefix});case 5:E.html.call(E,T.concat.call(T,t.v,"</g>")),t.n=9;break;case 6:if(!u.iconText){t.n=8;break}return w=f,S="<g>",t.n=7,(0,g.WY)("blank",{height:d,width:d,fallbackPrefix:H.prefix});case 7:w.html.call(w,S.concat.call(S,t.v,"</g>")),v=f.append("g"),x=v.append("foreignObject").attr("width",d).attr("height",d),b=x.append("div").attr("class","node-icon-text").attr("style","height: ".concat(d,"px;")).append("div").html((0,m.jZ)(u.iconText,s)),k=null!==(y=parseInt(window.getComputedStyle(b.node(),null).getPropertyValue("font-size").replace(/\D/g,"")))&&void 0!==y?y:16,b.attr("style","-webkit-line-clamp: ".concat(Math.floor((d-2)/k),";")),t.n=9;break;case 8:f.append("path").attr("class","node-bkg").attr("id","".concat(n,"-node-").concat(u.id)).attr("d","M0,".concat(d," V5 Q0,0 5,0 H").concat(d-5," Q").concat(d,",0 ").concat(d,",5 V").concat(d," Z"));case 9:h.attr("id","".concat(n,"-service-").concat(u.id)).attr("class","architecture-service"),C=h.node().getBBox(),A=C.width,D=C.height,u.width=A,u.height=D,e.setElementForId(u.id,h);case 10:t.n=2;break;case 11:t.n=13;break;case 12:t.p=12,F=t.v,l.e(F);case 13:return t.p=13,l.f(),t.f(13);case 14:return t.a(2,0)}},t,null,[[1,12,13,14]])}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"drawServices"),Z=(0,v.K2)(function(t,e,r,i){r.forEach(function(r){var n=e.append("g"),a=t.getConfigField("iconSize");n.append("g").append("rect").attr("id","".concat(i,"-node-").concat(r.id)).attr("fill-opacity","0").attr("width",a).attr("height",a),n.attr("class","architecture-junction");var o=n._groups[0][0].getBBox(),s=o.width,l=o.height;n.width=s,n.height=l,t.setElementForId(r.id,n)})},"drawJunctions");function Q(t,e,r){t.forEach(function(t){e.add({group:"nodes",data:{type:"service",id:t.id,icon:t.icon,label:t.title,parent:t.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-service"})})}function J(t,e,r){t.forEach(function(t){e.add({group:"nodes",data:{type:"junction",id:t.id,parent:t.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-junction"})})}function tt(t,e){e.nodes().map(function(e){var r=q(e);"group"!==r.type&&(r.x=e.position().x,r.y=e.position().y,t.getElementById(r.id).attr("transform","translate("+(r.x||0)+","+(r.y||0)+")"))})}function et(t,e){t.forEach(function(t){e.add({group:"nodes",data:{type:"group",id:t.id,icon:t.icon,label:t.title,parent:t.in},classes:"node-group"})})}function rt(t,e){t.forEach(function(t){var r=t.lhsId,i=t.rhsId,n=t.lhsInto,a=t.lhsGroup,o=t.rhsInto,s=t.lhsDir,l=t.rhsDir,c=t.rhsGroup,u=t.title,h=_(t.lhsDir,t.rhsDir)?"segments":"straight",d={id:"".concat(r,"-").concat(i),label:u,source:r,sourceDir:s,sourceArrow:n,sourceGroup:a,sourceEndpoint:"L"===s?"0 50%":"R"===s?"100% 50%":"T"===s?"50% 0":"50% 100%",target:i,targetDir:l,targetArrow:o,targetGroup:c,targetEndpoint:"L"===l?"0 50%":"R"===l?"100% 50%":"T"===l?"50% 0":"50% 100%"};e.add({group:"edges",data:d,classes:h})})}function it(t,e,r){var i=(0,v.K2)(function(t,e){return Object.entries(t).reduce(function(t,i){var a=(0,d.A)(i,2),o=a[0],s=a[1],l=0,c=Object.entries(s);if(1===c.length)return t[o]=c[0][1],t;for(var u=0;u<c.length-1;u++)for(var h=u+1;h<c.length;h++){var p,g,f=(0,d.A)(c[u],2),y=f[0],m=f[1],v=(0,d.A)(c[h],2),x=v[0],b=v[1];if((null===(p=r[y])||void 0===p?void 0:p[x])===e)null!==(g=t[o])&&void 0!==g||(t[o]=[]),t[o]=[].concat((0,n.A)(t[o]),(0,n.A)(m),(0,n.A)(b));else if("default"===y||"default"===x){var k;null!==(k=t[o])&&void 0!==k||(t[o]=[]),t[o]=[].concat((0,n.A)(t[o]),(0,n.A)(m),(0,n.A)(b))}else{t["".concat(o,"-").concat(l++)]=m,t["".concat(o,"-").concat(l++)]=b}}return t},{})},"flattenAlignments"),a=e.map(function(e){var r={},n={};return Object.entries(e).forEach(function(e){var i,a,o,s,l,c,u,h,p=(0,d.A)(e,2),g=p[0],f=(0,d.A)(p[1],2),y=f[0],m=f[1],v=null!==(i=null===(a=t.getNode(g))||void 0===a?void 0:a.in)&&void 0!==i?i:"default";null!==(o=r[m])&&void 0!==o||(r[m]={}),null!==(l=(s=r[m])[v])&&void 0!==l||(s[v]=[]),r[m][v].push(g),null!==(c=n[y])&&void 0!==c||(n[y]={}),null!==(h=(u=n[y])[v])&&void 0!==h||(u[v]=[]),n[y][v].push(g)}),{horiz:Object.values(i(r,"horizontal")).filter(function(t){return t.length>1}),vert:Object.values(i(n,"vertical")).filter(function(t){return t.length>1})}}).reduce(function(t,e){var r=(0,d.A)(t,2),i=r[0],a=r[1],o=e.horiz,s=e.vert;return[[].concat((0,n.A)(i),(0,n.A)(o)),[].concat((0,n.A)(a),(0,n.A)(s))]},[[],[]]),o=(0,d.A)(a,2);return{horizontal:o[0],vertical:o[1]}}function nt(t,e){var r=[],i=(0,v.K2)(function(t){return"".concat(t[0],",").concat(t[1])},"posToStr"),n=(0,v.K2)(function(t){return t.split(",").map(function(t){return parseInt(t)})},"strToPos");return t.forEach(function(t){for(var a=Object.fromEntries(Object.entries(t).map(function(t){var e=(0,d.A)(t,2),r=e[0],n=e[1];return[i(n),r]})),o=[i([0,0])],s={},l={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]},u=function(){var t=o.shift();if(t){s[t]=1;var u=a[t];if(u){var h=n(t);Object.entries(l).forEach(function(t){var n=(0,d.A)(t,2),l=n[0],p=n[1],g=i([h[0]+p[0],h[1]+p[1]]),f=a[g];f&&!s[g]&&(o.push(g),r.push((0,c.A)((0,c.A)((0,c.A)({},A[l],f),A[T(l)],u),"gap",1.5*e.getConfigField("iconSize"))))})}}};o.length>0;)u()}),r}function at(t,e,r,i,n,a){var o=a.spatialMaps,s=a.groupAlignments;return new Promise(function(a){var l=(0,C.Ltv)("body").append("div").attr("id","cy").attr("style","display:none"),c=(0,b.A)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":"".concat(n.getConfigField("fontSize"),"px")}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:"".concat(n.getConfigField("padding"),"px")}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});l.remove(),et(r,c),Q(t,c,n),J(e,c,n),rt(i,c);var u=it(n,o,s),h=nt(o,n),p=n.getConfigField("iconSize"),g=n.getConfigField("idealEdgeLengthMultiplier")*p,f=.5*p,y=n.getConfigField("edgeElasticity"),m=c.layout({name:"fcose",quality:"proof",randomize:n.getConfigField("randomize"),nodeSeparation:n.getConfigField("nodeSeparation"),numIter:n.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength:function(t){var e=t.connectedNodes(),r=(0,d.A)(e,2),i=r[0],n=r[1];return q(i).parent===q(n).parent?g:f},edgeElasticity:function(t){var e=t.connectedNodes(),r=(0,d.A)(e,2),i=r[0],n=r[1];return q(i).parent===q(n).parent?y:.001},alignmentConstraint:u,relativePlacementConstraint:h});m.one("layoutstop",function(){function t(t,e,r,i){var n,a,o=t.x,s=t.y,l=e.x,c=e.y;a=(i-s+(o-r)*(s-c)/(o-l))/Math.sqrt(1+Math.pow((s-c)/(o-l),2)),n=Math.sqrt(Math.pow(i-s,2)+Math.pow(r-o,2)-Math.pow(a,2)),n/=Math.sqrt(Math.pow(l-o,2)+Math.pow(c-s,2));var u=(l-o)*(i-s)-(c-s)*(r-o);switch(!0){case u>=0:u=1;break;case u<0:u=-1}var h=(l-o)*(r-o)+(c-s)*(i-s);switch(!0){case h>=0:h=1;break;case h<0:h=-1}return{distances:a=Math.abs(a)*u,weights:n*=h}}(0,v.K2)(t,"getSegmentWeights"),c.startBatch();for(var e=0,r=Object.values(c.edges());e<r.length;e++){var i,n=r[e];if(null!==(i=n.data)&&void 0!==i&&i.call(n)){var a=n.source().position(),o=a.x,s=a.y,l=n.target().position(),u=l.x,h=l.y;if(o!==u&&s!==h){var p=n.sourceEndpoint(),g=n.targetEndpoint(),f=P(n).sourceDir,y=F(f)?[p.x,g.y]:[g.x,p.y],x=(0,d.A)(y,2),b=t(p,g,x[0],x[1]),k=b.weights,C=b.distances;n.style("segment-distances",C),n.style("segment-weights",k)}}}c.endBatch(),m.run()}),m.run(),c.ready(function(t){v.Rm.info("Ready",t),a(c)})})}(0,g.pC)([{name:H.prefix,icons:H}]),b.A.use(k),(0,v.K2)(Q,"addServices"),(0,v.K2)(J,"addJunctions"),(0,v.K2)(tt,"positionNodes"),(0,v.K2)(et,"addGroups"),(0,v.K2)(rt,"addEdges"),(0,v.K2)(it,"getAlignments"),(0,v.K2)(nt,"getRelativeConstraints"),(0,v.K2)(at,"layoutArchitecture");var ot=(0,v.K2)(function(){var t=(0,s.A)((0,o.A)().m(function t(e,r,i,n){var a,s,l,c,u,h,d,g,f,y,v;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return(a=n.db).setDiagramId(r),s=a.getServices(),l=a.getJunctions(),c=a.getGroups(),u=a.getEdges(),h=a.getDataStructures(),d=(0,p.D)(r),(g=d.append("g")).attr("class","architecture-edges"),(f=d.append("g")).attr("class","architecture-services"),(y=d.append("g")).attr("class","architecture-groups"),t.n=1,X(a,f,s,r);case 1:return Z(a,f,l,r),t.n=2,at(s,l,c,u,a,h);case 2:return v=t.v,t.n=3,V(g,v,a,r);case 3:return t.n=4,G(y,v,a,r);case 4:tt(a,v),(0,m.ot)(void 0,d,a.getConfigField("padding"),a.getConfigField("useMaxWidth"));case 5:return t.a(2)}},t)}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"draw"),st={draw:ot},lt={parser:$,get db(){return new W},renderer:st,styles:j}},81245:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return $e}});var i,n,a,o=r(20908),s=r(54119),l=r(30388),c=r(74721),u=r(3604),h=r(41034),d=(r(74423),r(43840)),p=r(607),g=r(43376),f=r(51266),y=r(34539),m=r(40985),v=r(68548),x=r(67702),b=r(90735),k=r(62962),C=r(63219),A=r(18668),D=function(){var t=(0,v.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,15],r=[1,7],i=[1,13],n=[1,14],a=[1,19],o=[1,16],s=[1,17],l=[1,18],c=[8,30],u=[8,10,21,28,29,30,31,39,43,46],d=[1,23],p=[1,24],g=[8,10,15,16,21,28,29,30,31,39,43,46],f=[8,10,15,16,21,27,28,29,30,31,39,43,46],y=[1,49],m={trace:(0,v.K2)(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:(0,v.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 4:i.getLogger().debug("Rule: separator (NL) ");break;case 5:i.getLogger().debug("Rule: separator (Space) ");break;case 6:i.getLogger().debug("Rule: separator (EOF) ");break;case 7:i.getLogger().debug("Rule: hierarchy: ",a[s-1]),i.setHierarchy(a[s-1]);break;case 8:i.getLogger().debug("Stop NL ");break;case 9:i.getLogger().debug("Stop EOF ");break;case 10:i.getLogger().debug("Stop NL2 ");break;case 11:i.getLogger().debug("Stop EOF2 ");break;case 12:i.getLogger().debug("Rule: statement: ",a[s]),"number"==typeof a[s].length?this.$=a[s]:this.$=[a[s]];break;case 13:i.getLogger().debug("Rule: statement #2: ",a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:i.getLogger().debug("Rule: link: ",a[s],t),this.$={edgeTypeStr:a[s],label:""};break;case 15:i.getLogger().debug("Rule: LABEL link: ",a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:var l=parseInt(a[s]),c=i.generateId();this.$={id:c,type:"space",label:"",width:l,children:[]};break;case 23:i.getLogger().debug("Rule: (nodeStatement link node) ",a[s-2],a[s-1],a[s]," typestr: ",a[s-1].edgeTypeStr);var u=i.edgeStrToEdgeData(a[s-1].edgeTypeStr),d=i.edgeStrToEdgeStartData(a[s-1].edgeTypeStr),p=i.edgeStrToThickness(a[s-1].edgeTypeStr),g=i.edgeStrToPattern(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+"-"+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:"edge",thickness:p,pattern:g,directions:a[s].directions,arrowTypeEnd:u,arrowTypeStart:d},{id:a[s].id,label:a[s].label,type:i.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:i.getLogger().debug("Rule: nodeStatement (abc88 node size) ",a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:i.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:i.getLogger().debug("Rule: nodeStatement (node) ",a[s]),this.$={id:a[s].id,label:a[s].label,type:i.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:i.getLogger().debug("APA123",this?this:"na"),i.getLogger().debug("COLUMNS: ",a[s]),this.$={type:"column-setting",columns:"auto"===a[s]?-1:parseInt(a[s])};break;case 27:i.getLogger().debug("Rule: id-block statement : ",a[s-2],a[s-1]);i.generateId();this.$=(0,h.A)((0,h.A)({},a[s-2]),{},{type:"composite",children:a[s-1]});break;case 28:i.getLogger().debug("Rule: blockStatement : ",a[s-2],a[s-1],a[s]);var f=i.generateId();this.$={id:f,type:"composite",label:"",children:a[s-1]};break;case 29:i.getLogger().debug("Rule: node (NODE_ID separator): ",a[s]),this.$={id:a[s]};break;case 30:i.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:i.getLogger().debug("Rule: dirList: ",a[s]),this.$=[a[s]];break;case 32:i.getLogger().debug("Rule: dirList: ",a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:i.getLogger().debug("Rule: nodeShapeNLabel: ",a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:i.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",a[s-3],a[s-2]," #3:",a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:"classDef",id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:"applyClass",id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:"applyStyles",id:a[s-1].trim(),stylesStr:a[s].trim()}}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:e,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:a,39:o,43:s,46:l},{8:[1,20]},t(c,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:e,21:r,28:i,29:n,31:a,39:o,43:s,46:l}),t(u,[2,16],{14:22,15:d,16:p}),t(u,[2,17]),t(u,[2,18]),t(u,[2,19]),t(u,[2,20]),t(u,[2,21]),t(u,[2,22]),t(g,[2,25],{27:[1,25]}),t(u,[2,26]),{19:26,26:12,31:a},{10:e,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:a,39:o,43:s,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},t(f,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},t(c,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},t(g,[2,24]),{10:e,11:37,13:4,14:22,15:d,16:p,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:a,39:o,43:s,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},t(f,[2,30]),{18:[1,43]},{18:[1,44]},t(g,[2,23]),{18:[1,45]},{30:[1,46]},t(u,[2,28]),t(u,[2,35]),t(u,[2,36]),t(u,[2,37]),t(u,[2,38]),{36:[1,47]},{33:48,34:y},{15:[1,50]},t(u,[2,27]),t(f,[2,33]),{38:[1,51]},{33:52,34:y,38:[2,31]},{31:[2,15]},t(f,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:(0,v.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,v.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,u=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var f=d.yylloc;a.push(f);var y=d.options&&d.options.ranges;function m(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,v.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,v.K2)(m,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=m()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:d.match,token:this.terminals_[x]||x,line:d.yylineno,loc:f,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(d.yytext),a.push(d.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,f=d.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,p.yy,C[1],n,a].concat(h))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},x=function(){return{EOF:1,parseError:(0,v.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,v.K2)(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},"setInput"),input:(0,v.K2)(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},"input"),unput:(0,v.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,v.K2)(function(){return this._more=!0,this},"more"),reject:(0,v.K2)(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})},"reject"),less:(0,v.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,v.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,v.K2)(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,"")},"upcomingInput"),showPosition:(0,v.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,v.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,v.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,v.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,v.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,v.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,v.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,v.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,v.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,v.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,v.K2)(function(t,e,r,i){switch(r){case 0:return t.getLogger().debug("Found block-beta"),10;case 1:return t.getLogger().debug("Found id-block"),29;case 2:return t.getLogger().debug("Found block"),10;case 3:t.getLogger().debug(".",e.yytext);break;case 4:t.getLogger().debug("_",e.yytext);break;case 5:return 5;case 6:return e.yytext=-1,28;case 7:return e.yytext=e.yytext.replace(/columns\s+/,""),t.getLogger().debug("COLUMNS (LEX)",e.yytext),28;case 8:case 76:case 77:case 99:this.pushState("md_string");break;case 9:return"MD_STR";case 10:case 34:case 79:this.popState();break;case 11:this.pushState("string");break;case 12:t.getLogger().debug("LEX: POPPING STR:",e.yytext),this.popState();break;case 13:return t.getLogger().debug("LEX: STR end:",e.yytext),"STR";case 14:return e.yytext=e.yytext.replace(/space\:/,""),t.getLogger().debug("SPACE NUM (LEX)",e.yytext),21;case 15:return e.yytext="1",t.getLogger().debug("COLUMNS (LEX)",e.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:case 38:case 40:case 41:case 44:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),t.getLogger().debug("Lex: ))"),"NODE_DEND";case 42:return this.popState(),t.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),t.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),t.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),t.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),t.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:case 49:return this.popState(),t.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),t.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),t.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),t.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),t.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return t.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return t.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return t.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:case 59:case 60:case 61:case 64:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return t.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 62:return t.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return t.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 65:case 66:case 67:case 68:case 69:case 70:case 71:return this.pushState("NODE"),35;case 72:return t.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),t.getLogger().debug("LEX ARR START"),37;case 74:return t.getLogger().debug("Lex: NODE_ID",e.yytext),31;case 75:return t.getLogger().debug("Lex: EOF",e.yytext),8;case 78:return"NODE_DESCR";case 80:t.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:t.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return t.getLogger().debug("LEX: NODE_DESCR:",e.yytext),"NODE_DESCR";case 83:t.getLogger().debug("LEX POPPING"),this.popState();break;case 84:t.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (right): dir:",e.yytext),"DIR";case 86:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (left):",e.yytext),"DIR";case 87:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (x):",e.yytext),"DIR";case 88:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (y):",e.yytext),"DIR";case 89:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (up):",e.yytext),"DIR";case 90:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (down):",e.yytext),"DIR";case 91:return e.yytext="]>",t.getLogger().debug("Lex (ARROW_DIR end):",e.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 93:case 94:case 95:return t.getLogger().debug("Lex: LINK",e.yytext),15;case 96:case 97:case 98:return t.getLogger().debug("Lex: START_LINK",e.yytext),this.pushState("LLABEL"),16;case 100:return t.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 102:case 103:return this.popState(),t.getLogger().debug("Lex: LINK",e.yytext),15;case 104:return t.getLogger().debug("Lex: COLON",e.yytext),e.yytext=e.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}}}();function b(){this.yy={}}return m.lexer=x,(0,v.K2)(b,"Parser"),b.prototype=m,m.Parser=b,new b}();D.parser=D;var E=D,T=new Map,w=[],S=new Map,F="color",_="fill",B=(0,m.D7)(),L=new Map,I="",R=(0,v.K2)(function(t){return m.Y2.sanitizeText(t,B)},"sanitizeText"),O=(0,v.K2)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=L.get(t);r||(r={id:t,styles:[],textStyles:[]},L.set(t,r)),null!=e&&e.split(",").forEach(function(t){var e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(F).exec(t)){var i=e.replace(_,"bgFill").replace(F,_);r.textStyles.push(i)}r.styles.push(e)})},"addStyleClass"),M=(0,v.K2)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=T.get(t);null!=e&&(r.styles=e.split(","))},"addStyle2Node"),N=(0,v.K2)(function(t,e){t.split(",").forEach(function(t){var r=T.get(t);if(void 0===r){var i=t.trim();r={id:i,type:"na",children:[]},T.set(i,r)}r.classes||(r.classes=[]),r.classes.push(e)})},"setCssClass"),K=(0,v.K2)(function(t,e){var r,i,n=t.flat(),a=[],o=n.find(function(t){return"column-setting"===(null==t?void 0:t.type)}),s=null!==(r=null==o?void 0:o.columns)&&void 0!==r?r:-1,l=(0,u.A)(n);try{for(l.s();!(i=l.n()).done;){var c,h,d=i.value;if("number"==typeof s&&s>0&&"column-setting"!==d.type&&"number"==typeof d.widthInColumns&&d.widthInColumns>s&&v.Rm.warn("Block ".concat(d.id," width ").concat(d.widthInColumns," exceeds configured column width ").concat(s)),d.label&&(d.label=R(d.label)),"classDef"!==d.type)if("applyClass"!==d.type)if("applyStyles"!==d.type)if("column-setting"===d.type)e.columns=null!==(c=d.columns)&&void 0!==c?c:-1;else if("edge"===d.type){var p,g=(null!==(p=S.get(d.id))&&void 0!==p?p:0)+1;S.set(d.id,g),d.id=g+"-"+d.id,w.push(d)}else{d.label||("composite"===d.type?d.label="":d.label=d.id);var f=T.get(d.id);if(void 0===f?T.set(d.id,d):("na"!==d.type&&(f.type=d.type),d.label!==d.id&&(f.label=d.label)),d.children&&K(d.children,d),"space"===d.type)for(var y,m=null!==(y=d.width)&&void 0!==y?y:1,b=0;b<m;b++){var k=(0,x.o)(d);k.id=k.id+"-"+b,T.set(k.id,k),a.push(k)}else void 0===f&&a.push(d)}else null!=d&&d.stylesStr&&M(d.id,null==d?void 0:d.stylesStr);else N(d.id,null!==(h=null==d?void 0:d.styleClass)&&void 0!==h?h:"");else O(d.id,d.css)}}catch(t){l.e(t)}finally{l.f()}e.children=a},"populateBlockDatabase"),P=[],q={id:"root",type:"composite",children:[],columns:-1},z=(0,v.K2)(function(){v.Rm.debug("Clear called"),(0,m.IU)(),q={id:"root",type:"composite",children:[],columns:-1},T=new Map([["root",q]]),P=[],L=new Map,w=[],S=new Map,I=""},"clear");function W(t){switch(v.Rm.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return v.Rm.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function Y(t){return v.Rm.debug("typeStr2Type",t),"=="===t?"thick":"normal"}function $(t){switch(t.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function j(t){switch(t.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function U(t){return t.includes("==")?"thick":"normal"}function H(t){return t.includes(".-")?"dotted":"solid"}(0,v.K2)(W,"typeStr2Type"),(0,v.K2)(Y,"edgeTypeStr2Type"),(0,v.K2)($,"edgeStrToEdgeData"),(0,v.K2)(j,"edgeStrToEdgeStartData"),(0,v.K2)(U,"edgeStrToThickness"),(0,v.K2)(H,"edgeStrToPattern");var V=0,G=(0,v.K2)(function(){return V++,"id-"+Math.random().toString(36).substr(2,12)+"-"+V},"generateId"),X=(0,v.K2)(function(t){q.children=t,K(t,q),P=q.children},"setHierarchy"),Z=(0,v.K2)(function(t){var e=T.get(t);return e?e.columns?e.columns:e.children?e.children.length:-1:-1},"getColumns"),Q=(0,v.K2)(function(){return(0,c.A)(T.values())},"getBlocksFlat"),J=(0,v.K2)(function(){return P||[]},"getBlocks"),tt=(0,v.K2)(function(){return w},"getEdges"),et=(0,v.K2)(function(t){return T.get(t)},"getBlock"),rt=(0,v.K2)(function(t){T.set(t.id,t)},"setBlock"),it=(0,v.K2)(function(t){I=t},"setDiagramId"),nt=(0,v.K2)(function(){return I},"getDiagramId"),at=(0,v.K2)(function(){return v.Rm},"getLogger"),ot=(0,v.K2)(function(){return L},"getClasses"),st={getConfig:(0,v.K2)(function(){return(0,m.zj)().block},"getConfig"),typeStr2Type:W,edgeTypeStr2Type:Y,edgeStrToEdgeData:$,edgeStrToEdgeStartData:j,edgeStrToThickness:U,edgeStrToPattern:H,getLogger:at,getBlocksFlat:Q,getBlocks:J,getEdges:tt,setHierarchy:X,getBlock:et,setBlock:rt,getColumns:Z,getClasses:ot,clear:z,generateId:G,setDiagramId:it,getDiagramId:nt},lt=(0,v.K2)(function(t,e){var r=k.A,i=r(t,"r"),n=r(t,"g"),a=r(t,"b");return b.A(i,n,a,e)},"fade"),ct=(0,v.K2)(function(t){return".label {\n    font-family: ".concat(t.fontFamily,";\n    color: ").concat(t.nodeTextColor||t.textColor,";\n  }\n  .cluster-label text {\n    fill: ").concat(t.titleColor,";\n  }\n  .cluster-label span,p {\n    color: ").concat(t.titleColor,";\n  }\n\n\n\n  .label text,span,p {\n    fill: ").concat(t.nodeTextColor||t.textColor,";\n    color: ").concat(t.nodeTextColor||t.textColor,";\n  }\n\n  .node rect,\n  .node circle,\n  .node ellipse,\n  .node polygon,\n  .node path {\n    fill: ").concat(t.mainBkg,";\n    stroke: ").concat(t.nodeBorder,";\n    stroke-width: 1px;\n  }\n  .flowchart-label text {\n    text-anchor: middle;\n  }\n  // .flowchart-label .text-outer-tspan {\n  //   text-anchor: middle;\n  // }\n  // .flowchart-label .text-inner-tspan {\n  //   text-anchor: start;\n  // }\n\n  .node .label {\n    text-align: center;\n  }\n  .node.clickable {\n    cursor: pointer;\n  }\n\n  .arrowheadPath {\n    fill: ").concat(t.arrowheadColor,";\n  }\n\n  .edgePath .path {\n    stroke: ").concat(t.lineColor,";\n    stroke-width: 2.0px;\n  }\n\n  .flowchart-link {\n    stroke: ").concat(t.lineColor,";\n    fill: none;\n  }\n\n  .edgeLabel {\n    background-color: ").concat(t.edgeLabelBackground,";\n    /*\n     * This is for backward compatibility with existing code that didn't\n     * add a `<p>` around edge labels.\n     *\n     * TODO: We should probably remove this in a future release.\n     */\n    p {\n      margin: 0;\n      padding: 0;\n      display: inline;\n    }\n    rect {\n      opacity: 0.5;\n      background-color: ").concat(t.edgeLabelBackground,";\n      fill: ").concat(t.edgeLabelBackground,";\n    }\n    text-align: center;\n  }\n\n  /* For html labels only */\n  .labelBkg {\n    background-color: ").concat(t.edgeLabelBackground,";\n  }\n\n  .node .cluster {\n    // fill: ").concat(lt(t.mainBkg,.5),";\n    fill: ").concat(lt(t.clusterBkg,.5),";\n    stroke: ").concat(lt(t.clusterBorder,.2),";\n    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n    stroke-width: 1px;\n  }\n\n  .cluster text {\n    fill: ").concat(t.titleColor,";\n  }\n\n  .cluster span,p {\n    color: ").concat(t.titleColor,";\n  }\n  /* .cluster div {\n    color: ").concat(t.titleColor,";\n  } */\n\n  div.mermaidTooltip {\n    position: absolute;\n    text-align: center;\n    max-width: 200px;\n    padding: 2px;\n    font-family: ").concat(t.fontFamily,";\n    font-size: 12px;\n    background: ").concat(t.tertiaryColor,";\n    border: 1px solid ").concat(t.border2,";\n    border-radius: 2px;\n    pointer-events: none;\n    z-index: 100;\n  }\n\n  .flowchartTitleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ").concat(t.textColor,";\n  }\n  ").concat((0,d.o)(),"\n")},"getStyles"),ut=(0,v.K2)(function(t,e,r,i){e.forEach(function(e){ht[e](t,r,i)})},"insertMarkers"),ht={extension:(0,v.K2)(function(t,e,r){v.Rm.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+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",r+"_"+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")},"extension"),composition:(0,v.K2)(function(t,e,r){t.append("defs").append("marker").attr("id",r+"_"+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",r+"_"+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")},"composition"),aggregation:(0,v.K2)(function(t,e,r){t.append("defs").append("marker").attr("id",r+"_"+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",r+"_"+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")},"aggregation"),dependency:(0,v.K2)(function(t,e,r){t.append("defs").append("marker").attr("id",r+"_"+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",r+"_"+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")},"dependency"),lollipop:(0,v.K2)(function(t,e,r){t.append("defs").append("marker").attr("id",r+"_"+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",r+"_"+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)},"lollipop"),point:(0,v.K2)(function(t,e,r){t.append("marker").attr("id",r+"_"+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",r+"_"+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")},"point"),circle:(0,v.K2)(function(t,e,r){t.append("marker").attr("id",r+"_"+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",r+"_"+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")},"circle"),cross:(0,v.K2)(function(t,e,r){t.append("marker").attr("id",r+"_"+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",r+"_"+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")},"cross"),barb:(0,v.K2)(function(t,e,r){t.append("defs").append("marker").attr("id",r+"_"+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")},"barb")},dt=ut,pt=null!==(i=null===(n=(0,m.D7)())||void 0===n||null===(a=n.block)||void 0===a?void 0:a.padding)&&void 0!==i?i:8;function gt(t,e){if(0===t||!Number.isInteger(t))throw new Error("Columns must be an integer !== 0.");if(e<0||!Number.isInteger(e))throw new Error("Position must be a non-negative integer."+e);return t<0?{px:e,py:0}:1===t?{px:0,py:e}:{px:e%t,py:Math.floor(e/t)}}(0,v.K2)(gt,"calculateBlockPosition");var ft=(0,v.K2)(function(t){var e,r=0,i=0,n=(0,u.A)(t.children);try{for(n.s();!(e=n.n()).done;){var a,o,s=e.value,l=null!==(a=s.size)&&void 0!==a?a:{width:0,height:0,x:0,y:0},c=l.width,h=l.height,d=l.x,p=l.y;if(v.Rm.debug("getMaxChildSize abc95 child:",s.id,"width:",c,"height:",h,"x:",d,"y:",p,s.type),"space"!==s.type){var g=c/(null!==(o=s.widthInColumns)&&void 0!==o?o:1);g>r&&(r=g),h>i&&(i=h)}}}catch(t){n.e(t)}finally{n.f()}return{width:r,height:i}},"getMaxChildSize");function yt(t,e){var r,i,n,a,o,s,l,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;v.Rm.debug("setBlockSizes abc95 (start)",t.id,null==t||null===(r=t.size)||void 0===r?void 0:r.x,"block width =",null==t?void 0:t.size,"siblingWidth",c),null!=t&&null!==(i=t.size)&&void 0!==i&&i.width||(t.size={width:c,height:h,x:0,y:0});var d=0,p=0;if((null===(n=t.children)||void 0===n?void 0:n.length)>0){var g,f,y,m,x=(0,u.A)(t.children);try{for(x.s();!(m=x.n()).done;){yt(m.value,e)}}catch(t){x.e(t)}finally{x.f()}var b=ft(t);d=b.width,p=b.height,v.Rm.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",d,p);var k,C=(0,u.A)(t.children);try{for(C.s();!(k=C.n()).done;){var A,D,E=k.value;if(E.size)v.Rm.debug("abc95 Setting size of children of ".concat(t.id," id=").concat(E.id," ").concat(d," ").concat(p," ").concat(JSON.stringify(E.size))),E.size.width=d*(null!==(A=E.widthInColumns)&&void 0!==A?A:1)+pt*((null!==(D=E.widthInColumns)&&void 0!==D?D:1)-1),E.size.height=p,E.size.x=0,E.size.y=0,v.Rm.debug("abc95 updating size of ".concat(t.id," children child:").concat(E.id," maxWidth:").concat(d," maxHeight:").concat(p))}}catch(t){C.e(t)}finally{C.f()}var T,w=(0,u.A)(t.children);try{for(w.s();!(T=w.n()).done;){yt(T.value,e,d,p)}}catch(t){w.e(t)}finally{w.f()}var S,F=null!==(g=t.columns)&&void 0!==g?g:-1,_=0,B=(0,u.A)(t.children);try{for(B.s();!(S=B.n()).done;){var L;_+=null!==(L=S.value.widthInColumns)&&void 0!==L?L:1}}catch(t){B.e(t)}finally{B.f()}var I=t.children.length;F>0&&F<_&&(I=F);var R=Math.ceil(_/I),O=I*(d+pt)+pt,M=R*(p+pt)+pt;if(O<c){v.Rm.debug("Detected to small sibling: abc95 ".concat(t.id," siblingWidth ").concat(c," siblingHeight ").concat(h," width ").concat(O)),O=c,M=h;var N=(c-I*pt-pt)/I,K=(h-R*pt-pt)/R;v.Rm.debug("Size indata abc88",t.id,"childWidth",N,"maxWidth",d),v.Rm.debug("Size indata abc88",t.id,"childHeight",K,"maxHeight",p),v.Rm.debug("Size indata abc88 xSize",I,"padding",pt);var P,q=(0,u.A)(t.children);try{for(q.s();!(P=q.n()).done;){var z=P.value;z.size&&(z.size.width=N,z.size.height=K,z.size.x=0,z.size.y=0)}}catch(t){q.e(t)}finally{q.f()}}if(v.Rm.debug("abc95 (finale calc) ".concat(t.id," xSize ").concat(I," ySize ").concat(R," columns ").concat(F).concat(t.children.length," width=").concat(Math.max(O,(null===(f=t.size)||void 0===f?void 0:f.width)||0))),O<((null==t||null===(y=t.size)||void 0===y?void 0:y.width)||0)){var W;O=(null==t||null===(W=t.size)||void 0===W?void 0:W.width)||0;var Y=F>0?Math.min(t.children.length,F):t.children.length;if(Y>0){var $,j=(O-Y*pt-pt)/Y;v.Rm.debug("abc95 (growing to fit) width",t.id,O,null===($=t.size)||void 0===$?void 0:$.width,j);var U,H=(0,u.A)(t.children);try{for(H.s();!(U=H.n()).done;){var V=U.value;V.size&&(V.size.width=j)}}catch(t){H.e(t)}finally{H.f()}}}t.size={width:O,height:M,x:0,y:0}}v.Rm.debug("setBlockSizes abc94 (done)",t.id,null==t||null===(a=t.size)||void 0===a?void 0:a.x,null==t||null===(o=t.size)||void 0===o?void 0:o.width,null==t||null===(s=t.size)||void 0===s?void 0:s.y,null==t||null===(l=t.size)||void 0===l?void 0:l.height)}function mt(t,e){var r,i,n,a,o,s,l;v.Rm.debug("abc85 layout blocks (=>layoutBlocks) ".concat(t.id," x: ").concat(null==t||null===(r=t.size)||void 0===r?void 0:r.x," y: ").concat(null==t||null===(i=t.size)||void 0===i?void 0:i.y," width: ").concat(null==t||null===(n=t.size)||void 0===n?void 0:n.width));var h=null!==(a=t.columns)&&void 0!==a?a:-1;if(v.Rm.debug("layoutBlocks columns abc95",t.id,"=>",h,t),t.children&&t.children.length>0){var d,p,g,f,y,m,x,b=null!==(d=null==t||null===(p=t.children[0])||void 0===p||null===(g=p.size)||void 0===g?void 0:g.width)&&void 0!==d?d:0,k=t.children.length*b+(t.children.length-1)*pt;v.Rm.debug("widthOfChildren 88",k,"posX");var C,A=new Map,D=0,E=(0,u.A)(t.children);try{for(E.s();!(C=E.n()).done;){var T,w,S=C.value;if(S.size){var F=gt(h,D).py,_=null!==(T=A.get(F))&&void 0!==T?T:0;S.size.height>_&&A.set(F,S.size.height);var B=null!==(w=null==S?void 0:S.widthInColumns)&&void 0!==w?w:1;h>0&&(B=Math.min(B,h-D%h)),D+=B}}}catch(t){E.e(t)}finally{E.f()}var L,I=new Map,R=0,O=(0,c.A)(A.keys()).sort(function(t,e){return t-e}),M=(0,u.A)(O);try{for(M.s();!(L=M.n()).done;){var N,K=L.value;I.set(K,R),R+=(null!==(N=A.get(K))&&void 0!==N?N:0)+pt}}catch(t){M.e(t)}finally{M.f()}var P=0;v.Rm.debug("abc91 block?.size?.x",t.id,null==t||null===(f=t.size)||void 0===f?void 0:f.x);var q,z=null!=t&&null!==(y=t.size)&&void 0!==y&&y.x?(null==t||null===(m=t.size)||void 0===m?void 0:m.x)+(-(null==t||null===(x=t.size)||void 0===x?void 0:x.width)/2||0):-pt,W=0,Y=(0,u.A)(t.children);try{for(Y.s();!(q=Y.n()).done;){var $,j,U,H=q.value,V=t;if(H.size){var G,X,Z,Q=H.size,J=Q.width,tt=Q.height,et=gt(h,P),rt=et.px,it=et.py;if(it!=W)W=it,z=null!=t&&null!==(G=t.size)&&void 0!==G&&G.x?(null==t||null===(X=t.size)||void 0===X?void 0:X.x)+(-(null==t||null===(Z=t.size)||void 0===Z?void 0:Z.width)/2||0):-pt,v.Rm.debug("New row in layout for block",t.id," and child ",H.id,W);if(v.Rm.debug("abc89 layout blocks (child) id: ".concat(H.id," Pos: ").concat(P," (px, py) ").concat(rt,",").concat(it," (").concat(null==V||null===($=V.size)||void 0===$?void 0:$.x,",").concat(null==V||null===(j=V.size)||void 0===j?void 0:j.y,") parent: ").concat(V.id," width: ").concat(J).concat(pt)),V.size){var nt,at,ot,st,lt=J/2;H.size.x=z+pt+lt,v.Rm.debug("abc91 layout blocks (calc) px, pyid:".concat(H.id," startingPos=X").concat(z," new startingPosX").concat(H.size.x," ").concat(lt," padding=").concat(pt," width=").concat(J," halfWidth=").concat(lt," => x:").concat(H.size.x," y:").concat(H.size.y," ").concat(H.widthInColumns," (width * (child?.w || 1)) / 2 ").concat(J*(null!==(nt=null==H?void 0:H.widthInColumns)&&void 0!==nt?nt:1)/2)),z=H.size.x+lt;var ct=null!==(at=I.get(it))&&void 0!==at?at:0,ut=null!==(ot=A.get(it))&&void 0!==ot?ot:tt;H.size.y=V.size.y-V.size.height/2+ct+ut/2+pt,v.Rm.debug("abc88 layout blocks (calc) px, pyid:".concat(H.id,"startingPosX").concat(z).concat(pt).concat(lt,"=>x:").concat(H.size.x,"y:").concat(H.size.y).concat(H.widthInColumns,"(width * (child?.w || 1)) / 2").concat(J*(null!==(st=null==H?void 0:H.widthInColumns)&&void 0!==st?st:1)/2))}H.children&&mt(H,e);var ht=null!==(U=null==H?void 0:H.widthInColumns)&&void 0!==U?U:1;h>0&&(ht=Math.min(ht,h-P%h)),P+=ht,v.Rm.debug("abc88 columnsPos",H,P)}}}catch(t){Y.e(t)}finally{Y.f()}}v.Rm.debug("layout blocks (<==layoutBlocks) ".concat(t.id," x: ").concat(null==t||null===(o=t.size)||void 0===o?void 0:o.x," y: ").concat(null==t||null===(s=t.size)||void 0===s?void 0:s.y," width: ").concat(null==t||null===(l=t.size)||void 0===l?void 0:l.width))}function vt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{minX:0,minY:0,maxX:0,maxY:0},r=e.minX,i=e.minY,n=e.maxX,a=e.maxY;if(t.size&&"root"!==t.id){var o=t.size,s=o.x,l=o.y,c=o.width,h=o.height;s-c/2<r&&(r=s-c/2),l-h/2<i&&(i=l-h/2),s+c/2>n&&(n=s+c/2),l+h/2>a&&(a=l+h/2)}if(t.children){var d,p=(0,u.A)(t.children);try{for(p.s();!(d=p.n()).done;){var g=vt(d.value,{minX:r,minY:i,maxX:n,maxY:a});r=g.minX,i=g.minY,n=g.maxX,a=g.maxY}}catch(t){p.e(t)}finally{p.f()}}return{minX:r,minY:i,maxX:n,maxY:a}}function xt(t){var e=t.getBlock("root");if(e){yt(e,t,0,0),mt(e,t),v.Rm.debug("getBlocks",JSON.stringify(e,null,2));var r=vt(e),i=r.minX,n=r.minY;return{x:i,y:n,width:r.maxX-i,height:r.maxY-n}}}(0,v.K2)(yt,"setBlockSizes"),(0,v.K2)(mt,"layoutBlocks"),(0,v.K2)(vt,"findBounds"),(0,v.K2)(xt,"layout");var bt=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r,i){var n,a,l,c,u,h=arguments;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return n=h.length>3&&void 0!==h[3]&&h[3],a=h.length>4&&void 0!==h[4]&&h[4],l=r||"","object"===(0,s.A)(l)&&(l=l[0]),c=(0,m.D7)(),u=(0,m.E)(c),t.n=1,(0,f.GZ)(e,l,{style:i,isTitle:n,useHtmlLabels:u,markdown:!1,isNode:a,width:Number.POSITIVE_INFINITY},c);case 1:return t.a(2,t.v)}},t)}));return function(e,r,i){return t.apply(this,arguments)}}(),"createLabel"),kt=bt,Ct=(0,v.K2)(function(t,e,r,i,n){e.arrowTypeStart&&Dt(t,"start",e.arrowTypeStart,r,i,n),e.arrowTypeEnd&&Dt(t,"end",e.arrowTypeEnd,r,i,n)},"addEdgeMarkers"),At={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Dt=(0,v.K2)(function(t,e,r,i,n,a){var o=At[r];if(o){var s="start"===e?"Start":"End";t.attr("marker-".concat(e),"url(".concat(i,"#").concat(n,"_").concat(a,"-").concat(o).concat(s,")"))}else v.Rm.warn("Unknown arrow type: ".concat(r))},"addEdgeMarker"),Et={},Tt={},wt=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u,h,d,g,y,v,x,b,k,A,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W,Y;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return i=(0,m.D7)(),n=(0,m.E)(i),a=e.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label"),l="markdown"===r.labelType,t.n=1,(0,f.GZ)(e,r.label,{style:r.labelStyle,useHtmlLabels:n,addSvgBackground:l,isNode:!1,markdown:l,width:l?void 0:Number.POSITIVE_INFINITY},i);case 1:if(c=t.v,s.node().appendChild(c),u=c.getBBox(),h=u,n?(d=c.children[0],g=(0,C.Ltv)(c),u=d.getBoundingClientRect(),h=u,g.attr("width",u.width),g.attr("height",u.height)):(y=(0,C.Ltv)(c).select("text").node())&&"function"==typeof y.getBBox&&(h=y.getBBox()),s.attr("transform",(0,p.Wg)(h,n)),Et[r.id]=a,r.width=u.width,r.height=u.height,!r.startLabelLeft){t.n=3;break}return x=e.insert("g").attr("class","edgeTerminals"),b=x.insert("g").attr("class","inner"),t.n=2,kt(b,r.startLabelLeft,r.labelStyle);case 2:k=t.v,v=k,A=k.getBBox(),n&&(D=k.children[0],E=(0,C.Ltv)(k),A=D.getBoundingClientRect(),E.attr("width",A.width),E.attr("height",A.height)),b.attr("transform",(0,p.Wg)(A,n)),Tt[r.id]||(Tt[r.id]={}),Tt[r.id].startLeft=x,St(v,r.startLabelLeft);case 3:if(!r.startLabelRight){t.n=5;break}return T=e.insert("g").attr("class","edgeTerminals"),w=T.insert("g").attr("class","inner"),t.n=4,kt(w,r.startLabelRight,r.labelStyle);case 4:S=t.v,v=S,F=S.getBBox(),n&&(_=S.children[0],B=(0,C.Ltv)(S),F=_.getBoundingClientRect(),B.attr("width",F.width),B.attr("height",F.height)),w.attr("transform",(0,p.Wg)(F,n)),Tt[r.id]||(Tt[r.id]={}),Tt[r.id].startRight=T,St(v,r.startLabelRight);case 5:if(!r.endLabelLeft){t.n=7;break}return L=e.insert("g").attr("class","edgeTerminals"),I=L.insert("g").attr("class","inner"),t.n=6,kt(L,r.endLabelLeft,r.labelStyle);case 6:R=t.v,v=R,O=R.getBBox(),n&&(M=R.children[0],N=(0,C.Ltv)(R),O=M.getBoundingClientRect(),N.attr("width",O.width),N.attr("height",O.height)),I.attr("transform",(0,p.Wg)(O,n)),Tt[r.id]||(Tt[r.id]={}),Tt[r.id].endLeft=L,St(v,r.endLabelLeft);case 7:if(!r.endLabelRight){t.n=9;break}return K=e.insert("g").attr("class","edgeTerminals"),P=K.insert("g").attr("class","inner"),t.n=8,kt(K,r.endLabelRight,r.labelStyle);case 8:q=t.v,v=q,z=q.getBBox(),n&&(W=q.children[0],Y=(0,C.Ltv)(q),z=W.getBoundingClientRect(),Y.attr("width",z.width),Y.attr("height",z.height)),P.attr("transform",(0,p.Wg)(z,n)),Tt[r.id]||(Tt[r.id]={}),Tt[r.id].endRight=K,St(v,r.endLabelRight);case 9:return t.a(2,c)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"insertEdgeLabel");function St(t,e){(0,m.E)((0,m.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,v.K2)(St,"setTerminalWidth");var Ft=(0,v.K2)(function(t,e){v.Rm.debug("Moving label abc88 ",t.id,t.label,Et[t.id],e);var r=e.updatedPath?e.updatedPath:e.originalPath,i=(0,m.D7)(),n=(0,g.O)(i).subGraphTitleTotalMargin;if(t.label){var a=Et[t.id],o=t.x,s=t.y;if(r){var l=y._K.calcLabelPosition(r);v.Rm.debug("Moving label "+t.label+" from (",o,",",s,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(o=l.x,s=l.y)}a.attr("transform","translate(".concat(o,", ").concat(s+n/2,")"))}if(t.startLabelLeft){var c=Tt[t.id].startLeft,u=t.x,h=t.y;if(r){var d=y._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);u=d.x,h=d.y}c.attr("transform","translate(".concat(u,", ").concat(h,")"))}if(t.startLabelRight){var p=Tt[t.id].startRight,f=t.x,x=t.y;if(r){var b=y._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);f=b.x,x=b.y}p.attr("transform","translate(".concat(f,", ").concat(x,")"))}if(t.endLabelLeft){var k=Tt[t.id].endLeft,C=t.x,A=t.y;if(r){var D=y._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);C=D.x,A=D.y}k.attr("transform","translate(".concat(C,", ").concat(A,")"))}if(t.endLabelRight){var E=Tt[t.id].endRight,T=t.x,w=t.y;if(r){var S=y._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);T=S.x,w=S.y}E.attr("transform","translate(".concat(T,", ").concat(w,")"))}},"positionEdgeLabel"),_t=(0,v.K2)(function(t,e){var r=t.x,i=t.y,n=Math.abs(e.x-r),a=Math.abs(e.y-i),o=t.width/2,s=t.height/2;return n>=o||a>=s},"outsideNode"),Bt=(0,v.K2)(function(t,e,r){v.Rm.debug("intersection calc abc89:\n  outsidePoint: ".concat(JSON.stringify(e),"\n  insidePoint : ").concat(JSON.stringify(r),"\n  node        : x:").concat(t.x," y:").concat(t.y," w:").concat(t.width," h:").concat(t.height));var i=t.x,n=t.y,a=Math.abs(i-r.x),o=t.width/2,s=r.x<e.x?o-a:o+a,l=t.height/2,c=Math.abs(e.y-r.y),u=Math.abs(e.x-r.x);if(Math.abs(n-e.y)*o>Math.abs(i-e.x)*l){var h=r.y<e.y?e.y-l-n:n-l-e.y;s=u*h/c;var d={x:r.x<e.x?r.x+s:r.x-u+s,y:r.y<e.y?r.y+c-h:r.y-c+h};return 0===s&&(d.x=e.x,d.y=e.y),0===u&&(d.x=e.x),0===c&&(d.y=e.y),v.Rm.debug("abc89 topp/bott calc, Q ".concat(c,", q ").concat(h,", R ").concat(u,", r ").concat(s),d),d}var p=c*(s=r.x<e.x?e.x-o-i:i-o-e.x)/u,g=r.x<e.x?r.x+u-s:r.x-u+s,f=r.y<e.y?r.y+p:r.y-p;return v.Rm.debug("sides calc abc89, Q ".concat(c,", q ").concat(p,", R ").concat(u,", r ").concat(s),{_x:g,_y:f}),0===s&&(g=e.x,f=e.y),0===u&&(g=e.x),0===c&&(f=e.y),{x:g,y:f}},"intersection"),Lt=(0,v.K2)(function(t,e){v.Rm.debug("abc88 cutPathAtIntersect",t,e);var r=[],i=t[0],n=!1;return t.forEach(function(t){if(_t(e,t)||n)i=t,n||r.push(t);else{var a=Bt(e,i,t),o=!1;r.forEach(function(t){o=o||t.x===a.x&&t.y===a.y}),r.some(function(t){return t.x===a.x&&t.y===a.y})||r.push(a),n=!0}}),r},"cutPathAtIntersect"),It=(0,v.K2)(function(t,e,r,i,n,a,o){var s=r.points;v.Rm.debug("abc88 InsertEdge: edge=",r,"e=",e);var l=!1,c=a.node(e.v),u=a.node(e.w);null!=u&&u.intersect&&null!=c&&c.intersect&&((s=s.slice(1,r.points.length-1)).unshift(c.intersect(s[0])),s.push(u.intersect(s[s.length-1]))),r.toCluster&&(v.Rm.debug("to cluster abc88",i[r.toCluster]),s=Lt(r.points,i[r.toCluster].node),l=!0),r.fromCluster&&(v.Rm.debug("from cluster abc88",i[r.fromCluster]),s=Lt(s.reverse(),i[r.fromCluster].node).reverse(),l=!0);var h=s.filter(function(t){return!Number.isNaN(t.y)}),d=C.qrM;!r.curve||"graph"!==n&&"flowchart"!==n||(d=r.curve);var g,f=(0,p.RI)(r),y=f.x,x=f.y,b=(0,C.n8j)().x(y).y(x).curve(d);switch(r.thickness){case"normal":g="edge-thickness-normal";break;case"thick":case"invisible":g="edge-thickness-thick";break;default:g=""}switch(r.pattern){case"solid":g+=" edge-pattern-solid";break;case"dotted":g+=" edge-pattern-dotted";break;case"dashed":g+=" edge-pattern-dashed"}var k=t.append("path").attr("d",b(h)).attr("id",r.id).attr("class"," "+g+(r.classes?" "+r.classes:"")).attr("style",r.style),A="";((0,m.D7)().flowchart.arrowMarkerAbsolute||(0,m.D7)().state.arrowMarkerAbsolute)&&(A=(0,m.ID)(!0)),Ct(k,r,A,o,n);var D={};return l&&(D.updatedPath=s),D.originalPath=r.points,D},"insertEdge"),Rt=(0,v.K2)(function(t){var e,r=new Set,i=(0,u.A)(t);try{for(i.s();!(e=i.n()).done;){var n=e.value;switch(n){case"x":r.add("right"),r.add("left");break;case"y":r.add("up"),r.add("down");break;default:r.add(n)}}}catch(t){i.e(t)}finally{i.f()}return r},"expandAndDeduplicateDirections"),Ot=(0,v.K2)(function(t,e,r,i){var n=Rt(t),a=e.height+2*r.padding,o=a/2,s=null!=i?i:e.width+2*o+r.padding,l=r.padding/2;return n.has("right")&&n.has("left")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:o,y:0},{x:s/2,y:2*l},{x:s-o,y:0},{x:s,y:0},{x:s,y:-a/3},{x:s+2*l,y:-a/2},{x:s,y:-2*a/3},{x:s,y:-a},{x:s-o,y:-a},{x:s/2,y:-a-2*l},{x:o,y:-a},{x:0,y:-a},{x:0,y:-2*a/3},{x:-2*l,y:-a/2},{x:0,y:-a/3}]:n.has("right")&&n.has("left")&&n.has("up")?[{x:o,y:0},{x:s-o,y:0},{x:s,y:-a/2},{x:s-o,y:-a},{x:o,y:-a},{x:0,y:-a/2}]:n.has("right")&&n.has("left")&&n.has("down")?[{x:0,y:0},{x:o,y:-a},{x:s-o,y:-a},{x:s,y:0}]:n.has("right")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:s,y:-o},{x:s,y:-a+o},{x:0,y:-a}]:n.has("left")&&n.has("up")&&n.has("down")?[{x:s,y:0},{x:0,y:-o},{x:0,y:-a+o},{x:s,y:-a}]:n.has("right")&&n.has("left")?[{x:o,y:0},{x:o,y:-l},{x:s-o,y:-l},{x:s-o,y:0},{x:s,y:-a/2},{x:s-o,y:-a},{x:s-o,y:-a+l},{x:o,y:-a+l},{x:o,y:-a},{x:0,y:-a/2}]:n.has("up")&&n.has("down")?[{x:s/2,y:0},{x:0,y:-l},{x:o,y:-l},{x:o,y:-a+l},{x:0,y:-a+l},{x:s/2,y:-a},{x:s,y:-a+l},{x:s-o,y:-a+l},{x:s-o,y:-l},{x:s,y:-l}]:n.has("right")&&n.has("up")?[{x:0,y:0},{x:s,y:-o},{x:0,y:-a}]:n.has("right")&&n.has("down")?[{x:0,y:0},{x:s,y:0},{x:0,y:-a}]:n.has("left")&&n.has("up")?[{x:s,y:0},{x:0,y:-o},{x:s,y:-a}]:n.has("left")&&n.has("down")?[{x:s,y:0},{x:0,y:0},{x:s,y:-a}]:n.has("right")?[{x:o,y:-l},{x:o,y:-l},{x:s-o,y:-l},{x:s-o,y:0},{x:s,y:-a/2},{x:s-o,y:-a},{x:s-o,y:-a+l},{x:o,y:-a+l},{x:o,y:-a+l}]:n.has("left")?[{x:o,y:0},{x:o,y:-l},{x:s-o,y:-l},{x:s-o,y:-a+l},{x:o,y:-a+l},{x:o,y:-a},{x:0,y:-a/2}]:n.has("up")?[{x:o,y:-l},{x:o,y:-a+l},{x:0,y:-a+l},{x:s/2,y:-a},{x:s,y:-a+l},{x:s-o,y:-a+l},{x:s-o,y:-l}]:n.has("down")?[{x:s/2,y:0},{x:0,y:-l},{x:o,y:-l},{x:o,y:-a+l},{x:s-o,y:-a+l},{x:s-o,y:-l},{x:s,y:-l}]:[{x:0,y:0}]},"getArrowPoints");function Mt(t,e){return t.intersect(e)}(0,v.K2)(Mt,"intersectNode");var Nt=Mt;function Kt(t,e,r,i){var n=t.x,a=t.y,o=n-i.x,s=a-i.y,l=Math.sqrt(e*e*s*s+r*r*o*o),c=Math.abs(e*r*o/l);i.x<n&&(c=-c);var u=Math.abs(e*r*s/l);return i.y<a&&(u=-u),{x:n+c,y:a+u}}(0,v.K2)(Kt,"intersectEllipse");var Pt=Kt;function qt(t,e,r){return Pt(t,e,e,r)}(0,v.K2)(qt,"intersectCircle");var zt=qt;function Wt(t,e,r,i){var n,a,o,s,l,c,u,h,d,p,g,f,y;if(n=e.y-t.y,o=t.x-e.x,l=e.x*t.y-t.x*e.y,d=n*r.x+o*r.y+l,p=n*i.x+o*i.y+l,!(0!==d&&0!==p&&Yt(d,p)||(a=i.y-r.y,s=r.x-i.x,c=i.x*r.y-r.x*i.y,u=a*t.x+s*t.y+c,h=a*e.x+s*e.y+c,0!==u&&0!==h&&Yt(u,h)||0===(g=n*s-a*o))))return f=Math.abs(g/2),{x:(y=o*c-s*l)<0?(y-f)/g:(y+f)/g,y:(y=a*l-n*c)<0?(y-f)/g:(y+f)/g}}function Yt(t,e){return t*e>0}(0,v.K2)(Wt,"intersectLine"),(0,v.K2)(Yt,"sameSign");var $t=Wt,jt=Ut;function Ut(t,e,r){var i=t.x,n=t.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach(function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)}):(o=Math.min(o,e.x),s=Math.min(s,e.y));for(var l=i-t.width/2-o,c=n-t.height/2-s,u=0;u<e.length;u++){var h=e[u],d=e[u<e.length-1?u+1:0],p=$t(t,r,{x:l+h.x,y:c+h.y},{x:l+d.x,y:c+d.y});p&&a.push(p)}return a.length?(a.length>1&&a.sort(function(t,e){var i=t.x-r.x,n=t.y-r.y,a=Math.sqrt(i*i+n*n),o=e.x-r.x,s=e.y-r.y,l=Math.sqrt(o*o+s*s);return a<l?-1:a===l?0:1}),a[0]):t}(0,v.K2)(Ut,"intersectPolygon");var Ht={node:Nt,circle:zt,ellipse:Pt,polygon:jt,rect:(0,v.K2)(function(t,e){var r,i,n=t.x,a=t.y,o=e.x-n,s=e.y-a,l=t.width/2,c=t.height/2;return Math.abs(s)*l>Math.abs(o)*c?(s<0&&(c=-c),r=0===s?0:c*o/s,i=c):(o<0&&(l=-l),r=l,i=0===o?0:l*s/o),{x:n+r,y:a+i}},"intersectRect")},Vt=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r,i,n){var a,s,l,c,u,h,d,p,v,x,b;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:if(a=(0,m.D7)(),l=r.useHtmlLabels||(0,m.E)(a),s=i||"node default",c=e.insert("g").attr("class",s).attr("id",r.domId||r.id),u=c.insert("g").attr("class","label").attr("style",r.labelStyle),h=void 0===r.labelText?"":"string"==typeof r.labelText?r.labelText:r.labelText[0],"markdown"!==r.labelType){t.n=1;break}d=(0,f.GZ)(u,(0,m.jZ)((0,y.Sm)(h),a),{useHtmlLabels:l,width:r.width||a.flowchart.wrappingWidth,classes:"markdown-node-label"},a),t.n=3;break;case 1:return t.n=2,kt(u,(0,m.jZ)((0,y.Sm)(h),a),r.labelStyle,!1,n);case 2:d=t.v;case 3:if(p=d.getBBox(),v=r.padding/2,!(0,m.E)(a)){t.n=5;break}return x=d.children[0],b=(0,C.Ltv)(d),t.n=4,(0,g.X)(x,h);case 4:p=x.getBoundingClientRect(),b.attr("width",p.width),b.attr("height",p.height);case 5:return l?u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):u.attr("transform","translate(0, "+-p.height/2+")"),r.centerLabel&&u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),u.insert("rect",":first-child"),t.a(2,{shapeSvg:c,bbox:p,halfPadding:v,label:u})}},t)}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"labelHelper"),Gt=(0,v.K2)(function(t,e){var r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds");function Xt(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}(0,v.K2)(Xt,"insertPolygonShape");var Zt=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return r.useHtmlLabels||(0,m.E)((0,m.D7)())||(r.centerLabel=!0),t.n=1,Vt(e,r,"node "+r.classes,!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=i.halfPadding,v.Rm.info("Classes = ",r.classes),(l=n.insert("rect",":first-child")).attr("rx",r.rx).attr("ry",r.ry).attr("x",-a.width/2-s).attr("y",-a.height/2-s).attr("width",a.width+r.padding).attr("height",a.height+r.padding),Gt(r,l),r.intersect=function(t){return Ht.rect(r,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"note"),Qt=Zt,Jt=(0,v.K2)(function(t){return t?" "+t:""},"formatClass"),te=(0,v.K2)(function(t,e){return"".concat(e||"node default").concat(Jt(t.classes)," ").concat(Jt(t.class))},"getClassesFromNode"),ee=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u,h;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,te(r,void 0),!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=a.width+r.padding,l=a.height+r.padding,u=[{x:(c=s+l)/2,y:0},{x:c,y:-c/2},{x:c/2,y:-c},{x:0,y:-c/2}],v.Rm.info("Question main (Circle)"),(h=Xt(n,c,c,u)).attr("style",r.style),Gt(r,h),r.intersect=function(t){return v.Rm.warn("Intersect called"),Ht.polygon(r,u,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"question"),re=(0,v.K2)(function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}];return r.insert("polygon",":first-child").attr("points",i.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 Ht.circle(e,14,t)},r},"choice"),ie=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u,h;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,te(r,void 0),!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=r.positioned?r.height:a.height+r.padding,l=s/4,c=r.positioned?r.width:a.width+2*l+r.padding,(h=Xt(n,c,s,u=[{x:l,y:0},{x:c-l,y:0},{x:c,y:-s/2},{x:c-l,y:-s},{x:l,y:-s},{x:0,y:-s/2}])).attr("style",r.style),Gt(r,h),r.intersect=function(t){return Ht.polygon(r,u,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"hexagon"),ne=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u,h,d,p,g;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,void 0,!0);case 1:return n=t.v,a=n.shapeSvg,s=n.bbox,l=s.height+2*r.padding,c=l/2,u=s.width+2*c+r.padding,h=r.positioned&&(null!==(i=r.widthInColumns)&&void 0!==i?i:1)>1&&r.width>u,d=h?r.width:u,p=Ot(r.directions,s,r,d),(g=Xt(a,d,l,p)).attr("style",r.style),Gt(r,g),r.intersect=function(t){return Ht.polygon(r,p,t)},t.a(2,a)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"block_arrow"),ae=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,te(r,void 0),!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=a.width+r.padding,l=a.height+r.padding,Xt(n,s,l,c=[{x:-l/2,y:0},{x:s,y:0},{x:s,y:-l},{x:-l/2,y:-l},{x:0,y:-l/2}]).attr("style",r.style),r.width=s+l,r.height=l,r.intersect=function(t){return Ht.polygon(r,c,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"rect_left_inv_arrow"),oe=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,te(r),!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=a.width+r.padding,l=a.height+r.padding,(u=Xt(n,s,l,c=[{x:-2*l/6,y:0},{x:s-l/6,y:0},{x:s+2*l/6,y:-l},{x:l/6,y:-l}])).attr("style",r.style),Gt(r,u),r.intersect=function(t){return Ht.polygon(r,c,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"lean_right"),se=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,te(r,void 0),!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=a.width+r.padding,l=a.height+r.padding,(u=Xt(n,s,l,c=[{x:2*l/6,y:0},{x:s+l/6,y:0},{x:s-2*l/6,y:-l},{x:-l/6,y:-l}])).attr("style",r.style),Gt(r,u),r.intersect=function(t){return Ht.polygon(r,c,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"lean_left"),le=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,te(r,void 0),!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=a.width+r.padding,l=a.height+r.padding,(u=Xt(n,s,l,c=[{x:-2*l/6,y:0},{x:s+2*l/6,y:0},{x:s-l/6,y:-l},{x:l/6,y:-l}])).attr("style",r.style),Gt(r,u),r.intersect=function(t){return Ht.polygon(r,c,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"trapezoid"),ce=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,te(r,void 0),!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=a.width+r.padding,l=a.height+r.padding,(u=Xt(n,s,l,c=[{x:l/6,y:0},{x:s-l/6,y:0},{x:s+2*l/6,y:-l},{x:-2*l/6,y:-l}])).attr("style",r.style),Gt(r,u),r.intersect=function(t){return Ht.polygon(r,c,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"inv_trapezoid"),ue=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,te(r,void 0),!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=a.width+r.padding,l=a.height+r.padding,(u=Xt(n,s,l,c=[{x:0,y:0},{x:s+l/2,y:0},{x:s,y:-l/2},{x:s+l/2,y:-l},{x:0,y:-l}])).attr("style",r.style),Gt(r,u),r.intersect=function(t){return Ht.polygon(r,c,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"rect_right_inv_arrow"),he=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u,h,d;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,te(r,void 0),!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=a.width+r.padding,c=(l=s/2)/(2.5+s/50),u=a.height+c+r.padding,h="M 0,"+c+" a "+l+","+c+" 0,0,0 "+s+" 0 a "+l+","+c+" 0,0,0 "+-s+" 0 l 0,"+u+" a "+l+","+c+" 0,0,0 "+s+" 0 l 0,"+-u,d=n.attr("label-offset-y",c).insert("path",":first-child").attr("style",r.style).attr("d",h).attr("transform","translate("+-s/2+","+-(u/2+c)+")"),Gt(r,d),r.intersect=function(t){var e=Ht.rect(r,t),i=e.x-r.x;if(0!=l&&(Math.abs(i)<r.width/2||Math.abs(i)==r.width/2&&Math.abs(e.y-r.y)>r.height/2-c)){var n=c*c*(1-i*i/(l*l));0!=n&&(n=Math.sqrt(n)),n=c-n,t.y-r.y>0&&(n=-n),e.y+=n}return e},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"cylinder"),de=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u,h,d,p;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,"node "+r.classes+" "+r.class,!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=i.halfPadding,l=n.insert("rect",":first-child"),c=r.positioned?r.width:a.width+r.padding,u=r.positioned?r.height:a.height+r.padding,h=r.positioned?-c/2:-a.width/2-s,d=r.positioned?-u/2:-a.height/2-s,l.attr("class","basic label-container").attr("style",r.style).attr("rx",r.rx).attr("ry",r.ry).attr("x",h).attr("y",d).attr("width",c).attr("height",u),r.props&&(p=new Set(Object.keys(r.props)),r.props.borders&&(fe(l,r.props.borders,c,u),p.delete("borders")),p.forEach(function(t){v.Rm.warn("Unknown node property ".concat(t))})),Gt(r,l),r.intersect=function(t){return Ht.rect(r,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"rect"),pe=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u,h,d,p;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,"node "+r.classes,!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=i.halfPadding,l=n.insert("rect",":first-child"),c=r.positioned?r.width:a.width+r.padding,u=r.positioned?r.height:a.height+r.padding,h=r.positioned?-c/2:-a.width/2-s,d=r.positioned?-u/2:-a.height/2-s,l.attr("class","basic cluster composite label-container").attr("style",r.style).attr("rx",r.rx).attr("ry",r.ry).attr("x",h).attr("y",d).attr("width",c).attr("height",u),r.props&&(p=new Set(Object.keys(r.props)),r.props.borders&&(fe(l,r.props.borders,c,u),p.delete("borders")),p.forEach(function(t){v.Rm.warn("Unknown node property ".concat(t))})),Gt(r,l),r.intersect=function(t){return Ht.rect(r,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"composite"),ge=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,"label",!0);case 1:return i=t.v,n=i.shapeSvg,v.Rm.trace("Classes = ",r.class),a=n.insert("rect",":first-child"),a.attr("width",0).attr("height",0),n.attr("class","label edgeLabel"),r.props&&(s=new Set(Object.keys(r.props)),r.props.borders&&(fe(a,r.props.borders,0,0),s.delete("borders")),s.forEach(function(t){v.Rm.warn("Unknown node property ".concat(t))})),Gt(r,a),r.intersect=function(t){return Ht.rect(r,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"labelRect");function fe(t,e,r,i){var n=[],a=(0,v.K2)(function(t){n.push(t,0)},"addBorder"),o=(0,v.K2)(function(t){n.push(0,t)},"skipBorder");e.includes("t")?(v.Rm.debug("add top border"),a(r)):o(r),e.includes("r")?(v.Rm.debug("add right border"),a(i)):o(i),e.includes("b")?(v.Rm.debug("add bottom border"),a(r)):o(r),e.includes("l")?(v.Rm.debug("add left border"),a(i)):o(i),t.attr("stroke-dasharray",n.join(" "))}(0,v.K2)(fe,"applyNodePropertyBorders");var ye=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,l,c,u,h,d,p,g,f,y,x,b,k,A,D;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return i=r.classes?"node "+r.classes:"node default",n=e.insert("g").attr("class",i).attr("id",r.domId||r.id),a=n.insert("rect",":first-child"),l=n.insert("line"),c=n.insert("g").attr("class","label"),u=r.labelText.flat?r.labelText.flat():r.labelText,h="",h="object"===(0,s.A)(u)?u[0]:u,v.Rm.info("Label text abc79",h,u,"object"===(0,s.A)(u)),t.n=1,kt(c,h,r.labelStyle,!0,!0);case 1:return d=t.v,p={width:0,height:0},(0,m.E)((0,m.D7)())&&(g=d.children[0],f=(0,C.Ltv)(d),p=g.getBoundingClientRect(),f.attr("width",p.width),f.attr("height",p.height)),v.Rm.info("Text 2",u),y=u.slice(1,u.length),x=d.getBBox(),t.n=2,kt(c,y.join?y.join("<br/>"):y,r.labelStyle,!0,!0);case 2:return b=t.v,(0,m.E)((0,m.D7)())&&(k=b.children[0],A=(0,C.Ltv)(b),p=k.getBoundingClientRect(),A.attr("width",p.width),A.attr("height",p.height)),D=r.padding/2,(0,C.Ltv)(b).attr("transform","translate( "+(p.width>x.width?0:(x.width-p.width)/2)+", "+(x.height+D+5)+")"),(0,C.Ltv)(d).attr("transform","translate( "+(p.width<x.width?0:-(x.width-p.width)/2)+", 0)"),p=c.node().getBBox(),c.attr("transform","translate("+-p.width/2+", "+(-p.height/2-D+3)+")"),a.attr("class","outer title-state").attr("x",-p.width/2-D).attr("y",-p.height/2-D).attr("width",p.width+r.padding).attr("height",p.height+r.padding),l.attr("class","divider").attr("x1",-p.width/2-D).attr("x2",p.width/2+D).attr("y1",-p.height/2-D+x.height+D).attr("y2",-p.height/2-D+x.height+D),Gt(r,a),r.intersect=function(t){return Ht.rect(r,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"rectWithTitle"),me=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,te(r,void 0),!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=a.height+r.padding,l=a.width+s/4+r.padding,c=n.insert("rect",":first-child").attr("style",r.style).attr("rx",s/2).attr("ry",s/2).attr("x",-l/2).attr("y",-s/2).attr("width",l).attr("height",s),Gt(r,c),r.intersect=function(t){return Ht.rect(r,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"stadium"),ve=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,te(r,void 0),!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=i.halfPadding,(l=n.insert("circle",":first-child")).attr("style",r.style).attr("rx",r.rx).attr("ry",r.ry).attr("r",a.width/2+s).attr("width",a.width+r.padding).attr("height",a.height+r.padding),v.Rm.info("Circle main"),Gt(r,l),r.intersect=function(t){return v.Rm.info("Circle intersect",r,a.width/2+s,t),Ht.circle(r,a.width/2+s,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"circle"),xe=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,te(r,void 0),!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=i.halfPadding,l=n.insert("g",":first-child"),c=l.insert("circle"),u=l.insert("circle"),l.attr("class",r.class),c.attr("style",r.style).attr("rx",r.rx).attr("ry",r.ry).attr("r",a.width/2+s+5).attr("width",a.width+r.padding+10).attr("height",a.height+r.padding+10),u.attr("style",r.style).attr("rx",r.rx).attr("ry",r.ry).attr("r",a.width/2+s).attr("width",a.width+r.padding).attr("height",a.height+r.padding),v.Rm.info("DoubleCircle main"),Gt(r,c),r.intersect=function(t){return v.Rm.info("DoubleCircle intersect",r,a.width/2+s+5,t),Ht.circle(r,a.width/2+s+5,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"doublecircle"),be=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,l,c,u;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Vt(e,r,te(r,void 0),!0);case 1:return i=t.v,n=i.shapeSvg,a=i.bbox,s=a.width+r.padding,l=a.height+r.padding,(u=Xt(n,s,l,c=[{x:0,y:0},{x:s,y:0},{x:s,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-l},{x:-8,y:-l},{x:-8,y:0}])).attr("style",r.style),Gt(r,u),r.intersect=function(t){return Ht.polygon(r,c,t)},t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"subroutine"),ke=(0,v.K2)(function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Gt(e,i),e.intersect=function(t){return Ht.circle(e,7,t)},r},"start"),Ce=(0,v.K2)(function(t,e,r){var i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=70,a=10;"LR"===r&&(n=10,a=70);var o=i.append("rect").attr("x",-1*n/2).attr("y",-1*a/2).attr("width",n).attr("height",a).attr("class","fork-join");return Gt(e,o),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return Ht.rect(e,t)},i},"forkJoin"),Ae=(0,v.K2)(function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=r.insert("circle",":first-child"),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Gt(e,n),e.intersect=function(t){return Ht.circle(e,7,t)},r},"end"),De=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r){var i,n,a,s,c,u,h,d,p,g,f,y,v,x,b,k,A,D,E,T,w,S,F,_,B,L,I,R;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return n=r.padding/2,a=4,s=8,c=r.classes?"node "+r.classes:"node default",u=e.insert("g").attr("class",c).attr("id",r.domId||r.id),h=u.insert("rect",":first-child"),d=u.insert("line"),p=u.insert("line"),g=0,f=a,y=u.insert("g").attr("class","label"),v=0,x=null===(i=r.classData.annotations)||void 0===i?void 0:i[0],b=r.classData.annotations[0]?"«"+r.classData.annotations[0]+"»":"",t.n=1,kt(y,b,r.labelStyle,!0,!0);case 1:return k=t.v,A=k.getBBox(),(0,m.E)((0,m.D7)())&&(D=k.children[0],E=(0,C.Ltv)(k),A=D.getBoundingClientRect(),E.attr("width",A.width),E.attr("height",A.height)),r.classData.annotations[0]&&(f+=A.height+a,g+=A.width),T=r.classData.label,void 0!==r.classData.type&&""!==r.classData.type&&((0,m.E)((0,m.D7)())?T+="&lt;"+r.classData.type+"&gt;":T+="<"+r.classData.type+">"),t.n=2,kt(y,T,r.labelStyle,!0,!0);case 2:return w=t.v,(0,C.Ltv)(w).attr("class","classTitle"),S=w.getBBox(),(0,m.E)((0,m.D7)())&&(F=w.children[0],_=(0,C.Ltv)(w),S=F.getBoundingClientRect(),_.attr("width",S.width),_.attr("height",S.height)),f+=S.height+a,S.width>g&&(g=S.width),B=[],r.classData.members.forEach(function(){var t=(0,l.A)((0,o.A)().m(function t(e){var i,n,s,l,c,u;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return i=e.getDisplayDetails(),n=i.displayText,(0,m.E)((0,m.D7)())&&(n=n.replace(/</g,"&lt;").replace(/>/g,"&gt;")),t.n=1,kt(y,n,i.cssStyle?i.cssStyle:r.labelStyle,!0,!0);case 1:s=t.v,l=s.getBBox(),(0,m.E)((0,m.D7)())&&(c=s.children[0],u=(0,C.Ltv)(s),l=c.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)),l.width>g&&(g=l.width),f+=l.height+a,B.push(s);case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()),f+=s,L=[],r.classData.methods.forEach(function(){var t=(0,l.A)((0,o.A)().m(function t(e){var i,n,s,l,c,u;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return i=e.getDisplayDetails(),n=i.displayText,(0,m.E)((0,m.D7)())&&(n=n.replace(/</g,"&lt;").replace(/>/g,"&gt;")),t.n=1,kt(y,n,i.cssStyle?i.cssStyle:r.labelStyle,!0,!0);case 1:s=t.v,l=s.getBBox(),(0,m.E)((0,m.D7)())&&(c=s.children[0],u=(0,C.Ltv)(s),l=c.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)),l.width>g&&(g=l.width),f+=l.height+a,L.push(s);case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()),f+=s,x&&(I=(g-A.width)/2,(0,C.Ltv)(k).attr("transform","translate( "+(-1*g/2+I)+", "+-1*f/2+")"),v=A.height+a),R=(g-S.width)/2,(0,C.Ltv)(w).attr("transform","translate( "+(-1*g/2+R)+", "+(-1*f/2+v)+")"),v+=S.height+a,d.attr("class","divider").attr("x1",-g/2-n).attr("x2",g/2+n).attr("y1",-f/2-n+s+v).attr("y2",-f/2-n+s+v),v+=s,B.forEach(function(t){var e;(0,C.Ltv)(t).attr("transform","translate( "+-g/2+", "+(-1*f/2+v+s/2)+")");var r=null==t?void 0:t.getBBox();v+=(null!==(e=null==r?void 0:r.height)&&void 0!==e?e:0)+a}),v+=s,p.attr("class","divider").attr("x1",-g/2-n).attr("x2",g/2+n).attr("y1",-f/2-n+s+v).attr("y2",-f/2-n+s+v),v+=s,L.forEach(function(t){var e;(0,C.Ltv)(t).attr("transform","translate( "+-g/2+", "+(-1*f/2+v)+")");var r=null==t?void 0:t.getBBox();v+=(null!==(e=null==r?void 0:r.height)&&void 0!==e?e:0)+a}),h.attr("style",r.style).attr("class","outer title-state").attr("x",-g/2-n).attr("y",-f/2-n).attr("width",g+r.padding).attr("height",f+r.padding),Gt(r,h),r.intersect=function(t){return Ht.rect(r,t)},t.a(2,u)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"class_box"),Ee={rhombus:ee,composite:pe,question:ee,rect:de,labelRect:ge,rectWithTitle:ye,choice:re,circle:ve,doublecircle:xe,stadium:me,hexagon:ie,block_arrow:ne,rect_left_inv_arrow:ae,lean_right:oe,lean_left:se,trapezoid:le,inv_trapezoid:ce,rect_right_inv_arrow:ue,cylinder:he,start:ke,end:Ae,note:Qt,subroutine:be,fork:Ce,join:Ce,class_box:De},Te={},we=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r,i){var n,a,s;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:if(!r.link){t.n=2;break}return"sandbox"===(0,m.D7)().securityLevel?s="_top":r.linkTarget&&(s=r.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",r.link).attr("target",s),t.n=1,Ee[r.shape](n,r,i);case 1:a=t.v,t.n=4;break;case 2:return t.n=3,Ee[r.shape](e,r,i);case 3:a=t.v,n=a;case 4:return r.tooltip&&a.attr("title",r.tooltip),r.class&&a.attr("class","node default "+r.class),Te[r.id]=n,r.haveCallback&&Te[r.id].attr("class",Te[r.id].attr("class")+" clickable"),t.a(2,n)}},t)}));return function(e,r,i){return t.apply(this,arguments)}}(),"insertNode"),Se=(0,v.K2)(function(t){var e=Te[t.id];v.Rm.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");var r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode");function Fe(t,e){var r,i,n,a,o,s,l,c,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2],h=t,d="default";((null==h||null===(r=h.classes)||void 0===r?void 0:r.length)||0)>0&&(d=(null!==(c=null==h?void 0:h.classes)&&void 0!==c?c:[]).join(" "));d+=" flowchart-label";var p,g=0,f="";switch(h.type){case"round":g=5,f="rect";break;case"composite":g=0,f="composite",p=0;break;case"square":case"group":default:f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"block_arrow":f="block_arrow";break;case"odd":case"rect_left_inv_arrow":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"doublecircle":f="doublecircle"}var v=(0,y.sM)(null!==(i=null==h?void 0:h.styles)&&void 0!==i?i:[]),x=h.label,b=null!==(n=h.size)&&void 0!==n?n:{width:0,height:0,x:0,y:0},k=e.getDiagramId();return{labelStyle:v.labelStyle,shape:f,labelText:x,rx:g,ry:g,class:d,style:v.style,id:h.id,domId:k?"".concat(k,"-").concat(h.id):h.id,directions:h.directions,width:b.width,height:b.height,x:b.x,y:b.y,positioned:u,intersect:void 0,type:h.type,padding:null!==(a=null!=p?p:null===(o=(0,m.zj)())||void 0===o||null===(s=o.block)||void 0===s?void 0:s.padding)&&void 0!==a?a:0,widthInColumns:null!==(l=h.widthInColumns)&&void 0!==l?l:1}}function _e(t,e,r){return Be.apply(this,arguments)}function Be(){return(Be=(0,l.A)((0,o.A)().m(function t(e,r,i){var n,a,s,l,c;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:if("group"!==(n=Fe(r,i,!1)).type){t.n=1;break}return t.a(2);case 1:return a=(0,m.zj)(),t.n=2,we(e,n,{config:a});case 2:s=t.v,l=s.node().getBBox(),(c=i.getBlock(n.id)).size={width:l.width,height:l.height,x:0,y:0,node:s},i.setBlock(c),s.remove();case 3:return t.a(2)}},t)}))).apply(this,arguments)}function Le(t,e,r){return Ie.apply(this,arguments)}function Ie(){return(Ie=(0,l.A)((0,o.A)().m(function t(e,r,i){var n,a;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:if(n=Fe(r,i,!0),"space"===i.getBlock(n.id).type){t.n=2;break}return a=(0,m.zj)(),t.n=1,we(e,n,{config:a});case 1:r.intersect=null==n?void 0:n.intersect,Se(n);case 2:return t.a(2)}},t)}))).apply(this,arguments)}function Re(t,e,r,i){return Oe.apply(this,arguments)}function Oe(){return(Oe=(0,l.A)((0,o.A)().m(function t(e,r,i,n){var a,s,l,c;return(0,o.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:a=(0,u.A)(r),t.p=1,a.s();case 2:if((s=a.n()).done){t.n=5;break}return l=s.value,t.n=3,n(e,l,i);case 3:if(!l.children){t.n=4;break}return t.n=4,Re(e,l.children,i,n);case 4:t.n=2;break;case 5:t.n=7;break;case 6:t.p=6,c=t.v,a.e(c);case 7:return t.p=7,a.f(),t.f(7);case 8:return t.a(2)}},t,null,[[1,6,7,8]])}))).apply(this,arguments)}function Me(t,e,r){return Ne.apply(this,arguments)}function Ne(){return(Ne=(0,l.A)((0,o.A)().m(function t(e,r,i){return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Re(e,r,i,_e);case 1:return t.a(2)}},t)}))).apply(this,arguments)}function Ke(t,e,r){return Pe.apply(this,arguments)}function Pe(){return(Pe=(0,l.A)((0,o.A)().m(function t(e,r,i){return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Re(e,r,i,Le);case 1:return t.a(2)}},t)}))).apply(this,arguments)}function qe(t,e,r,i,n){return ze.apply(this,arguments)}function ze(){return(ze=(0,l.A)((0,o.A)().m(function t(e,r,i,n,a){var s,l,c,d,p,g,f,y,m,v,x,b,k,C,D,E,T;return(0,o.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:(s=new A.T({multigraph:!0,compound:!0})).setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8}),l=(0,u.A)(i);try{for(l.s();!(c=l.n()).done;)(d=c.value).size&&s.setNode(d.id,{width:d.size.width,height:d.size.height,intersect:d.intersect})}catch(t){l.e(t)}finally{l.f()}p=(0,u.A)(r),t.p=1,p.s();case 2:if((g=p.n()).done){t.n=5;break}if(!(f=g.value).start||!f.end){t.n=4;break}if(y=n.getBlock(f.start),m=n.getBlock(f.end),null==y||!y.size||null==m||!m.size){t.n=4;break}if(v=y.size,x=m.size,b=[{x:v.x,y:v.y},{x:v.x+(x.x-v.x)/2,y:v.y+(x.y-v.y)/2},{x:x.x,y:x.y}],k=a?"".concat(a,"-").concat(f.id):f.id,C="thick"===f.thickness?"edge-thickness-thick":"edge-thickness-normal",D="dotted"===f.pattern?"edge-pattern-dotted":"edge-pattern-solid",E="".concat(C," ").concat(D," flowchart-link LS-a1 LE-b1"),It(e,{v:f.start,w:f.end,name:k},(0,h.A)((0,h.A)({},f),{},{id:k,arrowTypeEnd:f.arrowTypeEnd,arrowTypeStart:f.arrowTypeStart,points:b,classes:E}),void 0,"block",s,a),!f.label){t.n=4;break}return t.n=3,wt(e,(0,h.A)((0,h.A)({},f),{},{label:f.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:f.arrowTypeEnd,arrowTypeStart:f.arrowTypeStart,points:b,classes:E}));case 3:Ft((0,h.A)((0,h.A)({},f),{},{x:b[1].x,y:b[1].y}),{originalPath:b});case 4:t.n=2;break;case 5:t.n=7;break;case 6:t.p=6,T=t.v,p.e(T);case 7:return t.p=7,p.f(),t.f(7);case 8:return t.a(2)}},t,null,[[1,6,7,8]])}))).apply(this,arguments)}(0,v.K2)(Fe,"getNodeFromBlock"),(0,v.K2)(_e,"calculateBlockSize"),(0,v.K2)(Le,"insertBlockPositioned"),(0,v.K2)(Re,"performOperations"),(0,v.K2)(Me,"calculateBlockSizes"),(0,v.K2)(Ke,"insertBlocks"),(0,v.K2)(qe,"insertEdges");var We=(0,v.K2)(function(t,e){return e.db.getClasses()},"getClasses"),Ye=(0,v.K2)(function(){var t=(0,l.A)((0,o.A)().m(function t(e,r,i,n){var a,s,l,c,u,h,d,p,g,f,y,x,b,k,A,D,E;return(0,o.A)().w(function(t){for(;;)switch(t.n){case 0:return a=(0,m.zj)(),s=a.securityLevel,l=a.block,(c=n.db).setDiagramId(r),"sandbox"===s&&(u=(0,C.Ltv)("#i"+r)),h="sandbox"===s?(0,C.Ltv)(u.nodes()[0].contentDocument.body):(0,C.Ltv)("body"),d="sandbox"===s?h.select('[id="'.concat(r,'"]')):(0,C.Ltv)('[id="'.concat(r,'"]')),dt(d,["point","circle","cross"],n.type,r),p=c.getBlocks(),g=c.getBlocksFlat(),f=c.getEdges(),y=d.insert("g").attr("class","block"),t.n=1,Me(y,p,c);case 1:return x=xt(c),t.n=2,Ke(y,p,c);case 2:return t.n=3,qe(y,f,g,c,r);case 3:x&&(b=x,k=Math.max(1,Math.round(b.width/b.height*.125)),A=b.height+k+10,D=b.width+10,E=l.useMaxWidth,(0,m.a$)(d,A,D,!!E),v.Rm.debug("Here Bounds",x,b),d.attr("viewBox","".concat(b.x-5," ").concat(b.y-5," ").concat(b.width+10," ").concat(b.height+10)));case 4:return t.a(2)}},t)}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"draw"),$e={parser:E,db:st,renderer:{draw:Ye,getClasses:We},styles:ct}},45116:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return qt}});var i,n,a=r(25026),o=r(69492),s=r(3604),l=r(81587),u=r(54119),h=r(74721),d=r(89906),p=r(34539),g=r(40985),f=r(68548),y=r(63219),m=r(92457),v=function(){var t=(0,f.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,24],r=[1,25],i=[1,26],n=[1,27],a=[1,28],o=[1,63],s=[1,64],l=[1,65],u=[1,66],d=[1,67],p=[1,68],g=[1,69],y=[1,29],m=[1,30],v=[1,31],x=[1,32],b=[1,33],k=[1,34],C=[1,35],A=[1,36],D=[1,37],E=[1,38],T=[1,39],w=[1,40],S=[1,41],F=[1,42],_=[1,43],B=[1,44],L=[1,45],I=[1,46],R=[1,47],O=[1,48],M=[1,50],N=[1,51],K=[1,52],P=[1,53],q=[1,54],z=[1,55],W=[1,56],Y=[1,57],$=[1,58],j=[1,59],U=[1,60],H=[14,42],V=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],G=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],X=[1,82],Z=[1,83],Q=[1,84],J=[1,85],tt=[12,14,42],et=[12,14,33,42],rt=[12,14,33,42,76,77,79,80],it=[12,33],nt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],at={trace:(0,f.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:(0,f.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 3:i.setDirection("TB");break;case 4:i.setDirection("BT");break;case 5:i.setDirection("RL");break;case 6:i.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:i.setC4Type(a[s-3]);break;case 19:i.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 20:i.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 21:this.$=a[s].trim(),i.setTitle(this.$);break;case 22:case 23:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 28:a[s].splice(2,0,"ENTERPRISE"),i.addPersonOrSystemBoundary.apply(i,(0,h.A)(a[s])),this.$=a[s];break;case 29:a[s].splice(2,0,"SYSTEM"),i.addPersonOrSystemBoundary.apply(i,(0,h.A)(a[s])),this.$=a[s];break;case 30:i.addPersonOrSystemBoundary.apply(i,(0,h.A)(a[s])),this.$=a[s];break;case 31:a[s].splice(2,0,"CONTAINER"),i.addContainerBoundary.apply(i,(0,h.A)(a[s])),this.$=a[s];break;case 32:i.addDeploymentNode.apply(i,["node"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 33:i.addDeploymentNode.apply(i,["nodeL"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 34:i.addDeploymentNode.apply(i,["nodeR"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 35:i.popBoundaryParseStack();break;case 39:i.addPersonOrSystem.apply(i,["person"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 40:i.addPersonOrSystem.apply(i,["external_person"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 41:i.addPersonOrSystem.apply(i,["system"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 42:i.addPersonOrSystem.apply(i,["system_db"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 43:i.addPersonOrSystem.apply(i,["system_queue"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 44:i.addPersonOrSystem.apply(i,["external_system"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 45:i.addPersonOrSystem.apply(i,["external_system_db"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 46:i.addPersonOrSystem.apply(i,["external_system_queue"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 47:i.addContainer.apply(i,["container"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 48:i.addContainer.apply(i,["container_db"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 49:i.addContainer.apply(i,["container_queue"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 50:i.addContainer.apply(i,["external_container"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 51:i.addContainer.apply(i,["external_container_db"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 52:i.addContainer.apply(i,["external_container_queue"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 53:i.addComponent.apply(i,["component"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 54:i.addComponent.apply(i,["component_db"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 55:i.addComponent.apply(i,["component_queue"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 56:i.addComponent.apply(i,["external_component"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 57:i.addComponent.apply(i,["external_component_db"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 58:i.addComponent.apply(i,["external_component_queue"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 60:i.addRel.apply(i,["rel"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 61:i.addRel.apply(i,["birel"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 62:i.addRel.apply(i,["rel_u"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 63:i.addRel.apply(i,["rel_d"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 64:i.addRel.apply(i,["rel_l"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 65:i.addRel.apply(i,["rel_r"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 66:i.addRel.apply(i,["rel_b"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 67:a[s].splice(0,1),i.addRel.apply(i,["rel"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 68:i.updateElStyle.apply(i,["update_el_style"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 69:i.updateRelStyle.apply(i,["update_rel_style"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 70:i.updateLayoutConfig.apply(i,["update_layout_config"].concat((0,h.A)(a[s]))),this.$=a[s];break;case 71:this.$=[a[s]];break;case 72:a[s].unshift(a[s-1]),this.$=a[s];break;case 73:case 75:this.$=a[s].trim();break;case 74:var l={};l[a[s-1].trim()]=a[s].trim(),this.$=l;break;case 76:this.$=""}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:r,24:i,26:n,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:p,41:g,43:23,44:y,45:m,46:v,47:x,48:b,49:k,50:C,51:A,52:D,53:E,54:T,55:w,56:S,57:F,58:_,59:B,60:L,61:I,62:R,63:O,64:M,65:N,66:K,67:P,68:q,69:z,70:W,71:Y,72:$,73:j,74:U},{13:70,19:20,20:21,21:22,22:e,23:r,24:i,26:n,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:p,41:g,43:23,44:y,45:m,46:v,47:x,48:b,49:k,50:C,51:A,52:D,53:E,54:T,55:w,56:S,57:F,58:_,59:B,60:L,61:I,62:R,63:O,64:M,65:N,66:K,67:P,68:q,69:z,70:W,71:Y,72:$,73:j,74:U},{13:71,19:20,20:21,21:22,22:e,23:r,24:i,26:n,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:p,41:g,43:23,44:y,45:m,46:v,47:x,48:b,49:k,50:C,51:A,52:D,53:E,54:T,55:w,56:S,57:F,58:_,59:B,60:L,61:I,62:R,63:O,64:M,65:N,66:K,67:P,68:q,69:z,70:W,71:Y,72:$,73:j,74:U},{13:72,19:20,20:21,21:22,22:e,23:r,24:i,26:n,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:p,41:g,43:23,44:y,45:m,46:v,47:x,48:b,49:k,50:C,51:A,52:D,53:E,54:T,55:w,56:S,57:F,58:_,59:B,60:L,61:I,62:R,63:O,64:M,65:N,66:K,67:P,68:q,69:z,70:W,71:Y,72:$,73:j,74:U},{13:73,19:20,20:21,21:22,22:e,23:r,24:i,26:n,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:p,41:g,43:23,44:y,45:m,46:v,47:x,48:b,49:k,50:C,51:A,52:D,53:E,54:T,55:w,56:S,57:F,58:_,59:B,60:L,61:I,62:R,63:O,64:M,65:N,66:K,67:P,68:q,69:z,70:W,71:Y,72:$,73:j,74:U},{14:[1,74]},t(H,[2,13],{43:23,29:49,30:61,32:62,20:75,34:o,36:s,37:l,38:u,39:d,40:p,41:g,44:y,45:m,46:v,47:x,48:b,49:k,50:C,51:A,52:D,53:E,54:T,55:w,56:S,57:F,58:_,59:B,60:L,61:I,62:R,63:O,64:M,65:N,66:K,67:P,68:q,69:z,70:W,71:Y,72:$,73:j,74:U}),t(H,[2,14]),t(V,[2,16],{12:[1,76]}),t(H,[2,36],{12:[1,77]}),t(G,[2,19]),t(G,[2,20]),{25:[1,78]},{27:[1,79]},t(G,[2,23]),{35:80,75:81,76:X,77:Z,79:Q,80:J},{35:86,75:81,76:X,77:Z,79:Q,80:J},{35:87,75:81,76:X,77:Z,79:Q,80:J},{35:88,75:81,76:X,77:Z,79:Q,80:J},{35:89,75:81,76:X,77:Z,79:Q,80:J},{35:90,75:81,76:X,77:Z,79:Q,80:J},{35:91,75:81,76:X,77:Z,79:Q,80:J},{35:92,75:81,76:X,77:Z,79:Q,80:J},{35:93,75:81,76:X,77:Z,79:Q,80:J},{35:94,75:81,76:X,77:Z,79:Q,80:J},{35:95,75:81,76:X,77:Z,79:Q,80:J},{35:96,75:81,76:X,77:Z,79:Q,80:J},{35:97,75:81,76:X,77:Z,79:Q,80:J},{35:98,75:81,76:X,77:Z,79:Q,80:J},{35:99,75:81,76:X,77:Z,79:Q,80:J},{35:100,75:81,76:X,77:Z,79:Q,80:J},{35:101,75:81,76:X,77:Z,79:Q,80:J},{35:102,75:81,76:X,77:Z,79:Q,80:J},{35:103,75:81,76:X,77:Z,79:Q,80:J},{35:104,75:81,76:X,77:Z,79:Q,80:J},t(tt,[2,59]),{35:105,75:81,76:X,77:Z,79:Q,80:J},{35:106,75:81,76:X,77:Z,79:Q,80:J},{35:107,75:81,76:X,77:Z,79:Q,80:J},{35:108,75:81,76:X,77:Z,79:Q,80:J},{35:109,75:81,76:X,77:Z,79:Q,80:J},{35:110,75:81,76:X,77:Z,79:Q,80:J},{35:111,75:81,76:X,77:Z,79:Q,80:J},{35:112,75:81,76:X,77:Z,79:Q,80:J},{35:113,75:81,76:X,77:Z,79:Q,80:J},{35:114,75:81,76:X,77:Z,79:Q,80:J},{35:115,75:81,76:X,77:Z,79:Q,80:J},{20:116,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:p,41:g,43:23,44:y,45:m,46:v,47:x,48:b,49:k,50:C,51:A,52:D,53:E,54:T,55:w,56:S,57:F,58:_,59:B,60:L,61:I,62:R,63:O,64:M,65:N,66:K,67:P,68:q,69:z,70:W,71:Y,72:$,73:j,74:U},{12:[1,118],33:[1,117]},{35:119,75:81,76:X,77:Z,79:Q,80:J},{35:120,75:81,76:X,77:Z,79:Q,80:J},{35:121,75:81,76:X,77:Z,79:Q,80:J},{35:122,75:81,76:X,77:Z,79:Q,80:J},{35:123,75:81,76:X,77:Z,79:Q,80:J},{35:124,75:81,76:X,77:Z,79:Q,80:J},{35:125,75:81,76:X,77:Z,79:Q,80:J},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(H,[2,15]),t(V,[2,17],{21:22,19:130,22:e,23:r,24:i,26:n,28:a}),t(H,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:r,24:i,26:n,28:a,34:o,36:s,37:l,38:u,39:d,40:p,41:g,44:y,45:m,46:v,47:x,48:b,49:k,50:C,51:A,52:D,53:E,54:T,55:w,56:S,57:F,58:_,59:B,60:L,61:I,62:R,63:O,64:M,65:N,66:K,67:P,68:q,69:z,70:W,71:Y,72:$,73:j,74:U}),t(G,[2,21]),t(G,[2,22]),t(tt,[2,39]),t(et,[2,71],{75:81,35:132,76:X,77:Z,79:Q,80:J}),t(rt,[2,73]),{78:[1,133]},t(rt,[2,75]),t(rt,[2,76]),t(tt,[2,40]),t(tt,[2,41]),t(tt,[2,42]),t(tt,[2,43]),t(tt,[2,44]),t(tt,[2,45]),t(tt,[2,46]),t(tt,[2,47]),t(tt,[2,48]),t(tt,[2,49]),t(tt,[2,50]),t(tt,[2,51]),t(tt,[2,52]),t(tt,[2,53]),t(tt,[2,54]),t(tt,[2,55]),t(tt,[2,56]),t(tt,[2,57]),t(tt,[2,58]),t(tt,[2,60]),t(tt,[2,61]),t(tt,[2,62]),t(tt,[2,63]),t(tt,[2,64]),t(tt,[2,65]),t(tt,[2,66]),t(tt,[2,67]),t(tt,[2,68]),t(tt,[2,69]),t(tt,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(it,[2,28]),t(it,[2,29]),t(it,[2,30]),t(it,[2,31]),t(it,[2,32]),t(it,[2,33]),t(it,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(V,[2,18]),t(H,[2,38]),t(et,[2,72]),t(rt,[2,74]),t(tt,[2,24]),t(tt,[2,35]),t(nt,[2,25]),t(nt,[2,26],{12:[1,138]}),t(nt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:(0,f.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,f.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,u=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var y=d.yylloc;a.push(y);var m=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,f.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,f.K2)(v,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=v()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:d.match,token:this.terminals_[x]||x,line:d.yylineno,loc:y,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(d.yytext),a.push(d.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,y=d.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,p.yy,C[1],n,a].concat(h))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},ot=function(){return{EOF:1,parseError:(0,f.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,f.K2)(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},"setInput"),input:(0,f.K2)(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},"input"),unput:(0,f.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,f.K2)(function(){return this._more=!0,this},"more"),reject:(0,f.K2)(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})},"reject"),less:(0,f.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,f.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,f.K2)(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,"")},"upcomingInput"),showPosition:(0,f.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,f.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,f.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,f.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,f.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,f.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,f.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,f.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,f.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,f.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,f.K2)(function(t,e,r,i){switch(r){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,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,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}}}();function st(){this.yy={}}return at.lexer=ot,(0,f.K2)(st,"Parser"),st.prototype=at,at.Parser=st,new st}();v.parser=v;var x,b=v,k=[],C=[""],A="global",D="",E=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],T=[],w="",S=!1,F=4,_=2,B=(0,f.K2)(function(){return x},"getC4Type"),L=(0,f.K2)(function(t){var e=(0,g.jZ)(t,(0,g.D7)());x=e},"setC4Type"),I=(0,f.K2)(function(t,e,r,i,n,a,o,s,c){if(null!=t&&null!=e&&null!=r&&null!=i){var h={},d=T.find(function(t){return t.from===e&&t.to===r});if(d?h=d:T.push(h),h.type=t,h.from=e,h.to=r,h.label={text:i},null==n)h.techn={text:""};else if("object"===(0,u.A)(n)){var p=(0,l.A)(Object.entries(n)[0],2),g=p[0],f=p[1];h[g]={text:f}}else h.techn={text:n};if(null==a)h.descr={text:""};else if("object"===(0,u.A)(a)){var y=(0,l.A)(Object.entries(a)[0],2),m=y[0],v=y[1];h[m]={text:v}}else h.descr={text:a};if("object"===(0,u.A)(o)){var x=(0,l.A)(Object.entries(o)[0],2),b=x[0],k=x[1];h[b]=k}else h.sprite=o;if("object"===(0,u.A)(s)){var C=(0,l.A)(Object.entries(s)[0],2),A=C[0],D=C[1];h[A]=D}else h.tags=s;if("object"===(0,u.A)(c)){var E=(0,l.A)(Object.entries(c)[0],2),w=E[0],S=E[1];h[w]=S}else h.link=c;h.wrap=rt()}},"addRel"),R=(0,f.K2)(function(t,e,r,i,n,a,o){if(null!==e&&null!==r){var s={},c=k.find(function(t){return t.alias===e});if(c&&e===c.alias?s=c:(s.alias=e,k.push(s)),s.label=null==r?{text:""}:{text:r},null==i)s.descr={text:""};else if("object"===(0,u.A)(i)){var h=(0,l.A)(Object.entries(i)[0],2),d=h[0],p=h[1];s[d]={text:p}}else s.descr={text:i};if("object"===(0,u.A)(n)){var g=(0,l.A)(Object.entries(n)[0],2),f=g[0],y=g[1];s[f]=y}else s.sprite=n;if("object"===(0,u.A)(a)){var m=(0,l.A)(Object.entries(a)[0],2),v=m[0],x=m[1];s[v]=x}else s.tags=a;if("object"===(0,u.A)(o)){var b=(0,l.A)(Object.entries(o)[0],2),C=b[0],D=b[1];s[C]=D}else s.link=o;s.typeC4Shape={text:t},s.parentBoundary=A,s.wrap=rt()}},"addPersonOrSystem"),O=(0,f.K2)(function(t,e,r,i,n,a,o,s){if(null!==e&&null!==r){var c={},h=k.find(function(t){return t.alias===e});if(h&&e===h.alias?c=h:(c.alias=e,k.push(c)),c.label=null==r?{text:""}:{text:r},null==i)c.techn={text:""};else if("object"===(0,u.A)(i)){var d=(0,l.A)(Object.entries(i)[0],2),p=d[0],g=d[1];c[p]={text:g}}else c.techn={text:i};if(null==n)c.descr={text:""};else if("object"===(0,u.A)(n)){var f=(0,l.A)(Object.entries(n)[0],2),y=f[0],m=f[1];c[y]={text:m}}else c.descr={text:n};if("object"===(0,u.A)(a)){var v=(0,l.A)(Object.entries(a)[0],2),x=v[0],b=v[1];c[x]=b}else c.sprite=a;if("object"===(0,u.A)(o)){var C=(0,l.A)(Object.entries(o)[0],2),D=C[0],E=C[1];c[D]=E}else c.tags=o;if("object"===(0,u.A)(s)){var T=(0,l.A)(Object.entries(s)[0],2),w=T[0],S=T[1];c[w]=S}else c.link=s;c.wrap=rt(),c.typeC4Shape={text:t},c.parentBoundary=A}},"addContainer"),M=(0,f.K2)(function(t,e,r,i,n,a,o,s){if(null!==e&&null!==r){var c={},h=k.find(function(t){return t.alias===e});if(h&&e===h.alias?c=h:(c.alias=e,k.push(c)),c.label=null==r?{text:""}:{text:r},null==i)c.techn={text:""};else if("object"===(0,u.A)(i)){var d=(0,l.A)(Object.entries(i)[0],2),p=d[0],g=d[1];c[p]={text:g}}else c.techn={text:i};if(null==n)c.descr={text:""};else if("object"===(0,u.A)(n)){var f=(0,l.A)(Object.entries(n)[0],2),y=f[0],m=f[1];c[y]={text:m}}else c.descr={text:n};if("object"===(0,u.A)(a)){var v=(0,l.A)(Object.entries(a)[0],2),x=v[0],b=v[1];c[x]=b}else c.sprite=a;if("object"===(0,u.A)(o)){var C=(0,l.A)(Object.entries(o)[0],2),D=C[0],E=C[1];c[D]=E}else c.tags=o;if("object"===(0,u.A)(s)){var T=(0,l.A)(Object.entries(s)[0],2),w=T[0],S=T[1];c[w]=S}else c.link=s;c.wrap=rt(),c.typeC4Shape={text:t},c.parentBoundary=A}},"addComponent"),N=(0,f.K2)(function(t,e,r,i,n){if(null!==t&&null!==e){var a={},o=E.find(function(e){return e.alias===t});if(o&&t===o.alias?a=o:(a.alias=t,E.push(a)),a.label=null==e?{text:""}:{text:e},null==r)a.type={text:"system"};else if("object"===(0,u.A)(r)){var s=(0,l.A)(Object.entries(r)[0],2),c=s[0],h=s[1];a[c]={text:h}}else a.type={text:r};if("object"===(0,u.A)(i)){var d=(0,l.A)(Object.entries(i)[0],2),p=d[0],g=d[1];a[p]=g}else a.tags=i;if("object"===(0,u.A)(n)){var f=(0,l.A)(Object.entries(n)[0],2),y=f[0],m=f[1];a[y]=m}else a.link=n;a.parentBoundary=A,a.wrap=rt(),D=A,A=t,C.push(D)}},"addPersonOrSystemBoundary"),K=(0,f.K2)(function(t,e,r,i,n){if(null!==t&&null!==e){var a={},o=E.find(function(e){return e.alias===t});if(o&&t===o.alias?a=o:(a.alias=t,E.push(a)),a.label=null==e?{text:""}:{text:e},null==r)a.type={text:"container"};else if("object"===(0,u.A)(r)){var s=(0,l.A)(Object.entries(r)[0],2),c=s[0],h=s[1];a[c]={text:h}}else a.type={text:r};if("object"===(0,u.A)(i)){var d=(0,l.A)(Object.entries(i)[0],2),p=d[0],g=d[1];a[p]=g}else a.tags=i;if("object"===(0,u.A)(n)){var f=(0,l.A)(Object.entries(n)[0],2),y=f[0],m=f[1];a[y]=m}else a.link=n;a.parentBoundary=A,a.wrap=rt(),D=A,A=t,C.push(D)}},"addContainerBoundary"),P=(0,f.K2)(function(t,e,r,i,n,a,o,s){if(null!==e&&null!==r){var c={},h=E.find(function(t){return t.alias===e});if(h&&e===h.alias?c=h:(c.alias=e,E.push(c)),c.label=null==r?{text:""}:{text:r},null==i)c.type={text:"node"};else if("object"===(0,u.A)(i)){var d=(0,l.A)(Object.entries(i)[0],2),p=d[0],g=d[1];c[p]={text:g}}else c.type={text:i};if(null==n)c.descr={text:""};else if("object"===(0,u.A)(n)){var f=(0,l.A)(Object.entries(n)[0],2),y=f[0],m=f[1];c[y]={text:m}}else c.descr={text:n};if("object"===(0,u.A)(o)){var v=(0,l.A)(Object.entries(o)[0],2),x=v[0],b=v[1];c[x]=b}else c.tags=o;if("object"===(0,u.A)(s)){var k=(0,l.A)(Object.entries(s)[0],2),T=k[0],w=k[1];c[T]=w}else c.link=s;c.nodeType=t,c.parentBoundary=A,c.wrap=rt(),D=A,A=e,C.push(D)}},"addDeploymentNode"),q=(0,f.K2)(function(){A=D,C.pop(),D=C.pop(),C.push(D)},"popBoundaryParseStack"),z=(0,f.K2)(function(t,e,r,i,n,a,o,s,c,h,d){var p=k.find(function(t){return t.alias===e});if(void 0!==p||void 0!==(p=E.find(function(t){return t.alias===e}))){if(null!=r)if("object"===(0,u.A)(r)){var g=(0,l.A)(Object.entries(r)[0],2),f=g[0],y=g[1];p[f]=y}else p.bgColor=r;if(null!=i)if("object"===(0,u.A)(i)){var m=(0,l.A)(Object.entries(i)[0],2),v=m[0],x=m[1];p[v]=x}else p.fontColor=i;if(null!=n)if("object"===(0,u.A)(n)){var b=(0,l.A)(Object.entries(n)[0],2),C=b[0],A=b[1];p[C]=A}else p.borderColor=n;if(null!=a)if("object"===(0,u.A)(a)){var D=(0,l.A)(Object.entries(a)[0],2),T=D[0],w=D[1];p[T]=w}else p.shadowing=a;if(null!=o)if("object"===(0,u.A)(o)){var S=(0,l.A)(Object.entries(o)[0],2),F=S[0],_=S[1];p[F]=_}else p.shape=o;if(null!=s)if("object"===(0,u.A)(s)){var B=(0,l.A)(Object.entries(s)[0],2),L=B[0],I=B[1];p[L]=I}else p.sprite=s;if(null!=c)if("object"===(0,u.A)(c)){var R=(0,l.A)(Object.entries(c)[0],2),O=R[0],M=R[1];p[O]=M}else p.techn=c;if(null!=h)if("object"===(0,u.A)(h)){var N=(0,l.A)(Object.entries(h)[0],2),K=N[0],P=N[1];p[K]=P}else p.legendText=h;if(null!=d)if("object"===(0,u.A)(d)){var q=(0,l.A)(Object.entries(d)[0],2),z=q[0],W=q[1];p[z]=W}else p.legendSprite=d}},"updateElStyle"),W=(0,f.K2)(function(t,e,r,i,n,a,o){var s=T.find(function(t){return t.from===e&&t.to===r});if(void 0!==s){if(null!=i)if("object"===(0,u.A)(i)){var c=(0,l.A)(Object.entries(i)[0],2),h=c[0],d=c[1];s[h]=d}else s.textColor=i;if(null!=n)if("object"===(0,u.A)(n)){var p=(0,l.A)(Object.entries(n)[0],2),g=p[0],f=p[1];s[g]=f}else s.lineColor=n;if(null!=a)if("object"===(0,u.A)(a)){var y=(0,l.A)(Object.entries(a)[0],2),m=y[0],v=y[1];s[m]=parseInt(v)}else s.offsetX=parseInt(a);if(null!=o)if("object"===(0,u.A)(o)){var x=(0,l.A)(Object.entries(o)[0],2),b=x[0],k=x[1];s[b]=parseInt(k)}else s.offsetY=parseInt(o)}},"updateRelStyle"),Y=(0,f.K2)(function(t,e,r){var i=F,n=_;if("object"===(0,u.A)(e)){var a=Object.values(e)[0];i=parseInt(a)}else i=parseInt(e);if("object"===(0,u.A)(r)){var o=Object.values(r)[0];n=parseInt(o)}else n=parseInt(r);i>=1&&(F=i),n>=1&&(_=n)},"updateLayoutConfig"),$=(0,f.K2)(function(){return F},"getC4ShapeInRow"),j=(0,f.K2)(function(){return _},"getC4BoundaryInRow"),U=(0,f.K2)(function(){return A},"getCurrentBoundaryParse"),H=(0,f.K2)(function(){return D},"getParentBoundaryParse"),V=(0,f.K2)(function(t){return null==t?k:k.filter(function(e){return e.parentBoundary===t})},"getC4ShapeArray"),G=(0,f.K2)(function(t){return k.find(function(e){return e.alias===t})},"getC4Shape"),X=(0,f.K2)(function(t){return Object.keys(V(t))},"getC4ShapeKeys"),Z=(0,f.K2)(function(t){return null==t?E:E.filter(function(e){return e.parentBoundary===t})},"getBoundaries"),Q=Z,J=(0,f.K2)(function(){return T},"getRels"),tt=(0,f.K2)(function(){return w},"getTitle"),et=(0,f.K2)(function(t){S=t},"setWrap"),rt=(0,f.K2)(function(){return S},"autoWrap"),it=(0,f.K2)(function(){k=[],E=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],D="",A="global",C=[""],T=[],C=[""],w="",S=!1,F=4,_=2},"clear"),nt=(0,f.K2)(function(t){var e=(0,g.jZ)(t,(0,g.D7)());w=e},"setTitle"),at={addPersonOrSystem:R,addPersonOrSystemBoundary:N,addContainer:O,addContainerBoundary:K,addComponent:M,addDeploymentNode:P,popBoundaryParseStack:q,addRel:I,updateElStyle:z,updateRelStyle:W,updateLayoutConfig:Y,autoWrap:rt,setWrap:et,getC4ShapeArray:V,getC4Shape:G,getC4ShapeKeys:X,getBoundaries:Z,getBoundarys:Q,getCurrentBoundaryParse:U,getParentBoundaryParse:H,getRels:J,getTitle:tt,getC4Type:B,getC4ShapeInRow:$,getC4BoundaryInRow:j,setAccTitle:g.SV,getAccTitle:g.iN,getAccDescription:g.m7,setAccDescription:g.EI,getConfig:(0,f.K2)(function(){return(0,g.D7)().c4},"getConfig"),clear:it,LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:nt,setC4Type:L},ot=(0,f.K2)(function(t,e){return(0,d.tk)(t,e)},"drawRect"),st=(0,f.K2)(function(t,e,r,i,n,a){var o=t.append("image");o.attr("width",e),o.attr("height",r),o.attr("x",i),o.attr("y",n);var s=a.startsWith("data:image/png;base64")?a:(0,m.J)(a);o.attr("xlink:href",s)},"drawImage"),lt=(0,f.K2)(function(t,e,r,i){var n,a=t.append("g"),o=0,l=(0,s.A)(e);try{for(l.s();!(n=l.n()).done;){var c=n.value,u=c.textColor?c.textColor:"#444444",h=c.lineColor?c.lineColor:"#444444",d=c.offsetX?parseInt(c.offsetX):0,p=c.offsetY?parseInt(c.offsetY):0;if(0===o){var g=a.append("line");g.attr("x1",c.startPoint.x),g.attr("y1",c.startPoint.y),g.attr("x2",c.endPoint.x),g.attr("y2",c.endPoint.y),g.attr("stroke-width","1"),g.attr("stroke",h),g.style("fill","none"),"rel_b"!==c.type&&g.attr("marker-end","url(#"+i+"-arrowhead)"),"birel"!==c.type&&"rel_b"!==c.type||g.attr("marker-start","url(#"+i+"-arrowend)"),o=-1}else{var f=a.append("path");f.attr("fill","none").attr("stroke-width","1").attr("stroke",h).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",c.startPoint.x).replaceAll("starty",c.startPoint.y).replaceAll("controlx",c.startPoint.x+(c.endPoint.x-c.startPoint.x)/2-(c.endPoint.x-c.startPoint.x)/4).replaceAll("controly",c.startPoint.y+(c.endPoint.y-c.startPoint.y)/2).replaceAll("stopx",c.endPoint.x).replaceAll("stopy",c.endPoint.y)),"rel_b"!==c.type&&f.attr("marker-end","url(#"+i+"-arrowhead)"),"birel"!==c.type&&"rel_b"!==c.type||f.attr("marker-start","url(#"+i+"-arrowend)")}var y=r.messageFont();xt(r)(c.label.text,a,Math.min(c.startPoint.x,c.endPoint.x)+Math.abs(c.endPoint.x-c.startPoint.x)/2+d,Math.min(c.startPoint.y,c.endPoint.y)+Math.abs(c.endPoint.y-c.startPoint.y)/2+p,c.label.width,c.label.height,{fill:u},y),c.techn&&""!==c.techn.text&&(y=r.messageFont(),xt(r)("["+c.techn.text+"]",a,Math.min(c.startPoint.x,c.endPoint.x)+Math.abs(c.endPoint.x-c.startPoint.x)/2+d,Math.min(c.startPoint.y,c.endPoint.y)+Math.abs(c.endPoint.y-c.startPoint.y)/2+r.messageFontSize+5+p,Math.max(c.label.width,c.techn.width),c.techn.height,{fill:u,"font-style":"italic"},y))}}catch(t){l.e(t)}finally{l.f()}},"drawRels"),ct=(0,f.K2)(function(t,e,r){var i=t.append("g"),n=e.bgColor?e.bgColor:"none",a=e.borderColor?e.borderColor:"#444444",o=e.fontColor?e.fontColor:"black",s={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(s={"stroke-width":1});var l={x:e.x,y:e.y,fill:n,stroke:a,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:s};ot(i,l);var c=r.boundaryFont();c.fontWeight="bold",c.fontSize=c.fontSize+2,c.fontColor=o,xt(r)(e.label.text,i,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},c),e.type&&""!==e.type.text&&((c=r.boundaryFont()).fontColor=o,xt(r)(e.type.text,i,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},c)),e.descr&&""!==e.descr.text&&((c=r.boundaryFont()).fontSize=c.fontSize-2,c.fontColor=o,xt(r)(e.descr.text,i,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},c))},"drawBoundary"),ut=(0,f.K2)(function(t,e,r){var i,n=e.bgColor?e.bgColor:r[e.typeC4Shape.text+"_bg_color"],a=e.borderColor?e.borderColor:r[e.typeC4Shape.text+"_border_color"],o=e.fontColor?e.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var l=t.append("g");l.attr("class","person-man");var c=(0,d.PB)();switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":c.x=e.x,c.y=e.y,c.fill=n,c.width=e.width,c.height=e.height,c.stroke=a,c.rx=2.5,c.ry=2.5,c.attrs={"stroke-width":.5},ot(l,c);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":l.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":l.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",a).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2))}var u=vt(r,e.typeC4Shape.text);switch(l.append("text").attr("fill",o).attr("font-family",u.fontFamily).attr("font-size",u.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":st(l,48,48,e.x+e.width/2-24,e.y+e.image.Y,s)}var h=r[e.typeC4Shape.text+"Font"]();return h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=o,xt(r)(e.label.text,l,e.x,e.y+e.label.Y,e.width,e.height,{fill:o},h),(h=r[e.typeC4Shape.text+"Font"]()).fontColor=o,e.techn&&""!==(null===(i=e.techn)||void 0===i?void 0:i.text)?xt(r)(e.techn.text,l,e.x,e.y+e.techn.Y,e.width,e.height,{fill:o,"font-style":"italic"},h):e.type&&""!==e.type.text&&xt(r)(e.type.text,l,e.x,e.y+e.type.Y,e.width,e.height,{fill:o,"font-style":"italic"},h),e.descr&&""!==e.descr.text&&((h=r.personFont()).fontColor=o,xt(r)(e.descr.text,l,e.x,e.y+e.descr.Y,e.width,e.height,{fill:o},h)),e.height},"drawC4Shape"),ht=(0,f.K2)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),dt=(0,f.K2)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),pt=(0,f.K2)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),gt=(0,f.K2)(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",9).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")},"insertArrowHead"),ft=(0,f.K2)(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),yt=(0,f.K2)(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",18).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")},"insertArrowFilledHead"),mt=(0,f.K2)(function(t,e){var r=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);r.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),r.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),vt=(0,f.K2)(function(t,e){return{fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}},"getC4ShapeFont"),xt=function(){function t(t,e,r,n,a,o,s){i(e.append("text").attr("x",r+a/2).attr("y",n+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,r,n,a,o,s,l){for(var c=l.fontSize,u=l.fontFamily,h=l.fontWeight,d=t.split(g.Y2.lineBreakRegex),p=0;p<d.length;p++){var f=p*c-c*(d.length-1)/2,y=e.append("text").attr("x",r+a/2).attr("y",n).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",c).style("font-weight",h).style("font-family",u);y.append("tspan").attr("dy",f).text(d[p]).attr("alignment-baseline","mathematical"),i(y,s)}}function r(t,r,n,a,o,s,l,c){var u=r.append("switch"),h=u.append("foreignObject").attr("x",n).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,n,a,o,0,l,c),i(h,l)}function i(t,e){for(var r in e)e.hasOwnProperty(r)&&t.attr(r,e[r])}return(0,f.K2)(t,"byText"),(0,f.K2)(e,"byTspan"),(0,f.K2)(r,"byFo"),(0,f.K2)(i,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?r:"old"===i.textPlacement?t:e}}(),bt={drawRect:ot,drawBoundary:ct,drawC4Shape:ut,drawRels:lt,drawImage:st,insertArrowHead:gt,insertArrowEnd:ft,insertArrowFilledHead:yt,insertArrowCrossHead:mt,insertDatabaseIcon:ht,insertComputerIcon:dt,insertClockIcon:pt},kt=0,Ct=0,At=4,Dt=2;v.yy=at;var Et={},Tt=(i=function(){return(0,o.A)(function t(e){(0,a.A)(this,t),this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,wt(e.db.getConfig())},[{key:"setData",value:function(t,e,r,i){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=r,this.nextData.stopy=this.data.stopy=i}},{key:"updateVal",value:function(t,e,r,i){void 0===t[e]?t[e]=r:t[e]=i(r,t[e])}},{key:"insert",value:function(t){this.nextData.cnt=this.nextData.cnt+1;var e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,r=e+t.width,i=this.nextData.starty+2*t.margin,n=i+t.height;(e>=this.data.widthLimit||r>=this.data.widthLimit||this.nextData.cnt>At)&&(e=this.nextData.startx+t.margin+Et.nextLinePaddingX,i=this.nextData.stopy+2*t.margin,this.nextData.stopx=r=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=n=i+t.height,this.nextData.cnt=1),t.x=e,t.y=i,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",r,Math.max),this.updateVal(this.data,"stopy",n,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",r,Math.max),this.updateVal(this.nextData,"stopy",n,Math.max)}},{key:"init",value:function(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},wt(t.db.getConfig())}},{key:"bumpLastMargin",value:function(t){this.data.stopx+=t,this.data.stopy+=t}}])}(),(0,f.K2)(i,"Bounds"),i),wt=(0,f.K2)(function(t){(0,g.hH)(Et,t),t.fontFamily&&(Et.personFontFamily=Et.systemFontFamily=Et.messageFontFamily=t.fontFamily),t.fontSize&&(Et.personFontSize=Et.systemFontSize=Et.messageFontSize=t.fontSize),t.fontWeight&&(Et.personFontWeight=Et.systemFontWeight=Et.messageFontWeight=t.fontWeight)},"setConf"),St=(0,f.K2)(function(t,e){return{fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}},"c4ShapeFont"),Ft=(0,f.K2)(function(t){return{fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}},"boundaryFont"),_t=(0,f.K2)(function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},"messageFont");function Bt(t,e,r,i,n){if(!e[t].width)if(r)e[t].text=(0,p.bH)(e[t].text,n,i),e[t].textLines=e[t].text.split(g.Y2.lineBreakRegex).length,e[t].width=n,e[t].height=(0,p.ru)(e[t].text,i);else{var a=e[t].text.split(g.Y2.lineBreakRegex);e[t].textLines=a.length;var o=0;e[t].height=0,e[t].width=0;var l,c=(0,s.A)(a);try{for(c.s();!(l=c.n()).done;){var u=l.value;e[t].width=Math.max((0,p.Un)(u,i),e[t].width),o=(0,p.ru)(u,i),e[t].height=e[t].height+o}}catch(t){c.e(t)}finally{c.f()}}}(0,f.K2)(Bt,"calcC4ShapeTextWH");var Lt=(0,f.K2)(function(t,e,r){e.x=r.data.startx,e.y=r.data.starty,e.width=r.data.stopx-r.data.startx,e.height=r.data.stopy-r.data.starty,e.label.y=Et.c4ShapeMargin-35;var i=e.wrap&&Et.wrap,n=Ft(Et);n.fontSize=n.fontSize+2,n.fontWeight="bold",Bt("label",e,i,n,(0,p.Un)(e.label.text,n)),bt.drawBoundary(t,e,Et)},"drawBoundary"),It=(0,f.K2)(function(t,e,r,i){var n,a=0,o=(0,s.A)(i);try{for(o.s();!(n=o.n()).done;){var l=n.value;a=0;var c=r[l],u=St(Et,c.typeC4Shape.text);switch(u.fontSize=u.fontSize-2,c.typeC4Shape.width=(0,p.Un)("«"+c.typeC4Shape.text+"»",u),c.typeC4Shape.height=u.fontSize+2,c.typeC4Shape.Y=Et.c4ShapePadding,a=c.typeC4Shape.Y+c.typeC4Shape.height-4,c.image={width:0,height:0,Y:0},c.typeC4Shape.text){case"person":case"external_person":c.image.width=48,c.image.height=48,c.image.Y=a,a=c.image.Y+c.image.height}c.sprite&&(c.image.width=48,c.image.height=48,c.image.Y=a,a=c.image.Y+c.image.height);var h=c.wrap&&Et.wrap,d=Et.width-2*Et.c4ShapePadding,g=St(Et,c.typeC4Shape.text);if(g.fontSize=g.fontSize+2,g.fontWeight="bold",Bt("label",c,h,g,d),c.label.Y=a+8,a=c.label.Y+c.label.height,c.type&&""!==c.type.text)c.type.text="["+c.type.text+"]",Bt("type",c,h,St(Et,c.typeC4Shape.text),d),c.type.Y=a+5,a=c.type.Y+c.type.height;else if(c.techn&&""!==c.techn.text){c.techn.text="["+c.techn.text+"]",Bt("techn",c,h,St(Et,c.techn.text),d),c.techn.Y=a+5,a=c.techn.Y+c.techn.height}var f=a,y=c.label.width;if(c.descr&&""!==c.descr.text)Bt("descr",c,h,St(Et,c.typeC4Shape.text),d),c.descr.Y=a+20,a=c.descr.Y+c.descr.height,y=Math.max(c.label.width,c.descr.width),f=a-5*c.descr.textLines;y+=Et.c4ShapePadding,c.width=Math.max(c.width||Et.width,y,Et.width),c.height=Math.max(c.height||Et.height,f,Et.height),c.margin=c.margin||Et.c4ShapeMargin,t.insert(c),bt.drawC4Shape(e,c,Et)}}catch(t){o.e(t)}finally{o.f()}t.bumpLastMargin(Et.c4ShapeMargin)},"drawC4ShapeArray"),Rt=(n=(0,o.A)(function t(e,r){(0,a.A)(this,t),this.x=e,this.y=r}),(0,f.K2)(n,"Point"),n),Ot=(0,f.K2)(function(t,e){var r=t.x,i=t.y,n=e.x,a=e.y,o=r+t.width/2,s=i+t.height/2,l=Math.abs(r-n),c=Math.abs(i-a),u=c/l,h=t.height/t.width,d=null;return i==a&&r<n?d=new Rt(r+t.width,s):i==a&&r>n?d=new Rt(r,s):r==n&&i<a?d=new Rt(o,i+t.height):r==n&&i>a&&(d=new Rt(o,i)),r>n&&i<a?d=h>=u?new Rt(r,s+u*t.width/2):new Rt(o-l/c*t.height/2,i+t.height):r<n&&i<a?d=h>=u?new Rt(r+t.width,s+u*t.width/2):new Rt(o+l/c*t.height/2,i+t.height):r<n&&i>a?d=h>=u?new Rt(r+t.width,s-u*t.width/2):new Rt(o+t.height/2*l/c,i):r>n&&i>a&&(d=h>=u?new Rt(r,s-t.width/2*u):new Rt(o-t.height/2*l/c,i)),d},"getIntersectPoint"),Mt=(0,f.K2)(function(t,e){var r={x:0,y:0};r.x=e.x+e.width/2,r.y=e.y+e.height/2;var i=Ot(t,r);return r.x=t.x+t.width/2,r.y=t.y+t.height/2,{startPoint:i,endPoint:Ot(e,r)}},"getIntersectPoints"),Nt=(0,f.K2)(function(t,e,r,i,n){var a,o=0,l=(0,s.A)(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;o+=1;var u=c.wrap&&Et.wrap,h=_t(Et);"C4Dynamic"===i.db.getC4Type()&&(c.label.text=o+": "+c.label.text);var d=(0,p.Un)(c.label.text,h);Bt("label",c,u,h,d),c.techn&&""!==c.techn.text&&Bt("techn",c,u,h,d=(0,p.Un)(c.techn.text,h)),c.descr&&""!==c.descr.text&&Bt("descr",c,u,h,d=(0,p.Un)(c.descr.text,h));var g=r(c.from),f=r(c.to),y=Mt(g,f);c.startPoint=y.startPoint,c.endPoint=y.endPoint}}catch(t){l.e(t)}finally{l.f()}bt.drawRels(t,e,Et,n)},"drawRels");function Kt(t,e,r,i,n){var a=new Tt(n);a.data.widthLimit=r.data.widthLimit/Math.min(Dt,i.length);var o,c=(0,s.A)(i.entries());try{for(c.s();!(o=c.n()).done;){var u=(0,l.A)(o.value,2),h=u[0],d=u[1],p=0;d.image={width:0,height:0,Y:0},d.sprite&&(d.image.width=48,d.image.height=48,d.image.Y=p,p=d.image.Y+d.image.height);var g=d.wrap&&Et.wrap,f=Ft(Et);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",Bt("label",d,g,f,a.data.widthLimit),d.label.Y=p+8,p=d.label.Y+d.label.height,d.type&&""!==d.type.text)d.type.text="["+d.type.text+"]",Bt("type",d,g,Ft(Et),a.data.widthLimit),d.type.Y=p+5,p=d.type.Y+d.type.height;if(d.descr&&""!==d.descr.text){var y=Ft(Et);y.fontSize=y.fontSize-2,Bt("descr",d,g,y,a.data.widthLimit),d.descr.Y=p+20,p=d.descr.Y+d.descr.height}if(0==h||h%Dt===0){var m=r.data.startx+Et.diagramMarginX,v=r.data.stopy+Et.diagramMarginY+p;a.setData(m,m,v,v)}else{var x=a.data.stopx!==a.data.startx?a.data.stopx+Et.diagramMarginX:a.data.startx,b=a.data.starty;a.setData(x,x,b,b)}a.name=d.alias;var k=n.db.getC4ShapeArray(d.alias),C=n.db.getC4ShapeKeys(d.alias);C.length>0&&It(a,t,k,C),e=d.alias;var A=n.db.getBoundaries(e);A.length>0&&Kt(t,e,a,A,n),"global"!==d.alias&&Lt(t,d,a),r.data.stopy=Math.max(a.data.stopy+Et.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(a.data.stopx+Et.c4ShapeMargin,r.data.stopx),kt=Math.max(kt,r.data.stopx),Ct=Math.max(Ct,r.data.stopy)}}catch(t){c.e(t)}finally{c.f()}}(0,f.K2)(Kt,"drawInsideBoundary");var Pt={drawPersonOrSystemArray:It,drawBoundary:Lt,setConf:wt,draw:(0,f.K2)(function(t,e,r,i){Et=(0,g.D7)().c4;var n,a=(0,g.D7)().securityLevel;"sandbox"===a&&(n=(0,y.Ltv)("#i"+e));var o="sandbox"===a?(0,y.Ltv)(n.nodes()[0].contentDocument.body):(0,y.Ltv)("body"),s=i.db;i.db.setWrap(Et.wrap),At=s.getC4ShapeInRow(),Dt=s.getC4BoundaryInRow(),f.Rm.debug("C:".concat(JSON.stringify(Et,null,2)));var l="sandbox"===a?o.select('[id="'.concat(e,'"]')):(0,y.Ltv)('[id="'.concat(e,'"]'));bt.insertComputerIcon(l,e),bt.insertDatabaseIcon(l,e),bt.insertClockIcon(l,e);var c=new Tt(i);c.setData(Et.diagramMarginX,Et.diagramMarginX,Et.diagramMarginY,Et.diagramMarginY),c.data.widthLimit=screen.availWidth,kt=Et.diagramMarginX,Ct=Et.diagramMarginY;var u=i.db.getTitle();Kt(l,"",c,i.db.getBoundaries(""),i),bt.insertArrowHead(l,e),bt.insertArrowEnd(l,e),bt.insertArrowCrossHead(l,e),bt.insertArrowFilledHead(l,e),Nt(l,i.db.getRels(),i.db.getC4Shape,i,e),c.data.stopx=kt,c.data.stopy=Ct;var h=c.data,d=h.stopy-h.starty+2*Et.diagramMarginY,p=h.stopx-h.startx+2*Et.diagramMarginX;u&&l.append("text").text(u).attr("x",(h.stopx-h.startx)/2-4*Et.diagramMarginX).attr("y",h.starty+Et.diagramMarginY),(0,g.a$)(l,d,p,Et.useMaxWidth);var m=u?60:0;l.attr("viewBox",h.startx-Et.diagramMarginX+" -"+(Et.diagramMarginY+m)+" "+p+" "+(d+m)),f.Rm.debug("models:",h)},"draw")},qt={parser:b,db:at,renderer:Pt,styles:(0,f.K2)(function(t){return".person {\n    stroke: ".concat(t.personBorder,";\n    fill: ").concat(t.personBkg,";\n  }\n")},"getStyles"),init:(0,f.K2)(function(t){var e=t.c4,r=t.wrap;Pt.setConf(e),at.setWrap(r)},"init")}},61340:function(t,e,r){"use strict";r.d(e,{P:function(){return a}});var i=r(40985),n=r(68548),a=(0,n.K2)(function(t,e,r,a){t.attr("class",r);var l=o(t,e),c=l.width,u=l.height,h=l.x,d=l.y;(0,i.a$)(t,u,c,a);var p=s(h,d,c,u,e);t.attr("viewBox",p),n.Rm.debug("viewBox configured: ".concat(p," with padding: ").concat(e))},"setupViewPortForSVG"),o=(0,n.K2)(function(t,e){var r,i=(null===(r=t.node())||void 0===r?void 0:r.getBBox())||{width:0,height:0,x:0,y:0};return{width:i.width+2*e,height:i.height+2*e,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),s=(0,n.K2)(function(t,e,r,i,n){return"".concat(t-n," ").concat(e-n," ").concat(r," ").concat(i)},"createViewBox")},86735:function(t,e,r){"use strict";r.d(e,{DA:function(){return F},IU:function(){return K},U:function(){return N},U7:function(){return Gr},U_:function(){return Zr},Zk:function(){return x},aP:function(){return jr},gh:function(){return Xr},lC:function(){return k},on:function(){return Hr}});var i=r(90208),n=r(3604),a=r(74721),o=r(41034),s=r(54119),l=r(81587),c=r(20908),u=r(30388),h=(r(74423),r(43376)),d=r(17428),p=r(51266),g=r(34539),f=r(40985),y=r(68548),m=r(63219),v=r(79435),x=(0,y.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,o,s,l,u,d,y,v,x,b,k,C,A,D;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return l=r.useHtmlLabels||(0,f._3)(null===(n=(0,f.D7)())||void 0===n?void 0:n.htmlLabels),s=i||"node default",u=e.insert("g").attr("class",s).attr("id",r.domId||r.id),d=u.insert("g").attr("class","label").attr("style",(0,g.KL)(r.labelStyle)),y=void 0===r.label?"":"string"==typeof r.label?r.label:r.label[0],v=!!r.icon||!!r.img,x="markdown"===r.labelType,t.n=1,(0,p.GZ)(d,(0,f.jZ)((0,g.Sm)(y),(0,f.D7)()),{useHtmlLabels:l,width:r.width||(null===(a=(0,f.D7)().flowchart)||void 0===a?void 0:a.wrappingWidth),classes:x?"markdown-node-label":"",style:r.labelStyle,addSvgBackground:v,markdown:x},(0,f.D7)());case 1:if(b=t.v,k=b.getBBox(),C=(null!==(o=null==r?void 0:r.padding)&&void 0!==o?o:0)/2,!l){t.n=3;break}return A=b.children[0],D=(0,m.Ltv)(b),t.n=2,(0,h.X)(A,y);case 2:k=A.getBoundingClientRect(),D.attr("width",k.width),D.attr("height",k.height);case 3:return l?d.attr("transform","translate("+-k.width/2+", "+-k.height/2+")"):d.attr("transform","translate(0, "+-k.height/2+")"),r.centerLabel&&d.attr("transform","translate("+-k.width/2+", "+-k.height/2+")"),d.insert("rect",":first-child"),t.a(2,{shapeSvg:u,bbox:k,halfPadding:C,label:d})}},t)}));return function(e,r,i){return t.apply(this,arguments)}}(),"labelHelper"),b=(0,y.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,o,s,l,u,h,d,y,v;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return s=null!==(n=i.useHtmlLabels)&&void 0!==n?n:(0,f.E)((0,f.D7)()),l=e.insert("g").attr("class","label").attr("style",i.labelStyle||""),t.n=1,(0,p.GZ)(l,(0,f.jZ)((0,g.Sm)(r),(0,f.D7)()),{useHtmlLabels:s,width:i.width||(null===(a=(0,f.D7)())||void 0===a||null===(o=a.flowchart)||void 0===o?void 0:o.wrappingWidth),style:i.labelStyle,addSvgBackground:!!i.icon||!!i.img});case 1:return u=t.v,h=u.getBBox(),d=i.padding/2,(0,f.E)((0,f.D7)())&&(y=u.children[0],v=(0,m.Ltv)(u),h=y.getBoundingClientRect(),v.attr("width",h.width),v.attr("height",h.height)),s?l.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):l.attr("transform","translate(0, "+-h.height/2+")"),i.centerLabel&&l.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),l.insert("rect",":first-child"),t.a(2,{shapeSvg:e,bbox:h,halfPadding:d,label:l})}},t)}));return function(e,r,i){return t.apply(this,arguments)}}(),"insertLabel"),k=(0,y.K2)(function(t,e){var r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),C=(0,y.K2)(function(t,e){return("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||"")},"getNodeClasses");function A(t){var e=t.map(function(t,e){return"".concat(0===e?"M":"L").concat(t.x,",").concat(t.y)});return e.push("Z"),e.join(" ")}function D(t,e,r,i,n,a){for(var o=[],s=r-t,l=i-e,c=s/a,u=2*Math.PI/c,h=e+l/2,d=0;d<=50;d++){var p=t+d/50*s,g=h+n*Math.sin(u*(p-t));o.push({x:p,y:g})}return o}function E(t,e,r,i,n,a){for(var o=[],s=n*Math.PI/180,l=(a*Math.PI/180-s)/(i-1),c=0;c<i;c++){var u=s+c*l,h=t+r*Math.cos(u),d=e+r*Math.sin(u);o.push({x:-h,y:-d})}return o}function T(t){var e=Array.from(t.childNodes).filter(function(t){return"path"===t.tagName}),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=e.map(function(t){return t.getAttribute("d")}).filter(function(t){return null!==t}).join(" ");r.setAttribute("d",i);var n=e.find(function(t){return"none"!==t.getAttribute("fill")}),a=e.find(function(t){return"none"!==t.getAttribute("stroke")}),o=(0,y.K2)(function(t,e){var r;return null!==(r=null==t?void 0:t.getAttribute(e))&&void 0!==r?r:void 0},"getAttr");if(n){var s,c={fill:o(n,"fill"),"fill-opacity":null!==(s=o(n,"fill-opacity"))&&void 0!==s?s:"1"};Object.entries(c).forEach(function(t){var e=(0,l.A)(t,2),i=e[0],n=e[1];n&&r.setAttribute(i,n)})}if(a){var u,h,d={stroke:o(a,"stroke"),"stroke-width":null!==(u=o(a,"stroke-width"))&&void 0!==u?u:"1","stroke-opacity":null!==(h=o(a,"stroke-opacity"))&&void 0!==h?h:"1"};Object.entries(d).forEach(function(t){var e=(0,l.A)(t,2),i=e[0],n=e[1];n&&r.setAttribute(i,n)})}var p=document.createElementNS("http://www.w3.org/2000/svg","g");return p.appendChild(r),p}(0,y.K2)(A,"createPathFromPoints"),(0,y.K2)(D,"generateFullSineWavePoints"),(0,y.K2)(E,"generateCirclePoints"),(0,y.K2)(T,"mergePaths");var w=(0,y.K2)(function(t,e){var r,i,n=t.x,a=t.y,o=e.x-n,s=e.y-a,l=t.width/2,c=t.height/2;return Math.abs(s)*l>Math.abs(o)*c?(s<0&&(c=-c),r=0===s?0:c*o/s,i=c):(o<0&&(l=-l),r=l,i=0===o?0:l*s/o),{x:n+r,y:a+i}},"intersectRect"),S=(0,y.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,o,l,u,h=arguments;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return n=h.length>3&&void 0!==h[3]&&h[3],a=h.length>4&&void 0!==h[4]&&h[4],o=r||"","object"===(0,s.A)(o)&&(o=o[0]),l=(0,f.D7)(),u=(0,f.E)(l),t.n=1,(0,p.GZ)(e,o,{style:i,isTitle:n,useHtmlLabels:u,markdown:!1,isNode:a,width:Number.POSITIVE_INFINITY},l);case 1:return t.a(2,t.v)}},t)}));return function(e,r,i){return t.apply(this,arguments)}}(),"createLabel"),F=S,_=(0,y.K2)(function(t,e,r,i,n){return["M",t+n,e,"H",t+r-n,"A",n,n,0,0,1,t+r,e+n,"V",e+i-n,"A",n,n,0,0,1,t+r-n,e+i,"H",t+n,"A",n,n,0,0,1,t,e+i-n,"V",e+n,"A",n,n,0,0,1,t+n,e,"Z"].join(" ")},"createRoundedRectPathD"),B=(0,y.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,g,x,b,k,C,A,D,E,T,S,B,L,I,R,O,M,N,K,P,q,z,W;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:if(y.Rm.info("Creating subgraph rect for ",r.id,r),i=(0,f.D7)(),n=i.themeVariables,a=i.handDrawnSeed,o=n.clusterBkg,s=n.clusterBorder,l=(0,d.GX)(r),u=l.labelStyles,g=l.nodeStyles,x=l.borderStyles,b=l.backgroundStyles,k=e.insert("g").attr("class","cluster "+r.cssClasses).attr("id",r.domId).attr("data-look",r.look),C=(0,f.E)(i),A=k.insert("g").attr("class","cluster-label "),"markdown"!==r.labelType){t.n=2;break}return t.n=1,(0,p.GZ)(A,r.label,{style:r.labelStyle,useHtmlLabels:C,isNode:!0,width:r.width});case 1:D=t.v,t.n=4;break;case 2:return t.n=3,F(A,r.label,r.labelStyle||"",!1,!0);case 3:D=t.v;case 4:return E=D.getBBox(),(0,f.E)(i)&&(T=D.children[0],S=(0,m.Ltv)(D),E=T.getBoundingClientRect(),S.attr("width",E.width),S.attr("height",E.height)),B=r.width<=E.width+r.padding?E.width+r.padding:r.width,r.width<=E.width+r.padding?r.diff=(B-r.width)/2-r.padding:r.diff=-r.padding,L=r.height,I=r.x-B/2,R=r.y-L/2,y.Rm.trace("Data ",r,JSON.stringify(r)),"handDrawn"===r.look?(M=v.A.svg(k),N=(0,d.Fr)(r,{roughness:.7,fill:o,stroke:s,fillWeight:3,seed:a}),K=M.path(_(I,R,B,L,0),N),(O=k.insert(function(){return y.Rm.debug("Rough node insert CXC",K),K},":first-child")).select("path:nth-child(2)").attr("style",x.join(";")),O.select("path").attr("style",b.join(";").replace("fill","stroke"))):(O=k.insert("rect",":first-child")).attr("style",g).attr("rx",r.rx).attr("ry",r.ry).attr("x",I).attr("y",R).attr("width",B).attr("height",L),P=(0,h.O)(i),q=P.subGraphTitleTopMargin,A.attr("transform","translate(".concat(r.x-E.width/2,", ").concat(r.y-r.height/2+q,")")),u&&(z=A.select("span"))&&z.attr("style",u),W=O.node().getBBox(),r.offsetX=0,r.width=W.width,r.height=W.height,r.offsetY=E.height-r.padding/2,r.intersect=function(t){return w(r,t)},t.a(2,{cluster:k,labelBBox:E})}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"rect"),L=(0,y.K2)(function(t,e){var r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),i=r.insert("rect",":first-child"),n=0*e.padding,a=n/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+n).attr("height",e.height+n).attr("fill","none");var o=i.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return w(e,t)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),I=(0,y.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,d,p,g,y,x,b,k,C,A,D,E,T,S,B,L,I,R,O,M,N,K;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return i=(0,f.D7)(),n=i.themeVariables,a=i.handDrawnSeed,o=n.altBackground,s=n.compositeBackground,l=n.compositeTitleBackground,u=n.nodeBorder,h=e.insert("g").attr("class",r.cssClasses).attr("id",r.domId).attr("data-id",r.id).attr("data-look",r.look),d=h.insert("g",":first-child"),p=h.insert("g").attr("class","cluster-label"),g=h.append("rect"),t.n=1,F(p,r.label,r.labelStyle,void 0,!0);case 1:return y=t.v,x=y.getBBox(),(0,f.E)(i)&&(b=y.children[0],k=(0,m.Ltv)(y),x=b.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)),C=0*r.padding,A=C/2,D=(r.width<=x.width+r.padding?x.width+r.padding:r.width)+C,r.width<=x.width+r.padding?r.diff=(D-r.width)/2-r.padding:r.diff=-r.padding,E=r.height+C,T=r.height+C-x.height-6,S=r.x-D/2,B=r.y-E/2,r.width=D,L=r.y-r.height/2-A+x.height+2,"handDrawn"===r.look?(R=r.cssClasses.includes("statediagram-cluster-alt"),O=v.A.svg(h),M=r.rx||r.ry?O.path(_(S,B,D,E,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:u,seed:a}):O.rectangle(S,B,D,E,{seed:a}),I=h.insert(function(){return M},":first-child"),N=O.rectangle(S,L,D,T,{fill:R?o:s,fillStyle:R?"hachure":"solid",stroke:u,seed:a}),I=h.insert(function(){return M},":first-child"),g=h.insert(function(){return N})):(I=d.insert("rect",":first-child"),I.attr("class","outer").attr("x",S).attr("y",B).attr("width",D).attr("height",E).attr("data-look",r.look),g.attr("class","inner").attr("x",S).attr("y",L).attr("width",D).attr("height",T)),p.attr("transform","translate(".concat(r.x-x.width/2,", ").concat(B+1-((0,f.E)(i)?0:3),")")),K=I.node().getBBox(),r.height=K.height,r.offsetX=0,r.offsetY=x.height-r.padding/2,r.labelBBox=x,r.intersect=function(t){return w(r,t)},t.a(2,{cluster:h,labelBBox:x})}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"roundedWithTitle"),R=(0,y.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,g,x,b,k,C,A,D,E,T,S,F,B,L,I,R,O,M,N,K,P,q,z;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return y.Rm.info("Creating subgraph rect for ",r.id,r),i=(0,f.D7)(),n=i.themeVariables,a=i.handDrawnSeed,o=n.clusterBkg,s=n.clusterBorder,l=(0,d.GX)(r),u=l.labelStyles,g=l.nodeStyles,x=l.borderStyles,b=l.backgroundStyles,k=e.insert("g").attr("class","cluster "+r.cssClasses).attr("id",r.domId).attr("data-look",r.look),C=(0,f.E)(i),A=k.insert("g").attr("class","cluster-label "),t.n=1,(0,p.GZ)(A,r.label,{style:r.labelStyle,useHtmlLabels:C,isNode:!0,width:r.width});case 1:return D=t.v,E=D.getBBox(),(0,f.E)(i)&&(T=D.children[0],S=(0,m.Ltv)(D),E=T.getBoundingClientRect(),S.attr("width",E.width),S.attr("height",E.height)),F=r.width<=E.width+r.padding?E.width+r.padding:r.width,r.width<=E.width+r.padding?r.diff=(F-r.width)/2-r.padding:r.diff=-r.padding,B=r.height,L=r.x-F/2,I=r.y-B/2,y.Rm.trace("Data ",r,JSON.stringify(r)),"handDrawn"===r.look?(O=v.A.svg(k),M=(0,d.Fr)(r,{roughness:.7,fill:o,stroke:s,fillWeight:4,seed:a}),N=O.path(_(L,I,F,B,r.rx),M),(R=k.insert(function(){return y.Rm.debug("Rough node insert CXC",N),N},":first-child")).select("path:nth-child(2)").attr("style",x.join(";")),R.select("path").attr("style",b.join(";").replace("fill","stroke"))):(R=k.insert("rect",":first-child")).attr("style",g).attr("rx",r.rx).attr("ry",r.ry).attr("x",L).attr("y",I).attr("width",F).attr("height",B),K=(0,h.O)(i),P=K.subGraphTitleTopMargin,A.attr("transform","translate(".concat(r.x-E.width/2,", ").concat(r.y-r.height/2+P,")")),u&&(q=A.select("span"))&&q.attr("style",u),z=R.node().getBBox(),r.offsetX=0,r.width=z.width,r.height=z.height,r.offsetY=E.height-r.padding/2,r.intersect=function(t){return w(r,t)},t.a(2,{cluster:k,labelBBox:E})}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"kanbanSection"),O={rect:B,squareRect:B,roundedWithTitle:I,noteGroup:L,divider:(0,y.K2)(function(t,e){var r=(0,f.D7)(),i=r.themeVariables,n=r.handDrawnSeed,a=i.nodeBorder,o=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),s=o.insert("g",":first-child"),l=0*e.padding,c=e.width+l;e.diff=-e.padding;var u,h=e.height+l,d=e.x-c/2,p=e.y-h/2;if(e.width=c,"handDrawn"===e.look){var g=v.A.svg(o).rectangle(d,p,c,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});u=o.insert(function(){return g},":first-child")}else{u=s.insert("rect",":first-child");var y="outer";y=(e.look,"divider"),u.attr("class",y).attr("x",d).attr("y",p).attr("width",c).attr("height",h).attr("data-look",e.look)}var m=u.node().getBBox();return e.height=m.height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return w(e,t)},{cluster:o,labelBBox:{}}},"divider"),kanbanSection:R},M=new Map,N=(0,y.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r){var i,n;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return i=r.shape||"rect",t.n=1,O[i](e,r);case 1:return n=t.v,M.set(r.id,n),t.a(2,n)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"insertCluster"),K=(0,y.K2)(function(){M=new Map},"clear");function P(t,e){return t.intersect(e)}(0,y.K2)(P,"intersectNode");var q=P;function z(t,e,r,i){var n=t.x,a=t.y,o=n-i.x,s=a-i.y,l=Math.sqrt(e*e*s*s+r*r*o*o),c=Math.abs(e*r*o/l);i.x<n&&(c=-c);var u=Math.abs(e*r*s/l);return i.y<a&&(u=-u),{x:n+c,y:a+u}}(0,y.K2)(z,"intersectEllipse");var W=z;function Y(t,e,r){return W(t,e,e,r)}(0,y.K2)(Y,"intersectCircle");var $=Y;function j(t,e,r,i){var n=e.y-t.y,a=t.x-e.x,o=e.x*t.y-t.x*e.y,s=n*r.x+a*r.y+o,l=n*i.x+a*i.y+o,c=1e-6;if(0===s||0===l||!U(s,l)){var u=i.y-r.y,h=r.x-i.x,d=i.x*r.y-r.x*i.y,p=u*t.x+h*t.y+d,g=u*e.x+h*e.y+d;if(!(Math.abs(p)<c&&Math.abs(g)<c&&U(p,g))){var f=n*h-u*a;if(0!==f){var y=Math.abs(f/2),m=a*d-h*o;return{x:m<0?(m-y)/f:(m+y)/f,y:(m=u*o-n*d)<0?(m-y)/f:(m+y)/f}}}}}function U(t,e){return t*e>0}(0,y.K2)(j,"intersectLine"),(0,y.K2)(U,"sameSign");var H=j;function V(t,e,r){var i=t.x,n=t.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach(function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)}):(o=Math.min(o,e.x),s=Math.min(s,e.y));for(var l=i-t.width/2-o,c=n-t.height/2-s,u=0;u<e.length;u++){var h=e[u],d=e[u<e.length-1?u+1:0],p=H(t,r,{x:l+h.x,y:c+h.y},{x:l+d.x,y:c+d.y});p&&a.push(p)}return a.length?(a.length>1&&a.sort(function(t,e){var i=t.x-r.x,n=t.y-r.y,a=Math.sqrt(i*i+n*n),o=e.x-r.x,s=e.y-r.y,l=Math.sqrt(o*o+s*s);return a<l?-1:a===l?0:1}),a[0]):t}(0,y.K2)(V,"intersectPolygon");var G={node:q,circle:$,ellipse:W,polygon:V,rect:w};function X(t,e){var r=(0,d.GX)(e).labelStyles;e.labelStyle=r;var i=C(e),n=i;i||(n="anchor");var a=t.insert("g").attr("class",n).attr("id",e.domId||e.id),o=e.cssStyles,s=v.A.svg(a),l=(0,d.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(l.roughness=0);var c=s.circle(0,0,2,l),u=a.insert(function(){return c},":first-child");return u.attr("class","anchor").attr("style",(0,g.KL)(o)),k(e,u),e.intersect=function(t){return y.Rm.info("Circle intersect",e,1,t),G.circle(e,1,t)},a}function Z(t,e,r,i,n,a,o){var s=(t+r)/2,l=(e+i)/2,c=Math.atan2(i-e,r-t),u=(r-t)/2/n,h=(i-e)/2/a,d=Math.sqrt(Math.pow(u,2)+Math.pow(h,2));if(d>1)throw new Error("The given radii are too small to create an arc between the points.");var p=Math.sqrt(1-Math.pow(d,2)),g=s+p*a*Math.sin(c)*(o?-1:1),f=l-p*n*Math.cos(c)*(o?-1:1),y=Math.atan2((e-f)/a,(t-g)/n),m=Math.atan2((i-f)/a,(r-g)/n)-y;o&&m<0&&(m+=2*Math.PI),!o&&m>0&&(m-=2*Math.PI);for(var v=[],x=0;x<20;x++){var b=y+x/19*m,k=g+n*Math.cos(b),C=f+a*Math.sin(b);v.push({x:k,y:C})}return v}function Q(t,e,r){var i=[e,r].sort(function(t,e){return e-t}),n=(0,l.A)(i,2),a=n[0];return n[1]*(1-Math.sqrt(1-Math.pow(t/a/2,2)))}function J(t,e){return tt.apply(this,arguments)}function tt(){return(tt=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,o,s,u,h,p,g,f,m,b,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return n=(0,d.GX)(r),o=n.labelStyles,s=n.nodeStyles,r.labelStyle=o,u=null!==(i=r.padding)&&void 0!==i?i:0,h="neo"===r.look?16:u,p="neo"===r.look?12:u,g=(0,y.K2)(function(t){return t+p},"calcTotalHeight"),f=(0,y.K2)(function(t){var e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),t.n=1,x(e,r,C(r));case 1:return m=t.v,b=m.shapeSvg,D=m.bbox,E=g(null!=r&&r.height?null==r?void 0:r.height:D.height),T=f(E),w=(0,l.A)(T,2),S=w[0],F=w[1],_=Q(E,S,F),B=(null!=r&&r.width?null==r?void 0:r.width:D.width)+2*h+_,L=B-_,I=E,R=r.cssStyles,O=[{x:L/2,y:-I/2},{x:-L/2,y:-I/2}].concat((0,a.A)(Z(-L/2,-I/2,-L/2,I/2,S,F,!1)),[{x:L/2,y:I/2}],(0,a.A)(Z(L/2,I/2,L/2,-I/2,S,F,!0))),M=v.A.svg(b),N=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(N.roughness=0,N.fillStyle="solid"),K=A(O),P=M.path(K,N),(q=b.insert(function(){return P},":first-child")).attr("class","basic label-container outer-path"),R&&"handDrawn"!==r.look&&q.selectAll("path").attr("style",R),s&&"handDrawn"!==r.look&&q.selectAll("path").attr("style",s),q.attr("transform","translate(".concat(S/2,", 0)")),k(r,q),r.intersect=function(t){return G.polygon(r,O,t)},t.a(2,b)}},t)}))).apply(this,arguments)}function et(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}(0,y.K2)(X,"anchor"),(0,y.K2)(Z,"generateArcPoints"),(0,y.K2)(Q,"calculateArcSagitta"),(0,y.K2)(J,"bowTieRect"),(0,y.K2)(et,"insertPolygonShape");function rt(t,e){return it.apply(this,arguments)}function it(){return(it=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,b,D,E,T,w,S,F,_,B,L;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return o=(0,d.GX)(r),s=o.labelStyles,l=o.nodeStyles,r.labelStyle=s,u=null!==(i=r.padding)&&void 0!==i?i:0,h="neo"===r.look?28:u,p="neo"===r.look?24:u,t.n=1,x(e,r,C(r));case 1:return g=t.v,f=g.shapeSvg,y=g.bbox,m=(null!==(n=null==r?void 0:r.width)&&void 0!==n?n:y.width)+("neo"===r.look?2*h:h+12),b=(null!==(a=null==r?void 0:r.height)&&void 0!==a?a:y.height)+("neo"===r.look?2*p:p),T=[{x:12,y:E=-b},{x:D=m,y:E},{x:D,y:0},{x:0,y:0},{x:0,y:E+12},{x:12,y:E}],S=r.cssStyles,"handDrawn"===r.look?(F=v.A.svg(f),_=(0,d.Fr)(r,{}),B=A(T),L=F.path(B,_),w=f.insert(function(){return L},":first-child").attr("transform","translate(".concat(-m/2,", ").concat(b/2,")")),S&&w.attr("style",S)):w=et(f,m,b,T),l&&w.attr("style",l),k(r,w),r.intersect=function(t){return G.polygon(r,T,t)},t.a(2,f)}},t)}))).apply(this,arguments)}function nt(t,e){var r,i,n=(0,d.GX)(e).nodeStyles;e.label="";var a=t.insert("g").attr("class",C(e)).attr("id",null!==(r=e.domId)&&void 0!==r?r:e.id),o=e.cssStyles,s=Math.max(28,null!==(i=e.width)&&void 0!==i?i:0),l=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],c=v.A.svg(a),u=(0,d.Fr)(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");var h=A(l),p=c.path(h,u),g=a.insert(function(){return p},":first-child");return o&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",o),n&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",n),e.width=28,e.height=28,e.intersect=function(t){return G.polygon(e,l,t)},a}function at(t,e,r){return ot.apply(this,arguments)}function ot(){return(ot=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,o,s,l,u,h,p,f,m,b,A,D,E,T;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return a=(0,d.GX)(r),o=a.labelStyles,s=a.nodeStyles,r.labelStyle=o,t.n=1,x(e,r,C(r));case 1:return l=t.v,u=l.shapeSvg,h=l.bbox,p=l.halfPadding,f=null!==(n=null==i?void 0:i.padding)&&void 0!==n?n:p,m="neo"===r.look?h.width/2+32:h.width/2+f,A=r.cssStyles,"handDrawn"===r.look?(D=v.A.svg(u),E=(0,d.Fr)(r,{}),T=D.circle(0,0,2*m,E),(b=u.insert(function(){return T},":first-child")).attr("class","basic label-container").attr("style",(0,g.KL)(A))):b=u.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",m).attr("cx",0).attr("cy",0),k(r,b),r.calcIntersect=function(t,e){var r=t.width/2;return G.circle(t,r,e)},r.intersect=function(t){return y.Rm.info("Circle intersect",r,m,t),G.circle(r,m,t)},t.a(2,u)}},t)}))).apply(this,arguments)}function st(t){var e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=2*t,n={x:i/2*e,y:i/2*r},a={x:-i/2*e,y:i/2*r},o={x:-i/2*e,y:-i/2*r},s={x:i/2*e,y:-i/2*r};return"M ".concat(a.x,",").concat(a.y," L ").concat(s.x,",").concat(s.y,"\n                   M ").concat(n.x,",").concat(n.y," L ").concat(o.x,",").concat(o.y)}function lt(t,e){var r,i,n=(0,d.GX)(e),a=n.labelStyles,o=n.nodeStyles;e.labelStyle=a,e.label="";var s=t.insert("g").attr("class",C(e)).attr("id",null!==(r=e.domId)&&void 0!==r?r:e.id),l=Math.max(30,null!==(i=null==e?void 0:e.width)&&void 0!==i?i:0),c=e.cssStyles,u=v.A.svg(s),h=(0,d.Fr)(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");var p=u.circle(0,0,2*l,h),g=st(l),f=u.path(g,h),m=s.insert(function(){return p},":first-child");return m.insert(function(){return f}),m.attr("class","outer-path"),c&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",c),o&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",o),k(e,m),e.intersect=function(t){return y.Rm.info("crossedCircle intersect",e,{radius:l,point:t}),G.circle(e,l,t)},s}function ct(t,e,r){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:180,a=[],o=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:0)*Math.PI/180,s=(n*Math.PI/180-o)/(i-1),l=0;l<i;l++){var c=o+l*s,u=t+r*Math.cos(c),h=e+r*Math.sin(c);a.push({x:-u,y:-h})}return a}function ut(t,e){return ht.apply(this,arguments)}function ht(){return(ht=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,s,l,u,h,p,g,f,y,m,b,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return h=(0,d.GX)(r),p=h.labelStyles,g=h.nodeStyles,r.labelStyle=p,t.n=1,x(e,r,C(r));case 1:return f=t.v,y=f.shapeSvg,m=f.bbox,b=f.label,D="neo"===r.look?18:null!==(i=r.padding)&&void 0!==i?i:0,E="neo"===r.look?12:null!==(n=r.padding)&&void 0!==n?n:0,T=m.width+D,w=m.height+E,S=Math.max(5,.1*w),F=r.cssStyles,_=[].concat((0,a.A)(ct(T/2,-w/2,S,30,-90,0)),[{x:-T/2-S,y:S}],(0,a.A)(ct(T/2+2*S,-S,S,20,-180,-270)),(0,a.A)(ct(T/2+2*S,S,S,20,-90,-180)),[{x:-T/2-S,y:-w/2}],(0,a.A)(ct(T/2,w/2,S,20,0,90))),B=[{x:T/2,y:-w/2-S},{x:-T/2,y:-w/2-S}].concat((0,a.A)(ct(T/2,-w/2,S,20,-90,0)),[{x:-T/2-S,y:-S}],(0,a.A)(ct(T/2+.1*T,-S,S,20,-180,-270)),(0,a.A)(ct(T/2+.1*T,S,S,20,-90,-180)),[{x:-T/2-S,y:w/2}],(0,a.A)(ct(T/2,w/2,S,20,0,90)),[{x:-T/2,y:w/2+S},{x:T/2,y:w/2+S}]),L=v.A.svg(y),I=(0,d.Fr)(r,{fill:"none"}),"handDrawn"!==r.look&&(I.roughness=0,I.fillStyle="solid"),R=A(_),O=R.replace("Z",""),M=L.path(O,I),N=A(B),K=L.path(N,(0,o.A)({},I)),(P=y.insert("g",":first-child")).insert(function(){return K},":first-child").attr("stroke-opacity",0),P.insert(function(){return M},":first-child"),P.attr("class","text"),F&&"handDrawn"!==r.look&&P.selectAll("path").attr("style",F),g&&"handDrawn"!==r.look&&P.selectAll("path").attr("style",g),P.attr("transform","translate(".concat(S,", 0)")),b.attr("transform","translate(".concat(-T/2+S-(m.x-(null!==(s=m.left)&&void 0!==s?s:0)),",").concat(-w/2+(null!==(l=r.padding)&&void 0!==l?l:0)/2-(m.y-(null!==(u=m.top)&&void 0!==u?u:0)),")")),k(r,P),r.intersect=function(t){return G.polygon(r,B,t)},t.a(2,y)}},t)}))).apply(this,arguments)}function dt(t,e,r){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:180,a=[],o=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:0)*Math.PI/180,s=(n*Math.PI/180-o)/(i-1),l=0;l<i;l++){var c=o+l*s,u=t+r*Math.cos(c),h=e+r*Math.sin(c);a.push({x:u,y:h})}return a}function pt(t,e){return gt.apply(this,arguments)}function gt(){return(gt=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,s,l,u,h,p,g,f,y,m,b,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return p=(0,d.GX)(r),g=p.labelStyles,f=p.nodeStyles,r.labelStyle=g,t.n=1,x(e,r,C(r));case 1:return y=t.v,m=y.shapeSvg,b=y.bbox,D=y.label,E="neo"===r.look?18:null!==(i=r.padding)&&void 0!==i?i:0,T="neo"===r.look?12:null!==(n=r.padding)&&void 0!==n?n:0,w=b.width+("neo"===r.look?2*E:E),S=b.height+("neo"===r.look?2*T:T),F=Math.max(5,.1*S),_=r.cssStyles,B=[].concat((0,a.A)(dt(w/2,-S/2,F,20,-90,0)),[{x:w/2+F,y:-F}],(0,a.A)(dt(w/2+2*F,-F,F,20,-180,-270)),(0,a.A)(dt(w/2+2*F,F,F,20,-90,-180)),[{x:w/2+F,y:S/2}],(0,a.A)(dt(w/2,S/2,F,20,0,90))),L=[{x:-w/2,y:-S/2-F},{x:w/2,y:-S/2-F}].concat((0,a.A)(dt(w/2,-S/2,F,20,-90,0)),[{x:w/2+F,y:-F}],(0,a.A)(dt(w/2+2*F,-F,F,20,-180,-270)),(0,a.A)(dt(w/2+2*F,F,F,20,-90,-180)),[{x:w/2+F,y:S/2}],(0,a.A)(dt(w/2,S/2,F,20,0,90)),[{x:w/2,y:S/2+F},{x:-w/2,y:S/2+F}]),I=v.A.svg(m),R=(0,d.Fr)(r,{fill:"none"}),"handDrawn"!==r.look&&(R.roughness=0,R.fillStyle="solid"),O=A(B),M=O.replace("Z",""),N=I.path(M,R),K=A(L),P=I.path(K,(0,o.A)({},R)),(q=m.insert("g",":first-child")).insert(function(){return P},":first-child").attr("stroke-opacity",0),q.insert(function(){return N},":first-child"),q.attr("class","text"),_&&"handDrawn"!==r.look&&q.selectAll("path").attr("style",_),f&&"handDrawn"!==r.look&&q.selectAll("path").attr("style",f),q.attr("transform","translate(".concat(-F,", 0)")),D.attr("transform","translate(".concat(-w/2+(null!==(s=r.padding)&&void 0!==s?s:0)/2-(b.x-(null!==(l=b.left)&&void 0!==l?l:0)),",").concat(-S/2+(null!==(u=r.padding)&&void 0!==u?u:0)/2-(b.y-(null!==(h=b.top)&&void 0!==h?h:0)),")")),k(r,q),r.intersect=function(t){return G.polygon(r,L,t)},t.a(2,m)}},t)}))).apply(this,arguments)}function ft(t,e,r){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:180,a=[],o=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:0)*Math.PI/180,s=(n*Math.PI/180-o)/(i-1),l=0;l<i;l++){var c=o+l*s,u=t+r*Math.cos(c),h=e+r*Math.sin(c);a.push({x:-u,y:-h})}return a}function yt(t,e){return mt.apply(this,arguments)}function mt(){return(mt=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,s,l,u,h,p,g,f,y,m,b,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W,Y,$;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return p=(0,d.GX)(r),g=p.labelStyles,f=p.nodeStyles,r.labelStyle=g,t.n=1,x(e,r,C(r));case 1:return y=t.v,m=y.shapeSvg,b=y.bbox,D=y.label,E="neo"===r.look?18:null!==(i=r.padding)&&void 0!==i?i:0,T="neo"===r.look?12:null!==(n=r.padding)&&void 0!==n?n:0,w=b.width+("neo"===r.look?2*E:E),S=b.height+("neo"===r.look?2*T:T),F=Math.max(5,.1*S),_=r.cssStyles,B=[].concat((0,a.A)(ft(w/2,-S/2,F,30,-90,0)),[{x:-w/2-F,y:F}],(0,a.A)(ft(w/2+2*F,-F,F,20,-180,-270)),(0,a.A)(ft(w/2+2*F,F,F,20,-90,-180)),[{x:-w/2-F,y:-S/2}],(0,a.A)(ft(w/2,S/2,F,20,0,90))),L=[].concat((0,a.A)(ft(-w/2+F+F/2,-S/2,F,20,-90,-180)),[{x:w/2-F/2,y:F}],(0,a.A)(ft(-w/2-F/2,-F,F,20,0,90)),(0,a.A)(ft(-w/2-F/2,F,F,20,-90,0)),[{x:w/2-F/2,y:-F}],(0,a.A)(ft(-w/2+F+F/2,S/2,F,30,-180,-270))),I=[{x:w/2,y:-S/2-F},{x:-w/2,y:-S/2-F}].concat((0,a.A)(ft(w/2,-S/2,F,20,-90,0)),[{x:-w/2-F,y:-F}],(0,a.A)(ft(w/2+2*F,-F,F,20,-180,-270)),(0,a.A)(ft(w/2+2*F,F,F,20,-90,-180)),[{x:-w/2-F,y:S/2}],(0,a.A)(ft(w/2,S/2,F,20,0,90)),[{x:-w/2,y:S/2+F},{x:w/2-F-F/2,y:S/2+F}],(0,a.A)(ft(-w/2+F+F/2,-S/2,F,20,-90,-180)),[{x:w/2-F/2,y:F}],(0,a.A)(ft(-w/2-F/2,-F,F,20,0,90)),(0,a.A)(ft(-w/2-F/2,F,F,20,-90,0)),[{x:w/2-F/2,y:-F}],(0,a.A)(ft(-w/2+F+F/2,S/2,F,30,-180,-270))),R=v.A.svg(m),O=(0,d.Fr)(r,{fill:"none"}),"handDrawn"!==r.look&&(O.roughness=0,O.fillStyle="solid"),M=A(B),N=M.replace("Z",""),K=R.path(N,O),P=A(L),q=P.replace("Z",""),z=R.path(q,O),W=A(I),Y=R.path(W,(0,o.A)({},O)),($=m.insert("g",":first-child")).insert(function(){return Y},":first-child").attr("stroke-opacity",0),$.insert(function(){return K},":first-child"),$.insert(function(){return z},":first-child"),$.attr("class","text"),_&&"handDrawn"!==r.look&&$.selectAll("path").attr("style",_),f&&"handDrawn"!==r.look&&$.selectAll("path").attr("style",f),$.attr("transform","translate(".concat(F-F/4,", 0)")),D.attr("transform","translate(".concat(-w/2+(null!==(s=r.padding)&&void 0!==s?s:0)/2-(b.x-(null!==(l=b.left)&&void 0!==l?l:0)),",").concat(-S/2+(null!==(u=r.padding)&&void 0!==u?u:0)/2-(b.y-(null!==(h=b.top)&&void 0!==h?h:0)),")")),k(r,$),r.intersect=function(t){return G.polygon(r,I,t)},t.a(2,m)}},t)}))).apply(this,arguments)}function vt(t,e){return xt.apply(this,arguments)}function xt(){return(xt=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,o,s,l,u,h,p,g,f,y,m,b,D,T,w,S,F,_,B,L,I,R,O,M,N,K;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return s=(0,d.GX)(r),l=s.labelStyles,u=s.nodeStyles,r.labelStyle=l,h=null!==(i=r.padding)&&void 0!==i?i:0,p="neo"===r.look?16:h,g="neo"===r.look?12:h,f=20,y=5,t.n=1,x(e,r,C(r));case 1:return m=t.v,b=m.shapeSvg,D=m.bbox,T=Math.max(f,1.25*(D.width+2*p),null!==(n=null==r?void 0:r.width)&&void 0!==n?n:0),w=Math.max(y,D.height+2*g,null!==(o=null==r?void 0:r.height)&&void 0!==o?o:0),S=w/2,F=r.cssStyles,_=v.A.svg(b),B=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(B.roughness=0,B.fillStyle="solid"),O=[{x:I=T-S,y:0},{x:R=(L=w)/4,y:0},{x:0,y:L/2},{x:R,y:L},{x:I,y:L}].concat((0,a.A)(E(-I,-L/2,S,50,270,90))),M=A(O),N=_.path(M,B),(K=b.insert(function(){return N},":first-child")).attr("class","basic label-container outer-path"),F&&"handDrawn"!==r.look&&K.selectChildren("path").attr("style",F),u&&"handDrawn"!==r.look&&K.selectChildren("path").attr("style",u),K.attr("transform","translate(".concat(-T/2,", ").concat(-w/2,")")),k(r,K),r.intersect=function(t){return G.polygon(r,O,t)},t.a(2,b)}},t)}))).apply(this,arguments)}(0,y.K2)(rt,"card"),(0,y.K2)(nt,"choice"),(0,y.K2)(at,"circle"),(0,y.K2)(st,"createLine"),(0,y.K2)(lt,"crossedCircle"),(0,y.K2)(ct,"generateCirclePoints"),(0,y.K2)(ut,"curlyBraceLeft"),(0,y.K2)(dt,"generateCirclePoints"),(0,y.K2)(pt,"curlyBraceRight"),(0,y.K2)(ft,"generateCirclePoints"),(0,y.K2)(yt,"curlyBraces"),(0,y.K2)(vt,"curvedTrapezoid");var bt=(0,y.K2)(function(t,e,r,i,n,a){return["M".concat(t,",").concat(e+a),"a".concat(n,",").concat(a," 0,0,0 ").concat(r,",0"),"a".concat(n,",").concat(a," 0,0,0 ").concat(-r,",0"),"l0,".concat(i),"a".concat(n,",").concat(a," 0,0,0 ").concat(r,",0"),"l0,".concat(-i)].join(" ")},"createCylinderPathD"),kt=(0,y.K2)(function(t,e,r,i,n,a){return["M".concat(t,",").concat(e+a),"M".concat(t+r,",").concat(e+a),"a".concat(n,",").concat(a," 0,0,0 ").concat(-r,",0"),"l0,".concat(i),"a".concat(n,",").concat(a," 0,0,0 ").concat(r,",0"),"l0,".concat(-i)].join(" ")},"createOuterCylinderPathD"),Ct=(0,y.K2)(function(t,e,r,i,n,a){return["M".concat(t-r/2,",").concat(-i/2),"a".concat(n,",").concat(a," 0,0,0 ").concat(r,",0")].join(" ")},"createInnerCylinderPathD");function At(t,e){return Dt.apply(this,arguments)}function Dt(){return(Dt=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,f,y,m,b,A,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return s=(0,d.GX)(r),l=s.labelStyles,u=s.nodeStyles,r.labelStyle=l,h=null!==(i=r.padding)&&void 0!==i?i:0,p="neo"===r.look?24:h,f="neo"===r.look?24:h,(r.width||r.height)&&(A=null!==(y=r.width)&&void 0!==y?y:0,r.width=(null!==(m=r.width)&&void 0!==m?m:0)-f,r.width<8&&(r.width=8),D=A/2/(2.5+A/50),r.height=(null!==(b=r.height)&&void 0!==b?b:0)-p-3*D,r.height<8&&(r.height=8)),t.n=1,x(e,r,C(r));case 1:return E=t.v,T=E.shapeSvg,w=E.bbox,S=E.label,F=(r.width?r.width:w.width)+f,B=(_=F/2)/(2.5+F/50),L=(r.height?r.height:w.height)+p+B,R=r.cssStyles,"handDrawn"===r.look?(O=v.A.svg(T),M=kt(0,0,F,L,_,B),N=Ct(0,B,F,L,_,B),K=(0,d.Fr)(r,{}),P=O.path(M,K),q=O.path(N,(0,d.Fr)(r,{fill:"none"})),I=T.insert(function(){return q},":first-child"),(I=T.insert(function(){return P},":first-child")).attr("class","basic label-container"),R&&I.attr("style",R)):(z=bt(0,0,F,L,_,B),I=T.insert("path",":first-child").attr("d",z).attr("class","basic label-container outer-path").attr("style",(0,g.KL)(R)).attr("style",u)),I.attr("label-offset-y",B),I.attr("transform","translate(".concat(-F/2,", ").concat(-(L/2+B),")")),k(r,I),S.attr("transform","translate(".concat(-w.width/2-(w.x-(null!==(n=w.left)&&void 0!==n?n:0)),", ").concat(-w.height/2+(null!==(a=r.padding)&&void 0!==a?a:0)/1.5-(w.y-(null!==(o=w.top)&&void 0!==o?o:0)),")")),r.intersect=function(t){var e,i,n,a,o,s=G.rect(r,t),l=s.x-(null!==(e=r.x)&&void 0!==e?e:0);if(0!=_&&(Math.abs(l)<(null!==(i=r.width)&&void 0!==i?i:0)/2||Math.abs(l)==(null!==(n=r.width)&&void 0!==n?n:0)/2&&Math.abs(s.y-(null!==(a=r.y)&&void 0!==a?a:0))>(null!==(o=r.height)&&void 0!==o?o:0)/2-B)){var c,u=B*B*(1-l*l/(_*_));u>0&&(u=Math.sqrt(u)),u=B-u,t.y-(null!==(c=r.y)&&void 0!==c?c:0)>0&&(u=-u),s.y+=u}return s},t.a(2,T)}},t)}))).apply(this,arguments)}function Et(t,e,r){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,o,s,l,u,h,p,f,y,m,b,A,D,E,T,w;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return n=(0,d.GX)(r),a=n.labelStyles,o=n.nodeStyles,r.labelStyle=a,t.n=1,x(e,r,C(r));case 1:return s=t.v,l=s.shapeSvg,u=s.bbox,h=Math.max(u.width+2*i.labelPaddingX,(null==r?void 0:r.width)||0),p=Math.max(u.height+2*i.labelPaddingY,(null==r?void 0:r.height)||0),f=-h/2,y=-p/2,b=r.rx,A=r.ry,D=r.cssStyles,null!=i&&i.rx&&i.ry&&(b=i.rx,A=i.ry),"handDrawn"===r.look?(E=v.A.svg(l),T=(0,d.Fr)(r,{}),w=b||A?E.path(_(f,y,h,p,b||0),T):E.rectangle(f,y,h,p,T),(m=l.insert(function(){return w},":first-child")).attr("class","basic label-container").attr("style",(0,g.KL)(D))):(m=l.insert("rect",":first-child")).attr("class","basic label-container").attr("style",o).attr("rx",(0,g.KL)(b)).attr("ry",(0,g.KL)(A)).attr("x",f).attr("y",y).attr("width",h).attr("height",p),k(r,m),r.calcIntersect=function(t,e){return G.rect(t,e)},r.intersect=function(t){return G.rect(r,t)},t.a(2,l)}},t)}))).apply(this,arguments)}function wt(t,e){return St.apply(this,arguments)}function St(){return(St=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,x,b,k,C,A,D;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return o=r.cssClasses,s=r.labelPaddingX,l=r.labelPaddingY,u=r.padding,h=r.width,p=r.height,g={rx:0,ry:0,classes:null!=o?o:"",labelPaddingX:null!=s?s:2*(null!=u?u:0),labelPaddingY:null!==(i=null!=l?l:u)&&void 0!==i?i:0},t.n=1,Et(e,r,g);case 1:if(f=t.v,"handDrawn"!==r.look){t.n=5;break}if(y=v.A.svg(f),m=(0,d.Fr)(r,{}),x=f.select(".basic.label-container > path:nth-child(2)"),b=x.node()){t.n=2;break}return t.a(2,f);case 2:if(k=null,!(b instanceof SVGGraphicsElement)){t.n=3;break}k=b.getBBox(),t.n=4;break;case 3:return t.a(2,f);case 4:return f.insert(function(){return y.line(k.x,k.y,k.x+k.width,k.y,m)},".basic.label-container g.label"),f.insert(function(){return y.line(k.x,k.y+k.height,k.x+k.width,k.y+k.height,m)},".basic.label-container g.label"),x.remove(),t.a(2,f);case 5:return C=f.select(".basic.label-container"),A=null!==(n=Number(C.attr("width"))||h)&&void 0!==n?n:0,D=null!==(a=Number(C.attr("height"))||p)&&void 0!==a?a:0,A>0&&D>0&&C.attr("stroke-dasharray","".concat(A," ").concat(D)),t.a(2,f)}},t)}))).apply(this,arguments)}function Ft(t,e){return _t.apply(this,arguments)}function _t(){return(_t=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,b,A,D,E,T,w,S,F,_,B,L,I,R;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return u=(0,d.GX)(r),h=u.labelStyles,p=u.nodeStyles,r.labelStyle=h,g="neo"===r.look?16:null!==(i=r.padding)&&void 0!==i?i:0,f="neo"===r.look?16:null!==(n=r.padding)&&void 0!==n?n:0,t.n=1,x(e,r,C(r));case 1:return y=t.v,m=y.shapeSvg,b=y.bbox,A=y.label,D=b.width+g,E=b.height+f,w=-D/2,S=-E/2-(T=.2*E)/2,F=r.cssStyles,_=v.A.svg(m),B=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(B.roughness=0,B.fillStyle="solid"),L=[{x:w,y:S+T},{x:-w,y:S+T},{x:-w,y:-S},{x:w,y:-S},{x:w,y:S},{x:-w,y:S},{x:-w,y:S+T}],I=_.polygon(L.map(function(t){return[t.x,t.y]}),B),(R=m.insert(function(){return I},":first-child")).attr("class","basic label-container outer-path"),F&&"handDrawn"!==r.look&&R.selectAll("path").attr("style",F),p&&"handDrawn"!==r.look&&R.selectAll("path").attr("style",p),A.attr("transform","translate(".concat(w+(null!==(a=r.padding)&&void 0!==a?a:0)/2-(b.x-(null!==(o=b.left)&&void 0!==o?o:0)),", ").concat(S+T+(null!==(s=r.padding)&&void 0!==s?s:0)/2-(b.y-(null!==(l=b.top)&&void 0!==l?l:0)),")")),k(r,R),r.intersect=function(t){return G.rect(r,t)},t.a(2,m)}},t)}))).apply(this,arguments)}function Bt(t,e){return Lt.apply(this,arguments)}function Lt(){return(Lt=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,f,m,b,A,D,E,T,w,S,F,_,B,L,I;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return n=(0,d.GX)(r),a=n.labelStyles,o=n.nodeStyles,s="neo"===r.look?12:5,r.labelStyle=a,l=null!==(i=r.padding)&&void 0!==i?i:0,u="neo"===r.look?16:l,t.n=1,x(e,r,C(r));case 1:return h=t.v,p=h.shapeSvg,f=h.bbox,m=(null!=r&&r.width?(null==r?void 0:r.width)/2:f.width/2)+(null!=u?u:0),b=m-s,D=r.cssStyles,"handDrawn"===r.look?(w=v.A.svg(p),S=(0,d.Fr)(r,{roughness:.2,strokeWidth:2.5}),F=(0,d.Fr)(r,{roughness:.2,strokeWidth:1.5}),_=w.circle(0,0,2*m,S),B=w.circle(0,0,2*b,F),(A=p.insert("g",":first-child")).attr("class",(0,g.KL)(r.cssClasses)).attr("style",(0,g.KL)(D)),null===(E=A.node())||void 0===E||E.appendChild(_),null===(T=A.node())||void 0===T||T.appendChild(B)):(A=p.insert("g",":first-child"),L=A.insert("circle",":first-child"),I=A.insert("circle"),A.attr("class","basic label-container").attr("style",o),L.attr("class","outer-circle").attr("style",o).attr("r",m).attr("cx",0).attr("cy",0),I.attr("class","inner-circle").attr("style",o).attr("r",b).attr("cx",0).attr("cy",0)),k(r,A),r.intersect=function(t){return y.Rm.info("DoubleCircle intersect",r,m,t),G.circle(r,m,t)},t.a(2,p)}},t)}))).apply(this,arguments)}function It(t,e,r){var i,n=r.config.themeVariables,a=(0,d.GX)(e),o=a.labelStyles,s=a.nodeStyles;e.label="",e.labelStyle=o;var l=t.insert("g").attr("class",C(e)).attr("id",null!==(i=e.domId)&&void 0!==i?i:e.id),c=e.cssStyles,u=v.A.svg(l),h=n.nodeBorder,p=(0,d.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(p.roughness=0);var g=u.circle(0,0,14,p),f=l.insert(function(){return g},":first-child");return f.selectAll("path").attr("style","fill: ".concat(h," !important;")),c&&c.length>0&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",c),s&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",s),k(e,f),e.intersect=function(t){return y.Rm.info("filledCircle intersect",e,{radius:7,point:t}),G.circle(e,7,t)},l}(0,y.K2)(At,"cylinder"),(0,y.K2)(Et,"drawRect"),(0,y.K2)(wt,"datastore"),(0,y.K2)(Ft,"dividedRectangle"),(0,y.K2)(Bt,"doublecircle"),(0,y.K2)(It,"filledCircle");function Rt(t,e){return Ot.apply(this,arguments)}function Ot(){return(Ot=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,m,b,D,E,T,w,S,F,_,B,L,I,R,O;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return s=(0,d.GX)(r),l=s.labelStyles,u=s.nodeStyles,r.labelStyle=l,h=null!==(i=r.padding)&&void 0!==i?i:0,p="neo"===r.look?2*h:h,(r.width||r.height)&&(r.height=null!==(g=null==r?void 0:r.height)&&void 0!==g?g:0,r.height<10&&(r.height=10),r.width=(null!==(f=null==r?void 0:r.width)&&void 0!==f?f:0)-p-p/2,r.width<10&&(r.width=10)),t.n=1,x(e,r,C(r));case 1:return m=t.v,b=m.shapeSvg,D=m.bbox,E=m.label,T=(null!=r&&r.width?null==r?void 0:r.width:D.width)+(null!=p?p:0),w=null!=r&&r.height?null==r?void 0:r.height:T+D.height,F=[{x:0,y:-w},{x:S=w,y:-w},{x:S/2,y:0}],_=r.cssStyles,B=v.A.svg(b),L=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(L.roughness=0,L.fillStyle="solid"),I=A(F),R=B.path(I,L),O=b.insert(function(){return R},":first-child").attr("transform","translate(".concat(-w/2,", ").concat(w/2,")")).attr("class","outer-path"),_&&"handDrawn"!==r.look&&O.selectChildren("path").attr("style",_),u&&"handDrawn"!==r.look&&O.selectChildren("path").attr("style",u),r.width=T,r.height=w,k(r,O),E.attr("transform","translate(".concat(-D.width/2-(D.x-(null!==(n=D.left)&&void 0!==n?n:0)),", ").concat(-w/2+(null!==(a=r.padding)&&void 0!==a?a:0)/2+(D.y-(null!==(o=D.top)&&void 0!==o?o:0)),")")),r.intersect=function(t){return y.Rm.info("Triangle intersect",r,F,t),G.polygon(r,F,t)},t.a(2,b)}},t)}))).apply(this,arguments)}function Mt(t,e,r){var i,n,a,o,s=r.dir,l=r.config,c=l.state,u=l.themeVariables,h=(0,d.GX)(e).nodeStyles;e.label="";var p,g,f=t.insert("g").attr("class",C(e)).attr("id",null!==(i=e.domId)&&void 0!==i?i:e.id),y=e.cssStyles,m=Math.max(70,null!==(n=null==e?void 0:e.width)&&void 0!==n?n:0),x=Math.max(10,null!==(a=null==e?void 0:e.height)&&void 0!==a?a:0);"LR"===s&&(m=Math.max(10,null!==(p=null==e?void 0:e.width)&&void 0!==p?p:0),x=Math.max(70,null!==(g=null==e?void 0:e.height)&&void 0!==g?g:0));var b=-1*m/2,A=-1*x/2,D=v.A.svg(f),E=(0,d.Fr)(e,{stroke:u.lineColor,fill:u.lineColor});"handDrawn"!==e.look&&(E.roughness=0,E.fillStyle="solid");var T=D.rectangle(b,A,m,x,E),w=f.insert(function(){return T},":first-child");y&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",y),h&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",h),k(e,w);var S=null!==(o=null==c?void 0:c.padding)&&void 0!==o?o:0;return e.width&&e.height&&(e.width+=S/2||0,e.height+=S/2||0),e.intersect=function(t){return G.rect(e,t)},f}function Nt(t,e){return Kt.apply(this,arguments)}function Kt(){return(Kt=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,o,s,l,u,h,p,g,f,m,b,D,T,w,S,F,_,B,L,I,R,O,M;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return o=(0,d.GX)(r),s=o.labelStyles,l=o.nodeStyles,r.labelStyle=s,u=15,h=10,p="neo"===r.look?16:null!==(i=r.padding)&&void 0!==i?i:0,g="neo"===r.look?12:null!==(n=r.padding)&&void 0!==n?n:0,(r.width||r.height)&&(r.height=(null!==(f=null==r?void 0:r.height)&&void 0!==f?f:0)-2*g,r.height<h&&(r.height=h),r.width=(null!==(m=null==r?void 0:r.width)&&void 0!==m?m:0)-2*p,r.width<u&&(r.width=u)),t.n=1,x(e,r,C(r));case 1:return b=t.v,D=b.shapeSvg,T=b.bbox,w=(null!=r&&r.width?null==r?void 0:r.width:Math.max(u,T.width))+2*p,S=(null!=r&&r.height?null==r?void 0:r.height:Math.max(h,T.height))+2*g,F=S/2,_=r.cssStyles,B=v.A.svg(D),L=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(L.roughness=0,L.fillStyle="solid"),I=[{x:-w/2,y:-S/2},{x:w/2-F,y:-S/2}].concat((0,a.A)(E(-w/2+F,0,F,50,90,270)),[{x:w/2-F,y:S/2},{x:-w/2,y:S/2}]),R=A(I),O=B.path(R,L),(M=D.insert(function(){return O},":first-child")).attr("class","basic label-container outer-path"),_&&"handDrawn"!==r.look&&M.selectChildren("path").attr("style",_),l&&"handDrawn"!==r.look&&M.selectChildren("path").attr("style",l),k(r,M),r.intersect=function(t){return y.Rm.info("Pill intersect",r,{radius:F,point:t}),G.polygon(r,I,t)},t.a(2,D)}},t)}))).apply(this,arguments)}(0,y.K2)(Rt,"flippedTriangle"),(0,y.K2)(Mt,"forkJoin"),(0,y.K2)(Nt,"halfRoundedRectangle");var Pt=(0,y.K2)(function(t,e,r,i,n){return["M".concat(t+n,",").concat(e),"L".concat(t+r-n,",").concat(e),"L".concat(t+r,",").concat(e-i/2),"L".concat(t+r-n,",").concat(e-i),"L".concat(t+n,",").concat(e-i),"L".concat(t,",").concat(e-i/2),"Z"].join(" ")},"createHexagonPathD");function qt(t,e){return zt.apply(this,arguments)}function zt(){return(zt=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,b,A,D,E,T,w,S,F,_,B,L,I,R;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return n=(0,d.GX)(r),a=n.labelStyles,o=n.nodeStyles,s="neo"===r.look?3.5:4,r.labelStyle=a,l=null!==(i=r.padding)&&void 0!==i?i:0,u="neo"===r.look?70:l,h="neo"===r.look?32:l,(r.width||r.height)&&(y=null!==(p=r.height)&&void 0!==p?p:0,m=y/s,r.width=(null!==(g=null==r?void 0:r.width)&&void 0!==g?g:0)-2*m-h,r.height=(null!==(f=r.height)&&void 0!==f?f:0)-u),t.n=1,x(e,r,C(r));case 1:return b=t.v,A=b.shapeSvg,D=b.bbox,E=(null!=r&&r.height?null==r?void 0:r.height:D.height)+u,T=E/s,w=(null!=r&&r.width?null==r?void 0:r.width:D.width)+2*T+h,S=[{x:T,y:0},{x:w-T,y:0},{x:w,y:-E/2},{x:w-T,y:-E},{x:T,y:-E},{x:0,y:-E/2}],_=r.cssStyles,"handDrawn"===r.look?(B=v.A.svg(A),L=(0,d.Fr)(r,{}),I=Pt(0,0,w,E,T),R=B.path(I,L),F=A.insert(function(){return R},":first-child").attr("transform","translate(".concat(-w/2,", ").concat(E/2,")")),_&&F.attr("style",_)):F=et(A,w,E,S),o&&F.attr("style",o),r.width=w,r.height=E,k(r,F),r.intersect=function(t){return G.polygon(r,S,t)},t.a(2,A)}},t)}))).apply(this,arguments)}function Wt(t,e){return Yt.apply(this,arguments)}function Yt(){return(Yt=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,m,b,D,E,T;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return a=(0,d.GX)(r),o=a.labelStyles,s=a.nodeStyles,r.label="",r.labelStyle=o,t.n=1,x(e,r,C(r));case 1:return l=t.v,u=l.shapeSvg,h=Math.max(30,null!==(i=null==r?void 0:r.width)&&void 0!==i?i:0),p=Math.max(30,null!==(n=null==r?void 0:r.height)&&void 0!==n?n:0),g=r.cssStyles,f=v.A.svg(u),m=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(m.roughness=0,m.fillStyle="solid"),D=A(b=[{x:0,y:0},{x:h,y:0},{x:0,y:p},{x:h,y:p}]),E=f.path(D,m),(T=u.insert(function(){return E},":first-child")).attr("class","basic label-container outer-path"),g&&"handDrawn"!==r.look&&T.selectChildren("path").attr("style",g),s&&"handDrawn"!==r.look&&T.selectChildren("path").attr("style",s),T.attr("transform","translate(".concat(-h/2,", ").concat(-p/2,")")),k(r,T),r.intersect=function(t){return y.Rm.info("Pill intersect",r,{points:b}),G.polygon(r,b,t)},t.a(2,u)}},t)}))).apply(this,arguments)}function $t(t,e,r){return jt.apply(this,arguments)}function jt(){return(jt=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,s,l,u,h,g,f,m,b,C,A,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W,Y,$,j,U,H,V,X,Z,Q,J,tt;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return l=i.config,u=l.themeVariables,h=l.flowchart,g=(0,d.GX)(r),f=g.labelStyles,r.labelStyle=f,m=null!==(n=r.assetHeight)&&void 0!==n?n:48,b=null!==(a=r.assetWidth)&&void 0!==a?a:48,C=Math.max(m,b),A=null==h?void 0:h.wrappingWidth,r.width=Math.max(C,null!=A?A:0),t.n=1,x(e,r,"icon-shape default");case 1:if(D=t.v,E=D.shapeSvg,T=D.bbox,w=D.label,S="t"===r.pos,F=C,_=C,B=u.nodeBorder,L=(0,d.WW)(r),I=L.stylesMap,R=-_/2,O=-F/2,M=r.label?8:0,N=v.A.svg(E),K=(0,d.Fr)(r,{stroke:"none",fill:"none"}),"handDrawn"!==r.look&&(K.roughness=0,K.fillStyle="solid"),P=N.rectangle(R,O,_,F,K),q=Math.max(_,T.width),z=F+T.height+M,W=N.rectangle(-q/2,-z/2,q,z,(0,o.A)((0,o.A)({},K),{},{fill:"transparent",stroke:"none"})),Y=E.insert(function(){return P},":first-child"),$=E.insert(function(){return W}),!r.icon){t.n=3;break}return U=E.append("g"),J=U,tt="<g>",t.n=2,(0,p.WY)(r.icon,{height:C,width:C,fallbackPrefix:""});case 2:J.html.call(J,tt.concat.call(tt,t.v,"</g>")),H=U.node().getBBox(),V=H.width,X=H.height,Z=H.x,Q=H.y,U.attr("transform","translate(".concat(-V/2-Z,",").concat(S?T.height/2+M/2-X/2-Q:-T.height/2-M/2-X/2-Q,")")),U.attr("style","color: ".concat(null!==(j=I.get("stroke"))&&void 0!==j?j:B,";"));case 3:return w.attr("transform","translate(".concat(-T.width/2-(T.x-(null!==(s=T.left)&&void 0!==s?s:0)),",").concat(S?-z/2:z/2-T.height,")")),Y.attr("transform","translate(".concat(0,",",S?T.height/2+M/2:-T.height/2-M/2,")")),k(r,$),r.intersect=function(t){var e,i,n;if(y.Rm.info("iconSquare intersect",r,t),!r.label)return G.rect(r,t);var a=null!==(e=r.x)&&void 0!==e?e:0,o=null!==(i=r.y)&&void 0!==i?i:0,s=null!==(n=r.height)&&void 0!==n?n:0,l=[];return l=S?[{x:a-T.width/2,y:o-s/2},{x:a+T.width/2,y:o-s/2},{x:a+T.width/2,y:o-s/2+T.height+M},{x:a+_/2,y:o-s/2+T.height+M},{x:a+_/2,y:o+s/2},{x:a-_/2,y:o+s/2},{x:a-_/2,y:o-s/2+T.height+M},{x:a-T.width/2,y:o-s/2+T.height+M}]:[{x:a-_/2,y:o-s/2},{x:a+_/2,y:o-s/2},{x:a+_/2,y:o-s/2+F},{x:a+T.width/2,y:o-s/2+F},{x:a+T.width/2/2,y:o+s/2},{x:a-T.width/2,y:o+s/2},{x:a-T.width/2,y:o-s/2+F},{x:a-_/2,y:o-s/2+F}],G.polygon(r,l,t)},t.a(2,E)}},t)}))).apply(this,arguments)}function Ut(t,e,r){return Ht.apply(this,arguments)}function Ht(){return(Ht=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,s,l,u,h,g,f,m,b,C,A,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W,Y,$,j,U,H,V,X,Z,Q,J,tt;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return u=i.config,h=u.themeVariables,g=u.flowchart,f=(0,d.GX)(r),m=f.labelStyles,r.labelStyle=m,b=null!==(n=r.assetHeight)&&void 0!==n?n:48,C=null!==(a=r.assetWidth)&&void 0!==a?a:48,A=Math.max(b,C),D=null==g?void 0:g.wrappingWidth,r.width=Math.max(A,null!=D?D:0),t.n=1,x(e,r,"icon-shape default");case 1:if(E=t.v,T=E.shapeSvg,w=E.bbox,S=E.label,F=20,_=r.label?8:0,B="t"===r.pos,L=h.nodeBorder,I=h.mainBkg,R=(0,d.WW)(r),O=R.stylesMap,M=v.A.svg(T),N=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(N.roughness=0,N.fillStyle="solid"),K=O.get("fill"),N.stroke=null!=K?K:I,P=T.append("g"),!r.icon){t.n=3;break}return J=P,tt="<g>",t.n=2,(0,p.WY)(r.icon,{height:A,width:A,fallbackPrefix:""});case 2:J.html.call(J,tt.concat.call(tt,t.v,"</g>"));case 3:return q=P.node().getBBox(),z=q.width,W=q.height,Y=q.x,$=q.y,j=Math.max(z,W)*Math.SQRT2+2*F,U=M.circle(0,0,j,N),H=Math.max(j,w.width),V=j+w.height+_,X=M.rectangle(-H/2,-V/2,H,V,(0,o.A)((0,o.A)({},N),{},{fill:"transparent",stroke:"none"})),Z=T.insert(function(){return U},":first-child"),Q=T.insert(function(){return X}),P.attr("transform","translate(".concat(-z/2-Y,",").concat(B?w.height/2+_/2-W/2-$:-w.height/2-_/2-W/2-$,")")),P.attr("style","color: ".concat(null!==(s=O.get("stroke"))&&void 0!==s?s:L,";")),S.attr("transform","translate(".concat(-w.width/2-(w.x-(null!==(l=w.left)&&void 0!==l?l:0)),",").concat(B?-V/2:V/2-w.height,")")),Z.attr("transform","translate(".concat(0,",",B?w.height/2+_/2:-w.height/2-_/2,")")),k(r,Q),r.intersect=function(t){return y.Rm.info("iconSquare intersect",r,t),G.rect(r,t)},t.a(2,T)}},t)}))).apply(this,arguments)}function Vt(t,e,r){return Gt.apply(this,arguments)}function Gt(){return(Gt=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,s,l,u,h,g,f,m,b,C,A,D,E,T,w,S,F,B,L,I,R,O,M,N,K,P,q,z,W,Y,$,j,U,H,V,X,Z,Q,J,tt,et,rt,it,nt;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return l=i.config,u=l.themeVariables,h=l.flowchart,g=(0,d.GX)(r),f=g.labelStyles,r.labelStyle=f,m=null!==(n=r.assetHeight)&&void 0!==n?n:48,b=null!==(a=r.assetWidth)&&void 0!==a?a:48,C=Math.max(m,b),A=null==h?void 0:h.wrappingWidth,r.width=Math.max(C,null!=A?A:0),t.n=1,x(e,r,"icon-shape default");case 1:if(D=t.v,E=D.shapeSvg,T=D.bbox,w=D.halfPadding,S=D.label,F="t"===r.pos,B=C+2*w,L=C+2*w,I=u.nodeBorder,R=u.mainBkg,O=(0,d.WW)(r),M=O.stylesMap,N=-L/2,K=-B/2,P=r.label?8:0,q=v.A.svg(E),z=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(z.roughness=0,z.fillStyle="solid"),W=M.get("fill"),z.stroke=null!=W?W:R,Y=q.path(_(N,K,L,B,5),z),$=Math.max(L,T.width),j=B+T.height+P,U=q.rectangle(-$/2,-j/2,$,j,(0,o.A)((0,o.A)({},z),{},{fill:"transparent",stroke:"none"})),H=E.insert(function(){return Y},":first-child").attr("class","icon-shape2"),V=E.insert(function(){return U}),!r.icon){t.n=3;break}return Z=E.append("g"),it=Z,nt="<g>",t.n=2,(0,p.WY)(r.icon,{height:C,width:C,fallbackPrefix:""});case 2:it.html.call(it,nt.concat.call(nt,t.v,"</g>")),Q=Z.node().getBBox(),J=Q.width,tt=Q.height,et=Q.x,rt=Q.y,Z.attr("transform","translate(".concat(-J/2-et,",").concat(F?T.height/2+P/2-tt/2-rt:-T.height/2-P/2-tt/2-rt,")")),Z.attr("style","color: ".concat(null!==(X=M.get("stroke"))&&void 0!==X?X:I,";"));case 3:return S.attr("transform","translate(".concat(-T.width/2-(T.x-(null!==(s=T.left)&&void 0!==s?s:0)),",").concat(F?-j/2:j/2-T.height,")")),H.attr("transform","translate(".concat(0,",",F?T.height/2+P/2:-T.height/2-P/2,")")),k(r,V),r.intersect=function(t){var e,i,n;if(y.Rm.info("iconSquare intersect",r,t),!r.label)return G.rect(r,t);var a=null!==(e=r.x)&&void 0!==e?e:0,o=null!==(i=r.y)&&void 0!==i?i:0,s=null!==(n=r.height)&&void 0!==n?n:0,l=[];return l=F?[{x:a-T.width/2,y:o-s/2},{x:a+T.width/2,y:o-s/2},{x:a+T.width/2,y:o-s/2+T.height+P},{x:a+L/2,y:o-s/2+T.height+P},{x:a+L/2,y:o+s/2},{x:a-L/2,y:o+s/2},{x:a-L/2,y:o-s/2+T.height+P},{x:a-T.width/2,y:o-s/2+T.height+P}]:[{x:a-L/2,y:o-s/2},{x:a+L/2,y:o-s/2},{x:a+L/2,y:o-s/2+B},{x:a+T.width/2,y:o-s/2+B},{x:a+T.width/2/2,y:o+s/2},{x:a-T.width/2,y:o+s/2},{x:a-T.width/2,y:o-s/2+B},{x:a-L/2,y:o-s/2+B}],G.polygon(r,l,t)},t.a(2,E)}},t)}))).apply(this,arguments)}function Xt(t,e,r){return Zt.apply(this,arguments)}function Zt(){return(Zt=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,s,l,u,h,g,f,m,b,C,A,D,E,T,w,S,F,B,L,I,R,O,M,N,K,P,q,z,W,Y,$,j,U,H,V,X,Z,Q,J,tt,et,rt,it,nt;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return l=i.config,u=l.themeVariables,h=l.flowchart,g=(0,d.GX)(r),f=g.labelStyles,r.labelStyle=f,m=null!==(n=r.assetHeight)&&void 0!==n?n:48,b=null!==(a=r.assetWidth)&&void 0!==a?a:48,C=Math.max(m,b),A=null==h?void 0:h.wrappingWidth,r.width=Math.max(C,null!=A?A:0),t.n=1,x(e,r,"icon-shape default");case 1:if(D=t.v,E=D.shapeSvg,T=D.bbox,w=D.halfPadding,S=D.label,F="t"===r.pos,B=C+2*w,L=C+2*w,I=u.nodeBorder,R=u.mainBkg,O=(0,d.WW)(r),M=O.stylesMap,N=-L/2,K=-B/2,P=r.label?8:0,q=v.A.svg(E),z=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(z.roughness=0,z.fillStyle="solid"),W=M.get("fill"),z.stroke=null!=W?W:R,Y=q.path(_(N,K,L,B,.1),z),$=Math.max(L,T.width),j=B+T.height+P,U=q.rectangle(-$/2,-j/2,$,j,(0,o.A)((0,o.A)({},z),{},{fill:"transparent",stroke:"none"})),H=E.insert(function(){return Y},":first-child"),V=E.insert(function(){return U}),!r.icon){t.n=3;break}return Z=E.append("g"),it=Z,nt="<g>",t.n=2,(0,p.WY)(r.icon,{height:C,width:C,fallbackPrefix:""});case 2:it.html.call(it,nt.concat.call(nt,t.v,"</g>")),Q=Z.node().getBBox(),J=Q.width,tt=Q.height,et=Q.x,rt=Q.y,Z.attr("transform","translate(".concat(-J/2-et,",").concat(F?T.height/2+P/2-tt/2-rt:-T.height/2-P/2-tt/2-rt,")")),Z.attr("style","color: ".concat(null!==(X=M.get("stroke"))&&void 0!==X?X:I,";"));case 3:return S.attr("transform","translate(".concat(-T.width/2-(T.x-(null!==(s=T.left)&&void 0!==s?s:0)),",").concat(F?-j/2:j/2-T.height,")")),H.attr("transform","translate(".concat(0,",",F?T.height/2+P/2:-T.height/2-P/2,")")),k(r,V),r.intersect=function(t){var e,i,n;if(y.Rm.info("iconSquare intersect",r,t),!r.label)return G.rect(r,t);var a=null!==(e=r.x)&&void 0!==e?e:0,o=null!==(i=r.y)&&void 0!==i?i:0,s=null!==(n=r.height)&&void 0!==n?n:0,l=[];return l=F?[{x:a-T.width/2,y:o-s/2},{x:a+T.width/2,y:o-s/2},{x:a+T.width/2,y:o-s/2+T.height+P},{x:a+L/2,y:o-s/2+T.height+P},{x:a+L/2,y:o+s/2},{x:a-L/2,y:o+s/2},{x:a-L/2,y:o-s/2+T.height+P},{x:a-T.width/2,y:o-s/2+T.height+P}]:[{x:a-L/2,y:o-s/2},{x:a+L/2,y:o-s/2},{x:a+L/2,y:o-s/2+B},{x:a+T.width/2,y:o-s/2+B},{x:a+T.width/2/2,y:o+s/2},{x:a-T.width/2,y:o+s/2},{x:a-T.width/2,y:o-s/2+B},{x:a-L/2,y:o-s/2+B}],G.polygon(r,l,t)},t.a(2,E)}},t)}))).apply(this,arguments)}function Qt(t,e,r){return Jt.apply(this,arguments)}function Jt(){return(Jt=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,s,l,u,h,p,g,f,m,b,C,A,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return u=i.config.flowchart,(h=new Image).src=null!==(n=null==r?void 0:r.img)&&void 0!==n?n:"",t.n=1,h.decode();case 1:return p=Number(h.naturalWidth.toString().replace("px","")),g=Number(h.naturalHeight.toString().replace("px","")),r.imageAspectRatio=p/g,f=(0,d.GX)(r),m=f.labelStyles,r.labelStyle=m,b=null==u?void 0:u.wrappingWidth,r.defaultWidth=null==u?void 0:u.wrappingWidth,C=Math.max(r.label&&null!=b?b:0,null!==(a=null==r?void 0:r.assetWidth)&&void 0!==a?a:p),A="on"===r.constraint&&null!=r&&r.assetHeight?r.assetHeight*r.imageAspectRatio:C,D="on"===r.constraint?A/r.imageAspectRatio:null!==(s=null==r?void 0:r.assetHeight)&&void 0!==s?s:g,r.width=Math.max(A,null!=b?b:0),t.n=2,x(e,r,"image-shape default");case 2:return E=t.v,T=E.shapeSvg,w=E.bbox,S=E.label,F="t"===r.pos,_=-A/2,B=-D/2,L=r.label?8:0,I=v.A.svg(T),R=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(R.roughness=0,R.fillStyle="solid"),O=I.rectangle(_,B,A,D,R),M=Math.max(A,w.width),N=D+w.height+L,K=I.rectangle(-M/2,-N/2,M,N,(0,o.A)((0,o.A)({},R),{},{fill:"none",stroke:"none"})),P=T.insert(function(){return O},":first-child"),q=T.insert(function(){return K}),r.img&&((z=T.append("image")).attr("href",r.img),z.attr("width",A),z.attr("height",D),z.attr("preserveAspectRatio","none"),z.attr("transform","translate(".concat(-A/2,",").concat(F?N/2-D:-N/2,")"))),S.attr("transform","translate(".concat(-w.width/2-(w.x-(null!==(l=w.left)&&void 0!==l?l:0)),",").concat(F?-D/2-w.height/2-L/2:D/2-w.height/2+L/2,")")),P.attr("transform","translate(".concat(0,",",F?w.height/2+L/2:-w.height/2-L/2,")")),k(r,q),r.intersect=function(t){var e,i,n;if(y.Rm.info("iconSquare intersect",r,t),!r.label)return G.rect(r,t);var a=null!==(e=r.x)&&void 0!==e?e:0,o=null!==(i=r.y)&&void 0!==i?i:0,s=null!==(n=r.height)&&void 0!==n?n:0,l=[];return l=F?[{x:a-w.width/2,y:o-s/2},{x:a+w.width/2,y:o-s/2},{x:a+w.width/2,y:o-s/2+w.height+L},{x:a+A/2,y:o-s/2+w.height+L},{x:a+A/2,y:o+s/2},{x:a-A/2,y:o+s/2},{x:a-A/2,y:o-s/2+w.height+L},{x:a-w.width/2,y:o-s/2+w.height+L}]:[{x:a-A/2,y:o-s/2},{x:a+A/2,y:o-s/2},{x:a+A/2,y:o-s/2+D},{x:a+w.width/2,y:o-s/2+D},{x:a+w.width/2/2,y:o+s/2},{x:a-w.width/2,y:o+s/2},{x:a-w.width/2,y:o-s/2+D},{x:a-A/2,y:o-s/2+D}],G.polygon(r,l,t)},t.a(2,T)}},t)}))).apply(this,arguments)}function te(t,e){return ee.apply(this,arguments)}function ee(){return(ee=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,b,D,E,T,w,S,F,_;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return o=(0,d.GX)(r),s=o.labelStyles,l=o.nodeStyles,r.labelStyle=s,u=null!==(i=r.padding)&&void 0!==i?i:0,h=u,p="neo"===r.look?2*u:u,t.n=1,x(e,r,C(r));case 1:return g=t.v,f=g.shapeSvg,y=g.bbox,m=Math.max(y.width+2*(null!=p?p:0),null!==(n=null==r?void 0:r.width)&&void 0!==n?n:0),b=Math.max(y.height+2*(null!=h?h:0),null!==(a=null==r?void 0:r.height)&&void 0!==a?a:0),D=[{x:0,y:0},{x:m,y:0},{x:m+3*b/6,y:-b},{x:-3*b/6,y:-b}],T=r.cssStyles,"handDrawn"===r.look?(w=v.A.svg(f),S=(0,d.Fr)(r,{}),F=A(D),_=w.path(F,S),E=f.insert(function(){return _},":first-child").attr("transform","translate(".concat(-m/2,", ").concat(b/2,")")),T&&E.attr("style",T)):E=et(f,m,b,D),l&&E.attr("style",l),r.width=m,r.height=b,k(r,E),r.intersect=function(t){return G.polygon(r,D,t)},t.a(2,f)}},t)}))).apply(this,arguments)}function re(t,e){return ie.apply(this,arguments)}function ie(){return(ie=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,x(e,r,"label");case 1:return a=t.v,o=a.shapeSvg,s=a.bbox,l=a.label,u=o.insert("rect",":first-child"),u.attr("width",.1).attr("height",.1),o.attr("class","label edgeLabel"),l.attr("transform","translate(".concat(-s.width/2-(s.x-(null!==(i=s.left)&&void 0!==i?i:0)),", ").concat(-s.height/2-(s.y-(null!==(n=s.top)&&void 0!==n?n:0)),")")),k(r,u),r.intersect=function(t){return G.rect(r,t)},t.a(2,o)}},t)}))).apply(this,arguments)}function ne(t,e){return ae.apply(this,arguments)}function ae(){return(ae=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,b,D,E,T,w,S,F,_;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return o=(0,d.GX)(r),s=o.labelStyles,l=o.nodeStyles,r.labelStyle=s,u=null!==(i=r.padding)&&void 0!==i?i:0,h=u,p="neo"===r.look?2*u:u,t.n=1,x(e,r,C(r));case 1:return g=t.v,f=g.shapeSvg,y=g.bbox,m=(null!==(n=null==r?void 0:r.height)&&void 0!==n?n:y.height)+h,b=(null!==(a=null==r?void 0:r.width)&&void 0!==a?a:y.width)+p,D=[{x:0,y:0},{x:b+3*m/6,y:0},{x:b,y:-m},{x:-3*m/6,y:-m}],T=r.cssStyles,"handDrawn"===r.look?(w=v.A.svg(f),S=(0,d.Fr)(r,{}),F=A(D),_=w.path(F,S),E=f.insert(function(){return _},":first-child").attr("transform","translate(".concat(-b/2,", ").concat(m/2,")")),T&&E.attr("style",T)):E=et(f,b,m,D),l&&E.attr("style",l),r.width=b,r.height=m,k(r,E),r.intersect=function(t){return G.polygon(r,D,t)},t.a(2,f)}},t)}))).apply(this,arguments)}function oe(t,e){return se.apply(this,arguments)}function se(){return(se=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,b,D,E,T,w,S,F,_;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return o=(0,d.GX)(r),s=o.labelStyles,l=o.nodeStyles,r.labelStyle=s,u=null!==(i=r.padding)&&void 0!==i?i:0,h=u,p="neo"===r.look?2*u:u,t.n=1,x(e,r,C(r));case 1:return g=t.v,f=g.shapeSvg,y=g.bbox,m=(null!==(n=null==r?void 0:r.height)&&void 0!==n?n:y.height)+h,b=(null!==(a=null==r?void 0:r.width)&&void 0!==a?a:y.width)+p,D=[{x:-3*m/6,y:0},{x:b,y:0},{x:b+3*m/6,y:-m},{x:0,y:-m}],T=r.cssStyles,"handDrawn"===r.look?(w=v.A.svg(f),S=(0,d.Fr)(r,{}),F=A(D),_=w.path(F,S),E=f.insert(function(){return _},":first-child").attr("transform","translate(".concat(-b/2,", ").concat(m/2,")")),T&&E.attr("style",T)):E=et(f,b,m,D),l&&E.attr("style",l),r.width=b,r.height=m,k(r,E),r.intersect=function(t){return G.polygon(r,D,t)},t.a(2,f)}},t)}))).apply(this,arguments)}function le(t,e){var r,i,n,a=(0,d.GX)(e),o=a.labelStyles,s=a.nodeStyles;e.label="",e.labelStyle=o;var l=t.insert("g").attr("class",C(e)).attr("id",null!==(r=e.domId)&&void 0!==r?r:e.id),c=e.cssStyles,u=Math.max(35,null!==(i=null==e?void 0:e.width)&&void 0!==i?i:0),h=Math.max(35,null!==(n=null==e?void 0:e.height)&&void 0!==n?n:0),p=[{x:u,y:0},{x:0,y:h+3.5},{x:u-14,y:h+3.5},{x:0,y:2*h},{x:u,y:h-3.5},{x:14,y:h-3.5}],g=v.A.svg(l),f=(0,d.Fr)(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");var m=A(p),x=g.path(m,f),b=l.insert(function(){return x},":first-child");return b.attr("class","outer-path"),c&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",c),s&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",s),b.attr("transform","translate(-".concat(u/2,",").concat(-h,")")),k(e,b),e.intersect=function(t){return y.Rm.info("lightningBolt intersect",e,t),G.polygon(e,p,t)},l}(0,y.K2)(qt,"hexagon"),(0,y.K2)(Wt,"hourglass"),(0,y.K2)($t,"icon"),(0,y.K2)(Ut,"iconCircle"),(0,y.K2)(Vt,"iconRounded"),(0,y.K2)(Xt,"iconSquare"),(0,y.K2)(Qt,"imageSquare"),(0,y.K2)(te,"inv_trapezoid"),(0,y.K2)(re,"labelRect"),(0,y.K2)(ne,"lean_left"),(0,y.K2)(oe,"lean_right"),(0,y.K2)(le,"lightningBolt");var ce=(0,y.K2)(function(t,e,r,i,n,a,o){return["M".concat(t,",").concat(e+a),"a".concat(n,",").concat(a," 0,0,0 ").concat(r,",0"),"a".concat(n,",").concat(a," 0,0,0 ").concat(-r,",0"),"l0,".concat(i),"a".concat(n,",").concat(a," 0,0,0 ").concat(r,",0"),"l0,".concat(-i),"M".concat(t,",").concat(e+a+o),"a".concat(n,",").concat(a," 0,0,0 ").concat(r,",0")].join(" ")},"createCylinderPathD"),ue=(0,y.K2)(function(t,e,r,i,n,a,o){return["M".concat(t,",").concat(e+a),"M".concat(t+r,",").concat(e+a),"a".concat(n,",").concat(a," 0,0,0 ").concat(-r,",0"),"l0,".concat(i),"a".concat(n,",").concat(a," 0,0,0 ").concat(r,",0"),"l0,".concat(-i),"M".concat(t,",").concat(e+a+o),"a".concat(n,",").concat(a," 0,0,0 ").concat(r,",0")].join(" ")},"createOuterCylinderPathD"),he=(0,y.K2)(function(t,e,r,i,n,a){return["M".concat(t-r/2,",").concat(-i/2),"a".concat(n,",").concat(a," 0,0,0 ").concat(r,",0")].join(" ")},"createInnerCylinderPathD");function de(t,e){return pe.apply(this,arguments)}function pe(){return(pe=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,f,y,m,b,A,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return o=(0,d.GX)(r),s=o.labelStyles,l=o.nodeStyles,r.labelStyle=s,u=null!==(i=r.padding)&&void 0!==i?i:0,h="neo"===r.look?16:u,p="neo"===r.look?24:u,(r.width||r.height)&&(b=null!==(f=r.width)&&void 0!==f?f:0,r.width=(null!==(y=r.width)&&void 0!==y?y:0)-h,r.width<10&&(r.width=10),A=b/2/(2.5+b/50),r.height=(null!==(m=r.height)&&void 0!==m?m:0)-p-3*A,r.height<10&&(r.height=10)),t.n=1,x(e,r,C(r));case 1:return D=t.v,E=D.shapeSvg,T=D.bbox,w=D.label,S=(null!=r&&r.width?null==r?void 0:r.width:T.width)+2*h,_=(F=S/2)/(2.5+S/50),B=(null!=r&&r.height?null==r?void 0:r.height:T.height)+_+2*p,L=.1*B,R=r.cssStyles,"handDrawn"===r.look?(O=v.A.svg(E),M=ue(0,0,S,B,F,_,L),N=he(0,_,S,B,F,_),K=(0,d.Fr)(r,{}),P=O.path(M,K),q=O.path(N,K),E.insert(function(){return q},":first-child").attr("class","line"),(I=E.insert(function(){return P},":first-child")).attr("class","basic label-container"),R&&I.attr("style",R)):(z=ce(0,0,S,B,F,_,L),I=E.insert("path",":first-child").attr("d",z).attr("class","basic label-container outer-path").attr("style",(0,g.KL)(R)).attr("style",l)),I.attr("label-offset-y",_),I.attr("transform","translate(".concat(-S/2,", ").concat(-(B/2+_),")")),k(r,I),w.attr("transform","translate(".concat(-T.width/2-(T.x-(null!==(n=T.left)&&void 0!==n?n:0)),", ").concat(-T.height/2+_-(T.y-(null!==(a=T.top)&&void 0!==a?a:0)),")")),r.intersect=function(t){var e,i,n,a,o,s=G.rect(r,t),l=s.x-(null!==(e=r.x)&&void 0!==e?e:0);if(0!=F&&(Math.abs(l)<(null!==(i=r.width)&&void 0!==i?i:0)/2||Math.abs(l)==(null!==(n=r.width)&&void 0!==n?n:0)/2&&Math.abs(s.y-(null!==(a=r.y)&&void 0!==a?a:0))>(null!==(o=r.height)&&void 0!==o?o:0)/2-_)){var c,u=_*_*(1-l*l/(F*F));u>0&&(u=Math.sqrt(u)),u=_-u,t.y-(null!==(c=r.y)&&void 0!==c?c:0)>0&&(u=-u),s.y+=u}return s},t.a(2,E)}},t)}))).apply(this,arguments)}function ge(t,e){return fe.apply(this,arguments)}function fe(){return(fe=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,o,s,l,u,h,p,g,f,y,m,b,A,E,T,w,S,F,_,B,L,I,R,O,M,N;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return u=(0,d.GX)(r),h=u.labelStyles,p=u.nodeStyles,r.labelStyle=h,g=null!==(i=r.padding)&&void 0!==i?i:0,f="neo"===r.look?16:g,y="neo"===r.look?12:g,(r.width||r.height)&&(b=r.width,r.width=10*(null!=b?b:0)/11-2*f,r.width<10&&(r.width=10),r.height=(null!==(m=null==r?void 0:r.height)&&void 0!==m?m:0)-2*y,r.height<10&&(r.height=10)),t.n=1,x(e,r,C(r));case 1:return A=t.v,E=A.shapeSvg,T=A.bbox,w=A.label,S=(null!=r&&r.width?null==r?void 0:r.width:T.width)+2*(null!=f?f:0),F=(null!=r&&r.height?null==r?void 0:r.height:T.height)+2*(null!=y?y:0),_="neo"===r.look?F/4:F/8,B=F+_,L=r.cssStyles,I=v.A.svg(E),R=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(R.roughness=0,R.fillStyle="solid"),O=[{x:-S/2-S/2*.1,y:-B/2},{x:-S/2-S/2*.1,y:B/2}].concat((0,a.A)(D(-S/2-S/2*.1,B/2,S/2+S/2*.1,B/2,_,.8)),[{x:S/2+S/2*.1,y:-B/2},{x:-S/2-S/2*.1,y:-B/2},{x:-S/2,y:-B/2},{x:-S/2,y:B/2*1.1},{x:-S/2,y:-B/2}]),M=I.polygon(O.map(function(t){return[t.x,t.y]}),R),(N=E.insert(function(){return M},":first-child")).attr("class","basic label-container outer-path"),L&&"handDrawn"!==r.look&&N.selectAll("path").attr("style",L),p&&"handDrawn"!==r.look&&N.selectAll("path").attr("style",p),N.attr("transform","translate(0,".concat(-_/2,")")),w.attr("transform","translate(".concat(-S/2+(null!==(n=r.padding)&&void 0!==n?n:0)+S/2*.1/2-(T.x-(null!==(o=T.left)&&void 0!==o?o:0)),",").concat(-F/2+(null!==(s=r.padding)&&void 0!==s?s:0)-_/2-(T.y-(null!==(l=T.top)&&void 0!==l?l:0)),")")),k(r,N),r.intersect=function(t){return G.polygon(r,O,t)},t.a(2,E)}},t)}))).apply(this,arguments)}function ye(t,e){return me.apply(this,arguments)}function me(){return(me=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,b,D,E,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return o=(0,d.GX)(r),s=o.labelStyles,l=o.nodeStyles,r.labelStyle=s,u=null!==(i=r.padding)&&void 0!==i?i:0,h="neo"===r.look?16:u,p="neo"===r.look?12:u,g="neo"===r.look?10:5,(r.width||r.height)&&(r.width=Math.max((null!==(f=null==r?void 0:r.width)&&void 0!==f?f:0)-2*h-2*g,10),r.height=Math.max((null!==(y=null==r?void 0:r.height)&&void 0!==y?y:0)-2*p-2*g,10)),t.n=1,x(e,r,C(r));case 1:return m=t.v,b=m.shapeSvg,D=m.bbox,E=m.label,w=(null!=r&&r.width?null==r?void 0:r.width:D.width)+2*h+2*g,S=(null!=r&&r.height?null==r?void 0:r.height:D.height)+2*p+2*g,B=-(F=w-2*g)/2,L=-(_=S-2*g)/2,I=r.cssStyles,R=v.A.svg(b),O=(0,d.Fr)(r,{}),M=[{x:B-g,y:L+g},{x:B-g,y:L+_+g},{x:B+F-g,y:L+_+g},{x:B+F-g,y:L+_},{x:B+F,y:L+_},{x:B+F,y:L+_-g},{x:B+F+g,y:L+_-g},{x:B+F+g,y:L-g},{x:B+g,y:L-g},{x:B+g,y:L},{x:B,y:L},{x:B,y:L+g}],N=[{x:B,y:L+g},{x:B+F-g,y:L+g},{x:B+F-g,y:L+_},{x:B+F,y:L+_},{x:B+F,y:L},{x:B,y:L}],"handDrawn"!==r.look&&(O.roughness=0,O.fillStyle="solid"),K=A(M),P=R.path(K,O),q=A(N),z=R.path(q,O),"handDrawn"!==r.look&&(P=T(P),z=T(z)),(W=b.insert("g",":first-child")).insert(function(){return P}),W.insert(function(){return z}),W.attr("class","basic label-container outer-path"),I&&"handDrawn"!==r.look&&W.selectAll("path").attr("style",I),l&&"handDrawn"!==r.look&&W.selectAll("path").attr("style",l),E.attr("transform","translate(".concat(-D.width/2-g-(D.x-(null!==(n=D.left)&&void 0!==n?n:0)),", ").concat(-D.height/2+g-(D.y-(null!==(a=D.top)&&void 0!==a?a:0)),")")),k(r,W),r.intersect=function(t){return G.polygon(r,M,t)},t.a(2,b)}},t)}))).apply(this,arguments)}function ve(t,e){return xe.apply(this,arguments)}function xe(){return(xe=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,o,s,l,u,h,p,g,f,y,m,b,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W,Y,$,j,U,H,V;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return u=(0,d.GX)(r),h=u.labelStyles,p=u.nodeStyles,r.labelStyle=h,t.n=1,x(e,r,C(r));case 1:return g=t.v,f=g.shapeSvg,y=g.bbox,m=g.label,b=null!==(i=r.padding)&&void 0!==i?i:0,E="neo"===r.look?16:b,T="neo"===r.look?12:b,w=!0,(r.width||r.height)&&(w=!1,r.width=(null!==(S=null==r?void 0:r.width)&&void 0!==S?S:0)-2*E,r.height=(null!==(F=null==r?void 0:r.height)&&void 0!==F?F:0)-3*T),_=Math.max(y.width,null!==(n=null==r?void 0:r.width)&&void 0!==n?n:0)+2*E,B=Math.max(y.height,null!==(o=null==r?void 0:r.height)&&void 0!==o?o:0)+3*T,L="neo"===r.look?B/4:B/8,R=-_/2,O=-(I=B+(w?L/2:-L/2))/2,M=10,N=r.cssStyles,K=D(R-M,O+I+M,R+_-M,O+I+M,L,.8),P=null==K?void 0:K[K.length-1],q=[{x:R-M,y:O+M},{x:R-M,y:O+I+M}].concat((0,a.A)(K),[{x:R+_-M,y:P.y-M},{x:R+_,y:P.y-M},{x:R+_,y:P.y-20},{x:R+_+M,y:P.y-20},{x:R+_+M,y:O-M},{x:R+M,y:O-M},{x:R+M,y:O},{x:R,y:O},{x:R,y:O+M}]),z=[{x:R,y:O+M},{x:R+_-M,y:O+M},{x:R+_-M,y:P.y-M},{x:R+_,y:P.y-M},{x:R+_,y:O},{x:R,y:O}],W=v.A.svg(f),Y=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(Y.roughness=0,Y.fillStyle="solid"),$=A(q),j=W.path($,Y),U=A(z),H=W.path(U,Y),(V=f.insert(function(){return j},":first-child")).insert(function(){return H}),V.attr("class","basic label-container outer-path"),N&&"handDrawn"!==r.look&&V.selectAll("path").attr("style",N),p&&"handDrawn"!==r.look&&V.selectAll("path").attr("style",p),V.attr("transform","translate(0,".concat(-L/2,")")),m.attr("transform","translate(".concat(-y.width/2-M-(y.x-(null!==(s=y.left)&&void 0!==s?s:0)),", ").concat(-y.height/2+M-L/2-(y.y-(null!==(l=y.top)&&void 0!==l?l:0)),")")),k(r,V),r.intersect=function(t){return G.polygon(r,q,t)},t.a(2,f)}},t)}))).apply(this,arguments)}function be(t,e,r){return ke.apply(this,arguments)}function ke(){return(ke=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,o,s,l,u,h,p,g,y,m,b,A,D,E,T,w,S,F,_,B,L,I;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return h=i.config.themeVariables,p=(0,d.GX)(r),g=p.labelStyles,y=p.nodeStyles,r.labelStyle=g,r.useHtmlLabels||(0,f.E)((0,f.zj)())||(r.centerLabel=!0),t.n=1,x(e,r,C(r));case 1:return m=t.v,b=m.shapeSvg,A=m.bbox,D=m.label,E=Math.max(A.width+2*(null!==(n=r.padding)&&void 0!==n?n:0),null!==(a=null==r?void 0:r.width)&&void 0!==a?a:0),T=Math.max(A.height+2*(null!==(o=r.padding)&&void 0!==o?o:0),null!==(s=null==r?void 0:r.height)&&void 0!==s?s:0),w=-E/2,S=-T/2,F=r.cssStyles,_=v.A.svg(b),B=(0,d.Fr)(r,{fill:h.noteBkgColor,stroke:h.noteBorderColor}),"handDrawn"!==r.look&&(B.roughness=0,B.fillStyle="solid"),L=_.rectangle(w,S,E,T,B),(I=b.insert(function(){return L},":first-child")).attr("class","basic label-container outer-path"),D.attr("class","label noteLabel"),F&&"handDrawn"!==r.look&&I.selectAll("path").attr("style",F),y&&"handDrawn"!==r.look&&I.selectAll("path").attr("style",y),D.attr("transform","translate(".concat(-A.width/2-(A.x-(null!==(l=A.left)&&void 0!==l?l:0)),", ").concat(-A.height/2-(A.y-(null!==(u=A.top)&&void 0!==u?u:0)),")")),k(r,I),r.intersect=function(t){return G.rect(r,t)},t.a(2,b)}},t)}))).apply(this,arguments)}(0,y.K2)(de,"linedCylinder"),(0,y.K2)(ge,"linedWaveEdgedRect"),(0,y.K2)(ye,"multiRect"),(0,y.K2)(ve,"multiWaveEdgedRectangle"),(0,y.K2)(be,"note");var Ce=(0,y.K2)(function(t,e,r){return["M".concat(t+r/2,",").concat(e),"L".concat(t+r,",").concat(e-r/2),"L".concat(t+r/2,",").concat(e-r),"L".concat(t,",").concat(e-r/2),"Z"].join(" ")},"createDecisionBoxPathD");function Ae(t,e){return De.apply(this,arguments)}function De(){return(De=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,b,A,D,E,T;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return a=(0,d.GX)(r),o=a.labelStyles,s=a.nodeStyles,r.labelStyle=o,t.n=1,x(e,r,C(r));case 1:return l=t.v,u=l.shapeSvg,h=l.bbox,p=h.width+(null!==(i=r.padding)&&void 0!==i?i:0),g=h.height+(null!==(n=r.padding)&&void 0!==n?n:0),y=[{x:(f=p+g)/2,y:0},{x:f,y:-f/2},{x:f/2,y:-f},{x:0,y:-f/2}],b=r.cssStyles,"handDrawn"===r.look?(A=v.A.svg(u),D=(0,d.Fr)(r,{}),E=Ce(0,0,f),T=A.path(E,D),m=u.insert(function(){return T},":first-child").attr("transform","translate(".concat(-f/2+.5,", ").concat(f/2,")")),b&&m.attr("style",b)):(m=et(u,f,f,y)).attr("transform","translate(".concat(-f/2+.5,", ").concat(f/2,")")),s&&m.attr("style",s),k(r,m),r.calcIntersect=function(t,e){var r=t.width,i=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}],n=G.polygon(t,i,e);return{x:n.x-.5,y:n.y-.5}},r.intersect=function(t){return this.calcIntersect(r,t)},t.a(2,u)}},t)}))).apply(this,arguments)}function Ee(t,e){return Te.apply(this,arguments)}function Te(){return(Te=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,b,D,E,T,w,S,F,_,B,L,I,R,O,M;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return l=(0,d.GX)(r),u=l.labelStyles,h=l.nodeStyles,r.labelStyle=u,p=null!==(i=r.padding)&&void 0!==i?i:0,g="neo"===r.look?21:null!=p?p:0,f="neo"===r.look?12:null!=p?p:0,t.n=1,x(e,r,C(r));case 1:return y=t.v,m=y.shapeSvg,b=y.bbox,D=y.label,E=(null!==(n=null==r?void 0:r.width)&&void 0!==n?n:b.width)+("neo"===r.look?2*g:g),T=(null!==(a=null==r?void 0:r.height)&&void 0!==a?a:b.height)+("neo"===r.look?2*f:f),_=[{x:(w=-E/2)+(F=(S=-T/2)/2),y:S},{x:w,y:0},{x:w+F,y:-S},{x:-w,y:-S},{x:-w,y:S}],B=r.cssStyles,L=v.A.svg(m),I=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(I.roughness=0,I.fillStyle="solid"),R=A(_),O=L.path(R,I),(M=m.insert(function(){return O},":first-child")).attr("class","basic label-container outer-path"),B&&"handDrawn"!==r.look&&M.selectAll("path").attr("style",B),h&&"handDrawn"!==r.look&&M.selectAll("path").attr("style",h),M.attr("transform","translate(".concat(-F/2,",0)")),D.attr("transform","translate(".concat(-F/2-b.width/2-(b.x-(null!==(o=b.left)&&void 0!==o?o:0)),", ").concat(-b.height/2-(b.y-(null!==(s=b.top)&&void 0!==s?s:0)),")")),k(r,M),r.intersect=function(t){return G.polygon(r,_,t)},t.a(2,m)}},t)}))).apply(this,arguments)}function we(t,e){return Se.apply(this,arguments)}function Se(){return(Se=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,x,b,C,A,D,E,T,w,S,B,L,I,R,O,M,N,K,P,q;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return i=(0,d.GX)(r),n=i.labelStyles,a=i.nodeStyles,r.labelStyle=n,o=r.cssClasses?"node "+r.cssClasses:"node default",s=e.insert("g").attr("class",o).attr("id",r.domId||r.id),l=s.insert("g"),u=s.insert("g").attr("class","label").attr("style",a),h=r.description,p=r.label,t.n=1,F(u,p,r.labelStyle,!0,!0);case 1:return g=t.v,x={width:0,height:0},(0,f.E)((0,f.D7)())&&(b=g.children[0],C=(0,m.Ltv)(g),x=b.getBoundingClientRect(),C.attr("width",x.width),C.attr("height",x.height)),y.Rm.info("Text 2",h),A=h||[],D=g.getBBox(),t.n=2,F(u,Array.isArray(A)?A.join("<br/>"):A,r.labelStyle,!0,!0);case 2:return E=t.v,T=E.children[0],w=(0,m.Ltv)(E),x=T.getBoundingClientRect(),w.attr("width",x.width),w.attr("height",x.height),S=(r.padding||0)/2,(0,m.Ltv)(E).attr("transform","translate( "+(x.width>D.width?0:(D.width-x.width)/2)+", "+(D.height+S+5)+")"),(0,m.Ltv)(g).attr("transform","translate( "+(x.width<D.width?0:-(D.width-x.width)/2)+", 0)"),x=u.node().getBBox(),u.attr("transform","translate("+-x.width/2+", "+(-x.height/2-S+3)+")"),B=x.width+(r.padding||0),L=x.height+(r.padding||0),I=-x.width/2-S,R=-x.height/2-S,"handDrawn"===r.look?(N=v.A.svg(s),K=(0,d.Fr)(r,{}),P=N.path(_(I,R,B,L,r.rx||0),K),q=N.line(-x.width/2-S,-x.height/2-S+D.height+S,x.width/2+S,-x.height/2-S+D.height+S,K),M=s.insert(function(){return y.Rm.debug("Rough node insert CXC",P),q},":first-child"),O=s.insert(function(){return y.Rm.debug("Rough node insert CXC",P),P},":first-child")):(O=l.insert("rect",":first-child"),M=l.insert("line"),O.attr("class","outer title-state").attr("style",a).attr("x",-x.width/2-S).attr("y",-x.height/2-S).attr("width",x.width+(r.padding||0)).attr("height",x.height+(r.padding||0)),M.attr("class","divider").attr("x1",-x.width/2-S).attr("x2",x.width/2+S).attr("y1",-x.height/2-S+D.height+S).attr("y2",-x.height/2-S+D.height+S)),k(r,O),r.intersect=function(t){return G.rect(r,t)},t.a(2,s)}},t)}))).apply(this,arguments)}function Fe(t,e,r){return _e.apply(this,arguments)}function _e(){return(_e=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,o,s,l,u;return(0,c.A)().w(function(t){for(;;)if(0===t.n)return s=i.config.themeVariables,l=null!==(n=null==s?void 0:s.radius)&&void 0!==n?n:5,u={rx:l,ry:l,classes:"",labelPaddingX:1*(null!==(a=null==r?void 0:r.padding)&&void 0!==a?a:0),labelPaddingY:1*(null!==(o=null==r?void 0:r.padding)&&void 0!==o?o:0)},t.a(2,Et(e,r,u))},t)}))).apply(this,arguments)}(0,y.K2)(Ae,"question"),(0,y.K2)(Ee,"rect_left_inv_arrow"),(0,y.K2)(we,"rectWithTitle"),(0,y.K2)(Fe,"roundedRect");function Be(t,e){return Le.apply(this,arguments)}function Le(){return(Le=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,f,y,m,b,A,D,E,T,w,S,F,_,B,L,I,R,O,M;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return u=(0,d.GX)(r),h=u.labelStyles,p=u.nodeStyles,r.labelStyle=h,f="neo"===r.look?16:null!==(i=r.padding)&&void 0!==i?i:0,y="neo"===r.look?12:null!==(n=r.padding)&&void 0!==n?n:0,t.n=1,x(e,r,C(r));case 1:return m=t.v,b=m.shapeSvg,A=m.bbox,D=m.label,E=(null!==(a=null==r?void 0:r.width)&&void 0!==a?a:A.width)+2*f+("neo"===r.look?8:16),T=(null!==(o=null==r?void 0:r.height)&&void 0!==o?o:A.height)+2*y,w=E-8,S=T,F=8-E/2,_=-T/2,B=r.cssStyles,L=v.A.svg(b),I=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(I.roughness=0,I.fillStyle="solid"),R=[{x:F,y:_},{x:F+w,y:_},{x:F+w,y:_+S},{x:F-8,y:_+S},{x:F-8,y:_},{x:F,y:_},{x:F,y:_+S}],O=L.polygon(R.map(function(t){return[t.x,t.y]}),I),(M=b.insert(function(){return O},":first-child")).attr("class","basic label-container outer-path").attr("style",(0,g.KL)(B)),p&&"handDrawn"!==r.look&&M.selectAll("path").attr("style",p),B&&"handDrawn"!==r.look&&M.selectAll("path").attr("style",p),D.attr("transform","translate(".concat(4-A.width/2-(A.x-(null!==(s=A.left)&&void 0!==s?s:0)),", ").concat(-A.height/2-(A.y-(null!==(l=A.top)&&void 0!==l?l:0)),")")),k(r,M),r.intersect=function(t){return G.rect(r,t)},t.a(2,b)}},t)}))).apply(this,arguments)}function Ie(t,e){return Re.apply(this,arguments)}function Re(){return(Re=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,b,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return l=(0,d.GX)(r),u=l.labelStyles,h=l.nodeStyles,r.labelStyle=u,p=null!==(i=r.padding)&&void 0!==i?i:0,g="neo"===r.look?16:p,f="neo"===r.look?12:p,(r.width||r.height)&&(r.width=Math.max((null!==(y=null==r?void 0:r.width)&&void 0!==y?y:0)-2*g,10),r.height=Math.max((null!==(m=null==r?void 0:r.height)&&void 0!==m?m:0)/1.5-2*f,10)),t.n=1,x(e,r,C(r));case 1:return b=t.v,D=b.shapeSvg,E=b.bbox,T=b.label,w=(null!=r&&r.width?null==r?void 0:r.width:E.width)+2*g,S=1.5*((null!=r&&r.height?null==r?void 0:r.height:E.height)+2*f),B=-(F=w)/2,L=-(_=S/1.5)/2,I=r.cssStyles,R=v.A.svg(D),O=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(O.roughness=0,O.fillStyle="solid"),N=A(M=[{x:B,y:L},{x:B,y:L+_},{x:B+F,y:L+_},{x:B+F,y:L-_/2}]),K=R.path(N,O),(P=D.insert(function(){return K},":first-child")).attr("class","basic label-container  outer-path"),I&&"handDrawn"!==r.look&&P.selectChildren("path").attr("style",I),h&&"handDrawn"!==r.look&&P.selectChildren("path").attr("style",h),P.attr("transform","translate(0, ".concat(_/4,")")),T.attr("transform","translate(".concat(-F/2+(null!==(n=r.padding)&&void 0!==n?n:0)-(E.x-(null!==(a=E.left)&&void 0!==a?a:0)),", ").concat(-_/4+(null!==(o=r.padding)&&void 0!==o?o:0)-(E.y-(null!==(s=E.top)&&void 0!==s?s:0)),")")),k(r,P),r.intersect=function(t){return G.polygon(r,M,t)},t.a(2,D)}},t)}))).apply(this,arguments)}function Oe(t,e){return Me.apply(this,arguments)}function Me(){return(Me=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l;return(0,c.A)().w(function(t){for(;;)if(0===t.n)return a=null!==(i=r.padding)&&void 0!==i?i:0,o="neo"===r.look?16:2*a,s="neo"===r.look?12:a,l={rx:0,ry:0,classes:"",labelPaddingX:null!==(n=r.labelPaddingX)&&void 0!==n?n:o,labelPaddingY:s},t.a(2,Et(e,r,l))},t)}))).apply(this,arguments)}function Ne(t,e){return Ke.apply(this,arguments)}function Ke(){return(Ke=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,o,s,l,u,h,p,g,f,y,m,b,D,T,w,S,F,_,B;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return n=(0,d.GX)(r),o=n.labelStyles,s=n.nodeStyles,r.labelStyle=o,l=null!==(i=r.padding)&&void 0!==i?i:0,u="neo"===r.look?20:l,h="neo"===r.look?12:l,t.n=1,x(e,r,C(r));case 1:return p=t.v,g=p.shapeSvg,f=p.bbox,y=f.height+("neo"===r.look?2*h:h),m=f.width+y/4+("neo"===r.look?2*u:u),b=y/2,D=r.cssStyles,T=v.A.svg(g),w=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(w.roughness=0,w.fillStyle="solid"),S=[{x:-m/2+b,y:-y/2},{x:m/2-b,y:-y/2}].concat((0,a.A)(E(-m/2+b,0,b,50,90,270)),[{x:m/2-b,y:y/2}],(0,a.A)(E(m/2-b,0,b,50,270,450))),F=A(S),_=T.path(F,w),(B=g.insert(function(){return _},":first-child")).attr("class","basic label-container outer-path"),D&&"handDrawn"!==r.look&&B.selectChildren("path").attr("style",D),s&&"handDrawn"!==r.look&&B.selectChildren("path").attr("style",s),k(r,B),r.intersect=function(t){return G.polygon(r,S,t)},t.a(2,g)}},t)}))).apply(this,arguments)}function Pe(t,e){return qe.apply(this,arguments)}function qe(){return(qe=(0,u.A)((0,c.A)().m(function t(e,r){var i;return(0,c.A)().w(function(t){for(;;)if(0===t.n)return i={rx:"neo"===r.look?3:5,ry:"neo"===r.look?3:5,classes:"flowchart-node"},t.a(2,Et(e,r,i))},t)}))).apply(this,arguments)}function ze(t,e,r){var i,n,a=r.config.themeVariables,s=(0,d.GX)(e),l=s.labelStyles,c=s.nodeStyles;e.labelStyle=l;var u,h,p=e.cssStyles,g=a.lineColor,f=a.stateBorder,y=a.nodeBorder,m=a.nodeShadow;(e.width||e.height)&&((null!==(u=e.width)&&void 0!==u?u:0)<14&&(e.width=14),(null!==(h=e.height)&&void 0!==h?h:0)<14&&(e.height=14));e.width||(e.width=14),e.height||(e.height=14);var x=t.insert("g").attr("class","node default").attr("id",null!==(i=e.domId)&&void 0!==i?i:e.id),b=v.A.svg(x),C=(0,d.Fr)(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");var A=b.circle(0,0,e.width,(0,o.A)((0,o.A)({},C),{},{stroke:g,strokeWidth:2})),D=null!=f?f:y,E=5*(null!==(n=e.width)&&void 0!==n?n:0)/14,T=b.circle(0,0,E,(0,o.A)((0,o.A)({},C),{},{fill:D,stroke:D,strokeWidth:2,fillStyle:"solid"})),w=x.insert(function(){return A},":first-child");if(w.insert(function(){return T}),"handDrawn"!==e.look&&w.attr("class","outer-path"),p&&w.selectAll("path").attr("style",p),c&&w.selectAll("path").attr("style",c),e.width<25&&m&&"handDrawn"!==e.look){var S,F,_,B=null!==(S=null===(F=t.node())||void 0===F||null===(_=F.ownerSVGElement)||void 0===_?void 0:_.id)&&void 0!==S?S:"",L=B?"".concat(B,"-drop-shadow-small"):"drop-shadow-small";w.attr("style","filter:url(#".concat(L,")"))}return k(e,w),e.intersect=function(t){var r;return G.circle(e,(null!==(r=e.width)&&void 0!==r?r:0)/2,t)},x}function We(t,e,r){var i,n,a=r.config.themeVariables,o=a.lineColor,s=a.nodeShadow;(e.width||e.height)&&((null!==(i=e.width)&&void 0!==i?i:0)<14&&(e.width=14),(null!==(n=e.height)&&void 0!==n?n:0)<14&&(e.height=14));e.width||(e.width=14),e.height||(e.height=14);var l,c=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){var u,h,p,g=v.A.svg(c).circle(0,0,e.width,(0,d.ue)(o));(l=c.insert(function(){return g})).attr("class","state-start").attr("r",(null!==(u=e.width)&&void 0!==u?u:7)/2).attr("width",null!==(h=e.width)&&void 0!==h?h:14).attr("height",null!==(p=e.height)&&void 0!==p?p:14)}else{var f,y,m;(l=c.insert("circle",":first-child")).attr("class","state-start").attr("r",(null!==(f=e.width)&&void 0!==f?f:7)/2).attr("width",null!==(y=e.width)&&void 0!==y?y:14).attr("height",null!==(m=e.height)&&void 0!==m?m:14)}if(e.width<25&&s&&"handDrawn"!==e.look){var x,b,C,A=null!==(x=null===(b=t.node())||void 0===b||null===(C=b.ownerSVGElement)||void 0===C?void 0:C.id)&&void 0!==x?x:"",D=A?"".concat(A,"-drop-shadow-small"):"drop-shadow-small";l.attr("style","filter:url(#".concat(D,")"))}return k(e,l),e.intersect=function(t){var r;return G.circle(e,(null!==(r=e.width)&&void 0!==r?r:7)/2,t)},c}(0,y.K2)(Be,"shadedProcess"),(0,y.K2)(Ie,"slopedRect"),(0,y.K2)(Oe,"squareRect"),(0,y.K2)(Ne,"stadium"),(0,y.K2)(Pe,"state"),(0,y.K2)(ze,"stateEnd"),(0,y.K2)(We,"stateStart");function Ye(t,e){return $e.apply(this,arguments)}function $e(){return($e=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,f,y,m,b,A,D,E,T,w,S,F,_,B,L,I,R,O,M;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return o=(0,d.GX)(r),s=o.labelStyles,l=o.nodeStyles,r.labelStyle=s,u=null!==(i=null==r?void 0:r.padding)&&void 0!==i?i:8,h="neo"===r.look?28:u,p="neo"===r.look?12:u,t.n=1,x(e,r,C(r));case 1:return f=t.v,y=f.shapeSvg,m=f.bbox,b=(null!==(n=null==r?void 0:r.width)&&void 0!==n?n:m.width)+16+h,A=(null!==(a=null==r?void 0:r.height)&&void 0!==a?a:m.height)+p,T=-b/2,w=-A/2,S=[{x:0,y:0},{x:D=b-16,y:0},{x:D,y:-(E=A)},{x:0,y:-E},{x:0,y:0},{x:-8,y:0},{x:D+8,y:0},{x:D+8,y:-E},{x:-8,y:-E},{x:-8,y:0}],"handDrawn"===r.look?(F=v.A.svg(y),_=(0,d.Fr)(r,{}),B=F.rectangle(T,w,D+16,E,_),L=F.line(T+8,w,T+8,w+E,_),I=F.line(T+8+D,w,T+8+D,w+E,_),y.insert(function(){return L},":first-child"),y.insert(function(){return I},":first-child"),R=y.insert(function(){return B},":first-child"),O=r.cssStyles,R.attr("class","basic label-container").attr("style",(0,g.KL)(O)),k(r,R)):(M=et(y,D,E,S),l&&M.attr("style",l),k(r,M)),r.intersect=function(t){return G.polygon(r,S,t)},t.a(2,y)}},t)}))).apply(this,arguments)}(0,y.K2)(Ye,"subroutine");function je(t,e){return Ue.apply(this,arguments)}function Ue(){return(Ue=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,s,l,u,h,p,g,f,y,m,b,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return n=(0,d.GX)(r),a=n.labelStyles,s=n.nodeStyles,r.labelStyle=a,l=null!==(i=r.padding)&&void 0!==i?i:0,u="neo"===r.look?16:l,h="neo"===r.look?12:l,(r.width||r.height)&&(r.height=Math.max((null!==(p=null==r?void 0:r.height)&&void 0!==p?p:0)-2*h,10),r.width=Math.max((null!==(g=null==r?void 0:r.width)&&void 0!==g?g:0)-2*u-.2*(r.height+2*h),10)),t.n=1,x(e,r,C(r));case 1:return f=t.v,y=f.shapeSvg,m=f.bbox,b=(null!=r&&r.height?null==r?void 0:r.height:m.height)+2*h,D=.2*b,E=.2*b,T=(null!=r&&r.width?null==r?void 0:r.width:m.width)+2*u+D,F=-(w=T-D)/2,_=-(S=b)/2,B=r.cssStyles,L=v.A.svg(y),I=(0,d.Fr)(r,{}),R=[{x:F-D/2,y:_},{x:F+w+D/2,y:_},{x:F+w+D/2,y:_+S},{x:F-D/2,y:_+S}],O=[{x:F+w-D/2,y:_+S},{x:F+w+D/2,y:_+S},{x:F+w+D/2,y:_+S-E}],"handDrawn"!==r.look&&(I.roughness=0,I.fillStyle="solid"),M=A(R),N=L.path(M,I),K=A(O),P=L.path(K,(0,o.A)((0,o.A)({},I),{},{fillStyle:"solid"})),(q=y.insert(function(){return P},":first-child")).insert(function(){return N},":first-child"),q.attr("class","basic label-container outer-path"),B&&"handDrawn"!==r.look&&q.selectAll("path").attr("style",B),s&&"handDrawn"!==r.look&&q.selectAll("path").attr("style",s),k(r,q),r.intersect=function(t){return G.polygon(r,R,t)},t.a(2,y)}},t)}))).apply(this,arguments)}function He(t,e){return Ve.apply(this,arguments)}function Ve(){return(Ve=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,s,l,u,h,p,g,f,y,m,b,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W,Y,$,j;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return f=(0,d.GX)(r),y=f.labelStyles,m=f.nodeStyles,r.labelStyle=y,t.n=1,x(e,r,C(r));case 1:return b=t.v,E=b.shapeSvg,T=b.bbox,w=b.label,S=Math.max(T.width+2*(null!==(i=r.padding)&&void 0!==i?i:0),null!==(n=null==r?void 0:r.width)&&void 0!==n?n:0),F=Math.max(T.height+2*(null!==(s=r.padding)&&void 0!==s?s:0),null!==(l=null==r?void 0:r.height)&&void 0!==l?l:0),B=.2*S,L=.2*F,I=F+(_=F/8),R=r.cssStyles,O=v.A.svg(E),M=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(M.roughness=0,M.fillStyle="solid"),N=[{x:-S/2-S/2*.1,y:I/2}].concat((0,a.A)(D(-S/2-S/2*.1,I/2,S/2+S/2*.1,I/2,_,.8)),[{x:S/2+S/2*.1,y:-I/2},{x:-S/2-S/2*.1,y:-I/2}]),q=[{x:(K=-S/2+S/2*.1)+S-B,y:1.3*((P=-I/2-.4*L)+F)},{x:K+S,y:P+F-L},{x:K+S,y:.9*(P+F)}].concat((0,a.A)(D(K+S,1.25*(P+F),K+S-B,1.3*(P+F),.02*-F,.5))),z=A(N),W=O.path(z,M),Y=A(q),$=O.path(Y,(0,o.A)((0,o.A)({},M),{},{fillStyle:"solid"})),(j=E.insert(function(){return $},":first-child")).insert(function(){return W},":first-child"),j.attr("class","basic label-container outer-path"),R&&"handDrawn"!==r.look&&j.selectAll("path").attr("style",R),m&&"handDrawn"!==r.look&&j.selectAll("path").attr("style",m),j.attr("transform","translate(0,".concat(-_/2,")")),w.attr("transform","translate(".concat(-S/2+(null!==(u=r.padding)&&void 0!==u?u:0)-(T.x-(null!==(h=T.left)&&void 0!==h?h:0)),",").concat(-F/2+(null!==(p=r.padding)&&void 0!==p?p:0)-_/2-(T.y-(null!==(g=T.top)&&void 0!==g?g:0)),")")),k(r,j),r.intersect=function(t){return G.polygon(r,N,t)},t.a(2,E)}},t)}))).apply(this,arguments)}function Ge(t,e){return Xe.apply(this,arguments)}function Xe(){return(Xe=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return a=(0,d.GX)(r),o=a.labelStyles,s=a.nodeStyles,r.labelStyle=o,t.n=1,x(e,r,C(r));case 1:return l=t.v,u=l.shapeSvg,h=l.bbox,p=Math.max(h.width+(null!==(i=r.padding)&&void 0!==i?i:0),(null==r?void 0:r.width)||0),g=Math.max(h.height+(null!==(n=r.padding)&&void 0!==n?n:0),(null==r?void 0:r.height)||0),f=-p/2,y=-g/2,(m=u.insert("rect",":first-child")).attr("class","text").attr("style",s).attr("rx",0).attr("ry",0).attr("x",f).attr("y",y).attr("width",p).attr("height",g),k(r,m),r.intersect=function(t){return G.rect(r,t)},t.a(2,u)}},t)}))).apply(this,arguments)}(0,y.K2)(je,"taggedRect"),(0,y.K2)(He,"taggedWaveEdgedRectangle"),(0,y.K2)(Ge,"text");var Ze=(0,y.K2)(function(t,e,r,i,n,a){return"M".concat(t,",").concat(e,"\n    a").concat(n,",").concat(a," 0,0,1 ",0,",").concat(-i,"\n    l").concat(r,",",0,"\n    a").concat(n,",").concat(a," 0,0,1 ",0,",").concat(i,"\n    M").concat(r,",").concat(-i,"\n    a").concat(n,",").concat(a," 0,0,0 ",0,",").concat(i,"\n    l").concat(-r,",",0)},"createCylinderPathD"),Qe=(0,y.K2)(function(t,e,r,i,n,a){return["M".concat(t,",").concat(e),"M".concat(t+r,",").concat(e),"a".concat(n,",").concat(a," 0,0,0 ",0,",").concat(-i),"l".concat(-r,",0"),"a".concat(n,",").concat(a," 0,0,0 ",0,",").concat(i),"l".concat(r,",0")].join(" ")},"createOuterCylinderPathD"),Je=(0,y.K2)(function(t,e,r,i,n,a){return["M".concat(t+r/2,",").concat(-i/2),"a".concat(n,",").concat(a," 0,0,0 0,").concat(i)].join(" ")},"createInnerCylinderPathD");function tr(t,e){return er.apply(this,arguments)}function er(){return(er=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,f,y,m,b,A,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return o=(0,d.GX)(r),s=o.labelStyles,l=o.nodeStyles,r.labelStyle=s,u=null!==(i=r.padding)&&void 0!==i?i:0,h="neo"===r.look?12:u/2,(r.width||r.height)&&(m=null!==(p=r.height)&&void 0!==p?p:0,r.height=(null!==(f=r.height)&&void 0!==f?f:0)-h,r.height<5&&(r.height=5),b=m/2/(2.5+m/50),r.width=(null!==(y=r.width)&&void 0!==y?y:0)-h-3*b,r.width<10&&(r.width=10)),t.n=1,x(e,r,C(r));case 1:return A=t.v,D=A.shapeSvg,E=A.bbox,T=A.label,w=(r.height?r.height:E.height)+h,F=(S=w/2)/(2.5+w/50),_=(r.width?r.width:E.width)+F+h,B=r.cssStyles,"handDrawn"===r.look?(I=v.A.svg(D),R=Qe(0,0,_,w,F,S),O=Je(0,0,_,w,F,S),M=I.path(R,(0,d.Fr)(r,{})),N=I.path(O,(0,d.Fr)(r,{fill:"none"})),L=D.insert(function(){return N},":first-child"),(L=D.insert(function(){return M},":first-child")).attr("class","basic label-container"),B&&L.attr("style",B)):(K=Ze(0,0,_,w,F,S),(L=D.insert("path",":first-child").attr("d",K).attr("class","basic label-container").attr("style",(0,g.KL)(B)).attr("style",l)).attr("class","basic label-container outer-path"),B&&L.selectAll("path").attr("style",B),l&&L.selectAll("path").attr("style",l)),L.attr("label-offset-x",F),L.attr("transform","translate(".concat(-_/2,", ").concat(w/2," )")),T.attr("transform","translate(".concat(-E.width/2-F-(E.x-(null!==(n=E.left)&&void 0!==n?n:0)),", ").concat(-E.height/2-(E.y-(null!==(a=E.top)&&void 0!==a?a:0)),")")),k(r,L),r.intersect=function(t){var e,i,n,a,o,s=G.rect(r,t),l=s.y-(null!==(e=r.y)&&void 0!==e?e:0);if(0!=S&&(Math.abs(l)<(null!==(i=r.height)&&void 0!==i?i:0)/2||Math.abs(l)==(null!==(n=r.height)&&void 0!==n?n:0)/2&&Math.abs(s.x-(null!==(a=r.x)&&void 0!==a?a:0))>(null!==(o=r.width)&&void 0!==o?o:0)/2-F)){var c,u=F*F*(1-l*l/(S*S));0!=u&&(u=Math.sqrt(Math.abs(u))),u=F-u,t.x-(null!==(c=r.x)&&void 0!==c?c:0)>0&&(u=-u),s.x+=u}return s},t.a(2,D)}},t)}))).apply(this,arguments)}function rr(t,e){return ir.apply(this,arguments)}function ir(){return(ir=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,b,D,E,T,w,S,F,_;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return o=(0,d.GX)(r),s=o.labelStyles,l=o.nodeStyles,r.labelStyle=s,u=null!==(i=r.padding)&&void 0!==i?i:0,r.look,h=u,p="neo"===r.look?2*u:u,t.n=1,x(e,r,C(r));case 1:return g=t.v,f=g.shapeSvg,y=g.bbox,m=(null!==(n=null==r?void 0:r.height)&&void 0!==n?n:y.height)+h,b=(null!==(a=null==r?void 0:r.width)&&void 0!==a?a:y.width)+p,D=[{x:-3*m/6,y:0},{x:b+3*m/6,y:0},{x:b,y:-m},{x:0,y:-m}],T=r.cssStyles,"handDrawn"===r.look?(w=v.A.svg(f),S=(0,d.Fr)(r,{}),F=A(D),_=w.path(F,S),E=f.insert(function(){return _},":first-child").attr("transform","translate(".concat(-b/2,", ").concat(m/2,")")),T&&E.attr("style",T)):E=et(f,b,m,D),l&&E.attr("style",l),r.width=b,r.height=m,k(r,E),r.intersect=function(t){return G.polygon(r,D,t)},t.a(2,f)}},t)}))).apply(this,arguments)}function nr(t,e){return ar.apply(this,arguments)}function ar(){return(ar=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,b,D,E,T,w,S,F,_;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return n=(0,d.GX)(r),a=n.labelStyles,o=n.nodeStyles,r.labelStyle=a,s=null!==(i=r.padding)&&void 0!==i?i:0,l="neo"===r.look?16:s,u="neo"===r.look?12:s,(r.width||r.height)&&(r.height=(null!==(h=r.height)&&void 0!==h?h:0)-2*u,r.height<5&&(r.height=5),r.width=(null!==(p=r.width)&&void 0!==p?p:0)-2*l,r.width<15&&(r.width=15)),t.n=1,x(e,r,C(r));case 1:return g=t.v,f=g.shapeSvg,y=g.bbox,m=(null!=r&&r.width?null==r?void 0:r.width:y.width)+2*l,b=(null!=r&&r.height?null==r?void 0:r.height:y.height)+2*u,D=r.cssStyles,E=v.A.svg(f),T=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(T.roughness=0,T.fillStyle="solid"),S=A(w=[{x:-m/2*.8,y:-b/2},{x:m/2*.8,y:-b/2},{x:m/2,y:-b/2*.6},{x:m/2,y:b/2},{x:-m/2,y:b/2},{x:-m/2,y:-b/2*.6}]),F=E.path(S,T),(_=f.insert(function(){return F},":first-child")).attr("class","basic label-container outer-path"),D&&"handDrawn"!==r.look&&_.selectChildren("path").attr("style",D),o&&"handDrawn"!==r.look&&_.selectChildren("path").attr("style",o),k(r,_),r.intersect=function(t){return G.polygon(r,w,t)},t.a(2,f)}},t)}))).apply(this,arguments)}(0,y.K2)(tr,"tiltedCylinder"),(0,y.K2)(rr,"trapezoid"),(0,y.K2)(nr,"trapezoidalPentagon");function or(t,e){return sr.apply(this,arguments)}function sr(){return(sr=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,m,b,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return l=(0,d.GX)(r),u=l.labelStyles,h=l.nodeStyles,r.labelStyle=u,p=null!==(i=r.padding)&&void 0!==i?i:0,g="neo"===r.look?2*p:p,(r.width||r.height)&&(r.width=((null!==(m=null==r?void 0:r.width)&&void 0!==m?m:0)-g)/2,r.width<10&&(r.width=10),r.height=null!==(b=null==r?void 0:r.height)&&void 0!==b?b:0,r.height<10&&(r.height=10)),t.n=1,x(e,r,C(r));case 1:return D=t.v,E=D.shapeSvg,T=D.bbox,w=D.label,S=(0,f._3)(null===(n=(0,f.D7)().flowchart)||void 0===n?void 0:n.htmlLabels),F=(null!=r&&r.width?null==r?void 0:r.width:T.width)+g,_=null!=r&&r.height?null==r?void 0:r.height:F+T.height,L=[{x:0,y:0},{x:B=_,y:0},{x:B/2,y:-_}],I=r.cssStyles,R=v.A.svg(E),O=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(O.roughness=0,O.fillStyle="solid"),M=A(L),N=R.path(M,O),K=E.insert(function(){return N},":first-child").attr("transform","translate(".concat(-_/2,", ").concat(_/2,")")).attr("class","outer-path"),I&&"handDrawn"!==r.look&&K.selectChildren("path").attr("style",I),h&&"handDrawn"!==r.look&&K.selectChildren("path").attr("style",h),r.width=F,r.height=_,k(r,K),w.attr("transform","translate(".concat(-T.width/2-(T.x-(null!==(a=T.left)&&void 0!==a?a:0)),", ").concat(_/2-(T.height+(null!==(o=r.padding)&&void 0!==o?o:0)/(S?2:1)-(T.y-(null!==(s=T.top)&&void 0!==s?s:0))),")")),r.intersect=function(t){return y.Rm.info("Triangle intersect",r,L,t),G.polygon(r,L,t)},t.a(2,E)}},t)}))).apply(this,arguments)}function lr(t,e){return cr.apply(this,arguments)}function cr(){return(cr=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,o,s,l,u,h,p,g,f,y,m,b,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return u=(0,d.GX)(r),h=u.labelStyles,p=u.nodeStyles,r.labelStyle=h,g=null!==(i=r.padding)&&void 0!==i?i:0,f="neo"===r.look?16:g,y="neo"===r.look?12:g,m=!0,(r.width||r.height)&&(m=!1,r.width=(null!==(b=null==r?void 0:r.width)&&void 0!==b?b:0)-2*f,r.width<10&&(r.width=10),r.height=(null!==(E=null==r?void 0:r.height)&&void 0!==E?E:0)-2*y,r.height<10&&(r.height=10)),t.n=1,x(e,r,C(r));case 1:return T=t.v,w=T.shapeSvg,S=T.bbox,F=T.label,_=(null!=r&&r.width?null==r?void 0:r.width:S.width)+2*(null!=f?f:0),B=(null!=r&&r.height?null==r?void 0:r.height:S.height)+2*(null!=y?y:0),L="neo"===r.look?B/4:B/8,I=B+(m?L:-L),R=r.cssStyles,M=(O=14-_)>0?O/2:0,N=v.A.svg(w),K=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(K.roughness=0,K.fillStyle="solid"),P=[{x:-_/2-M,y:I/2}].concat((0,a.A)(D(-_/2-M,I/2,_/2+M,I/2,L,.8)),[{x:_/2+M,y:-I/2},{x:-_/2-M,y:-I/2}]),q=A(P),z=N.path(q,K),(W=w.insert(function(){return z},":first-child")).attr("class","basic label-container outer-path"),R&&"handDrawn"!==r.look&&W.selectAll("path").attr("style",R),p&&"handDrawn"!==r.look&&W.selectAll("path").attr("style",p),W.attr("transform","translate(0,".concat(-L/2,")")),F.attr("transform","translate(".concat(-_/2+(null!==(n=r.padding)&&void 0!==n?n:0)-(S.x-(null!==(o=S.left)&&void 0!==o?o:0)),",").concat(-B/2+(null!==(s=r.padding)&&void 0!==s?s:0)-L-(S.y-(null!==(l=S.top)&&void 0!==l?l:0)),")")),k(r,W),r.intersect=function(t){return G.polygon(r,P,t)},t.a(2,w)}},t)}))).apply(this,arguments)}function ur(t,e){return hr.apply(this,arguments)}function hr(){return(hr=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,o,s,l,u,h,p,g,f,y,m,b,E,T,w,S,F,_,B,L,I,R,O;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return n=(0,d.GX)(r),o=n.labelStyles,s=n.nodeStyles,r.labelStyle=o,l=null!==(i=r.padding)&&void 0!==i?i:0,u="neo"===r.look?16:l,h="neo"===r.look?20:l,(r.width||r.height)&&(r.width=null!==(p=null==r?void 0:r.width)&&void 0!==p?p:0,r.width<20&&(r.width=20),r.height=null!==(g=null==r?void 0:r.height)&&void 0!==g?g:0,r.height<10&&(r.height=10),f=Math.min(.2*r.height,r.height/4),r.height=Math.ceil(r.height-h-f*(20/9)),r.width=r.width-2*u),t.n=1,x(e,r,C(r));case 1:return y=t.v,m=y.shapeSvg,b=y.bbox,E=(null!=r&&r.width?null==r?void 0:r.width:b.width)+2*u,T=(null!=r&&r.height?null==r?void 0:r.height:b.height)+h,S=T+2*(w=T/8),F=r.cssStyles,_=v.A.svg(m),B=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(B.roughness=0,B.fillStyle="solid"),L=[{x:-E/2,y:S/2}].concat((0,a.A)(D(-E/2,S/2,E/2,S/2,w,1)),[{x:E/2,y:-S/2}],(0,a.A)(D(E/2,-S/2,-E/2,-S/2,w,-1))),I=A(L),R=_.path(I,B),(O=m.insert(function(){return R},":first-child")).attr("class","basic label-container"),F&&"handDrawn"!==r.look&&O.selectAll("path").attr("style",F),s&&"handDrawn"!==r.look&&O.selectAll("path").attr("style",s),k(r,O),r.intersect=function(t){return G.polygon(r,L,t)},t.a(2,m)}},t)}))).apply(this,arguments)}(0,y.K2)(or,"triangle"),(0,y.K2)(lr,"waveEdgedRectangle"),(0,y.K2)(ur,"waveRectangle");var dr=10;function pr(t,e){return gr.apply(this,arguments)}function gr(){return(gr=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y,m,b,A,D,E,T,w,S,F,_,B,L,I,R,O,M;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return s=(0,d.GX)(r),l=s.labelStyles,u=s.nodeStyles,r.labelStyle=l,h="neo"===r.look?16:null!==(i=r.padding)&&void 0!==i?i:0,p="neo"===r.look?12:null!==(n=r.padding)&&void 0!==n?n:0,(r.width||r.height)&&(r.width=Math.max((null!==(g=null==r?void 0:r.width)&&void 0!==g?g:0)-2*h-dr,10),r.height=Math.max((null!==(f=null==r?void 0:r.height)&&void 0!==f?f:0)-2*p-dr,10)),t.n=1,x(e,r,C(r));case 1:return y=t.v,m=y.shapeSvg,b=y.bbox,A=y.label,D=(null!=r&&r.width?null==r?void 0:r.width:b.width)+2*h+dr,E=(null!=r&&r.height?null==r?void 0:r.height:b.height)+2*p+dr,S=-(T=D-dr)/2,F=-(w=E-dr)/2,_=r.cssStyles,B=v.A.svg(m),L=(0,d.Fr)(r,{}),I=[{x:S-dr,y:F-dr},{x:S-dr,y:F+w},{x:S+T,y:F+w},{x:S+T,y:F-dr}],R="M".concat(S-dr,",").concat(F-dr," L").concat(S+T,",").concat(F-dr," L").concat(S+T,",").concat(F+w," L").concat(S-dr,",").concat(F+w," L").concat(S-dr,",").concat(F-dr,"\n                M").concat(S-dr,",").concat(F," L").concat(S+T,",").concat(F,"\n                M").concat(S,",").concat(F-dr," L").concat(S,",").concat(F+w),"handDrawn"!==r.look&&(L.roughness=0,L.fillStyle="solid"),O=B.path(R,L),(M=m.insert(function(){return O},":first-child")).attr("transform","translate(".concat(5,", ").concat(5,")")),M.attr("class","basic label-container outer-path"),_&&"handDrawn"!==r.look&&M.selectAll("path").attr("style",_),u&&"handDrawn"!==r.look&&M.selectAll("path").attr("style",u),A.attr("transform","translate(".concat(-b.width/2+5-(b.x-(null!==(a=b.left)&&void 0!==a?a:0)),", ").concat(-b.height/2+5-(b.y-(null!==(o=b.top)&&void 0!==o?o:0)),")")),k(r,M),r.intersect=function(t){return G.polygon(r,I,t)},t.a(2,m)}},t)}))).apply(this,arguments)}(0,y.K2)(pr,"windowPane");var fr=new Set(["redux-color","redux-dark-color"]),yr=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);function mr(t,e){return vr.apply(this,arguments)}function vr(){return(vr=(0,u.A)((0,c.A)().m(function t(e,r){var a,s,u,h,p,y,x,b,A,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W,Y,$,j,U,H,V,X,Z,Q,J,tt,et,rt,it,nt,at,ot,st,lt,ct,ut,ht,dt,pt,gt,ft,yt,mt,vt,xt,bt,kt,Ct,At,Dt,Tt,wt,St,Ft,_t,Bt,Lt,It,Rt,Ot,Mt,Nt,Kt,Pt,qt,zt,Wt,Yt,$t,jt;return(0,c.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:if((y=r).alias&&(r.label=y.alias),x=(0,f.zj)(),b=x.theme,A=x.themeVariables,D=A.rowEven,E=A.rowOdd,T=A.nodeBorder,w=A.borderColorArray,"handDrawn"!==r.look){t.n=1;break}return S=(0,f.zj)(),F=S.themeVariables,_=F.background,B=(0,o.A)((0,o.A)({},r),{},{id:r.id+"-background",domId:(r.domId||r.id)+"-background",look:"default",cssStyles:["stroke: none","fill: ".concat(_)]}),t.n=1,mr(e,B);case 1:if(L=(0,f.zj)(),r.useHtmlLabels=L.htmlLabels,I=null!==(a=null===(s=L.er)||void 0===s?void 0:s.diagramPadding)&&void 0!==a?a:10,R=null!==(u=null===(h=L.er)||void 0===h?void 0:h.entityPadding)&&void 0!==u?u:6,O=r.cssStyles,M=(0,d.GX)(r),N=M.labelStyles,K=M.nodeStyles,0!==y.attributes.length||!r.label){t.n=3;break}return P={rx:0,ry:0,labelPaddingX:I,labelPaddingY:1.5*I,classes:""},(0,g.Un)(r.label,L)+2*P.labelPaddingX<L.er.minEntityWidth&&(r.width=L.er.minEntityWidth),t.n=2,Et(e,r,P);case 2:return q=t.v,null!=b&&fr.has(b)&&(W=null!==(z=y.colorIndex)&&void 0!==z?z:0,q.attr("data-color-id","color-".concat(W%w.length))),(0,f._3)(L.htmlLabels)||($=q.select("text"),j=null===(Y=$.node())||void 0===Y?void 0:Y.getBBox(),$.attr("transform","translate(".concat(-j.width/2,", 0)"))),t.a(2,q);case 3:return L.htmlLabels||(I*=1.25,R*=1.25),(U=C(r))||(U="node default"),H=e.insert("g").attr("class",U).attr("id",r.domId||r.id),t.n=4,xr(H,null!==(p=r.label)&&void 0!==p?p:"",L,0,0,["name"],N);case 4:(V=t.v).height+=R,X=0,Z=[],Q=[],J=0,tt=0,et=0,rt=0,it=!0,nt=!0,at=(0,n.A)(y.attributes),t.p=5,at.s();case 6:if((ot=at.n()).done){t.n=12;break}return st=ot.value,t.n=7,xr(H,st.type,L,0,X,["attribute-type"],N);case 7:return lt=t.v,J=Math.max(J,lt.width+I),t.n=8,xr(H,st.name,L,0,X,["attribute-name"],N);case 8:return ct=t.v,tt=Math.max(tt,ct.width+I),t.n=9,xr(H,st.keys.join(),L,0,X,["attribute-keys"],N);case 9:return ut=t.v,et=Math.max(et,ut.width+I),t.n=10,xr(H,st.comment,L,0,X,["attribute-comment"],N);case 10:ht=t.v,rt=Math.max(rt,ht.width+I),dt=Math.max(lt.height,ct.height,ut.height,ht.height)+R,Q.push({yOffset:X,rowHeight:dt}),X+=dt;case 11:t.n=6;break;case 12:t.n=14;break;case 13:t.p=13,$t=t.v,at.e($t);case 14:return t.p=14,at.f(),t.f(14);case 15:pt=4,et<=I&&(it=!1,et=0,pt--),rt<=I&&(nt=!1,rt=0,pt--),gt=H.node().getBBox(),V.width+2*I-(J+tt+et+rt)>0&&(ft=V.width+2*I-(J+tt+et+rt),J+=ft/pt,tt+=ft/pt,et>0&&(et+=ft/pt),rt>0&&(rt+=ft/pt)),yt=J+tt+et+rt,mt=v.A.svg(H),vt=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(vt.roughness=0,vt.fillStyle="solid"),xt=0,Q.length>0&&(xt=Q.reduce(function(t,e){var r;return t+(null!==(r=null==e?void 0:e.rowHeight)&&void 0!==r?r:0)},0)),bt=Math.max(gt.width+2*I,(null==r?void 0:r.width)||0,yt),kt=Math.max((null!=xt?xt:0)+V.height,(null==r?void 0:r.height)||0),Ct=-bt/2,At=-kt/2,H.selectAll("g:not(:first-child)").each(function(t,e,r){var i=(0,m.Ltv)(r[e]),n=i.attr("transform"),a=0,o=0;if(n){var s=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n);s&&(a=parseFloat(s[1]),o=parseFloat(s[2]),i.attr("class").includes("attribute-name")?a+=J:i.attr("class").includes("attribute-keys")?a+=J+tt:i.attr("class").includes("attribute-comment")&&(a+=J+tt+et))}i.attr("transform","translate(".concat(Ct+I/2+a,", ").concat(o+At+V.height+R/2,")"))}),H.select(".name").attr("transform","translate("+-V.width/2+", "+(At+R/2)+")"),null!=b&&fr.has(b)&&(Tt=null!==(Dt=y.colorIndex)&&void 0!==Dt?Dt:0,H.attr("data-color-id","color-".concat(Tt%w.length))),wt=mt.rectangle(Ct,At,bt,kt,vt),St=H.insert(function(){return wt},":first-child").attr("class","outer-path").attr("style",O.join("")),Z.push(0),Ft=(0,n.A)(Q.entries()),t.p=16,Bt=(0,c.A)().m(function t(){var e,r,i,n,a;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:e=(0,l.A)(_t.value,2),r=e[0],i=e[1],n=(r+1)%2==0&&0!==i.yOffset,a=mt.rectangle(Ct,V.height+At+(null==i?void 0:i.yOffset),bt,null==i?void 0:i.rowHeight,(0,o.A)((0,o.A)({},vt),{},{fill:n?D:E,stroke:T})),H.insert(function(){return a},"g.label").attr("style",O.join("")).attr("class","row-rect-".concat(n?"even":"odd"));case 1:return t.a(2)}},t)}),Ft.s();case 17:if((_t=Ft.n()).done){t.n=19;break}return t.d((0,i.A)(Bt()),18);case 18:t.n=17;break;case 19:t.n=21;break;case 20:t.p=20,jt=t.v,Ft.e(jt);case 21:return t.p=21,Ft.f(),t.f(21);case 22:for(Lt=1e-4,It=kr(Ct,V.height+At,bt+Ct,V.height+At,Lt),Rt=mt.polygon(It.map(function(t){return[t.x,t.y]}),vt),H.insert(function(){return Rt}).attr("class","divider"),It=kr(J+Ct,V.height+At,J+Ct,kt+At,Lt),Rt=mt.polygon(It.map(function(t){return[t.x,t.y]}),vt),H.insert(function(){return Rt}).attr("class","divider"),it&&(It=kr(Ot=J+tt+Ct,V.height+At,Ot,kt+At,Lt),Rt=mt.polygon(It.map(function(t){return[t.x,t.y]}),vt),H.insert(function(){return Rt}).attr("class","divider")),nt&&(It=kr(Mt=J+tt+et+Ct,V.height+At,Mt,kt+At,Lt),Rt=mt.polygon(It.map(function(t){return[t.x,t.y]}),vt),H.insert(function(){return Rt}).attr("class","divider")),Nt=0,Kt=Z;Nt<Kt.length;Nt++)Pt=Kt[Nt],qt=V.height+At+Pt,It=kr(Ct,qt,bt+Ct,qt,Lt),Rt=mt.polygon(It.map(function(t){return[t.x,t.y]}),vt),H.insert(function(){return Rt}).attr("class","divider");return k(r,St),K&&"handDrawn"!==r.look&&(null!=b&&yr.has(b)?H.selectAll("path").attr("style",K):(Wt=K.split(";"),Yt=null==Wt||null===(zt=Wt.filter(function(t){return t.includes("stroke")}))||void 0===zt?void 0:zt.map(function(t){return"".concat(t)}).join("; "),H.selectAll("path").attr("style",null!=Yt?Yt:""),H.selectAll(".row-rect-even path").attr("style",K))),r.intersect=function(t){return G.rect(r,t)},t.a(2,H)}},t,null,[[16,20,21,22],[5,13,14,15]])}))).apply(this,arguments)}function xr(t,e,r){return br.apply(this,arguments)}function br(){return br=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,o,s,l,u,h,d,y,v,x,b=arguments;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return n=b.length>3&&void 0!==b[3]?b[3]:0,a=b.length>4&&void 0!==b[4]?b[4]:0,o=b.length>5&&void 0!==b[5]?b[5]:[],s=b.length>6&&void 0!==b[6]?b[6]:"",l=e.insert("g").attr("class","label ".concat(o.join(" "))).attr("transform","translate(".concat(n,", ").concat(a,")")).attr("style",s),r!==(0,f.QO)(r)&&(r=(r=(0,f.QO)(r)).replaceAll("<","&lt;").replaceAll(">","&gt;")),x=l.node(),t.n=1,(0,p.GZ)(l,r,{width:(0,g.Un)(r,i)+100,style:s,useHtmlLabels:i.htmlLabels},i);case 1:if(u=x.appendChild.call(x,t.v),r.includes("&lt;")||r.includes("&gt;"))for((h=u.children[0]).textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");h.childNodes[0];)(h=h.childNodes[0]).textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");return d=u.getBBox(),(0,f._3)(i.htmlLabels)&&((y=u.children[0]).style.textAlign="start",v=(0,m.Ltv)(u),d=y.getBoundingClientRect(),v.attr("width",d.width),v.attr("height",d.height)),t.a(2,d)}},t)})),br.apply(this,arguments)}function kr(t,e,r,i,n){return t===r?[{x:t-n/2,y:e},{x:t+n/2,y:e},{x:r+n/2,y:i},{x:r-n/2,y:i}]:[{x:t,y:e-n/2},{x:t,y:e+n/2},{x:r,y:i+n/2},{x:r,y:i-n/2}]}function Cr(t,e,r,i){return Ar.apply(this,arguments)}function Ar(){return Ar=(0,u.A)((0,c.A)().m(function t(e,r,i,a){var o,s,l,u,h,d,p,g,f,y,m,v,x,b,k,A,D,E,T,w,S,F,_,B,L,I,R,O,M=arguments;return(0,c.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:if(s=M.length>4&&void 0!==M[4]?M[4]:null!==(o=i.class.padding)&&void 0!==o?o:12,l=a?0:3,u=e.insert("g").attr("class",C(r)).attr("id",r.domId||r.id),h=null,d=null,p=null,g=null,f=0,y=0,m=0,h=u.insert("g").attr("class","annotation-group text"),!(r.annotations.length>0)){t.n=2;break}return v=r.annotations[0],t.n=1,Dr(h,{text:"«".concat(v,"»")},0);case 1:x=h.node().getBBox(),f=x.height;case 2:return d=u.insert("g").attr("class","label-group text"),t.n=3,Dr(d,r,0,["font-weight: bolder"]);case 3:b=d.node().getBBox(),y=b.height,p=u.insert("g").attr("class","members-group text"),k=0,A=(0,n.A)(r.members),t.p=4,A.s();case 5:if((D=A.n()).done){t.n=8;break}return E=D.value,t.n=6,Dr(p,E,k,[E.parseClassifier()]);case 6:T=t.v,k+=T+l;case 7:t.n=5;break;case 8:t.n=10;break;case 9:t.p=9,R=t.v,A.e(R);case 10:return t.p=10,A.f(),t.f(10);case 11:(m=p.node().getBBox().height)<=0&&(m=s/2),g=u.insert("g").attr("class","methods-group text"),w=0,S=(0,n.A)(r.methods),t.p=12,S.s();case 13:if((F=S.n()).done){t.n=16;break}return _=F.value,t.n=14,Dr(g,_,w,[_.parseClassifier()]);case 14:B=t.v,w+=B+l;case 15:t.n=13;break;case 16:t.n=18;break;case 17:t.p=17,O=t.v,S.e(O);case 18:return t.p=18,S.f(),t.f(18);case 19:return u.node().getBBox(),null!==h&&(I=h.node().getBBox(),h.attr("transform","translate(".concat(-I.width/2,")"))),d.attr("transform","translate(".concat(-b.width/2,", ").concat(f,")")),u.node().getBBox(),p.attr("transform","translate(".concat(0,", ",f+y+2*s,")")),u.node().getBBox(),g.attr("transform","translate(".concat(0,", ",f+y+(m?m+4*s:2*s),")")),L=u.node().getBBox(),t.a(2,{shapeSvg:u,bbox:L})}},t,null,[[12,17,18,19],[4,9,10,11]])})),Ar.apply(this,arguments)}function Dr(t,e,r){return Er.apply(this,arguments)}function Er(){return Er=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,o,s,l,u,h,d,v,x,b,k,C,A,D,E=arguments;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return o=E.length>3&&void 0!==E[3]?E[3]:[],s=e.insert("g").attr("class","label").attr("style",o.join("; ")),l=(0,f.zj)(),u="useHtmlLabels"in r?r.useHtmlLabels:null===(n=(0,f._3)(l.htmlLabels))||void 0===n||n,h="",h="text"in r?r.text:r.label,!u&&h.startsWith("\\")&&(h=h.substring(1)),(0,f.Wi)(h)&&(u=!0),t.n=1,(0,p.GZ)(s,(0,f.oB)((0,g.Sm)(h)),{width:(0,g.Un)(h,l)+50,classes:"markdown-node-label",useHtmlLabels:u},l);case 1:if(d=t.v,x=1,u){t.n=2;break}o.includes("font-weight: bolder")&&(0,m.Ltv)(d).selectAll("tspan").attr("font-weight",""),x=d.children.length,b=d.children[0],(""===d.textContent||d.textContent.includes("&gt"))&&(b.textContent=h[0]+h.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim()," "===h[1]&&(b.textContent=b.textContent[0]+" "+b.textContent.substring(1))),"undefined"===b.textContent&&(b.textContent=""),v=d.getBBox(),t.n=4;break;case 2:if(k=d.children[0],C=(0,m.Ltv)(d),x=k.innerHTML.split("<br>").length,k.innerHTML.includes("</math>")&&(x+=k.innerHTML.split("<mrow>").length-1),!(A=k.getElementsByTagName("img"))){t.n=3;break}return D=""===h.replace(/<img[^>]*>/g,"").trim(),t.n=3,Promise.all((0,a.A)(A).map(function(t){return new Promise(function(e){function r(){if(t.style.display="flex",t.style.flexDirection="column",D){var r,i,n=null!==(r=null===(i=l.fontSize)||void 0===i?void 0:i.toString())&&void 0!==r?r:window.getComputedStyle(document.body).fontSize,a=5*parseInt(n,10)+"px";t.style.minWidth=a,t.style.maxWidth=a}else t.style.width="100%";e(t)}(0,y.K2)(r,"setupImage"),setTimeout(function(){t.complete&&r()}),t.addEventListener("error",r),t.addEventListener("load",r)})}));case 3:v=k.getBoundingClientRect(),C.attr("width",v.width),C.attr("height",v.height);case 4:return s.attr("transform","translate(0,"+(-v.height/(2*x)+i)+")"),t.a(2,v.height)}},t)})),Er.apply(this,arguments)}function Tr(t,e){return wr.apply(this,arguments)}function wr(){return(wr=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,y,x,b,C,A,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W,Y,$,j,U,H,V,X,Z,Q,J,tt,et,rt,it,nt,at;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return x=(0,f.D7)(),b=x.themeVariables,C=b.useGradient,A=null!==(i=x.class.padding)&&void 0!==i?i:12,D=A,E=null===(n=null!==(a=r.useHtmlLabels)&&void 0!==a?a:(0,f._3)(x.htmlLabels))||void 0===n||n,(T=r).annotations=null!==(o=T.annotations)&&void 0!==o?o:[],T.members=null!==(s=T.members)&&void 0!==s?s:[],T.methods=null!==(l=T.methods)&&void 0!==l?l:[],t.n=1,Cr(e,r,x,E,D);case 1:return w=t.v,S=w.shapeSvg,F=w.bbox,_=(0,d.GX)(r),B=_.labelStyles,L=_.nodeStyles,r.labelStyle=B,r.cssStyles=T.styles||"",I=(null===(u=T.styles)||void 0===u?void 0:u.join(";"))||L||"",r.cssStyles||(r.cssStyles=I.replaceAll("!important","").split(";")),R=0===T.members.length&&0===T.methods.length&&!(null!==(h=x.class)&&void 0!==h&&h.hideEmptyMembersBox),O=v.A.svg(S),M=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(M.roughness=0,M.fillStyle="solid"),N=Math.max(null!==(p=r.width)&&void 0!==p?p:0,F.width),K=Math.max(null!==(g=r.height)&&void 0!==g?g:0,F.height),P=(null!==(y=r.height)&&void 0!==y?y:0)>F.height,0===T.members.length&&0===T.methods.length?K+=D:T.members.length>0&&0===T.methods.length&&(K+=2*D),q=-N/2,z=-K/2,W=R?2*A:0===T.members.length&&0===T.methods.length?-A:0,P&&(W=2*A),Y=O.rectangle(q-A,z-A-(R?A:0===T.members.length&&0===T.methods.length?-A/2:0),N+2*A,K+2*A+W,M),($=S.insert(function(){return Y},":first-child")).attr("class","basic label-container outer-path"),j=$.node().getBBox(),U=S.select(".annotation-group").node().getBBox().height-(R?A/2:0)||0,H=S.select(".label-group").node().getBBox().height-(R?A/2:0)||0,V=S.select(".members-group").node().getBBox().height-(R?A/2:0)||0,X=(U+H+z+A-(z-A-(R?A:0===T.members.length&&0===T.methods.length?-A/2:0)))/2,S.selectAll(".text").each(function(t,e,r){var i,n=(0,m.Ltv)(r[e]),a=n.attr("transform"),o=0;if(a){var s=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);s&&(o=parseFloat(s[2]))}var l=o+z+A-(R?A:0===T.members.length&&0===T.methods.length?-A/2:0);if(n.attr("class").includes("methods-group")){var c=Math.max(V,D/2);l=P?Math.max(X,U+H+c+z+2*D+A)+2*D:U+H+c+z+4*D+A}0===T.members.length&&0===T.methods.length&&null!==(i=x.class)&&void 0!==i&&i.hideEmptyMembersBox&&(l=T.annotations.length>0?o-D:o),E||(l-=4);var u,h=q;(n.attr("class").includes("label-group")||n.attr("class").includes("annotation-group"))&&(h=-(null===(u=n.node())||void 0===u?void 0:u.getBBox().width)/2||0,S.selectAll("text").each(function(t,e,r){"middle"===window.getComputedStyle(r[e]).textAnchor&&(h=0)}));n.attr("transform","translate(".concat(h,", ").concat(l,")"))}),(T.members.length>0||T.methods.length>0||R)&&(Z=U+H+z+A,Q=O.line(j.x,Z,j.x+j.width,Z+.001,M),S.insert(function(){return Q}).attr("class","divider".concat("neo"!==r.look||C?"":" neo-line")).attr("style",I)),(R||T.members.length>0||T.methods.length>0)&&(J=U+H+V+z+2*D+A,tt=O.line(j.x,P?Math.max(X,J):J,j.x+j.width,(P?Math.max(X,J):J)+.001,M),S.insert(function(){return tt}).attr("class","divider".concat("neo"!==r.look||C?"":" neo-line")).attr("style",I)),"handDrawn"!==T.look&&S.selectAll("path").attr("style",I),$.select(":nth-child(2)").attr("style",I),S.selectAll(".divider").select("path").attr("style",I),r.labelStyle?S.selectAll("span").attr("style",r.labelStyle):S.selectAll("span").attr("style",I),E||(et=RegExp(/color\s*:\s*([^;]*)/),(rt=et.exec(I))?(it=rt[0].replace("color","fill"),S.selectAll("tspan").attr("style",it)):B&&(nt=et.exec(B))&&(at=nt[0].replace("color","fill"),S.selectAll("tspan").attr("style",at))),k(r,$),r.intersect=function(t){return G.rect(r,t)},t.a(2,S)}},t)}))).apply(this,arguments)}function Sr(t,e){return Fr.apply(this,arguments)}function Fr(){return(Fr=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,y,x,b,A,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W,Y,$,j,U,H,V;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:if(l=(0,d.GX)(r),u=l.labelStyles,h=l.nodeStyles,r.labelStyle=u,p=r,g=r,y=20,x=20,b="verifyMethod"in r,A=C(r),D=(0,f.D7)(),E=D.themeVariables,T=E.borderColorArray,w=E.requirementEdgeLabelBackground,S=e.insert("g").attr("class",A).attr("id",null!==(i=r.domId)&&void 0!==i?i:r.id),!b){t.n=2;break}return t.n=1,_r(S,"&lt;&lt;".concat(p.type,"&gt;&gt;"),0,r.labelStyle);case 1:F=t.v,t.n=4;break;case 2:return t.n=3,_r(S,"&lt;&lt;Element&gt;&gt;",0,r.labelStyle);case 3:F=t.v;case 4:return _=F,t.n=5,_r(S,p.name,_,r.labelStyle+"; font-weight: bold;");case 5:if(B=t.v,_+=B+x,!b){t.n=10;break}return t.n=6,_r(S,"".concat(p.requirementId?"ID: ".concat(p.requirementId):""),_,r.labelStyle);case 6:return L=t.v,_+=L,t.n=7,_r(S,"".concat(p.text?"Text: ".concat(p.text):""),_,r.labelStyle);case 7:return I=t.v,_+=I,t.n=8,_r(S,"".concat(p.risk?"Risk: ".concat(p.risk):""),_,r.labelStyle);case 8:return R=t.v,_+=R,t.n=9,_r(S,"".concat(p.verifyMethod?"Verification: ".concat(p.verifyMethod):""),_,r.labelStyle);case 9:t.n=12;break;case 10:return t.n=11,_r(S,"".concat(g.type?"Type: ".concat(g.type):""),_,r.labelStyle);case 11:return O=t.v,_+=O,t.n=12,_r(S,"".concat(g.docRef?"Doc Ref: ".concat(g.docRef):""),_,r.labelStyle);case 12:return M=(null!==(n=null===(a=S.node())||void 0===a?void 0:a.getBBox().width)&&void 0!==n?n:200)+y,N=(null!==(o=null===(s=S.node())||void 0===s?void 0:s.getBBox().height)&&void 0!==o?o:200)+y,K=-M/2,P=-N/2,q=v.A.svg(S),z=(0,d.Fr)(r,{}),"handDrawn"!==r.look&&(z.roughness=0,z.fillStyle="solid"),W=q.rectangle(K,P,M,N,z),(Y=S.insert(function(){return W},":first-child")).attr("class","basic label-container outer-path").attr("style",h),null!=T&&T.length&&(j=null!==($=r.colorIndex)&&void 0!==$?$:0,S.attr("data-color-id","color-".concat(j%T.length))),S.selectAll(".label").each(function(t,e,r){var i=(0,m.Ltv)(r[e]),n=i.attr("transform"),a=0,o=0;if(n){var s=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n);s&&(a=parseFloat(s[1]),o=parseFloat(s[2]))}var l=o-N/2,c=K+y/2;0!==e&&1!==e||(c=a),i.attr("transform","translate(".concat(c,", ").concat(l+y,")"))}),_>F+B+x&&(U=P+F+B+x,"neo"===r.look?(V=[[K,U],[K+M,U],[K+M,U+.001],[K,U+.001]],H=q.polygon(V,z)):H=q.line(K,U,K+M,U,z),S.insert(function(){return H}).attr("class","divider")),k(r,Y),r.intersect=function(t){return G.rect(r,t)},h&&"handDrawn"!==r.look&&(w||null!=T&&T.length)&&S.selectAll("path").attr("style",h),t.a(2,S)}},t)}))).apply(this,arguments)}function _r(t,e,r){return Br.apply(this,arguments)}function Br(){return Br=(0,u.A)((0,c.A)().m(function t(e,r,i){var a,o,s,l,u,h,d,y,v,x,b,k,C,A=arguments;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:if(o=A.length>3&&void 0!==A[3]?A[3]:"",""!==r){t.n=1;break}return t.a(2,0);case 1:return s=e.insert("g").attr("class","label").attr("style",o),l=(0,f.D7)(),u=null===(a=l.htmlLabels)||void 0===a||a,t.n=2,(0,p.GZ)(s,(0,f.oB)((0,g.Sm)(r)),{width:(0,g.Un)(r,l)+50,classes:"markdown-node-label",useHtmlLabels:u,style:o},l);case 2:if(h=t.v,u)k=h.children[0],C=(0,m.Ltv)(h),d=k.getBoundingClientRect(),C.attr("width",d.width),C.attr("height",d.height);else{y=h.children[0],v=(0,n.A)(y.children);try{for(v.s();!(x=v.n()).done;)b=x.value,o&&b.setAttribute("style",o)}catch(t){v.e(t)}finally{v.f()}(d=h.getBBox()).height+=6}return s.attr("transform","translate(".concat(-d.width/2,",").concat(-d.height/2+i,")")),t.a(2,d.height)}},t)})),Br.apply(this,arguments)}(0,y.K2)(mr,"erBox"),(0,y.K2)(xr,"addText"),(0,y.K2)(kr,"lineToPolygon"),(0,y.K2)(Cr,"textHelper"),(0,y.K2)(Dr,"addText"),(0,y.K2)(Tr,"classBox"),(0,y.K2)(Sr,"requirementBox"),(0,y.K2)(_r,"addText");var Lr=(0,y.K2)(function(t){switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");function Ir(t,e,r){return Rr.apply(this,arguments)}function Rr(){return(Rr=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,o,s,l,u,h,p,g,f,y,m,A,D,E,T,w,S,F,B,L,I,R,O,M,N,K,P,q,z,W,Y,$,j,U,H,V,X,Z,Q,J;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return o=i.config,s=(0,d.GX)(r),l=s.labelStyles,u=s.nodeStyles,r.labelStyle=l||"",h=10,p=r.width,r.width=(null!==(n=r.width)&&void 0!==n?n:200)-10,t.n=1,x(e,r,C(r));case 1:if(g=t.v,f=g.shapeSvg,y=g.bbox,m=g.label,A=r.padding||10,D="","ticket"in r&&r.ticket&&null!=o&&null!==(a=o.kanban)&&void 0!==a&&a.ticketBaseUrl&&(D=null==o||null===(T=o.kanban)||void 0===T?void 0:T.ticketBaseUrl.replace("#TICKET#",r.ticket),E=f.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",D).attr("target","_blank")),w={useHtmlLabels:r.useHtmlLabels,labelStyle:r.labelStyle||"",width:r.width,img:r.img,padding:r.padding||8,centerLabel:!1},!E){t.n=3;break}return t.n=2,b(E,"ticket"in r&&r.ticket||"",w);case 2:B=t.v,S=B.label,F=B.bbox,t.n=5;break;case 3:return t.n=4,b(f,"ticket"in r&&r.ticket||"",w);case 4:L=t.v,S=L.label,F=L.bbox;case 5:return t.n=6,b(f,"assigned"in r&&r.assigned||"",w);case 6:return I=t.v,R=I.label,O=I.bbox,r.width=p,M=(null==r?void 0:r.width)||0,N=Math.max(F.height,O.height)/2,K=Math.max(y.height+20,(null==r?void 0:r.height)||0)+N,P=-M/2,q=-K/2,m.attr("transform","translate("+(A-M/2)+", "+(-N-y.height/2)+")"),S.attr("transform","translate("+(A-M/2)+", "+(-N+y.height/2)+")"),R.attr("transform","translate("+(A+M/2-O.width-2*h)+", "+(-N+y.height/2)+")"),W=r.rx,Y=r.ry,$=r.cssStyles,"handDrawn"===r.look?(j=v.A.svg(f),U=(0,d.Fr)(r,{}),H=W||Y?j.path(_(P,q,M,K,W||0),U):j.rectangle(P,q,M,K,U),(z=f.insert(function(){return H},":first-child")).attr("class","basic label-container").attr("style",$||null)):((z=f.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",u).attr("rx",null!=W?W:5).attr("ry",null!=Y?Y:5).attr("x",P).attr("y",q).attr("width",M).attr("height",K),(V="priority"in r&&r.priority)&&(X=f.append("line"),Z=P+2,Q=q+Math.floor((null!=W?W:0)/2),J=q+K-Math.floor((null!=W?W:0)/2),X.attr("x1",Z).attr("y1",Q).attr("x2",Z).attr("y2",J).attr("stroke-width","4").attr("stroke",Lr(V)))),k(r,z),r.height=K,r.intersect=function(t){return G.rect(r,t)},t.a(2,f)}},t)}))).apply(this,arguments)}function Or(t,e){return Mr.apply(this,arguments)}function Mr(){return(Mr=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,f,m,b,A,D,E,T,w,S,F,_,B;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return i=(0,d.GX)(r),n=i.labelStyles,a=i.nodeStyles,r.labelStyle=n,t.n=1,x(e,r,C(r));case 1:return o=t.v,s=o.shapeSvg,l=o.bbox,u=o.halfPadding,h=o.label,p=l.width+10*u,f=l.height+8*u,m=.15*p,b=r.cssStyles,A=l.width+20,D=l.height+20,E=Math.max(p,A),T=Math.max(f,D),h.attr("transform","translate(".concat(-l.width/2,", ").concat(-l.height/2,")")),S="M0 0 \n    a".concat(m,",").concat(m," 1 0,0 ").concat(.25*E,",").concat(-1*T*.1,"\n    a").concat(m,",").concat(m," 1 0,0 ").concat(.25*E,",",0,"\n    a").concat(m,",").concat(m," 1 0,0 ").concat(.25*E,",",0,"\n    a").concat(m,",").concat(m," 1 0,0 ").concat(.25*E,",").concat(.1*T,"\n\n    a").concat(m,",").concat(m," 1 0,0 ").concat(.15*E,",").concat(.33*T,"\n    a").concat(.8*m,",").concat(.8*m," 1 0,0 0,").concat(.34*T,"\n    a").concat(m,",").concat(m," 1 0,0 ").concat(-1*E*.15,",").concat(.33*T,"\n\n    a").concat(m,",").concat(m," 1 0,0 ").concat(-1*E*.25,",").concat(.15*T,"\n    a").concat(m,",").concat(m," 1 0,0 ").concat(-1*E*.25,",0\n    a").concat(m,",").concat(m," 1 0,0 ").concat(-1*E*.25,",0\n    a").concat(m,",").concat(m," 1 0,0 ").concat(-1*E*.25,",").concat(-1*T*.15,"\n\n    a").concat(m,",").concat(m," 1 0,0 ").concat(-1*E*.1,",").concat(-1*T*.33,"\n    a").concat(.8*m,",").concat(.8*m," 1 0,0 0,").concat(-1*T*.34,"\n    a").concat(m,",").concat(m," 1 0,0 ").concat(.1*E,",").concat(-1*T*.33,"\n  H0 V0 Z"),"handDrawn"===r.look?(F=v.A.svg(s),_=(0,d.Fr)(r,{}),B=F.path(S,_),(w=s.insert(function(){return B},":first-child")).attr("class","basic label-container").attr("style",(0,g.KL)(b))):w=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",S),w.attr("transform","translate(".concat(-E/2,", ").concat(-T/2,")")),k(r,w),r.calcIntersect=function(t,e){return G.rect(t,e)},r.intersect=function(t){return y.Rm.info("Bang intersect",r,t),G.rect(r,t)},t.a(2,s)}},t)}))).apply(this,arguments)}function Nr(t,e){return Kr.apply(this,arguments)}function Kr(){return(Kr=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,f,m,b,A,D,E,T,w,S,F,_;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return i=(0,d.GX)(r),n=i.labelStyles,a=i.nodeStyles,r.labelStyle=n,t.n=1,x(e,r,C(r));case 1:return o=t.v,s=o.shapeSvg,l=o.bbox,u=o.halfPadding,h=o.label,p=l.width+2*u,f=l.height+2*u,m=.15*p,b=.25*p,A=.35*p,D=.2*p,E=r.cssStyles,w="M0 0 \n    a".concat(m,",").concat(m," 0 0,1 ").concat(.25*p,",").concat(-1*p*.1,"\n    a").concat(A,",").concat(A," 1 0,1 ").concat(.4*p,",").concat(-1*p*.1,"\n    a").concat(b,",").concat(b," 1 0,1 ").concat(.35*p,",").concat(.2*p,"\n\n    a").concat(m,",").concat(m," 1 0,1 ").concat(.15*p,",").concat(.35*f,"\n    a").concat(D,",").concat(D," 1 0,1 ").concat(-1*p*.15,",").concat(.65*f,"\n\n    a").concat(b,",").concat(m," 1 0,1 ").concat(-1*p*.25,",").concat(.15*p,"\n    a").concat(A,",").concat(A," 1 0,1 ").concat(-1*p*.5,",0\n    a").concat(m,",").concat(m," 1 0,1 ").concat(-1*p*.25,",").concat(-1*p*.15,"\n\n    a").concat(m,",").concat(m," 1 0,1 ").concat(-1*p*.1,",").concat(-1*f*.35,"\n    a").concat(D,",").concat(D," 1 0,1 ").concat(.1*p,",").concat(-1*f*.65,"\n  H0 V0 Z"),"handDrawn"===r.look?(S=v.A.svg(s),F=(0,d.Fr)(r,{}),_=S.path(w,F),(T=s.insert(function(){return _},":first-child")).attr("class","basic label-container").attr("style",(0,g.KL)(E))):T=s.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",w),h.attr("transform","translate(".concat(-l.width/2,", ").concat(-l.height/2,")")),T.attr("transform","translate(".concat(-p/2,", ").concat(-f/2,")")),k(r,T),r.calcIntersect=function(t,e){return G.rect(t,e)},r.intersect=function(t){return y.Rm.info("Cloud intersect",r,t),G.rect(r,t)},t.a(2,s)}},t)}))).apply(this,arguments)}function Pr(t,e){return qr.apply(this,arguments)}function qr(){return(qr=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,p,g,f,y;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return i=(0,d.GX)(r),n=i.labelStyles,a=i.nodeStyles,r.labelStyle=n,t.n=1,x(e,r,C(r));case 1:if(o=t.v,s=o.shapeSvg,l=o.bbox,u=o.halfPadding,h=o.label,p=l.width+8*u,g=l.height+2*u,f="neo"===r.look?"\n    M".concat(-p/2," ").concat(g/2-5,"\n    v").concat(10-g,"\n    q0,-").concat(5," ").concat(5,",-").concat(5,"\n    h").concat(p-10,"\n    q").concat(5,",0 ").concat(5,",").concat(5,"\n    v").concat(g-5,"\n    H").concat(-p/2,"\n    Z\n  "):"\n    M".concat(-p/2," ").concat(g/2-5,"\n    v").concat(10-g,"\n    q0,-").concat(5," ").concat(5,",-").concat(5,"\n    h").concat(p-10,"\n    q").concat(5,",0 ").concat(5,",").concat(5,"\n    v").concat(g-10,"\n    q0,").concat(5," ").concat(-5,",").concat(5,"\n    h").concat(-(p-10),"\n    q").concat(-5,",0 ").concat(-5,",").concat(-5,"\n    Z\n  "),r.domId){t.n=2;break}throw new Error('defaultMindmapNode: node "'.concat(r.id,'" is missing a domId — was render.ts domId prefixing skipped?'));case 2:return y=s.append("path").attr("id",r.domId).attr("class","node-bkg node-"+r.type).attr("style",a).attr("d",f),s.append("line").attr("class","node-line-").attr("x1",-p/2).attr("y1",g/2).attr("x2",p/2).attr("y2",g/2),h.attr("transform","translate(".concat(-l.width/2,", ").concat(-l.height/2,")")),s.append(function(){return h.node()}),k(r,y),r.calcIntersect=function(t,e){return G.rect(t,e)},r.intersect=function(t){return G.rect(r,t)},t.a(2,s)}},t)}))).apply(this,arguments)}function zr(t,e){return Wr.apply(this,arguments)}function Wr(){return(Wr=(0,u.A)((0,c.A)().m(function t(e,r){var i,n;return(0,c.A)().w(function(t){for(;;)if(0===t.n)return n={padding:null!==(i=r.padding)&&void 0!==i?i:0},t.a(2,at(e,r,n))},t)}))).apply(this,arguments)}(0,y.K2)(Ir,"kanbanItem"),(0,y.K2)(Or,"bang"),(0,y.K2)(Nr,"cloud"),(0,y.K2)(Pr,"defaultMindmapNode"),(0,y.K2)(zr,"mindmapCircle");var Yr=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Oe},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Fe},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Ne},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Ye},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:At},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:wt},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:at},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Or},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Nr},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Ae},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:qt},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:oe},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:ne},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:rr},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:te},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Bt},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Ge},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:rt},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Be},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:We},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:ze},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Mt},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Wt},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:ut},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:pt},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:yt},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:le},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:lr},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Nt},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:tr},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:de},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:vt},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Ft},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:or},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:pr},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:It},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:nr},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Rt},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Ie},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:ve},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:ye},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:J},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:lt},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:He},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:je},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:ur},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Ee},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:ge}],$r=(0,y.K2)(function(){var t={state:Pe,choice:nt,note:be,rectWithTitle:we,labelRect:re,iconSquare:Xt,iconCircle:Ut,icon:$t,iconRounded:Vt,imageSquare:Qt,anchor:X,kanbanItem:Ir,mindmapCircle:zr,defaultMindmapNode:Pr,classBox:Tr,erBox:mr,requirementBox:Sr},e=[].concat((0,a.A)(Object.entries(t)),(0,a.A)(Yr.flatMap(function(t){return[t.shortName].concat((0,a.A)("aliases"in t?t.aliases:[]),(0,a.A)("internalAliases"in t?t.internalAliases:[])).map(function(e){return[e,t.handler]})})));return Object.fromEntries(e)},"generateShapeMap")();function jr(t){return t in $r}(0,y.K2)(jr,"isValidShape");var Ur=new Map;function Hr(t,e,r){return Vr.apply(this,arguments)}function Vr(){return(Vr=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,o,s;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:if("rect"===r.shape&&(r.rx&&r.ry?r.shape="roundedRect":r.shape="squareRect"),o=r.shape?$r[r.shape]:void 0){t.n=1;break}throw new Error("No such shape: ".concat(r.shape,". Please check your syntax."));case 1:if(!r.link){t.n=3;break}return"sandbox"===i.config.securityLevel?s="_top":r.linkTarget&&(s=r.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",r.link).attr("target",null!=s?s:null),t.n=2,o(n,r,i);case 2:a=t.v,t.n=5;break;case 3:return t.n=4,o(e,r,i);case 4:a=t.v,n=a;case 5:return n.attr("data-look",(0,g.KL)(r.look)),r.tooltip&&a.attr("title",r.tooltip),Ur.set(r.id,n),r.haveCallback&&n.attr("class",n.attr("class")+" clickable"),t.a(2,n)}},t)}))).apply(this,arguments)}(0,y.K2)(Hr,"insertNode");var Gr=(0,y.K2)(function(t,e){Ur.set(e.id,t)},"setNodeElem"),Xr=(0,y.K2)(function(){Ur.clear()},"clear"),Zr=(0,y.K2)(function(t){var e=Ur.get(t.id);y.Rm.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");var r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode")},17362:function(t,e,r){"use strict";function i(t,e){var r,i,n;t.accDescr&&(null===(r=e.setAccDescription)||void 0===r||r.call(e,t.accDescr));t.accTitle&&(null===(i=e.setAccTitle)||void 0===i||i.call(e,t.accTitle));t.title&&(null===(n=e.setDiagramTitle)||void 0===n||n.call(e,t.title))}r.d(e,{S:function(){return i}}),(0,r(68548).K2)(i,"populateCommonDb")},21888:function(t,e,r){"use strict";r.d(e,{A:function(){return a}});var i=r(68548),n=r(63219),a=(0,i.K2)(function(t,e){var r;return"sandbox"===e&&(r=(0,n.Ltv)("#i"+t)),("sandbox"===e?(0,n.Ltv)(r.nodes()[0].contentDocument.body):(0,n.Ltv)("body")).select('[id="'.concat(t,'"]'))},"getDiagramElement")},34539:function(t,e,r){"use strict";r.d(e,{$C:function(){return R},$t:function(){return X},C4:function(){return Q},I5:function(){return G},Ib:function(){return C},KL:function(){return et},PX:function(){return $},Sm:function(){return J},Un:function(){return W},_K:function(){return Z},bH:function(){return P},dq:function(){return H},pe:function(){return f},rY:function(){return tt},ru:function(){return z},sM:function(){return L},vU:function(){return b},yT:function(){return M}});var i,n=r(69492),a=r(25026),o=r(81587),s=r(3604),l=r(74721),c=(r(74423),r(40985)),u=r(68548),h=r(92457),d=r(63219),p=r(22722),g=r(89777),f="​",y={curveBasis:d.qrM,curveBasisClosed:d.Yu4,curveBasisOpen:d.IA3,curveBumpX:d.Wi0,curveBumpY:d.PGM,curveBundle:d.OEq,curveCardinalClosed:d.olC,curveCardinalOpen:d.IrU,curveCardinal:d.y8u,curveCatmullRomClosed:d.Q7f,curveCatmullRomOpen:d.cVp,curveCatmullRom:d.oDi,curveLinear:d.lUB,curveLinearClosed:d.Lx9,curveMonotoneX:d.nVG,curveMonotoneY:d.uxU,curveNatural:d.Xf2,curveStep:d.GZz,curveStepAfter:d.UPb,curveStepBefore:d.dyv},m=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,v=(0,u.K2)(function(t,e){var r=x(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){var n=r.map(function(t){return t.args});(0,c.$i)(n),i=(0,c.hH)(i,(0,l.A)(n))}else i=r.args;if(i){var a=(0,c.Ch)(t,e),o="config";return void 0!==i[o]&&("flowchart-v2"===a&&(a="flowchart"),i[a]=i[o],delete i[o]),i}},"detectInit"),x=(0,u.K2)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var r,i=new RegExp("[%]{2}(?![{]".concat(m.source,")(?=[}][%]{2}).*\n"),"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),u.Rm.debug("Detecting diagram directive".concat(null!==e?" type:"+e:""," based on the text:").concat(t));for(var n=[];null!==(r=c.DB.exec(t));){var a,o;if(r.index===c.DB.lastIndex&&c.DB.lastIndex++,r&&!e||e&&null!==(a=r[1])&&void 0!==a&&a.match(e)||e&&null!==(o=r[2])&&void 0!==o&&o.match(e)){var s=r[1]?r[1]:r[2],l=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:s,args:l})}}return 0===n.length?{type:t,args:null}:1===n.length?n[0]:n}catch(r){return u.Rm.error("ERROR: ".concat(r.message," - Unable to parse directive type: '").concat(e,"' based on the text: '").concat(t,"'")),{type:void 0,args:null}}},"detectDirective"),b=(0,u.K2)(function(t){return t.replace(c.DB,"")},"removeDirectives"),k=(0,u.K2)(function(t,e){var r,i=(0,s.A)(e.entries());try{for(i.s();!(r=i.n()).done;){var n=(0,o.A)(r.value,2),a=n[0];if(n[1].match(t))return a}}catch(t){i.e(t)}finally{i.f()}return-1},"isSubstringInArray");function C(t,e){var r;if(!t)return e;var i="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return null!==(r=y[i])&&void 0!==r?r:e}function A(t,e){var r=t.trim();if(r)return"loose"!==e.securityLevel?(0,h.J)(r):r}(0,u.K2)(C,"interpolateToCurve"),(0,u.K2)(A,"formatUrl");var D=(0,u.K2)(function(t){for(var e,r=t.split("."),i=r.length-1,n=r[i],a=window,o=0;o<i;o++)if(!(a=a[r[o]]))return void u.Rm.error("Function name: ".concat(t," not found in window"));for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];(e=a)[n].apply(e,l)},"runFunc");function E(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function T(t){var e,r=0;return t.forEach(function(t){r+=E(t,e),e=t}),F(t,r/2)}function w(t){return 1===t.length?t[0]:T(t)}(0,u.K2)(E,"distance"),(0,u.K2)(T,"traverseEdge"),(0,u.K2)(w,"calcLabelPosition");var S=(0,u.K2)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),F=(0,u.K2)(function(t,e){var r,i=void 0,n=e,a=(0,s.A)(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(i){var l=E(o,i);if(0===l)return i;if(l<n)n-=l;else{var c=n/l;if(c<=0)return i;if(c>=1)return{x:o.x,y:o.y};if(c>0&&c<1)return{x:S((1-c)*i.x+c*o.x,5),y:S((1-c)*i.y+c*o.y,5)}}}i=o}}catch(t){a.e(t)}finally{a.f()}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),_=(0,u.K2)(function(t,e,r){u.Rm.info("our points ".concat(JSON.stringify(e))),e[0]!==r&&(e=e.reverse());var i=F(e,25),n=t?10:5,a=Math.atan2(e[0].y-i.y,e[0].x-i.x),o={x:0,y:0};return o.x=Math.sin(a)*n+(e[0].x+i.x)/2,o.y=-Math.cos(a)*n+(e[0].y+i.y)/2,o},"calcCardinalityPosition");function B(t,e,r){var i=structuredClone(r);u.Rm.info("our points",i),"start_left"!==e&&"start_right"!==e&&i.reverse();var n=F(i,25+t),a=10+.5*t,o=Math.atan2(i[0].y-n.y,i[0].x-n.x),s={x:0,y:0};return"start_left"===e?(s.x=Math.sin(o+Math.PI)*a+(i[0].x+n.x)/2,s.y=-Math.cos(o+Math.PI)*a+(i[0].y+n.y)/2):"end_right"===e?(s.x=Math.sin(o-Math.PI)*a+(i[0].x+n.x)/2-5,s.y=-Math.cos(o-Math.PI)*a+(i[0].y+n.y)/2-5):"end_left"===e?(s.x=Math.sin(o)*a+(i[0].x+n.x)/2-5,s.y=-Math.cos(o)*a+(i[0].y+n.y)/2-5):(s.x=Math.sin(o)*a+(i[0].x+n.x)/2,s.y=-Math.cos(o)*a+(i[0].y+n.y)/2),s}function L(t){var e,r="",i="",n=(0,s.A)(t);try{for(n.s();!(e=n.n()).done;){var a=e.value;void 0!==a&&(a.startsWith("color:")||a.startsWith("text-align:")?i=i+a+";":r=r+a+";")}}catch(t){n.e(t)}finally{n.f()}return{style:r,labelStyle:i}}(0,u.K2)(B,"calcTerminalLabelPosition"),(0,u.K2)(L,"getStylesFromArray");var I=0,R=(0,u.K2)(function(){return I++,"id-"+Math.random().toString(36).substr(2,12)+"-"+I},"generateId");function O(t){for(var e="",r="0123456789abcdef",i=0;i<t;i++)e+=r.charAt(Math.floor(16*Math.random()));return e}(0,u.K2)(O,"makeRandomHex");var M=(0,u.K2)(function(t){return O(t.length)},"random"),N=(0,u.K2)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),K=(0,u.K2)(function(t,e){var r=e.text.replace(c.Y2.lineBreakRegex," "),i=G(e.fontSize),n=(0,o.A)(i,2)[1],a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",n),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),void 0!==e.class&&a.attr("class",e.class);var s=a.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.attr("fill",e.fill),s.text(r),a},"drawSimpleText"),P=(0,p.B)(function(t,e,r){if(!t)return t;if(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),c.Y2.lineBreakRegex.test(t))return t;var i=t.split(" ").filter(Boolean),n=[],a="";return i.forEach(function(t,o){var s=W("".concat(t," "),r),c=W(a,r);if(s>e){var u=q(t,e,"-",r),h=u.hyphenatedStrings,d=u.remainingWord;n.push.apply(n,[a].concat((0,l.A)(h))),a=d}else c+s>=e?(n.push(a),a=t):a=[a,t].filter(Boolean).join(" ");o+1===i.length&&n.push(a)}),n.filter(function(t){return""!==t}).join(r.joinWith)},function(t,e,r){return"".concat(t).concat(e).concat(r.fontSize).concat(r.fontWeight).concat(r.fontFamily).concat(r.joinWith)}),q=(0,p.B)(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0;i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);var n=(0,l.A)(t),a=[],o="";return n.forEach(function(t,s){var l="".concat(o).concat(t);if(W(l,i)>=e){var c=s+1,u=n.length===c,h="".concat(l).concat(r);a.push(u?l:h),o=""}else o=l}),{hyphenatedStrings:a,remainingWord:o}},function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0;return"".concat(t).concat(e).concat(r).concat(i.fontSize).concat(i.fontWeight).concat(i.fontFamily)});function z(t,e){return $(t,e).height}function W(t,e){return $(t,e).width}(0,u.K2)(z,"calculateTextHeight"),(0,u.K2)(W,"calculateTextWidth");var Y,$=(0,p.B)(function(t,e){var r=e.fontSize,i=void 0===r?12:r,n=e.fontFamily,a=void 0===n?"Arial":n,l=e.fontWeight,u=void 0===l?400:l;if(!t)return{width:0,height:0};var h=G(i),p=(0,o.A)(h,2)[1],g=["sans-serif",a],y=t.split(c.Y2.lineBreakRegex),m=[],v=(0,d.Ltv)("body");if(!v.remove)return{width:0,height:0,lineHeight:0};for(var x=v.append("svg"),b=0,k=g;b<k.length;b++){var C,A=k[b],D=0,E={width:0,height:0,lineHeight:0},T=(0,s.A)(y);try{for(T.s();!(C=T.n()).done;){var w=C.value,S=N();S.text=w||f;var F=K(x,S).style("font-size",p).style("font-weight",u).style("font-family",A),_=(F._groups||F)[0][0].getBBox();if(0===_.width&&0===_.height)throw new Error("svg element not in render tree");E.width=Math.round(Math.max(E.width,_.width)),D=Math.round(_.height),E.height+=D,E.lineHeight=Math.round(Math.max(E.lineHeight,D))}}catch(t){T.e(t)}finally{T.f()}m.push(E)}return x.remove(),m[isNaN(m[1].height)||isNaN(m[1].width)||isNaN(m[1].lineHeight)||m[0].height>m[1].height&&m[0].width>m[1].width&&m[0].lineHeight>m[1].lineHeight?0:1]},function(t,e){return"".concat(t).concat(e.fontSize).concat(e.fontWeight).concat(e.fontFamily)}),j=(i=(0,n.A)(function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0;(0,a.A)(this,t),this.count=0,this.count=i?i.length:0,this.next=r?function(){return e.count++}:function(){return Date.now()}}),(0,u.K2)(i,"InitIDGenerator"),i),U=(0,u.K2)(function(t){return Y=Y||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Y.innerHTML=t,unescape(Y.textContent)},"entityDecode");function H(t){return"str"in t}(0,u.K2)(H,"isDetailedError");var V=(0,u.K2)(function(t,e,r,i){var n;if(i){var a=null===(n=t.node())||void 0===n?void 0:n.getBBox();a&&t.append("text").text(i).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-r).attr("class",e)}},"insertTitle"),G=(0,u.K2)(function(t){if("number"==typeof t)return[t,t+"px"];var e=parseInt(null!=t?t:"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function X(t,e){return(0,g.h)({},t,e)}(0,u.K2)(X,"cleanAndMerge");var Z={assignWithDepth:c.hH,wrapLabel:P,calculateTextHeight:z,calculateTextWidth:W,calculateTextDimensions:$,cleanAndMerge:X,detectInit:v,detectDirective:x,isSubstringInArray:k,interpolateToCurve:C,calcLabelPosition:w,calcCardinalityPosition:_,calcTerminalLabelPosition:B,formatUrl:A,getStylesFromArray:L,generateId:R,random:M,runFunc:D,entityDecode:U,insertTitle:V,isLabelCoordinateInPath:rt,parseFontSize:G,InitIDGenerator:j},Q=(0,u.K2)(function(t){var e=t;return e=(e=(e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){var e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})},"encodeEntities"),J=(0,u.K2)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),tt=(0,u.K2)(function(t,e,r,i){var n=r.counter,a=void 0===n?0:n,o=r.prefix,s=r.suffix;return i||"".concat(o?"".concat(o,"_"):"").concat(t,"_").concat(e,"_").concat(a).concat(s?"_".concat(s):"")},"getEdgeId");function et(t){return null!=t?t:null}function rt(t,e){var r=Math.round(t.x),i=Math.round(t.y),n=e.replace(/(\d+\.\d+)/g,function(t){return Math.round(parseFloat(t)).toString()});return n.includes(r.toString())||n.includes(i.toString())}(0,u.K2)(et,"handleUndefinedAttr"),(0,u.K2)(rt,"isLabelCoordinateInPath")},70638:function(t,e,r){"use strict";r.d(e,{Lh:function(){return R},NM:function(){return F},_$:function(){return A},tM:function(){return _}});var i,n,a=r(20908),o=r(30388),s=r(41034),l=r(74721),c=r(3604),u=r(25026),h=r(69492),d=(r(74423),r(43840)),p=r(89906),g=r(21888),f=r(61340),y=r(86349),m=r(34539),v=r(40985),x=r(68548),b=r(63219),k=r(18353),C=function(){var t=(0,x.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,18],r=[1,19],i=[1,20],n=[1,41],a=[1,26],o=[1,42],s=[1,24],l=[1,25],c=[1,32],u=[1,33],h=[1,34],d=[1,45],p=[1,35],g=[1,36],f=[1,37],y=[1,38],m=[1,27],v=[1,28],b=[1,29],k=[1,30],C=[1,31],A=[1,44],D=[1,46],E=[1,43],T=[1,47],w=[1,9],S=[1,8,9],F=[1,58],_=[1,59],B=[1,60],L=[1,61],I=[1,62],R=[1,63],O=[1,64],M=[1,8,9,41],N=[1,77],K=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],P=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],q=[13,60,86,100,102,103],z=[13,60,73,74,86,100,102,103],W=[13,60,68,69,70,71,72,86,100,102,103],Y=[1,103],$=[1,121],j=[1,117],U=[1,113],H=[1,119],V=[1,114],G=[1,115],X=[1,116],Z=[1,118],Q=[1,120],J=[22,50,60,61,82,86,87,88,89,90],tt=[1,128],et=[12,39],rt=[1,8,9,39,41,44,46],it=[1,8,9,22],nt=[1,153],at=[1,8,9,61],ot=[1,8,9,22,50,60,61,82,86,87,88,89,90],st={trace:(0,x.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:(0,x.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:case 46:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+"."+a[s];break;case 12:case 16:case 110:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+"~"+a[s]+"~";break;case 19:i.addRelation(a[s]);break;case 20:a[s-1].title=i.cleanupLabel(a[s]),i.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 34:i.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]),i.popNamespace();break;case 35:i.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]),i.popNamespace();break;case 36:this.$=i.addNamespace(a[s]);break;case 37:this.$=i.addNamespace(a[s-1],a[s]);break;case 38:this.$=[[a[s]],[]];break;case 39:this.$=[[a[s-1]],[]];break;case 40:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 41:this.$=[[],[a[s]]];break;case 42:this.$=[[],[a[s-1]]];break;case 43:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:case 45:this.$=[[],[]];break;case 48:i.setCssClass(a[s-2],a[s]);break;case 49:i.addMembers(a[s-3],a[s-1]);break;case 51:i.setCssClass(a[s-5],a[s-3]),i.addMembers(a[s-5],a[s-1]);break;case 52:i.addAnnotation(a[s-3],a[s-1]);break;case 53:i.addAnnotation(a[s-6],a[s-4]),i.addMembers(a[s-6],a[s-1]);break;case 54:i.addAnnotation(a[s-5],a[s-3]);break;case 55:this.$=a[s],i.addClass(a[s]);break;case 56:this.$=a[s-1],i.addClass(a[s-1]),i.setClassLabel(a[s-1],a[s]);break;case 60:i.addAnnotation(a[s],a[s-2]);break;case 61:case 74:case 107:this.$=[a[s]];break;case 62:a[s].push(a[s-1]),this.$=a[s];break;case 63:case 65:case 66:break;case 64:i.addMember(a[s-1],i.cleanupLabel(a[s]));break;case 67:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:"none"};break;case 69:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:"none",relationTitle2:a[s-1]};break;case 70:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 71:this.$=i.addNote(a[s],a[s-1]);break;case 72:this.$=i.addNote(a[s]);break;case 73:this.$=a[s-2],i.defineClass(a[s-1],a[s]);break;case 75:this.$=a[s-2].concat([a[s]]);break;case 76:i.setDirection("TB");break;case 77:i.setDirection("BT");break;case 78:i.setDirection("RL");break;case 79:i.setDirection("LR");break;case 80:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 81:this.$={type1:"none",type2:a[s],lineType:a[s-1]};break;case 82:this.$={type1:a[s-1],type2:"none",lineType:a[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:a[s]};break;case 84:this.$=i.relationType.AGGREGATION;break;case 85:this.$=i.relationType.EXTENSION;break;case 86:this.$=i.relationType.COMPOSITION;break;case 87:this.$=i.relationType.DEPENDENCY;break;case 88:this.$=i.relationType.LOLLIPOP;break;case 89:this.$=i.lineType.LINE;break;case 90:this.$=i.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[s-2],i.setClickEvent(a[s-1],a[s]);break;case 92:case 98:this.$=a[s-3],i.setClickEvent(a[s-2],a[s-1]),i.setTooltip(a[s-2],a[s]);break;case 93:this.$=a[s-2],i.setLink(a[s-1],a[s]);break;case 94:this.$=a[s-3],i.setLink(a[s-2],a[s-1],a[s]);break;case 95:this.$=a[s-3],i.setLink(a[s-2],a[s-1]),i.setTooltip(a[s-2],a[s]);break;case 96:this.$=a[s-4],i.setLink(a[s-3],a[s-2],a[s]),i.setTooltip(a[s-3],a[s-1]);break;case 99:this.$=a[s-3],i.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],i.setClickEvent(a[s-3],a[s-2],a[s-1]),i.setTooltip(a[s-3],a[s]);break;case 101:this.$=a[s-3],i.setLink(a[s-2],a[s]);break;case 102:this.$=a[s-4],i.setLink(a[s-3],a[s-1],a[s]);break;case 103:this.$=a[s-4],i.setLink(a[s-3],a[s-1]),i.setTooltip(a[s-3],a[s]);break;case 104:this.$=a[s-5],i.setLink(a[s-4],a[s-2],a[s]),i.setTooltip(a[s-4],a[s-1]);break;case 105:this.$=a[s-2],i.setCssStyle(a[s-1],a[s]);break;case 106:i.setCssClass(a[s-1],a[s]);break;case 108:a[s-2].push(a[s]),this.$=a[s-2]}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:r,37:i,38:22,42:n,43:23,46:a,48:o,51:s,52:l,54:c,56:u,57:h,60:d,62:p,63:g,64:f,65:y,75:m,76:v,78:b,82:k,83:C,86:A,100:D,102:E,103:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(w,[2,5],{8:[1,48]}),{8:[1,49]},t(S,[2,19],{22:[1,50]}),t(S,[2,21]),t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),t(S,[2,26]),t(S,[2,27]),t(S,[2,28]),t(S,[2,29]),t(S,[2,30]),{34:[1,51]},{36:[1,52]},t(S,[2,33]),t(S,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:F,69:_,70:B,71:L,72:I,73:R,74:O}),{39:[1,65]},t(M,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(S,[2,65]),t(S,[2,66]),{16:69,60:d,86:A,100:D,102:E},{16:39,17:40,19:70,60:d,86:A,100:D,102:E,103:T},{16:39,17:40,19:71,60:d,86:A,100:D,102:E,103:T},{16:39,17:40,19:72,60:d,86:A,100:D,102:E,103:T},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:d,86:A,100:D,102:E,103:T},{13:N,55:76},{58:78,60:[1,79]},t(S,[2,76]),t(S,[2,77]),t(S,[2,78]),t(S,[2,79]),t(K,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:d,86:A,100:D,102:E,103:T}),t(K,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:d,86:A,100:D,102:E,103:T},{16:39,17:40,19:87,60:d,86:A,100:D,102:E,103:T},t(P,[2,133]),t(P,[2,134]),t(P,[2,135]),t(P,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(w,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:e,35:r,37:i,42:n,46:a,48:o,51:s,52:l,54:c,56:u,57:h,60:d,62:p,63:g,64:f,65:y,75:m,76:v,78:b,82:k,83:C,86:A,100:D,102:E,103:T}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:r,37:i,38:22,42:n,43:23,46:a,48:o,51:s,52:l,54:c,56:u,57:h,60:d,62:p,63:g,64:f,65:y,75:m,76:v,78:b,82:k,83:C,86:A,100:D,102:E,103:T},t(S,[2,20]),t(S,[2,31]),t(S,[2,32]),{13:[1,91],16:39,17:40,19:90,60:d,86:A,100:D,102:E,103:T},{53:92,66:56,67:57,68:F,69:_,70:B,71:L,72:I,73:R,74:O},t(S,[2,64]),{67:93,73:R,74:O},t(q,[2,83],{66:94,68:F,69:_,70:B,71:L,72:I}),t(z,[2,84]),t(z,[2,85]),t(z,[2,86]),t(z,[2,87]),t(z,[2,88]),t(W,[2,89]),t(W,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:o,54:c,56:u},{16:100,60:d,86:A,100:D,102:E},{41:[1,102],45:101,51:Y},{16:104,60:d,86:A,100:D,102:E},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:$,50:j,59:110,60:U,82:H,84:111,85:112,86:V,87:G,88:X,89:Z,90:Q},{60:[1,122]},{13:N,55:123},t(M,[2,72]),t(M,[2,138]),{22:$,50:j,59:124,60:U,61:[1,125],82:H,84:111,85:112,86:V,87:G,88:X,89:Z,90:Q},t(J,[2,74]),{16:39,17:40,19:126,60:d,86:A,100:D,102:E,103:T},t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),{11:127,12:tt,39:[2,36]},t(et,[2,9],{16:85,17:86,15:130,18:[1,129],60:d,86:A,100:D,102:E,103:T}),t(et,[2,10]),t(rt,[2,55],{11:131,12:tt}),t(w,[2,7]),{9:[1,132]},t(it,[2,67]),{16:39,17:40,19:133,60:d,86:A,100:D,102:E,103:T},{13:[1,135],16:39,17:40,19:134,60:d,86:A,100:D,102:E,103:T},t(q,[2,82],{66:136,68:F,69:_,70:B,71:L,72:I}),t(q,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:o,54:c,56:u},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(M,[2,48],{39:[1,142]}),{41:[1,143]},t(M,[2,50]),{41:[2,61],45:144,51:Y},{47:[1,145]},{16:39,17:40,19:146,60:d,86:A,100:D,102:E,103:T},t(S,[2,91],{13:[1,147]}),t(S,[2,93],{13:[1,149],77:[1,148]}),t(S,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(S,[2,105],{61:nt}),t(at,[2,107],{85:154,22:$,50:j,60:U,82:H,86:V,87:G,88:X,89:Z,90:Q}),t(ot,[2,109]),t(ot,[2,111]),t(ot,[2,112]),t(ot,[2,113]),t(ot,[2,114]),t(ot,[2,115]),t(ot,[2,116]),t(ot,[2,117]),t(ot,[2,118]),t(ot,[2,119]),t(S,[2,106]),t(M,[2,71]),t(S,[2,73],{61:nt}),{60:[1,155]},t(K,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:d,86:A,100:D,102:E,103:T},t(et,[2,12]),t(rt,[2,56]),{1:[2,4]},t(it,[2,69]),t(it,[2,68]),{16:39,17:40,19:158,60:d,86:A,100:D,102:E,103:T},t(q,[2,80]),t(M,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:o,54:c,56:u},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:o,54:c,56:u},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:o,54:c,56:u},{45:163,51:Y},t(M,[2,49]),{41:[2,62]},t(M,[2,52],{39:[1,164]}),t(S,[2,60]),t(S,[2,92]),t(S,[2,94]),t(S,[2,95],{77:[1,165]}),t(S,[2,98]),t(S,[2,99],{13:[1,166]}),t(S,[2,101],{13:[1,168],77:[1,167]}),{22:$,50:j,60:U,82:H,84:169,85:112,86:V,87:G,88:X,89:Z,90:Q},t(ot,[2,110]),t(J,[2,75]),{14:[1,170]},t(et,[2,11]),t(it,[2,70]),t(M,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:Y},t(S,[2,96]),t(S,[2,100]),t(S,[2,102]),t(S,[2,103],{77:[1,174]}),t(at,[2,108],{85:154,22:$,50:j,60:U,82:H,86:V,87:G,88:X,89:Z,90:Q}),t(rt,[2,8]),t(M,[2,51]),{41:[1,175]},t(M,[2,54]),t(S,[2,104]),t(M,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:(0,x.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,x.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,u=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var f=d.yylloc;a.push(f);var y=d.options&&d.options.ranges;function m(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,x.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,x.K2)(m,"lex");for(var v,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==v&&(v=m()),C=o[k]&&o[k][v]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(F,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:f,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(C[0]){case 1:r.push(v),n.push(d.yytext),a.push(d.yylloc),r.push(C[1]),v=null,b?(v=b,b=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,f=d.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,p.yy,C[1],n,a].concat(h))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},lt=function(){return{EOF:1,parseError:(0,x.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,x.K2)(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},"setInput"),input:(0,x.K2)(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},"input"),unput:(0,x.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,x.K2)(function(){return this._more=!0,this},"more"),reject:(0,x.K2)(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})},"reject"),less:(0,x.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,x.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,x.K2)(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,"")},"upcomingInput"),showPosition:(0,x.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,x.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,x.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,x.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,x.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,x.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,x.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,x.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,x.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,x.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,x.K2)(function(t,e,r,i){switch(r){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:case 14:case 31:case 37:case 41:case 48:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 59:case 62:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 36:return 8;case 15:case 16:return 7;case 17:case 38:case 46:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 23:return 80;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:case 40:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:this.popState(),this.less(0);break;case 34:case 44:return this.popState(),41;case 35:case 45:return"EOF_IN_STRUCT";case 39:return this.begin("class"),48;case 42:return this.popState(),this.popState(),41;case 43:return this.begin("class-body"),39;case 47:return"OPEN_IN_STRUCT";case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:case 66:case 67:case 68:return 77;case 69:case 70:return 69;case 71:case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:case 86:return 89;case 87:return 90;case 88:case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}}}();function ct(){this.yy={}}return st.lexer=lt,(0,x.K2)(ct,"Parser"),ct.prototype=st,st.Parser=ct,new ct}();C.parser=C;var A=C,D=["#","+","~","-",""],E=(i=function(){return(0,h.A)(function t(e,r){(0,u.A)(this,t),this.memberType=r,this.visibility="",this.classifier="",this.text="";var i=(0,v.jZ)(e,(0,v.D7)());this.parseMember(i)},[{key:"getDisplayDetails",value:function(){var t=this.visibility+(0,v.QO)(this.id);return"method"===this.memberType&&(t+="(".concat((0,v.QO)(this.parameters.trim()),")"),this.returnType&&(t+=" : "+(0,v.QO)(this.returnType))),{displayText:t=t.trim(),cssStyle:this.parseClassifier()}}},{key:"parseMember",value:function(t){var e="";if("method"===this.memberType){var r=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(r){var i=r[1]?r[1].trim():"";if(D.includes(i)&&(this.visibility=i),this.id=r[2],this.parameters=r[3]?r[3].trim():"",e=r[4]?r[4].trim():"",this.returnType=r[5]?r[5].trim():"",""===e){var n=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(n)&&(e=n,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{var a=t.length,o=t.substring(0,1),s=t.substring(a-1);D.includes(o)&&(this.visibility=o),/[$*]/.exec(s)&&(e=s),this.id=t.substring(""===this.visibility?0:1,""===e?a:a-1)}this.classifier=e,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();var l="".concat(this.visibility?"\\"+this.visibility:"").concat((0,v.QO)(this.id)).concat("method"===this.memberType?"(".concat((0,v.QO)(this.parameters),")").concat(this.returnType?" : "+(0,v.QO)(this.returnType):""):"");this.text=l.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}},{key:"parseClassifier",value:function(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}])}(),(0,x.K2)(i,"ClassMember"),i),T="classId-",w=0,S=(0,x.K2)(function(t){return v.Y2.sanitizeText(t,(0,v.D7)())},"sanitizeText"),F=(n=function(){function t(){(0,u.A)(this,t),this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=(0,x.K2)(function(t){var e=(0,p.Ck)();(0,b.Ltv)(t).select("svg").selectAll("g").filter(function(){return null!==(0,b.Ltv)(this).attr("title")}).on("mouseover",function(t){var r=(0,b.Ltv)(t.currentTarget),i=r.attr("title");if(i){var n=t.currentTarget.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(k.A.sanitize(i)).style("left","".concat(window.scrollX+n.left+n.width/2,"px")).style("top","".concat(window.scrollY+n.bottom+4,"px")),r.classed("hover",!0)}}).on("mouseout",function(t){e.transition().duration(500).style("opacity",0),(0,b.Ltv)(t.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=v.SV,this.getAccTitle=v.iN,this.setAccDescription=v.EI,this.getAccDescription=v.m7,this.setDiagramTitle=v.ke,this.getDiagramTitle=v.ab,this.getConfig=(0,x.K2)(function(){return(0,v.D7)().class},"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}return(0,h.A)(t,[{key:"splitClassNameAndType",value:function(t){var e=v.Y2.sanitizeText(t,(0,v.D7)()),r="",i=e;if(e.indexOf("~")>0){var n=e.split("~");i=S(n[0]),r=S(n[1])}return{className:i,type:r}}},{key:"setClassLabel",value:function(t,e){var r=v.Y2.sanitizeText(t,(0,v.D7)());e&&(e=S(e));var i=this.splitClassNameAndType(r).className;this.classes.get(i).label=e,this.classes.get(i).text="".concat(e).concat(this.classes.get(i).type?"<".concat(this.classes.get(i).type,">"):"")}},{key:"addClass",value:function(t){var e=v.Y2.sanitizeText(t,(0,v.D7)()),r=this.splitClassNameAndType(e),i=r.className,n=r.type;if(!this.classes.has(i)){var a=v.Y2.sanitizeText(i,(0,v.D7)());this.classes.set(a,{id:a,type:n,label:a,text:"".concat(a).concat(n?"&lt;".concat(n,"&gt;"):""),shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:T+a+"-"+w}),w++}}},{key:"addInterface",value:function(t,e){var r={id:"interface".concat(this.interfaces.length),label:t,classId:e};this.interfaces.push(r)}},{key:"setDiagramId",value:function(t){this.diagramId=t}},{key:"lookUpDomId",value:function(t){var e=v.Y2.sanitizeText(t,(0,v.D7)());if(this.classes.has(e)){var r=this.classes.get(e).domId;return this.diagramId?"".concat(this.diagramId,"-").concat(r):r}throw new Error("Class not found: "+e)}},{key:"clear",value:function(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",(0,v.IU)()}},{key:"getClass",value:function(t){return this.classes.get(t)}},{key:"getClasses",value:function(){return this.classes}},{key:"getRelations",value:function(){return this.relations}},{key:"getNote",value:function(t){var e="number"==typeof t?"note".concat(t):t;return this.notes.get(e)}},{key:"getNotes",value:function(){return this.notes}},{key:"addRelation",value:function(t){x.Rm.debug("Adding relation: "+JSON.stringify(t));var e=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1!==this.relationType.LOLLIPOP||e.includes(t.relation.type2)?t.relation.type2!==this.relationType.LOLLIPOP||e.includes(t.relation.type1)?(this.addClass(t.id1),this.addClass(t.id2)):(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2="interface".concat(this.interfaces.length-1)):(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1="interface".concat(this.interfaces.length-1)),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=v.Y2.sanitizeText(t.relationTitle1.trim(),(0,v.D7)()),t.relationTitle2=v.Y2.sanitizeText(t.relationTitle2.trim(),(0,v.D7)()),this.relations.push(t)}},{key:"addAnnotation",value:function(t,e){var r=this.splitClassNameAndType(t).className;this.classes.get(r).annotations.push(e)}},{key:"addMember",value:function(t,e){this.addClass(t);var r=this.splitClassNameAndType(t).className,i=this.classes.get(r);if("string"==typeof e){var n=e.trim();n.startsWith("<<")&&n.endsWith(">>")?i.annotations.push(S(n.substring(2,n.length-2))):n.indexOf(")")>0?i.methods.push(new E(n,"method")):n&&i.members.push(new E(n,"attribute"))}}},{key:"addMembers",value:function(t,e){var r=this;Array.isArray(e)&&(e.reverse(),e.forEach(function(e){return r.addMember(t,e)}))}},{key:"addNote",value:function(t,e){var r=this.notes.size,i={id:"note".concat(r),class:e,text:t,index:r};return this.notes.set(i.id,i),i.id}},{key:"cleanupLabel",value:function(t){return t.startsWith(":")&&(t=t.substring(1)),S(t.trim())}},{key:"setCssClass",value:function(t,e){var r=this;t.split(",").forEach(function(t){var i=t;/\d/.exec(t[0])&&(i=T+i);var n=r.classes.get(i);n&&(n.cssClasses+=" "+e)})}},{key:"defineClass",value:function(t,e){var r,i=this,n=(0,c.A)(t);try{var a=function(){var t=r.value,n=i.styleClasses.get(t);void 0===n&&(n={id:t,styles:[],textStyles:[]},i.styleClasses.set(t,n)),e&&e.forEach(function(t){if(/color/.exec(t)){var e=t.replace("fill","bgFill");n.textStyles.push(e)}n.styles.push(t)}),i.classes.forEach(function(r){var i;r.cssClasses.includes(t)&&(i=r.styles).push.apply(i,(0,l.A)(e.flatMap(function(t){return t.split(",")})))})};for(n.s();!(r=n.n()).done;)a()}catch(t){n.e(t)}finally{n.f()}}},{key:"setTooltip",value:function(t,e){var r=this;t.split(",").forEach(function(t){void 0!==e&&(r.classes.get(t).tooltip=S(e))})}},{key:"getTooltip",value:function(t,e){return e&&this.namespaces.has(e)?this.namespaces.get(e).classes.get(t).tooltip:this.classes.get(t).tooltip}},{key:"setLink",value:function(t,e,r){var i=this,n=(0,v.D7)();t.split(",").forEach(function(t){var a=t;/\d/.exec(t[0])&&(a=T+a);var o=i.classes.get(a);o&&(o.link=m._K.formatUrl(e,n),"sandbox"===n.securityLevel?o.linkTarget="_top":o.linkTarget="string"==typeof r?S(r):"_blank")}),this.setCssClass(t,"clickable")}},{key:"setClickEvent",value:function(t,e,r){var i=this;t.split(",").forEach(function(t){i.setClickFunc(t,e,r),i.classes.get(t).haveCallback=!0}),this.setCssClass(t,"clickable")}},{key:"setClickFunc",value:function(t,e,r){var i=this,n=v.Y2.sanitizeText(t,(0,v.D7)());if("loose"===(0,v.D7)().securityLevel&&void 0!==e){var a=n;if(this.classes.has(a)){var o=[];if("string"==typeof r){o=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var s=0;s<o.length;s++){var c=o[s].trim();c.startsWith('"')&&c.endsWith('"')&&(c=c.substr(1,c.length-2)),o[s]=c}}0===o.length&&o.push(a),this.functions.push(function(){var t=i.lookUpDomId(a),r=document.querySelector('[id="'.concat(t,'"]'));null!==r&&r.addEventListener("click",function(){m._K.runFunc.apply(m._K,[e].concat((0,l.A)(o)))},!1)})}}}},{key:"bindFunctions",value:function(t){this.functions.forEach(function(e){e(t)})}},{key:"escapeHtml",value:function(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}},{key:"getDirection",value:function(){return this.direction}},{key:"setDirection",value:function(t){this.direction=t}},{key:"createNamespaceNode",value:function(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{id:t,label:e,classes:new Map,notes:new Map,children:new Map,domId:T+t+"-"+this.namespaceCounter++,parent:r,explicit:i}}},{key:"linkParentChild",value:function(t,e){var r,i=this.namespaces.get(t),n=this.namespaces.get(e);i&&n&&(i.children.has(e)||i.children.set(e,n),null!==(r=n.parent)&&void 0!==r||(n.parent=t))}},{key:"addNamespace",value:function(e,r){var i=t.resolveQualifiedId(e,this.namespaceStack);if(this.namespaceStack.push(i),this.namespaces.has(i)){var n=this.namespaces.get(i);return n.explicit=!0,r&&(n.label=r),i}for(var a=i.split("."),o=t.getAncestorIds(i),s=0;s<o.length;s++){var l=o[s],c=s>0?o[s-1]:void 0,u=s===o.length-1,h=u&&r?r:a[s];this.namespaces.has(l)?u&&(this.namespaces.get(l).explicit=!0):this.namespaces.set(l,this.createNamespaceNode(l,h,c,u)),c&&this.linkParentChild(c,l)}return i}},{key:"popNamespace",value:function(){this.namespaceStack.pop()}},{key:"getNamespace",value:function(t){return this.namespaces.get(t)}},{key:"getNamespaces",value:function(){return this.namespaces}},{key:"addClassesToNamespace",value:function(t,e,r){if(this.namespaces.has(t)){var i,n=(0,c.A)(e);try{for(n.s();!(i=n.n()).done;){var a=i.value,o=this.splitClassNameAndType(a).className,s=this.getClass(o);s.parent=t,this.namespaces.get(t).classes.set(o,s)}}catch(t){n.e(t)}finally{n.f()}var l,u=(0,c.A)(r);try{for(u.s();!(l=u.n()).done;){var h=l.value,d=this.getNote(h);d.parent=t,this.namespaces.get(t).notes.set(h,d)}}catch(t){u.e(t)}finally{u.f()}}}},{key:"setCssStyle",value:function(t,e){var r=this.classes.get(t);if(e&&r){var i,n=(0,c.A)(e);try{for(n.s();!(i=n.n()).done;){var a,o=i.value;if(o.includes(","))(a=r.styles).push.apply(a,(0,l.A)(o.split(",")));else r.styles.push(o)}}catch(t){n.e(t)}finally{n.f()}}}},{key:"getArrowMarker",value:function(t){var e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}},{key:"resolveExplicitAncestor",value:function(t){for(var e=t;e;){var r=this.namespaces.get(e);if(!r)return;if(r.explicit)return e;e=r.parent}}},{key:"getData",value:function(){var t,e,r,i=[],n=[],a=(0,v.D7)(),o=null===(t=null===(e=a.class)||void 0===e?void 0:e.hierarchicalNamespaces)||void 0===t||t,l=(0,c.A)(this.namespaces.values());try{for(l.s();!(r=l.n()).done;){var u,h=r.value;if(o||h.explicit){var d={id:h.id,label:o?h.label:h.id,isGroup:!0,padding:null!==(u=a.class.padding)&&void 0!==u?u:16,shape:"rect",cssStyles:[],look:a.look,parentId:o?h.parent:void 0};i.push(d)}}}catch(t){l.e(t)}finally{l.f()}var p,g=(0,c.A)(this.classes.values());try{for(g.s();!(p=g.n()).done;){var f=p.value,y=o?f.parent:this.resolveExplicitAncestor(f.parent),x=(0,s.A)((0,s.A)({},f),{},{type:void 0,isGroup:!1,parentId:y,look:a.look});i.push(x)}}catch(t){g.e(t)}finally{g.f()}var b,k=(0,c.A)(this.notes.values());try{for(k.s();!(b=k.n()).done;){var C,A,D=b.value,E=o?D.parent:this.resolveExplicitAncestor(D.parent),T={id:D.id,label:D.text,isGroup:!1,shape:"note",padding:null!==(C=a.class.padding)&&void 0!==C?C:6,cssStyles:["text-align: left","white-space: nowrap","fill: ".concat(a.themeVariables.noteBkgColor),"stroke: ".concat(a.themeVariables.noteBorderColor)],look:a.look,parentId:E,labelType:"markdown"};i.push(T);var w=null===(A=this.classes.get(D.class))||void 0===A?void 0:A.id;if(w){var S={id:"edgeNote".concat(D.index),start:D.id,end:w,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:a.look};n.push(S)}}}catch(t){k.e(t)}finally{k.f()}var F,_=(0,c.A)(this.interfaces);try{for(_.s();!(F=_.n()).done;){var B=F.value,L={id:B.id,label:B.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:a.look};i.push(L)}}catch(t){_.e(t)}finally{_.f()}var I,R=0,O=(0,c.A)(this.relations);try{for(O.s();!(I=O.n()).done;){var M=I.value;R++;var N={id:(0,m.rY)(M.id1,M.id2,{prefix:"id",counter:R}),start:M.id1,end:M.id2,type:"normal",label:M.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(M.relation.type1),arrowTypeEnd:this.getArrowMarker(M.relation.type2),startLabelRight:"none"===M.relationTitle1?"":M.relationTitle1,endLabelLeft:"none"===M.relationTitle2?"":M.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:M.style||"",pattern:1==M.relation.lineType?"dashed":"solid",look:a.look,labelType:"markdown"};n.push(N)}}catch(t){O.e(t)}finally{O.f()}return{nodes:i,edges:n,other:{},config:a,direction:this.getDirection()}}}],[{key:"resolveQualifiedId",value:function(t,e){var r=e.at(-1);return r?"".concat(r,".").concat(t):t}},{key:"getAncestorIds",value:function(t){var e=t.split("."),r=new Array(e.length);r[0]=e[0];for(var i=1;i<e.length;i++)r[i]="".concat(r[i-1],".").concat(e[i]);return r}}])}(),(0,x.K2)(n,"ClassDB"),n),_=(0,x.K2)(function(t){return"g.classGroup text {\n  fill: ".concat(t.nodeBorder||t.classText,";\n  stroke: none;\n  font-family: ").concat(t.fontFamily,";\n  font-size: 10px;\n\n  .title {\n    font-weight: bolder;\n  }\n\n}\n\n  .cluster-label text {\n    fill: ").concat(t.titleColor,";\n  }\n  .cluster-label span {\n    color: ").concat(t.titleColor,";\n  }\n  .cluster-label span p {\n    background-color: transparent;\n  }\n\n  .cluster rect {\n    fill: ").concat(t.clusterBkg,";\n    stroke: ").concat(t.clusterBorder,";\n    stroke-width: 1px;\n  }\n\n  .cluster text {\n    fill: ").concat(t.titleColor,";\n  }\n\n  .cluster span {\n    color: ").concat(t.titleColor,";\n  }\n\n.nodeLabel, .edgeLabel {\n  color: ").concat(t.classText,";\n}\n\n.noteLabel .nodeLabel, .noteLabel .edgeLabel {\n  color: ").concat(t.noteTextColor,";\n}\n.edgeLabel .label rect {\n  fill: ").concat(t.mainBkg,";\n}\n.label text {\n  fill: ").concat(t.classText,";\n}\n\n.labelBkg {\n  background: ").concat(t.mainBkg,";\n}\n.edgeLabel .label span {\n  background: ").concat(t.mainBkg,";\n}\n\n.classTitle {\n  font-weight: bolder;\n}\n.node rect,\n  .node circle,\n  .node ellipse,\n  .node polygon,\n  .node path {\n    fill: ").concat(t.mainBkg,";\n    stroke: ").concat(t.nodeBorder,";\n    stroke-width: ").concat(t.strokeWidth,";\n  }\n\n\n.divider {\n  stroke: ").concat(t.nodeBorder,";\n  stroke-width: 1;\n}\n\ng.clickable {\n  cursor: pointer;\n}\n\ng.classGroup rect {\n  fill: ").concat(t.mainBkg,";\n  stroke: ").concat(t.nodeBorder,";\n}\n\ng.classGroup line {\n  stroke: ").concat(t.nodeBorder,";\n  stroke-width: 1;\n}\n\n.classLabel .box {\n  stroke: none;\n  stroke-width: 0;\n  fill: ").concat(t.mainBkg,";\n  opacity: 0.5;\n}\n\n.classLabel .label {\n  fill: ").concat(t.nodeBorder,";\n  font-size: 10px;\n}\n\n.relation {\n  stroke: ").concat(t.lineColor,";\n  stroke-width: ").concat(t.strokeWidth,';\n  fill: none;\n}\n\n.dashed-line{\n  stroke-dasharray: 3;\n}\n\n.dotted-line{\n  stroke-dasharray: 1 2;\n}\n\n[id$="-compositionStart"], .composition {\n  fill: ').concat(t.lineColor," !important;\n  stroke: ").concat(t.lineColor,' !important;\n  stroke-width: 1;\n}\n\n[id$="-compositionEnd"], .composition {\n  fill: ').concat(t.lineColor," !important;\n  stroke: ").concat(t.lineColor,' !important;\n  stroke-width: 1;\n}\n\n[id$="-dependencyStart"], .dependency {\n  fill: ').concat(t.lineColor," !important;\n  stroke: ").concat(t.lineColor,' !important;\n  stroke-width: 1;\n}\n\n[id$="-dependencyEnd"], .dependency {\n  fill: ').concat(t.lineColor," !important;\n  stroke: ").concat(t.lineColor,' !important;\n  stroke-width: 1;\n}\n\n[id$="-extensionStart"], .extension {\n  fill: transparent !important;\n  stroke: ').concat(t.lineColor,' !important;\n  stroke-width: 1;\n}\n\n[id$="-extensionEnd"], .extension {\n  fill: transparent !important;\n  stroke: ').concat(t.lineColor,' !important;\n  stroke-width: 1;\n}\n\n[id$="-aggregationStart"], .aggregation {\n  fill: transparent !important;\n  stroke: ').concat(t.lineColor,' !important;\n  stroke-width: 1;\n}\n\n[id$="-aggregationEnd"], .aggregation {\n  fill: transparent !important;\n  stroke: ').concat(t.lineColor,' !important;\n  stroke-width: 1;\n}\n\n[id$="-lollipopStart"], .lollipop {\n  fill: ').concat(t.mainBkg," !important;\n  stroke: ").concat(t.lineColor,' !important;\n  stroke-width: 1;\n}\n\n[id$="-lollipopEnd"], .lollipop {\n  fill: ').concat(t.mainBkg," !important;\n  stroke: ").concat(t.lineColor," !important;\n  stroke-width: 1;\n}\n\n.edgeTerminals {\n  font-size: 11px;\n  line-height: initial;\n}\n\n.classTitleText {\n  text-anchor: middle;\n  font-size: 18px;\n  fill: ").concat(t.textColor,';\n}\n\n.edgeLabel[data-look="neo"] {\n  background-color: ').concat(t.edgeLabelBackground,";\n  p {\n    background-color: ").concat(t.edgeLabelBackground,";\n  }\n  rect {\n    opacity: 0.5;\n    background-color: ").concat(t.edgeLabelBackground,";\n    fill: ").concat(t.edgeLabelBackground,";\n  }\n  text-align: center;\n}\n  ").concat((0,d.o)(),"\n")},"getStyles"),B=(0,x.K2)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TB";if(!t.doc)return e;var r,i=e,n=(0,c.A)(t.doc);try{for(n.s();!(r=n.n()).done;){var a=r.value;"dir"===a.stmt&&(i=a.value)}}catch(t){n.e(t)}finally{n.f()}return i},"getDir"),L=(0,x.K2)(function(t,e){return e.db.getClasses()},"getClasses"),I=(0,x.K2)(function(){var t=(0,o.A)((0,a.A)().m(function t(e,r,i,n){var o,s,l,c,u,h,d,p;return(0,a.A)().w(function(t){for(;;)switch(t.n){case 0:return x.Rm.info("REF0:"),x.Rm.info("Drawing class diagram (v3)",r),l=(0,v.D7)(),c=l.securityLevel,u=l.state,h=l.layout,n.db.setDiagramId(r),d=n.db.getData(),p=(0,g.A)(r,c),d.type=n.type,d.layoutAlgorithm=(0,y.q7)(h),d.nodeSpacing=(null==u?void 0:u.nodeSpacing)||50,d.rankSpacing=(null==u?void 0:u.rankSpacing)||50,d.markers=["aggregation","extension","composition","dependency","lollipop"],d.diagramId=r,t.n=1,(0,y.XX)(d,p);case 1:m._K.insertTitle(p,"classDiagramTitleText",null!==(o=null==u?void 0:u.titleTopMargin)&&void 0!==o?o:25,n.db.getDiagramTitle()),(0,f.P)(p,8,"classDiagram",null===(s=null==u?void 0:u.useMaxWidth)||void 0===s||s);case 2:return t.a(2)}},t)}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"draw"),R={getClasses:L,draw:I,getDir:B}},68548:function(t,e,r){"use strict";r.d(e,{He:function(){return l},K2:function(){return n},Rm:function(){return s},VA:function(){return a}});r(1576);var i=Object.defineProperty,n=function(t,e){return i(t,"name",{value:e,configurable:!0})},a=function(t,e){for(var r in e)i(t,r,{get:e[r],enumerable:!0})},o={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},s={trace:n(function(){},"trace"),debug:n(function(){},"debug"),info:n(function(){},"info"),warn:n(function(){},"warn"),error:n(function(){},"error"),fatal:n(function(){},"fatal")},l=n(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fatal",e=o.fatal;"string"==typeof t?t.toLowerCase()in o&&(e=o[t]):"number"==typeof t&&(e=t),s.trace=function(){},s.debug=function(){},s.info=function(){},s.warn=function(){},s.error=function(){},s.fatal=function(){},e<=o.fatal&&(s.fatal=(console.error,function(){}.bind())),e<=o.error&&(s.error=(console.error,function(){}.bind())),e<=o.warn&&(s.warn=(console.warn,function(){}.bind())),e<=o.info&&(s.info=(console.info,function(){}.bind())),e<=o.debug&&(s.debug=(console.debug,function(){}.bind())),e<=o.trace&&(s.trace=(console.debug,function(){}.bind()))},"setLogLevel")},72660:function(t,e,r){"use strict";r.d(e,{Zk:function(){return v},q7:function(){return H},tM:function(){return yt},u4:function(){return ft}});var i,n=r(54119),a=r(25026),o=r(69492),s=r(74721),l=r(20908),c=r(30388),u=r(3604),h=r(21888),d=r(61340),p=r(86349),g=r(34539),f=r(40985),y=r(68548),m=function(){var t=(0,y.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,2],r=[1,3],i=[1,4],n=[2,4],a=[1,9],o=[1,11],s=[1,16],l=[1,17],c=[1,18],u=[1,19],h=[1,33],d=[1,20],p=[1,21],g=[1,22],f=[1,23],m=[1,24],v=[1,26],x=[1,27],b=[1,28],k=[1,29],C=[1,30],A=[1,31],D=[1,32],E=[1,35],T=[1,36],w=[1,37],S=[1,38],F=[1,34],_=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],B=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],L=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],I={trace:(0,y.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:(0,y.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 3:return i.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:"nl"!=a[s]&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:case 12:this.$=a[s];break;case 8:this.$="nl";break;case 13:var l=a[s-1];l.description=i.trimColon(a[s]),this.$=l;break;case 14:this.$={stmt:"relation",state1:a[s-2],state2:a[s]};break;case 15:var c=i.trimColon(a[s]);this.$={stmt:"relation",state1:a[s-3],state2:a[s-1],description:c};break;case 19:this.$={stmt:"state",id:a[s-3],type:"default",description:"",doc:a[s-1]};break;case 20:var u=a[s],h=a[s-2].trim();if(a[s].match(":")){var d=a[s].split(":");u=d[0],h=[h,d[1]]}this.$={stmt:"state",id:u,type:"default",description:h};break;case 21:this.$={stmt:"state",id:a[s-3],type:"default",description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:"state",id:a[s],type:"fork"};break;case 23:this.$={stmt:"state",id:a[s],type:"join"};break;case 24:this.$={stmt:"state",id:a[s],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:"click",id:a[s-3],url:a[s-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:"style",id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:"applyClass",id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:a[s].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:a[s-2].trim(),classes:[a[s].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:e,5:r,6:i},{1:[3]},{3:5,4:e,5:r,6:i},{3:6,4:e,5:r,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:c,22:u,24:h,25:d,26:p,27:g,28:f,29:m,32:25,33:v,35:x,37:b,38:k,41:C,45:A,48:D,51:E,52:T,53:w,54:S,57:F},t(_,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:s,17:l,19:c,22:u,24:h,25:d,26:p,27:g,28:f,29:m,32:25,33:v,35:x,37:b,38:k,41:C,45:A,48:D,51:E,52:T,53:w,54:S,57:F},t(_,[2,7]),t(_,[2,8]),t(_,[2,9]),t(_,[2,10]),t(_,[2,11]),t(_,[2,12],{14:[1,40],15:[1,41]}),t(_,[2,16]),{18:[1,42]},t(_,[2,18],{20:[1,43]}),{23:[1,44]},t(_,[2,22]),t(_,[2,23]),t(_,[2,24]),t(_,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(_,[2,28]),{34:[1,49]},{36:[1,50]},t(_,[2,31]),{13:51,24:h,57:F},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(B,[2,44],{58:[1,56]}),t(B,[2,45],{58:[1,57]}),t(_,[2,38]),t(_,[2,39]),t(_,[2,40]),t(_,[2,41]),t(_,[2,6]),t(_,[2,13]),{13:58,24:h,57:F},t(_,[2,17]),t(L,n,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(_,[2,29]),t(_,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(_,[2,14],{14:[1,71]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:c,21:[1,72],22:u,24:h,25:d,26:p,27:g,28:f,29:m,32:25,33:v,35:x,37:b,38:k,41:C,45:A,48:D,51:E,52:T,53:w,54:S,57:F},t(_,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(_,[2,34]),t(_,[2,35]),t(_,[2,36]),t(_,[2,37]),t(B,[2,46]),t(B,[2,47]),t(_,[2,15]),t(_,[2,19]),t(L,n,{7:78}),t(_,[2,26]),t(_,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:c,21:[1,81],22:u,24:h,25:d,26:p,27:g,28:f,29:m,32:25,33:v,35:x,37:b,38:k,41:C,45:A,48:D,51:E,52:T,53:w,54:S,57:F},t(_,[2,32]),t(_,[2,33]),t(_,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:(0,y.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,y.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,u=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var f=d.yylloc;a.push(f);var m=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,y.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,y.K2)(v,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=v()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:d.match,token:this.terminals_[x]||x,line:d.yylineno,loc:f,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(d.yytext),a.push(d.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,f=d.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,p.yy,C[1],n,a].concat(h))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},R=function(){return{EOF:1,parseError:(0,y.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,y.K2)(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},"setInput"),input:(0,y.K2)(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},"input"),unput:(0,y.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,y.K2)(function(){return this._more=!0,this},"more"),reject:(0,y.K2)(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})},"reject"),less:(0,y.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,y.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,y.K2)(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,"")},"upcomingInput"),showPosition:(0,y.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,y.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,y.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,y.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,y.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,y.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,y.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,y.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,y.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,y.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,y.K2)(function(t,e,r,i){function n(){var r=e.yytext.indexOf("%%");if(0===r)return!1;if(r>0){var i=e.yytext.slice(0,r),n=e.yytext.slice(r);n&&t.lexer.unput(n),e.yytext=i}return!0}(0,y.K2)(n,"processId");switch(r){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 43:return 51;case 5:case 44:return 52;case 6:case 45:return 53;case 7:case 46:return 54;case 8:case 77:return 5;case 9:case 10:case 11:case 12:case 56:case 62:break;case 13:case 33:return this.pushState("SCALE"),17;case 14:case 34:return 18;case 15:case 21:case 35:case 50:case 53:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 36:this.pushState("STATE");break;case 37:case 40:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 38:case 41:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:case 64:if(!n())return;return this.popState(),"ID";case 51:return"STATE_DESCR";case 52:return 19;case 54:return this.popState(),this.pushState("struct"),20;case 55:return this.popState(),21;case 57:return this.begin("NOTE"),29;case 58:return this.popState(),this.pushState("NOTE_ID"),59;case 59:return this.popState(),this.pushState("NOTE_ID"),60;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 63:return"NOTE_TEXT";case 65:if(!n())return;return this.popState(),this.pushState("NOTE_TEXT"),24;case 66:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 67:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 68:case 69:return 6;case 70:return 16;case 71:return 57;case 72:if(!n())return;return 24;case 73:return e.yytext=e.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 58;case 78:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,55,56,57,71,72,73,74,75,76],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,54,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}}}();function O(){this.yy={}}return I.lexer=R,(0,y.K2)(O,"Parser"),O.prototype=I,I.Parser=O,new O}();m.parser=m;var v=m,x="state",b="root",k="relation",C="default",A="divider",D="fill:none",E="fill: #333",T="markdown",w="normal",S="rect",F="rectWithTitle",_="divider",B="roundedWithTitle",L="statediagram",I="".concat(L,"-").concat("state"),R="transition",O="".concat(R," ").concat("note-edge"),M="".concat(L,"-").concat("note"),N="".concat(L,"-").concat("cluster"),K="".concat(L,"-").concat("cluster-alt"),P="parent",q="note",z="----",W="".concat(z).concat(q),Y="".concat(z).concat(P),$=(0,y.K2)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TB";if(!t.doc)return e;var r,i=e,n=(0,u.A)(t.doc);try{for(n.s();!(r=n.n()).done;){var a=r.value;"dir"===a.stmt&&(i=a.value)}}catch(t){n.e(t)}finally{n.f()}return i},"getDir"),j=(0,y.K2)(function(t,e){return e.db.getClasses()},"getClasses"),U=(0,y.K2)(function(){var t=(0,c.A)((0,l.A)().m(function t(e,r,i,n){var a,o,s,c,u,m,v,x;return(0,l.A)().w(function(t){for(;;)switch(t.n){case 0:return y.Rm.info("REF0:"),y.Rm.info("Drawing state diagram (v2)",r),s=(0,f.D7)(),c=s.securityLevel,u=s.state,m=s.layout,n.db.extract(n.db.getRootDocV2()),v=n.db.getData(),x=(0,h.A)(r,c),v.type=n.type,v.layoutAlgorithm=m,v.nodeSpacing=(null==u?void 0:u.nodeSpacing)||50,v.rankSpacing=(null==u?void 0:u.rankSpacing)||50,"neo"===(0,f.D7)().look?v.markers=["barbNeo"]:v.markers=["barb"],v.diagramId=r,t.n=1,(0,p.XX)(v,x);case 1:0;try{("function"==typeof n.db.getLinks?n.db.getLinks():new Map).forEach(function(t,e){var r,i="string"==typeof e?e:"string"==typeof(null==e?void 0:e.id)?e.id:"";if(i){var n,a=null===(r=x.node())||void 0===r?void 0:r.querySelectorAll("g");if(null==a||a.forEach(function(t){var e;(null===(e=t.textContent)||void 0===e?void 0:e.trim())===i&&(n=t)}),n){var o=n.parentNode;if(o){var s=document.createElementNS("http://www.w3.org/2000/svg","a"),l=t.url.replace(/^"+|"+$/g,"");if(s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),s.setAttribute("target","_blank"),t.tooltip){var c=t.tooltip.replace(/^"+|"+$/g,"");s.setAttribute("title",c)}o.replaceChild(s,n),s.appendChild(n),y.Rm.info("🔗 Wrapped node in <a> tag for:",i,t.url)}else y.Rm.warn("⚠️ Node has no parent, cannot wrap:",i)}else y.Rm.warn("⚠️ Could not find node matching text:",i)}else y.Rm.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e))})}catch(t){y.Rm.error("❌ Error injecting clickable links:",t)}g._K.insertTitle(x,"statediagramTitleText",null!==(a=null==u?void 0:u.titleTopMargin)&&void 0!==a?a:25,n.db.getDiagramTitle()),(0,d.P)(x,8,L,null===(o=null==u?void 0:u.useMaxWidth)||void 0===o||o);case 2:return t.a(2)}},t)}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"draw"),H={getClasses:j,draw:U,getDir:$},V=new Map,G=0;function X(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:z,n=null!==r&&r.length>0?"".concat(i).concat(r):"";return"".concat("state","-").concat(t).concat(n,"-").concat(e)}(0,y.K2)(X,"stateDomId");var Z=(0,y.K2)(function(t,e,r,i,n,a,o,s){y.Rm.trace("items",e),e.forEach(function(e){switch(e.stmt){case x:case C:rt(t,e,r,i,n,a,o,s);break;case k:var l;rt(t,e.state1,r,i,n,a,o,s),rt(t,e.state2,r,i,n,a,o,s);var c="neo"===o,u={id:"edge"+G,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:c?"arrow_barb_neo":"arrow_barb",style:D,labelStyle:"",label:f.Y2.sanitizeText(null!==(l=e.description)&&void 0!==l?l:"",(0,f.D7)()),arrowheadStyle:E,labelpos:"c",labelType:T,thickness:w,classes:R,look:o};n.push(u),G++}})},"setupDoc"),Q=(0,y.K2)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TB";if(t.doc){var r,i=(0,u.A)(t.doc);try{for(i.s();!(r=i.n()).done;){var n=r.value;"dir"===n.stmt&&(e=n.value)}}catch(t){i.e(t)}finally{i.f()}}return e},"getDir");function J(t,e,r){if(e.id&&"</join></fork>"!==e.id&&"</choice>"!==e.id){e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(function(t){var i,n=r.get(t);n&&(e.cssCompiledStyles=[].concat((0,s.A)(null!==(i=e.cssCompiledStyles)&&void 0!==i?i:[]),(0,s.A)(n.styles)))}));var i=t.find(function(t){return t.id===e.id});i?Object.assign(i,e):t.push(e)}}function tt(t){var e,r;return null!==(e=null==t||null===(r=t.classes)||void 0===r?void 0:r.join(" "))&&void 0!==e?e:""}function et(t){var e;return null!==(e=null==t?void 0:t.styles)&&void 0!==e?e:[]}(0,y.K2)(J,"insertOrUpdateNode"),(0,y.K2)(tt,"getClassesFromDbInfo"),(0,y.K2)(et,"getStylesFromDbInfo");var rt=(0,y.K2)(function(t,e,r,i,n,a,o,s){var l=e.id,c=r.get(l),u=tt(c),h=et(c),d=(0,f.D7)();if(y.Rm.info("dataFetcher parsedItem",e,c,h),"root"!==l){var p,g=S;!0===e.start?g="stateStart":!1===e.start&&(g="stateEnd"),e.type!==C&&(g=e.type),V.get(l)||V.set(l,{id:l,shape:g,description:f.Y2.sanitizeText(l,d),cssClasses:"".concat(u," ").concat(I),cssStyles:h});var m=V.get(l);if(e.description){var v;if(Array.isArray(m.description))m.shape=F,m.description.push(e.description);else null!==(v=m.description)&&void 0!==v&&v.length&&m.description.length>0?(m.shape=F,m.description===l?m.description=[e.description]:m.description=[m.description,e.description]):(m.shape=S,m.description=e.description);m.description=f.Y2.sanitizeTextOrArray(m.description,d)}1===(null===(p=m.description)||void 0===p?void 0:p.length)&&m.shape===F&&("group"===m.type?m.shape=B:m.shape=S),!m.type&&e.doc&&(y.Rm.info("Setting cluster for XCX",l,Q(e)),m.type="group",m.isGroup=!0,m.dir=Q(e),m.shape=e.type===A?_:B,m.cssClasses="".concat(m.cssClasses," ").concat(N," ").concat(a?K:""));var x={labelStyle:"",shape:m.shape,label:m.description,cssClasses:m.cssClasses,cssCompiledStyles:[],cssStyles:m.cssStyles,id:l,dir:m.dir,domId:X(l,G),type:m.type,isGroup:"group"===m.type,padding:8,rx:10,ry:10,look:o,labelType:"markdown"};if(x.shape===_&&(x.label=""),t&&"root"!==t.id&&(y.Rm.trace("Setting node ",l," to be child of its parent ",t.id),x.parentId=t.id),x.centerLabel=!0,e.note){var b,k={labelStyle:"",shape:"note",label:e.note.text,labelType:"markdown",cssClasses:M,cssStyles:[],cssCompiledStyles:[],id:l+W+"-"+G,domId:X(l,G,q),type:m.type,isGroup:"group"===m.type,padding:null===(b=d.flowchart)||void 0===b?void 0:b.padding,look:o,position:e.note.position},L=l+Y,R={labelStyle:"",shape:"noteGroup",label:e.note.text,cssClasses:m.cssClasses,cssStyles:[],id:l+Y,domId:X(l,G,P),type:"group",isGroup:!0,padding:16,look:o,position:e.note.position};G++,R.id=L,k.parentId=L,J(i,R,s),J(i,k,s),J(i,x,s);var z=l,$=k.id;"left of"===e.note.position&&(z=k.id,$=l),n.push({id:z+"-"+$,start:z,end:$,arrowhead:"none",arrowTypeEnd:"",style:D,labelStyle:"",classes:O,arrowheadStyle:E,labelpos:"c",labelType:T,thickness:w,look:o})}else J(i,x,s)}e.doc&&(y.Rm.trace("Adding nodes children "),Z(e,e.doc,r,i,n,!a,o,s))},"dataFetcher"),it=(0,y.K2)(function(){V.clear(),G=0},"reset"),nt="[*]",at="start",ot="[*]",st="end",lt="color",ct="fill",ut="bgFill",ht=",",dt=(0,y.K2)(function(){return new Map},"newClassesList"),pt=(0,y.K2)(function(){return{relations:[],states:new Map,documents:{}}},"newDoc"),gt=(0,y.K2)(function(t){return JSON.parse(JSON.stringify(t))},"clone"),ft=(i=function(){return(0,o.A)(function t(e){(0,a.A)(this,t),this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=dt(),this.documents={root:pt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=f.iN,this.setAccTitle=f.SV,this.getAccDescription=f.m7,this.setAccDescription=f.EI,this.setDiagramTitle=f.ke,this.getDiagramTitle=f.ab,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)},[{key:"extract",value:function(t){this.clear(!0);var e,r=(0,u.A)(Array.isArray(t)?t:t.doc);try{for(r.s();!(e=r.n()).done;){var i=e.value;switch(i.stmt){case x:this.addState(i.id.trim(),i.type,i.doc,i.description,i.note);break;case k:this.addRelation(i.state1,i.state2,i.description);break;case"classDef":this.addStyleClass(i.id.trim(),i.classes);break;case"style":this.handleStyleDef(i);break;case"applyClass":this.setCssClass(i.id.trim(),i.styleClass);break;case"click":this.addLink(i.id,i.url,i.tooltip)}}}catch(t){r.e(t)}finally{r.f()}var n=this.getStates(),a=(0,f.D7)();it(),rt(void 0,this.getRootDocV2(),n,this.nodes,this.edges,!0,a.look,this.classes);var o,s=(0,u.A)(this.nodes);try{for(s.s();!(o=s.n()).done;){var l=o.value;if(Array.isArray(l.label)){if(l.description=l.label.slice(1),l.isGroup&&l.description.length>0)throw new Error("Group nodes can only have label. Remove the additional description for node [".concat(l.id,"]"));l.label=l.label[0]}}}catch(t){s.e(t)}finally{s.f()}}},{key:"handleStyleDef",value:function(t){var e,r=t.id.trim().split(","),i=t.styleClass.split(","),n=(0,u.A)(r);try{for(n.s();!(e=n.n()).done;){var a=e.value,o=this.getState(a);if(!o){var s=a.trim();this.addState(s),o=this.getState(s)}o&&(o.styles=i.map(function(t){var e;return null===(e=t.replace(/;/g,""))||void 0===e?void 0:e.trim()}))}}catch(t){n.e(t)}finally{n.f()}}},{key:"setRootDoc",value:function(t){y.Rm.info("Setting root doc",t),this.rootDoc=t,1===this.version?this.extract(t):this.extract(this.getRootDocV2())}},{key:"docTranslator",value:function(t,e,r){var i=this;if(e.stmt===k)return this.docTranslator(t,e.state1,!0),void this.docTranslator(t,e.state2,!1);if(e.stmt===x&&(e.id===nt?(e.id=t.id+(r?"_start":"_end"),e.start=r):e.id=e.id.trim()),(e.stmt===b||e.stmt===x)&&e.doc){var n,a=[],o=[],s=(0,u.A)(e.doc);try{for(s.s();!(n=s.n()).done;){var l=n.value;if(l.type===A){var c=gt(l);c.doc=gt(o),a.push(c),o=[]}else o.push(l)}}catch(t){s.e(t)}finally{s.f()}if(a.length>0&&o.length>0){var h={stmt:x,id:(0,g.$C)(),type:"divider",doc:gt(o)};a.push(gt(h)),e.doc=a}e.doc.forEach(function(t){return i.docTranslator(e,t,!0)})}}},{key:"getRootDocV2",value:function(){return this.docTranslator({id:b,stmt:b},{id:b,stmt:b,doc:this.rootDoc},!0),{id:b,doc:this.rootDoc}}},{key:"addState",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:void 0,c=null==t?void 0:t.trim();if(this.currentDocument.states.has(c)){var u=this.currentDocument.states.get(c);if(!u)throw new Error("State not found: ".concat(c));u.doc||(u.doc=i),u.type||(u.type=r)}else y.Rm.info("Adding state ",c,n),this.currentDocument.states.set(c,{stmt:x,id:c,descriptions:[],type:r,doc:i,note:a,classes:[],styles:[],textStyles:[]});n&&(y.Rm.info("Setting state description",c,n),(Array.isArray(n)?n:[n]).forEach(function(t){return e.addDescription(c,t.trim())}));if(a){var h=this.currentDocument.states.get(c);if(!h)throw new Error("State not found: ".concat(c));h.note=a,h.note.text=f.Y2.sanitizeText(h.note.text,(0,f.D7)())}o&&(y.Rm.info("Setting state classes",c,o),(Array.isArray(o)?o:[o]).forEach(function(t){return e.setCssClass(c,t.trim())}));s&&(y.Rm.info("Setting state styles",c,s),(Array.isArray(s)?s:[s]).forEach(function(t){return e.setStyle(c,t.trim())}));l&&(y.Rm.info("Setting state styles",c,s),(Array.isArray(l)?l:[l]).forEach(function(t){return e.setTextStyle(c,t.trim())}))}},{key:"clear",value:function(t){this.nodes=[],this.edges=[],this.documents={root:pt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=dt(),t||(this.links=new Map,(0,f.IU)())}},{key:"getState",value:function(t){return this.currentDocument.states.get(t)}},{key:"getStates",value:function(){return this.currentDocument.states}},{key:"logDocuments",value:function(){y.Rm.info("Documents = ",this.documents)}},{key:"getRelations",value:function(){return this.currentDocument.relations}},{key:"addLink",value:function(t,e,r){this.links.set(t,{url:e,tooltip:r}),y.Rm.warn("Adding link",t,e,r)}},{key:"getLinks",value:function(){return this.links}},{key:"startIdIfNeeded",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t===nt?(this.startEndCount++,"".concat(at).concat(this.startEndCount)):t}},{key:"startTypeIfNeeded",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")===nt?at:arguments.length>1&&void 0!==arguments[1]?arguments[1]:C}},{key:"endIdIfNeeded",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t===ot?(this.startEndCount++,"".concat(st).concat(this.startEndCount)):t}},{key:"endTypeIfNeeded",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")===ot?st:arguments.length>1&&void 0!==arguments[1]?arguments[1]:C}},{key:"addRelationObjs",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=this.startIdIfNeeded(t.id.trim()),n=this.startTypeIfNeeded(t.id.trim(),t.type),a=this.startIdIfNeeded(e.id.trim()),o=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(i,n,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(a,o,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:i,id2:a,relationTitle:f.Y2.sanitizeText(r,(0,f.D7)())})}},{key:"addRelation",value:function(t,e,r){if("object"===(0,n.A)(t)&&"object"===(0,n.A)(e))this.addRelationObjs(t,e,r);else if("string"==typeof t&&"string"==typeof e){var i=this.startIdIfNeeded(t.trim()),a=this.startTypeIfNeeded(t),o=this.endIdIfNeeded(e.trim()),s=this.endTypeIfNeeded(e);this.addState(i,a),this.addState(o,s),this.currentDocument.relations.push({id1:i,id2:o,relationTitle:r?f.Y2.sanitizeText(r,(0,f.D7)()):void 0})}}},{key:"addDescription",value:function(t,e){var r,i=this.currentDocument.states.get(t),n=e.startsWith(":")?e.replace(":","").trim():e;null==i||null===(r=i.descriptions)||void 0===r||r.push(f.Y2.sanitizeText(n,(0,f.D7)()))}},{key:"cleanupLabel",value:function(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}},{key:"getDividerId",value:function(){return this.dividerCnt++,"divider-id-".concat(this.dividerCnt)}},{key:"addStyleClass",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});var r=this.classes.get(t);e&&r&&e.split(ht).forEach(function(t){var e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(lt).exec(t)){var i=e.replace(ct,ut).replace(lt,ct);r.textStyles.push(i)}r.styles.push(e)})}},{key:"getClasses",value:function(){return this.classes}},{key:"setCssClass",value:function(t,e){var r=this;t.split(",").forEach(function(t){var i,n,a=r.getState(t);if(!a){var o=t.trim();r.addState(o),a=r.getState(o)}null===(i=a)||void 0===i||null===(n=i.classes)||void 0===n||n.push(e)})}},{key:"setStyle",value:function(t,e){var r,i;null===(r=this.getState(t))||void 0===r||null===(i=r.styles)||void 0===i||i.push(e)}},{key:"setTextStyle",value:function(t,e){var r,i;null===(r=this.getState(t))||void 0===r||null===(i=r.textStyles)||void 0===i||i.push(e)}},{key:"getDirectionStatement",value:function(){return this.rootDoc.find(function(t){return"dir"===t.stmt})}},{key:"getDirection",value:function(){var t,e;return null!==(t=null===(e=this.getDirectionStatement())||void 0===e?void 0:e.value)&&void 0!==t?t:"TB"}},{key:"setDirection",value:function(t){var e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}},{key:"trimColon",value:function(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}},{key:"getData",value:function(){var t=(0,f.D7)();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:$(this.getRootDocV2())}}},{key:"getConfig",value:function(){return(0,f.D7)().state}}])}(),(0,y.K2)(i,"StateDB"),i.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},i),yt=(0,y.K2)(function(t){var e;return'\ndefs [id$="-barbEnd"] {\n    fill: '.concat(t.transitionColor,";\n    stroke: ").concat(t.transitionColor,";\n  }\ng.stateGroup text {\n  fill: ").concat(t.nodeBorder,";\n  stroke: none;\n  font-size: 10px;\n}\ng.stateGroup text {\n  fill: ").concat(t.textColor,";\n  stroke: none;\n  font-size: 10px;\n\n}\ng.stateGroup .state-title {\n  font-weight: bolder;\n  fill: ").concat(t.stateLabelColor,";\n}\n\ng.stateGroup rect {\n  fill: ").concat(t.mainBkg,";\n  stroke: ").concat(t.nodeBorder,";\n}\n\ng.stateGroup line {\n  stroke: ").concat(t.lineColor,";\n  stroke-width: ").concat(t.strokeWidth||1,";\n}\n\n.transition {\n  stroke: ").concat(t.transitionColor,";\n  stroke-width: ").concat(t.strokeWidth||1,";\n  fill: none;\n}\n\n.stateGroup .composit {\n  fill: ").concat(t.background,";\n  border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n  fill: #e0e0e0;\n  border-bottom: 1px\n}\n\n.state-note {\n  stroke: ").concat(t.noteBorderColor,";\n  fill: ").concat(t.noteBkgColor,";\n\n  text {\n    fill: ").concat(t.noteTextColor,";\n    stroke: none;\n    font-size: 10px;\n  }\n}\n\n.stateLabel .box {\n  stroke: none;\n  stroke-width: 0;\n  fill: ").concat(t.mainBkg,";\n  opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n  fill: ").concat(t.labelBackgroundColor,";\n  opacity: 0.5;\n}\n.edgeLabel {\n  background-color: ").concat(t.edgeLabelBackground,";\n  p {\n    background-color: ").concat(t.edgeLabelBackground,";\n  }\n  rect {\n    opacity: 0.5;\n    background-color: ").concat(t.edgeLabelBackground,";\n    fill: ").concat(t.edgeLabelBackground,";\n  }\n  text-align: center;\n}\n.edgeLabel .label text {\n  fill: ").concat(t.transitionLabelColor||t.tertiaryTextColor,";\n}\n.label div .edgeLabel {\n  color: ").concat(t.transitionLabelColor||t.tertiaryTextColor,";\n}\n\n.stateLabel text {\n  fill: ").concat(t.stateLabelColor,";\n  font-size: 10px;\n  font-weight: bold;\n}\n\n.node circle.state-start {\n  fill: ").concat(t.specialStateColor,";\n  stroke: ").concat(t.specialStateColor,";\n}\n\n.node .fork-join {\n  fill: ").concat(t.specialStateColor,";\n  stroke: ").concat(t.specialStateColor,";\n}\n\n.node circle.state-end {\n  fill: ").concat(t.innerEndBackground,";\n  stroke: ").concat(t.background,";\n  stroke-width: 1.5\n}\n.end-state-inner {\n  fill: ").concat(t.compositeBackground||t.background,";\n  // stroke: ").concat(t.background,";\n  stroke-width: 1.5\n}\n\n.node rect {\n  fill: ").concat(t.stateBkg||t.mainBkg,";\n  stroke: ").concat(t.stateBorder||t.nodeBorder,";\n  stroke-width: ").concat(t.strokeWidth||1,"px;\n}\n.node polygon {\n  fill: ").concat(t.mainBkg,";\n  stroke: ").concat(t.stateBorder||t.nodeBorder,";;\n  stroke-width: ").concat(t.strokeWidth||1,'px;\n}\n[id$="-barbEnd"] {\n  fill: ').concat(t.lineColor,";\n}\n\n.statediagram-cluster rect {\n  fill: ").concat(t.compositeTitleBackground,";\n  stroke: ").concat(t.stateBorder||t.nodeBorder,";\n  stroke-width: ").concat(t.strokeWidth||1,"px;\n}\n\n.cluster-label, .nodeLabel {\n  color: ").concat(t.stateLabelColor,";\n  // line-height: 1;\n}\n\n.statediagram-cluster rect.outer {\n  rx: 5px;\n  ry: 5px;\n}\n.statediagram-state .divider {\n  stroke: ").concat(t.stateBorder||t.nodeBorder,";\n}\n\n.statediagram-state .title-state {\n  rx: 5px;\n  ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n  fill: ").concat(t.compositeBackground||t.background,";\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n  fill: ").concat(t.altBackground?t.altBackground:"#efefef",";\n}\n\n.statediagram-cluster .inner {\n  rx:0;\n  ry:0;\n}\n\n.statediagram-state rect.basic {\n  rx: 5px;\n  ry: 5px;\n}\n.statediagram-state rect.divider {\n  stroke-dasharray: 10,10;\n  fill: ").concat(t.altBackground?t.altBackground:"#efefef",";\n}\n\n.note-edge {\n  stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n  fill: ").concat(t.noteBkgColor,";\n  stroke: ").concat(t.noteBorderColor,";\n  stroke-width: 1px;\n  rx: 0;\n  ry: 0;\n}\n.statediagram-note rect {\n  fill: ").concat(t.noteBkgColor,";\n  stroke: ").concat(t.noteBorderColor,";\n  stroke-width: 1px;\n  rx: 0;\n  ry: 0;\n}\n\n.statediagram-note text {\n  fill: ").concat(t.noteTextColor,";\n}\n\n.statediagram-note .nodeLabel {\n  color: ").concat(t.noteTextColor,";\n}\n.statediagram .edgeLabel {\n  color: red; // ").concat(t.noteTextColor,';\n}\n\n[id$="-dependencyStart"], [id$="-dependencyEnd"] {\n  fill: ').concat(t.lineColor,";\n  stroke: ").concat(t.lineColor,";\n  stroke-width: ").concat(t.strokeWidth||1,";\n}\n\n.statediagramTitleText {\n  text-anchor: middle;\n  font-size: 18px;\n  fill: ").concat(t.textColor,';\n}\n\n[data-look="neo"].statediagram-cluster rect {\n  fill: ').concat(t.mainBkg,";\n  stroke: ").concat(t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder,";\n  stroke-width: ").concat(null!==(e=t.strokeWidth)&&void 0!==e?e:1,';\n}\n[data-look="neo"].statediagram-cluster rect.outer {\n  rx: ').concat(t.radius,"px;\n  ry: ").concat(t.radius,"px;\n  filter: ").concat(t.dropShadow?t.dropShadow.replace("url(#drop-shadow)","url(".concat(t.svgId,"-drop-shadow)")):"none","\n}\n")},"getStyles")},607:function(t,e,r){"use strict";r.d(e,{Nq:function(){return o},RI:function(){return c},Wg:function(){return n},hq:function(){return a}});var i=r(68548),n=(0,i.K2)(function(t,e){var r,i;if(e)return"translate("+-t.width/2+", "+-t.height/2+")";var n=null!==(r=t.x)&&void 0!==r?r:0,a=null!==(i=t.y)&&void 0!==i?i:0;return"translate("+-(n+t.width/2)+", "+-(a+t.height/2)+")"},"computeLabelTransform"),a={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},o={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function s(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=l(t),e=l(e);var r=[t.x,t.y],i=r[0],n=r[1],a=[e.x,e.y],o=a[0]-i,s=a[1]-n;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}(0,i.K2)(s,"calculateDeltaAndAngle");var l=(0,i.K2)(function(t){return Array.isArray(t)?{x:t[0],y:t[1]}:t},"pointTransformer"),c=(0,i.K2)(function(t){return{x:(0,i.K2)(function(e,r,i){var n=0,o=l(i[0]).x<l(i[i.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){var c=s(i[0],i[1]),u=c.angle,h=c.deltaX;n=a[t.arrowTypeStart]*Math.cos(u)*(h>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){var d=s(i[i.length-1],i[i.length-2]),p=d.angle,g=d.deltaX;n=a[t.arrowTypeEnd]*Math.cos(p)*(g>=0?1:-1)}var f=Math.abs(l(e).x-l(i[i.length-1]).x),y=Math.abs(l(e).y-l(i[i.length-1]).y),m=Math.abs(l(e).x-l(i[0]).x),v=Math.abs(l(e).y-l(i[0]).y),x=a[t.arrowTypeStart],b=a[t.arrowTypeEnd];if(f<b&&f>0&&y<b){var k=b+1-f;n-=k*="right"===o?-1:1}if(m<x&&m>0&&v<x){var C=x+1-m;n+=C*="right"===o?-1:1}return l(e).x+n},"x"),y:(0,i.K2)(function(e,r,i){var n=0,o=l(i[0]).y<l(i[i.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){var c=s(i[0],i[1]),u=c.angle,h=c.deltaY;n=a[t.arrowTypeStart]*Math.abs(Math.sin(u))*(h>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){var d=s(i[i.length-1],i[i.length-2]),p=d.angle,g=d.deltaY;n=a[t.arrowTypeEnd]*Math.abs(Math.sin(p))*(g>=0?1:-1)}var f=Math.abs(l(e).y-l(i[i.length-1]).y),y=Math.abs(l(e).x-l(i[i.length-1]).x),m=Math.abs(l(e).y-l(i[0]).y),v=Math.abs(l(e).x-l(i[0]).x),x=a[t.arrowTypeStart],b=a[t.arrowTypeEnd];if(f<b&&f>0&&y<b){var k=b+1-f;n-=k*="up"===o?-1:1}if(m<x&&m>0&&v<x){var C=x+1-m;n+=C*="up"===o?-1:1}return l(e).y+n},"y")}},"getLineFunctionsWithOffset")},40985:function(t,e,r){"use strict";r.d(e,{$i:function(){return Dt},B6:function(){return Rt},C0:function(){return q},Ch:function(){return W},D7:function(){return We},DB:function(){return K},Df:function(){return Et},Dl:function(){return fe},E:function(){return Ut},EI:function(){return Me},EJ:function(){return N},Gs:function(){return Xe},H$:function(){return vt},H1:function(){return Ht},ID:function(){return ae},IU:function(){return Ie},J$:function(){return j},Js:function(){return Ge},KG:function(){return De},ME:function(){return $e},Nk:function(){return Mt},P$:function(){return rt},Q2:function(){return Ot},QO:function(){return le},SV:function(){return Re},TM:function(){return jt},UI:function(){return At},UU:function(){return Lt},Wi:function(){return ge},Wt:function(){return Se},XV:function(){return Ye},Xd:function(){return Y},Y2:function(){return ve},_3:function(){return wt},a$:function(){return ke},ab:function(){return Pe},cL:function(){return qt},dj:function(){return me},hH:function(){return H},iN:function(){return Oe},jZ:function(){return Jt},ke:function(){return Ke},m7:function(){return Ne},mW:function(){return z},mj:function(){return Ue},oB:function(){return je},ot:function(){return Ce},sb:function(){return Tt},tM:function(){return we},wZ:function(){return It},xA:function(){return Pt},zj:function(){return Nt}});var i,n,a,o,s,l,c,u,h,d,p,g,f,y,m=r(20908),v=r(30388),x=r(3604),b=r(74721),k=r(41034),C=r(54119),A=r(81587),D=r(69492),E=r(25026),T=r(25647),w=r(28578),S=r(84056),F=(r(74423),r(68548)),_=r(84872),B=r(89090),L=r(38602),I=r(99814),R=r(65497),O=r(90735),M=r(18353),N=/^-{3}\s*[\n\r]([^]*?)[\n\r]-{3}\s*[\n\r]+/,K=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,P=/\s*%%.*\n/gm,q=(i=function(t){function e(t){var r;return(0,E.A)(this,e),(r=(0,T.A)(this,e,[t])).name="UnknownDiagramError",r}return(0,w.A)(e,t),(0,D.A)(e)}((0,S.A)(Error)),(0,F.K2)(i,"UnknownDiagramError"),i),z={},W=(0,F.K2)(function(t,e){t=t.replace(N,"").replace(K,"").replace(P,"\n");for(var r=0,i=Object.entries(z);r<i.length;r++){var n=(0,A.A)(i[r],2),a=n[0];if((0,n[1].detector)(t,e))return a}throw new q("No diagram type detected matching given configuration for text: ".concat(t))},"detectType"),Y=(0,F.K2)(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i=0,n=e;i<n.length;i++){var a=n[i],o=a.id,s=a.detector,l=a.loader;$(o,s,l)}},"registerLazyLoadedDiagrams"),$=(0,F.K2)(function(t,e,r){z[t]&&F.Rm.warn("Detector with key ".concat(t," already exists. Overwriting.")),z[t]={detector:e,loader:r},F.Rm.debug("Detector with key ".concat(t," added").concat(r?" with loader":""))},"addDetector"),j=(0,F.K2)(function(t){return z[t].loader},"getDiagramLoader"),U=(0,F.K2)(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.depth,n=void 0===i?2:i,a=r.clobber,o=void 0!==a&&a,s={depth:n,clobber:o};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(function(e){return U(t,e,s)}),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(function(e){t.includes(e)||t.push(e)}),t):void 0===t||n<=0?null!=t&&"object"===(0,C.A)(t)&&"object"===(0,C.A)(e)?Object.assign(t,e):e:(void 0!==e&&"object"===(0,C.A)(t)&&"object"===(0,C.A)(e)&&Object.keys(e).forEach(function(r){"object"!==(0,C.A)(e[r])||null===e[r]||void 0!==t[r]&&"object"!==(0,C.A)(t[r])?(o||"object"!==(0,C.A)(t[r])&&"object"!==(0,C.A)(e[r]))&&(t[r]=e[r]):(void 0===t[r]&&(t[r]=Array.isArray(e[r])?[]:{}),t[r]=U(t[r],e[r],{depth:n-1,clobber:o}))}),t)},"assignWithDepth"),H=U,V="#ffffff",G="#f2f2f2",X=(0,F.K2)(function(t,e){return e?(0,I.A)(t,{s:-40,l:10}):(0,I.A)(t,{s:-40,l:-10})},"mkBorder"),Z=(n=function(){return(0,D.A)(function t(){(0,E.A)(this,t),this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"},[{key:"updateColors",value:function(){var t,e,r,i,n,a,o,s,l,c,u,h,d,p,g,f,y,m,v,x,b,k,C,A,D,E,T,w,S,F,O,M,N,K,P,q,z,W,Y,$,j,U,H,Z;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||(0,I.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,I.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||X(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||X(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||X(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,R.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,R.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,R.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,R.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,L.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,R.A)(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,B.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||(0,L.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,L.A)(this.mainBkg,10)):(this.rowOdd=this.rowOdd||(0,B.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,B.A)(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,I.A)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,I.A)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,I.A)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,I.A)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,I.A)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,I.A)(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||(0,I.A)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,I.A)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,I.A)(this.primaryColor,{h:330}),this.darkMode)for(var Q=0;Q<this.THEME_COLOR_LIMIT;Q++)this["cScale"+Q]=(0,L.A)(this["cScale"+Q],75);else for(var J=0;J<this.THEME_COLOR_LIMIT;J++)this["cScale"+J]=(0,L.A)(this["cScale"+J],25);for(var tt=0;tt<this.THEME_COLOR_LIMIT;tt++)this["cScaleInv"+tt]=this["cScaleInv"+tt]||(0,R.A)(this["cScale"+tt]);for(var et=0;et<this.THEME_COLOR_LIMIT;et++)this.darkMode?this["cScalePeer"+et]=this["cScalePeer"+et]||(0,B.A)(this["cScale"+et],10):this["cScalePeer"+et]=this["cScalePeer"+et]||(0,L.A)(this["cScale"+et],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(var rt=0;rt<this.THEME_COLOR_LIMIT;rt++)this["cScaleLabel"+rt]=this["cScaleLabel"+rt]||this.scaleLabelColor;for(var it=this.darkMode?-4:-1,nt=0;nt<5;nt++)this["surface"+nt]=this["surface"+nt]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:it*(5+3*nt)}),this["surfacePeer"+nt]=this["surfacePeer"+nt]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:it*(8+3*nt)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||(0,I.A)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,I.A)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,I.A)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,I.A)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,I.A)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,I.A)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,I.A)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,I.A)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,I.A)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,I.A)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,I.A)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,I.A)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,I.A)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,I.A)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,I.A)(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=null!==(t=this.venn1)&&void 0!==t?t:(0,I.A)(this.primaryColor,{l:-30}),this.venn2=null!==(e=this.venn2)&&void 0!==e?e:(0,I.A)(this.secondaryColor,{l:-30}),this.venn3=null!==(r=this.venn3)&&void 0!==r?r:(0,I.A)(this.tertiaryColor,{l:-30}),this.venn4=null!==(i=this.venn4)&&void 0!==i?i:(0,I.A)(this.primaryColor,{h:60,l:-30}),this.venn5=null!==(n=this.venn5)&&void 0!==n?n:(0,I.A)(this.primaryColor,{h:-60,l:-30}),this.venn6=null!==(a=this.venn6)&&void 0!==a?a:(0,I.A)(this.secondaryColor,{h:60,l:-30}),this.venn7=null!==(o=this.venn7)&&void 0!==o?o:(0,I.A)(this.primaryColor,{h:120,l:-30}),this.venn8=null!==(s=this.venn8)&&void 0!==s?s:(0,I.A)(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=null!==(l=this.vennTitleTextColor)&&void 0!==l?l:this.titleColor,this.vennSetTextColor=null!==(c=this.vennSetTextColor)&&void 0!==c?c:this.textColor,this.radar={axisColor:(null===(u=this.radar)||void 0===u?void 0:u.axisColor)||this.lineColor,axisStrokeWidth:(null===(h=this.radar)||void 0===h?void 0:h.axisStrokeWidth)||2,axisLabelFontSize:(null===(d=this.radar)||void 0===d?void 0:d.axisLabelFontSize)||12,curveOpacity:(null===(p=this.radar)||void 0===p?void 0:p.curveOpacity)||.5,curveStrokeWidth:(null===(g=this.radar)||void 0===g?void 0:g.curveStrokeWidth)||2,graticuleColor:(null===(f=this.radar)||void 0===f?void 0:f.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null===(y=this.radar)||void 0===y?void 0:y.graticuleStrokeWidth)||1,graticuleOpacity:(null===(m=this.radar)||void 0===m?void 0:m.graticuleOpacity)||.3,legendBoxSize:(null===(v=this.radar)||void 0===v?void 0:v.legendBoxSize)||12,legendFontSize:(null===(x=this.radar)||void 0===x?void 0:x.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:(null===(b=this.wardley)||void 0===b?void 0:b.backgroundColor)||this.background,axisColor:(null===(k=this.wardley)||void 0===k?void 0:k.axisColor)||this.lineColor,axisTextColor:(null===(C=this.wardley)||void 0===C?void 0:C.axisTextColor)||this.primaryTextColor,gridColor:(null===(A=this.wardley)||void 0===A?void 0:A.gridColor)||this.gridColor,componentFill:(null===(D=this.wardley)||void 0===D?void 0:D.componentFill)||this.background,componentStroke:(null===(E=this.wardley)||void 0===E?void 0:E.componentStroke)||this.lineColor,componentLabelColor:(null===(T=this.wardley)||void 0===T?void 0:T.componentLabelColor)||this.primaryTextColor,linkStroke:(null===(w=this.wardley)||void 0===w?void 0:w.linkStroke)||this.lineColor,evolutionStroke:(null===(S=this.wardley)||void 0===S?void 0:S.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:(null===(F=this.wardley)||void 0===F?void 0:F.annotationStroke)||this.lineColor,annotationTextColor:(null===(O=this.wardley)||void 0===O?void 0:O.annotationTextColor)||this.primaryTextColor,annotationFill:(null===(M=this.wardley)||void 0===M?void 0:M.annotationFill)||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||(0,I.A)(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,I.A)(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,I.A)(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,I.A)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,I.A)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,I.A)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,B.A)(this.quadrant1Fill):(0,L.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null===(N=this.xyChart)||void 0===N?void 0:N.backgroundColor)||this.background,titleColor:(null===(K=this.xyChart)||void 0===K?void 0:K.titleColor)||this.primaryTextColor,dataLabelColor:(null===(P=this.xyChart)||void 0===P?void 0:P.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:(null===(q=this.xyChart)||void 0===q?void 0:q.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null===(z=this.xyChart)||void 0===z?void 0:z.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null===(W=this.xyChart)||void 0===W?void 0:W.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null===(Y=this.xyChart)||void 0===Y?void 0:Y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null===($=this.xyChart)||void 0===$?void 0:$.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null===(j=this.xyChart)||void 0===j?void 0:j.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null===(U=this.xyChart)||void 0===U?void 0:U.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null===(H=this.xyChart)||void 0===H?void 0:H.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null===(Z=this.xyChart)||void 0===Z?void 0:Z.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||(0,I.A)(this.primaryColor,{h:-30}),this.git4=this.git4||(0,I.A)(this.primaryColor,{h:-60}),this.git5=this.git5||(0,I.A)(this.primaryColor,{h:-90}),this.git6=this.git6||(0,I.A)(this.primaryColor,{h:60}),this.git7=this.git7||(0,I.A)(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,B.A)(this.git0,25),this.git1=(0,B.A)(this.git1,25),this.git2=(0,B.A)(this.git2,25),this.git3=(0,B.A)(this.git3,25),this.git4=(0,B.A)(this.git4,25),this.git5=(0,B.A)(this.git5,25),this.git6=(0,B.A)(this.git6,25),this.git7=(0,B.A)(this.git7,25)):(this.git0=(0,L.A)(this.git0,25),this.git1=(0,L.A)(this.git1,25),this.git2=(0,L.A)(this.git2,25),this.git3=(0,L.A)(this.git3,25),this.git4=(0,L.A)(this.git4,25),this.git5=(0,L.A)(this.git5,25),this.git6=(0,L.A)(this.git6,25),this.git7=(0,L.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,R.A)(this.git0),this.gitInv1=this.gitInv1||(0,R.A)(this.git1),this.gitInv2=this.gitInv2||(0,R.A)(this.git2),this.gitInv3=this.gitInv3||(0,R.A)(this.git3),this.gitInv4=this.gitInv4||(0,R.A)(this.git4),this.gitInv5=this.gitInv5||(0,R.A)(this.git5),this.gitInv6=this.gitInv6||(0,R.A)(this.git6),this.gitInv7=this.gitInv7||(0,R.A)(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||V,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||G,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}},{key:"calculate",value:function(t){var e=this;if("object"===(0,C.A)(t)){var r=Object.keys(t);r.forEach(function(r){e[r]=t[r]}),this.updateColors(),r.forEach(function(r){e[r]=t[r]})}else this.updateColors()}}])}(),(0,F.K2)(n,"Theme"),n),Q=(0,F.K2)(function(t){var e=new Z;return e.calculate(t),e},"getThemeVariables"),J=(a=function(){return(0,D.A)(function t(){(0,E.A)(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,B.A)(this.primaryColor,16),this.tertiaryColor=(0,I.A)(this.primaryColor,{h:-160}),this.primaryBorderColor=(0,R.A)(this.background),this.secondaryBorderColor=X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=X(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,R.A)(this.primaryColor),this.secondaryTextColor=(0,R.A)(this.secondaryColor),this.tertiaryTextColor=(0,R.A)(this.tertiaryColor),this.lineColor=(0,R.A)(this.background),this.textColor=(0,R.A)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,B.A)((0,R.A)("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=(0,O.A)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=(0,L.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,L.A)(this.sectionBkgColor,10),this.taskBorderColor=(0,O.A)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,O.A)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||(0,B.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,L.A)(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"},[{key:"updateColors",value:function(){var t,e,r,i,n,a,o,s,l,c,u,h,d,p,g,f,y,m,v,x,b,k,C,A,D,E,T,w,S,F,O,M,N,K,P,q;this.secondBkg=(0,B.A)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,B.A)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,B.A)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=(0,R.A)(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,I.A)(this.primaryColor,{h:64}),this.fillType3=(0,I.A)(this.secondaryColor,{h:64}),this.fillType4=(0,I.A)(this.primaryColor,{h:-64}),this.fillType5=(0,I.A)(this.secondaryColor,{h:-64}),this.fillType6=(0,I.A)(this.primaryColor,{h:128}),this.fillType7=(0,I.A)(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,I.A)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,I.A)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,I.A)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,I.A)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,I.A)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,I.A)(this.primaryColor,{h:210}),this.cScale9=this.cScale9||(0,I.A)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,I.A)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,I.A)(this.primaryColor,{h:330});for(var z=0;z<this.THEME_COLOR_LIMIT;z++)this["cScaleInv"+z]=this["cScaleInv"+z]||(0,R.A)(this["cScale"+z]);for(var W=0;W<this.THEME_COLOR_LIMIT;W++)this["cScalePeer"+W]=this["cScalePeer"+W]||(0,B.A)(this["cScale"+W],10);for(var Y=0;Y<5;Y++)this["surface"+Y]=this["surface"+Y]||(0,I.A)(this.mainBkg,{h:30,s:-30,l:-(4*Y-10)}),this["surfacePeer"+Y]=this["surfacePeer"+Y]||(0,I.A)(this.mainBkg,{h:30,s:-30,l:-(4*Y-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(var $=0;$<this.THEME_COLOR_LIMIT;$++)this["cScaleLabel"+$]=this["cScaleLabel"+$]||this.scaleLabelColor;for(var j=0;j<this.THEME_COLOR_LIMIT;j++)this["pie"+j]=this["cScale"+j];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(var U=0;U<8;U++){var H;this["venn"+(U+1)]=null!==(H=this["venn"+(U+1)])&&void 0!==H?H:(0,B.A)(this["cScale"+U],30)}this.vennTitleTextColor=null!==(t=this.vennTitleTextColor)&&void 0!==t?t:this.titleColor,this.vennSetTextColor=null!==(e=this.vennSetTextColor)&&void 0!==e?e:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||(0,I.A)(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,I.A)(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,I.A)(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,I.A)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,I.A)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,I.A)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,B.A)(this.quadrant1Fill):(0,L.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null===(r=this.xyChart)||void 0===r?void 0:r.backgroundColor)||this.background,titleColor:(null===(i=this.xyChart)||void 0===i?void 0:i.titleColor)||this.primaryTextColor,dataLabelColor:(null===(n=this.xyChart)||void 0===n?void 0:n.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:(null===(a=this.xyChart)||void 0===a?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null===(o=this.xyChart)||void 0===o?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null===(s=this.xyChart)||void 0===s?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null===(l=this.xyChart)||void 0===l?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null===(c=this.xyChart)||void 0===c?void 0:c.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null===(u=this.xyChart)||void 0===u?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null===(h=this.xyChart)||void 0===h?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null===(d=this.xyChart)||void 0===d?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null===(p=this.xyChart)||void 0===p?void 0:p.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:(null===(g=this.radar)||void 0===g?void 0:g.axisColor)||this.lineColor,axisStrokeWidth:(null===(f=this.radar)||void 0===f?void 0:f.axisStrokeWidth)||2,axisLabelFontSize:(null===(y=this.radar)||void 0===y?void 0:y.axisLabelFontSize)||12,curveOpacity:(null===(m=this.radar)||void 0===m?void 0:m.curveOpacity)||.5,curveStrokeWidth:(null===(v=this.radar)||void 0===v?void 0:v.curveStrokeWidth)||2,graticuleColor:(null===(x=this.radar)||void 0===x?void 0:x.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null===(b=this.radar)||void 0===b?void 0:b.graticuleStrokeWidth)||1,graticuleOpacity:(null===(k=this.radar)||void 0===k?void 0:k.graticuleOpacity)||.3,legendBoxSize:(null===(C=this.radar)||void 0===C?void 0:C.legendBoxSize)||12,legendFontSize:(null===(A=this.radar)||void 0===A?void 0:A.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:(null===(D=this.wardley)||void 0===D?void 0:D.backgroundColor)||this.background,axisColor:(null===(E=this.wardley)||void 0===E?void 0:E.axisColor)||this.lineColor,axisTextColor:(null===(T=this.wardley)||void 0===T?void 0:T.axisTextColor)||this.primaryTextColor,gridColor:(null===(w=this.wardley)||void 0===w?void 0:w.gridColor)||this.gridColor,componentFill:(null===(S=this.wardley)||void 0===S?void 0:S.componentFill)||this.mainBkg,componentStroke:(null===(F=this.wardley)||void 0===F?void 0:F.componentStroke)||this.lineColor,componentLabelColor:(null===(O=this.wardley)||void 0===O?void 0:O.componentLabelColor)||this.primaryTextColor,linkStroke:(null===(M=this.wardley)||void 0===M?void 0:M.linkStroke)||this.lineColor,evolutionStroke:(null===(N=this.wardley)||void 0===N?void 0:N.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:(null===(K=this.wardley)||void 0===K?void 0:K.annotationStroke)||this.lineColor,annotationTextColor:(null===(P=this.wardley)||void 0===P?void 0:P.annotationTextColor)||this.primaryTextColor,annotationFill:(null===(q=this.wardley)||void 0===q?void 0:q.annotationFill)||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,B.A)(this.secondaryColor,20),this.git1=(0,B.A)(this.pie2||this.secondaryColor,20),this.git2=(0,B.A)(this.pie3||this.tertiaryColor,20),this.git3=(0,B.A)(this.pie4||(0,I.A)(this.primaryColor,{h:-30}),20),this.git4=(0,B.A)(this.pie5||(0,I.A)(this.primaryColor,{h:-60}),20),this.git5=(0,B.A)(this.pie6||(0,I.A)(this.primaryColor,{h:-90}),10),this.git6=(0,B.A)(this.pie7||(0,I.A)(this.primaryColor,{h:60}),10),this.git7=(0,B.A)(this.pie8||(0,I.A)(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||(0,R.A)(this.git0),this.gitInv1=this.gitInv1||(0,R.A)(this.git1),this.gitInv2=this.gitInv2||(0,R.A)(this.git2),this.gitInv3=this.gitInv3||(0,R.A)(this.git3),this.gitInv4=this.gitInv4||(0,R.A)(this.git4),this.gitInv5=this.gitInv5||(0,R.A)(this.git5),this.gitInv6=this.gitInv6||(0,R.A)(this.git6),this.gitInv7=this.gitInv7||(0,R.A)(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||(0,R.A)(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||(0,R.A)(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||(0,B.A)("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||(0,B.A)("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||(0,B.A)("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||(0,B.A)("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||(0,B.A)(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||(0,B.A)(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||(0,B.A)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,B.A)(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}},{key:"calculate",value:function(t){var e=this;if("object"===(0,C.A)(t)){var r=Object.keys(t);r.forEach(function(r){e[r]=t[r]}),this.updateColors(),r.forEach(function(r){e[r]=t[r]})}else this.updateColors()}}])}(),(0,F.K2)(a,"Theme"),a),tt=(0,F.K2)(function(t){var e=new J;return e.calculate(t),e},"getThemeVariables"),et=(o=function(){return(0,D.A)(function t(){(0,E.A)(this,t),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=(0,I.A)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=(0,I.A)(this.primaryColor,{h:-160}),this.primaryBorderColor=X(this.primaryColor,this.darkMode),this.secondaryBorderColor=X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=X(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,R.A)(this.primaryColor),this.secondaryTextColor=(0,R.A)(this.secondaryColor),this.tertiaryTextColor=(0,R.A)(this.tertiaryColor),this.lineColor=(0,R.A)(this.background),this.textColor=(0,R.A)(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=X(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=(0,O.A)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()},[{key:"updateColors",value:function(){var t,e,r,i,n,a,o,s,l,c,u,h,d,p,g,f,y,m,v,x,b,k,C,A,D,E,T,w,S,F,O,M,N,K,P,q,z,W,Y,$,j,U,H,X;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,I.A)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,I.A)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,I.A)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,I.A)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,I.A)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,I.A)(this.primaryColor,{h:210}),this.cScale9=this.cScale9||(0,I.A)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,I.A)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,I.A)(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,L.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,L.A)(this.tertiaryColor,40);for(var Z=0;Z<this.THEME_COLOR_LIMIT;Z++)this["cScale"+Z]=(0,L.A)(this["cScale"+Z],10),this["cScalePeer"+Z]=this["cScalePeer"+Z]||(0,L.A)(this["cScale"+Z],25);for(var Q=0;Q<this.THEME_COLOR_LIMIT;Q++)this["cScaleInv"+Q]=this["cScaleInv"+Q]||(0,I.A)(this["cScale"+Q],{h:180});for(var J=0;J<5;J++)this["surface"+J]=this["surface"+J]||(0,I.A)(this.mainBkg,{h:30,l:-(5+5*J)}),this["surfacePeer"+J]=this["surfacePeer"+J]||(0,I.A)(this.mainBkg,{h:30,l:-(7+5*J)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||(0,R.A)(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||(0,R.A)(this.labelTextColor);for(var tt=0;tt<this.THEME_COLOR_LIMIT;tt++)this["cScaleLabel"+tt]=this["cScaleLabel"+tt]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,B.A)(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||(0,B.A)(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,I.A)(this.primaryColor,{h:64}),this.fillType3=(0,I.A)(this.secondaryColor,{h:64}),this.fillType4=(0,I.A)(this.primaryColor,{h:-64}),this.fillType5=(0,I.A)(this.secondaryColor,{h:-64}),this.fillType6=(0,I.A)(this.primaryColor,{h:128}),this.fillType7=(0,I.A)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||(0,I.A)(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||(0,I.A)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,I.A)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,I.A)(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||(0,I.A)(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||(0,I.A)(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||(0,I.A)(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||(0,I.A)(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||(0,I.A)(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||(0,I.A)(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=null!==(t=this.venn1)&&void 0!==t?t:(0,I.A)(this.primaryColor,{l:-30}),this.venn2=null!==(e=this.venn2)&&void 0!==e?e:(0,I.A)(this.secondaryColor,{l:-30}),this.venn3=null!==(r=this.venn3)&&void 0!==r?r:(0,I.A)(this.tertiaryColor,{l:-40}),this.venn4=null!==(i=this.venn4)&&void 0!==i?i:(0,I.A)(this.primaryColor,{h:60,l:-30}),this.venn5=null!==(n=this.venn5)&&void 0!==n?n:(0,I.A)(this.primaryColor,{h:-60,l:-30}),this.venn6=null!==(a=this.venn6)&&void 0!==a?a:(0,I.A)(this.secondaryColor,{h:60,l:-30}),this.venn7=null!==(o=this.venn7)&&void 0!==o?o:(0,I.A)(this.primaryColor,{h:120,l:-30}),this.venn8=null!==(s=this.venn8)&&void 0!==s?s:(0,I.A)(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=null!==(l=this.vennTitleTextColor)&&void 0!==l?l:this.titleColor,this.vennSetTextColor=null!==(c=this.vennSetTextColor)&&void 0!==c?c:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||(0,I.A)(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,I.A)(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,I.A)(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,I.A)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,I.A)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,I.A)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,B.A)(this.quadrant1Fill):(0,L.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:(null===(u=this.radar)||void 0===u?void 0:u.axisColor)||this.lineColor,axisStrokeWidth:(null===(h=this.radar)||void 0===h?void 0:h.axisStrokeWidth)||2,axisLabelFontSize:(null===(d=this.radar)||void 0===d?void 0:d.axisLabelFontSize)||12,curveOpacity:(null===(p=this.radar)||void 0===p?void 0:p.curveOpacity)||.5,curveStrokeWidth:(null===(g=this.radar)||void 0===g?void 0:g.curveStrokeWidth)||2,graticuleColor:(null===(f=this.radar)||void 0===f?void 0:f.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null===(y=this.radar)||void 0===y?void 0:y.graticuleStrokeWidth)||1,graticuleOpacity:(null===(m=this.radar)||void 0===m?void 0:m.graticuleOpacity)||.3,legendBoxSize:(null===(v=this.radar)||void 0===v?void 0:v.legendBoxSize)||12,legendFontSize:(null===(x=this.radar)||void 0===x?void 0:x.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:(null===(b=this.wardley)||void 0===b?void 0:b.backgroundColor)||this.background,axisColor:(null===(k=this.wardley)||void 0===k?void 0:k.axisColor)||this.lineColor,axisTextColor:(null===(C=this.wardley)||void 0===C?void 0:C.axisTextColor)||this.primaryTextColor,gridColor:(null===(A=this.wardley)||void 0===A?void 0:A.gridColor)||this.gridColor,componentFill:(null===(D=this.wardley)||void 0===D?void 0:D.componentFill)||this.background,componentStroke:(null===(E=this.wardley)||void 0===E?void 0:E.componentStroke)||this.lineColor,componentLabelColor:(null===(T=this.wardley)||void 0===T?void 0:T.componentLabelColor)||this.primaryTextColor,linkStroke:(null===(w=this.wardley)||void 0===w?void 0:w.linkStroke)||this.lineColor,evolutionStroke:(null===(S=this.wardley)||void 0===S?void 0:S.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:(null===(F=this.wardley)||void 0===F?void 0:F.annotationStroke)||this.lineColor,annotationTextColor:(null===(O=this.wardley)||void 0===O?void 0:O.annotationTextColor)||this.primaryTextColor,annotationFill:(null===(M=this.wardley)||void 0===M?void 0:M.annotationFill)||this.background},this.xyChart={backgroundColor:(null===(N=this.xyChart)||void 0===N?void 0:N.backgroundColor)||this.background,titleColor:(null===(K=this.xyChart)||void 0===K?void 0:K.titleColor)||this.primaryTextColor,dataLabelColor:(null===(P=this.xyChart)||void 0===P?void 0:P.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:(null===(q=this.xyChart)||void 0===q?void 0:q.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null===(z=this.xyChart)||void 0===z?void 0:z.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null===(W=this.xyChart)||void 0===W?void 0:W.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null===(Y=this.xyChart)||void 0===Y?void 0:Y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null===($=this.xyChart)||void 0===$?void 0:$.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null===(j=this.xyChart)||void 0===j?void 0:j.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null===(U=this.xyChart)||void 0===U?void 0:U.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null===(H=this.xyChart)||void 0===H?void 0:H.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null===(X=this.xyChart)||void 0===X?void 0:X.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||(0,I.A)(this.primaryColor,{h:-30}),this.git4=this.git4||(0,I.A)(this.primaryColor,{h:-60}),this.git5=this.git5||(0,I.A)(this.primaryColor,{h:-90}),this.git6=this.git6||(0,I.A)(this.primaryColor,{h:60}),this.git7=this.git7||(0,I.A)(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,B.A)(this.git0,25),this.git1=(0,B.A)(this.git1,25),this.git2=(0,B.A)(this.git2,25),this.git3=(0,B.A)(this.git3,25),this.git4=(0,B.A)(this.git4,25),this.git5=(0,B.A)(this.git5,25),this.git6=(0,B.A)(this.git6,25),this.git7=(0,B.A)(this.git7,25)):(this.git0=(0,L.A)(this.git0,25),this.git1=(0,L.A)(this.git1,25),this.git2=(0,L.A)(this.git2,25),this.git3=(0,L.A)(this.git3,25),this.git4=(0,L.A)(this.git4,25),this.git5=(0,L.A)(this.git5,25),this.git6=(0,L.A)(this.git6,25),this.git7=(0,L.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,L.A)((0,R.A)(this.git0),25),this.gitInv1=this.gitInv1||(0,R.A)(this.git1),this.gitInv2=this.gitInv2||(0,R.A)(this.git2),this.gitInv3=this.gitInv3||(0,R.A)(this.git3),this.gitInv4=this.gitInv4||(0,R.A)(this.git4),this.gitInv5=this.gitInv5||(0,R.A)(this.git5),this.gitInv6=this.gitInv6||(0,R.A)(this.git6),this.gitInv7=this.gitInv7||(0,R.A)(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||(0,R.A)(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||(0,R.A)(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||V,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||G}},{key:"calculate",value:function(t){var e=this;if(Object.keys(this).forEach(function(t){"calculated"===e[t]&&(e[t]=void 0)}),"object"===(0,C.A)(t)){var r=Object.keys(t);r.forEach(function(r){e[r]=t[r]}),this.updateColors(),r.forEach(function(r){e[r]=t[r]})}else this.updateColors()}}])}(),(0,F.K2)(o,"Theme"),o),rt=(0,F.K2)(function(t){var e=new et;return e.calculate(t),e},"getThemeVariables"),it=(s=function(){return(0,D.A)(function t(){(0,E.A)(this,t),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,B.A)("#cde498",10),this.primaryBorderColor=X(this.primaryColor,this.darkMode),this.secondaryBorderColor=X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=X(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,R.A)(this.primaryColor),this.secondaryTextColor=(0,R.A)(this.secondaryColor),this.tertiaryTextColor=(0,R.A)(this.primaryColor),this.lineColor=(0,R.A)(this.background),this.textColor=(0,R.A)(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"},[{key:"updateColors",value:function(){var t,e,r,i,n,a,o,s,l,c,u,h,d,p,g,f,y,m,v,x,b,k,C,A,D,E,T,w,S,F,O,M,N,K,P,q,z,W,Y,$,j,U,H,X;this.actorBorder=(0,L.A)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,I.A)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,I.A)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,I.A)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,I.A)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,I.A)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,I.A)(this.primaryColor,{h:210}),this.cScale9=this.cScale9||(0,I.A)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,I.A)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,I.A)(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,L.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,L.A)(this.tertiaryColor,40);for(var Z=0;Z<this.THEME_COLOR_LIMIT;Z++)this["cScale"+Z]=(0,L.A)(this["cScale"+Z],10),this["cScalePeer"+Z]=this["cScalePeer"+Z]||(0,L.A)(this["cScale"+Z],25);for(var Q=0;Q<this.THEME_COLOR_LIMIT;Q++)this["cScaleInv"+Q]=this["cScaleInv"+Q]||(0,I.A)(this["cScale"+Q],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(var J=0;J<this.THEME_COLOR_LIMIT;J++)this["cScaleLabel"+J]=this["cScaleLabel"+J]||this.scaleLabelColor;for(var tt=0;tt<5;tt++)this["surface"+tt]=this["surface"+tt]||(0,I.A)(this.mainBkg,{h:30,s:-30,l:-(5+5*tt)}),this["surfacePeer"+tt]=this["surfacePeer"+tt]||(0,I.A)(this.mainBkg,{h:30,s:-30,l:-(8+5*tt)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,B.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,B.A)(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,I.A)(this.primaryColor,{h:64}),this.fillType3=(0,I.A)(this.secondaryColor,{h:64}),this.fillType4=(0,I.A)(this.primaryColor,{h:-64}),this.fillType5=(0,I.A)(this.secondaryColor,{h:-64}),this.fillType6=(0,I.A)(this.primaryColor,{h:128}),this.fillType7=(0,I.A)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,I.A)(this.primaryColor,{l:-30}),this.pie5=this.pie5||(0,I.A)(this.secondaryColor,{l:-30}),this.pie6=this.pie6||(0,I.A)(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||(0,I.A)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,I.A)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,I.A)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,I.A)(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||(0,I.A)(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||(0,I.A)(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=null!==(t=this.venn1)&&void 0!==t?t:(0,I.A)(this.primaryColor,{l:-30}),this.venn2=null!==(e=this.venn2)&&void 0!==e?e:(0,I.A)(this.secondaryColor,{l:-30}),this.venn3=null!==(r=this.venn3)&&void 0!==r?r:(0,I.A)(this.tertiaryColor,{l:-30}),this.venn4=null!==(i=this.venn4)&&void 0!==i?i:(0,I.A)(this.primaryColor,{h:60,l:-30}),this.venn5=null!==(n=this.venn5)&&void 0!==n?n:(0,I.A)(this.primaryColor,{h:-60,l:-30}),this.venn6=null!==(a=this.venn6)&&void 0!==a?a:(0,I.A)(this.secondaryColor,{h:60,l:-30}),this.venn7=null!==(o=this.venn7)&&void 0!==o?o:(0,I.A)(this.primaryColor,{h:120,l:-30}),this.venn8=null!==(s=this.venn8)&&void 0!==s?s:(0,I.A)(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=null!==(l=this.vennTitleTextColor)&&void 0!==l?l:this.titleColor,this.vennSetTextColor=null!==(c=this.vennSetTextColor)&&void 0!==c?c:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||(0,I.A)(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,I.A)(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,I.A)(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,I.A)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,I.A)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,I.A)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,B.A)(this.quadrant1Fill):(0,L.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:(null===(u=this.radar)||void 0===u?void 0:u.axisColor)||this.lineColor,axisStrokeWidth:(null===(h=this.radar)||void 0===h?void 0:h.axisStrokeWidth)||2,axisLabelFontSize:(null===(d=this.radar)||void 0===d?void 0:d.axisLabelFontSize)||12,curveOpacity:(null===(p=this.radar)||void 0===p?void 0:p.curveOpacity)||.5,curveStrokeWidth:(null===(g=this.radar)||void 0===g?void 0:g.curveStrokeWidth)||2,graticuleColor:(null===(f=this.radar)||void 0===f?void 0:f.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null===(y=this.radar)||void 0===y?void 0:y.graticuleStrokeWidth)||1,graticuleOpacity:(null===(m=this.radar)||void 0===m?void 0:m.graticuleOpacity)||.3,legendBoxSize:(null===(v=this.radar)||void 0===v?void 0:v.legendBoxSize)||12,legendFontSize:(null===(x=this.radar)||void 0===x?void 0:x.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:(null===(b=this.wardley)||void 0===b?void 0:b.backgroundColor)||this.background,axisColor:(null===(k=this.wardley)||void 0===k?void 0:k.axisColor)||this.lineColor,axisTextColor:(null===(C=this.wardley)||void 0===C?void 0:C.axisTextColor)||this.primaryTextColor,gridColor:(null===(A=this.wardley)||void 0===A?void 0:A.gridColor)||this.gridColor,componentFill:(null===(D=this.wardley)||void 0===D?void 0:D.componentFill)||this.background,componentStroke:(null===(E=this.wardley)||void 0===E?void 0:E.componentStroke)||this.lineColor,componentLabelColor:(null===(T=this.wardley)||void 0===T?void 0:T.componentLabelColor)||this.primaryTextColor,linkStroke:(null===(w=this.wardley)||void 0===w?void 0:w.linkStroke)||this.lineColor,evolutionStroke:(null===(S=this.wardley)||void 0===S?void 0:S.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:(null===(F=this.wardley)||void 0===F?void 0:F.annotationStroke)||this.lineColor,annotationTextColor:(null===(O=this.wardley)||void 0===O?void 0:O.annotationTextColor)||this.primaryTextColor,annotationFill:(null===(M=this.wardley)||void 0===M?void 0:M.annotationFill)||this.background},this.xyChart={backgroundColor:(null===(N=this.xyChart)||void 0===N?void 0:N.backgroundColor)||this.background,titleColor:(null===(K=this.xyChart)||void 0===K?void 0:K.titleColor)||this.primaryTextColor,dataLabelColor:(null===(P=this.xyChart)||void 0===P?void 0:P.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:(null===(q=this.xyChart)||void 0===q?void 0:q.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null===(z=this.xyChart)||void 0===z?void 0:z.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null===(W=this.xyChart)||void 0===W?void 0:W.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null===(Y=this.xyChart)||void 0===Y?void 0:Y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null===($=this.xyChart)||void 0===$?void 0:$.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null===(j=this.xyChart)||void 0===j?void 0:j.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null===(U=this.xyChart)||void 0===U?void 0:U.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null===(H=this.xyChart)||void 0===H?void 0:H.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null===(X=this.xyChart)||void 0===X?void 0:X.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||(0,I.A)(this.primaryColor,{h:-30}),this.git4=this.git4||(0,I.A)(this.primaryColor,{h:-60}),this.git5=this.git5||(0,I.A)(this.primaryColor,{h:-90}),this.git6=this.git6||(0,I.A)(this.primaryColor,{h:60}),this.git7=this.git7||(0,I.A)(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,B.A)(this.git0,25),this.git1=(0,B.A)(this.git1,25),this.git2=(0,B.A)(this.git2,25),this.git3=(0,B.A)(this.git3,25),this.git4=(0,B.A)(this.git4,25),this.git5=(0,B.A)(this.git5,25),this.git6=(0,B.A)(this.git6,25),this.git7=(0,B.A)(this.git7,25)):(this.git0=(0,L.A)(this.git0,25),this.git1=(0,L.A)(this.git1,25),this.git2=(0,L.A)(this.git2,25),this.git3=(0,L.A)(this.git3,25),this.git4=(0,L.A)(this.git4,25),this.git5=(0,L.A)(this.git5,25),this.git6=(0,L.A)(this.git6,25),this.git7=(0,L.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,R.A)(this.git0),this.gitInv1=this.gitInv1||(0,R.A)(this.git1),this.gitInv2=this.gitInv2||(0,R.A)(this.git2),this.gitInv3=this.gitInv3||(0,R.A)(this.git3),this.gitInv4=this.gitInv4||(0,R.A)(this.git4),this.gitInv5=this.gitInv5||(0,R.A)(this.git5),this.gitInv6=this.gitInv6||(0,R.A)(this.git6),this.gitInv7=this.gitInv7||(0,R.A)(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||(0,R.A)(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||(0,R.A)(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||V,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||G}},{key:"calculate",value:function(t){var e=this;if("object"===(0,C.A)(t)){var r=Object.keys(t);r.forEach(function(r){e[r]=t[r]}),this.updateColors(),r.forEach(function(r){e[r]=t[r]})}else this.updateColors()}}])}(),(0,F.K2)(s,"Theme"),s),nt=(0,F.K2)(function(t){var e=new it;return e.calculate(t),e},"getThemeVariables"),at=(l=function(){return(0,D.A)(function t(){(0,E.A)(this,t),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,B.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=(0,I.A)(this.primaryColor,{h:-160}),this.primaryBorderColor=X(this.primaryColor,this.darkMode),this.secondaryBorderColor=X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=X(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,R.A)(this.primaryColor),this.secondaryTextColor=(0,R.A)(this.secondaryColor),this.tertiaryTextColor=(0,R.A)(this.tertiaryColor),this.lineColor=(0,R.A)(this.background),this.textColor=(0,R.A)(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||(0,B.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"},[{key:"updateColors",value:function(){var t,e,r,i,n,a,o,s,l,c,u,h,d,p,g,f,y,m,v,x,b,k,C,A,D,E,T,w,S,F,O,M,N,K,P,q;this.secondBkg=(0,B.A)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,B.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(var z=0;z<this.THEME_COLOR_LIMIT;z++)this["cScaleInv"+z]=this["cScaleInv"+z]||(0,R.A)(this["cScale"+z]);for(var W=0;W<this.THEME_COLOR_LIMIT;W++)this.darkMode?this["cScalePeer"+W]=this["cScalePeer"+W]||(0,B.A)(this["cScale"+W],10):this["cScalePeer"+W]=this["cScalePeer"+W]||(0,L.A)(this["cScale"+W],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(var Y=0;Y<this.THEME_COLOR_LIMIT;Y++)this["cScaleLabel"+Y]=this["cScaleLabel"+Y]||this.scaleLabelColor;for(var $=0;$<5;$++)this["surface"+$]=this["surface"+$]||(0,I.A)(this.mainBkg,{l:-(5+5*$)}),this["surfacePeer"+$]=this["surfacePeer"+$]||(0,I.A)(this.mainBkg,{l:-(8+5*$)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=(0,B.A)(this.contrast,30),this.sectionBkgColor2=(0,B.A)(this.contrast,30),this.taskBorderColor=(0,L.A)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,B.A)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,L.A)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,I.A)(this.primaryColor,{h:64}),this.fillType3=(0,I.A)(this.secondaryColor,{h:64}),this.fillType4=(0,I.A)(this.primaryColor,{h:-64}),this.fillType5=(0,I.A)(this.secondaryColor,{h:-64}),this.fillType6=(0,I.A)(this.primaryColor,{h:128}),this.fillType7=(0,I.A)(this.secondaryColor,{h:128});for(var j=0;j<this.THEME_COLOR_LIMIT;j++)this["pie"+j]=this["cScale"+j];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(var U=0;U<8;U++){var H;this["venn"+(U+1)]=null!==(H=this["venn"+(U+1)])&&void 0!==H?H:this["cScale"+U]}this.vennTitleTextColor=null!==(t=this.vennTitleTextColor)&&void 0!==t?t:this.titleColor,this.vennSetTextColor=null!==(e=this.vennSetTextColor)&&void 0!==e?e:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||(0,I.A)(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,I.A)(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,I.A)(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,I.A)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,I.A)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,I.A)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,B.A)(this.quadrant1Fill):(0,L.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null===(r=this.xyChart)||void 0===r?void 0:r.backgroundColor)||this.background,titleColor:(null===(i=this.xyChart)||void 0===i?void 0:i.titleColor)||this.primaryTextColor,dataLabelColor:(null===(n=this.xyChart)||void 0===n?void 0:n.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:(null===(a=this.xyChart)||void 0===a?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null===(o=this.xyChart)||void 0===o?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null===(s=this.xyChart)||void 0===s?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null===(l=this.xyChart)||void 0===l?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null===(c=this.xyChart)||void 0===c?void 0:c.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null===(u=this.xyChart)||void 0===u?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null===(h=this.xyChart)||void 0===h?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null===(d=this.xyChart)||void 0===d?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null===(p=this.xyChart)||void 0===p?void 0:p.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:(null===(g=this.radar)||void 0===g?void 0:g.axisColor)||this.lineColor,axisStrokeWidth:(null===(f=this.radar)||void 0===f?void 0:f.axisStrokeWidth)||2,axisLabelFontSize:(null===(y=this.radar)||void 0===y?void 0:y.axisLabelFontSize)||12,curveOpacity:(null===(m=this.radar)||void 0===m?void 0:m.curveOpacity)||.5,curveStrokeWidth:(null===(v=this.radar)||void 0===v?void 0:v.curveStrokeWidth)||2,graticuleColor:(null===(x=this.radar)||void 0===x?void 0:x.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null===(b=this.radar)||void 0===b?void 0:b.graticuleStrokeWidth)||1,graticuleOpacity:(null===(k=this.radar)||void 0===k?void 0:k.graticuleOpacity)||.3,legendBoxSize:(null===(C=this.radar)||void 0===C?void 0:C.legendBoxSize)||12,legendFontSize:(null===(A=this.radar)||void 0===A?void 0:A.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:(null===(D=this.wardley)||void 0===D?void 0:D.backgroundColor)||this.background,axisColor:(null===(E=this.wardley)||void 0===E?void 0:E.axisColor)||this.lineColor,axisTextColor:(null===(T=this.wardley)||void 0===T?void 0:T.axisTextColor)||this.primaryTextColor,gridColor:(null===(w=this.wardley)||void 0===w?void 0:w.gridColor)||this.gridColor,componentFill:(null===(S=this.wardley)||void 0===S?void 0:S.componentFill)||this.background,componentStroke:(null===(F=this.wardley)||void 0===F?void 0:F.componentStroke)||this.lineColor,componentLabelColor:(null===(O=this.wardley)||void 0===O?void 0:O.componentLabelColor)||this.primaryTextColor,linkStroke:(null===(M=this.wardley)||void 0===M?void 0:M.linkStroke)||this.lineColor,evolutionStroke:(null===(N=this.wardley)||void 0===N?void 0:N.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:(null===(K=this.wardley)||void 0===K?void 0:K.annotationStroke)||this.lineColor,annotationTextColor:(null===(P=this.wardley)||void 0===P?void 0:P.annotationTextColor)||this.primaryTextColor,annotationFill:(null===(q=this.wardley)||void 0===q?void 0:q.annotationFill)||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,L.A)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||(0,I.A)(this.primaryColor,{h:-30}),this.git4=this.pie5||(0,I.A)(this.primaryColor,{h:-60}),this.git5=this.pie6||(0,I.A)(this.primaryColor,{h:-90}),this.git6=this.pie7||(0,I.A)(this.primaryColor,{h:60}),this.git7=this.pie8||(0,I.A)(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||(0,R.A)(this.git0),this.gitInv1=this.gitInv1||(0,R.A)(this.git1),this.gitInv2=this.gitInv2||(0,R.A)(this.git2),this.gitInv3=this.gitInv3||(0,R.A)(this.git3),this.gitInv4=this.gitInv4||(0,R.A)(this.git4),this.gitInv5=this.gitInv5||(0,R.A)(this.git5),this.gitInv6=this.gitInv6||(0,R.A)(this.git6),this.gitInv7=this.gitInv7||(0,R.A)(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||V,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||G}},{key:"calculate",value:function(t){var e=this;if("object"===(0,C.A)(t)){var r=Object.keys(t);r.forEach(function(r){e[r]=t[r]}),this.updateColors(),r.forEach(function(r){e[r]=t[r]})}else this.updateColors()}}])}(),(0,F.K2)(l,"Theme"),l),ot=(0,F.K2)(function(t){var e=new at;return e.calculate(t),e},"getThemeVariables"),st=(c=function(){return(0,D.A)(function t(){(0,E.A)(this,t),this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=X(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"},[{key:"updateColors",value:function(){var t,e,r,i,n,a,o,s,l,c,u,h,d;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||(0,I.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,I.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||X(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||X(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||X(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,R.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,R.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,R.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,R.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,L.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,R.A)(this.lineColor);var p="#ECECFE",g="#E9E9F1",f=(0,I.A)(p,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||f,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||g,this.sectionBkgColor2=this.sectionBkgColor2||p,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||p,this.activeTaskBorderColor=this.activeTaskBorderColor||p,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,B.A)(p,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||p,this.cScale1=this.cScale1||g,this.cScale2=this.cScale2||f,this.cScale3=this.cScale3||(0,I.A)(p,{h:30}),this.cScale4=this.cScale4||(0,I.A)(p,{h:60}),this.cScale5=this.cScale5||(0,I.A)(p,{h:90}),this.cScale6=this.cScale6||(0,I.A)(p,{h:120}),this.cScale7=this.cScale7||(0,I.A)(p,{h:150}),this.cScale8=this.cScale8||(0,I.A)(p,{h:210,l:150}),this.cScale9=this.cScale9||(0,I.A)(p,{h:270}),this.cScale10=this.cScale10||(0,I.A)(p,{h:300}),this.cScale11=this.cScale11||(0,I.A)(p,{h:330}),this.darkMode)for(var y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=(0,L.A)(this["cScale"+y],75);else for(var m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=(0,L.A)(this["cScale"+m],25);for(var v=0;v<this.THEME_COLOR_LIMIT;v++)this["cScaleInv"+v]=this["cScaleInv"+v]||(0,R.A)(this["cScale"+v]);for(var x=0;x<this.THEME_COLOR_LIMIT;x++)this.darkMode?this["cScalePeer"+x]=this["cScalePeer"+x]||(0,B.A)(this["cScale"+x],10):this["cScalePeer"+x]=this["cScalePeer"+x]||(0,L.A)(this["cScale"+x],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(var b=0;b<this.THEME_COLOR_LIMIT;b++)this["cScaleLabel"+b]=this["cScaleLabel"+b]||this.scaleLabelColor;for(var k=this.darkMode?-4:-1,C=0;C<5;C++)this["surface"+C]=this["surface"+C]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:k*(5+3*C)}),this["surfacePeer"+C]=this["surfacePeer"+C]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:k*(8+3*C)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||p,this.fillType1=this.fillType1||g,this.fillType2=this.fillType2||(0,I.A)(p,{h:64}),this.fillType3=this.fillType3||(0,I.A)(g,{h:64}),this.fillType4=this.fillType4||(0,I.A)(p,{h:-64}),this.fillType5=this.fillType5||(0,I.A)(g,{h:-64}),this.fillType6=this.fillType6||(0,I.A)(p,{h:128}),this.fillType7=this.fillType7||(0,I.A)(g,{h:128}),this.pie1=this.pie1||p,this.pie2=this.pie2||g,this.pie3=this.pie3||f,this.pie4=this.pie4||(0,I.A)(p,{l:-10}),this.pie5=this.pie5||(0,I.A)(g,{l:-10}),this.pie6=this.pie6||(0,I.A)(f,{l:-10}),this.pie7=this.pie7||(0,I.A)(p,{h:60,l:-10}),this.pie8=this.pie8||(0,I.A)(p,{h:-60,l:-10}),this.pie9=this.pie9||(0,I.A)(p,{h:120,l:0}),this.pie10=this.pie10||(0,I.A)(p,{h:60,l:-20}),this.pie11=this.pie11||(0,I.A)(p,{h:-60,l:-20}),this.pie12=this.pie12||(0,I.A)(p,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=null!==(t=this.vennTitleTextColor)&&void 0!==t?t:this.titleColor,this.vennSetTextColor=null!==(e=this.vennSetTextColor)&&void 0!==e?e:this.textColor,this.quadrant1Fill=this.quadrant1Fill||p,this.quadrant2Fill=this.quadrant2Fill||(0,I.A)(p,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,I.A)(p,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,I.A)(p,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,I.A)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,I.A)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,I.A)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,B.A)(this.quadrant1Fill):(0,L.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null===(r=this.xyChart)||void 0===r?void 0:r.backgroundColor)||this.background,titleColor:(null===(i=this.xyChart)||void 0===i?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:(null===(n=this.xyChart)||void 0===n?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null===(a=this.xyChart)||void 0===a?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null===(o=this.xyChart)||void 0===o?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null===(s=this.xyChart)||void 0===s?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null===(l=this.xyChart)||void 0===l?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null===(c=this.xyChart)||void 0===c?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null===(u=this.xyChart)||void 0===u?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null===(h=this.xyChart)||void 0===h?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null===(d=this.xyChart)||void 0===d?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||p,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||p,this.git1=this.git1||g,this.git2=this.git2||f,this.git3=this.git3||(0,I.A)(p,{h:-30}),this.git4=this.git4||(0,I.A)(p,{h:-60}),this.git5=this.git5||(0,I.A)(p,{h:-90}),this.git6=this.git6||(0,I.A)(p,{h:60}),this.git7=this.git7||(0,I.A)(p,{h:120}),this.darkMode?(this.git0=(0,B.A)(this.git0,25),this.git1=(0,B.A)(this.git1,25),this.git2=(0,B.A)(this.git2,25),this.git3=(0,B.A)(this.git3,25),this.git4=(0,B.A)(this.git4,25),this.git5=(0,B.A)(this.git5,25),this.git6=(0,B.A)(this.git6,25),this.git7=(0,B.A)(this.git7,25)):(this.git0=(0,L.A)(this.git0,25),this.git1=(0,L.A)(this.git1,25),this.git2=(0,L.A)(this.git2,25),this.git3=(0,L.A)(this.git3,25),this.git4=(0,L.A)(this.git4,25),this.git5=(0,L.A)(this.git5,25),this.git6=(0,L.A)(this.git6,25),this.git7=(0,L.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,R.A)(this.git0),this.gitInv1=this.gitInv1||(0,R.A)(this.git1),this.gitInv2=this.gitInv2||(0,R.A)(this.git2),this.gitInv3=this.gitInv3||(0,R.A)(this.git3),this.gitInv4=this.gitInv4||(0,R.A)(this.git4),this.gitInv5=this.gitInv5||(0,R.A)(this.git5),this.gitInv6=this.gitInv6||(0,R.A)(this.git6),this.gitInv7=this.gitInv7||(0,R.A)(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||V,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||G}},{key:"calculate",value:function(t){var e=this;if("object"===(0,C.A)(t)){var r=Object.keys(t);r.forEach(function(r){e[r]=t[r]}),this.updateColors(),r.forEach(function(r){e[r]=t[r]})}else this.updateColors()}}])}(),(0,F.K2)(c,"Theme"),c),lt=(0,F.K2)(function(t){var e=new st;return e.calculate(t),e},"getThemeVariables"),ct=(u=function(){return(0,D.A)(function t(){(0,E.A)(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,B.A)(this.primaryColor,16),this.tertiaryColor=(0,I.A)(this.primaryColor,{h:-160}),this.primaryBorderColor=(0,R.A)(this.background),this.secondaryBorderColor=X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=X(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,R.A)(this.primaryColor),this.secondaryTextColor=(0,R.A)(this.secondaryColor),this.tertiaryTextColor=(0,R.A)(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,B.A)((0,R.A)("#323D47"),10),this.border1="#ccc",this.border2=(0,O.A)(255,255,255,.25),this.arrowheadColor=(0,R.A)(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"},[{key:"updateColors",value:function(){var t,e,r,i,n,a,o,s,l,c,u,h,d;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||(0,I.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,I.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||X(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||X(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||X(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,R.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,R.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,R.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,R.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,L.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,R.A)(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,B.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,I.A)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,I.A)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,I.A)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,I.A)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,I.A)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,I.A)(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||(0,I.A)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,I.A)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,I.A)(this.primaryColor,{h:330}),this.darkMode)for(var p=0;p<this.THEME_COLOR_LIMIT;p++)this["cScale"+p]=(0,L.A)(this["cScale"+p],75);else for(var g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=(0,L.A)(this["cScale"+g],25);for(var f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||(0,R.A)(this["cScale"+f]);for(var y=0;y<this.THEME_COLOR_LIMIT;y++)this.darkMode?this["cScalePeer"+y]=this["cScalePeer"+y]||(0,B.A)(this["cScale"+y],10):this["cScalePeer"+y]=this["cScalePeer"+y]||(0,L.A)(this["cScale"+y],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(var m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;for(var v=this.darkMode?-4:-1,x=0;x<5;x++)this["surface"+x]=this["surface"+x]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:v*(5+3*x)}),this["surfacePeer"+x]=this["surfacePeer"+x]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:v*(8+3*x)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||(0,I.A)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,I.A)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,I.A)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,I.A)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,I.A)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,I.A)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,I.A)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,I.A)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,I.A)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,I.A)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,I.A)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,I.A)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,I.A)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,I.A)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,I.A)(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=null!==(t=this.vennTitleTextColor)&&void 0!==t?t:this.titleColor,this.vennSetTextColor=null!==(e=this.vennSetTextColor)&&void 0!==e?e:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||(0,I.A)(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,I.A)(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,I.A)(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,I.A)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,I.A)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,I.A)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,B.A)(this.quadrant1Fill):(0,L.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null===(r=this.xyChart)||void 0===r?void 0:r.backgroundColor)||this.background,titleColor:(null===(i=this.xyChart)||void 0===i?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:(null===(n=this.xyChart)||void 0===n?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null===(a=this.xyChart)||void 0===a?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null===(o=this.xyChart)||void 0===o?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null===(s=this.xyChart)||void 0===s?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null===(l=this.xyChart)||void 0===l?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null===(c=this.xyChart)||void 0===c?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null===(u=this.xyChart)||void 0===u?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null===(h=this.xyChart)||void 0===h?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null===(d=this.xyChart)||void 0===d?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=(0,B.A)(this.git0,25),this.git1=(0,B.A)(this.git1,25),this.git2=(0,B.A)(this.git2,25),this.git3=(0,B.A)(this.git3,25),this.git4=(0,B.A)(this.git4,25),this.git5=(0,B.A)(this.git5,25),this.git6=(0,B.A)(this.git6,25),this.git7=(0,B.A)(this.git7,25)):(this.git0=(0,L.A)(this.git0,25),this.git1=(0,L.A)(this.git1,25),this.git2=(0,L.A)(this.git2,25),this.git3=(0,L.A)(this.git3,25),this.git4=(0,L.A)(this.git4,25),this.git5=(0,L.A)(this.git5,25),this.git6=(0,L.A)(this.git6,25),this.git7=(0,L.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,R.A)(this.git0),this.gitInv1=this.gitInv1||(0,R.A)(this.git1),this.gitInv2=this.gitInv2||(0,R.A)(this.git2),this.gitInv3=this.gitInv3||(0,R.A)(this.git3),this.gitInv4=this.gitInv4||(0,R.A)(this.git4),this.gitInv5=this.gitInv5||(0,R.A)(this.git5),this.gitInv6=this.gitInv6||(0,R.A)(this.git6),this.gitInv7=this.gitInv7||(0,R.A)(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||V,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||G}},{key:"calculate",value:function(t){var e=this;if("object"===(0,C.A)(t)){var r=Object.keys(t);r.forEach(function(r){e[r]=t[r]}),this.updateColors(),r.forEach(function(r){e[r]=t[r]})}else this.updateColors()}}])}(),(0,F.K2)(u,"Theme"),u),ut=(0,F.K2)(function(t){var e=new ct;return e.calculate(t),e},"getThemeVariables"),ht=(h=function(){return(0,D.A)(function t(){(0,E.A)(this,t),this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=X("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"},[{key:"updateColors",value:function(){var t,e,r,i,n,a,o,s,l,c,u,h,d,p;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||(0,I.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,I.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||X(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||X(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||X(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||(0,R.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,R.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,R.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,R.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,L.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,R.A)(this.lineColor);var g="#ECECFE",f="#E9E9F1",y=(0,I.A)(g,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||y,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||f,this.sectionBkgColor2=this.sectionBkgColor2||g,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||g,this.activeTaskBorderColor=this.activeTaskBorderColor||g,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,B.A)(g,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(var m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=this.mainBkg;if(this.darkMode)for(var v=0;v<this.THEME_COLOR_LIMIT;v++)this["cScale"+v]=(0,L.A)(this["cScale"+v],75);else for(var x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=(0,L.A)(this["cScale"+x],25);for(var b=0;b<this.THEME_COLOR_LIMIT;b++)this["cScaleInv"+b]=this["cScaleInv"+b]||(0,R.A)(this["cScale"+b]);for(var k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||(0,B.A)(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||(0,L.A)(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(var C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;for(var A=this.darkMode?-4:-1,D=0;D<5;D++)this["surface"+D]=this["surface"+D]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:A*(5+3*D)}),this["surfacePeer"+D]=this["surfacePeer"+D]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:A*(8+3*D)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||g,this.fillType1=this.fillType1||f,this.fillType2=this.fillType2||(0,I.A)(g,{h:64}),this.fillType3=this.fillType3||(0,I.A)(f,{h:64}),this.fillType4=this.fillType4||(0,I.A)(g,{h:-64}),this.fillType5=this.fillType5||(0,I.A)(f,{h:-64}),this.fillType6=this.fillType6||(0,I.A)(g,{h:128}),this.fillType7=this.fillType7||(0,I.A)(f,{h:128}),this.pie1=this.pie1||g,this.pie2=this.pie2||f,this.pie3=this.pie3||y,this.pie4=this.pie4||(0,I.A)(g,{l:-10}),this.pie5=this.pie5||(0,I.A)(f,{l:-10}),this.pie6=this.pie6||(0,I.A)(y,{l:-10}),this.pie7=this.pie7||(0,I.A)(g,{h:60,l:-10}),this.pie8=this.pie8||(0,I.A)(g,{h:-60,l:-10}),this.pie9=this.pie9||(0,I.A)(g,{h:120,l:0}),this.pie10=this.pie10||(0,I.A)(g,{h:60,l:-20}),this.pie11=this.pie11||(0,I.A)(g,{h:-60,l:-20}),this.pie12=this.pie12||(0,I.A)(g,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=null!==(t=this.vennTitleTextColor)&&void 0!==t?t:this.titleColor,this.vennSetTextColor=null!==(e=this.vennSetTextColor)&&void 0!==e?e:this.textColor,this.quadrant1Fill=this.quadrant1Fill||g,this.quadrant2Fill=this.quadrant2Fill||(0,I.A)(g,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,I.A)(g,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,I.A)(g,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,I.A)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,I.A)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,I.A)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,B.A)(this.quadrant1Fill):(0,L.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null===(r=this.xyChart)||void 0===r?void 0:r.backgroundColor)||this.background,titleColor:(null===(i=this.xyChart)||void 0===i?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:(null===(n=this.xyChart)||void 0===n?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null===(a=this.xyChart)||void 0===a?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null===(o=this.xyChart)||void 0===o?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null===(s=this.xyChart)||void 0===s?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null===(l=this.xyChart)||void 0===l?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null===(c=this.xyChart)||void 0===c?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null===(u=this.xyChart)||void 0===u?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null===(h=this.xyChart)||void 0===h?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null===(d=this.xyChart)||void 0===d?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||g,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||g,this.git1=this.git1||f,this.git2=this.git2||y,this.git3=this.git3||(0,I.A)(g,{h:-30}),this.git4=this.git4||(0,I.A)(g,{h:-60}),this.git5=this.git5||(0,I.A)(g,{h:-90}),this.git6=this.git6||(0,I.A)(g,{h:60}),this.git7=this.git7||(0,I.A)(g,{h:120}),this.darkMode?(this.git0=(0,B.A)(this.git0,25),this.git1=(0,B.A)(this.git1,25),this.git2=(0,B.A)(this.git2,25),this.git3=(0,B.A)(this.git3,25),this.git4=(0,B.A)(this.git4,25),this.git5=(0,B.A)(this.git5,25),this.git6=(0,B.A)(this.git6,25),this.git7=(0,B.A)(this.git7,25)):(this.git0=(0,L.A)(this.git0,25),this.git1=(0,L.A)(this.git1,25),this.git2=(0,L.A)(this.git2,25),this.git3=(0,L.A)(this.git3,25),this.git4=(0,L.A)(this.git4,25),this.git5=(0,L.A)(this.git5,25),this.git6=(0,L.A)(this.git6,25),this.git7=(0,L.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,R.A)(this.git0),this.gitInv1=this.gitInv1||(0,R.A)(this.git1),this.gitInv2=this.gitInv2||(0,R.A)(this.git2),this.gitInv3=this.gitInv3||(0,R.A)(this.git3),this.gitInv4=this.gitInv4||(0,R.A)(this.git4),this.gitInv5=this.gitInv5||(0,R.A)(this.git5),this.gitInv6=this.gitInv6||(0,R.A)(this.git6),this.gitInv7=this.gitInv7||(0,R.A)(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=null!==(p=this.commitLineColor)&&void 0!==p?p:"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||V,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||G}},{key:"calculate",value:function(t){var e=this;if("object"===(0,C.A)(t)){var r=Object.keys(t);r.forEach(function(r){e[r]=t[r]}),this.updateColors(),r.forEach(function(r){e[r]=t[r]})}else this.updateColors()}}])}(),(0,F.K2)(h,"Theme"),h),dt=(0,F.K2)(function(t){var e=new ht;return e.calculate(t),e},"getThemeVariables"),pt=(d=function(){return(0,D.A)(function t(){var e,r;(0,E.A)(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,B.A)(this.primaryColor,16),this.tertiaryColor=(0,I.A)(this.primaryColor,{h:-160}),this.primaryBorderColor=(0,R.A)(this.background),this.secondaryBorderColor=X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=X(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,R.A)(this.primaryColor),this.secondaryTextColor=(0,R.A)(this.secondaryColor),this.tertiaryTextColor=(0,R.A)(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,B.A)((0,R.A)("#323D47"),10),this.border1="#ccc",this.border2=(0,O.A)(255,255,255,.25),this.arrowheadColor=(0,R.A)(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=null!==(e=this.noteBkgColor)&&void 0!==e?e:"#FEF9C3",this.noteTextColor=null!==(r=this.noteTextColor)&&void 0!==r?r:"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"},[{key:"updateColors",value:function(){var t,e,r,i,n,a,o,s,l,c,u,h,d,p;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||(0,I.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,I.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||X(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||X(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||X(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||(0,R.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,R.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,R.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,R.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,L.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,R.A)(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,B.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,I.A)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,I.A)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,I.A)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,I.A)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,I.A)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,I.A)(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||(0,I.A)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,I.A)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,I.A)(this.primaryColor,{h:330}),this.darkMode)for(var g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=(0,L.A)(this["cScale"+g],75);else for(var f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=(0,L.A)(this["cScale"+f],25);for(var y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleInv"+y]=this["cScaleInv"+y]||(0,R.A)(this["cScale"+y]);for(var m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||(0,B.A)(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||(0,L.A)(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(var v=0;v<this.THEME_COLOR_LIMIT;v++)this["cScaleLabel"+v]=this["cScaleLabel"+v]||this.scaleLabelColor;for(var x=this.darkMode?-4:-1,b=0;b<5;b++)this["surface"+b]=this["surface"+b]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:x*(5+3*b)}),this["surfacePeer"+b]=this["surfacePeer"+b]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:x*(8+3*b)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||(0,I.A)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,I.A)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,I.A)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,I.A)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,I.A)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,I.A)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,I.A)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,I.A)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,I.A)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,I.A)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,I.A)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,I.A)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,I.A)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,I.A)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,I.A)(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=null!==(t=this.vennTitleTextColor)&&void 0!==t?t:this.titleColor,this.vennSetTextColor=null!==(e=this.vennSetTextColor)&&void 0!==e?e:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||(0,I.A)(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,I.A)(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,I.A)(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,I.A)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,I.A)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,I.A)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,B.A)(this.quadrant1Fill):(0,L.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null===(r=this.xyChart)||void 0===r?void 0:r.backgroundColor)||this.background,titleColor:(null===(i=this.xyChart)||void 0===i?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:(null===(n=this.xyChart)||void 0===n?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null===(a=this.xyChart)||void 0===a?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null===(o=this.xyChart)||void 0===o?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null===(s=this.xyChart)||void 0===s?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null===(l=this.xyChart)||void 0===l?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null===(c=this.xyChart)||void 0===c?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null===(u=this.xyChart)||void 0===u?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null===(h=this.xyChart)||void 0===h?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null===(d=this.xyChart)||void 0===d?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||(0,I.A)(this.primaryColor,{h:-30}),this.git4=this.git4||(0,I.A)(this.primaryColor,{h:-60}),this.git5=this.git5||(0,I.A)(this.primaryColor,{h:-90}),this.git6=this.git6||(0,I.A)(this.primaryColor,{h:60}),this.git7=this.git7||(0,I.A)(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,B.A)(this.git0,25),this.git1=(0,B.A)(this.git1,25),this.git2=(0,B.A)(this.git2,25),this.git3=(0,B.A)(this.git3,25),this.git4=(0,B.A)(this.git4,25),this.git5=(0,B.A)(this.git5,25),this.git6=(0,B.A)(this.git6,25),this.git7=(0,B.A)(this.git7,25)):(this.git0=(0,L.A)(this.git0,25),this.git1=(0,L.A)(this.git1,25),this.git2=(0,L.A)(this.git2,25),this.git3=(0,L.A)(this.git3,25),this.git4=(0,L.A)(this.git4,25),this.git5=(0,L.A)(this.git5,25),this.git6=(0,L.A)(this.git6,25),this.git7=(0,L.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,R.A)(this.git0),this.gitInv1=this.gitInv1||(0,R.A)(this.git1),this.gitInv2=this.gitInv2||(0,R.A)(this.git2),this.gitInv3=this.gitInv3||(0,R.A)(this.git3),this.gitInv4=this.gitInv4||(0,R.A)(this.git4),this.gitInv5=this.gitInv5||(0,R.A)(this.git5),this.gitInv6=this.gitInv6||(0,R.A)(this.git6),this.gitInv7=this.gitInv7||(0,R.A)(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=null!==(p=this.commitLineColor)&&void 0!==p?p:"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||V,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||G}},{key:"calculate",value:function(t){var e=this;if("object"===(0,C.A)(t)){var r=Object.keys(t);r.forEach(function(r){e[r]=t[r]}),this.updateColors(),r.forEach(function(r){e[r]=t[r]})}else this.updateColors()}}])}(),(0,F.K2)(d,"Theme"),d),gt=(0,F.K2)(function(t){var e=new pt;return e.calculate(t),e},"getThemeVariables"),ft=(p=function(){return(0,D.A)(function t(){(0,E.A)(this,t),this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=X(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"},[{key:"updateColors",value:function(){var t,e,r,i,n,a,o,s,l,c,u,h,d,p;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||(0,I.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,I.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||X(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||X(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||X(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||(0,R.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,R.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,R.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,R.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,L.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,R.A)(this.lineColor);var g="#ECECFE",f="#E9E9F1",y=(0,I.A)(g,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||y,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||f,this.sectionBkgColor2=this.sectionBkgColor2||g,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||g,this.activeTaskBorderColor=this.activeTaskBorderColor||g,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,B.A)(g,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(var m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||(0,R.A)(this["cScale"+m]);for(var v=0;v<this.THEME_COLOR_LIMIT;v++)this.darkMode?this["cScalePeer"+v]=this["cScalePeer"+v]||(0,B.A)(this["cScale"+v],10):this["cScalePeer"+v]=this["cScalePeer"+v]||(0,L.A)(this["cScale"+v],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(var x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.scaleLabelColor;for(var b=this.darkMode?-4:-1,k=0;k<5;k++)this["surface"+k]=this["surface"+k]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:b*(5+3*k)}),this["surfacePeer"+k]=this["surfacePeer"+k]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:b*(8+3*k)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||g,this.fillType1=this.fillType1||f,this.fillType2=this.fillType2||(0,I.A)(g,{h:64}),this.fillType3=this.fillType3||(0,I.A)(f,{h:64}),this.fillType4=this.fillType4||(0,I.A)(g,{h:-64}),this.fillType5=this.fillType5||(0,I.A)(f,{h:-64}),this.fillType6=this.fillType6||(0,I.A)(g,{h:128}),this.fillType7=this.fillType7||(0,I.A)(f,{h:128}),this.pie1=this.pie1||g,this.pie2=this.pie2||f,this.pie3=this.pie3||y,this.pie4=this.pie4||(0,I.A)(g,{l:-10}),this.pie5=this.pie5||(0,I.A)(f,{l:-10}),this.pie6=this.pie6||(0,I.A)(y,{l:-10}),this.pie7=this.pie7||(0,I.A)(g,{h:60,l:-10}),this.pie8=this.pie8||(0,I.A)(g,{h:-60,l:-10}),this.pie9=this.pie9||(0,I.A)(g,{h:120,l:0}),this.pie10=this.pie10||(0,I.A)(g,{h:60,l:-20}),this.pie11=this.pie11||(0,I.A)(g,{h:-60,l:-20}),this.pie12=this.pie12||(0,I.A)(g,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=null!==(t=this.vennTitleTextColor)&&void 0!==t?t:this.titleColor,this.vennSetTextColor=null!==(e=this.vennSetTextColor)&&void 0!==e?e:this.textColor,this.quadrant1Fill=this.quadrant1Fill||g,this.quadrant2Fill=this.quadrant2Fill||(0,I.A)(g,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,I.A)(g,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,I.A)(g,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,I.A)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,I.A)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,I.A)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,B.A)(this.quadrant1Fill):(0,L.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null===(r=this.xyChart)||void 0===r?void 0:r.backgroundColor)||this.background,titleColor:(null===(i=this.xyChart)||void 0===i?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:(null===(n=this.xyChart)||void 0===n?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null===(a=this.xyChart)||void 0===a?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null===(o=this.xyChart)||void 0===o?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null===(s=this.xyChart)||void 0===s?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null===(l=this.xyChart)||void 0===l?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null===(c=this.xyChart)||void 0===c?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null===(u=this.xyChart)||void 0===u?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null===(h=this.xyChart)||void 0===h?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null===(d=this.xyChart)||void 0===d?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||g,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||g,this.git1=this.git1||f,this.git2=this.git2||y,this.git3=this.git3||(0,I.A)(g,{h:-30}),this.git4=this.git4||(0,I.A)(g,{h:-60}),this.git5=this.git5||(0,I.A)(g,{h:-90}),this.git6=this.git6||(0,I.A)(g,{h:60}),this.git7=this.git7||(0,I.A)(g,{h:120}),this.darkMode?(this.git0=(0,B.A)(this.git0,25),this.git1=(0,B.A)(this.git1,25),this.git2=(0,B.A)(this.git2,25),this.git3=(0,B.A)(this.git3,25),this.git4=(0,B.A)(this.git4,25),this.git5=(0,B.A)(this.git5,25),this.git6=(0,B.A)(this.git6,25),this.git7=(0,B.A)(this.git7,25)):(this.git0=(0,L.A)(this.git0,25),this.git1=(0,L.A)(this.git1,25),this.git2=(0,L.A)(this.git2,25),this.git3=(0,L.A)(this.git3,25),this.git4=(0,L.A)(this.git4,25),this.git5=(0,L.A)(this.git5,25),this.git6=(0,L.A)(this.git6,25),this.git7=(0,L.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,R.A)(this.git0),this.gitInv1=this.gitInv1||(0,R.A)(this.git1),this.gitInv2=this.gitInv2||(0,R.A)(this.git2),this.gitInv3=this.gitInv3||(0,R.A)(this.git3),this.gitInv4=this.gitInv4||(0,R.A)(this.git4),this.gitInv5=this.gitInv5||(0,R.A)(this.git5),this.gitInv6=this.gitInv6||(0,R.A)(this.git6),this.gitInv7=this.gitInv7||(0,R.A)(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=null!==(p=this.commitLineColor)&&void 0!==p?p:"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||V,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||G}},{key:"calculate",value:function(t){var e=this;if("object"===(0,C.A)(t)){var r=Object.keys(t);r.forEach(function(r){e[r]=t[r]}),this.updateColors(),r.forEach(function(r){e[r]=t[r]})}else this.updateColors()}}])}(),(0,F.K2)(p,"Theme"),p),yt=(0,F.K2)(function(t){var e=new ft;return e.calculate(t),e},"getThemeVariables"),mt=(g=function(){return(0,D.A)(function t(){var e,r;(0,E.A)(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,B.A)(this.primaryColor,16),this.tertiaryColor=(0,I.A)(this.primaryColor,{h:-160}),this.primaryBorderColor=(0,R.A)(this.background),this.secondaryBorderColor=X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=X(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,R.A)(this.primaryColor),this.secondaryTextColor=(0,R.A)(this.secondaryColor),this.tertiaryTextColor=(0,R.A)(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,B.A)((0,R.A)("#323D47"),10),this.border1="#ccc",this.border2=(0,O.A)(255,255,255,.25),this.arrowheadColor=(0,R.A)(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=null!==(e=this.noteBkgColor)&&void 0!==e?e:"#FEF9C3",this.noteTextColor=null!==(r=this.noteTextColor)&&void 0!==r?r:"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"},[{key:"updateColors",value:function(){var t,e,r,i,n,a,o,s,l,c,u,h,d,p;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||(0,I.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,I.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||X(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||X(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||X(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||(0,R.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,R.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,R.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,R.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,L.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,R.A)(this.lineColor),this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,B.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(var g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||(0,R.A)(this["cScale"+g]);for(var f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||(0,B.A)(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||(0,L.A)(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(var y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleLabel"+y]=(0,L.A)(this["cScale"+y],75);for(var m=this.darkMode?-4:-1,v=0;v<5;v++)this["surface"+v]=this["surface"+v]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:m*(5+3*v)}),this["surfacePeer"+v]=this["surfacePeer"+v]||(0,I.A)(this.mainBkg,{h:180,s:-15,l:m*(8+3*v)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||(0,I.A)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||(0,I.A)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||(0,I.A)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||(0,I.A)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||(0,I.A)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||(0,I.A)(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||(0,I.A)(this.primaryColor,{l:-10}),this.pie5=this.pie5||(0,I.A)(this.secondaryColor,{l:-10}),this.pie6=this.pie6||(0,I.A)(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||(0,I.A)(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||(0,I.A)(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||(0,I.A)(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||(0,I.A)(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||(0,I.A)(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||(0,I.A)(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=null!==(t=this.vennTitleTextColor)&&void 0!==t?t:this.titleColor,this.vennSetTextColor=null!==(e=this.vennSetTextColor)&&void 0!==e?e:this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||(0,I.A)(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||(0,I.A)(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||(0,I.A)(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||(0,I.A)(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||(0,I.A)(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||(0,I.A)(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,_.A)(this.quadrant1Fill)?(0,B.A)(this.quadrant1Fill):(0,L.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null===(r=this.xyChart)||void 0===r?void 0:r.backgroundColor)||this.background,titleColor:(null===(i=this.xyChart)||void 0===i?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:(null===(n=this.xyChart)||void 0===n?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null===(a=this.xyChart)||void 0===a?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null===(o=this.xyChart)||void 0===o?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null===(s=this.xyChart)||void 0===s?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null===(l=this.xyChart)||void 0===l?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null===(c=this.xyChart)||void 0===c?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null===(u=this.xyChart)||void 0===u?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null===(h=this.xyChart)||void 0===h?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null===(d=this.xyChart)||void 0===d?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,L.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||(0,I.A)(this.primaryColor,{h:-30}),this.git4=this.git4||(0,I.A)(this.primaryColor,{h:-60}),this.git5=this.git5||(0,I.A)(this.primaryColor,{h:-90}),this.git6=this.git6||(0,I.A)(this.primaryColor,{h:60}),this.git7=this.git7||(0,I.A)(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,B.A)(this.git0,25),this.git1=(0,B.A)(this.git1,25),this.git2=(0,B.A)(this.git2,25),this.git3=(0,B.A)(this.git3,25),this.git4=(0,B.A)(this.git4,25),this.git5=(0,B.A)(this.git5,25),this.git6=(0,B.A)(this.git6,25),this.git7=(0,B.A)(this.git7,25)):(this.git0=(0,L.A)(this.git0,25),this.git1=(0,L.A)(this.git1,25),this.git2=(0,L.A)(this.git2,25),this.git3=(0,L.A)(this.git3,25),this.git4=(0,L.A)(this.git4,25),this.git5=(0,L.A)(this.git5,25),this.git6=(0,L.A)(this.git6,25),this.git7=(0,L.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,R.A)(this.git0),this.gitInv1=this.gitInv1||(0,R.A)(this.git1),this.gitInv2=this.gitInv2||(0,R.A)(this.git2),this.gitInv3=this.gitInv3||(0,R.A)(this.git3),this.gitInv4=this.gitInv4||(0,R.A)(this.git4),this.gitInv5=this.gitInv5||(0,R.A)(this.git5),this.gitInv6=this.gitInv6||(0,R.A)(this.git6),this.gitInv7=this.gitInv7||(0,R.A)(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=null!==(p=this.commitLineColor)&&void 0!==p?p:"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||V,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||G}},{key:"calculate",value:function(t){var e=this;if("object"===(0,C.A)(t)){var r=Object.keys(t);r.forEach(function(r){e[r]=t[r]}),this.updateColors(),r.forEach(function(r){e[r]=t[r]})}else this.updateColors()}}])}(),(0,F.K2)(g,"Theme"),g),vt={base:{getThemeVariables:Q},dark:{getThemeVariables:tt},default:{getThemeVariables:rt},forest:{getThemeVariables:nt},neutral:{getThemeVariables:ot},neo:{getThemeVariables:lt},"neo-dark":{getThemeVariables:ut},redux:{getThemeVariables:dt},"redux-dark":{getThemeVariables:gt},"redux-color":{getThemeVariables:yt},"redux-dark-color":{getThemeVariables:(0,F.K2)(function(t){var e=new mt;return e.calculate(t),e},"getThemeVariables")}},xt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},bt=(0,k.A)((0,k.A)({},xt),{},{deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:vt.default.getThemeVariables(),sequence:(0,k.A)((0,k.A)({},xt.sequence),{},{messageFont:(0,F.K2)(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:(0,F.K2)(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:(0,F.K2)(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")}),class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:(0,k.A)((0,k.A)({},xt.gantt),{},{tickInterval:void 0,useWidth:void 0}),c4:(0,k.A)((0,k.A)({},xt.c4),{},{useWidth:void 0,personFont:(0,F.K2)(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:(0,k.A)((0,k.A)({},xt.flowchart),{},{inheritDir:!1}),external_personFont:(0,F.K2)(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:(0,F.K2)(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:(0,F.K2)(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:(0,F.K2)(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:(0,F.K2)(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:(0,F.K2)(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:(0,F.K2)(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:(0,F.K2)(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:(0,F.K2)(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:(0,F.K2)(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:(0,F.K2)(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:(0,F.K2)(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:(0,F.K2)(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:(0,F.K2)(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:(0,F.K2)(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:(0,F.K2)(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:(0,F.K2)(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:(0,F.K2)(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:(0,F.K2)(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:(0,F.K2)(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:(0,F.K2)(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")}),pie:(0,k.A)((0,k.A)({},xt.pie),{},{useWidth:984}),xyChart:(0,k.A)((0,k.A)({},xt.xyChart),{},{useWidth:void 0}),requirement:(0,k.A)((0,k.A)({},xt.requirement),{},{useWidth:void 0}),packet:(0,k.A)({},xt.packet),eventmodeling:(0,k.A)({},xt.eventmodeling),treeView:(0,k.A)((0,k.A)({},xt.treeView),{},{useWidth:void 0}),radar:(0,k.A)({},xt.radar),ishikawa:(0,k.A)({},xt.ishikawa),sankey:(0,k.A)((0,k.A)({},xt.sankey),{},{nodeColors:void 0}),treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:(0,k.A)({},xt.venn)}),kt=(0,F.K2)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce(function(r,i){return Array.isArray(t[i])?r:"object"===(0,C.A)(t[i])&&null!==t[i]?[].concat((0,b.A)(r),[e+i],(0,b.A)(kt(t[i],""))):[].concat((0,b.A)(r),[e+i])},[])},"keyify"),Ct=new Set(kt(bt,"")),At=bt,Dt=(0,F.K2)(function(t){if(F.Rm.debug("sanitizeDirective called with",t),"object"===(0,C.A)(t)&&null!=t)if(Array.isArray(t))t.forEach(function(t){return Dt(t)});else{for(var e=0,r=Object.keys(t);e<r.length;e++){var i=r[e];if(F.Rm.debug("Checking key",i),i.startsWith("__")||i.includes("proto")||i.includes("constr")||!Ct.has(i)||null==t[i])F.Rm.debug("sanitize deleting key: ",i),delete t[i];else if("object"!==(0,C.A)(t[i]))for(var n=0,a=["themeCSS","fontFamily","altFontFamily"];n<a.length;n++){var o=a[n];i.includes(o)&&(F.Rm.debug("sanitizing css option",i),t[i]=Et(t[i]))}else if("nodeColors"===i)for(var s=/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,l=0,c=Object.keys(t[i]);l<c.length;l++){var u=c[l];"string"==typeof t[i][u]&&s.test(t[i][u])||(F.Rm.debug("sanitize deleting invalid color:",u,t[i][u]),delete t[i][u])}else F.Rm.debug("sanitizing object",i),Dt(t[i])}if(t.themeVariables)for(var h=0,d=Object.keys(t.themeVariables);h<d.length;h++){var p=d[h],g=t.themeVariables[p];null!=g&&g.match&&!g.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[p]="")}F.Rm.debug("After sanitization",t)}},"sanitizeDirective"),Et=(0,F.K2)(function(t){var e,r=0,i=0,n=(0,x.A)(t);try{for(n.s();!(e=n.n()).done;){var a=e.value;if(r<i)return"{ /* ERROR: Unbalanced CSS */ }";"{"===a?r++:"}"===a&&i++}}catch(t){n.e(t)}finally{n.f()}return r!==i?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),Tt=Object.freeze(At),wt=(0,F.K2)(function(t){return!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase())},"evaluate"),St=H({},Tt),Ft=[],_t=H({},Tt),Bt=(0,F.K2)(function(t,e){var r,i=H({},t),n={},a=(0,x.A)(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;Kt(o),n=H(n,o)}}catch(t){a.e(t)}finally{a.f()}if(i=H(i,n),n.theme&&n.theme in vt){var s=H({},y),l=H(s.themeVariables||{},n.themeVariables);i.theme&&i.theme in vt&&(i.themeVariables=vt[i.theme].getThemeVariables(l))}return $t(_t=i),_t},"updateCurrentConfig"),Lt=(0,F.K2)(function(t){return St=H({},Tt),St=H(St,t),t.theme&&vt[t.theme]&&(St.themeVariables=vt[t.theme].getThemeVariables(t.themeVariables)),Bt(St,Ft),St},"setSiteConfig"),It=(0,F.K2)(function(t){y=H({},t)},"saveConfigFromInitialize"),Rt=(0,F.K2)(function(t){return St=H(St,t),Bt(St,Ft),St},"updateSiteConfig"),Ot=(0,F.K2)(function(){return H({},St)},"getSiteConfig"),Mt=(0,F.K2)(function(t){return $t(t),H(_t,t),Nt()},"setConfig"),Nt=(0,F.K2)(function(){return H({},_t)},"getConfig"),Kt=(0,F.K2)(function(t){var e;t&&(["secure"].concat((0,b.A)(null!==(e=St.secure)&&void 0!==e?e:[])).forEach(function(e){Object.hasOwn(t,e)&&(F.Rm.debug("Denied attempt to modify a secure key ".concat(e),t[e]),delete t[e])}),Object.keys(t).forEach(function(e){e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(function(e){"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"===(0,C.A)(t[e])&&Kt(t[e])}))},"sanitize"),Pt=(0,F.K2)(function(t){var e;Dt(t),!t.fontFamily||null!==(e=t.themeVariables)&&void 0!==e&&e.fontFamily||(t.themeVariables=(0,k.A)((0,k.A)({},t.themeVariables),{},{fontFamily:t.fontFamily})),Ft.push(t),Bt(St,Ft)},"addDirective"),qt=(0,F.K2)(function(){Bt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:St,Ft=[])},"reset"),zt={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},Wt={},Yt=(0,F.K2)(function(t){Wt[t]||(F.Rm.warn(zt[t]),Wt[t]=!0)},"issueWarning"),$t=(0,F.K2)(function(t){t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Yt("LAZY_LOAD_DEPRECATED")},"checkConfig"),jt=(0,F.K2)(function(){var t={};y&&(t=H(t,y));for(var e=0,r=Ft;e<r.length;e++){var i=r[e];t=H(t,i)}return t},"getUserDefinedConfig"),Ut=(0,F.K2)(function(t){var e,r,i,n;return null!=(null===(e=t.flowchart)||void 0===e?void 0:e.htmlLabels)&&Yt("FLOWCHART_HTML_LABELS_DEPRECATED"),wt(null===(r=null!==(i=t.htmlLabels)&&void 0!==i?i:null===(n=t.flowchart)||void 0===n?void 0:n.htmlLabels)||void 0===r||r)},"getEffectiveHtmlLabels"),Ht=/<br\s*\/?>/gi,Vt=(0,F.K2)(function(t){return t?ne(t).replace(/\\n/g,"#br#").split("#br#"):[""]},"getRows"),Gt=function(){var t=!1;return function(){t||(Xt(),t=!0)}}();function Xt(){var t="data-temp-href-target";M.A.addHook("beforeSanitizeAttributes",function(e){var r;"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,null!==(r=e.getAttribute("target"))&&void 0!==r?r:"")}),M.A.addHook("afterSanitizeAttributes",function(e){var r;"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",null!==(r=e.getAttribute(t))&&void 0!==r?r:""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))})}(0,F.K2)(Xt,"setupDompurifyHooks");var Zt=(0,F.K2)(function(t){return Gt(),M.A.sanitize(t)},"removeScript"),Qt=(0,F.K2)(function(t,e){if(Ut(e)){var r=e.securityLevel;"antiscript"===r||"strict"===r||"sandbox"===r?t=Zt(t):"loose"!==r&&(t=(t=(t=ne(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),t=ie(t))}return t},"sanitizeMore"),Jt=(0,F.K2)(function(t,e){return t?t=e.dompurifyConfig?M.A.sanitize(Qt(t,e),e.dompurifyConfig).toString():M.A.sanitize(Qt(t,e),{FORBID_TAGS:["style"]}).toString():t},"sanitizeText"),te=(0,F.K2)(function(t,e){return"string"==typeof t?Jt(t,e):t.flat().map(function(t){return Jt(t,e)})},"sanitizeTextOrArray"),ee=(0,F.K2)(function(t){return Ht.test(t)},"hasBreaks"),re=(0,F.K2)(function(t){return t.split(Ht)},"splitBreaks"),ie=(0,F.K2)(function(t){return t.replace(/#br#/g,"<br/>")},"placeholderToBreak"),ne=(0,F.K2)(function(t){return t.replace(Ht,"#br#")},"breakToPlaceholder"),ae=(0,F.K2)(function(t){var e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),oe=(0,F.K2)(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=e.filter(function(t){return!isNaN(t)});return Math.max.apply(Math,(0,b.A)(i))},"getMax"),se=(0,F.K2)(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=e.filter(function(t){return!isNaN(t)});return Math.min.apply(Math,(0,b.A)(i))},"getMin"),le=(0,F.K2)(function(t){for(var e=t.split(/(,)/),r=[],i=0;i<e.length;i++){var n=e[i];if(","===n&&i>0&&i+1<e.length){var a=e[i-1],o=e[i+1];ue(a,o)&&(n=a+","+o,i++,r.pop())}r.push(he(n))}return r.join("")},"parseGenericTypes"),ce=(0,F.K2)(function(t,e){return Math.max(0,t.split(e).length-1)},"countOccurrence"),ue=(0,F.K2)(function(t,e){var r=ce(t,"~"),i=ce(e,"~");return 1===r&&1===i},"shouldCombineSets"),he=(0,F.K2)(function(t){var e=ce(t,"~"),r=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),r=!0);for(var i=(0,b.A)(t),n=i.indexOf("~"),a=i.lastIndexOf("~");-1!==n&&-1!==a&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),de=(0,F.K2)(function(){return void 0!==window.MathMLElement},"isMathMLSupported"),pe=/\$\$(.*)\$\$/g,ge=(0,F.K2)(function(t){var e,r;return(null!==(e=null===(r=t.match(pe))||void 0===r?void 0:r.length)&&void 0!==e?e:0)>0},"hasKatex"),fe=(0,F.K2)(function(){var t=(0,v.A)((0,m.A)().m(function t(e,r){var i,n,a;return(0,m.A)().w(function(t){for(;;)switch(t.n){case 0:return i=document.createElement("div"),t.n=1,me(e,r);case 1:return i.innerHTML=t.v,i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0",null==(n=document.querySelector("body"))||n.insertAdjacentElement("beforeend",i),a={width:i.clientWidth,height:i.clientHeight},i.remove(),t.a(2,a)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"calculateMathMLDimensions"),ye=(0,F.K2)(function(){var t=(0,v.A)((0,m.A)().m(function t(e,i){var n,a,o;return(0,m.A)().w(function(t){for(;;)switch(t.n){case 0:if(ge(e)){t.n=1;break}return t.a(2,e);case 1:if(de()||i.legacyMathML||i.forceLegacyMathML){t.n=2;break}return t.a(2,e.replace(pe,"MathML is unsupported in this environment."));case 2:return t.n=3,Promise.resolve().then(r.bind(r,50437));case 3:return n=t.v,a=n.default,o=i.forceLegacyMathML||!de()&&i.legacyMathML?"htmlAndMathml":"mathml",t.a(2,e.split(Ht).map(function(t){return ge(t)?'<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">'.concat(t,"</div>"):"<div>".concat(t,"</div>")}).join("").replace(pe,function(t,e){return a.renderToString(e,{throwOnError:!0,displayMode:!0,output:o}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,"")}));case 4:return t.a(2,e.replace(pe,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library."))}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"renderKatexUnsanitized"),me=(0,F.K2)(function(){var t=(0,v.A)((0,m.A)().m(function t(e,r){var i;return(0,m.A)().w(function(t){for(;;)switch(t.n){case 0:return i=Jt,t.n=1,ye(e,r);case 1:return t.a(2,i(t.v,r))}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"renderKatexSanitized"),ve={getRows:Vt,sanitizeText:Jt,sanitizeTextOrArray:te,hasBreaks:ee,splitBreaks:re,lineBreakRegex:Ht,removeScript:Zt,getUrl:ae,evaluate:wt,getMax:oe,getMin:se},xe=(0,F.K2)(function(t,e){var r,i=(0,x.A)(e);try{for(i.s();!(r=i.n()).done;){var n=r.value;t.attr(n[0],n[1])}}catch(t){i.e(t)}finally{i.f()}},"d3Attrs"),be=(0,F.K2)(function(t,e,r){var i=new Map;return r?(i.set("width","100%"),i.set("style","max-width: ".concat(e,"px;"))):(i.set("height",t),i.set("width",e)),i},"calculateSvgSizeAttrs"),ke=(0,F.K2)(function(t,e,r,i){var n=be(e,r,i);xe(t,n)},"configureSvgSize"),Ce=(0,F.K2)(function(t,e,r,i){var n=e.node().getBBox(),a=n.width,o=n.height;F.Rm.info("SVG bounds: ".concat(a,"x").concat(o),n);var s=0,l=0;F.Rm.info("Graph bounds: ".concat(s,"x").concat(l),t),s=a+2*r,l=o+2*r,F.Rm.info("Calculated bounds: ".concat(s,"x").concat(l)),ke(e,l,s,i);var c="".concat(n.x-r," ").concat(n.y-r," ").concat(n.width+2*r," ").concat(n.height+2*r);e.attr("viewBox",c)},"setupGraphViewbox"),Ae={};function De(t){return(0,b.A)(t.cssRules).map(function(t){return t.cssText}).join("\n")}(0,F.K2)(De,"cssStyleSheetToString");var Ee=(0,F.K2)(function(t,e,r,i){var n,a,o="";return t in Ae&&Ae[t]?o=Ae[t]((0,k.A)((0,k.A)({},r),{},{svgId:i})):F.Rm.warn("No theme found for ".concat(t))," & {\n    font-family: ".concat(r.fontFamily,";\n    font-size: ").concat(r.fontSize,";\n    fill: ").concat(r.textColor,"\n  }\n  @keyframes edge-animation-frame {\n    from {\n      stroke-dashoffset: 0;\n    }\n  }\n  @keyframes dash {\n    to {\n      stroke-dashoffset: 0;\n    }\n  }\n  & .edge-animation-slow {\n    stroke-dasharray: 9,5 !important;\n    stroke-dashoffset: 900;\n    animation: dash 50s linear infinite;\n    stroke-linecap: round;\n  }\n  & .edge-animation-fast {\n    stroke-dasharray: 9,5 !important;\n    stroke-dashoffset: 900;\n    animation: dash 20s linear infinite;\n    stroke-linecap: round;\n  }\n  /* Classes common for multiple diagrams */\n\n  & .error-icon {\n    fill: ").concat(r.errorBkgColor,";\n  }\n  & .error-text {\n    fill: ").concat(r.errorTextColor,";\n    stroke: ").concat(r.errorTextColor,";\n  }\n\n  & .edge-thickness-normal {\n    stroke-width: ").concat(null!==(n=r.strokeWidth)&&void 0!==n?n:1,"px;\n  }\n  & .edge-thickness-thick {\n    stroke-width: 3.5px\n  }\n  & .edge-pattern-solid {\n    stroke-dasharray: 0;\n  }\n  & .edge-thickness-invisible {\n    stroke-width: 0;\n    fill: none;\n  }\n  & .edge-pattern-dashed{\n    stroke-dasharray: 3;\n  }\n  .edge-pattern-dotted {\n    stroke-dasharray: 2;\n  }\n\n  & .marker {\n    fill: ").concat(r.lineColor,";\n    stroke: ").concat(r.lineColor,";\n  }\n  & .marker.cross {\n    stroke: ").concat(r.lineColor,";\n  }\n\n  & svg {\n    font-family: ").concat(r.fontFamily,";\n    font-size: ").concat(r.fontSize,";\n  }\n   & p {\n    margin: 0\n   }\n\n  ").concat(o,"\n  .node .neo-node {\n    stroke: ").concat(r.nodeBorder,';\n  }\n\n  [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {\n    stroke: ').concat(r.useGradient?"url("+i+"-gradient)":r.nodeBorder,";\n    filter: ").concat(r.dropShadow?r.dropShadow.replace("url(#drop-shadow)","url(".concat(i,"-drop-shadow)")):"none",';\n  }\n\n\n  [data-look="neo"].node path {\n    stroke: ').concat(r.useGradient?"url("+i+"-gradient)":r.nodeBorder,";\n    stroke-width: ").concat(null!==(a=r.strokeWidth)&&void 0!==a?a:1,'px;\n  }\n\n  [data-look="neo"].node .outer-path {\n    filter: ').concat(r.dropShadow?r.dropShadow.replace("url(#drop-shadow)","url(".concat(i,"-drop-shadow)")):"none",';\n  }\n\n  [data-look="neo"].node .neo-line path {\n    stroke: ').concat(r.nodeBorder,';\n    filter: none;\n  }\n\n  [data-look="neo"].node circle{\n    stroke: ').concat(r.useGradient?"url("+i+"-gradient)":r.nodeBorder,";\n    filter: ").concat(r.dropShadow?r.dropShadow.replace("url(#drop-shadow)","url(".concat(i,"-drop-shadow)")):"none",';\n  }\n\n  [data-look="neo"].node circle .state-start{\n    fill: #000000;\n  }\n\n  [data-look="neo"].icon-shape .icon {\n    fill: ').concat(r.useGradient?"url("+i+"-gradient)":r.nodeBorder,";\n    filter: ").concat(r.dropShadow?r.dropShadow.replace("url(#drop-shadow)","url(".concat(i,"-drop-shadow)")):"none",';\n  }\n\n    [data-look="neo"].icon-shape .icon-neo path {\n    stroke: ').concat(r.useGradient?"url("+i+"-gradient)":r.nodeBorder,";\n    filter: ").concat(r.dropShadow?r.dropShadow.replace("url(#drop-shadow)","url(".concat(i,"-drop-shadow)")):"none",";\n  }\n\n  ").concat(e,"\n")},"getStyles"),Te=(0,F.K2)(function(t,e){void 0!==e&&(Ae[t]=e)},"addStylesForDiagram"),we=Ee,Se={};(0,F.VA)(Se,{clear:function(){return Ie},getAccDescription:function(){return Ne},getAccTitle:function(){return Oe},getDiagramTitle:function(){return Pe},setAccDescription:function(){return Me},setAccTitle:function(){return Re},setDiagramTitle:function(){return Ke}});var Fe="",_e="",Be="",Le=(0,F.K2)(function(t){return Jt(t,Nt())},"sanitizeText"),Ie=(0,F.K2)(function(){Fe="",Be="",_e=""},"clear"),Re=(0,F.K2)(function(t){Fe=Le(t).replace(/^\s+/g,"")},"setAccTitle"),Oe=(0,F.K2)(function(){return Fe},"getAccTitle"),Me=(0,F.K2)(function(t){Be=Le(t).replace(/\n\s+/g,"\n")},"setAccDescription"),Ne=(0,F.K2)(function(){return Be},"getAccDescription"),Ke=(0,F.K2)(function(t){_e=Le(t)},"setDiagramTitle"),Pe=(0,F.K2)(function(){return _e},"getDiagramTitle"),qe=F.Rm,ze=F.He,We=Nt,Ye=Mt,$e=Tt,je=(0,F.K2)(function(t){return Jt(t,We())},"sanitizeText"),Ue=Ce,He=(0,F.K2)(function(){return Se},"getCommonDb"),Ve={},Ge=(0,F.K2)(function(t,e,r){var i;Ve[t]&&qe.warn("Diagram with id ".concat(t," already registered. Overwriting.")),Ve[t]=e,r&&$(t,r),Te(t,e.styles),null===(i=e.injectUtils)||void 0===i||i.call(e,qe,ze,We,je,Ue,He(),function(){})},"registerDiagram"),Xe=(0,F.K2)(function(t){if(t in Ve)return Ve[t];throw new Ze(t)},"getDiagram"),Ze=(f=function(t){function e(t){return(0,E.A)(this,e),(0,T.A)(this,e,["Diagram ".concat(t," not found.")])}return(0,w.A)(e,t),(0,D.A)(e)}((0,S.A)(Error)),(0,F.K2)(f,"DiagramNotFoundError"),f)},43840:function(t,e,r){"use strict";r.d(e,{o:function(){return i}});var i=(0,r(68548).K2)(function(){return"\n  /* Font Awesome icon styling - consolidated */\n  .label-icon {\n    display: inline-block;\n    height: 1em;\n    overflow: visible;\n    vertical-align: -0.125em;\n  }\n  \n  .node .label-icon path {\n    fill: currentColor;\n    stroke: revert;\n    stroke-width: revert;\n  }\n"},"getIconStyles")},69914:function(t,e,r){"use strict";r.d(e,{IU:function(){return A},Jo:function(){return O},T_:function(){return w},g0:function(){return st},jP:function(){return E}});var i=r(41034),n=r(20908),a=r(30388),o=(r(74423),r(607)),s=r(86735),l=r(43376),c=r(17428),u=r(51266),h=r(34539),d=r(40985),p=r(68548),g=r(63219),f=r(79435),y=(0,p.K2)(function(t,e,r,i,n){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6?arguments[6]:void 0;e.arrowTypeStart&&x(t,"start",e.arrowTypeStart,r,i,n,a,o),e.arrowTypeEnd&&x(t,"end",e.arrowTypeEnd,r,i,n,a,o)},"addEdgeMarkers"),m={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},v=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],x=(0,p.K2)(function(t,e,r,i,n,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=m[r],c=l&&v.includes(l.type);if(l){var u=l.type,h="start"===e?"Start":"End",d=o&&c?"-margin":"",g="".concat(n,"_").concat(a,"-").concat(u).concat(h).concat(d);if(s&&""!==s.trim()){var f=s.replace(/[^\dA-Za-z]/g,"_"),y="".concat(g,"_").concat(f);if(!document.getElementById(y)){var x=document.getElementById(g);if(x){var b,k=x.cloneNode(!0);k.id=y,k.querySelectorAll("path, circle, line").forEach(function(t){t.setAttribute("stroke",s),l.fill&&t.setAttribute("fill",s)}),null===(b=x.parentNode)||void 0===b||b.appendChild(k)}}t.attr("marker-".concat(e),"url(".concat(i,"#").concat(y,")"))}else t.attr("marker-".concat(e),"url(".concat(i,"#").concat(g,")"))}else p.Rm.warn("Unknown arrow type: ".concat(r))},"addEdgeMarker"),b=(0,p.K2)(function(t){var e,r;return"string"==typeof t?t:null===(e=(0,d.D7)())||void 0===e||null===(r=e.flowchart)||void 0===r?void 0:r.curve},"resolveEdgeCurveType"),k=new Map,C=new Map,A=(0,p.K2)(function(){k.clear(),C.clear()},"clear"),D=(0,p.K2)(function(t){return t?"string"==typeof t?t:t.reduce(function(t,e){return t+";"+e},""):""},"getLabelStyles"),E=(0,p.K2)(function(){var t=(0,a.A)((0,n.A)().m(function t(e,r){var i,a,l,h,f,y,m,v,x,b,A,E,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W,Y,$,j,U,H,V,G,X,Z,Q;return(0,n.A)().w(function(t){for(;;)switch(t.n){case 0:return i=(0,d.D7)(),a=(0,d.E)(i),l=(0,c.GX)(r),h=l.labelStyles,r.labelStyle=h,f=e.insert("g").attr("class","edgeLabel"),y=f.insert("g").attr("class","label").attr("data-id",r.id),m="markdown"===r.labelType,t.n=1,(0,u.GZ)(e,r.label,{style:D(r.labelStyle),useHtmlLabels:a,addSvgBackground:!0,isNode:!1,markdown:m,width:void 0},i);case 1:if(v=t.v,y.node().appendChild(v),p.Rm.info("abc82",r,r.labelType),x=v.getBBox(),b=x,a?(A=v.children[0],E=(0,g.Ltv)(v),x=A.getBoundingClientRect(),b=x,E.attr("width",x.width),E.attr("height",x.height)):(w=(0,g.Ltv)(v).select("text").node())&&"function"==typeof w.getBBox&&(b=w.getBBox()),y.attr("transform",(0,o.Wg)(b,a)),k.set(r.id,f),r.width=x.width,r.height=x.height,!r.startLabelLeft){t.n=3;break}return F=e.insert("g").attr("class","edgeTerminals"),_=F.insert("g").attr("class","inner"),t.n=2,(0,s.DA)(_,r.startLabelLeft,D(r.labelStyle)||"",!1,!1);case 2:B=t.v,S=B,L=B.getBBox(),a&&(I=B.children[0],R=(0,g.Ltv)(B),L=I.getBoundingClientRect(),R.attr("width",L.width),R.attr("height",L.height)),_.attr("transform",(0,o.Wg)(L,a)),C.get(r.id)||C.set(r.id,{}),C.get(r.id).startLeft=F,T(S,r.startLabelLeft);case 3:if(!r.startLabelRight){t.n=5;break}return O=e.insert("g").attr("class","edgeTerminals"),M=O.insert("g").attr("class","inner"),t.n=4,(0,s.DA)(M,r.startLabelRight,D(r.labelStyle)||"",!1,!1);case 4:N=t.v,S=N,K=N.getBBox(),a&&(P=N.children[0],q=(0,g.Ltv)(N),K=P.getBoundingClientRect(),q.attr("width",K.width),q.attr("height",K.height)),M.attr("transform",(0,o.Wg)(K,a)),C.get(r.id)||C.set(r.id,{}),C.get(r.id).startRight=O,T(S,r.startLabelRight);case 5:if(!r.endLabelLeft){t.n=7;break}return z=e.insert("g").attr("class","edgeTerminals"),W=z.insert("g").attr("class","inner"),t.n=6,(0,s.DA)(z,r.endLabelLeft,D(r.labelStyle)||"",!1,!1);case 6:Y=t.v,S=Y,$=Y.getBBox(),a&&(j=Y.children[0],U=(0,g.Ltv)(Y),$=j.getBoundingClientRect(),U.attr("width",$.width),U.attr("height",$.height)),W.attr("transform",(0,o.Wg)($,a)),C.get(r.id)||C.set(r.id,{}),C.get(r.id).endLeft=z,T(S,r.endLabelLeft);case 7:if(!r.endLabelRight){t.n=9;break}return H=e.insert("g").attr("class","edgeTerminals"),V=H.insert("g").attr("class","inner"),t.n=8,(0,s.DA)(H,r.endLabelRight,D(r.labelStyle)||"",!1,!1);case 8:G=t.v,S=G,X=G.getBBox(),a&&(Z=G.children[0],Q=(0,g.Ltv)(G),X=Z.getBoundingClientRect(),Q.attr("width",X.width),Q.attr("height",X.height)),V.attr("transform",(0,o.Wg)(X,a)),C.get(r.id)||C.set(r.id,{}),C.get(r.id).endRight=H,T(S,r.endLabelRight);case 9:return t.a(2,v)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"insertEdgeLabel");function T(t,e){(0,d.E)((0,d.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,p.K2)(T,"setTerminalWidth");var w=(0,p.K2)(function(t,e){p.Rm.debug("Moving label abc88 ",t.id,t.label,k.get(t.id),e);var r=e.updatedPath?e.updatedPath:e.originalPath,i=(0,d.D7)(),n=(0,l.O)(i).subGraphTitleTotalMargin;if(t.label){var a=k.get(t.id),o=t.x,s=t.y;if(r){var c=h._K.calcLabelPosition(r);p.Rm.debug("Moving label "+t.label+" from (",o,",",s,") to (",c.x,",",c.y,") abc88"),e.updatedPath&&(o=c.x,s=c.y)}a.attr("transform","translate(".concat(o,", ").concat(s+n/2,")"))}if(t.startLabelLeft){var u=C.get(t.id).startLeft,g=t.x,f=t.y;if(r){var y=h._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);g=y.x,f=y.y}u.attr("transform","translate(".concat(g,", ").concat(f,")"))}if(t.startLabelRight){var m=C.get(t.id).startRight,v=t.x,x=t.y;if(r){var b=h._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);v=b.x,x=b.y}m.attr("transform","translate(".concat(v,", ").concat(x,")"))}if(t.endLabelLeft){var A=C.get(t.id).endLeft,D=t.x,E=t.y;if(r){var T=h._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);D=T.x,E=T.y}A.attr("transform","translate(".concat(D,", ").concat(E,")"))}if(t.endLabelRight){var w=C.get(t.id).endRight,S=t.x,F=t.y;if(r){var _=h._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);S=_.x,F=_.y}w.attr("transform","translate(".concat(S,", ").concat(F,")"))}},"positionEdgeLabel"),S=(0,p.K2)(function(t,e){var r=t.x,i=t.y,n=Math.abs(e.x-r),a=Math.abs(e.y-i),o=t.width/2,s=t.height/2;return n>=o||a>=s},"outsideNode"),F=(0,p.K2)(function(t,e,r){p.Rm.debug("intersection calc abc89:\n  outsidePoint: ".concat(JSON.stringify(e),"\n  insidePoint : ").concat(JSON.stringify(r),"\n  node        : x:").concat(t.x," y:").concat(t.y," w:").concat(t.width," h:").concat(t.height));var i=t.x,n=t.y,a=Math.abs(i-r.x),o=t.width/2,s=r.x<e.x?o-a:o+a,l=t.height/2,c=Math.abs(e.y-r.y),u=Math.abs(e.x-r.x);if(Math.abs(n-e.y)*o>Math.abs(i-e.x)*l){var h=r.y<e.y?e.y-l-n:n-l-e.y;s=u*h/c;var d={x:r.x<e.x?r.x+s:r.x-u+s,y:r.y<e.y?r.y+c-h:r.y-c+h};return 0===s&&(d.x=e.x,d.y=e.y),0===u&&(d.x=e.x),0===c&&(d.y=e.y),p.Rm.debug("abc89 top/bottom calc, Q ".concat(c,", q ").concat(h,", R ").concat(u,", r ").concat(s),d),d}var g=c*(s=r.x<e.x?e.x-o-i:i-o-e.x)/u,f=r.x<e.x?r.x+u-s:r.x-u+s,y=r.y<e.y?r.y+g:r.y-g;return p.Rm.debug("sides calc abc89, Q ".concat(c,", q ").concat(g,", R ").concat(u,", r ").concat(s),{_x:f,_y:y}),0===s&&(f=e.x,y=e.y),0===u&&(f=e.x),0===c&&(y=e.y),{x:f,y:y}},"intersection"),_=(0,p.K2)(function(t,e){p.Rm.warn("abc88 cutPathAtIntersect",t,e);var r=[],i=t[0],n=!1;return t.forEach(function(t){if(p.Rm.info("abc88 checking point",t,e),S(e,t)||n)p.Rm.warn("abc88 outside",t,i),i=t,n||r.push(t);else{var a=F(e,i,t);p.Rm.debug("abc88 inside",t,i,a),p.Rm.debug("abc88 intersection",a,e);var o=!1;r.forEach(function(t){o=o||t.x===a.x&&t.y===a.y}),r.some(function(t){return t.x===a.x&&t.y===a.y})?p.Rm.warn("abc88 no intersect",a,r):r.push(a),n=!0}}),p.Rm.debug("returning points",r),r},"cutPathAtIntersect");function B(t){for(var e=[],r=[],i=1;i<t.length-1;i++){var n=t[i-1],a=t[i],o=t[i+1];(n.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===o.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-o.y)>5)&&(e.push(a),r.push(i))}return{cornerPoints:e,cornerPointPositions:r}}(0,p.K2)(B,"extractCornerPoints");var L=(0,p.K2)(function(t,e,r){var i=e.x-t.x,n=e.y-t.y,a=r/Math.sqrt(i*i+n*n);return{x:e.x-a*i,y:e.y-a*n}},"findAdjacentPoint"),I=(0,p.K2)(function(t){for(var e=B(t).cornerPointPositions,r=[],i=0;i<t.length;i++)if(e.includes(i)){var n=t[i-1],a=t[i+1],o=t[i],s=L(n,o,5),l=L(a,o,5),c=l.x-s.x,u=l.y-s.y;r.push(s);var h=2*Math.sqrt(2),d={x:o.x,y:o.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){p.Rm.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));d=o.x===s.x?{x:c<0?s.x-5+h:s.x+5-h,y:u<0?s.y-h:s.y+h}:{x:c<0?s.x-h:s.x+h,y:u<0?s.y-5+h:s.y+5-h}}else p.Rm.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(d,l)}else r.push(t[i]);return r},"fixCorners"),R=(0,p.K2)(function(t,e,r){var i=t-e-r,n=Math.floor(i/4),a=Array(n).fill("".concat(2," ").concat(2)).join(" ");return"0 ".concat(e," ").concat(a," ").concat(r)},"generateDashArray"),O=(0,p.K2)(function(t,e,r,i,n,a,s){var l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(!s)throw new Error('insertEdge: missing diagramId for edge "'.concat(e.id,'" — edge IDs require a diagram prefix for uniqueness'));var u=(0,d.D7)().handDrawnSeed,m=e.points,v=!1,x=n,k=a,C=[];for(var A in e.cssCompiledStyles)(0,c.KX)(A)||C.push(e.cssCompiledStyles[A]);p.Rm.debug("UIO intersect check",e.points,k.x,x.x),k.intersect&&x.intersect&&!l&&((m=m.slice(1,e.points.length-1)).unshift(x.intersect(m[0])),p.Rm.debug("Last point UIO",e.start,"--\x3e",e.end,m[m.length-1],k,k.intersect(m[m.length-1])),m.push(k.intersect(m[m.length-1])));var D=btoa(JSON.stringify(m));e.toCluster&&(p.Rm.info("to cluster abc88",r.get(e.toCluster)),m=_(e.points,r.get(e.toCluster).node),v=!0),e.fromCluster&&(p.Rm.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(m,null,2)),m=_(m.reverse(),r.get(e.fromCluster).node).reverse(),v=!0);var E=m.filter(function(t){return!Number.isNaN(t.y)}),T=b(e.curve);"rounded"!==T&&(E=I(E));var w=g.lUB;switch(T){case"linear":case"rounded":w=g.lUB;break;case"basis":default:w=g.qrM;break;case"cardinal":w=g.y8u;break;case"bumpX":w=g.Wi0;break;case"bumpY":w=g.PGM;break;case"catmullRom":w=g.oDi;break;case"monotoneX":w=g.nVG;break;case"monotoneY":w=g.uxU;break;case"natural":w=g.Xf2;break;case"step":w=g.GZz;break;case"stepAfter":w=g.UPb;break;case"stepBefore":w=g.dyv}var S,F,B=(0,o.RI)(e),L=B.x,O=B.y,N=(0,g.n8j)().x(L).y(O).curve(w);switch(e.thickness){case"normal":default:S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;case"invisible":S="edge-thickness-invisible"}switch(e.pattern){case"solid":default:S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed"}var P="rounded"===T?M(K(E,e),5):N(E),q=Array.isArray(e.style)?e.style:[e.style],z=q.find(function(t){return null==t?void 0:t.startsWith("stroke:")}),W="";e.animate&&(W="edge-animation-fast"),e.animation&&(W="edge-animation-"+e.animation);var Y=!1;if("handDrawn"===e.look){var $=f.A.svg(t);Object.assign([],E);var j=$.path(P,{roughness:.3,seed:u});S+=" transition";var U=(F=(0,g.Ltv)(j).select("path").attr("id","".concat(s,"-").concat(e.id)).attr("class"," "+S+(e.classes?" "+e.classes:"")+(W?" "+W:"")).attr("style",q?q.reduce(function(t,e){return t+";"+e},""):"")).attr("d");F.attr("d",U),t.node().appendChild(F.node())}else{var H,V=C.join(";"),G=q?q.reduce(function(t,e){return t+e+";"},""):"",X=(V?V+";"+G+";":G)+";"+(q?q.reduce(function(t,e){return t+";"+e},""):"");F=t.append("path").attr("d",P).attr("id","".concat(s,"-").concat(e.id)).attr("class"," "+S+(e.classes?" "+e.classes:"")+(W?" "+W:"")).attr("style",X),z=null===(H=X.match(/stroke:([^;]+)/))||void 0===H?void 0:H[1],Y=!0===e.animate||!!e.animation||V.includes("animation");var Z=F.node(),Q="function"==typeof Z.getTotalLength?Z.getTotalLength():0,J=o.Nq[e.arrowTypeStart]||0,tt=o.Nq[e.arrowTypeEnd]||0;if("neo"===e.look&&!Y){var et="dotted"===e.pattern||"dashed"===e.pattern?R(Q,J,tt):"0 ".concat(J," ").concat(Q-J-tt," ").concat(tt),rt="stroke-dasharray: ".concat(et,"; stroke-dashoffset: 0;");F.attr("style",rt+F.attr("style"))}}F.attr("data-edge",!0),F.attr("data-et","edge"),F.attr("data-id",e.id),F.attr("data-points",D),F.attr("data-look",(0,h.KL)(e.look)),e.showPoints&&E.forEach(function(e){t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});var it="";((0,d.D7)().flowchart.arrowMarkerAbsolute||(0,d.D7)().state.arrowMarkerAbsolute)&&(it=(it=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),p.Rm.info("arrowTypeStart",e.arrowTypeStart),p.Rm.info("arrowTypeEnd",e.arrowTypeEnd);var nt=!Y&&"neo"===(null==e?void 0:e.look);y(F,e,it,s,i,nt,z);var at=m[Math.floor(m.length/2)];h._K.isLabelCoordinateInPath(at,F.attr("d"))||(v=!0);var ot={};return v&&(ot.updatedPath=m),ot.originalPath=e.points,ot},"insertEdge");function M(t,e){if(t.length<2)return"";for(var r="",i=t.length,n=1e-5,a=0;a<i;a++){var o=t[a],s=t[a-1],l=t[a+1];if(0===a)r+="M".concat(o.x,",").concat(o.y);else if(a===i-1)r+="L".concat(o.x,",").concat(o.y);else{var c=o.x-s.x,u=o.y-s.y,h=l.x-o.x,d=l.y-o.y,p=Math.hypot(c,u),g=Math.hypot(h,d);if(p<n||g<n){r+="L".concat(o.x,",").concat(o.y);continue}var f=c/p,y=u/p,m=h/g,v=d/g,x=f*m+y*v,b=Math.max(-1,Math.min(1,x)),k=Math.acos(b);if(k<n||Math.abs(Math.PI-k)<n){r+="L".concat(o.x,",").concat(o.y);continue}var C=Math.min(e/Math.sin(k/2),p/2,g/2),A=o.x-f*C,D=o.y-y*C,E=o.x+m*C,T=o.y+v*C;r+="L".concat(A,",").concat(D),r+="Q".concat(o.x,",").concat(o.y," ").concat(E,",").concat(T)}}return r}function N(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};var r=e.x-t.x,i=e.y-t.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}function K(t,e){var r=t.map(function(t){return(0,i.A)({},t)});if(t.length>=2&&o.hq[e.arrowTypeStart]){var n=o.hq[e.arrowTypeStart],a=t[0],s=N(a,t[1]).angle,l=n*Math.cos(s),c=n*Math.sin(s);r[0].x=a.x+l,r[0].y=a.y+c}var u=t.length;if(u>=2&&o.hq[e.arrowTypeEnd]){var h=o.hq[e.arrowTypeEnd],d=t[u-1],p=N(t[u-2],d).angle,g=h*Math.cos(p),f=h*Math.sin(p);r[u-1].x=d.x-g,r[u-1].y=d.y-f}return r}(0,p.K2)(M,"generateRoundedPath"),(0,p.K2)(N,"calculateDeltaAndAngle"),(0,p.K2)(K,"applyMarkerOffsetsToPoints");var P=(0,p.K2)(function(t,e,r,i){e.forEach(function(e){ot[e](t,r,i)})},"insertMarkers"),q=(0,p.K2)(function(t,e,r){p.Rm.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+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"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),z=(0,p.K2)(function(t,e,r){t.append("defs").append("marker").attr("id",r+"_"+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",r+"_"+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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),W=(0,p.K2)(function(t,e,r){t.append("defs").append("marker").attr("id",r+"_"+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",r+"_"+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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Y=(0,p.K2)(function(t,e,r){t.append("defs").append("marker").attr("id",r+"_"+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",r+"_"+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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),$=(0,p.K2)(function(t,e,r){t.append("defs").append("marker").attr("id",r+"_"+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("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+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("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),j=(0,p.K2)(function(t,e,r){t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),U=(0,p.K2)(function(t,e,r){t.append("marker").attr("id",r+"_"+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",r+"_"+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"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),H=(0,p.K2)(function(t,e,r){t.append("marker").attr("id",r+"_"+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",r+"_"+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"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),V=(0,p.K2)(function(t,e,r){t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),G=(0,p.K2)(function(t,e,r){var i=(0,d.zj)().themeVariables.transitionColor;t.append("defs").append("marker").attr("id",r+"_"+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 L11,14 L13,7 L11,0 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill","".concat(i))},"barbNeo"),X=(0,p.K2)(function(t,e,r){t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),Z=(0,p.K2)(function(t,e,r){var i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");var n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),Q=(0,p.K2)(function(t,e,r){t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").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",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),J=(0,p.K2)(function(t,e,r){var i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");var n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),tt=(0,p.K2)(function(t,e,r){var i=(0,d.zj)().themeVariables.strokeWidth;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width","".concat(i)),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width","".concat(i))},"only_one_neo"),et=(0,p.K2)(function(t,e,r){var i=(0,d.zj)().themeVariables,n=i.strokeWidth,a=i.mainBkg,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",null!=a?a:"white").attr("cx",21).attr("cy",9).attr("stroke-width","".concat(n)).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width","".concat(n));var s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",null!=a?a:"white").attr("cx",9).attr("cy",9).attr("stroke-width","".concat(n)).attr("r",6),s.append("path").attr("d","M21,0 L21,18").attr("stroke-width","".concat(n))},"zero_or_one_neo"),rt=(0,p.K2)(function(t,e,r){var i=(0,d.zj)().themeVariables.strokeWidth;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width","".concat(i)),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width","".concat(i))},"one_or_more_neo"),it=(0,p.K2)(function(t,e,r){var i=(0,d.zj)().themeVariables,n=i.strokeWidth,a=i.mainBkg,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",null!=a?a:"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width","".concat(n)),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width","".concat(n));var s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");s.append("circle").attr("fill",null!=a?a:"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width","".concat(n)),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width","".concat(n))},"zero_or_more_neo"),nt=(0,p.K2)(function(t,e,r){t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d","M0,0\n      L20,10\n      M20,10\n      L0,20")},"requirement_arrow"),at=(0,p.K2)(function(t,e,r){var i=(0,d.zj)().themeVariables.strokeWidth;t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width","".concat(i)).attr("viewBox","0 0 25 20").append("path").attr("d","M0,0\n      L20,10\n      M20,10\n      L0,20").attr("stroke-linejoin","miter")},"requirement_arrow_neo"),ot={extension:q,composition:z,aggregation:W,dependency:Y,lollipop:$,point:j,circle:U,cross:H,barb:V,barbNeo:G,only_one:X,zero_or_one:Z,one_or_more:Q,zero_or_more:J,only_one_neo:tt,zero_or_one_neo:et,one_or_more_neo:rt,zero_or_more_neo:it,requirement_arrow:nt,requirement_contains:(0,p.K2)(function(t,e,r){var i=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:at,requirement_contains_neo:(0,p.K2)(function(t,e,r){var i=(0,d.zj)().themeVariables.strokeWidth,n=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),n.selectAll("*").attr("stroke-width","".concat(i))},"requirement_contains_neo")},st=P},43376:function(t,e,r){"use strict";r.d(e,{O:function(){return u},X:function(){return h}});var i=r(20908),n=r(81587),a=r(74721),o=r(30388),s=r(34539),l=r(40985),c=r(68548),u=(0,c.K2)(function(t){var e,r,i,n,a=t.flowchart,o=null!==(e=null==a||null===(r=a.subGraphTitleMargin)||void 0===r?void 0:r.top)&&void 0!==e?e:0,s=null!==(i=null==a||null===(n=a.subGraphTitleMargin)||void 0===n?void 0:n.bottom)&&void 0!==i?i:0;return{subGraphTitleTopMargin:o,subGraphTitleBottomMargin:s,subGraphTitleTotalMargin:o+s}},"getSubGraphTitleMargins");function h(t,e){return d.apply(this,arguments)}function d(){return(d=(0,o.A)((0,i.A)().m(function t(e,r){var o,u;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:if((o=e.getElementsByTagName("img"))&&0!==o.length){t.n=1;break}return t.a(2);case 1:return u=""===r.replace(/<img[^>]*>/g,"").trim(),t.n=2,Promise.all((0,a.A)(o).map(function(t){return new Promise(function(e){function r(){if(t.style.display="flex",t.style.flexDirection="column",u){var r=(0,l.D7)().fontSize?(0,l.D7)().fontSize:window.getComputedStyle(document.body).fontSize,i=(0,s.I5)(r),a=(0,n.A)(i,1)[0],o=5*(void 0===a?l.UI.fontSize:a)+"px";t.style.minWidth=o,t.style.maxWidth=o}else t.style.width="100%";e(t)}(0,c.K2)(r,"setupImage"),setTimeout(function(){t.complete&&r()}),t.addEventListener("error",r),t.addEventListener("load",r)})}));case 2:return t.a(2)}},t)}))).apply(this,arguments)}(0,c.K2)(h,"configureLabelImages")},86349:function(t,e,r){"use strict";r.d(e,{XX:function(){return f},q7:function(){return y},sO:function(){return g}});var i=r(20908),n=r(30388),a=r(74721),o=r(3604),s=(r(74423),r(69914)),l=r(86735),c=r(34539),u=r(40985),h=r(68548),d={common:u.Y2,getConfig:u.zj,insertCluster:l.U,insertEdge:s.Jo,insertEdgeLabel:s.jP,insertMarkers:s.g0,insertNode:l.on,interpolateToCurve:c.Ib,labelHelper:l.Zk,log:h.Rm,positionEdgeLabel:s.T_},p={},g=(0,h.K2)(function(t){var e,r=(0,o.A)(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;p[i.name]=i}}catch(t){r.e(t)}finally{r.f()}},"registerLayoutLoaders");(0,h.K2)(function(){g([{name:"dagre",loader:(0,h.K2)((0,n.A)((0,i.A)().m(function t(){return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(2525),r.e(8668),r.e(7794),r.e(2938)]).then(r.bind(r,78073));case 1:return t.a(2,t.v)}},t)})),"loader")}].concat((0,a.A)([{name:"cose-bilkent",loader:(0,h.K2)((0,n.A)((0,i.A)().m(function t(){return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(9326),r.e(2088)]).then(r.bind(r,89371));case 1:return t.a(2,t.v)}},t)})),"loader")}])))},"registerDefaultLayoutLoaders")();var f=(0,h.K2)(function(){var t=(0,n.A)((0,i.A)().m(function t(e,r){var n,a,s,l,c,u,h,g,f,y,m,v,x,b;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:if(e.layoutAlgorithm in p){t.n=1;break}throw new Error("Unknown layout algorithm: ".concat(e.layoutAlgorithm));case 1:if(e.diagramId){n=(0,o.A)(e.nodes);try{for(n.s();!(a=n.n()).done;)s=a.value,l=s.domId||s.id,s.domId="".concat(e.diagramId,"-").concat(l)}catch(t){n.e(t)}finally{n.f()}}return c=p[e.layoutAlgorithm],t.n=2,c.loader();case 2:return u=t.v,h=e.config,g=h.theme,f=h.themeVariables,y=f.useGradient,m=f.gradientStart,v=f.gradientStop,x=r.attr("id"),r.append("defs").append("filter").attr("id","".concat(x,"-drop-shadow")).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color","".concat(null!=g&&g.includes("dark")?"#FFFFFF":"#000000")),r.append("defs").append("filter").attr("id","".concat(x,"-drop-shadow-small")).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color","".concat(null!=g&&g.includes("dark")?"#FFFFFF":"#000000")),y&&((b=r.append("linearGradient").attr("id",r.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%")).append("svg:stop").attr("offset","0%").attr("stop-color",m).attr("stop-opacity",1),b.append("svg:stop").attr("offset","100%").attr("stop-color",v).attr("stop-opacity",1)),t.a(2,u.render(e,r,d,{algorithm:c.algorithm}))}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"render"),y=(0,h.K2)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fallback,r=void 0===e?"dagre":e;if(t in p)return t;if(r in p)return h.Rm.warn("Layout algorithm ".concat(t," is not registered. Using ").concat(r," as fallback.")),r;throw new Error("Both layout algorithms ".concat(t," and ").concat(r," are not registered."))},"getRegisteredLayoutAlgorithm")},89906:function(t,e,r){"use strict";r.d(e,{CP:function(){return h},Ck:function(){return g},HT:function(){return p},PB:function(){return d},aC:function(){return u},lC:function(){return l},m:function(){return c},tk:function(){return s}});var i=r(40985),n=r(68548),a=r(92457),o=r(63219),s=(0,n.K2)(function(t,e){var r=t.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),e.name&&r.attr("name",e.name),e.rx&&r.attr("rx",e.rx),e.ry&&r.attr("ry",e.ry),void 0!==e.attrs)for(var i in e.attrs)r.attr(i,e.attrs[i]);return e.class&&r.attr("class",e.class),r},"drawRect"),l=(0,n.K2)(function(t,e){var r={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};s(t,r).lower()},"drawBackgroundRect"),c=(0,n.K2)(function(t,e){var r=e.text.replace(i.H1," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),e.class&&n.attr("class",e.class);var a=n.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.text(r),n},"drawText"),u=(0,n.K2)(function(t,e,r,i){var n=t.append("image");n.attr("x",e),n.attr("y",r);var o=(0,a.J)(i);n.attr("xlink:href",o)},"drawImage"),h=(0,n.K2)(function(t,e,r,i){var n=t.append("use");n.attr("x",e),n.attr("y",r);var o=(0,a.J)(i);n.attr("xlink:href","#".concat(o))},"drawEmbeddedImage"),d=(0,n.K2)(function(){return{x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}},"getNoteRect"),p=(0,n.K2)(function(){return{x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}},"getTextObj"),g=(0,n.K2)(function(){var t=(0,o.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,o.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},17428:function(t,e,r){"use strict";r.d(e,{Fr:function(){return d},GX:function(){return h},KX:function(){return u},WW:function(){return l},ue:function(){return s}});var i=r(81587),n=r(74721),a=(r(74423),r(40985)),o=r(68548),s=(0,o.K2)(function(t){return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:(0,a.D7)().handDrawnSeed}},"solidStateFill"),l=(0,o.K2)(function(t){var e=c([].concat((0,n.A)(t.cssCompiledStyles||[]),(0,n.A)(t.cssStyles||[]),(0,n.A)(t.labelStyle||[])));return{stylesMap:e,stylesArray:(0,n.A)(e)}},"compileStyles"),c=(0,o.K2)(function(t){var e=new Map;return t.forEach(function(t){var r=t.split(":"),n=(0,i.A)(r,2),a=n[0],o=n[1];e.set(a.trim(),null==o?void 0:o.trim())}),e},"styles2Map"),u=(0,o.K2)(function(t){return"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t},"isLabelStyle"),h=(0,o.K2)(function(t){var e=l(t).stylesArray,r=[],i=[],n=[],a=[];return e.forEach(function(t){var e=t[0];u(e)?r.push(t.join(":")+" !important"):(i.push(t.join(":")+" !important"),e.includes("stroke")&&n.push(t.join(":")+" !important"),"fill"===e&&a.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:n,backgroundStyles:a}},"styles2String"),d=(0,o.K2)(function(t,e){var r,i=(0,a.D7)(),n=i.themeVariables,o=i.handDrawnSeed,s=n.nodeBorder,c=n.mainBkg,u=l(t).stylesMap;return Object.assign({roughness:.7,fill:u.get("fill")||c,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:u.get("stroke")||s,seed:o,strokeWidth:(null===(r=u.get("stroke-width"))||void 0===r?void 0:r.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:p(u.get("stroke-dasharray"))},e)},"userNodeOverrides"),p=(0,o.K2)(function(t){if(!t)return[0,0];var e=t.trim().split(/\s+/).map(Number);if(1===e.length){var r=isNaN(e[0])?0:e[0];return[r,r]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray")},51266:function(t,e,r){"use strict";r.d(e,{W6:function(){return ue},GZ:function(){return ye},WY:function(){return Vt},pC:function(){return jt},Gc:function(){return Wt}});var i,n=r(81587),a=r(6562),o=r(42258),s=r(74721),l=r(20908),c=r(41034),u=r(30388),h=r(3604),d=(r(74423),r(34539)),p=r(40985),g=r(68548),f=r(16347),y=r(47606),m=r(79955),v=r(75822),x=r(17414),b=r(63219),k=r(54119),C=r(25026),A=r(69492),D=r(23772),E=r(8495);function T(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var w={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function S(t){w=t}var F={exec:function(){return null}};function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="string"==typeof t?t:t.source,i={replace:function(t,e){var n="string"==typeof e?e:e.source;return n=n.replace(L.caret,"$1"),r=r.replace(t,n),i},getRegex:function(){return new RegExp(r,e)}};return i}var B=function(){try{return!!new RegExp("(?<=1)(?<!1)")}catch(t){return!1}}(),L={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDD40-\uDD65\uDD6F-\uDD85\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDDB0-\uDDDB\uDDE0-\uDDE9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D\uDD30-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE96\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD833[\uDCF0-\uDCF9]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDDD0-\uDDED\uDDF0-\uDDFA\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])/,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:function(t){return new RegExp("^( {0,3}".concat(t,")((?:[\t ][^\\n]*)?(?:\\n|$))"))},nextBulletRegex:function(t){return new RegExp("^ {0,".concat(Math.min(3,t-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))"))},hrRegex:function(t){return new RegExp("^ {0,".concat(Math.min(3,t-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"))},fencesBeginRegex:function(t){return new RegExp("^ {0,".concat(Math.min(3,t-1),"}(?:```|~~~)"))},headingBeginRegex:function(t){return new RegExp("^ {0,".concat(Math.min(3,t-1),"}#"))},htmlBeginRegex:function(t){return new RegExp("^ {0,".concat(Math.min(3,t-1),"}<(?:[a-z].*>|!--)"),"i")}},I=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,R=/(?:[*+-]|\d{1,9}[.)])/,O=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,M=_(O).replace(/bull/g,R).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),N=_(O).replace(/bull/g,R).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),K=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,P=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,q=_(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",P).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),z=_(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,R).getRegex(),W="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Y=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$=_("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Y).replace("tag",W).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),j=_(K).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",W).getRegex(),U={blockquote:_(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",j).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:q,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:I,html:$,lheading:M,list:z,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:j,table:F,text:/^[^\n]+/},H=_("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",W).getRegex(),V=(0,c.A)((0,c.A)({},U),{},{lheading:N,table:H,paragraph:_(K).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",H).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",W).getRegex()}),G=(0,c.A)((0,c.A)({},U),{},{html:_("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Y).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:F,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_(K).replace("hr",I).replace("heading"," *#{1,6} *[^\n]").replace("lheading",M).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),X=/^( {2,}|\\)\n(?!\s*$)/,Z=/(?:[!-\/:-@\[-`\{-~\xA1-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2010-\u2027\u2030-\u205E\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/,Q=/(?:[\t-\r -\/:-@\[-`\{-~\xA0-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2000-\u200A\u2010-\u2029\u202F-\u205F\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/,J=/(?:[\0-\x08\x0E-\x1F0-9A-Za-z\x7F-\x9F\xAA\xAD\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376-\u037D\u037F-\u0383\u0386\u0388-\u03F5\u03F7-\u0481\u0483-\u0559\u0560-\u0588\u058B\u058C\u0590-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05F2\u05F5-\u0605\u0610-\u061A\u061C\u0620-\u0669\u066E-\u06D3\u06D5-\u06DD\u06DF-\u06E8\u06EA-\u06FC\u06FF\u070E-\u07F5\u07FA-\u07FD\u0800-\u082F\u083F-\u085D\u085F-\u0887\u0889-\u0963\u0966-\u096F\u0971-\u09F1\u09F4-\u09F9\u09FC\u09FE-\u0A75\u0A77-\u0AEF\u0AF2-\u0B6F\u0B71-\u0BF2\u0BFB-\u0C76\u0C78-\u0C7E\u0C80-\u0C83\u0C85-\u0D4E\u0D50-\u0D78\u0D7A-\u0DF3\u0DF5-\u0E3E\u0E40-\u0E4E\u0E50-\u0E59\u0E5C-\u0F00\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39\u0F3E-\u0F84\u0F86-\u0FBD\u0FC6\u0FCD\u0FDB-\u1049\u1050-\u109D\u10A0-\u10FA\u10FC-\u135F\u1369-\u138F\u139A-\u13FF\u1401-\u166C\u166F-\u167F\u1681-\u169A\u169D-\u16EA\u16EE-\u1734\u1737-\u17D3\u17D7\u17DC-\u17FF\u180B-\u193F\u1941-\u1943\u1946-\u19DD\u1A00-\u1A1D\u1A20-\u1A9F\u1AA7\u1AAE-\u1B4D\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BFB\u1C00-\u1C3A\u1C40-\u1C7D\u1C80-\u1CBF\u1CC8-\u1CD2\u1CD4-\u1FBC\u1FBE\u1FC2-\u1FCC\u1FD0-\u1FDC\u1FE0-\u1FEC\u1FF0-\u1FFC\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u2079\u207F-\u2089\u208F-\u209F\u20C2-\u20FF\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u218C-\u218F\u242A-\u243F\u244B-\u249B\u24EA-\u24FF\u2776-\u2793\u2B74\u2B75\u2C00-\u2CE4\u2CEB-\u2CF8\u2CFD\u2D00-\u2D6F\u2D71-\u2DFF\u2E2F\u2E5E-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3040-\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u318F\u3192-\u3195\u31A0-\u31BF\u31E6-\u31EE\u31F0-\u31FF\u321F-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48F\uA4C7-\uA4FD\uA500-\uA60C\uA610-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA6F8-\uA6FF\uA717-\uA71F\uA722-\uA788\uA78B-\uA827\uA82C-\uA835\uA83A-\uA873\uA878-\uA8CD\uA8D0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA95E\uA960-\uA9C0\uA9CE-\uA9DD\uA9E0-\uAA5B\uAA60-\uAA76\uAA7A-\uAADD\uAAE0-\uAAEF\uAAF2-\uAB5A\uAB5C-\uAB69\uAB6C-\uABEA\uABEC-\uD7FF\uE000-\uFB28\uFB2A-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDD0-\uFDFB\uFE00-\uFE0F\uFE1A-\uFE2F\uFE53\uFE67\uFE6C-\uFEFE\uFF00\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]|\uD800[\uDC00-\uDCFF\uDD03-\uDD36\uDD40-\uDD78\uDD8A\uDD8B\uDD8F\uDD9D-\uDD9F\uDDA1-\uDDCF\uDDFD-\uDF9E\uDFA0-\uDFCF\uDFD1-\uDFFF]|\uD801[\uDC00-\uDD6E\uDD70-\uDFFF]|\uD802[\uDC00-\uDC56\uDC58-\uDC76\uDC79-\uDD1E\uDD20-\uDD3E\uDD40-\uDE4F\uDE59-\uDE7E\uDE80-\uDEC7\uDEC9-\uDEEF\uDEF7-\uDF38\uDF40-\uDF98\uDF9D-\uDFFF]|\uD803[\uDC00-\uDD6D\uDD6F-\uDD8D\uDD90-\uDEAC\uDEAE-\uDECF\uDED9-\uDF54\uDF5A-\uDF85\uDF8A-\uDFFF]|\uD804[\uDC00-\uDC46\uDC4E-\uDCBA\uDCBD\uDCC2-\uDD3F\uDD44-\uDD73\uDD76-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE0-\uDE37\uDE3E-\uDEA8\uDEAA-\uDFD3\uDFD6\uDFD9-\uDFFF]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5C\uDC5E-\uDCC5\uDCC7-\uDDC0\uDDD8-\uDE40\uDE44-\uDE5F\uDE6D-\uDEB8\uDEBA-\uDF3B\uDF40-\uDFFF]|\uD806[\uDC00-\uDC3A\uDC3C-\uDD43\uDD47-\uDDE1\uDDE3-\uDE3E\uDE47-\uDE99\uDE9D\uDEA3-\uDEFF\uDF0A-\uDFE0\uDFE2-\uDFFF]|\uD807[\uDC00-\uDC40\uDC46-\uDC6F\uDC72-\uDEF6\uDEF9-\uDF42\uDF50-\uDFD4\uDFF2-\uDFFE]|[\uD808\uD80A\uD80C-\uD819\uD81C-\uD82E\uD830-\uD832\uD837\uD83F-\uDBFF][\uDC00-\uDFFF]|\uD809[\uDC00-\uDC6F\uDC75-\uDFFF]|\uD80B[\uDC00-\uDFF0\uDFF3-\uDFFF]|\uD81A[\uDC00-\uDE6D\uDE70-\uDEF4\uDEF6-\uDF36\uDF40-\uDF43\uDF46-\uDFFF]|\uD81B[\uDC00-\uDD6C\uDD70-\uDE96\uDE9B-\uDFE1\uDFE3-\uDFFF]|\uD82F[\uDC00-\uDC9B\uDC9D\uDC9E\uDCA0-\uDFFF]|\uD833[\uDCF0-\uDCF9\uDCFD-\uDCFF\uDEB4-\uDEB9\uDED1-\uDEDF\uDEF1-\uDF4F\uDFC4-\uDFFF]|\uD834[\uDCF6-\uDCFF\uDD27\uDD28\uDD65-\uDD69\uDD6D-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDDEB-\uDDFF\uDE42-\uDE44\uDE46-\uDEFF\uDF57-\uDFFF]|\uD835[\uDC00-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE8C-\uDFFF]|\uD838[\uDC00-\uDD4E\uDD50-\uDEFE\uDF00-\uDFFF]|\uD839[\uDC00-\uDDFE\uDE00-\uDFFF]|\uD83A[\uDC00-\uDD5D\uDD60-\uDFFF]|\uD83B[\uDC00-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDD2D\uDD2F-\uDEEF\uDEF2-\uDFFF]|\uD83C[\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCD0\uDCF6-\uDD0C\uDDAE-\uDDE5\uDE03-\uDE0F\uDE3C-\uDE3F\uDE49-\uDE4F\uDE52-\uDE5F\uDE66-\uDEFF]|\uD83D[\uDED9-\uDEDB\uDEED-\uDEEF\uDEFD-\uDEFF\uDFDA-\uDFDF\uDFEC-\uDFEF\uDFF1-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE\uDCAF\uDCBC-\uDCBF\uDCC2-\uDCCF\uDCD9-\uDCFF\uDE58-\uDE5F\uDE6E\uDE6F\uDE7D-\uDE7F\uDE8B-\uDE8D\uDEC7\uDEC9-\uDECC\uDEDD\uDEDE\uDEEB-\uDEEE\uDEF9-\uDEFF\uDF93\uDFF0-\uDFF9\uDFFB-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,tt=_(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Q).getRegex(),et=/(?!~)(?:[!-\/:-@\[-`\{-~\xA1-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2010-\u2027\u2030-\u205E\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/,rt=_(/link|precode-code|html/,"g").replace("link",(0,E.A)(/\[(?:[^\[\]`]|(`+)[^`]+\1(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/,{a:1})).replace("precode-",B?"(?<!`)()":"(^^|[^`])").replace("code",(0,E.A)(/(`+)[^`]+\1(?!`)/,{b:1})).replace("html",/<(?! )[^<>]*?>/).getRegex(),it=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,nt=_(it,"u").replace(/punct/g,Z).getRegex(),at=_(it,"u").replace(/punct/g,et).getRegex(),ot="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",st=_(ot,"gu").replace(/notPunctSpace/g,J).replace(/punctSpace/g,Q).replace(/punct/g,Z).getRegex(),lt=_(ot,"gu").replace(/notPunctSpace/g,/(?:(?:[\0-\x08\x0E-\x1F0-9A-Za-z\x7F-\x9F\xAA\xAD\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376-\u037D\u037F-\u0383\u0386\u0388-\u03F5\u03F7-\u0481\u0483-\u0559\u0560-\u0588\u058B\u058C\u0590-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05F2\u05F5-\u0605\u0610-\u061A\u061C\u0620-\u0669\u066E-\u06D3\u06D5-\u06DD\u06DF-\u06E8\u06EA-\u06FC\u06FF\u070E-\u07F5\u07FA-\u07FD\u0800-\u082F\u083F-\u085D\u085F-\u0887\u0889-\u0963\u0966-\u096F\u0971-\u09F1\u09F4-\u09F9\u09FC\u09FE-\u0A75\u0A77-\u0AEF\u0AF2-\u0B6F\u0B71-\u0BF2\u0BFB-\u0C76\u0C78-\u0C7E\u0C80-\u0C83\u0C85-\u0D4E\u0D50-\u0D78\u0D7A-\u0DF3\u0DF5-\u0E3E\u0E40-\u0E4E\u0E50-\u0E59\u0E5C-\u0F00\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39\u0F3E-\u0F84\u0F86-\u0FBD\u0FC6\u0FCD\u0FDB-\u1049\u1050-\u109D\u10A0-\u10FA\u10FC-\u135F\u1369-\u138F\u139A-\u13FF\u1401-\u166C\u166F-\u167F\u1681-\u169A\u169D-\u16EA\u16EE-\u1734\u1737-\u17D3\u17D7\u17DC-\u17FF\u180B-\u193F\u1941-\u1943\u1946-\u19DD\u1A00-\u1A1D\u1A20-\u1A9F\u1AA7\u1AAE-\u1B4D\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BFB\u1C00-\u1C3A\u1C40-\u1C7D\u1C80-\u1CBF\u1CC8-\u1CD2\u1CD4-\u1FBC\u1FBE\u1FC2-\u1FCC\u1FD0-\u1FDC\u1FE0-\u1FEC\u1FF0-\u1FFC\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u2079\u207F-\u2089\u208F-\u209F\u20C2-\u20FF\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u218C-\u218F\u242A-\u243F\u244B-\u249B\u24EA-\u24FF\u2776-\u2793\u2B74\u2B75\u2C00-\u2CE4\u2CEB-\u2CF8\u2CFD\u2D00-\u2D6F\u2D71-\u2DFF\u2E2F\u2E5E-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3040-\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u318F\u3192-\u3195\u31A0-\u31BF\u31E6-\u31EE\u31F0-\u31FF\u321F-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48F\uA4C7-\uA4FD\uA500-\uA60C\uA610-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA6F8-\uA6FF\uA717-\uA71F\uA722-\uA788\uA78B-\uA827\uA82C-\uA835\uA83A-\uA873\uA878-\uA8CD\uA8D0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA95E\uA960-\uA9C0\uA9CE-\uA9DD\uA9E0-\uAA5B\uAA60-\uAA76\uAA7A-\uAADD\uAAE0-\uAAEF\uAAF2-\uAB5A\uAB5C-\uAB69\uAB6C-\uABEA\uABEC-\uD7FF\uE000-\uFB28\uFB2A-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDD0-\uFDFB\uFE00-\uFE0F\uFE1A-\uFE2F\uFE53\uFE67\uFE6C-\uFEFE\uFF00\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]|\uD800[\uDC00-\uDCFF\uDD03-\uDD36\uDD40-\uDD78\uDD8A\uDD8B\uDD8F\uDD9D-\uDD9F\uDDA1-\uDDCF\uDDFD-\uDF9E\uDFA0-\uDFCF\uDFD1-\uDFFF]|\uD801[\uDC00-\uDD6E\uDD70-\uDFFF]|\uD802[\uDC00-\uDC56\uDC58-\uDC76\uDC79-\uDD1E\uDD20-\uDD3E\uDD40-\uDE4F\uDE59-\uDE7E\uDE80-\uDEC7\uDEC9-\uDEEF\uDEF7-\uDF38\uDF40-\uDF98\uDF9D-\uDFFF]|\uD803[\uDC00-\uDD6D\uDD6F-\uDD8D\uDD90-\uDEAC\uDEAE-\uDECF\uDED9-\uDF54\uDF5A-\uDF85\uDF8A-\uDFFF]|\uD804[\uDC00-\uDC46\uDC4E-\uDCBA\uDCBD\uDCC2-\uDD3F\uDD44-\uDD73\uDD76-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE0-\uDE37\uDE3E-\uDEA8\uDEAA-\uDFD3\uDFD6\uDFD9-\uDFFF]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5C\uDC5E-\uDCC5\uDCC7-\uDDC0\uDDD8-\uDE40\uDE44-\uDE5F\uDE6D-\uDEB8\uDEBA-\uDF3B\uDF40-\uDFFF]|\uD806[\uDC00-\uDC3A\uDC3C-\uDD43\uDD47-\uDDE1\uDDE3-\uDE3E\uDE47-\uDE99\uDE9D\uDEA3-\uDEFF\uDF0A-\uDFE0\uDFE2-\uDFFF]|\uD807[\uDC00-\uDC40\uDC46-\uDC6F\uDC72-\uDEF6\uDEF9-\uDF42\uDF50-\uDFD4\uDFF2-\uDFFE]|[\uD808\uD80A\uD80C-\uD819\uD81C-\uD82E\uD830-\uD832\uD837\uD83F-\uDBFF][\uDC00-\uDFFF]|\uD809[\uDC00-\uDC6F\uDC75-\uDFFF]|\uD80B[\uDC00-\uDFF0\uDFF3-\uDFFF]|\uD81A[\uDC00-\uDE6D\uDE70-\uDEF4\uDEF6-\uDF36\uDF40-\uDF43\uDF46-\uDFFF]|\uD81B[\uDC00-\uDD6C\uDD70-\uDE96\uDE9B-\uDFE1\uDFE3-\uDFFF]|\uD82F[\uDC00-\uDC9B\uDC9D\uDC9E\uDCA0-\uDFFF]|\uD833[\uDCF0-\uDCF9\uDCFD-\uDCFF\uDEB4-\uDEB9\uDED1-\uDEDF\uDEF1-\uDF4F\uDFC4-\uDFFF]|\uD834[\uDCF6-\uDCFF\uDD27\uDD28\uDD65-\uDD69\uDD6D-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDDEB-\uDDFF\uDE42-\uDE44\uDE46-\uDEFF\uDF57-\uDFFF]|\uD835[\uDC00-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE8C-\uDFFF]|\uD838[\uDC00-\uDD4E\uDD50-\uDEFE\uDF00-\uDFFF]|\uD839[\uDC00-\uDDFE\uDE00-\uDFFF]|\uD83A[\uDC00-\uDD5D\uDD60-\uDFFF]|\uD83B[\uDC00-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDD2D\uDD2F-\uDEEF\uDEF2-\uDFFF]|\uD83C[\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCD0\uDCF6-\uDD0C\uDDAE-\uDDE5\uDE03-\uDE0F\uDE3C-\uDE3F\uDE49-\uDE4F\uDE52-\uDE5F\uDE66-\uDEFF]|\uD83D[\uDED9-\uDEDB\uDEED-\uDEEF\uDEFD-\uDEFF\uDFDA-\uDFDF\uDFEC-\uDFEF\uDFF1-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE\uDCAF\uDCBC-\uDCBF\uDCC2-\uDCCF\uDCD9-\uDCFF\uDE58-\uDE5F\uDE6E\uDE6F\uDE7D-\uDE7F\uDE8B-\uDE8D\uDEC7\uDEC9-\uDECC\uDEDD\uDEDE\uDEEB-\uDEEE\uDEF9-\uDEFF\uDF93\uDFF0-\uDFF9\uDFFB-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|~)/).replace(/punctSpace/g,/(?!~)(?:[\t-\r -\/:-@\[-`\{-~\xA0-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2000-\u200A\u2010-\u2029\u202F-\u205F\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/).replace(/punct/g,et).getRegex(),ct=_("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,J).replace(/punctSpace/g,Q).replace(/punct/g,Z).getRegex(),ut=_(/\\(punct)/,"gu").replace(/punct/g,Z).getRegex(),ht=_(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),dt=_(Y).replace("(?:--\x3e|$)","--\x3e").getRegex(),pt=_("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",dt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,ft=_(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",gt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),yt=_(/^!?\[(label)\]\[(ref)\]/).replace("label",gt).replace("ref",P).getRegex(),mt=_(/^!?\[(ref)\](?:\[\])?/).replace("ref",P).getRegex(),vt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,xt={_backpedal:F,anyPunctuation:ut,autolink:ht,blockSkip:rt,br:X,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:F,emStrongLDelim:nt,emStrongRDelimAst:st,emStrongRDelimUnd:ct,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:ft,nolink:mt,punctuation:tt,reflink:yt,reflinkSearch:_("reflink|nolink(?!\\()","g").replace("reflink",yt).replace("nolink",mt).getRegex(),tag:pt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:F},bt=(0,c.A)((0,c.A)({},xt),{},{link:_(/^!?\[(label)\]\((.*?)\)/).replace("label",gt).getRegex(),reflink:_(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gt).getRegex()}),kt=(0,c.A)((0,c.A)({},xt),{},{emStrongRDelimAst:lt,emStrongLDelim:at,url:_(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vt).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:_(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vt).getRegex()}),Ct=(0,c.A)((0,c.A)({},kt),{},{br:_(X).replace("{2,}","*").getRegex(),text:_(kt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),At={normal:U,gfm:V,pedantic:G},Dt={normal:xt,gfm:kt,breaks:Ct,pedantic:bt},Et={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Tt=function(t){return Et[t]};function wt(t,e){if(e){if(L.escapeTest.test(t))return t.replace(L.escapeReplace,Tt)}else if(L.escapeTestNoEncode.test(t))return t.replace(L.escapeReplaceNoEncode,Tt);return t}function St(t){try{t=encodeURI(t).replace(L.percentDecode,"%")}catch(t){return null}return t}function Ft(t,e){var r,i=t.replace(L.findPipe,function(t,e,r){for(var i=!1,n=e;--n>=0&&"\\"===r[n];)i=!i;return i?"|":" |"}).split(L.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!(null!==(r=i.at(-1))&&void 0!==r&&r.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(L.slashPipe,"|");return i}function _t(t,e,r){var i=t.length;if(0===i)return"";for(var n=0;n<i;){var a=t.charAt(i-n-1);if(a!==e||r){if(a===e||!r)break;n++}else n++}return t.slice(0,i-n)}function Bt(t,e,r,i,n){var a=e.href,o=e.title||null,s=t[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;var l={type:"!"===t[0].charAt(0)?"image":"link",raw:r,href:a,title:o,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,l}var Lt=function(){return(0,A.A)(function t(e){(0,C.A)(this,t),(0,D.A)(this,"options",void 0),(0,D.A)(this,"rules",void 0),(0,D.A)(this,"lexer",void 0),this.options=e||w},[{key:"space",value:function(t){var e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}},{key:"code",value:function(t){var e=this.rules.block.code.exec(t);if(e){var r=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:_t(r,"\n")}}}},{key:"fences",value:function(t){var e=this.rules.block.fences.exec(t);if(e){var r=e[0],i=function(t,e,r){var i=t.match(r.other.indentCodeCompensation);if(null===i)return e;var a=i[1];return e.split("\n").map(function(t){var e=t.match(r.other.beginningSpace);return null===e?t:(0,n.A)(e,1)[0].length>=a.length?t.slice(a.length):t}).join("\n")}(r,e[3]||"",this.rules);return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:i}}}},{key:"heading",value:function(t){var e=this.rules.block.heading.exec(t);if(e){var r=e[2].trim();if(this.rules.other.endingHash.test(r)){var i=_t(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}},{key:"hr",value:function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:_t(e[0],"\n")}}},{key:"blockquote",value:function(t){var e=this.rules.block.blockquote.exec(t);if(e){for(var r=_t(e[0],"\n").split("\n"),i="",n="",a=[];r.length>0;){var o=!1,s=[],l=void 0;for(l=0;l<r.length;l++)if(this.rules.other.blockquoteStart.test(r[l]))s.push(r[l]),o=!0;else{if(o)break;s.push(r[l])}r=r.slice(l);var c=s.join("\n"),u=c.replace(this.rules.other.blockquoteSetextReplace,"\n    $1").replace(this.rules.other.blockquoteSetextReplace2,"");i=i?"".concat(i,"\n").concat(c):c,n=n?"".concat(n,"\n").concat(u):u;var h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,a,!0),this.lexer.state.top=h,0===r.length)break;var d=a.at(-1);if("code"===(null==d?void 0:d.type))break;if("blockquote"===(null==d?void 0:d.type)){var p=d,g=p.raw+"\n"+r.join("\n"),f=this.blockquote(g);a[a.length-1]=f,i=i.substring(0,i.length-p.raw.length)+f.raw,n=n.substring(0,n.length-p.text.length)+f.text;break}if("list"!==(null==d?void 0:d.type));else{var y=d,m=y.raw+"\n"+r.join("\n"),v=this.list(m);a[a.length-1]=v,i=i.substring(0,i.length-d.raw.length)+v.raw,n=n.substring(0,n.length-y.raw.length)+v.raw,r=m.substring(a.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:i,tokens:a,text:n}}}},{key:"list",value:function(t){var e=this,r=this.rules.block.list.exec(t);if(r){var i=r[1].trim(),n=i.length>1,a={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?"\\d{1,9}\\".concat(i.slice(-1)):"\\".concat(i),this.options.pedantic&&(i=n?i:"[*+-]");for(var o=this.rules.other.listItemRegex(i),s=!1;t;){var l=!1,c="",u="";if(!(r=o.exec(t))||this.rules.block.hr.test(t))break;c=r[0],t=t.substring(c.length);var h=r[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,function(t){return" ".repeat(3*t.length)}),d=t.split("\n",1)[0],p=!h.trim(),g=0;if(this.options.pedantic?(g=2,u=h.trimStart()):p?g=r[1].length+1:(g=(g=r[2].search(this.rules.other.nonSpaceChar))>4?1:g,u=h.slice(g),g+=r[1].length),p&&this.rules.other.blankLine.test(d)&&(c+=d+"\n",t=t.substring(d.length+1),l=!0),!l)for(var f=this.rules.other.nextBulletRegex(g),y=this.rules.other.hrRegex(g),m=this.rules.other.fencesBeginRegex(g),v=this.rules.other.headingBeginRegex(g),x=this.rules.other.htmlBeginRegex(g);t;){var b=t.split("\n",1)[0],k=void 0;if(d=b,this.options.pedantic?k=d=d.replace(this.rules.other.listReplaceNesting,"  "):k=d.replace(this.rules.other.tabCharGlobal,"    "),m.test(d)||v.test(d)||x.test(d)||f.test(d)||y.test(d))break;if(k.search(this.rules.other.nonSpaceChar)>=g||!d.trim())u+="\n"+k.slice(g);else{if(p||h.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||m.test(h)||v.test(h)||y.test(h))break;u+="\n"+d}!p&&!d.trim()&&(p=!0),c+=b+"\n",t=t.substring(b.length+1),h=k.slice(g)}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(s=!0));var C=null,A=void 0;this.options.gfm&&((C=this.rules.other.listIsTask.exec(u))&&(A="[ ] "!==C[0],u=u.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:c,task:!!C,checked:A,loose:!1,text:u,tokens:[]}),a.raw+=c}var D=a.items.at(-1);if(!D)return;D.raw=D.raw.trimEnd(),D.text=D.text.trimEnd(),a.raw=a.raw.trimEnd();for(var E=0;E<a.items.length;E++)if(this.lexer.state.top=!1,a.items[E].tokens=this.lexer.blockTokens(a.items[E].text,[]),!a.loose){var T=a.items[E].tokens.filter(function(t){return"space"===t.type}),w=T.length>0&&T.some(function(t){return e.rules.other.anyLine.test(t.raw)});a.loose=w}if(a.loose)for(var S=0;S<a.items.length;S++)a.items[S].loose=!0;return a}}},{key:"html",value:function(t){var e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}},{key:"def",value:function(t){var e=this.rules.block.def.exec(t);if(e){var r=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:r,raw:e[0],href:i,title:n}}}},{key:"table",value:function(t){var e,r=this,i=this.rules.block.table.exec(t);if(i&&this.rules.other.tableDelimiter.test(i[2])){var n=Ft(i[1]),a=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=null!==(e=i[3])&&void 0!==e&&e.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],s={type:"table",raw:i[0],header:[],align:[],rows:[]};if(n.length===a.length){var l,c=(0,h.A)(a);try{for(c.s();!(l=c.n()).done;){var u=l.value;this.rules.other.tableAlignRight.test(u)?s.align.push("right"):this.rules.other.tableAlignCenter.test(u)?s.align.push("center"):this.rules.other.tableAlignLeft.test(u)?s.align.push("left"):s.align.push(null)}}catch(t){c.e(t)}finally{c.f()}for(var d=0;d<n.length;d++)s.header.push({text:n[d],tokens:this.lexer.inline(n[d]),header:!0,align:s.align[d]});var p,g=(0,h.A)(o);try{for(g.s();!(p=g.n()).done;){var f=p.value;s.rows.push(Ft(f,s.header.length).map(function(t,e){return{text:t,tokens:r.lexer.inline(t),header:!1,align:s.align[e]}}))}}catch(t){g.e(t)}finally{g.f()}return s}}}},{key:"lheading",value:function(t){var e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}},{key:"paragraph",value:function(t){var e=this.rules.block.paragraph.exec(t);if(e){var r="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}},{key:"text",value:function(t){var e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}},{key:"escape",value:function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}},{key:"tag",value:function(t){var e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}},{key:"link",value:function(t){var e=this.rules.inline.link.exec(t);if(e){var r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;var i=_t(r.slice(0,-1),"\\");if((r.length-i.length)%2==0)return}else{var n=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var r=0,i=0;i<t.length;i++)if("\\"===t[i])i++;else if(t[i]===e[0])r++;else if(t[i]===e[1]&&--r<0)return i;return r>0?-2:-1}(e[2],"()");if(-2===n)return;if(n>-1){var a=(0===e[0].indexOf("!")?5:4)+e[1].length+n;e[2]=e[2].substring(0,n),e[0]=e[0].substring(0,a).trim(),e[3]=""}}var o=e[2],s="";if(this.options.pedantic){var l=this.rules.other.pedanticHrefTitle.exec(o);l&&(o=l[1],s=l[3])}else s=e[3]?e[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(o=this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?o.slice(1):o.slice(1,-1)),Bt(e,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}},{key:"reflink",value:function(t,e){var r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){var i=e[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!i){var n=r[0].charAt(0);return{type:"text",raw:n,text:n}}return Bt(r,i,r[0],this.lexer,this.rules)}}},{key:"emStrong",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!i[1]&&!i[2]||!r||this.rules.inline.punctuation.exec(r))){var n,a,o=(0,s.A)(i[0]).length-1,l=o,c=0,u="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,e=e.slice(-1*t.length+o);null!=(i=u.exec(e));)if(n=i[1]||i[2]||i[3]||i[4]||i[5]||i[6])if(a=(0,s.A)(n).length,i[3]||i[4])l+=a;else if(!((i[5]||i[6])&&o%3)||(o+a)%3){if(!((l-=a)>0)){a=Math.min(a,a+l+c);var h=(0,s.A)(i[0])[0].length,d=t.slice(0,o+i.index+h+a);if(Math.min(o,a)%2){var p=d.slice(1,-1);return{type:"em",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}var g=d.slice(2,-2);return{type:"strong",raw:d,text:g,tokens:this.lexer.inlineTokens(g)}}}else c+=a}}},{key:"codespan",value:function(t){var e=this.rules.inline.code.exec(t);if(e){var r=e[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(r),n=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&n&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}},{key:"br",value:function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}},{key:"del",value:function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}},{key:"autolink",value:function(t){var e,r,i=this.rules.inline.autolink.exec(t);if(i)return"@"===i[2]?r="mailto:"+(e=i[1]):r=e=i[1],{type:"link",raw:i[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}},{key:"url",value:function(t){var e;if(e=this.rules.inline.url.exec(t)){var r,i;if("@"===e[2])i="mailto:"+(r=e[0]);else{var n;do{var a,o;n=e[0],e[0]=null!==(a=null===(o=this.rules.inline._backpedal.exec(e[0]))||void 0===o?void 0:o[0])&&void 0!==a?a:""}while(n!==e[0]);r=e[0],i="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}},{key:"inlineText",value:function(t){var e=this.rules.inline.text.exec(t);if(e){var r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:r}}}}])}(),It=function(){function t(e){(0,C.A)(this,t),(0,D.A)(this,"tokens",void 0),(0,D.A)(this,"options",void 0),(0,D.A)(this,"state",void 0),(0,D.A)(this,"tokenizer",void 0),(0,D.A)(this,"inlineQueue",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||w,this.options.tokenizer=this.options.tokenizer||new Lt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var r={other:L,block:At.normal,inline:Dt.normal};this.options.pedantic?(r.block=At.pedantic,r.inline=Dt.pedantic):this.options.gfm&&(r.block=At.gfm,this.options.breaks?r.inline=Dt.breaks:r.inline=Dt.gfm),this.tokenizer.rules=r}return(0,A.A)(t,[{key:"lex",value:function(t){t=t.replace(L.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(var e=0;e<this.inlineQueue.length;e++){var r=this.inlineQueue[e];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}},{key:"blockTokens",value:function(t){var e,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=function(){var e,a,o,s;if(null!==(e=r.options.extensions)&&void 0!==e&&null!==(a=e.block)&&void 0!==a&&a.some(function(e){return!!(s=e.call({lexer:r},t,i))&&(t=t.substring(s.raw.length),i.push(s),!0)}))return 0;if(s=r.tokenizer.space(t)){t=t.substring(s.raw.length);var l=i.at(-1);return 1===s.raw.length&&void 0!==l?l.raw+="\n":i.push(s),0}if(s=r.tokenizer.code(t)){t=t.substring(s.raw.length);var c=i.at(-1);return"paragraph"===(null==c?void 0:c.type)||"text"===(null==c?void 0:c.type)?(c.raw+=(c.raw.endsWith("\n")?"":"\n")+s.raw,c.text+="\n"+s.text,r.inlineQueue.at(-1).src=c.text):i.push(s),0}if(s=r.tokenizer.fences(t))return t=t.substring(s.raw.length),i.push(s),0;if(s=r.tokenizer.heading(t))return t=t.substring(s.raw.length),i.push(s),0;if(s=r.tokenizer.hr(t))return t=t.substring(s.raw.length),i.push(s),0;if(s=r.tokenizer.blockquote(t))return t=t.substring(s.raw.length),i.push(s),0;if(s=r.tokenizer.list(t))return t=t.substring(s.raw.length),i.push(s),0;if(s=r.tokenizer.html(t))return t=t.substring(s.raw.length),i.push(s),0;if(s=r.tokenizer.def(t)){t=t.substring(s.raw.length);var u=i.at(-1);return"paragraph"===(null==u?void 0:u.type)||"text"===(null==u?void 0:u.type)?(u.raw+=(u.raw.endsWith("\n")?"":"\n")+s.raw,u.text+="\n"+s.raw,r.inlineQueue.at(-1).src=u.text):r.tokens.links[s.tag]||(r.tokens.links[s.tag]={href:s.href,title:s.title},i.push(s)),0}if(s=r.tokenizer.table(t))return t=t.substring(s.raw.length),i.push(s),0;if(s=r.tokenizer.lheading(t))return t=t.substring(s.raw.length),i.push(s),0;var h=t;if(null!==(o=r.options.extensions)&&void 0!==o&&o.startBlock){var d,p=1/0,g=t.slice(1);r.options.extensions.startBlock.forEach(function(t){"number"==typeof(d=t.call({lexer:r},g))&&d>=0&&(p=Math.min(p,d))}),p<1/0&&p>=0&&(h=t.substring(0,p+1))}if(r.state.top&&(s=r.tokenizer.paragraph(h))){var f=i.at(-1);return n&&"paragraph"===(null==f?void 0:f.type)?(f.raw+=(f.raw.endsWith("\n")?"":"\n")+s.raw,f.text+="\n"+s.text,r.inlineQueue.pop(),r.inlineQueue.at(-1).src=f.text):i.push(s),n=h.length!==t.length,t=t.substring(s.raw.length),0}if(s=r.tokenizer.text(t)){t=t.substring(s.raw.length);var y=i.at(-1);return"text"===(null==y?void 0:y.type)?(y.raw+=(y.raw.endsWith("\n")?"":"\n")+s.raw,y.text+="\n"+s.text,r.inlineQueue.pop(),r.inlineQueue.at(-1).src=y.text):i.push(s),0}if(t){var m="Infinite loop on byte: "+t.charCodeAt(0);if(r.options.silent)return 1;throw new Error(m)}};for(this.options.pedantic&&(t=t.replace(L.tabCharGlobal,"    ").replace(L.spaceLine,""));t&&(0===(e=a())||1!==e););return this.state.top=!0,i}},{key:"inline",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:t,tokens:e}),e}},{key:"inlineTokens",value:function(t){var e,r,i,n,a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=t,l=null;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(s));)c.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.anyPunctuation.exec(s));)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(s));)n=l[2]?l[2].length:0,s=s.slice(0,l.index+n)+"["+"a".repeat(l[0].length-n-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=null!==(e=null===(r=this.options.hooks)||void 0===r||null===(i=r.emStrongMask)||void 0===i?void 0:i.call({lexer:this},s))&&void 0!==e?e:s;for(var u,h=!1,d="",p=function(){var e,r,i,n;if(h||(d=""),h=!1,null!==(e=a.options.extensions)&&void 0!==e&&null!==(r=e.inline)&&void 0!==r&&r.some(function(e){return!!(n=e.call({lexer:a},t,o))&&(t=t.substring(n.raw.length),o.push(n),!0)}))return 0;if(n=a.tokenizer.escape(t))return t=t.substring(n.raw.length),o.push(n),0;if(n=a.tokenizer.tag(t))return t=t.substring(n.raw.length),o.push(n),0;if(n=a.tokenizer.link(t))return t=t.substring(n.raw.length),o.push(n),0;if(n=a.tokenizer.reflink(t,a.tokens.links)){t=t.substring(n.raw.length);var l=o.at(-1);return"text"===n.type&&"text"===(null==l?void 0:l.type)?(l.raw+=n.raw,l.text+=n.text):o.push(n),0}if(n=a.tokenizer.emStrong(t,s,d))return t=t.substring(n.raw.length),o.push(n),0;if(n=a.tokenizer.codespan(t))return t=t.substring(n.raw.length),o.push(n),0;if(n=a.tokenizer.br(t))return t=t.substring(n.raw.length),o.push(n),0;if(n=a.tokenizer.del(t))return t=t.substring(n.raw.length),o.push(n),0;if(n=a.tokenizer.autolink(t))return t=t.substring(n.raw.length),o.push(n),0;if(!a.state.inLink&&(n=a.tokenizer.url(t)))return t=t.substring(n.raw.length),o.push(n),0;var c=t;if(null!==(i=a.options.extensions)&&void 0!==i&&i.startInline){var u,p=1/0,g=t.slice(1);a.options.extensions.startInline.forEach(function(t){"number"==typeof(u=t.call({lexer:a},g))&&u>=0&&(p=Math.min(p,u))}),p<1/0&&p>=0&&(c=t.substring(0,p+1))}if(n=a.tokenizer.inlineText(c)){t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(d=n.raw.slice(-1)),h=!0;var f=o.at(-1);return"text"===(null==f?void 0:f.type)?(f.raw+=n.raw,f.text+=n.text):o.push(n),0}if(t){var y="Infinite loop on byte: "+t.charCodeAt(0);if(a.options.silent)return 1;throw new Error(y)}};t&&(0===(u=p())||1!==u););return o}}],[{key:"rules",get:function(){return{block:At,inline:Dt}}},{key:"lex",value:function(e,r){return new t(r).lex(e)}},{key:"lexInline",value:function(e,r){return new t(r).inlineTokens(e)}}])}(),Rt=function(){return(0,A.A)(function t(e){(0,C.A)(this,t),(0,D.A)(this,"options",void 0),(0,D.A)(this,"parser",void 0),this.options=e||w},[{key:"space",value:function(t){return""}},{key:"code",value:function(t){var e,r=t.text,i=t.lang,n=t.escaped,a=null===(e=(i||"").match(L.notSpaceStart))||void 0===e?void 0:e[0],o=r.replace(L.endingNewline,"")+"\n";return a?'<pre><code class="language-'+wt(a)+'">'+(n?o:wt(o,!0))+"</code></pre>\n":"<pre><code>"+(n?o:wt(o,!0))+"</code></pre>\n"}},{key:"blockquote",value:function(t){var e=t.tokens;return"<blockquote>\n".concat(this.parser.parse(e),"</blockquote>\n")}},{key:"html",value:function(t){return t.text}},{key:"def",value:function(t){return""}},{key:"heading",value:function(t){var e=t.tokens,r=t.depth;return"<h".concat(r,">").concat(this.parser.parseInline(e),"</h").concat(r,">\n")}},{key:"hr",value:function(t){return"<hr>\n"}},{key:"list",value:function(t){for(var e=t.ordered,r=t.start,i="",n=0;n<t.items.length;n++){var a=t.items[n];i+=this.listitem(a)}var o=e?"ol":"ul";return"<"+o+(e&&1!==r?' start="'+r+'"':"")+">\n"+i+"</"+o+">\n"}},{key:"listitem",value:function(t){var e="";if(t.task){var r,i=this.checkbox({checked:!!t.checked});t.loose?"paragraph"===(null===(r=t.tokens[0])||void 0===r?void 0:r.type)?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=i+" "+wt(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):e+=i+" "}return e+=this.parser.parse(t.tokens,!!t.loose),"<li>".concat(e,"</li>\n")}},{key:"checkbox",value:function(t){return"<input "+(t.checked?'checked="" ':"")+'disabled="" type="checkbox">'}},{key:"paragraph",value:function(t){var e=t.tokens;return"<p>".concat(this.parser.parseInline(e),"</p>\n")}},{key:"table",value:function(t){for(var e="",r="",i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);e+=this.tablerow({text:r});for(var n="",a=0;a<t.rows.length;a++){var o=t.rows[a];r="";for(var s=0;s<o.length;s++)r+=this.tablecell(o[s]);n+=this.tablerow({text:r})}return n&&(n="<tbody>".concat(n,"</tbody>")),"<table>\n<thead>\n"+e+"</thead>\n"+n+"</table>\n"}},{key:"tablerow",value:function(t){var e=t.text;return"<tr>\n".concat(e,"</tr>\n")}},{key:"tablecell",value:function(t){var e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?"<".concat(r,' align="').concat(t.align,'">'):"<".concat(r,">"))+e+"</".concat(r,">\n")}},{key:"strong",value:function(t){var e=t.tokens;return"<strong>".concat(this.parser.parseInline(e),"</strong>")}},{key:"em",value:function(t){var e=t.tokens;return"<em>".concat(this.parser.parseInline(e),"</em>")}},{key:"codespan",value:function(t){var e=t.text;return"<code>".concat(wt(e,!0),"</code>")}},{key:"br",value:function(t){return"<br>"}},{key:"del",value:function(t){var e=t.tokens;return"<del>".concat(this.parser.parseInline(e),"</del>")}},{key:"link",value:function(t){var e=t.href,r=t.title,i=t.tokens,n=this.parser.parseInline(i),a=St(e);if(null===a)return n;var o='<a href="'+(e=a)+'"';return r&&(o+=' title="'+wt(r)+'"'),o+=">"+n+"</a>"}},{key:"image",value:function(t){var e=t.href,r=t.title,i=t.text,n=t.tokens;n&&(i=this.parser.parseInline(n,this.parser.textRenderer));var a=St(e);if(null===a)return wt(i);var o='<img src="'.concat(e=a,'" alt="').concat(i,'"');return r&&(o+=' title="'.concat(wt(r),'"')),o+=">"}},{key:"text",value:function(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:wt(t.text)}}])}(),Ot=function(){return(0,A.A)(function t(){(0,C.A)(this,t)},[{key:"strong",value:function(t){return t.text}},{key:"em",value:function(t){return t.text}},{key:"codespan",value:function(t){return t.text}},{key:"del",value:function(t){return t.text}},{key:"html",value:function(t){return t.text}},{key:"text",value:function(t){return t.text}},{key:"link",value:function(t){return""+t.text}},{key:"image",value:function(t){return""+t.text}},{key:"br",value:function(){return""}}])}(),Mt=function(){function t(e){(0,C.A)(this,t),(0,D.A)(this,"options",void 0),(0,D.A)(this,"renderer",void 0),(0,D.A)(this,"textRenderer",void 0),this.options=e||w,this.options.renderer=this.options.renderer||new Rt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ot}return(0,A.A)(t,[{key:"parse",value:function(t){for(var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r="",i=0;i<t.length;i++){var n,a,o=t[i];if(null!==(n=this.options.extensions)&&void 0!==n&&null!==(a=n.renderers)&&void 0!==a&&a[o.type]){var s=o,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==l||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){r+=l||"";continue}}var c=o;switch(c.type){case"space":r+=this.renderer.space(c);continue;case"hr":r+=this.renderer.hr(c);continue;case"heading":r+=this.renderer.heading(c);continue;case"code":r+=this.renderer.code(c);continue;case"table":r+=this.renderer.table(c);continue;case"blockquote":r+=this.renderer.blockquote(c);continue;case"list":r+=this.renderer.list(c);continue;case"html":r+=this.renderer.html(c);continue;case"def":r+=this.renderer.def(c);continue;case"paragraph":r+=this.renderer.paragraph(c);continue;case"text":for(var u=c,h=this.renderer.text(u);i+1<t.length&&"text"===t[i+1].type;)u=t[++i],h+="\n"+this.renderer.text(u);r+=e?this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):h;continue;default:var d='Token with "'+c.type+'" type was not found.';if(this.options.silent)return"";throw new Error(d)}}return r}},{key:"parseInline",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.renderer,r="",i=0;i<t.length;i++){var n,a,o=t[i];if(null!==(n=this.options.extensions)&&void 0!==n&&null!==(a=n.renderers)&&void 0!==a&&a[o.type]){var s=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==s||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=s||"";continue}}var l=o;switch(l.type){case"escape":case"text":r+=e.text(l);break;case"html":r+=e.html(l);break;case"link":r+=e.link(l);break;case"image":r+=e.image(l);break;case"strong":r+=e.strong(l);break;case"em":r+=e.em(l);break;case"codespan":r+=e.codespan(l);break;case"br":r+=e.br(l);break;case"del":r+=e.del(l);break;default:var c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return"";throw new Error(c)}}return r}}],[{key:"parse",value:function(e,r){return new t(r).parse(e)}},{key:"parseInline",value:function(e,r){return new t(r).parseInline(e)}}])}(),Nt=(i=function(){return(0,A.A)(function t(e){(0,C.A)(this,t),(0,D.A)(this,"options",void 0),(0,D.A)(this,"block",void 0),this.options=e||w},[{key:"preprocess",value:function(t){return t}},{key:"postprocess",value:function(t){return t}},{key:"processAllTokens",value:function(t){return t}},{key:"emStrongMask",value:function(t){return t}},{key:"provideLexer",value:function(){return this.block?It.lex:It.lexInline}},{key:"provideParser",value:function(){return this.block?Mt.parse:Mt.parseInline}}])}(),(0,D.A)(i,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),(0,D.A)(i,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),i),Kt=function(){return(0,A.A)(function t(){(0,C.A)(this,t),(0,D.A)(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),(0,D.A)(this,"options",this.setOptions),(0,D.A)(this,"parse",this.parseMarkdown(!0)),(0,D.A)(this,"parseInline",this.parseMarkdown(!1)),(0,D.A)(this,"Parser",Mt),(0,D.A)(this,"Renderer",Rt),(0,D.A)(this,"TextRenderer",Ot),(0,D.A)(this,"Lexer",It),(0,D.A)(this,"Tokenizer",Lt),(0,D.A)(this,"Hooks",Nt),this.use.apply(this,arguments)},[{key:"walkTokens",value:function(t,e){var r,i=this,n=[],a=(0,h.A)(t);try{var o=function(){var t=r.value;switch(n=n.concat(e.call(i,t)),t.type){case"table":var a,o=t,s=(0,h.A)(o.header);try{for(s.s();!(a=s.n()).done;){var l=a.value;n=n.concat(i.walkTokens(l.tokens,e))}}catch(t){s.e(t)}finally{s.f()}var c,u=(0,h.A)(o.rows);try{for(u.s();!(c=u.n()).done;){var d,p=c.value,g=(0,h.A)(p);try{for(g.s();!(d=g.n()).done;){var f=d.value;n=n.concat(i.walkTokens(f.tokens,e))}}catch(t){g.e(t)}finally{g.f()}}}catch(t){u.e(t)}finally{u.f()}break;case"list":var y=t;n=n.concat(i.walkTokens(y.items,e));break;default:var m,v,x=t;null!==(m=i.defaults.extensions)&&void 0!==m&&null!==(v=m.childTokens)&&void 0!==v&&v[x.type]?i.defaults.extensions.childTokens[x.type].forEach(function(t){var r=x[t].flat(1/0);n=n.concat(i.walkTokens(r,e))}):x.tokens&&(n=n.concat(i.walkTokens(x.tokens,e)))}};for(a.s();!(r=a.n()).done;)o()}catch(t){a.e(t)}finally{a.f()}return n}},{key:"use",value:function(){for(var t=this,e=this.defaults.extensions||{renderers:{},childTokens:{}},r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return i.forEach(function(r){var i=(0,c.A)({},r);if(i.async=t.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(function(t){if(!t.name)throw new Error("extension name required");if("renderer"in t){var r=e.renderers[t.name];e.renderers[t.name]=r?function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];var a=t.renderer.apply(this,i);return!1===a&&(a=r.apply(this,i)),a}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");var i=e[t.level];i?i.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),i.extensions=e),r.renderer){var n=t.defaults.renderer||new Rt(t.defaults),a=function(){if(!(o in n))throw new Error("renderer '".concat(o,"' does not exist"));if(["options","parser"].includes(o))return 1;var t=o,e=r.renderer[t],i=n[t];n[t]=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];var o=e.apply(n,r);return!1===o&&(o=i.apply(n,r)),o||""}};for(var o in r.renderer)a();i.renderer=n}if(r.tokenizer){var s=t.defaults.tokenizer||new Lt(t.defaults),h=function(){if(!(d in s))throw new Error("tokenizer '".concat(d,"' does not exist"));if(["options","rules","lexer"].includes(d))return 1;var t=d,e=r.tokenizer[t],i=s[t];s[t]=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=e.apply(s,r);return!1===a&&(a=i.apply(s,r)),a}};for(var d in r.tokenizer)h();i.tokenizer=s}if(r.hooks){var p=t.defaults.hooks||new Nt,g=function(e){if(!(e in p))throw new Error("hook '".concat(e,"' does not exist"));if(["options","block"].includes(e))return 1;var i=e,n=r.hooks[i],a=p[i];Nt.passThroughHooks.has(e)?p[i]=function(r){if(t.defaults.async&&Nt.passThroughHooksRespectAsync.has(e))return(0,u.A)((0,l.A)().m(function t(){var e;return(0,l.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,n.call(p,r);case 1:return e=t.v,t.a(2,a.call(p,e))}},t)}))();var i=n.call(p,r);return a.call(p,i)}:p[i]=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(t.defaults.async)return(0,u.A)((0,l.A)().m(function t(){var e;return(0,l.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,n.apply(p,r);case 1:if(e=t.v,!(!1===e)){t.n=3;break}return t.n=2,a.apply(p,r);case 2:e=t.v;case 3:return t.a(2,e)}},t)}))();var o=n.apply(p,r);return!1===o&&(o=a.apply(p,r)),o}};for(var f in r.hooks)g(f);i.hooks=p}if(r.walkTokens){var y=t.defaults.walkTokens,m=r.walkTokens;i.walkTokens=function(t){var e=[];return e.push(m.call(this,t)),y&&(e=e.concat(y.call(this,t))),e}}t.defaults=(0,c.A)((0,c.A)({},t.defaults),i)}),this}},{key:"setOptions",value:function(t){return this.defaults=(0,c.A)((0,c.A)({},this.defaults),t),this}},{key:"lexer",value:function(t,e){return It.lex(t,null!=e?e:this.defaults)}},{key:"parser",value:function(t,e){return Mt.parse(t,null!=e?e:this.defaults)}},{key:"parseMarkdown",value:function(t){var e=this;return function(r,i){var n=(0,c.A)({},i),a=(0,c.A)((0,c.A)({},e.defaults),n),o=e.onError(!!a.silent,!!a.async);if(!0===e.defaults.async&&!1===n.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if((0,k.A)(r)>"u"||null===r)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(0,u.A)((0,l.A)().m(function i(){var n,o,s,c,u,h,d,p,g,f,y;return(0,l.A)().w(function(i){for(;;)switch(i.n){case 0:if(!a.hooks){i.n=2;break}return i.n=1,a.hooks.preprocess(r);case 1:u=i.v,i.n=3;break;case 2:u=r;case 3:if(n=u,!a.hooks){i.n=5;break}return i.n=4,a.hooks.provideLexer();case 4:h=i.v,i.n=6;break;case 5:h=t?It.lex:It.lexInline;case 6:return d=h,i.n=7,d(n,a);case 7:if(o=i.v,!a.hooks){i.n=9;break}return i.n=8,a.hooks.processAllTokens(o);case 8:p=i.v,i.n=10;break;case 9:p=o;case 10:if(s=p,!a.walkTokens){i.n=11;break}return i.n=11,Promise.all(e.walkTokens(s,a.walkTokens));case 11:if(!a.hooks){i.n=13;break}return i.n=12,a.hooks.provideParser();case 12:g=i.v,i.n=14;break;case 13:g=t?Mt.parse:Mt.parseInline;case 14:return f=g,i.n=15,f(s,a);case 15:if(c=i.v,!a.hooks){i.n=17;break}return i.n=16,a.hooks.postprocess(c);case 16:y=i.v,i.n=18;break;case 17:y=c;case 18:return i.a(2,y)}},i)}))().catch(o);try{a.hooks&&(r=a.hooks.preprocess(r));var s=(a.hooks?a.hooks.provideLexer():t?It.lex:It.lexInline)(r,a);a.hooks&&(s=a.hooks.processAllTokens(s)),a.walkTokens&&e.walkTokens(s,a.walkTokens);var h=(a.hooks?a.hooks.provideParser():t?Mt.parse:Mt.parseInline)(s,a);return a.hooks&&(h=a.hooks.postprocess(h)),h}catch(t){return o(t)}}}},{key:"onError",value:function(t,e){return function(r){if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t){var i="<p>An error occurred:</p><pre>"+wt(r.message+"",!0)+"</pre>";return e?Promise.resolve(i):i}if(e)return Promise.reject(r);throw r}}}])}(),Pt=new Kt;function qt(t,e){return Pt.parse(t,e)}qt.options=qt.setOptions=function(t){return Pt.setOptions(t),qt.defaults=Pt.defaults,S(qt.defaults),qt},qt.getDefaults=T,qt.defaults=w,qt.use=function(){return Pt.use.apply(Pt,arguments),qt.defaults=Pt.defaults,S(qt.defaults),qt},qt.walkTokens=function(t,e){return Pt.walkTokens(t,e)},qt.parseInline=Pt.parseInline,qt.Parser=Mt,qt.parser=Mt.parse,qt.Renderer=Rt,qt.TextRenderer=Ot,qt.Lexer=It,qt.lexer=It.lex,qt.Tokenizer=Lt,qt.Hooks=Nt,qt.parse=qt;qt.options,qt.setOptions,qt.use,qt.walkTokens,qt.parseInline,Mt.parse,It.lex;var zt=r(13512),Wt={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},Yt=new Map,$t=new Map,jt=(0,g.K2)(function(t){var e,r=(0,h.A)(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(!i.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(g.Rm.debug("Registering icon pack:",i.name),"loader"in i)$t.set(i.name,i.loader);else{if(!("icons"in i))throw g.Rm.error("Invalid icon loader:",i),new Error('Invalid icon loader. Must have either "icons" or "loader" property.');Yt.set(i.name,i.icons)}}}catch(t){r.e(t)}finally{r.f()}},"registerIconPacks"),Ut=(0,g.K2)(function(){var t=(0,u.A)((0,l.A)().m(function t(e,r){var i,n,a,o,s,u,h;return(0,l.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:if(i=(0,f.ct)(e,!0,void 0!==r)){t.n=1;break}throw new Error("Invalid icon name: ".concat(e));case 1:if(n=i.prefix||r){t.n=2;break}throw new Error("Icon name must contain a prefix: ".concat(e));case 2:if(a=Yt.get(n)){t.n=6;break}if(o=$t.get(n)){t.n=3;break}throw new Error("Icon set not found: ".concat(i.prefix));case 3:return t.p=3,t.n=4,o();case 4:s=t.v,a=(0,c.A)((0,c.A)({},s),{},{prefix:n}),Yt.set(n,a),t.n=6;break;case 5:throw t.p=5,h=t.v,g.Rm.error(h),new Error("Failed to load icon set: ".concat(i.prefix));case 6:if(u=(0,y.y)(a,i.name)){t.n=7;break}throw new Error("Icon not found: ".concat(e));case 7:return t.a(2,u)}},t,null,[[3,5]])}));return function(e,r){return t.apply(this,arguments)}}(),"getRegisteredIconData"),Ht=(0,g.K2)(function(){var t=(0,u.A)((0,l.A)().m(function t(e){return(0,l.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,Ut(e);case 1:return t.a(2,!0);case 2:return t.p=2,t.v,t.a(2,!1)}},t,null,[[0,2]])}));return function(e){return t.apply(this,arguments)}}(),"isIconAvailable"),Vt=(0,g.K2)(function(){var t=(0,u.A)((0,l.A)().m(function t(e,r,i){var n,a,o,s;return(0,l.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,Ut(e,null==r?void 0:r.fallbackPrefix);case 1:n=t.v,t.n=3;break;case 2:t.p=2,s=t.v,g.Rm.error(s),n=Wt;case 3:return a=(0,m.p)(n,r),o=(0,v.U)((0,x.$)(a.body),(0,c.A)((0,c.A)({},a.attributes),i)),t.a(2,(0,p.jZ)(o,(0,p.zj)()))}},t,null,[[0,2]])}));return function(e,r,i){return t.apply(this,arguments)}}(),"getIconSVG");function Gt(t,e){e.markdownAutoWrap;var r=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n");return(0,zt.T)(r)}function Xt(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(function(t){var e,r;return null!==(e=null===(r=t.trim().match(/<[^>]+>|[^\s<>]+/g))||void 0===r?void 0:r.map(function(t){return{content:t,type:"normal"}}))&&void 0!==e?e:[]})}function Zt(t){var e=Gt(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),r=qt.lexer(e),i=[[]],n=0;function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";"text"===t.type?t.text.split("\n").forEach(function(t,r){0!==r&&(n++,i.push([])),t.split(" ").forEach(function(t){(t=t.replace(/&#39;/g,"'"))&&i[n].push({content:t,type:e})})}):"strong"===t.type||"em"===t.type?t.tokens.forEach(function(e){a(e,t.type)}):"html"===t.type&&i[n].push({content:t.text,type:"normal"})}return(0,g.K2)(a,"processNode"),r.forEach(function(t){var e;"paragraph"===t.type?null===(e=t.tokens)||void 0===e||e.forEach(function(t){a(t)}):"html"===t.type?i[n].push({content:t.text,type:"normal"}):i[n].push({content:t.raw,type:"normal"})}),i}function Qt(t){return t?"<p>".concat(t.replace(/\\n|\n/g,"<br />"),"</p>"):""}function Jt(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).markdownAutoWrap,r=qt.lexer(t);function i(t){return"text"===t.type?!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):t.text.replace(/\n */g,"<br/>"):"strong"===t.type?"<strong>".concat(null===(r=t.tokens)||void 0===r?void 0:r.map(i).join(""),"</strong>"):"em"===t.type?"<em>".concat(null===(n=t.tokens)||void 0===n?void 0:n.map(i).join(""),"</em>"):"paragraph"===t.type?"<p>".concat(null===(a=t.tokens)||void 0===a?void 0:a.map(i).join(""),"</p>"):"space"===t.type?"":"html"===t.type?"".concat(t.text):"escape"===t.type?t.text:(g.Rm.warn("Unsupported markdown: ".concat(t.type)),t.raw);var r,n,a}return(0,g.K2)(i,"output"),r.map(i).join("")}function te(t){return Intl.Segmenter?(0,s.A)((new Intl.Segmenter).segment(t)).map(function(t){return t.segment}):(0,s.A)(t)}function ee(t,e){return re(t,[],te(e.content),e.type)}function re(t,e,r,i){if(0===r.length)return[{content:e.join(""),type:i},{content:"",type:i}];var n=(0,o.A)(r),l=n[0],c=(0,a.A)(n).slice(1),u=[].concat((0,s.A)(e),[l]);return t([{content:u.join(""),type:i}])?re(t,u,c,i):(0===e.length&&l&&(e.push(l),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}function ie(t,e){if(t.some(function(t){return t.content.includes("\n")}))throw new Error("splitLineToFitWidth does not support newlines in the line");return ne(t,e)}function ne(t,e){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(0===t.length)return a.length>0&&i.push(a),i.length>0?i:[];var o="";" "===t[0].content&&(o=" ",t.shift());var l=null!==(r=t.shift())&&void 0!==r?r:{content:" ",type:"normal"},c=(0,s.A)(a);if(""!==o&&c.push({content:o,type:"normal"}),c.push(l),e(c))return ne(t,e,i,c);if(a.length>0)i.push(a),t.unshift(l);else if(l.content){var u=ee(e,l),h=(0,n.A)(u,2),d=h[0],p=h[1];i.push([d]),p.content&&t.unshift(p)}return ne(t,e,i)}function ae(t,e){e&&t.attr("style",e)}(0,g.K2)(Gt,"preprocessMarkdown"),(0,g.K2)(Xt,"nonMarkdownToLines"),(0,g.K2)(Zt,"markdownToLines"),(0,g.K2)(Qt,"nonMarkdownToHTML"),(0,g.K2)(Jt,"markdownToHTML"),(0,g.K2)(te,"splitTextToChars"),(0,g.K2)(ee,"splitWordToFitWidth"),(0,g.K2)(re,"splitWordToFitWidthRecursion"),(0,g.K2)(ie,"splitLineToFitWidth"),(0,g.K2)(ne,"splitLineToFitWidthRecursion"),(0,g.K2)(ae,"applyStyle");function oe(t,e,r,i){return se.apply(this,arguments)}function se(){return se=(0,u.A)((0,l.A)().m(function t(e,r,i,n){var a,o,s,c,u,h,d,g,f=arguments;return(0,l.A)().w(function(t){for(;;)switch(t.n){case 0:if(a=f.length>4&&void 0!==f[4]&&f[4],o=f.length>5&&void 0!==f[5]?f[5]:(0,p.zj)(),(s=e.append("foreignObject")).attr("width","".concat(Math.min(10*i,16384),"px")),s.attr("height","".concat(Math.min(10*i,16384),"px")),c=s.append("xhtml:div"),!(0,p.Wi)(r.label)){t.n=2;break}return t.n=1,(0,p.dj)(r.label.replace(p.Y2.lineBreakRegex,"\n"),o);case 1:g=t.v,t.n=3;break;case 2:g=(0,p.jZ)(r.label,o);case 3:return u=g,h=r.isNode?"nodeLabel":"edgeLabel",(d=c.append("span")).html(u),ae(d,r.labelStyle),d.attr("class","".concat(h," ").concat(n)),ae(c,r.labelStyle),c.style("display","table-cell"),c.style("white-space","nowrap"),c.style("line-height","1.5"),i!==Number.POSITIVE_INFINITY&&(c.style("max-width",i+"px"),c.style("text-align","center")),c.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&c.attr("class","labelBkg"),c.node().getBoundingClientRect().width===i&&(c.style("display","table"),c.style("white-space","break-spaces"),c.style("width",i+"px"),c.node().getBoundingClientRect()),t.a(2,s.node())}},t)})),se.apply(this,arguments)}function le(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return i&&n.attr("text-anchor","middle"),n}function ce(t,e,r){var i=t.append("text"),n=le(i,1,e);pe(n,r);var a=n.node().getComputedTextLength();return i.remove(),a}function ue(t,e,r){var i,n=t.append("text"),a=le(n,1,e);pe(a,[{content:r,type:"normal"}]);var o=null===(i=a.node())||void 0===i?void 0:i.getBoundingClientRect();return o&&n.remove(),o}function he(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),s=a.append("text").attr("y","-10.1");n&&s.attr("text-anchor","middle");var l,c=0,u=(0,h.A)(r);try{for(u.s();!(l=u.n()).done;){var d,p=l.value,f=(0,g.K2)(function(e){return ce(a,1.1,e)<=t},"checkWidth"),y=f(p)?[p]:ie(p,f),m=(0,h.A)(y);try{for(m.s();!(d=m.n()).done;){var v=d.value;pe(le(s,c,1.1,n),v),c++}}catch(t){m.e(t)}finally{m.f()}}}catch(t){u.e(t)}finally{u.f()}if(i){var x=s.node().getBBox();return o.attr("x",x.x-2).attr("y",x.y-2).attr("width",x.width+4).attr("height",x.height+4),a.node()}return s.node()}function de(t){return t.replace(/&(amp|lt|gt);/g,function(t,e){switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return t}})}function pe(t,e){t.text(""),e.forEach(function(e,r){var i=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?i.text(de(e.content)):i.text(" "+de(e.content))})}function ge(t){return fe.apply(this,arguments)}function fe(){return fe=(0,u.A)((0,l.A)().m(function t(e){var r,i,n,a=arguments;return(0,l.A)().w(function(t){for(;;)switch(t.n){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},i=[],e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,function(t,e,n){return i.push((0,u.A)((0,l.A)().m(function i(){var a;return(0,l.A)().w(function(i){for(;;)switch(i.n){case 0:return a="".concat(e,":").concat(n),i.n=1,Ht(a);case 1:if(!i.v){i.n=3;break}return i.n=2,Vt(a,void 0,{class:"label-icon"});case 2:return i.a(2,i.v);case 3:return i.a(2,"<i class='".concat((0,p.jZ)(t,r).replace(":"," "),"'></i>"));case 4:return i.a(2)}},i)}))()),t}),t.n=1,Promise.all(i);case 1:return n=t.v,t.a(2,e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,function(){var t;return null!==(t=n.shift())&&void 0!==t?t:""}))}},t)})),fe.apply(this,arguments)}(0,g.K2)(oe,"addHtmlSpan"),(0,g.K2)(le,"createTspan"),(0,g.K2)(ce,"computeWidthOfText"),(0,g.K2)(ue,"computeDimensionOfText"),(0,g.K2)(he,"createFormattedText"),(0,g.K2)(de,"decodeHTMLEntities"),(0,g.K2)(pe,"updateTextContentAndStyles"),(0,g.K2)(ge,"replaceIconSubstring");var ye=(0,g.K2)(function(){var t=(0,u.A)((0,l.A)().m(function t(e){var r,i,n,a,o,s,c,u,h,f,y,m,v,x,k,C,A,D,E,T,w,S,F,_,B,L,I,R,O,M,N=arguments;return(0,l.A)().w(function(t){for(;;)switch(t.n){case 0:if(r=N.length>1&&void 0!==N[1]?N[1]:"",n=(i=N.length>2&&void 0!==N[2]?N[2]:{}).style,a=void 0===n?"":n,o=i.isTitle,s=void 0!==o&&o,c=i.classes,u=void 0===c?"":c,h=i.useHtmlLabels,f=void 0===h||h,y=i.markdown,m=void 0===y||y,v=i.isNode,x=void 0===v||v,k=i.width,C=void 0===k?200:k,A=i.addSvgBackground,D=void 0!==A&&A,E=N.length>3?N[3]:void 0,g.Rm.debug("XYZ createText",r,a,s,u,f,x,"addSvgBackground: ",D),!f){t.n=3;break}return T=m?Jt(r,E):Qt(r),t.n=1,ge((0,d.Sm)(T),E);case 1:return w=t.v,S=r.replace(/\\\\/g,"\\"),F={isNode:x,label:(0,p.Wi)(r)?S:w,labelStyle:a.replace("fill:","color:")},t.n=2,oe(e,F,C,u,D,E);case 2:return _=t.v,t.a(2,_);case 3:return B=(0,d.Sm)(r.replace(/<br\s*\/?>/g,"<br/>")),L=m?Zt(B.replace("<br>","<br/>"),E):Xt(B),I=he(C,e,L,!!r&&D,!x),x?(/stroke:/.exec(a)&&(a=a.replace("stroke:","lineColor:")),R=a.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),(0,b.Ltv)(I).attr("style",R)):(O=a.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:"),(0,b.Ltv)(I).select("rect").attr("style",O.replace(/background:/g,"fill:")),M=a.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),(0,b.Ltv)(I).select("text").attr("style",M)),s?(0,b.Ltv)(I).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,b.Ltv)(I).selectAll("tspan.text-outer-tspan").classed("row",!0),t.a(2,I);case 4:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),"createText")},3755:function(t,e,r){"use strict";r.d(e,{m:function(){return s}});var i,n=r(25026),a=r(69492),o=r(68548),s=(i=function(){return(0,a.A)(function t(e){(0,n.A)(this,t),this.init=e,this.records=this.init()},[{key:"reset",value:function(){this.records=this.init()}}])}(),(0,o.K2)(i,"ImperativeState"),i)},52067:function(t,e,r){"use strict";r.d(e,{D:function(){return o}});var i=r(40985),n=r(68548),a=r(63219),o=(0,n.K2)(function(t){var e=(0,i.D7)().securityLevel,r=(0,a.Ltv)("body");if("sandbox"===e){var n,o,s=null!==(n=null===(o=(0,a.Ltv)("#i".concat(t)).node())||void 0===o?void 0:o.contentDocument)&&void 0!==n?n:document;r=(0,a.Ltv)(s.body)}return r.select("#".concat(t))},"selectSvgElement")},28582:function(t,e,r){"use strict";r.d(e,{H:function(){return nr},r:function(){return ir}});var i=r(54119),n=r(68548);function a(t){return null==t}function o(t){return"object"===(0,i.A)(t)&&null!==t}function s(t){return Array.isArray(t)?t:a(t)?[]:[t]}function l(t,e){var r,i,n,a;if(e)for(r=0,i=(a=Object.keys(e)).length;r<i;r+=1)t[n=a[r]]=e[n];return t}function c(t,e){var r,i="";for(r=0;r<e;r+=1)i+=t;return i}function u(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}(0,n.K2)(a,"isNothing"),(0,n.K2)(o,"isObject"),(0,n.K2)(s,"toArray"),(0,n.K2)(l,"extend"),(0,n.K2)(c,"repeat"),(0,n.K2)(u,"isNegativeZero");var h={isNothing:a,isObject:o,toArray:s,repeat:c,isNegativeZero:u,extend:l};function d(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),i+" "+r):i}function p(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=d(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(0,n.K2)(d,"formatError"),(0,n.K2)(p,"YAMLException$1"),p.prototype=Object.create(Error.prototype),p.prototype.constructor=p,p.prototype.toString=(0,n.K2)(function(t){return this.name+": "+d(this,t)},"toString");var g=p;function f(t,e,r,i,n){var a="",o="",s=Math.floor(n/2)-1;return i-e>s&&(e=i-s+(a=" ... ").length),r-i>s&&(r=i+s-(o=" ...").length),{str:a+t.slice(e,r).replace(/\t/g,"→")+o,pos:i-e+a.length}}function y(t,e){return h.repeat(" ",e-t.length)+t}function m(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r,i=/\r?\n|\r|\0/g,n=[0],a=[],o=-1;r=i.exec(t.buffer);)a.push(r.index),n.push(r.index+r[0].length),t.position<=r.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var s,l,c="",u=Math.min(t.line+e.linesAfter,a.length).toString().length,d=e.maxLength-(e.indent+u+3);for(s=1;s<=e.linesBefore&&!(o-s<0);s++)l=f(t.buffer,n[o-s],a[o-s],t.position-(n[o]-n[o-s]),d),c=h.repeat(" ",e.indent)+y((t.line-s+1).toString(),u)+" | "+l.str+"\n"+c;for(l=f(t.buffer,n[o],a[o],t.position,d),c+=h.repeat(" ",e.indent)+y((t.line+1).toString(),u)+" | "+l.str+"\n",c+=h.repeat("-",e.indent+u+3+l.pos)+"^\n",s=1;s<=e.linesAfter&&!(o+s>=a.length);s++)l=f(t.buffer,n[o+s],a[o+s],t.position-(n[o]-n[o+s]),d),c+=h.repeat(" ",e.indent)+y((t.line+s+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")}(0,n.K2)(f,"getLine"),(0,n.K2)(y,"padStart"),(0,n.K2)(m,"makeSnippet");var v=m,x=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],b=["scalar","sequence","mapping"];function k(t){var e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function C(t,e){if(e=e||{},Object.keys(e).forEach(function(e){if(-1===x.indexOf(e))throw new g('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=k(e.styleAliases||null),-1===b.indexOf(this.kind))throw new g('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}(0,n.K2)(k,"compileStyleAliases"),(0,n.K2)(C,"Type$1");var A=C;function D(t,e){var r=[];return t[e].forEach(function(t){var e=r.length;r.forEach(function(r,i){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=i)}),r[e]=t}),r}function E(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for((0,n.K2)(i,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return r}function T(t){return this.extend(t)}(0,n.K2)(D,"compileList"),(0,n.K2)(E,"compileMap"),(0,n.K2)(T,"Schema$1"),T.prototype.extend=(0,n.K2)(function(t){var e=[],r=[];if(t instanceof A)r.push(t);else if(Array.isArray(t))r=r.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new g("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit))}e.forEach(function(t){if(!(t instanceof A))throw new g("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new g("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new g("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof A))throw new g("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(T.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=D(i,"implicit"),i.compiledExplicit=D(i,"explicit"),i.compiledTypeMap=E(i.compiledImplicit,i.compiledExplicit),i},"extend");var w=new T({explicit:[new A("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,n.K2)(function(t){return null!==t?t:""},"construct")}),new A("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,n.K2)(function(t){return null!==t?t:[]},"construct")}),new A("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,n.K2)(function(t){return null!==t?t:{}},"construct")})]});function S(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function F(){return null}function _(t){return null===t}(0,n.K2)(S,"resolveYamlNull"),(0,n.K2)(F,"constructYamlNull"),(0,n.K2)(_,"isNull");var B=new A("tag:yaml.org,2002:null",{kind:"scalar",resolve:S,construct:F,predicate:_,represent:{canonical:(0,n.K2)(function(){return"~"},"canonical"),lowercase:(0,n.K2)(function(){return"null"},"lowercase"),uppercase:(0,n.K2)(function(){return"NULL"},"uppercase"),camelcase:(0,n.K2)(function(){return"Null"},"camelcase"),empty:(0,n.K2)(function(){return""},"empty")},defaultStyle:"lowercase"});function L(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function I(t){return"true"===t||"True"===t||"TRUE"===t}function R(t){return"[object Boolean]"===Object.prototype.toString.call(t)}(0,n.K2)(L,"resolveYamlBoolean"),(0,n.K2)(I,"constructYamlBoolean"),(0,n.K2)(R,"isBoolean");var O=new A("tag:yaml.org,2002:bool",{kind:"scalar",resolve:L,construct:I,predicate:R,represent:{lowercase:(0,n.K2)(function(t){return t?"true":"false"},"lowercase"),uppercase:(0,n.K2)(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:(0,n.K2)(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function M(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function N(t){return 48<=t&&t<=55}function K(t){return 48<=t&&t<=57}function P(t){if(null===t)return!1;var e,r=t.length,i=0,n=!1;if(!r)return!1;if("-"!==(e=t[i])&&"+"!==e||(e=t[++i]),"0"===e){if(i+1===r)return!0;if("b"===(e=t[++i])){for(i++;i<r;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;n=!0}return n&&"_"!==e}if("x"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!M(t.charCodeAt(i)))return!1;n=!0}return n&&"_"!==e}if("o"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!N(t.charCodeAt(i)))return!1;n=!0}return n&&"_"!==e}}if("_"===e)return!1;for(;i<r;i++)if("_"!==(e=t[i])){if(!K(t.charCodeAt(i)))return!1;n=!0}return!(!n||"_"===e)}function q(t){var e,r=t,i=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(e=r[0])&&"+"!==e||("-"===e&&(i=-1),e=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===e){if("b"===r[1])return i*parseInt(r.slice(2),2);if("x"===r[1])return i*parseInt(r.slice(2),16);if("o"===r[1])return i*parseInt(r.slice(2),8)}return i*parseInt(r,10)}function z(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!h.isNegativeZero(t)}(0,n.K2)(M,"isHexCode"),(0,n.K2)(N,"isOctCode"),(0,n.K2)(K,"isDecCode"),(0,n.K2)(P,"resolveYamlInteger"),(0,n.K2)(q,"constructYamlInteger"),(0,n.K2)(z,"isInteger");var W=new A("tag:yaml.org,2002:int",{kind:"scalar",resolve:P,construct:q,predicate:z,represent:{binary:(0,n.K2)(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:(0,n.K2)(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:(0,n.K2)(function(t){return t.toString(10)},"decimal"),hexadecimal:(0,n.K2)(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Y=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function $(t){return null!==t&&!(!Y.test(t)||"_"===t[t.length-1])}function j(t){var e,r;return r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:r*parseFloat(e,10)}(0,n.K2)($,"resolveYamlFloat"),(0,n.K2)(j,"constructYamlFloat");var U=/^[-+]?[0-9]+e/;function H(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(h.isNegativeZero(t))return"-0.0";return r=t.toString(10),U.test(r)?r.replace("e",".e"):r}function V(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||h.isNegativeZero(t))}(0,n.K2)(H,"representYamlFloat"),(0,n.K2)(V,"isFloat");var G=new A("tag:yaml.org,2002:float",{kind:"scalar",resolve:$,construct:j,predicate:V,represent:H,defaultStyle:"lowercase"}),X=w.extend({implicit:[B,O,W,G]}),Z=X,Q=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),J=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function tt(t){return null!==t&&(null!==Q.exec(t)||null!==J.exec(t))}function et(t){var e,r,i,n,a,o,s,l,c=0,u=null;if(null===(e=Q.exec(t))&&(e=J.exec(t)),null===e)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(a=+e[4],o=+e[5],s=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(u=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(u=-u)),l=new Date(Date.UTC(r,i,n,a,o,s,c)),u&&l.setTime(l.getTime()-u),l}function rt(t){return t.toISOString()}(0,n.K2)(tt,"resolveYamlTimestamp"),(0,n.K2)(et,"constructYamlTimestamp"),(0,n.K2)(rt,"representYamlTimestamp");var it=new A("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:tt,construct:et,instanceOf:Date,represent:rt});function nt(t){return"<<"===t||null===t}(0,n.K2)(nt,"resolveYamlMerge");var at=new A("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nt}),ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function st(t){if(null===t)return!1;var e,r,i=0,n=t.length,a=ot;for(r=0;r<n;r++)if(!((e=a.indexOf(t.charAt(r)))>64)){if(e<0)return!1;i+=6}return i%8==0}function lt(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,a=ot,o=0,s=[];for(e=0;e<n;e++)e%4==0&&e&&(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)),o=o<<6|a.indexOf(i.charAt(e));return 0===(r=n%4*6)?(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)):18===r?(s.push(o>>10&255),s.push(o>>2&255)):12===r&&s.push(o>>4&255),new Uint8Array(s)}function ct(t){var e,r,i="",n=0,a=t.length,o=ot;for(e=0;e<a;e++)e%3==0&&e&&(i+=o[n>>18&63],i+=o[n>>12&63],i+=o[n>>6&63],i+=o[63&n]),n=(n<<8)+t[e];return 0===(r=a%3)?(i+=o[n>>18&63],i+=o[n>>12&63],i+=o[n>>6&63],i+=o[63&n]):2===r?(i+=o[n>>10&63],i+=o[n>>4&63],i+=o[n<<2&63],i+=o[64]):1===r&&(i+=o[n>>2&63],i+=o[n<<4&63],i+=o[64],i+=o[64]),i}function ut(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}(0,n.K2)(st,"resolveYamlBinary"),(0,n.K2)(lt,"constructYamlBinary"),(0,n.K2)(ct,"representYamlBinary"),(0,n.K2)(ut,"isBinary");var ht=new A("tag:yaml.org,2002:binary",{kind:"scalar",resolve:st,construct:lt,predicate:ut,represent:ct}),dt=Object.prototype.hasOwnProperty,pt=Object.prototype.toString;function gt(t){if(null===t)return!0;var e,r,i,n,a,o=[],s=t;for(e=0,r=s.length;e<r;e+=1){if(i=s[e],a=!1,"[object Object]"!==pt.call(i))return!1;for(n in i)if(dt.call(i,n)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==o.indexOf(n))return!1;o.push(n)}return!0}function ft(t){return null!==t?t:[]}(0,n.K2)(gt,"resolveYamlOmap"),(0,n.K2)(ft,"constructYamlOmap");var yt=new A("tag:yaml.org,2002:omap",{kind:"sequence",resolve:gt,construct:ft}),mt=Object.prototype.toString;function vt(t){if(null===t)return!0;var e,r,i,n,a,o=t;for(a=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],"[object Object]"!==mt.call(i))return!1;if(1!==(n=Object.keys(i)).length)return!1;a[e]=[n[0],i[n[0]]]}return!0}function xt(t){if(null===t)return[];var e,r,i,n,a,o=t;for(a=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),a[e]=[n[0],i[n[0]]];return a}(0,n.K2)(vt,"resolveYamlPairs"),(0,n.K2)(xt,"constructYamlPairs");var bt=new A("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:vt,construct:xt}),kt=Object.prototype.hasOwnProperty;function Ct(t){if(null===t)return!0;var e,r=t;for(e in r)if(kt.call(r,e)&&null!==r[e])return!1;return!0}function At(t){return null!==t?t:{}}(0,n.K2)(Ct,"resolveYamlSet"),(0,n.K2)(At,"constructYamlSet");var Dt=new A("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ct,construct:At}),Et=Z.extend({implicit:[it,at],explicit:[ht,yt,bt,Dt]}),Tt=Object.prototype.hasOwnProperty,wt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,St=/[\x85\u2028\u2029]/,Ft=/[,\[\]\{\}]/,_t=/^(?:!|!!|![a-z\-]+!)$/i,Bt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Lt(t){return Object.prototype.toString.call(t)}function It(t){return 10===t||13===t}function Rt(t){return 9===t||32===t}function Ot(t){return 9===t||32===t||10===t||13===t}function Mt(t){return 44===t||91===t||93===t||123===t||125===t}function Nt(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function Kt(t){return 120===t?2:117===t?4:85===t?8:0}function Pt(t){return 48<=t&&t<=57?t-48:-1}function qt(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"…":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function zt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}function Wt(t,e,r){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}(0,n.K2)(Lt,"_class"),(0,n.K2)(It,"is_EOL"),(0,n.K2)(Rt,"is_WHITE_SPACE"),(0,n.K2)(Ot,"is_WS_OR_EOL"),(0,n.K2)(Mt,"is_FLOW_INDICATOR"),(0,n.K2)(Nt,"fromHexCode"),(0,n.K2)(Kt,"escapedHexLen"),(0,n.K2)(Pt,"fromDecimalCode"),(0,n.K2)(qt,"simpleEscapeSequence"),(0,n.K2)(zt,"charFromCodepoint"),(0,n.K2)(Wt,"setProperty");var Yt,$t=new Array(256),jt=new Array(256);for(Yt=0;Yt<256;Yt++)$t[Yt]=qt(Yt)?1:0,jt[Yt]=qt(Yt);function Ut(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Et,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ht(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=v(r),new g(e,r)}function Vt(t,e){throw Ht(t,e)}function Gt(t,e){t.onWarning&&t.onWarning.call(null,Ht(t,e))}(0,n.K2)(Ut,"State$1"),(0,n.K2)(Ht,"generateError"),(0,n.K2)(Vt,"throwError"),(0,n.K2)(Gt,"throwWarning");var Xt={YAML:(0,n.K2)(function(t,e,r){var i,n,a;null!==t.version&&Vt(t,"duplication of %YAML directive"),1!==r.length&&Vt(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Vt(t,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),a=parseInt(i[2],10),1!==n&&Vt(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&Gt(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,n.K2)(function(t,e,r){var i,n;2!==r.length&&Vt(t,"TAG directive accepts exactly two arguments"),i=r[0],n=r[1],_t.test(i)||Vt(t,"ill-formed tag handle (first argument) of the TAG directive"),Tt.call(t.tagMap,i)&&Vt(t,'there is a previously declared suffix for "'+i+'" tag handle'),Bt.test(n)||Vt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(e){Vt(t,"tag prefix is malformed: "+n)}t.tagMap[i]=n},"handleTagDirective")};function Zt(t,e,r,i){var n,a,o,s;if(e<r){if(s=t.input.slice(e,r),i)for(n=0,a=s.length;n<a;n+=1)9===(o=s.charCodeAt(n))||32<=o&&o<=1114111||Vt(t,"expected valid JSON character");else wt.test(s)&&Vt(t,"the stream contains non-printable characters");t.result+=s}}function Qt(t,e,r,i){var n,a,o,s;for(h.isObject(r)||Vt(t,"cannot merge mappings; the provided source object is unacceptable"),o=0,s=(n=Object.keys(r)).length;o<s;o+=1)a=n[o],Tt.call(e,a)||(Wt(e,a,r[a]),i[a]=!0)}function Jt(t,e,r,n,a,o,s,l,c){var u,h;if(Array.isArray(a))for(u=0,h=(a=Array.prototype.slice.call(a)).length;u<h;u+=1)Array.isArray(a[u])&&Vt(t,"nested arrays are not supported inside keys"),"object"===(0,i.A)(a)&&"[object Object]"===Lt(a[u])&&(a[u]="[object Object]");if("object"===(0,i.A)(a)&&"[object Object]"===Lt(a)&&(a="[object Object]"),a=String(a),null===e&&(e={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(o))for(u=0,h=o.length;u<h;u+=1)Qt(t,e,o[u],r);else Qt(t,e,o,r);else t.json||Tt.call(r,a)||!Tt.call(e,a)||(t.line=s||t.line,t.lineStart=l||t.lineStart,t.position=c||t.position,Vt(t,"duplicated mapping key")),Wt(e,a,o),delete r[a];return e}function te(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):Vt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function ee(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);0!==n;){for(;Rt(n);)9===n&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&35===n)do{n=t.input.charCodeAt(++t.position)}while(10!==n&&13!==n&&0!==n);if(!It(n))break;for(te(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===n;)t.lineIndent++,n=t.input.charCodeAt(++t.position)}return-1!==r&&0!==i&&t.lineIndent<r&&Gt(t,"deficient indentation"),i}function re(t){var e,r=t.position;return!(45!==(e=t.input.charCodeAt(r))&&46!==e||e!==t.input.charCodeAt(r+1)||e!==t.input.charCodeAt(r+2)||(r+=3,0!==(e=t.input.charCodeAt(r))&&!Ot(e)))}function ie(t,e){1===e?t.result+=" ":e>1&&(t.result+=h.repeat("\n",e-1))}function ne(t,e,r){var i,n,a,o,s,l,c,u,h=t.kind,d=t.result;if(Ot(u=t.input.charCodeAt(t.position))||Mt(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Ot(i=t.input.charCodeAt(t.position+1))||r&&Mt(i)))return!1;for(t.kind="scalar",t.result="",n=a=t.position,o=!1;0!==u;){if(58===u){if(Ot(i=t.input.charCodeAt(t.position+1))||r&&Mt(i))break}else if(35===u){if(Ot(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&re(t)||r&&Mt(u))break;if(It(u)){if(s=t.line,l=t.lineStart,c=t.lineIndent,ee(t,!1,-1),t.lineIndent>=e){o=!0,u=t.input.charCodeAt(t.position);continue}t.position=a,t.line=s,t.lineStart=l,t.lineIndent=c;break}}o&&(Zt(t,n,a,!1),ie(t,t.line-s),n=a=t.position,o=!1),Rt(u)||(a=t.position+1),u=t.input.charCodeAt(++t.position)}return Zt(t,n,a,!1),!!t.result||(t.kind=h,t.result=d,!1)}function ae(t,e){var r,i,n;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(Zt(t,i,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;i=t.position,t.position++,n=t.position}else It(r)?(Zt(t,i,n,!0),ie(t,ee(t,!1,e)),i=n=t.position):t.position===t.lineStart&&re(t)?Vt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Vt(t,"unexpected end of the stream within a single quoted scalar")}function oe(t,e){var r,i,n,a,o,s;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return Zt(t,r,t.position,!0),t.position++,!0;if(92===s){if(Zt(t,r,t.position,!0),It(s=t.input.charCodeAt(++t.position)))ee(t,!1,e);else if(s<256&&$t[s])t.result+=jt[s],t.position++;else if((o=Kt(s))>0){for(n=o,a=0;n>0;n--)(o=Nt(s=t.input.charCodeAt(++t.position)))>=0?a=(a<<4)+o:Vt(t,"expected hexadecimal character");t.result+=zt(a),t.position++}else Vt(t,"unknown escape sequence");r=i=t.position}else It(s)?(Zt(t,r,i,!0),ie(t,ee(t,!1,e)),r=i=t.position):t.position===t.lineStart&&re(t)?Vt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Vt(t,"unexpected end of the stream within a double quoted scalar")}function se(t,e){var r,i,n,a,o,s,l,c,u,h,d,p,g=!0,f=t.tag,y=t.anchor,m=Object.create(null);if(91===(p=t.input.charCodeAt(t.position)))o=93,c=!1,a=[];else{if(123!==p)return!1;o=125,c=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),p=t.input.charCodeAt(++t.position);0!==p;){if(ee(t,!0,e),(p=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=f,t.anchor=y,t.kind=c?"mapping":"sequence",t.result=a,!0;g?44===p&&Vt(t,"expected the node content, but found ','"):Vt(t,"missed comma between flow collection entries"),d=null,s=l=!1,63===p&&Ot(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,ee(t,!0,e)),r=t.line,i=t.lineStart,n=t.position,ge(t,e,1,!1,!0),h=t.tag,u=t.result,ee(t,!0,e),p=t.input.charCodeAt(t.position),!l&&t.line!==r||58!==p||(s=!0,p=t.input.charCodeAt(++t.position),ee(t,!0,e),ge(t,e,1,!1,!0),d=t.result),c?Jt(t,a,m,h,u,d,r,i,n):s?a.push(Jt(t,null,m,h,u,d,r,i,n)):a.push(u),ee(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(g=!0,p=t.input.charCodeAt(++t.position)):g=!1}Vt(t,"unexpected end of the stream within a flow collection")}function le(t,e){var r,i,n,a,o=1,s=!1,l=!1,c=e,u=0,d=!1;if(124===(a=t.input.charCodeAt(t.position)))i=!1;else{if(62!==a)return!1;i=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)1===o?o=43===a?3:2:Vt(t,"repeat of a chomping mode identifier");else{if(!((n=Pt(a))>=0))break;0===n?Vt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Vt(t,"repeat of an indentation width identifier"):(c=e+n-1,l=!0)}if(Rt(a)){do{a=t.input.charCodeAt(++t.position)}while(Rt(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!It(a)&&0!==a)}for(;0!==a;){for(te(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!l||t.lineIndent<c)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>c&&(c=t.lineIndent),It(a))u++;else{if(t.lineIndent<c){3===o?t.result+=h.repeat("\n",s?1+u:u):1===o&&s&&(t.result+="\n");break}for(i?Rt(a)?(d=!0,t.result+=h.repeat("\n",s?1+u:u)):d?(d=!1,t.result+=h.repeat("\n",u+1)):0===u?s&&(t.result+=" "):t.result+=h.repeat("\n",u):t.result+=h.repeat("\n",s?1+u:u),s=!0,l=!0,u=0,r=t.position;!It(a)&&0!==a;)a=t.input.charCodeAt(++t.position);Zt(t,r,t.position,!1)}}return!0}function ce(t,e){var r,i,n=t.tag,a=t.anchor,o=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,Vt(t,"tab characters must not be used in indentation")),45===i)&&Ot(t.input.charCodeAt(t.position+1));)if(s=!0,t.position++,ee(t,!0,-1)&&t.lineIndent<=e)o.push(null),i=t.input.charCodeAt(t.position);else if(r=t.line,ge(t,e,3,!1,!0),o.push(t.result),ee(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==i)Vt(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!s&&(t.tag=n,t.anchor=a,t.kind="sequence",t.result=o,!0)}function ue(t,e,r){var i,n,a,o,s,l,c,u=t.tag,h=t.anchor,d={},p=Object.create(null),g=null,f=null,y=null,m=!1,v=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),c=t.input.charCodeAt(t.position);0!==c;){if(m||-1===t.firstTabInLine||(t.position=t.firstTabInLine,Vt(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),a=t.line,63!==c&&58!==c||!Ot(i)){if(o=t.line,s=t.lineStart,l=t.position,!ge(t,r,2,!1,!0))break;if(t.line===a){for(c=t.input.charCodeAt(t.position);Rt(c);)c=t.input.charCodeAt(++t.position);if(58===c)Ot(c=t.input.charCodeAt(++t.position))||Vt(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Jt(t,d,p,g,f,null,o,s,l),g=f=y=null),v=!0,m=!1,n=!1,g=t.tag,f=t.result;else{if(!v)return t.tag=u,t.anchor=h,!0;Vt(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return t.tag=u,t.anchor=h,!0;Vt(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(m&&(Jt(t,d,p,g,f,null,o,s,l),g=f=y=null),v=!0,m=!0,n=!0):m?(m=!1,n=!0):Vt(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,c=i;if((t.line===a||t.lineIndent>e)&&(m&&(o=t.line,s=t.lineStart,l=t.position),ge(t,e,4,!0,n)&&(m?f=t.result:y=t.result),m||(Jt(t,d,p,g,f,y,o,s,l),g=f=y=null),ee(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==c)Vt(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&Jt(t,d,p,g,f,null,o,s,l),v&&(t.tag=u,t.anchor=h,t.kind="mapping",t.result=d),v}function he(t){var e,r,i,n,a=!1,o=!1;if(33!==(n=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&Vt(t,"duplication of a tag property"),60===(n=t.input.charCodeAt(++t.position))?(a=!0,n=t.input.charCodeAt(++t.position)):33===n?(o=!0,r="!!",n=t.input.charCodeAt(++t.position)):r="!",e=t.position,a){do{n=t.input.charCodeAt(++t.position)}while(0!==n&&62!==n);t.position<t.length?(i=t.input.slice(e,t.position),n=t.input.charCodeAt(++t.position)):Vt(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!Ot(n);)33===n&&(o?Vt(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),_t.test(r)||Vt(t,"named tag handle cannot contain such characters"),o=!0,e=t.position+1)),n=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),Ft.test(i)&&Vt(t,"tag suffix cannot contain flow indicator characters")}i&&!Bt.test(i)&&Vt(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(e){Vt(t,"tag name is malformed: "+i)}return a?t.tag=i:Tt.call(t.tagMap,r)?t.tag=t.tagMap[r]+i:"!"===r?t.tag="!"+i:"!!"===r?t.tag="tag:yaml.org,2002:"+i:Vt(t,'undeclared tag handle "'+r+'"'),!0}function de(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&Vt(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!Ot(r)&&!Mt(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Vt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function pe(t){var e,r,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!Ot(i)&&!Mt(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Vt(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Tt.call(t.anchorMap,r)||Vt(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],ee(t,!0,-1),!0}function ge(t,e,r,i,n){var a,o,s,l,c,u,h,d,p,g=1,f=!1,y=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=o=s=4===r||3===r,i&&ee(t,!0,-1)&&(f=!0,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)),1===g)for(;he(t)||de(t);)ee(t,!0,-1)?(f=!0,s=a,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)):s=!1;if(s&&(s=f||n),1!==g&&4!==r||(d=1===r||2===r?e:e+1,p=t.position-t.lineStart,1===g?s&&(ce(t,p)||ue(t,p,d))||se(t,d)?y=!0:(o&&le(t,d)||ae(t,d)||oe(t,d)?y=!0:pe(t)?(y=!0,null===t.tag&&null===t.anchor||Vt(t,"alias node should not have any properties")):ne(t,d,1===r)&&(y=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===g&&(y=s&&ce(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&Vt(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,c=t.implicitTypes.length;l<c;l+=1)if((h=t.implicitTypes[l]).resolve(t.result)){t.result=h.construct(t.result),t.tag=h.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(Tt.call(t.typeMap[t.kind||"fallback"],t.tag))h=t.typeMap[t.kind||"fallback"][t.tag];else for(h=null,l=0,c=(u=t.typeMap.multi[t.kind||"fallback"]).length;l<c;l+=1)if(t.tag.slice(0,u[l].tag.length)===u[l].tag){h=u[l];break}h||Vt(t,"unknown tag !<"+t.tag+">"),null!==t.result&&h.kind!==t.kind&&Vt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Vt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||y}function fe(t){var e,r,i,n,a=t.position,o=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(n=t.input.charCodeAt(t.position))&&(ee(t,!0,-1),n=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==n));){for(o=!0,n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!Ot(n);)n=t.input.charCodeAt(++t.position);for(i=[],(r=t.input.slice(e,t.position)).length<1&&Vt(t,"directive name must not be less than one character in length");0!==n;){for(;Rt(n);)n=t.input.charCodeAt(++t.position);if(35===n){do{n=t.input.charCodeAt(++t.position)}while(0!==n&&!It(n));break}if(It(n))break;for(e=t.position;0!==n&&!Ot(n);)n=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==n&&te(t),Tt.call(Xt,r)?Xt[r](t,r,i):Gt(t,'unknown document directive "'+r+'"')}ee(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,ee(t,!0,-1)):o&&Vt(t,"directives end mark is expected"),ge(t,t.lineIndent-1,4,!1,!0),ee(t,!0,-1),t.checkLineBreaks&&St.test(t.input.slice(a,t.position))&&Gt(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&re(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,ee(t,!0,-1)):t.position<t.length-1&&Vt(t,"end of the stream or a document separator is expected")}function ye(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var r=new Ut(t,e),i=t.indexOf("\0");for(-1!==i&&(r.position=i,Vt(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)fe(r);return r.documents}function me(t,e,r){null!==e&&"object"===(0,i.A)(e)&&void 0===r&&(r=e,e=null);var n=ye(t,r);if("function"!=typeof e)return n;for(var a=0,o=n.length;a<o;a+=1)e(n[a])}function ve(t,e){var r=ye(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new g("expected a single document in the stream, but found more")}}(0,n.K2)(Zt,"captureSegment"),(0,n.K2)(Qt,"mergeMappings"),(0,n.K2)(Jt,"storeMappingPair"),(0,n.K2)(te,"readLineBreak"),(0,n.K2)(ee,"skipSeparationSpace"),(0,n.K2)(re,"testDocumentSeparator"),(0,n.K2)(ie,"writeFoldedLines"),(0,n.K2)(ne,"readPlainScalar"),(0,n.K2)(ae,"readSingleQuotedScalar"),(0,n.K2)(oe,"readDoubleQuotedScalar"),(0,n.K2)(se,"readFlowCollection"),(0,n.K2)(le,"readBlockScalar"),(0,n.K2)(ce,"readBlockSequence"),(0,n.K2)(ue,"readBlockMapping"),(0,n.K2)(he,"readTagProperty"),(0,n.K2)(de,"readAnchorProperty"),(0,n.K2)(pe,"readAlias"),(0,n.K2)(ge,"composeNode"),(0,n.K2)(fe,"readDocument"),(0,n.K2)(ye,"loadDocuments"),(0,n.K2)(me,"loadAll$1"),(0,n.K2)(ve,"load$1");var xe={loadAll:me,load:ve},be=Object.prototype.toString,ke=Object.prototype.hasOwnProperty,Ce=65279,Ae={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},De=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ee=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Te(t,e){var r,i,n,a,o,s,l;if(null===e)return{};for(r={},n=0,a=(i=Object.keys(e)).length;n<a;n+=1)o=i[n],s=String(e[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(l=t.compiledTypeMap.fallback[o])&&ke.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[o]=s;return r}function we(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else{if(!(t<=4294967295))throw new g("code point within a string may not be greater than 0xFFFFFFFF");r="U",i=8}return"\\"+r+h.repeat("0",i-e.length)+e}(0,n.K2)(Te,"compileStyleMap"),(0,n.K2)(we,"encodeHex");function Se(t){this.schema=t.schema||Et,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=h.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Te(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Fe(t,e){for(var r,i=h.repeat(" ",e),n=0,a=-1,o="",s=t.length;n<s;)-1===(a=t.indexOf("\n",n))?(r=t.slice(n),n=s):(r=t.slice(n,a+1),n=a+1),r.length&&"\n"!==r&&(o+=i),o+=r;return o}function _e(t,e){return"\n"+h.repeat(" ",t.indent*e)}function Be(t,e){var r,i;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function Le(t){return 32===t||9===t}function Ie(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==Ce||65536<=t&&t<=1114111}function Re(t){return Ie(t)&&t!==Ce&&13!==t&&10!==t}function Oe(t,e,r){var i=Re(t),n=i&&!Le(t);return(r?i:i&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!n)||Re(e)&&!Le(e)&&35===t||58===e&&n}function Me(t){return Ie(t)&&t!==Ce&&!Le(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function Ne(t){return!Le(t)&&58!==t}function Ke(t,e){var r,i=t.charCodeAt(e);return i>=55296&&i<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?1024*(i-55296)+r-56320+65536:i}function Pe(t){return/^\n* /.test(t)}(0,n.K2)(Se,"State"),(0,n.K2)(Fe,"indentString"),(0,n.K2)(_e,"generateNextLine"),(0,n.K2)(Be,"testImplicitResolving"),(0,n.K2)(Le,"isWhitespace"),(0,n.K2)(Ie,"isPrintable"),(0,n.K2)(Re,"isNsCharOrWhitespace"),(0,n.K2)(Oe,"isPlainSafe"),(0,n.K2)(Me,"isPlainSafeFirst"),(0,n.K2)(Ne,"isPlainSafeLast"),(0,n.K2)(Ke,"codePointAt"),(0,n.K2)(Pe,"needIndentIndicator");function qe(t,e,r,i,n,a,o,s){var l,c=0,u=null,h=!1,d=!1,p=-1!==i,g=-1,f=Me(Ke(t,0))&&Ne(Ke(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(!Ie(c=Ke(t,l)))return 5;f=f&&Oe(c,u,s),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(10===(c=Ke(t,l)))h=!0,p&&(d=d||l-g-1>i&&" "!==t[g+1],g=l);else if(!Ie(c))return 5;f=f&&Oe(c,u,s),u=c}d=d||p&&l-g-1>i&&" "!==t[g+1]}return h||d?r>9&&Pe(t)?5:o?2===a?5:2:d?4:3:!f||o||n(t)?2===a?5:2:1}function ze(t,e,r,i,a){t.dump=function(){if(0===e.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==De.indexOf(e)||Ee.test(e)))return 2===t.quotingType?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,r),s=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),l=i||t.flowLevel>-1&&r>=t.flowLevel;function c(e){return Be(t,e)}switch((0,n.K2)(c,"testAmbiguity"),qe(e,l,t.indent,s,c,t.quotingType,t.forceQuotes&&!i,a)){case 1:return e;case 2:return"'"+e.replace(/'/g,"''")+"'";case 3:return"|"+We(e,t.indent)+Ye(Fe(e,o));case 4:return">"+We(e,t.indent)+Ye(Fe($e(e,s),o));case 5:return'"'+Ue(e)+'"';default:throw new g("impossible error: invalid scalar style")}}()}function We(t,e){var r=Pe(t)?String(e):"",i="\n"===t[t.length-1];return r+(i&&("\n"===t[t.length-2]||"\n"===t)?"+":i?"":"-")+"\n"}function Ye(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function $e(t,e){for(var r,i,n,a=/(\n+)([^\n]*)/g,o=(r=-1!==(r=t.indexOf("\n"))?r:t.length,a.lastIndex=r,je(t.slice(0,r),e)),s="\n"===t[0]||" "===t[0];n=a.exec(t);){var l=n[1],c=n[2];i=" "===c[0],o+=l+(s||i||""===c?"":"\n")+je(c,e),s=i}return o}function je(t,e){if(""===t||" "===t[0])return t;for(var r,i,n=/ [^ ]/g,a=0,o=0,s=0,l="";r=n.exec(t);)(s=r.index)-a>e&&(i=o>a?o:s,l+="\n"+t.slice(a,i),a=i+1),o=s;return l+="\n",t.length-a>e&&o>a?l+=t.slice(a,o)+"\n"+t.slice(o+1):l+=t.slice(a),l.slice(1)}function Ue(t){for(var e,r="",i=0,n=0;n<t.length;i>=65536?n+=2:n++)i=Ke(t,n),!(e=Ae[i])&&Ie(i)?(r+=t[n],i>=65536&&(r+=t[n+1])):r+=e||we(i);return r}function He(t,e,r){var i,n,a,o="",s=t.tag;for(i=0,n=r.length;i<n;i+=1)a=r[i],t.replacer&&(a=t.replacer.call(r,String(i),a)),(Qe(t,e,a,!1,!1)||void 0===a&&Qe(t,e,null,!1,!1))&&(""!==o&&(o+=","+(t.condenseFlow?"":" ")),o+=t.dump);t.tag=s,t.dump="["+o+"]"}function Ve(t,e,r,i){var n,a,o,s="",l=t.tag;for(n=0,a=r.length;n<a;n+=1)o=r[n],t.replacer&&(o=t.replacer.call(r,String(n),o)),(Qe(t,e+1,o,!0,!0,!1,!0)||void 0===o&&Qe(t,e+1,null,!0,!0,!1,!0))&&(i&&""===s||(s+=_e(t,e)),t.dump&&10===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=l,t.dump=s||"[]"}function Ge(t,e,r){var i,n,a,o,s,l="",c=t.tag,u=Object.keys(r);for(i=0,n=u.length;i<n;i+=1)s="",""!==l&&(s+=", "),t.condenseFlow&&(s+='"'),o=r[a=u[i]],t.replacer&&(o=t.replacer.call(r,a,o)),Qe(t,e,a,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Qe(t,e,o,!1,!1)&&(l+=s+=t.dump));t.tag=c,t.dump="{"+l+"}"}function Xe(t,e,r,i){var n,a,o,s,l,c,u="",h=t.tag,d=Object.keys(r);if(!0===t.sortKeys)d.sort();else if("function"==typeof t.sortKeys)d.sort(t.sortKeys);else if(t.sortKeys)throw new g("sortKeys must be a boolean or a function");for(n=0,a=d.length;n<a;n+=1)c="",i&&""===u||(c+=_e(t,e)),s=r[o=d[n]],t.replacer&&(s=t.replacer.call(r,o,s)),Qe(t,e+1,o,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?c+="?":c+="? "),c+=t.dump,l&&(c+=_e(t,e)),Qe(t,e+1,s,!0,l)&&(t.dump&&10===t.dump.charCodeAt(0)?c+=":":c+=": ",u+=c+=t.dump));t.tag=h,t.dump=u||"{}"}function Ze(t,e,r){var n,a,o,s,l,c;for(o=0,s=(a=r?t.explicitTypes:t.implicitTypes).length;o<s;o+=1)if(((l=a[o]).instanceOf||l.predicate)&&(!l.instanceOf||"object"===(0,i.A)(e)&&e instanceof l.instanceOf)&&(!l.predicate||l.predicate(e))){if(r?l.multi&&l.representName?t.tag=l.representName(e):t.tag=l.tag:t.tag="?",l.represent){if(c=t.styleMap[l.tag]||l.defaultStyle,"[object Function]"===be.call(l.represent))n=l.represent(e,c);else{if(!ke.call(l.represent,c))throw new g("!<"+l.tag+'> tag resolver accepts not "'+c+'" style');n=l.represent[c](e,c)}t.dump=n}return!0}return!1}function Qe(t,e,r,i,n,a,o){t.tag=null,t.dump=r,Ze(t,r,!1)||Ze(t,r,!0);var s,l=be.call(t.dump),c=i;i&&(i=t.flowLevel<0||t.flowLevel>e);var u,h,d="[object Object]"===l||"[object Array]"===l;if(d&&(h=-1!==(u=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||h||2!==t.indent&&e>0)&&(n=!1),h&&t.usedDuplicates[u])t.dump="*ref_"+u;else{if(d&&h&&!t.usedDuplicates[u]&&(t.usedDuplicates[u]=!0),"[object Object]"===l)i&&0!==Object.keys(t.dump).length?(Xe(t,e,t.dump,n),h&&(t.dump="&ref_"+u+t.dump)):(Ge(t,e,t.dump),h&&(t.dump="&ref_"+u+" "+t.dump));else if("[object Array]"===l)i&&0!==t.dump.length?(t.noArrayIndent&&!o&&e>0?Ve(t,e-1,t.dump,n):Ve(t,e,t.dump,n),h&&(t.dump="&ref_"+u+t.dump)):(He(t,e,t.dump),h&&(t.dump="&ref_"+u+" "+t.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(t.skipInvalid)return!1;throw new g("unacceptable kind of an object to dump "+l)}"?"!==t.tag&&ze(t,t.dump,e,a,c)}null!==t.tag&&"?"!==t.tag&&(s=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),s="!"===t.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",t.dump=s+" "+t.dump)}return!0}function Je(t,e){var r,i,n=[],a=[];for(tr(t,n,a),r=0,i=a.length;r<i;r+=1)e.duplicates.push(n[a[r]]);e.usedDuplicates=new Array(i)}function tr(t,e,r){var n,a,o;if(null!==t&&"object"===(0,i.A)(t))if(-1!==(a=e.indexOf(t)))-1===r.indexOf(a)&&r.push(a);else if(e.push(t),Array.isArray(t))for(a=0,o=t.length;a<o;a+=1)tr(t[a],e,r);else for(a=0,o=(n=Object.keys(t)).length;a<o;a+=1)tr(t[n[a]],e,r)}function er(t,e){var r=new Se(e=e||{});r.noRefs||Je(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Qe(r,0,i,!0,!0)?r.dump+"\n":""}(0,n.K2)(qe,"chooseScalarStyle"),(0,n.K2)(ze,"writeScalar"),(0,n.K2)(We,"blockHeader"),(0,n.K2)(Ye,"dropEndingNewline"),(0,n.K2)($e,"foldString"),(0,n.K2)(je,"foldLine"),(0,n.K2)(Ue,"escapeString"),(0,n.K2)(He,"writeFlowSequence"),(0,n.K2)(Ve,"writeBlockSequence"),(0,n.K2)(Ge,"writeFlowMapping"),(0,n.K2)(Xe,"writeBlockMapping"),(0,n.K2)(Ze,"detectType"),(0,n.K2)(Qe,"writeNode"),(0,n.K2)(Je,"getDuplicateReferences"),(0,n.K2)(tr,"inspectNode"),(0,n.K2)(er,"dump$1");function rr(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}(0,n.K2)(rr,"renamed");var ir=X,nr=xe.load;rr("safeLoad","load"),rr("safeLoadAll","loadAll"),rr("safeDump","dump")},21075:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return a}});var i=r(70638),n=(r(43840),r(89906),r(21888),r(61340),r(86349),r(69914),r(607),r(86735),r(43376),r(17428),r(51266),r(34539),r(40985),r(68548)),a={parser:i._$,get db(){return new i.NM},renderer:i.Lh,styles:i.tM,init:(0,n.K2)(function(t){t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}},60467:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return a}});var i=r(70638),n=(r(43840),r(89906),r(21888),r(61340),r(86349),r(69914),r(607),r(86735),r(43376),r(17428),r(51266),r(34539),r(40985),r(68548)),a={parser:i._$,get db(){return new i.NM},renderer:i.Lh,styles:i.tM,init:(0,n.K2)(function(t){t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}},89371:function(t,e,r){"use strict";r.r(e),r.d(e,{render:function(){return x}});var i=r(20908),n=r(41034),a=r(30388),o=(r(74423),r(68548)),s=r(39326),l=r(72088),c=r(63219);function u(t,e){t.forEach(function(t){var r,i,n,a={id:t.id,labelText:t.label,height:t.height,width:t.width,padding:null!==(r=t.padding)&&void 0!==r?r:0};Object.keys(t).forEach(function(e){["id","label","height","width","padding","x","y"].includes(e)||(a[e]=t[e])}),e.add({group:"nodes",data:a,position:{x:null!==(i=t.x)&&void 0!==i?i:0,y:null!==(n=t.y)&&void 0!==n?n:0}})})}function h(t,e){t.forEach(function(t){var r={id:t.id,source:t.start,target:t.end};Object.keys(t).forEach(function(e){["id","start","end"].includes(e)||(r[e]=t[e])}),e.add({group:"edges",data:r})})}function d(t){return new Promise(function(e){var r=(0,c.Ltv)("body").append("div").attr("id","cy").attr("style","display:none"),i=(0,s.A)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),u(t.nodes,i),h(t.edges,i),i.nodes().forEach(function(t){t.layoutDimensions=function(){var e=t.data();return{w:e.width,h:e.height}}});i.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),i.ready(function(t){o.Rm.info("Cytoscape ready",t),e(i)})})}function p(t){return t.nodes().map(function(t){var e=t.data(),r=t.position(),i={id:e.id,x:r.x,y:r.y};return Object.keys(e).forEach(function(t){"id"!==t&&(i[t]=e[t])}),i})}function g(t){return t.edges().map(function(t){var e=t.data(),r=t._private.rscratch,i={id:e.id,source:e.source,target:e.target,startX:r.startX,startY:r.startY,midX:r.midX,midY:r.midY,endX:r.endX,endY:r.endY};return Object.keys(e).forEach(function(t){["id","source","target"].includes(t)||(i[t]=e[t])}),i})}function f(t,e){return y.apply(this,arguments)}function y(){return(y=(0,a.A)((0,i.A)().m(function t(e,r){var n,a,s,l;return(0,i.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:return o.Rm.debug("Starting cose-bilkent layout algorithm"),t.p=1,m(e),t.n=2,d(e);case 2:return n=t.v,a=p(n),s=g(n),o.Rm.debug("Layout completed: ".concat(a.length," nodes, ").concat(s.length," edges")),t.a(2,{nodes:a,edges:s});case 3:throw t.p=3,l=t.v,o.Rm.error("Error in cose-bilkent layout algorithm:",l),l;case 4:return t.a(2)}},t,null,[[1,3]])}))).apply(this,arguments)}function m(t){if(!t)throw new Error("Layout data is required");if(!t.config)throw new Error("Configuration is required in layout data");if(!t.rootNode)throw new Error("Root node is required");if(!t.nodes||!Array.isArray(t.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(t.edges))throw new Error("Edges array is required in layout data");return!0}s.A.use(l),(0,o.K2)(u,"addNodes"),(0,o.K2)(h,"addEdges"),(0,o.K2)(d,"createCytoscapeInstance"),(0,o.K2)(p,"extractPositionedNodes"),(0,o.K2)(g,"extractPositionedEdges"),(0,o.K2)(f,"executeCoseBilkentLayout"),(0,o.K2)(m,"validateLayoutData");var v=(0,o.K2)(function(){var t=(0,a.A)((0,i.A)().m(function t(e,r,o,s){var l,c,u,h,d,p,g,y,m,v,x,b,k,C,A,D;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:return l=o.insertCluster,c=o.insertEdge,u=o.insertEdgeLabel,h=o.insertMarkers,d=o.insertNode,p=o.log,g=o.positionEdgeLabel,s.algorithm,y={},m={},v=r.select("g"),h(v,e.markers,e.type,e.diagramId),x=v.insert("g").attr("class","subgraphs"),b=v.insert("g").attr("class","edgePaths"),k=v.insert("g").attr("class","edgeLabels"),C=v.insert("g").attr("class","nodes"),p.debug("Inserting nodes into DOM for dimension calculation"),t.n=1,Promise.all(e.nodes.map(function(){var t=(0,a.A)((0,i.A)().m(function t(r){var a,o,s,c;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:if(!r.isGroup){t.n=2;break}return a=(0,n.A)({},r),m[r.id]=a,y[r.id]=a,t.n=1,l(x,r);case 1:t.n=4;break;case 2:return o=(0,n.A)({},r),y[r.id]=o,t.n=3,d(C,r,{config:e.config,dir:e.direction||"TB"});case 3:s=t.v,c=s.node().getBBox(),o.width=c.width,o.height=c.height,o.domId=s,p.debug("Node ".concat(r.id," dimensions: ").concat(c.width,"x").concat(c.height));case 4:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()));case 1:return p.debug("Running cose-bilkent layout algorithm"),A=(0,n.A)((0,n.A)({},e),{},{nodes:e.nodes.map(function(t){var e=y[t.id];return(0,n.A)((0,n.A)({},t),{},{width:e.width,height:e.height})})}),t.n=2,f(A,e.config);case 2:return D=t.v,p.debug("Positioning nodes based on layout results"),D.nodes.forEach(function(t){var e=y[t.id];null!=e&&e.domId&&(e.domId.attr("transform","translate(".concat(t.x,", ").concat(t.y,")")),e.x=t.x,e.y=t.y,p.debug("Positioned node ".concat(e.id," at center (").concat(t.x,", ").concat(t.y,")")))}),D.edges.forEach(function(t){var r=e.edges.find(function(e){return e.id===t.id});r&&(r.points=[{x:t.startX,y:t.startY},{x:t.midX,y:t.midY},{x:t.endX,y:t.endY}])}),p.debug("Inserting and positioning edges"),t.n=3,Promise.all(e.edges.map(function(){var t=(0,a.A)((0,i.A)().m(function t(r){var a,o,s,l,h,d,f,v,x;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,u(k,r);case 1:t.v,s=y[null!==(a=r.start)&&void 0!==a?a:""],l=y[null!==(o=r.end)&&void 0!==o?o:""],s&&l&&((h=D.edges.find(function(t){return t.id===r.id}))?(p.debug("APA01 positionedEdge",h),d=(0,n.A)({},r),f=c(b,d,m,e.type,s,l,e.diagramId),g(d,f)):(v=(0,n.A)((0,n.A)({},r),{},{points:[{x:s.x||0,y:s.y||0},{x:l.x||0,y:l.y||0}]}),x=c(b,v,m,e.type,s,l,e.diagramId),g(v,x)));case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()));case 3:p.debug("Cose-bilkent rendering completed");case 4:return t.a(2)}},t)}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"render"),x=v},78073:function(t,e,r){"use strict";r.r(e),r.d(e,{render:function(){return L}});var i=r(20908),n=r(41034),a=r(30388),o=r(3604),s=r(74721),l=(r(74423),r(69914)),c=(r(607),r(86735)),u=r(43376),h=(r(17428),r(51266),r(34539),r(40985)),d=r(68548),p=r(57794),g=r(22938),f=r(18668),y=new Map,m=new Map,v=new Map,x=(0,d.K2)(function(){m.clear(),v.clear(),y.clear()},"clear"),b=(0,d.K2)(function(t,e){var r=m.get(e)||[];return d.Rm.trace("In isDescendant",e," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),k=(0,d.K2)(function(t,e){var r=m.get(e)||[];return d.Rm.info("Descendants of ",e," is ",r),d.Rm.info("Edge is ",t),t.v!==e&&t.w!==e&&(r?r.includes(t.v)||b(t.v,e)||b(t.w,e)||r.includes(t.w):(d.Rm.debug("Tilt, ",e,",not in descendants"),!1))},"edgeInCluster"),C=(0,d.K2)(function(t,e,r,i){d.Rm.warn("Copying children of ",t,"root",i,"data",e.node(t),i);var n=e.children(t)||[];t!==i&&n.push(t),d.Rm.warn("Copying (nodes) clusterId",t,"nodes",n),n.forEach(function(n){if(e.children(n).length>0)C(n,e,r,i);else{var a=e.node(n);d.Rm.info("cp ",n," to ",i," with parent ",t),r.setNode(n,a),i!==e.parent(n)&&(d.Rm.warn("Setting parent",n,e.parent(n)),r.setParent(n,e.parent(n))),t!==i&&n!==t?(d.Rm.debug("Setting parent",n,t),r.setParent(n,t)):(d.Rm.info("In copy ",t,"root",i,"data",e.node(t),i),d.Rm.debug("Not Setting parent for node=",n,"cluster!==rootId",t!==i,"node!==clusterId",n!==t));var o=e.edges(n);d.Rm.debug("Copying Edges",o),o.forEach(function(n){d.Rm.info("Edge",n);var a=e.edge(n.v,n.w,n.name);d.Rm.info("Edge data",a,i);try{k(n,i)?(d.Rm.info("Copying as ",n.v,n.w,a,n.name),r.setEdge(n.v,n.w,a,n.name),d.Rm.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):d.Rm.info("Skipping copy of edge ",n.v,"--\x3e",n.w," rootId: ",i," clusterId:",t)}catch(t){d.Rm.error(t)}})}d.Rm.debug("Removing node",n),e.removeNode(n)})},"copy"),A=(0,d.K2)(function(t,e){var r,i=e.children(t),n=(0,s.A)(i),a=(0,o.A)(i);try{for(a.s();!(r=a.n()).done;){var l=r.value;v.set(l,t),n=[].concat((0,s.A)(n),(0,s.A)(A(l,e)))}}catch(t){a.e(t)}finally{a.f()}return n},"extractDescendants"),D=(0,d.K2)(function(t,e,r){var i=t.edges().filter(function(t){return t.v===e||t.w===e}),n=t.edges().filter(function(t){return t.v===r||t.w===r}),a=i.map(function(t){return{v:t.v===e?r:t.v,w:t.w===e?e:t.w}}),o=n.map(function(t){return{v:t.v,w:t.w}});return a.filter(function(t){return o.some(function(e){return t.v===e.v&&t.w===e.w})})},"findCommonEdges"),E=(0,d.K2)(function(t,e,r){var i,n=e.children(t);if(d.Rm.trace("Searching children of id ",t,n),n.length<1)return t;var a,s=(0,o.A)(n);try{for(s.s();!(a=s.n()).done;){var l=a.value,c=E(l,e,r),u=D(e,r,c);if(c){if(!(u.length>0))return c;i=c}}}catch(t){s.e(t)}finally{s.f()}return i},"findNonClusterChild"),T=(0,d.K2)(function(t){return y.has(t)&&y.get(t).externalConnections&&y.has(t)?y.get(t).id:t},"getAnchorId"),w=(0,d.K2)(function(t,e){if(!t||e>10)d.Rm.debug("Opting out, no graph ");else{d.Rm.debug("Opting in, graph "),t.nodes().forEach(function(e){t.children(e).length>0&&(d.Rm.warn("Cluster identified",e," Replacement id in edges: ",E(e,t,e)),m.set(e,A(e,t)),y.set(e,{id:E(e,t,e),clusterData:t.node(e)}))}),t.nodes().forEach(function(e){var r=t.children(e),i=t.edges();r.length>0?(d.Rm.debug("Cluster identified",e,m),i.forEach(function(t){b(t.v,e)^b(t.w,e)&&(d.Rm.warn("Edge: ",t," leaves cluster ",e),d.Rm.warn("Descendants of XXX ",e,": ",m.get(e)),y.get(e).externalConnections=!0)})):d.Rm.debug("Not a cluster ",e,m)});var r,i=(0,o.A)(y.keys());try{for(i.s();!(r=i.n()).done;){var n=r.value,a=y.get(n).id,s=t.parent(a);s!==n&&y.has(s)&&!y.get(s).externalConnections&&(y.get(n).id=s)}}catch(t){i.e(t)}finally{i.f()}t.edges().forEach(function(e){var r=t.edge(e);d.Rm.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),d.Rm.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));var i=e.v,n=e.w;if(d.Rm.warn("Fix XXX",y,"ids:",e.v,e.w,"Translating: ",y.get(e.v)," --- ",y.get(e.w)),y.get(e.v)||y.get(e.w)){if(d.Rm.warn("Fixing and trying - removing XXX",e.v,e.w,e.name),i=T(e.v),n=T(e.w),t.removeEdge(e.v,e.w,e.name),i!==e.v){var a=t.parent(i);y.get(a).externalConnections=!0,r.fromCluster=e.v}if(n!==e.w){var o=t.parent(n);y.get(o).externalConnections=!0,r.toCluster=e.w}d.Rm.warn("Fix Replacing with XXX",i,n,e.name),t.setEdge(i,n,r,e.name)}}),d.Rm.warn("Adjusted Graph",g.M(t)),S(t,0),d.Rm.trace(y)}},"adjustClustersAndEdges"),S=(0,d.K2)(function(t,e){if(d.Rm.warn("extractor - ",e,g.M(t),t.children("D")),e>10)d.Rm.error("Bailing out");else{var r,i=t.nodes(),n=!1,a=(0,o.A)(i);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=t.children(s);n=n||l.length>0}}catch(t){a.e(t)}finally{a.f()}if(n){d.Rm.debug("Nodes = ",i,e);var c,u=(0,o.A)(i);try{for(u.s();!(c=u.n()).done;){var h=c.value;if(d.Rm.debug("Extracting node",h,y,y.has(h)&&!y.get(h).externalConnections,!t.parent(h),t.node(h),t.children("D")," Depth ",e),y.has(h))if(!y.get(h).externalConnections&&t.children(h)&&t.children(h).length>0){var p,m;d.Rm.warn("Cluster without external connections, without a parent and with children",h,e);var v="TB"===t.graph().rankdir?"LR":"TB";null!==(p=y.get(h))&&void 0!==p&&null!==(m=p.clusterData)&&void 0!==m&&m.dir&&(v=y.get(h).clusterData.dir,d.Rm.warn("Fixing dir",y.get(h).clusterData.dir,v));var x=new f.T({multigraph:!0,compound:!0}).setGraph({rankdir:v,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});d.Rm.warn("Old graph before copy",g.M(t)),C(h,t,x,h),t.setNode(h,{clusterNode:!0,id:h,clusterData:y.get(h).clusterData,label:y.get(h).label,graph:x}),d.Rm.warn("New graph after copy node: (",h,")",g.M(x)),d.Rm.debug("Old graph after copy",g.M(t))}else d.Rm.warn("Cluster ** ",h," **not meeting the criteria !externalConnections:",!y.get(h).externalConnections," no parent: ",!t.parent(h)," children ",t.children(h)&&t.children(h).length>0,t.children("D"),e),d.Rm.debug(y);else d.Rm.debug("Not a cluster",h,e)}}catch(t){u.e(t)}finally{u.f()}i=t.nodes(),d.Rm.warn("New list of nodes",i);var b,k=(0,o.A)(i);try{for(k.s();!(b=k.n()).done;){var A=b.value,D=t.node(A);d.Rm.warn(" Now next level",A,D),null!=D&&D.clusterNode&&S(D.graph,e+1)}}catch(t){k.e(t)}finally{k.f()}}else d.Rm.debug("Done, no node has children",t.nodes())}},"extractor"),F=(0,d.K2)(function(t,e){if(0===e.length)return[];var r=Object.assign([],e);return e.forEach(function(e){var i=t.children(e),n=F(t,i);r=[].concat((0,s.A)(r),(0,s.A)(n))}),r},"sorter"),_=(0,d.K2)(function(t){return F(t,t.children())},"sortNodesByHierarchy"),B=(0,d.K2)(function(){var t=(0,a.A)((0,i.A)().m(function t(e,r,o,s,h,f){var m,v,x,b,k,C,A,D,T,w;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:return d.Rm.warn("Graph in recursive render:XAX",g.M(r),h),m=r.graph().rankdir,d.Rm.trace("Dir in recursive render - dir:",m),v=e.insert("g").attr("class","root"),r.nodes()?d.Rm.info("Recursive render XXX",r.nodes()):d.Rm.info("No nodes found for",r),r.edges().length>0&&d.Rm.info("Recursive edges",r.edge(r.edges()[0])),x=v.insert("g").attr("class","clusters"),b=v.insert("g").attr("class","edgePaths"),k=v.insert("g").attr("class","edgeLabels"),C=v.insert("g").attr("class","nodes"),t.n=1,Promise.all(r.nodes().map(function(){var t=(0,a.A)((0,i.A)().m(function t(e){var a,l,u,p,g,v,x;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:if(a=r.node(e),void 0!==h&&(l=JSON.parse(JSON.stringify(h.clusterData)),d.Rm.trace("Setting data for parent cluster XXX\n Node.id = ",e,"\n data=",l.height,"\nParent cluster",h.height),r.setNode(h.id,l),r.parent(e)||(d.Rm.trace("Setting parent",e,h.id),r.setParent(e,h.id,l))),d.Rm.info("(Insert) Node XXX"+e+": "+JSON.stringify(r.node(e))),null==a||!a.clusterNode){t.n=2;break}return d.Rm.info("Cluster identified XBX",e,a.width,r.node(e)),u=r.graph(),p=u.ranksep,g=u.nodesep,a.graph.setGraph((0,n.A)((0,n.A)({},a.graph.graph()),{},{ranksep:p+25,nodesep:g})),t.n=1,B(C,a.graph,o,s,r.node(e),f);case 1:v=t.v,x=v.elem,(0,c.lC)(a,x),a.diff=v.diff||0,d.Rm.info("New compound node after recursive render XAX",e,"width",a.width,"height",a.height),(0,c.U7)(x,a),t.n=4;break;case 2:if(!(r.children(e).length>0)){t.n=3;break}d.Rm.trace("Cluster - the non recursive path XBX",e,a.id,a,a.width,"Graph:",r),d.Rm.trace(E(a.id,r)),y.set(a.id,{id:E(a.id,r),node:a}),t.n=4;break;case 3:return d.Rm.trace("Node - the non recursive path XAX",e,C,r.node(e),m),t.n=4,(0,c.on)(C,r.node(e),{config:f,dir:m});case 4:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()));case 1:return A=(0,d.K2)((0,a.A)((0,i.A)().m(function t(){var e;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:return e=r.edges().map(function(){var t=(0,a.A)((0,i.A)().m(function t(e){var n;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:return n=r.edge(e.v,e.w,e.name),d.Rm.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),d.Rm.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(r.edge(e))),d.Rm.info("Fix",y,"ids:",e.v,e.w,"Translating: ",y.get(e.v),y.get(e.w)),t.n=1,(0,l.jP)(k,n);case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()),t.n=1,Promise.all(e);case 1:return t.a(2)}},t)})),"processEdges"),t.n=2,A();case 2:return d.Rm.info("Graph before layout:",JSON.stringify(g.M(r))),d.Rm.info("############################################# XXX"),d.Rm.info("###                Layout                 ### XXX"),d.Rm.info("############################################# XXX"),(0,p.Zp)(r),d.Rm.info("Graph after layout:",JSON.stringify(g.M(r))),D=0,T=(0,u.O)(f),w=T.subGraphTitleTotalMargin,t.n=3,Promise.all(_(r).map(function(){var t=(0,a.A)((0,i.A)().m(function t(e){var n,a,o,s,l,u;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:if(n=r.node(e),d.Rm.info("Position XBX => "+e+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),null==n||!n.clusterNode){t.n=1;break}n.y+=w,d.Rm.info("A tainted cluster node XBX1",e,n.id,n.width,n.height,n.x,n.y,r.parent(e)),y.get(n.id).node=n,(0,c.U_)(n),t.n=4;break;case 1:if(!(r.children(e).length>0)){t.n=3;break}return d.Rm.info("A pure cluster node XBX1",e,n.id,n.x,n.y,n.width,n.height,r.parent(e)),n.height+=w,r.node(n.parentId),o=(null==n?void 0:n.padding)/2||0,s=(null==n||null===(a=n.labelBBox)||void 0===a?void 0:a.height)||0,l=s-o||0,d.Rm.debug("OffsetY",l,"labelHeight",s,"halfPadding",o),t.n=2,(0,c.U)(x,n);case 2:y.get(n.id).node=n,t.n=4;break;case 3:u=r.node(n.parentId),n.y+=w/2,d.Rm.info("A regular node XBX1 - using the padding",n.id,"parent",n.parentId,n.width,n.height,n.x,n.y,"offsetY",n.offsetY,"parent",u,null==u?void 0:u.offsetY,n),(0,c.U_)(n);case 4:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()));case 3:return r.edges().forEach(function(t){var e=r.edge(t);d.Rm.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e),e),e.points.forEach(function(t){return t.y+=w/2});var i=r.node(t.v),n=r.node(t.w),a=(0,l.Jo)(b,e,y,o,i,n,s);(0,l.T_)(e,a)}),r.nodes().forEach(function(t){var e=r.node(t);d.Rm.info(t,e.type,e.diff),e.isGroup&&(D=e.diff)}),d.Rm.warn("Returning from recursive render XAX",v,D),t.a(2,{elem:v,diff:D})}},t)}));return function(e,r,i,n,a,o){return t.apply(this,arguments)}}(),"recursiveRender"),L=(0,d.K2)(function(){var t=(0,a.A)((0,i.A)().m(function t(e,r){var a,o,s,u,p,y,m,v,b;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:return m=new f.T({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:(null===(a=e.config)||void 0===a?void 0:a.nodeSpacing)||(null===(o=e.config)||void 0===o||null===(s=o.flowchart)||void 0===s?void 0:s.nodeSpacing)||e.nodeSpacing,ranksep:(null===(u=e.config)||void 0===u?void 0:u.rankSpacing)||(null===(p=e.config)||void 0===p||null===(y=p.flowchart)||void 0===y?void 0:y.rankSpacing)||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),v=r.select("g"),(0,l.g0)(v,e.markers,e.type,e.diagramId),(0,c.gh)(),(0,l.IU)(),(0,c.IU)(),x(),e.nodes.forEach(function(t){m.setNode(t.id,(0,n.A)({},t)),t.parentId&&m.setParent(t.id,t.parentId)}),d.Rm.debug("Edges:",e.edges),e.edges.forEach(function(t){if(t.start===t.end){var e=t.start,r=e+"---"+e+"---1",i=e+"---"+e+"---2",a=m.node(e);m.setNode(r,{domId:r,id:r,parentId:a.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),m.setParent(r,a.parentId),m.setNode(i,{domId:i,id:i,parentId:a.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),m.setParent(i,a.parentId);var o=structuredClone(t),s=structuredClone(t),l=structuredClone(t);o.label="",o.arrowTypeEnd="none",o.endLabelLeft="",o.endLabelRight="",o.startLabelLeft="",o.id=e+"-cyclic-special-1",s.startLabelRight="",s.startLabelLeft="",s.endLabelLeft="",s.endLabelRight="",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=e+"-cyclic-special-mid",l.label="",l.startLabelRight="",l.startLabelLeft="",l.arrowTypeStart="none",a.isGroup&&(o.fromCluster=e,l.toCluster=e),l.id=e+"-cyclic-special-2",l.arrowTypeStart="none",m.setEdge(e,r,o,e+"-cyclic-special-0"),m.setEdge(r,i,s,e+"-cyclic-special-1"),m.setEdge(i,e,l,e+"-cyc<lic-special-2")}else m.setEdge(t.start,t.end,(0,n.A)({},t),t.id)}),d.Rm.warn("Graph at first:",JSON.stringify(g.M(m))),w(m),d.Rm.warn("Graph after XAX:",JSON.stringify(g.M(m))),b=(0,h.D7)(),t.n=1,B(v,m,e.type,e.diagramId,void 0,b);case 1:return t.a(2)}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"render")},53295:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return P}});var i=r(74721),n=r(20908),a=r(30388),o=r(41034),s=r(52067),l=r(17362),c=r(34539),u=r(40985),h=r(68548),d=r(79510),p={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},g={axes:[],curves:[],options:p},f=structuredClone(g),y=u.UI.radar,m=(0,h.K2)(function(){return(0,c.$t)((0,o.A)((0,o.A)({},y),(0,u.zj)().radar))},"getConfig"),v=(0,h.K2)(function(){return f.axes},"getAxes"),x=(0,h.K2)(function(){return f.curves},"getCurves"),b=(0,h.K2)(function(){return f.options},"getOptions"),k=(0,h.K2)(function(t){f.axes=t.map(function(t){var e;return{name:t.name,label:null!==(e=t.label)&&void 0!==e?e:t.name}})},"setAxes"),C=(0,h.K2)(function(t){f.curves=t.map(function(t){var e;return{name:t.name,label:null!==(e=t.label)&&void 0!==e?e:t.name,entries:A(t.entries)}})},"setCurves"),A=(0,h.K2)(function(t){if(null==t[0].axis)return t.map(function(t){return t.value});var e=v();if(0===e.length)throw new Error("Axes must be populated before curves for reference entries");return e.map(function(e){var r=t.find(function(t){var r;return(null===(r=t.axis)||void 0===r?void 0:r.$refText)===e.name});if(void 0===r)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),D={getAxes:v,getCurves:x,getOptions:b,setAxes:k,setCurves:C,setOptions:(0,h.K2)(function(t){var e,r,i,n,a,o,s,l,c,u,h=t.reduce(function(t,e){return t[e.name]=e,t},{});f.options={showLegend:null!==(e=null===(r=h.showLegend)||void 0===r?void 0:r.value)&&void 0!==e?e:p.showLegend,ticks:null!==(i=null===(n=h.ticks)||void 0===n?void 0:n.value)&&void 0!==i?i:p.ticks,max:null!==(a=null===(o=h.max)||void 0===o?void 0:o.value)&&void 0!==a?a:p.max,min:null!==(s=null===(l=h.min)||void 0===l?void 0:l.value)&&void 0!==s?s:p.min,graticule:null!==(c=null===(u=h.graticule)||void 0===u?void 0:u.value)&&void 0!==c?c:p.graticule}},"setOptions"),getConfig:m,clear:(0,h.K2)(function(){(0,u.IU)(),f=structuredClone(g)},"clear"),setAccTitle:u.SV,getAccTitle:u.iN,setDiagramTitle:u.ke,getDiagramTitle:u.ab,getAccDescription:u.m7,setAccDescription:u.EI},E=(0,h.K2)(function(t){(0,l.S)(t,D);var e=t.axes,r=t.curves,i=t.options;D.setAxes(e),D.setCurves(r),D.setOptions(i)},"populate"),T={parse:(0,h.K2)(function(){var t=(0,a.A)((0,n.A)().m(function t(e){var r;return(0,n.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,(0,d.qg)("radar",e);case 1:r=t.v,h.Rm.debug(r),E(r);case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),"parse")},w=(0,h.K2)(function(t,e,r,n){var a,o=n.db,l=o.getAxes(),c=o.getCurves(),u=o.getOptions(),h=o.getConfig(),d=o.getDiagramTitle(),p=(0,s.D)(e),g=S(p,h),f=null!==(a=u.max)&&void 0!==a?a:Math.max.apply(Math,(0,i.A)(c.map(function(t){return Math.max.apply(Math,(0,i.A)(t.entries))}))),y=u.min,m=Math.min(h.width,h.height)/2;F(g,l,m,u.ticks,u.graticule),_(g,l,m,h),B(g,l,c,y,f,u.graticule,h),R(g,c,u.showLegend,h),g.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-h.height/2-h.marginTop)},"draw"),S=(0,h.K2)(function(t,e){var r,i=e.width+e.marginLeft+e.marginRight,n=e.height+e.marginTop+e.marginBottom,a={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return(0,u.a$)(t,n,i,null===(r=e.useMaxWidth)||void 0===r||r),t.attr("viewBox","0 0 ".concat(i," ").concat(n)),t.append("g").attr("transform","translate(".concat(a.x,", ").concat(a.y,")"))},"drawFrame"),F=(0,h.K2)(function(t,e,r,i,n){if("circle"===n)for(var a=0;a<i;a++){var o=r*(a+1)/i;t.append("circle").attr("r",o).attr("class","radarGraticule")}else if("polygon"===n)for(var s=e.length,l=function(){var n=r*(c+1)/i,a=e.map(function(t,e){var r=2*e*Math.PI/s-Math.PI/2,i=n*Math.cos(r),a=n*Math.sin(r);return"".concat(i,",").concat(a)}).join(" ");t.append("polygon").attr("points",a).attr("class","radarGraticule")},c=0;c<i;c++)l()},"drawGraticule"),_=(0,h.K2)(function(t,e,r,i){for(var n=e.length,a=0;a<n;a++){var o=e[a].label,s=2*a*Math.PI/n-Math.PI/2;t.append("line").attr("x1",0).attr("y1",0).attr("x2",r*i.axisScaleFactor*Math.cos(s)).attr("y2",r*i.axisScaleFactor*Math.sin(s)).attr("class","radarAxisLine"),t.append("text").text(o).attr("x",r*i.axisLabelFactor*Math.cos(s)).attr("y",r*i.axisLabelFactor*Math.sin(s)).attr("class","radarAxisLabel")}},"drawAxes");function B(t,e,r,i,n,a,o){var s=e.length,l=Math.min(o.width,o.height)/2;r.forEach(function(e,r){if(e.entries.length===s){var c=e.entries.map(function(t,e){var r=2*Math.PI*e/s-Math.PI/2,a=L(t,i,n,l);return{x:a*Math.cos(r),y:a*Math.sin(r)}});"circle"===a?t.append("path").attr("d",I(c,o.curveTension)).attr("class","radarCurve-".concat(r)):"polygon"===a&&t.append("polygon").attr("points",c.map(function(t){return"".concat(t.x,",").concat(t.y)}).join(" ")).attr("class","radarCurve-".concat(r))}})}function L(t,e,r,i){return i*(Math.min(Math.max(t,e),r)-e)/(r-e)}function I(t,e){for(var r=t.length,i="M".concat(t[0].x,",").concat(t[0].y),n=0;n<r;n++){var a=t[(n-1+r)%r],o=t[n],s=t[(n+1)%r],l=t[(n+2)%r],c={x:o.x+(s.x-a.x)*e,y:o.y+(s.y-a.y)*e},u={x:s.x-(l.x-o.x)*e,y:s.y-(l.y-o.y)*e};i+=" C".concat(c.x,",").concat(c.y," ").concat(u.x,",").concat(u.y," ").concat(s.x,",").concat(s.y)}return"".concat(i," Z")}function R(t,e,r,i){if(r){var n=3*(i.width/2+i.marginRight)/4,a=3*-(i.height/2+i.marginTop)/4;e.forEach(function(e,r){var i=t.append("g").attr("transform","translate(".concat(n,", ").concat(a+20*r,")"));i.append("rect").attr("width",12).attr("height",12).attr("class","radarLegendBox-".concat(r)),i.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(e.label)})}}(0,h.K2)(B,"drawCurves"),(0,h.K2)(L,"relativeRadius"),(0,h.K2)(I,"closedRoundCurve"),(0,h.K2)(R,"drawLegend");var O={draw:w},M=(0,h.K2)(function(t,e){for(var r="",i=0;i<t.THEME_COLOR_LIMIT;i++){var n=t["cScale".concat(i)];r+="\n\t\t.radarCurve-".concat(i," {\n\t\t\tcolor: ").concat(n,";\n\t\t\tfill: ").concat(n,";\n\t\t\tfill-opacity: ").concat(e.curveOpacity,";\n\t\t\tstroke: ").concat(n,";\n\t\t\tstroke-width: ").concat(e.curveStrokeWidth,";\n\t\t}\n\t\t.radarLegendBox-").concat(i," {\n\t\t\tfill: ").concat(n,";\n\t\t\tfill-opacity: ").concat(e.curveOpacity,";\n\t\t\tstroke: ").concat(n,";\n\t\t}\n\t\t")}return r},"genIndexStyles"),N=(0,h.K2)(function(t){var e=(0,u.P$)(),r=(0,u.zj)(),i=(0,c.$t)(e,r.themeVariables);return{themeVariables:i,radarOptions:(0,c.$t)(i.radar,t)}},"buildRadarStyleOptions"),K=(0,h.K2)(function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).radar,e=N(t),r=e.themeVariables,i=e.radarOptions;return"\n\t.radarTitle {\n\t\tfont-size: ".concat(r.fontSize,";\n\t\tcolor: ").concat(r.titleColor,";\n\t\tdominant-baseline: hanging;\n\t\ttext-anchor: middle;\n\t}\n\t.radarAxisLine {\n\t\tstroke: ").concat(i.axisColor,";\n\t\tstroke-width: ").concat(i.axisStrokeWidth,";\n\t}\n\t.radarAxisLabel {\n\t\tdominant-baseline: middle;\n\t\ttext-anchor: middle;\n\t\tfont-size: ").concat(i.axisLabelFontSize,"px;\n\t\tcolor: ").concat(i.axisColor,";\n\t}\n\t.radarGraticule {\n\t\tfill: ").concat(i.graticuleColor,";\n\t\tfill-opacity: ").concat(i.graticuleOpacity,";\n\t\tstroke: ").concat(i.graticuleColor,";\n\t\tstroke-width: ").concat(i.graticuleStrokeWidth,";\n\t}\n\t.radarLegendText {\n\t\ttext-anchor: start;\n\t\tfont-size: ").concat(i.legendFontSize,"px;\n\t\tdominant-baseline: hanging;\n\t}\n\t").concat(M(r,i),"\n\t")},"styles"),P={parser:T,db:D,renderer:O,styles:K}},53261:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return E}});var i=r(20908),n=r(30388),a=r(52067),o=r(17362),s=r(3755),l=r(34539),c=r(40985),u=r(68548),h=r(79510),d=new s.m(function(){return{cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]}}),p=(0,u.K2)(function(){d.reset(),(0,c.IU)()},"clear"),g=(0,u.K2)(function(){return d.records.stack[0]},"getRoot"),f=(0,u.K2)(function(){return d.records.cnt},"getCount"),y=c.UI.treeView,m=(0,u.K2)(function(){return(0,l.$t)(y,(0,c.zj)().treeView)},"getConfig"),v={clear:p,addNode:(0,u.K2)(function(t,e){for(;t<=d.records.stack[d.records.stack.length-1].level;)d.records.stack.pop();var r={id:d.records.cnt++,level:t,name:e,children:[]};d.records.stack[d.records.stack.length-1].children.push(r),d.records.stack.push(r)},"addNode"),getRoot:g,getCount:f,getConfig:m,getAccTitle:c.iN,getAccDescription:c.m7,getDiagramTitle:c.ab,setAccDescription:c.EI,setAccTitle:c.SV,setDiagramTitle:c.ke},x=(0,u.K2)(function(t){(0,o.S)(t,v),t.nodes.map(function(t){return v.addNode(t.indent?parseInt(t.indent):0,t.name)})},"populate"),b={parse:(0,u.K2)(function(){var t=(0,n.A)((0,i.A)().m(function t(e){var r;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,(0,h.qg)("treeView",e);case 1:r=t.v,u.Rm.debug(r),x(r);case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),"parse")},k=(0,u.K2)(function(t,e,r,i,n){var a=i.append("text").text(r.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),o=a.node().getBBox(),s=o.height,l=o.width,c=s+2*n.paddingY,u=l+2*n.paddingX;a.attr("x",t+n.paddingX),a.attr("y",e+c/2),r.BBox={x:t,y:e,width:u,height:c}},"positionLabel"),C=(0,u.K2)(function(t,e,r,i,n,a){return t.append("line").attr("x1",e).attr("y1",r).attr("x2",i).attr("y2",n).attr("stroke-width",a).attr("class","treeView-node-line")},"positionLine"),A=(0,u.K2)(function(t,e,r){var i=0,n=0,a=(0,u.K2)(function(t,e,r,a){var o=a*(r.rowIndent+r.paddingX);k(o,i,e,t,r);var s=e.BBox,l=s.height,c=s.width;C(t,o-r.rowIndent,i+l/2,o,i+l/2,r.lineThickness),n=Math.max(n,o+c),i+=l},"drawNode"),o=(0,u.K2)(function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;a(t,e,r,i),e.children.forEach(function(t){o(t,i+1)});var n=e.BBox,s=n.x,l=n.y,c=n.height;if(e.children.length){var u=e.children[e.children.length-1].BBox,h=u.y,d=u.height;C(t,s+r.paddingX,l+c,s+r.paddingX,h+d/2+r.lineThickness/2,r.lineThickness)}},"processNode");return o(e),{totalHeight:i,totalWidth:n}},"drawTree"),D={labelFontSize:"16px",labelColor:"black",lineColor:"black"},E={db:v,renderer:{draw:(0,u.K2)(function(t,e,r,i){u.Rm.debug("Rendering treeView diagram\n"+t);var n=i.db,o=n.getRoot(),s=n.getConfig(),l=(0,a.D)(e),h=l.append("g");h.attr("class","tree-view");var d=A(h,o,s),p=d.totalHeight,g=d.totalWidth;l.attr("viewBox","-".concat(s.lineThickness/2," 0 ").concat(g," ").concat(p)),(0,c.a$)(l,p,g,s.useMaxWidth)},"draw")},parser:b,styles:(0,u.K2)(function(t){var e=t.treeView,r=(0,l.$t)(D,e),i=r.labelFontSize,n=r.labelColor,a=r.lineColor;return"\n    .treeView-node-label {\n        font-size: ".concat(i,";\n        fill: ").concat(n,";\n    }\n    .treeView-node-line {\n        stroke: ").concat(a,";\n    }\n    ")},"styles")}},56177:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return st}});var i=r(20908),n=r(30388),a=r(23772),o=r(74721),s=r(41034),l=r(17362),c=r(34539),u=r(40985),h=r(68548),d=r(79510),p=r(63219),g="position frame",f="frame positioned",y="position relation",m="relation positioned",v=(0,h.K2)(function(t){h.Rm.debug("options str",t)},"setOptions"),x=(0,h.K2)(function(){return{}},"getOptions"),b=(0,h.K2)(function(){k(),(0,u.IU)()},"clear");function k(){D={}}(0,h.K2)(k,"reset");var C=u.UI.eventmodeling,A=(0,h.K2)(function(){return(0,c.$t)((0,s.A)((0,s.A)({},C),(0,u.zj)().eventmodeling))},"getConfig"),D={};function E(){var t=F,e=D.ast,r=S();if(!e)throw new Error("No data for EventModel");return e.frames.forEach(function(i,n){var a=M(i,e.dataEntities,r);t=Q(t,{$kind:g,index:n,frame:i,textProps:a});Y(i)?(h.Rm.debug("source frame",i.sourceFrames),e.frames.filter(function(t){return i.sourceFrames.some(function(e){return e.$refText===t.name})}).forEach(function(e){t=Q(t,{$kind:y,index:n,frame:i,sourceFrame:e})})):t=Q(t,{$kind:y,index:n,frame:i})}),t=(0,s.A)((0,s.A)({},t),{},{sortedSwimlanesArray:q(t.swimlanes)})}function T(t){D.ast=t}(0,h.K2)(E,"getState"),(0,h.K2)(T,"setAst");var w={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function S(){return w}(0,h.K2)(S,"getDiagramProps");var F={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function _(t){var e=t.split(".");if(2===e.length)return e[0]}function B(t){var e=t.split(".");return 2===e.length?e[1]:t}function L(t,e){if(e&&0!==e.length)return Object.values(t).find(function(t){return t.namespace===e})}function I(t,e,r){return Math.max.apply(Math,[e].concat((0,o.A)(Object.keys(t).filter(function(t){var i=Number.parseInt(t);return i>e&&i<r}).map(function(t){return Number.parseInt(t)}))))+1}function R(t,e){var r=_(t.entityIdentifier),i=L(e,r);switch(t.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||w.labelUiAutomation}:r?{index:I(e,0,100),label:w.labelUiAutomationPrefix+r}:{index:0,label:w.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||w.labelCommandReadModel}:r?{index:I(e,100,200),label:w.labelCommandReadModelPrefix+r}:{index:100,label:w.labelCommandReadModel};default:return i?{index:i.index,label:i.namespace||w.labelEvents}:r?{index:I(e,200,300),label:w.labelEventsPrefix+r}:{index:200,label:w.labelEvents}}}function O(t){var e,r,i,n,a,o,s,l,c,h,d=(0,u.zj)().themeVariables;switch(t.modelEntityType){case"ui":return{fill:null!==(e=d.emUiFill)&&void 0!==e?e:"white",stroke:null!==(r=d.emUiStroke)&&void 0!==r?r:"#dbdada"};case"pcr":case"processor":return{fill:null!==(i=d.emProcessorFill)&&void 0!==i?i:"#edb3f6",stroke:null!==(n=d.emProcessorStroke)&&void 0!==n?n:"#b88cbf"};case"rmo":case"readmodel":return{fill:null!==(a=d.emReadModelFill)&&void 0!==a?a:"#d3f1a2",stroke:null!==(o=d.emReadModelStroke)&&void 0!==o?o:"#a3b732"};case"cmd":case"command":return{fill:null!==(s=d.emCommandFill)&&void 0!==s?s:"#bcd6fe",stroke:null!==(l=d.emCommandStroke)&&void 0!==l?l:"#679ac3"};case"evt":case"event":return{fill:null!==(c=d.emEventFill)&&void 0!==c?c:"#ffb778",stroke:null!==(h=d.emEventStroke)&&void 0!==h?h:"#c19a0f"};default:return{fill:"red",stroke:"black"}}}function M(t,e,r){var i,n,a=(0,u.zj)(),o=(0,u.jZ)(null!==(i=B(t.entityIdentifier))&&void 0!==i?i:"",a),s={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},l=(0,c.bH)(o,r.textMaxWidth,s),d="<b>".concat(l,"</b>");if(t.dataInlineValue&&(n=(n=(n=t.dataInlineValue).substring(n.indexOf("{")+1)).substring(0,n.lastIndexOf("}")-1),n=(0,u.jZ)(n,a),n=(n=(0,c.bH)(n,r.textMaxWidth,s)).replaceAll(" ","&nbsp;")),t.dataReference){var p=e.find(function(e){var r;return e.name===(null===(r=t.dataReference)||void 0===r?void 0:r.$refText)});p&&(n=(n=(n=p.dataBlockValue).substring(n.indexOf("{\n")+2)).substring(0,n.lastIndexOf("}")-1),n=(0,u.jZ)(n,a),n=(n=(0,c.bH)(n,r.textMaxWidth,s)).replaceAll(" ","&nbsp;"),n+="<br/>")}var g=void 0!==n;g&&(d+='<br/><br/><code style="text-align: left; display: block;max-width:'.concat(r.textMaxWidth,'px">').concat(n,"</code>"));var f={fontSize:s.fontSize,fontWeight:s.fontWeight,fontFamily:s.fontFamily},y=(0,c.PX)(d,f),m={content:d,width:g?y.width/3:y.width,height:y.height};return h.Rm.debug("[".concat(t.name,"] ").concat(t.entityIdentifier," text"),m),m}function N(t,e){var r=e,i=O(r.frame),n={width:r.textProps.width+2*w.boxTextPadding,height:r.textProps.height+2*w.boxTextPadding};return[{$kind:f,frame:r.frame,index:r.index,visual:i,dimension:n,textProps:r.textProps}]}function K(t,e,r){return void 0===e?w.contentStartX:e.index===t.index&&t.r?t.r+w.boxPadding:void 0===r?w.contentStartX:r.r-w.boxOverlap+w.boxPadding}function P(t,e){var r=[].concat((0,o.A)(t.map(function(t){return t.r})),[e]);return Math.max.apply(Math,(0,o.A)(r))}function q(t){return Object.values(t).sort(function(t,e){return t.index-e.index})}function z(t,e){var r,i=e,n=R(i.frame,t.swimlanes);r=n.index in t.swimlanes?t.swimlanes[n.index]:{index:n.index,label:n.label,r:0,y:n.index*w.swimlaneMinHeight+w.swimlaneGap,height:w.swimlaneMinHeight,maxHeight:w.swimlaneMinHeight};var l=t.boxes.length>0?t.boxes[t.boxes.length-1]:void 0,c=void 0!==t.previousSwimlaneNumber?t.swimlanes[t.previousSwimlaneNumber]:void 0,u={width:Math.max(w.boxMinWidth,Math.min(w.boxMaxWidth,i.dimension.width))+2*w.boxPadding,height:Math.max(w.boxMinHeight,Math.min(w.boxMaxHeight,i.dimension.height))+2*w.boxPadding},h=K(r,c,l),d=h+u.width+w.boxPadding,p=P(Object.values(t.swimlanes),d);r.r=h+u.width,r.maxHeight=Math.max(r.maxHeight,u.height),r.height=Math.max(w.swimlaneMinHeight,r.maxHeight)+2*w.swimlanePadding;var g={x:h,y:w.swimlanePadding+r.y,r:d,dimension:u,leftSibling:!1,swimlane:r,visual:i.visual,text:i.textProps.content,frame:i.frame,index:i.index},f=(0,s.A)((0,s.A)({},t),{},{boxes:[].concat((0,o.A)(t.boxes),[g]),swimlanes:(0,s.A)((0,s.A)({},t.swimlanes),{},(0,a.A)({},"".concat(r.index),r)),previousSwimlaneNumber:n.index,previousFrame:i.frame,maxR:p}),y=q(f.swimlanes);y.length>0&&(y[0].y=0);for(var m=1;m<y.length;m++){var v=y[m],x=y[m-1];v.y=x.y+x.height+w.swimlaneGap}return f}function W(t,e){return 0===t&&0===e.sourceFrames.length}function Y(t){return void 0!==t.sourceFrames&&null!==t.sourceFrames&&t.sourceFrames.length>0}function $(t,e){if(null!=e)return t.find(function(t){return t.frame.name===e.name})}function j(t,e,r){if(!(r<0))for(var i=r;i>=0;i--){var n=t[i];if(n.swimlane.index!==e)return n}}function U(t,e){var r=e;if((0,d.F5)(r.frame)||W(r.index,r.frame))return[];var i,n=$(t.boxes,r.frame);if(void 0===n)throw new Error("Target box not found for frame ".concat(r.frame.name));return void 0===(i=r.sourceFrame?$(t.boxes,r.sourceFrame):j(t.boxes,n.swimlane.index,r.index-1))?[]:[{$kind:m,frame:r.frame,index:r.index,sourceBox:i,targetBox:n}]}function H(t,e){var r=e,i={visual:{fill:"none",stroke:"#000"},source:{x:r.sourceBox.x,y:r.sourceBox.y},target:{x:r.targetBox.x,y:r.targetBox.y},sourceBox:r.sourceBox,targetBox:r.targetBox};return(0,s.A)((0,s.A)({},t),{},{relations:[].concat((0,o.A)(t.relations),[i])})}(0,h.K2)(_,"extractNamespace"),(0,h.K2)(B,"extractName"),(0,h.K2)(L,"findSwimlaneByNamespace"),(0,h.K2)(I,"findNextAvailableIndex"),(0,h.K2)(R,"calculateSwimlaneProps"),(0,h.K2)(O,"calculateEntityVisualProps"),(0,h.K2)(M,"calculateTextProps"),(0,h.K2)(N,"decidePositionFrame"),(0,h.K2)(K,"calculateX"),(0,h.K2)(P,"calculateMaxRight"),(0,h.K2)(q,"sortedSwimlanesArray"),(0,h.K2)(z,"evolveFramePositioned"),(0,h.K2)(W,"isFirstFrame"),(0,h.K2)(Y,"hasSourceFrame"),(0,h.K2)($,"findBoxByFrame"),(0,h.K2)(j,"findBoxByLineIndex"),(0,h.K2)(U,"decidePositionRelation"),(0,h.K2)(H,"evolveRelationPositioned");var V=(0,a.A)((0,a.A)({},g,N),y,U),G=(0,a.A)((0,a.A)({},f,z),m,H);function X(t,e){var r=V[e.$kind];if(null==r)return[];var i=r(t,e);return h.Rm.debug("decided events",i),i}function Z(t,e){var r=e.reduce(function(t,e){var r=G[e.$kind];return null==r?t:r(t,e)},t);return h.Rm.debug("evolve events",{state:t,newState:r,events:e}),r}function Q(t,e){return Z(t,X(t,e))}(0,h.K2)(X,"decide"),(0,h.K2)(Z,"evolve"),(0,h.K2)(Q,"dispatch");var J={getConfig:A,setOptions:v,getOptions:x,clear:b,setAccTitle:u.SV,getAccTitle:u.iN,getAccDescription:u.m7,setAccDescription:u.EI,setDiagramTitle:u.ke,getDiagramTitle:u.ab,setAst:T,getDiagramProps:S,getState:E},tt={parse:(0,h.K2)(function(){var t=(0,n.A)((0,i.A)().m(function t(e){var r;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,(0,d.qg)("eventmodeling",e);case 1:r=t.v,h.Rm.debug(r),J.setAst(r),(0,l.S)(r,J);case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),"parse")},et=(0,u.D7)(),rt=null==et?void 0:et.eventmodeling;function it(t,e){return function(r){var i=r.swimlane.y+e.swimlanePadding,n=t.append("g").attr("class","em-box");n.append("rect").attr("x",r.x).attr("y",i).attr("rx","3").attr("width",r.dimension.width).attr("height",r.dimension.height).attr("stroke",r.visual.stroke).attr("fill",r.visual.fill),n.append("foreignObject").attr("x",r.x+e.boxPadding).attr("y",i+10).attr("width",r.dimension.width-2*e.boxPadding).attr("height",r.dimension.height-2*e.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(r.text)}}function nt(t,e){return t>e}function at(t,e,r,i){return function(n){var a,o,s,l=n.sourceBox.swimlane.y+e.swimlanePadding,c=n.targetBox.swimlane.y+e.swimlanePadding,u=nt(l,c),d=n.sourceBox.x+2*n.sourceBox.dimension.width/3,p=n.targetBox.x+n.targetBox.dimension.width/3;h.Rm.debug("rendering relation up=".concat(u," for "),{sourceBox:n.sourceBox,targetBox:n.targetBox}),u?(o=l,s=c+n.targetBox.dimension.height):(o=l+n.sourceBox.dimension.height,s=c);var g=null!==(a=i.emRelationStroke)&&void 0!==a?a:n.visual.stroke;t.append("path").attr("class","em-relation").attr("fill",n.visual.fill).attr("stroke",g).attr("stroke-width","1").attr("marker-end","url(#".concat(r,")")).attr("d","M".concat(d," ").concat(o," L").concat(p," ").concat(s))}}function ot(t,e,r,i){return function(n){var a,o,s=t.append("g").attr("class","em-swimlane"),l=null!==(a=i.emSwimlaneBackgroundOdd)&&void 0!==a?a:"rgb(250,250,250)",c=null!==(o=i.emSwimlaneBackgroundStroke)&&void 0!==o?o:"rgb(240,240,240)";s.append("rect").attr("x",0).attr("y",n.y).attr("rx","3").attr("width",e+r.swimlanePadding).attr("height",n.height).attr("fill",l).attr("stroke",c),s.append("text").attr("font-weight",r.swimlaneTextFontWeight).attr("x",30).attr("y",n.y+30).text(n.label)}}(0,h.K2)(it,"renderD3Box"),(0,h.K2)(nt,"dirUpwards"),(0,h.K2)(at,"renderD3Relation"),(0,h.K2)(ot,"renderD3Swimlane");var st={parser:tt,db:J,renderer:{draw:(0,h.K2)(function(t,e,r,i){var n,a;if(h.Rm.debug("in eventmodeling renderer",t+"\n","id:",e,r),!rt)throw new Error("EventModeling config not found");var o=i.db,s=(0,u.D7)(),l=s.themeVariables,c=s.eventmodeling,d=(0,p.Ltv)('[id="'.concat(e,'"]')),g=o.getDiagramProps(),f=o.getState(),y="em-arrowhead-".concat(e),m=null!==(n=l.emArrowhead)&&void 0!==n?n:"#000000";f.sortedSwimlanesArray.forEach(ot(d,f.maxR,g,l)),f.boxes.forEach(it(d,g)),f.relations.forEach(at(d,g,y,l)),d.append("defs").append("marker").attr("id",y).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",m),(0,u.mj)(void 0,d,null!==(a=null==c?void 0:c.padding)&&void 0!==a?a:30,null==c?void 0:c.useMaxWidth)},"draw")},styles:(0,h.K2)(function(t){return""},"getStyles")}},60442:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return w}});var i,n=r(20908),a=r(30388),o=r(81587),s=r(3604),l=r(41034),c=r(25026),u=r(69492),h=r(52067),d=r(17362),p=r(34539),g=r(40985),f=r(68548),y=r(79510),m=g.UI.packet,v=(i=function(){return(0,u.A)(function t(){(0,c.A)(this,t),this.packet=[],this.setAccTitle=g.SV,this.getAccTitle=g.iN,this.setDiagramTitle=g.ke,this.getDiagramTitle=g.ab,this.getAccDescription=g.m7,this.setAccDescription=g.EI},[{key:"getConfig",value:function(){var t=(0,p.$t)((0,l.A)((0,l.A)({},m),(0,g.zj)().packet));return t.showBits&&(t.paddingY+=10),t}},{key:"getPacket",value:function(){return this.packet}},{key:"pushWord",value:function(t){t.length>0&&this.packet.push(t)}},{key:"clear",value:function(){(0,g.IU)(),this.packet=[]}}])}(),(0,f.K2)(i,"PacketDB"),i),x=(0,f.K2)(function(t,e){(0,d.S)(t,e);var r,i=-1,n=[],a=1,l=e.getConfig().bitsPerRow,c=(0,s.A)(t.blocks);try{for(c.s();!(r=c.n()).done;){var u=r.value,h=u.start,p=u.end,g=u.bits,y=u.label;if(void 0!==h&&void 0!==p&&p<h)throw new Error("Packet block ".concat(h," - ").concat(p," is invalid. End must be greater than start."));if(null!=h||(h=i+1),h!==i+1)throw new Error("Packet block ".concat(h," - ").concat(null!=p?p:h," is not contiguous. It should start from ").concat(i+1,"."));if(0===g)throw new Error("Packet block ".concat(h," is invalid. Cannot have a zero bit field."));for(null!=p||(p=h+(null!=g?g:1)-1),null!=g||(g=p-h+1),i=p,f.Rm.debug("Packet block ".concat(h," - ").concat(i," with label ").concat(y));n.length<=l+1&&e.getPacket().length<1e4;){var m=b({start:h,end:p,bits:g,label:y},a,l),v=(0,o.A)(m,2),x=v[0],k=v[1];if(n.push(x),x.end+1===a*l&&(e.pushWord(n),n=[],a++),!k)break;h=k.start,p=k.end,g=k.bits,y=k.label}}}catch(t){c.e(t)}finally{c.f()}e.pushWord(n)},"populate"),b=(0,f.K2)(function(t,e,r){if(void 0===t.start)throw new Error("start should have been set during first phase");if(void 0===t.end)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error("Block start ".concat(t.start," is greater than block end ").concat(t.end,"."));if(t.end+1<=e*r)return[t,void 0];var i=e*r-1,n=e*r;return[{start:t.start,end:i,label:t.label,bits:i-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),k={parser:{yy:void 0},parse:(0,f.K2)(function(){var t=(0,a.A)((0,n.A)().m(function t(e){var r,i,a;return(0,n.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,(0,y.qg)("packet",e);case 1:if(i=t.v,(a=null===(r=k.parser)||void 0===r?void 0:r.yy)instanceof v){t.n=2;break}throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");case 2:f.Rm.debug(i),x(i,a);case 3:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),"parse")},C=(0,f.K2)(function(t,e,r,i){var n=i.db,a=n.getConfig(),l=a.rowHeight,c=a.paddingY,u=a.bitWidth,d=a.bitsPerRow,p=n.getPacket(),f=n.getDiagramTitle(),y=l+c,m=y*(p.length+1)-(f?0:l),v=u*d+2,x=(0,h.D)(e);x.attr("viewBox","0 0 ".concat(v," ").concat(m)),(0,g.a$)(x,m,v,a.useMaxWidth);var b,k=(0,s.A)(p.entries());try{for(k.s();!(b=k.n()).done;){var C=(0,o.A)(b.value,2),D=C[0],E=C[1];A(x,E,D,a)}}catch(t){k.e(t)}finally{k.f()}x.append("text").text(f).attr("x",v/2).attr("y",m-y/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),A=(0,f.K2)(function(t,e,r,i){var n,a=i.rowHeight,o=i.paddingX,l=i.paddingY,c=i.bitWidth,u=i.bitsPerRow,h=i.showBits,d=t.append("g"),p=r*(a+l)+l,g=(0,s.A)(e);try{for(g.s();!(n=g.n()).done;){var f=n.value,y=f.start%u*c+1,m=(f.end-f.start+1)*c-o;if(d.append("rect").attr("x",y).attr("y",p).attr("width",m).attr("height",a).attr("class","packetBlock"),d.append("text").attr("x",y+m/2).attr("y",p+a/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(f.label),h){var v=f.end===f.start,x=p-2;d.append("text").attr("x",y+(v?m/2:0)).attr("y",x).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(f.start),v||d.append("text").attr("x",y+m).attr("y",x).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(f.end)}}}catch(t){g.e(t)}finally{g.f()}},"drawWord"),D={draw:C},E={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},T=(0,f.K2)(function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).packet,e=(0,p.$t)(E,t);return"\n\t.packetByte {\n\t\tfont-size: ".concat(e.byteFontSize,";\n\t}\n\t.packetByte.start {\n\t\tfill: ").concat(e.startByteColor,";\n\t}\n\t.packetByte.end {\n\t\tfill: ").concat(e.endByteColor,";\n\t}\n\t.packetLabel {\n\t\tfill: ").concat(e.labelColor,";\n\t\tfont-size: ").concat(e.labelFontSize,";\n\t}\n\t.packetTitle {\n\t\tfill: ").concat(e.titleColor,";\n\t\tfont-size: ").concat(e.titleFontSize,";\n\t}\n\t.packetBlock {\n\t\tstroke: ").concat(e.blockStrokeColor,";\n\t\tstroke-width: ").concat(e.blockStrokeWidth,";\n\t\tfill: ").concat(e.blockFillColor,";\n\t}\n\t")},"styles"),w={parser:k,get db(){return new v},renderer:D,styles:T}},58858:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return F}});var i,n=r(20908),a=r(30388),o=r(3604),s=r(41034),l=r(25026),c=r(69492),u=(r(74423),r(52067)),h=r(61340),d=r(17428),p=r(17362),g=r(34539),f=r(40985),y=r(68548),m=r(79510),v=r(63219),x=(i=function(){return(0,c.A)(function t(){(0,l.A)(this,t),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=f.SV,this.getAccTitle=f.iN,this.setDiagramTitle=f.ke,this.getDiagramTitle=f.ab,this.getAccDescription=f.m7,this.setAccDescription=f.EI},[{key:"getNodes",value:function(){return this.nodes}},{key:"getConfig",value:function(){var t,e=f.UI,r=(0,f.zj)();return(0,g.$t)((0,s.A)((0,s.A)({},e.treemap),null!==(t=r.treemap)&&void 0!==t?t:{}))}},{key:"addNode",value:function(t,e){var r;(this.nodes.push(t),this.levels.set(t,e),0===e)&&(this.outerNodes.push(t),null!==(r=this.root)&&void 0!==r||(this.root=t))}},{key:"getRoot",value:function(){return{name:"",children:this.outerNodes}}},{key:"addClass",value:function(t,e){var r,i=null!==(r=this.classes.get(t))&&void 0!==r?r:{id:t,styles:[],textStyles:[]},n=e.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(function(t){(0,d.KX)(t)&&(null!=i&&i.textStyles?i.textStyles.push(t):i.textStyles=[t]),null!=i&&i.styles?i.styles.push(t):i.styles=[t]}),this.classes.set(t,i)}},{key:"getClasses",value:function(){return this.classes}},{key:"getStylesForClass",value:function(t){var e,r;return null!==(e=null===(r=this.classes.get(t))||void 0===r?void 0:r.styles)&&void 0!==e?e:[]}},{key:"clear",value:function(){(0,f.IU)(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}}])}(),(0,y.K2)(i,"TreeMapDB"),i);function b(t){if(!t.length)return[];var e=[],r=[];return t.forEach(function(t){var i={name:t.name,children:"Leaf"===t.type?void 0:[]};for(i.classSelector=null==t?void 0:t.classSelector,null!=t&&t.cssCompiledStyles&&(i.cssCompiledStyles=t.cssCompiledStyles),"Leaf"===t.type&&void 0!==t.value&&(i.value=t.value);r.length>0&&r[r.length-1].level>=t.level;)r.pop();if(0===r.length)e.push(i);else{var n=r[r.length-1].node;n.children?n.children.push(i):n.children=[i]}"Leaf"!==t.type&&r.push({node:i,level:t.level})}),e}(0,y.K2)(b,"buildHierarchy");var k=(0,y.K2)(function(t,e){var r,i;(0,p.S)(t,e);var n,a=[],s=(0,o.A)(null!==(r=t.TreemapRows)&&void 0!==r?r:[]);try{for(s.s();!(n=s.n()).done;){var l,c,u=n.value;if("ClassDefStatement"===u.$type)e.addClass(null!==(l=u.className)&&void 0!==l?l:"",null!==(c=u.styleText)&&void 0!==c?c:"")}}catch(t){s.e(t)}finally{s.f()}var h,d=(0,o.A)(null!==(i=t.TreemapRows)&&void 0!==i?i:[]);try{for(d.s();!(h=d.n()).done;){var g=h.value,f=g.item;if(f){var m=g.indent?parseInt(g.indent):0,v=C(f),x=f.classSelector?e.getStylesForClass(f.classSelector):[],k=x.length>0?x:void 0,A={level:m,name:v,type:f.$type,value:f.value,classSelector:f.classSelector,cssCompiledStyles:k};a.push(A)}}}catch(t){d.e(t)}finally{d.f()}var D=b(a),E=(0,y.K2)(function(t,r){var i,n=(0,o.A)(t);try{for(n.s();!(i=n.n()).done;){var a=i.value;e.addNode(a,r),a.children&&a.children.length>0&&E(a.children,r+1)}}catch(t){n.e(t)}finally{n.f()}},"addNodesRecursively");E(D,0)},"populate"),C=(0,y.K2)(function(t){return t.name?String(t.name):""},"getItemName"),A={parser:{yy:void 0},parse:(0,y.K2)(function(){var t=(0,a.A)((0,n.A)().m(function t(e){var r,i,a,o,s;return(0,n.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,i=m.qg,t.n=1,i("treemap",e);case 1:if(a=t.v,y.Rm.debug("Treemap AST:",a),(o=null===(r=A.parser)||void 0===r?void 0:r.yy)instanceof x){t.n=2;break}throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");case 2:k(a,o),t.n=4;break;case 3:throw t.p=3,s=t.v,y.Rm.error("Error parsing treemap:",s),s;case 4:return t.a(2)}},t,null,[[0,3]])}));return function(e){return t.apply(this,arguments)}}(),"parse")},D=10,E={draw:(0,y.K2)(function(t,e,r,i){var n,a,o=i.db,s=o.getConfig(),l=null!==(n=s.padding)&&void 0!==n?n:10,c=o.getDiagramTitle(),p=o.getRoot(),g=(0,f.zj)().themeVariables;if(p){var m,x=c?30:0,b=(0,u.D)(e),k=s.nodeWidth?s.nodeWidth*D:960,C=s.nodeHeight?s.nodeHeight*D:500,A=k,E=C+x;b.attr("viewBox","0 0 ".concat(A," ").concat(E)),(0,f.a$)(b,E,A,s.useMaxWidth);try{var T=s.valueFormat||",";if("$0,0"===T)m=(0,y.K2)(function(t){return"$"+(0,v.GPZ)(",")(t)},"valueFormat");else if(T.startsWith("$")&&T.includes(",")){var w=/\.\d+/.exec(T),S=w?w[0]:"";m=(0,y.K2)(function(t){return"$"+(0,v.GPZ)(","+S)(t)},"valueFormat")}else if(T.startsWith("$")){var F=T.substring(1);m=(0,y.K2)(function(t){return"$"+(0,v.GPZ)(F||"")(t)},"valueFormat")}else m=(0,v.GPZ)(T)}catch(t){y.Rm.error("Error creating format function:",t),m=(0,v.GPZ)(",")}var _=(0,v.UMr)().range(["transparent",g.cScale0,g.cScale1,g.cScale2,g.cScale3,g.cScale4,g.cScale5,g.cScale6,g.cScale7,g.cScale8,g.cScale9,g.cScale10,g.cScale11]),B=(0,v.UMr)().range(["transparent",g.cScalePeer0,g.cScalePeer1,g.cScalePeer2,g.cScalePeer3,g.cScalePeer4,g.cScalePeer5,g.cScalePeer6,g.cScalePeer7,g.cScalePeer8,g.cScalePeer9,g.cScalePeer10,g.cScalePeer11]),L=(0,v.UMr)().range([g.cScaleLabel0,g.cScaleLabel1,g.cScaleLabel2,g.cScaleLabel3,g.cScaleLabel4,g.cScaleLabel5,g.cScaleLabel6,g.cScaleLabel7,g.cScaleLabel8,g.cScaleLabel9,g.cScaleLabel10,g.cScaleLabel11]);c&&b.append("text").attr("x",A/2).attr("y",x/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(c);var I=b.append("g").attr("transform","translate(0, ".concat(x,")")).attr("class","treemapContainer"),R=(0,v.Sk5)(p).sum(function(t){var e;return null!==(e=t.value)&&void 0!==e?e:0}).sort(function(t,e){var r,i;return(null!==(r=e.value)&&void 0!==r?r:0)-(null!==(i=t.value)&&void 0!==i?i:0)}),O=(0,v.hkb)().size([k,C]).paddingTop(function(t){return t.children&&t.children.length>0?35:0}).paddingInner(l).paddingLeft(function(t){return t.children&&t.children.length>0?D:0}).paddingRight(function(t){return t.children&&t.children.length>0?D:0}).paddingBottom(function(t){return t.children&&t.children.length>0?D:0}).round(!0)(R),M=O.descendants().filter(function(t){return t.children&&t.children.length>0}),N=I.selectAll(".treemapSection").data(M).enter().append("g").attr("class","treemapSection").attr("transform",function(t){return"translate(".concat(t.x0,",").concat(t.y0,")")});N.append("rect").attr("width",function(t){return t.x1-t.x0}).attr("height",25).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",function(t){return 0===t.depth?"display: none;":""}),N.append("clipPath").attr("id",function(t,r){return"clip-section-".concat(e,"-").concat(r)}).append("rect").attr("width",function(t){return Math.max(0,t.x1-t.x0-12)}).attr("height",25),N.append("rect").attr("width",function(t){return t.x1-t.x0}).attr("height",function(t){return t.y1-t.y0}).attr("class",function(t,e){return"treemapSection section".concat(e)}).attr("fill",function(t){return _(t.data.name)}).attr("fill-opacity",.6).attr("stroke",function(t){return B(t.data.name)}).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",function(t){if(0===t.depth)return"display: none;";var e=(0,d.GX)({cssCompiledStyles:t.data.cssCompiledStyles});return e.nodeStyles+";"+e.borderStyles.join(";")}),N.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",12.5).attr("dominant-baseline","middle").text(function(t){return 0===t.depth?"":t.data.name}).attr("font-weight","bold").attr("style",function(t){return 0===t.depth?"display: none;":"dominant-baseline: middle; font-size: 12px; fill:"+L(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,d.GX)({cssCompiledStyles:t.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")}).each(function(t){if(0!==t.depth){var e=(0,v.Ltv)(this),r=t.data.name;e.text(r);var i,n=t.x1-t.x0;if(!1!==s.showValues&&t.value){i=n-10-30-10-6}else{i=n-6-6}var a=Math.max(15,i),o=e.node();if(o.getComputedTextLength()>a)for(var l=r;l.length>0;){if(0===(l=r.substring(0,l.length-1)).length){e.text("..."),o.getComputedTextLength()>a&&e.text("");break}if(e.text(l+"..."),o.getComputedTextLength()<=a)break}}}),!1!==s.showValues&&N.append("text").attr("class","treemapSectionValue").attr("x",function(t){return t.x1-t.x0-10}).attr("y",12.5).attr("text-anchor","end").attr("dominant-baseline","middle").text(function(t){return t.value?m(t.value):""}).attr("font-style","italic").attr("style",function(t){return 0===t.depth?"display: none;":"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+L(t.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,d.GX)({cssCompiledStyles:t.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")});var K=O.leaves(),P=I.selectAll(".treemapLeafGroup").data(K).enter().append("g").attr("class",function(t,e){return"treemapNode treemapLeafGroup leaf".concat(e).concat(t.data.classSelector?" ".concat(t.data.classSelector):"","x")}).attr("transform",function(t){return"translate(".concat(t.x0,",").concat(t.y0,")")});if(P.append("rect").attr("width",function(t){return t.x1-t.x0}).attr("height",function(t){return t.y1-t.y0}).attr("class","treemapLeaf").attr("fill",function(t){return t.parent?_(t.parent.data.name):_(t.data.name)}).attr("style",function(t){return(0,d.GX)({cssCompiledStyles:t.data.cssCompiledStyles}).nodeStyles}).attr("fill-opacity",.3).attr("stroke",function(t){return t.parent?_(t.parent.data.name):_(t.data.name)}).attr("stroke-width",3),P.append("clipPath").attr("id",function(t,r){return"clip-".concat(e,"-").concat(r)}).append("rect").attr("width",function(t){return Math.max(0,t.x1-t.x0-4)}).attr("height",function(t){return Math.max(0,t.y1-t.y0-4)}),P.append("text").attr("class","treemapLabel").attr("x",function(t){return(t.x1-t.x0)/2}).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",function(t){return"text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+L(t.data.name)+";"+(0,d.GX)({cssCompiledStyles:t.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")}).attr("clip-path",function(t,r){return"url(#clip-".concat(e,"-").concat(r,")")}).text(function(t){return t.data.name}).each(function(t){var e=(0,v.Ltv)(this),r=t.x1-t.x0,i=t.y1-t.y0,n=e.node(),a=r-8,o=i-8;if(a<10||o<10)e.style("display","none");else{for(var s=parseInt(e.style("font-size"),10);n.getComputedTextLength()>a&&s>8;)s--,e.style("font-size","".concat(s,"px"));for(var l=Math.max(6,Math.min(28,Math.round(.6*s))),c=s+2+l;c>o&&s>8&&(s--,!((l=Math.max(6,Math.min(28,Math.round(.6*s))))<6&&8===s));)e.style("font-size","".concat(s,"px")),c=s+2+l;e.style("font-size","".concat(s,"px")),(n.getComputedTextLength()>a||s<8||o<s)&&e.style("display","none")}}),!1!==s.showValues)P.append("text").attr("class","treemapValue").attr("x",function(t){return(t.x1-t.x0)/2}).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",function(t){return"text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+L(t.data.name)+";"+(0,d.GX)({cssCompiledStyles:t.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")}).attr("clip-path",function(t,r){return"url(#clip-".concat(e,"-").concat(r,")")}).text(function(t){return t.value?m(t.value):""}).each(function(t){var e=(0,v.Ltv)(this),r=this.parentNode;if(r){var i=(0,v.Ltv)(r).select(".treemapLabel");if(i.empty()||"none"===i.style("display"))e.style("display","none");else{var n=parseFloat(i.style("font-size")),a=Math.max(6,Math.min(28,Math.round(.6*n)));e.style("font-size","".concat(a,"px"));var o=(t.y1-t.y0)/2+n/2+2;e.attr("y",o);var s=t.x1-t.x0,l=t.y1-t.y0-4,c=s-8;e.node().getComputedTextLength()>c||o+a>l||a<6?e.style("display","none"):e.style("display",null)}}else e.style("display","none")});var q=null!==(a=s.diagramPadding)&&void 0!==a?a:8;(0,h.P)(b,q,"flowchart",(null==s?void 0:s.useMaxWidth)||!1)}},"draw"),getClasses:(0,y.K2)(function(t,e){return e.db.getClasses()},"getClasses")},T={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},w=(0,y.K2)(function(){var t,e,r,i=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).treemap,n=(0,f.P$)(),a=(0,f.zj)(),o=(0,g.$t)(n,a.themeVariables),s=(0,g.$t)(T,i),l=null!==(t=s.titleColor)&&void 0!==t?t:o.titleColor,c=null!==(e=s.labelColor)&&void 0!==e?e:o.textColor,u=null!==(r=s.valueColor)&&void 0!==r?r:o.textColor;return"\n  .treemapNode.section {\n    stroke: ".concat(s.sectionStrokeColor,";\n    stroke-width: ").concat(s.sectionStrokeWidth,";\n    fill: ").concat(s.sectionFillColor,";\n  }\n  .treemapNode.leaf {\n    stroke: ").concat(s.leafStrokeColor,";\n    stroke-width: ").concat(s.leafStrokeWidth,";\n    fill: ").concat(s.leafFillColor,";\n  }\n  .treemapLabel {\n    fill: ").concat(c,";\n    font-size: ").concat(s.labelFontSize,";\n  }\n  .treemapValue {\n    fill: ").concat(u,";\n    font-size: ").concat(s.valueFontSize,";\n  }\n  .treemapTitle {\n    fill: ").concat(l,";\n    font-size: ").concat(s.titleFontSize,";\n  }\n  ")},"getStyles"),S=w,F={parser:A,get db(){return new x},renderer:E,styles:S}},77516:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return S}});var i,n=r(20908),a=r(30388),o=r(74721),s=r(3604),l=r(25026),c=r(69492),u=r(21888),h=r(61340),d=r(86349),p=(r(69914),r(607),r(86735),r(43376),r(17428),r(51266),r(34539)),g=r(40985),f=r(68548),y=r(63219),m=r(90735),v=r(62962),x=function(){var t=(0,f.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],r=[1,10],i=[1,11],n=[1,12],a=[1,13],o=[1,23],s=[1,24],l=[1,25],c=[1,26],u=[1,27],h=[1,19],d=[1,28],p=[1,29],g=[1,20],y=[1,18],m=[1,21],v=[1,22],x=[1,36],b=[1,37],k=[1,38],C=[1,39],A=[1,40],D=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],E=[1,45],T=[1,46],w=[1,55],S=[40,48,50,51,52,70,71],F=[1,66],_=[1,64],B=[1,61],L=[1,65],I=[1,67],R=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],O=[65,66,67,68,69],M=[1,84],N=[1,83],K=[1,81],P=[1,82],q=[6,10,42,47],z=[6,10,13,41,42,47,48,49],W=[1,92],Y=[1,91],$=[1,90],j=[19,58],U=[1,101],H=[1,100],V=[19,58,60,62],G={trace:(0,f.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:(0,f.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:case 55:case 56:case 57:case 58:case 81:case 65:case 66:case 69:this.$=a[s];break;case 8:i.addEntity(a[s-4]),i.addEntity(a[s-2]),i.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:i.addEntity(a[s-8]),i.addEntity(a[s-4]),i.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),i.setClass([a[s-8]],a[s-6]),i.setClass([a[s-4]],a[s-2]);break;case 10:i.addEntity(a[s-6]),i.addEntity(a[s-2]),i.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),i.setClass([a[s-6]],a[s-4]);break;case 11:i.addEntity(a[s-6]),i.addEntity(a[s-4]),i.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),i.setClass([a[s-4]],a[s-2]);break;case 12:i.addEntity(a[s-3]),i.addAttributes(a[s-3],a[s-1]);break;case 13:i.addEntity(a[s-5]),i.addAttributes(a[s-5],a[s-1]),i.setClass([a[s-5]],a[s-3]);break;case 14:i.addEntity(a[s-2]);break;case 15:i.addEntity(a[s-4]),i.setClass([a[s-4]],a[s-2]);break;case 16:i.addEntity(a[s]);break;case 17:i.addEntity(a[s-2]),i.setClass([a[s-2]],a[s]);break;case 18:i.addEntity(a[s-6],a[s-4]),i.addAttributes(a[s-6],a[s-1]);break;case 19:i.addEntity(a[s-8],a[s-6]),i.addAttributes(a[s-8],a[s-1]),i.setClass([a[s-8]],a[s-3]);break;case 20:i.addEntity(a[s-5],a[s-3]);break;case 21:i.addEntity(a[s-7],a[s-5]),i.setClass([a[s-7]],a[s-2]);break;case 22:i.addEntity(a[s-3],a[s-1]);break;case 23:i.addEntity(a[s-5],a[s-3]),i.setClass([a[s-5]],a[s]);break;case 24:case 25:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 26:case 27:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 32:i.setDirection("TB");break;case 33:i.setDirection("BT");break;case 34:i.setDirection("RL");break;case 35:i.setDirection("LR");break;case 36:this.$=a[s-3],i.addClass(a[s-2],a[s-1]);break;case 37:case 38:case 59:case 67:case 43:this.$=[a[s]];break;case 39:case 40:this.$=a[s-2].concat([a[s]]);break;case 41:this.$=a[s-2],i.setClass(a[s-1],a[s]);break;case 42:this.$=a[s-3],i.addCssStyles(a[s-2],a[s-1]);break;case 44:case 68:a[s-2].push(a[s]),this.$=a[s-2];break;case 46:this.$=a[s-1]+a[s];break;case 54:case 79:case 80:case 70:this.$=a[s].replace(/"/g,"");break;case 60:a[s].push(a[s-1]),this.$=a[s];break;case 61:this.$={type:a[s-1],name:a[s]};break;case 62:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 63:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 64:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 71:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 72:this.$=i.Cardinality.ZERO_OR_ONE;break;case 73:this.$=i.Cardinality.ZERO_OR_MORE;break;case 74:this.$=i.Cardinality.ONE_OR_MORE;break;case 75:this.$=i.Cardinality.ONLY_ONE;break;case 76:this.$=i.Cardinality.MD_PARENT;break;case 77:this.$=i.Identification.NON_IDENTIFYING;break;case 78:this.$=i.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:i,26:n,28:a,29:14,30:15,31:16,32:17,33:o,34:s,35:l,36:c,37:u,40:h,43:d,44:p,48:g,50:y,51:m,52:v},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:30,11:9,22:r,24:i,26:n,28:a,29:14,30:15,31:16,32:17,33:o,34:s,35:l,36:c,37:u,40:h,43:d,44:p,48:g,50:y,51:m,52:v},t(e,[2,5]),t(e,[2,6]),t(e,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:x,66:b,67:k,68:C,69:A}),{23:[1,41]},{25:[1,42]},{27:[1,43]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),t(e,[2,30]),t(e,[2,31]),t(D,[2,54]),t(D,[2,55]),t(D,[2,56]),t(D,[2,57]),t(D,[2,58]),t(e,[2,32]),t(e,[2,33]),t(e,[2,34]),t(e,[2,35]),{16:44,40:E,41:T},{16:47,40:E,41:T},{16:48,40:E,41:T},t(e,[2,4]),{11:49,40:h,48:g,50:y,51:m,52:v},{16:50,40:E,41:T},{18:51,19:[1,52],53:53,54:54,58:w},{11:56,40:h,48:g,50:y,51:m,52:v},{64:57,70:[1,58],71:[1,59]},t(S,[2,72]),t(S,[2,73]),t(S,[2,74]),t(S,[2,75]),t(S,[2,76]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),{13:F,38:60,41:_,42:B,45:62,46:63,48:L,49:I},t(R,[2,37]),t(R,[2,38]),{16:68,40:E,41:T,42:B},{13:F,38:69,41:_,42:B,45:62,46:63,48:L,49:I},{13:[1,70],15:[1,71]},t(e,[2,17],{63:35,12:72,17:[1,73],42:B,65:x,66:b,67:k,68:C,69:A}),{19:[1,74]},t(e,[2,14]),{18:75,19:[2,59],53:53,54:54,58:w},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:x,66:b,67:k,68:C,69:A},t(O,[2,77]),t(O,[2,78]),{6:M,10:N,39:80,42:K,47:P},{40:[1,85],41:[1,86]},t(q,[2,43],{46:87,13:F,41:_,48:L,49:I}),t(z,[2,45]),t(z,[2,50]),t(z,[2,51]),t(z,[2,52]),t(z,[2,53]),t(e,[2,41],{42:B}),{6:M,10:N,39:88,42:K,47:P},{14:89,40:W,50:Y,72:$},{16:93,40:E,41:T},{11:94,40:h,48:g,50:y,51:m,52:v},{18:95,19:[1,96],53:53,54:54,58:w},t(e,[2,12]),{19:[2,60]},t(j,[2,61],{56:97,57:98,59:99,61:U,62:H}),t([19,58,61,62],[2,66]),t(e,[2,22],{15:[1,103],17:[1,102]}),t([40,48,50,51,52],[2,71]),t(e,[2,36]),{13:F,41:_,45:104,46:63,48:L,49:I},t(e,[2,47]),t(e,[2,48]),t(e,[2,49]),t(R,[2,39]),t(R,[2,40]),t(z,[2,46]),t(e,[2,42]),t(e,[2,8]),t(e,[2,79]),t(e,[2,80]),t(e,[2,81]),{13:[1,105],42:B},{13:[1,107],15:[1,106]},{19:[1,108]},t(e,[2,15]),t(j,[2,62],{57:109,60:[1,110],62:H}),t(j,[2,63]),t(V,[2,67]),t(j,[2,70]),t(V,[2,69]),{18:111,19:[1,112],53:53,54:54,58:w},{16:113,40:E,41:T},t(q,[2,44],{46:87,13:F,41:_,48:L,49:I}),{14:114,40:W,50:Y,72:$},{16:115,40:E,41:T},{14:116,40:W,50:Y,72:$},t(e,[2,13]),t(j,[2,64]),{59:117,61:U},{19:[1,118]},t(e,[2,20]),t(e,[2,23],{17:[1,119],42:B}),t(e,[2,11]),{13:[1,120],42:B},t(e,[2,10]),t(V,[2,68]),t(e,[2,18]),{18:121,19:[1,122],53:53,54:54,58:w},{14:123,40:W,50:Y,72:$},{19:[1,124]},t(e,[2,21]),t(e,[2,9]),t(e,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:(0,f.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,f.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,u=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var y=d.yylloc;a.push(y);var m=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,f.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,f.K2)(v,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=v()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:d.match,token:this.terminals_[x]||x,line:d.yylineno,loc:y,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(d.yytext),a.push(d.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,y=d.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,p.yy,C[1],n,a].concat(h))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},X=function(){return{EOF:1,parseError:(0,f.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,f.K2)(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},"setInput"),input:(0,f.K2)(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},"input"),unput:(0,f.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,f.K2)(function(){return this._more=!0,this},"more"),reject:(0,f.K2)(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})},"reject"),less:(0,f.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,f.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,f.K2)(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,"")},"upcomingInput"),showPosition:(0,f.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,f.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,f.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,f.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,f.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,f.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,f.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,f.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,f.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,f.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,f.K2)(function(t,e,r,i){switch(r){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;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 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:case 23:case 28:case 35:break;case 13:return 8;case 14:return 50;case 15:return 72;case 16:return 4;case 17:return this.begin("block"),17;case 18:case 19:case 38:return 49;case 20:case 37:return 42;case 21:return 15;case 22:case 36:return 13;case 24:return 61;case 25:case 26:return 58;case 27:return 62;case 29:return this.popState(),19;case 30:case 77:return e.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 39:return this.begin("style"),37;case 40:return 43;case 41:case 45:case 46:case 64:return 65;case 42:case 43:case 44:case 52:case 54:case 66:return 67;case 47:case 48:case 49:case 50:case 51:case 53:case 65:return 66;case 55:case 56:case 58:case 59:case 60:case 63:return 68;case 57:return 51;case 61:return 52;case 62:return 48;case 67:return 69;case 68:case 71:case 72:case 73:return 70;case 69:case 70:return 71;case 74:return 41;case 75:return 47;case 76:return 40;case 78:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/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,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,74,75],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,76,77,78],inclusive:!0}}}}();function Z(){this.yy={}}return G.lexer=X,(0,f.K2)(Z,"Parser"),Z.prototype=G,G.Parser=Z,new Z}();x.parser=x;var b=x,k=(i=function(){return(0,c.A)(function t(){(0,l.A)(this,t),this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.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"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=g.SV,this.getAccTitle=g.iN,this.setAccDescription=g.EI,this.getAccDescription=g.m7,this.setDiagramTitle=g.ke,this.getDiagramTitle=g.ab,this.getConfig=(0,f.K2)(function(){return(0,g.D7)().er},"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)},[{key:"addEntity",value:function(t){var e,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.entities.has(t)?null!==(e=this.entities.get(t))&&void 0!==e&&e.alias||!i||(this.entities.get(t).alias=i,f.Rm.info("Add alias '".concat(i,"' to entity '").concat(t,"'"))):(this.entities.set(t,{id:"entity-".concat(t,"-").concat(this.entities.size),label:t,attributes:[],alias:i,shape:"erBox",look:null!==(r=(0,g.D7)().look)&&void 0!==r?r:"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),f.Rm.info("Added new entity :",t));return this.entities.get(t)}},{key:"getEntity",value:function(t){return this.entities.get(t)}},{key:"getEntities",value:function(){return this.entities}},{key:"getClasses",value:function(){return this.classes}},{key:"addAttributes",value:function(t,e){var r,i=this.addEntity(t);for(r=e.length-1;r>=0;r--)e[r].keys||(e[r].keys=[]),e[r].comment||(e[r].comment=""),i.attributes.push(e[r]),f.Rm.debug("Added attribute ",e[r].name)}},{key:"addRelationship",value:function(t,e,r,i){var n=this.entities.get(t),a=this.entities.get(r);if(n&&a){var o={entityA:n.id,roleA:e,entityB:a.id,relSpec:i};this.relationships.push(o),f.Rm.debug("Added new relationship :",o)}}},{key:"getRelationships",value:function(){return this.relationships}},{key:"getDirection",value:function(){return this.direction}},{key:"setDirection",value:function(t){this.direction=t}},{key:"getCompiledStyles",value:function(t){var e,r=[],i=(0,s.A)(t);try{for(i.s();!(e=i.n()).done;){var n,a,l=e.value,c=this.classes.get(l);if(null!=c&&c.styles)r=[].concat((0,o.A)(r),(0,o.A)(null!==(n=c.styles)&&void 0!==n?n:[])).map(function(t){return t.trim()});if(null!=c&&c.textStyles)r=[].concat((0,o.A)(r),(0,o.A)(null!==(a=c.textStyles)&&void 0!==a?a:[])).map(function(t){return t.trim()})}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"addCssStyles",value:function(t,e){var r,i=(0,s.A)(t);try{for(i.s();!(r=i.n()).done;){var n=r.value,a=this.entities.get(n);if(!e||!a)return;var o,l=(0,s.A)(e);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.cssStyles.push(c)}}catch(t){l.e(t)}finally{l.f()}}}catch(t){i.e(t)}finally{i.f()}}},{key:"addClass",value:function(t,e){var r=this;t.forEach(function(t){var i=r.classes.get(t);void 0===i&&(i={id:t,styles:[],textStyles:[]},r.classes.set(t,i)),e&&e.forEach(function(t){if(/color/.exec(t)){var e=t.replace("fill","bgFill");i.textStyles.push(e)}i.styles.push(t)})})}},{key:"setClass",value:function(t,e){var r,i=(0,s.A)(t);try{for(i.s();!(r=i.n()).done;){var n=r.value,a=this.entities.get(n);if(a){var o,l=(0,s.A)(e);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.cssClasses+=" "+c}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){i.e(t)}finally{i.f()}}},{key:"clear",value:function(){this.entities=new Map,this.classes=new Map,this.relationships=[],(0,g.IU)()}},{key:"getData",value:function(){var t,e=[],r=[],i=(0,g.D7)(),n=0,a=(0,s.A)(this.entities.keys());try{for(a.s();!(t=a.n()).done;){var o=t.value,l=this.entities.get(o);l&&(l.cssCompiledStyles=this.getCompiledStyles(l.cssClasses.split(" ")),l.colorIndex=n++,e.push(l))}}catch(t){a.e(t)}finally{a.f()}var c,u=0,h=(0,s.A)(this.relationships);try{for(h.s();!(c=h.n()).done;){var d=c.value,f={id:(0,p.rY)(d.entityA,d.entityB,{prefix:"id",counter:u++}),type:"normal",curve:"basis",start:d.entityA,end:d.entityB,label:d.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:d.relSpec.cardB.toLowerCase(),arrowTypeEnd:d.relSpec.cardA.toLowerCase(),pattern:"IDENTIFYING"==d.relSpec.relType?"solid":"dashed",look:i.look,labelType:"markdown"};r.push(f)}}catch(t){h.e(t)}finally{h.f()}return{nodes:e,edges:r,other:{},config:i,direction:"TB"}}}])}(),(0,f.K2)(i,"ErDB"),i),C={};(0,f.VA)(C,{draw:function(){return A}});var A=(0,f.K2)(function(){var t=(0,a.A)((0,n.A)().m(function t(e,r,i,a){var o,s,l,c,m,v,x,b,k,C,A;return(0,n.A)().w(function(t){for(;;)switch(t.n){case 0:return f.Rm.info("REF0:"),f.Rm.info("Drawing er diagram (unified)",r),l=(0,g.D7)(),c=l.securityLevel,m=l.er,v=l.layout,x=a.db.getData(),b=(0,u.A)(r,c),x.type=a.type,x.layoutAlgorithm=(0,d.q7)(v),x.config.flowchart.nodeSpacing=(null==m?void 0:m.nodeSpacing)||140,x.config.flowchart.rankSpacing=(null==m?void 0:m.rankSpacing)||80,x.direction=a.db.getDirection(),k=x.config,C=k.look,x.markers="neo"===C?["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:["only_one","zero_or_one","one_or_more","zero_or_more"],x.diagramId=r,t.n=1,(0,d.XX)(x,b);case 1:"elk"===x.layoutAlgorithm&&b.select(".edges").lower(),A=b.selectAll('[id*="-background"]'),Array.from(A).length>0&&A.each(function(){var t=(0,y.Ltv)(this),e=t.attr("id").replace("-background",""),r=b.select("#".concat(CSS.escape(e)));if(!r.empty()){var i=r.attr("transform");t.attr("transform",i)}}),p._K.insertTitle(b,"erDiagramTitleText",null!==(o=null==m?void 0:m.titleTopMargin)&&void 0!==o?o:25,a.db.getDiagramTitle()),(0,h.P)(b,8,"erDiagram",null===(s=null==m?void 0:m.useMaxWidth)||void 0===s||s);case 2:return t.a(2)}},t)}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"draw"),D=(0,f.K2)(function(t,e){var r=v.A,i=r(t,"r"),n=r(t,"g"),a=r(t,"b");return m.A(i,n,a,e)},"fade"),E=new Set(["redux-color","redux-dark-color"]),T=(0,f.K2)(function(t){var e=t.theme,r=t.look,i=t.bkgColorArray,n=t.borderColorArray;if(!E.has(e))return"";for(var a=(null==i?void 0:i.length)>0,o="",s=0;s<t.THEME_COLOR_LIMIT;s++)o+='\n\n    [data-look="'.concat(r,'"][data-color-id="color-').concat(s,'"].node path {\n    stroke: ').concat(n[s],";\n    ").concat(a?"fill: ".concat(i[s],";"):"",'\n    }\n\n    [data-look="').concat(r,'"][data-color-id="color-').concat(s,'"].node  rect {\n    stroke: ').concat(n[s],";\n    ").concat(a?"fill: ".concat(i[s],";"):"","\n     }\n    ");return o},"genColor"),w=(0,f.K2)(function(t){var e=t.look,r=t.theme,i=t.erEdgeLabelBackground,n=t.strokeWidth;return"\n    ".concat(T(t),"\n  .entityBox {\n    fill: ").concat(t.mainBkg,";\n    stroke: ").concat(t.nodeBorder,";\n  }\n\n  .relationshipLabelBox {\n    fill: ").concat(t.tertiaryColor,";\n    opacity: 0.7;\n    background-color: ").concat(t.tertiaryColor,";\n      rect {\n        opacity: 0.5;\n      }\n  }\n\n  .labelBkg {\n    background-color: ").concat(E.has(r)&&i?i:D(t.tertiaryColor,.5),";\n  }\n\n  .edgeLabel {\n    background-color: ").concat(E.has(r)&&i?i:t.edgeLabelBackground,";\n  }\n  .edgeLabel .label rect {\n    fill: ").concat(E.has(r)&&i?i:t.edgeLabelBackground,";\n  }\n  .edgeLabel .label text {\n    fill: ").concat(t.textColor,";\n  }\n\n  .edgeLabel .label {\n    fill: ").concat(t.nodeBorder,";\n    font-size: 14px;\n  }\n\n  .label {\n    font-family: ").concat(t.fontFamily,";\n    color: ").concat(t.nodeTextColor||t.textColor,";\n  }\n\n  .edge-pattern-dashed {\n    stroke-dasharray: 8,8;\n  }\n\n  .node rect,\n  .node circle,\n  .node ellipse,\n  .node polygon\n  {\n    fill: ").concat(t.mainBkg,";\n    stroke: ").concat(t.nodeBorder,";\n    stroke-width: ").concat("neo"===e?n:"1px",";\n  }\n\n  .relationshipLine {\n    stroke: ").concat(t.lineColor,";\n    stroke-width: ").concat("neo"===e?n:"1px",";\n    fill: none;\n  }\n\n  .marker {\n    fill: none !important;\n    stroke: ").concat(t.lineColor," !important;\n    stroke-width: 1;\n  }\n  [data-look=neo].labelBkg {\n    background-color: ").concat(D(t.tertiaryColor,.5),";\n  }\n")},"getStyles"),S={parser:b,get db(){return new k},renderer:C,styles:w}},40178:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return N}});var i,n=r(20908),a=r(30388),o=r(41034),s=r(81587),l=r(74721),c=r(54119),u=r(3604),h=r(25026),d=r(69492),p=(r(74423),r(43840)),g=r(28582),f=r(89906),y=r(21888),m=r(61340),v=r(86349),x=(r(69914),r(607),r(86735)),b=(r(43376),r(17428),r(51266),r(34539)),k=r(40985),C=r(68548),A=r(63219),D=r(18353),E=r(90735),T=r(62962),w=(i=function(){return(0,d.A)(function t(){(0,h.A)(this,t),this.vertexCounter=0,this.config=(0,k.D7)(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=k.SV,this.setAccDescription=k.EI,this.setDiagramTitle=k.ke,this.getAccTitle=k.iN,this.getAccDescription=k.m7,this.getDiagramTitle=k.ab,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")},[{key:"sanitizeText",value:function(t){return k.Y2.sanitizeText(t,this.config)}},{key:"sanitizeNodeLabelType",value:function(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}},{key:"setDiagramId",value:function(t){this.diagramId=t}},{key:"lookUpDomId",value:function(t){var e,r=(0,u.A)(this.vertices.values());try{for(r.s();!(e=r.n()).done;){var i=e.value;if(i.id===t)return this.diagramId?"".concat(this.diagramId,"-").concat(i.domId):i.domId}}catch(t){r.e(t)}finally{r.f()}return this.diagramId?"".concat(this.diagramId,"-").concat(t):t}},{key:"addVertex",value:function(t,e,r,i,n,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0;if(t&&0!==t.trim().length){var l,c;if(void 0!==s)c=s.includes("\n")?s+"\n":"{\n"+s+"\n}",l=(0,g.H)(c,{schema:g.r});var u,h=this.edges.find(function(e){return e.id===t});if(h){var d=l;return void 0!==(null==d?void 0:d.animate)&&(h.animate=d.animate),void 0!==(null==d?void 0:d.animation)&&(h.animation=d.animation),void(void 0!==(null==d?void 0:d.curve)&&(h.interpolate=d.curve))}var p=this.vertices.get(t);if(void 0===p&&(void 0===e&&void 0===r&&null!=i&&C.Rm.warn('Style applied to unknown node "'.concat(t,'". This may indicate a typo. The node will be created automatically.')),p={id:t,labelType:"text",domId:"flowchart-"+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,p)),this.vertexCounter++,void 0!==e?(this.config=(0,k.D7)(),u=this.sanitizeText(e.text.trim()),p.labelType=e.type,u.startsWith('"')&&u.endsWith('"')&&(u=u.substring(1,u.length-1)),p.text=u):void 0===p.text&&(p.text=t),void 0!==r&&(p.type=r),null!=i&&i.forEach(function(t){p.styles.push(t)}),null!=n&&n.forEach(function(t){p.classes.push(t)}),void 0!==a&&(p.dir=a),void 0===p.props?p.props=o:void 0!==o&&Object.assign(p.props,o),void 0!==l){var f,y,m,v,b,A,D,E,T,w,S,F,_,B;if(l.shape){var L;if(l.shape!==l.shape.toLowerCase()||l.shape.includes("_"))throw new Error("No such shape: ".concat(l.shape,". Shape names should be lowercase."));if(!(0,x.aP)(l.shape))throw new Error("No such shape: ".concat(l.shape,"."));p.type=null===(L=l)||void 0===L?void 0:L.shape}if(null!==(f=l)&&void 0!==f&&f.label)p.text=null===(D=l)||void 0===D?void 0:D.label,p.labelType=this.sanitizeNodeLabelType(null===(E=l)||void 0===E?void 0:E.labelType);if(null!==(y=l)&&void 0!==y&&y.icon)p.icon=null===(T=l)||void 0===T?void 0:T.icon,null!==(w=l.label)&&void 0!==w&&w.trim()||p.text!==t||(p.text="");if(null!==(m=l)&&void 0!==m&&m.form)p.form=null===(S=l)||void 0===S?void 0:S.form;if(null!==(v=l)&&void 0!==v&&v.pos)p.pos=null===(F=l)||void 0===F?void 0:F.pos;if(null!==(b=l)&&void 0!==b&&b.img)p.img=null===(_=l)||void 0===_?void 0:_.img,null!==(B=l.label)&&void 0!==B&&B.trim()||p.text!==t||(p.text="");null!==(A=l)&&void 0!==A&&A.constraint&&(p.constraint=l.constraint),l.w&&(p.assetWidth=Number(l.w)),l.h&&(p.assetHeight=Number(l.h))}}}},{key:"addSingleLink",value:function(t,e,r,i){var n,a={start:t,end:e,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};C.Rm.info("abc78 Got edge...",a);var o=r.text;if(void 0!==o&&(a.text=this.sanitizeText(o.text.trim()),a.text.startsWith('"')&&a.text.endsWith('"')&&(a.text=a.text.substring(1,a.text.length-1)),a.labelType=this.sanitizeNodeLabelType(o.type)),void 0!==r&&(a.type=r.type,a.stroke=r.stroke,a.length=r.length>10?10:r.length),i&&!this.edges.some(function(t){return t.id===i}))a.id=i,a.isUserDefinedId=!0;else{var s=this.edges.filter(function(t){return t.start===a.start&&t.end===a.end});0===s.length?a.id=(0,b.rY)(a.start,a.end,{counter:0,prefix:"L"}):a.id=(0,b.rY)(a.start,a.end,{counter:s.length+1,prefix:"L"})}if(!(this.edges.length<(null!==(n=this.config.maxEdges)&&void 0!==n?n:500)))throw new Error("Edge limit exceeded. ".concat(this.edges.length," edges found, but the limit is ").concat(this.config.maxEdges,".\n\nInitialize mermaid with maxEdges set to a higher number to allow more edges.\nYou cannot set this config via configuration inside the diagram as it is a secure config.\nYou have to call mermaid.initialize."));C.Rm.info("Pushing edge..."),this.edges.push(a)}},{key:"isLinkData",value:function(t){return null!==t&&"object"===(0,c.A)(t)&&"id"in t&&"string"==typeof t.id}},{key:"addLink",value:function(t,e,r){var i=this.isLinkData(r)?r.id.replace("@",""):void 0;C.Rm.info("addLink",t,e,i);var n,a=(0,u.A)(t);try{for(a.s();!(n=a.n()).done;){var o,s=n.value,l=(0,u.A)(e);try{for(l.s();!(o=l.n()).done;){var c=o.value,h=s===t[t.length-1],d=c===e[0];h&&d?this.addSingleLink(s,c,r,i):this.addSingleLink(s,c,r,void 0)}}catch(t){l.e(t)}finally{l.f()}}}catch(t){a.e(t)}finally{a.f()}}},{key:"updateLinkInterpolate",value:function(t,e){var r=this;t.forEach(function(t){"default"===t?r.edges.defaultInterpolate=e:r.edges[t].interpolate=e})}},{key:"updateLink",value:function(t,e){var r=this;t.forEach(function(t){if("number"==typeof t&&t>=r.edges.length)throw new Error("The index ".concat(t," for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ").concat(r.edges.length-1,". (Help: Ensure that the index is within the range of existing edges.)"));var i,n,a,o,s,l,c;"default"===t?r.edges.defaultStyle=e:(r.edges[t].style=e,(null!==(i=null===(n=r.edges[t])||void 0===n||null===(a=n.style)||void 0===a?void 0:a.length)&&void 0!==i?i:0)>0&&(null===(o=r.edges[t])||void 0===o||null===(s=o.style)||void 0===s||!s.some(function(t){return null==t?void 0:t.startsWith("fill")}))&&(null===(l=r.edges[t])||void 0===l||null===(c=l.style)||void 0===c||c.push("fill:none")))})}},{key:"addClass",value:function(t,e){var r=this,i=e.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(function(t){var e=r.classes.get(t);void 0===e&&(e={id:t,styles:[],textStyles:[]},r.classes.set(t,e)),null!=i&&i.forEach(function(t){if(/color/.exec(t)){var r=t.replace("fill","bgFill");e.textStyles.push(r)}e.styles.push(t)})})}},{key:"setDirection",value:function(t){this.direction=t.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}},{key:"setClass",value:function(t,e){var r,i=this,n=(0,u.A)(t.split(","));try{var a=function(){var t=r.value,n=i.vertices.get(t);n&&n.classes.push(e);var a=i.edges.find(function(e){return e.id===t});a&&a.classes.push(e);var o=i.subGraphLookup.get(t);o&&o.classes.push(e)};for(n.s();!(r=n.n()).done;)a()}catch(t){n.e(t)}finally{n.f()}}},{key:"setTooltip",value:function(t,e){if(void 0!==e){e=this.sanitizeText(e);var r,i=(0,u.A)(t.split(","));try{for(i.s();!(r=i.n()).done;){var n=r.value;this.tooltips.set("gen-1"===this.version?this.lookUpDomId(n):n,e)}}catch(t){i.e(t)}finally{i.f()}}}},{key:"setClickFun",value:function(t,e,r){var i=this;if("loose"===(0,k.D7)().securityLevel&&void 0!==e){var n=[];if("string"==typeof r){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var a=0;a<n.length;a++){var o=n[a].trim();o.startsWith('"')&&o.endsWith('"')&&(o=o.substr(1,o.length-2)),n[a]=o}}0===n.length&&n.push(t);var s=this.vertices.get(t);s&&(s.haveCallback=!0,this.funs.push(function(){var r=i.lookUpDomId(t),a=document.querySelector('[id="'.concat(r,'"]'));null!==a&&a.addEventListener("click",function(){b._K.runFunc.apply(b._K,[e].concat((0,l.A)(n)))},!1)}))}}},{key:"setLink",value:function(t,e,r){var i=this;t.split(",").forEach(function(t){var n=i.vertices.get(t);void 0!==n&&(n.link=b._K.formatUrl(e,i.config),n.linkTarget=r)}),this.setClass(t,"clickable")}},{key:"getTooltip",value:function(t){return this.tooltips.get(t)}},{key:"setClickEvent",value:function(t,e,r){var i=this;t.split(",").forEach(function(t){i.setClickFun(t,e,r)}),this.setClass(t,"clickable")}},{key:"bindFunctions",value:function(t){this.funs.forEach(function(e){e(t)})}},{key:"getDirection",value:function(){var t;return null===(t=this.direction)||void 0===t?void 0:t.trim()}},{key:"getVertices",value:function(){return this.vertices}},{key:"getEdges",value:function(){return this.edges}},{key:"getClasses",value:function(){return this.classes}},{key:"setupToolTips",value:function(t){var e=(0,f.Ck)();(0,A.Ltv)(t).select("svg").selectAll("g.node").on("mouseover",function(t){var r,i=(0,A.Ltv)(t.currentTarget),n=i.attr("title");if(null!==n){var a=null===(r=t.currentTarget)||void 0===r?void 0:r.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(i.attr("title")).style("left",window.scrollX+a.left+(a.right-a.left)/2+"px").style("top",window.scrollY+a.bottom+"px"),e.html(D.A.sanitize(n)),i.classed("hover",!0)}}).on("mouseout",function(t){e.transition().duration(500).style("opacity",0),(0,A.Ltv)(t.currentTarget).classed("hover",!1)})}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"gen-2";this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=(0,k.D7)(),(0,k.IU)()}},{key:"setGen",value:function(t){this.version=t||"gen-2"}},{key:"defaultStyle",value:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}},{key:"addSubGraph",value:function(t,e,r){var i,n,a,o=t.text.trim(),s=r.text;t===r&&/\s/.exec(r.text)&&(o=void 0);var l=(0,C.K2)(function(t){var e,r={boolean:{},number:{},string:{}},i=[];return{nodeList:t.filter(function(t){var n=(0,c.A)(t);return t.stmt&&"dir"===t.stmt?(e=t.value,!1):""!==t.trim()&&(n in r?!r[n].hasOwnProperty(t)&&(r[n][t]=!0):!i.includes(t)&&i.push(t))}),dir:e}},"uniq")(e.flat()),u=l.nodeList,h=l.dir,d=null!==(i=(0,k.D7)().flowchart)&&void 0!==i?i:{};if(h=null!=h?h:d.inheritDir&&null!==(n=null!==(a=this.getDirection())&&void 0!==a?a:(0,k.D7)().direction)&&void 0!==n?n:void 0,"gen-1"===this.version)for(var p=0;p<u.length;p++)u[p]=this.lookUpDomId(u[p]);o=null!=o?o:"subGraph"+this.subCount,s=s||"",s=this.sanitizeText(s),this.subCount=this.subCount+1;var g={id:o,nodes:u,title:s.trim(),classes:[],dir:h,labelType:this.sanitizeNodeLabelType(null==r?void 0:r.type)};return C.Rm.info("Adding",g.id,g.nodes,g.dir),g.nodes=this.makeUniq(g,this.subGraphs).nodes,this.subGraphs.push(g),this.subGraphLookup.set(o,g),o}},{key:"getPosForId",value:function(t){var e,r=(0,u.A)(this.subGraphs.entries());try{for(r.s();!(e=r.n()).done;){var i=(0,s.A)(e.value,2),n=i[0];if(i[1].id===t)return n}}catch(t){r.e(t)}finally{r.f()}return-1}},{key:"indexNodes2",value:function(t,e){var r=this.subGraphs[e].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=e,this.subGraphs[e].id===t)return{result:!0,count:0};for(var i=0,n=1;i<r.length;){var a=this.getPosForId(r[i]);if(a>=0){var o=this.indexNodes2(t,a);if(o.result)return{result:!0,count:n+o.count};n+=o.count}i+=1}return{result:!1,count:n}}},{key:"getDepthFirstPos",value:function(t){return this.posCrossRef[t]}},{key:"indexNodes",value:function(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}},{key:"getSubGraphs",value:function(){return this.subGraphs}},{key:"firstGraph",value:function(){return!!this.firstGraphFlag&&(this.firstGraphFlag=!1,!0)}},{key:"destructStartLink",value:function(t){var e=t.trim(),r="arrow_open";switch(e[0]){case"<":r="arrow_point",e=e.slice(1);break;case"x":r="arrow_cross",e=e.slice(1);break;case"o":r="arrow_circle",e=e.slice(1)}var i="normal";return e.includes("=")&&(i="thick"),e.includes(".")&&(i="dotted"),{type:r,stroke:i}}},{key:"countChar",value:function(t,e){for(var r=e.length,i=0,n=0;n<r;++n)e[n]===t&&++i;return i}},{key:"destructEndLink",value:function(t){var e=t.trim(),r=e.slice(0,-1),i="arrow_open";switch(e.slice(-1)){case"x":i="arrow_cross",e.startsWith("x")&&(i="double_"+i,r=r.slice(1));break;case">":i="arrow_point",e.startsWith("<")&&(i="double_"+i,r=r.slice(1));break;case"o":i="arrow_circle",e.startsWith("o")&&(i="double_"+i,r=r.slice(1))}var n="normal",a=r.length-1;r.startsWith("=")&&(n="thick"),r.startsWith("~")&&(n="invisible");var o=this.countChar(".",r);return o&&(n="dotted",a=o),{type:i,stroke:n,length:a}}},{key:"destructLink",value:function(t,e){var r,i=this.destructEndLink(t);if(e){if((r=this.destructStartLink(e)).stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===r.type)r.type=i.type;else{if(r.type!==i.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return"double_arrow"===r.type&&(r.type="double_arrow_point"),r.length=i.length,r}return i}},{key:"exists",value:function(t,e){var r,i=(0,u.A)(t);try{for(i.s();!(r=i.n()).done;){if(r.value.nodes.includes(e))return!0}}catch(t){i.e(t)}finally{i.f()}return!1}},{key:"makeUniq",value:function(t,e){var r=this,i=[];return t.nodes.forEach(function(n,a){r.exists(e,n)||i.push(t.nodes[a])}),{nodes:i}}},{key:"getTypeFromVertex",value:function(t){if(t.img)return"imageSquare";if(t.icon)return"circle"===t.form?"iconCircle":"square"===t.form?"iconSquare":"rounded"===t.form?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}},{key:"findNode",value:function(t,e){return t.find(function(t){return t.id===e})}},{key:"destructEdgeType",value:function(t){var e="none",r="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":r=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e=t.replace("double_","")}return{arrowTypeStart:e,arrowTypeEnd:r}}},{key:"addNodeFromVertex",value:function(t,e,r,i,n,a){var s,c=r.get(t.id),u=null!==(s=i.get(t.id))&&void 0!==s&&s,h=this.findNode(e,t.id);if(h)h.cssStyles=t.styles,h.cssCompiledStyles=this.getCompiledStyles(t.classes),h.cssClasses=t.classes.join(" ");else{var d,p={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:c,padding:(null===(d=n.flowchart)||void 0===d?void 0:d.padding)||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node"].concat((0,l.A)(t.classes))),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:a,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};u?e.push((0,o.A)((0,o.A)({},p),{},{isGroup:!0,shape:"rect"})):e.push((0,o.A)((0,o.A)({},p),{},{isGroup:!1,shape:this.getTypeFromVertex(t)}))}}},{key:"getCompiledStyles",value:function(t){var e,r=[],i=(0,u.A)(t);try{for(i.s();!(e=i.n()).done;){var n,a,o=e.value,s=this.classes.get(o);if(null!=s&&s.styles)r=[].concat((0,l.A)(r),(0,l.A)(null!==(n=s.styles)&&void 0!==n?n:[])).map(function(t){return t.trim()});if(null!=s&&s.textStyles)r=[].concat((0,l.A)(r),(0,l.A)(null!==(a=s.textStyles)&&void 0!==a?a:[])).map(function(t){return t.trim()})}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"getData",value:function(){for(var t=this,e=(0,k.D7)(),r=[],i=[],n=this.getSubGraphs(),a=new Map,o=new Map,s=n.length-1;s>=0;s--){var c=n[s];c.nodes.length>0&&o.set(c.id,!0);var h,d=(0,u.A)(c.nodes);try{for(d.s();!(h=d.n()).done;){var p=h.value;a.set(p,c.id)}}catch(t){d.e(t)}finally{d.f()}}for(var g=n.length-1;g>=0;g--){var f=n[g];r.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:a.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:"rect",dir:f.dir,isGroup:!0,look:e.look})}this.getVertices().forEach(function(i){t.addNodeFromVertex(i,r,a,o,e,e.look||"classic")});var y=this.getEdges();return y.forEach(function(r,n){var a,o,s,c=t.destructEdgeType(r.type),u=c.arrowTypeStart,h=c.arrowTypeEnd,d=(0,l.A)(null!==(a=y.defaultStyle)&&void 0!==a?a:[]);r.style&&d.push.apply(d,(0,l.A)(r.style));var p={id:(0,b.rY)(r.start,r.end,{counter:n,prefix:"L"},r.id),isUserDefinedId:r.isUserDefinedId,start:r.start,end:r.end,type:null!==(o=r.type)&&void 0!==o?o:"normal",label:r.text,labelType:r.labelType,labelpos:"c",thickness:r.stroke,minlen:r.length,classes:"invisible"===(null==r?void 0:r.stroke)?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:"invisible"===(null==r?void 0:r.stroke)||"arrow_open"===(null==r?void 0:r.type)?"none":u,arrowTypeEnd:"invisible"===(null==r?void 0:r.stroke)||"arrow_open"===(null==r?void 0:r.type)?"none":h,arrowheadStyle:"fill: #333",cssCompiledStyles:t.getCompiledStyles(r.classes),labelStyle:d,style:d,pattern:r.stroke,look:e.look,animate:r.animate,animation:r.animation,curve:r.interpolate||t.edges.defaultInterpolate||(null===(s=e.flowchart)||void 0===s?void 0:s.curve)};i.push(p)}),{nodes:r,edges:i,other:{},config:e}}},{key:"defaultConfig",value:function(){return k.ME.flowchart}}])}(),(0,C.K2)(i,"FlowDB"),i),S=(0,C.K2)(function(t,e){return e.db.getClasses()},"getClasses"),F=(0,C.K2)(function(){var t=(0,a.A)((0,n.A)().m(function t(e,r,i,a){var o,s,l,c,u,h,d,p,g,f;return(0,n.A)().w(function(t){for(;;)switch(t.n){case 0:return C.Rm.info("REF0:"),C.Rm.info("Drawing state diagram (v2)",r),l=(0,k.D7)(),c=l.securityLevel,u=l.flowchart,h=l.layout,a.db.setDiagramId(r),C.Rm.debug("Before getData: "),d=a.db.getData(),C.Rm.debug("Data: ",d),p=(0,y.A)(r,c),g=a.db.getDirection(),d.type=a.type,d.layoutAlgorithm=(0,v.q7)(h),"dagre"===d.layoutAlgorithm&&"elk"===h&&C.Rm.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),d.direction=g,d.nodeSpacing=(null==u?void 0:u.nodeSpacing)||50,d.rankSpacing=(null==u?void 0:u.rankSpacing)||50,d.markers=["point","circle","cross"],d.diagramId=r,C.Rm.debug("REF1:",d),t.n=1,(0,v.XX)(d,p);case 1:f=null!==(o=null===(s=d.config.flowchart)||void 0===s?void 0:s.diagramPadding)&&void 0!==o?o:8,b._K.insertTitle(p,"flowchartTitleText",(null==u?void 0:u.titleTopMargin)||0,a.db.getDiagramTitle()),(0,m.P)(p,f,"flowchart",(null==u?void 0:u.useMaxWidth)||!1);case 2:return t.a(2)}},t)}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"draw"),_={getClasses:S,draw:F},B=function(){var t=(0,C.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,4],r=[1,3],i=[1,5],n=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],a=[2,2],o=[1,13],s=[1,14],l=[1,15],c=[1,16],u=[1,23],h=[1,25],d=[1,26],p=[1,27],g=[1,50],f=[1,49],y=[1,29],m=[1,30],v=[1,31],x=[1,32],b=[1,33],k=[1,45],A=[1,47],D=[1,43],E=[1,48],T=[1,44],w=[1,51],S=[1,46],F=[1,52],_=[1,53],B=[1,34],L=[1,35],I=[1,36],R=[1,37],O=[1,38],M=[1,58],N=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],K=[1,62],P=[1,61],q=[1,63],z=[8,9,11,75,77,78],W=[1,79],Y=[1,92],$=[1,97],j=[1,96],U=[1,93],H=[1,89],V=[1,95],G=[1,91],X=[1,98],Z=[1,94],Q=[1,99],J=[1,90],tt=[8,9,10,11,40,75,77,78],et=[8,9,10,11,40,46,75,77,78],rt=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],it=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],nt=[44,60,89,102,105,106,109,111,114,115,116],at=[1,122],ot=[1,123],st=[1,125],lt=[1,124],ct=[44,60,62,74,89,102,105,106,109,111,114,115,116],ut=[1,134],ht=[1,148],dt=[1,149],pt=[1,150],gt=[1,151],ft=[1,136],yt=[1,138],mt=[1,142],vt=[1,143],xt=[1,144],bt=[1,145],kt=[1,146],Ct=[1,147],At=[1,152],Dt=[1,153],Et=[1,132],Tt=[1,133],wt=[1,140],St=[1,135],Ft=[1,139],_t=[1,137],Bt=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Lt=[1,155],It=[1,157],Rt=[8,9,11],Ot=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Mt=[1,177],Nt=[1,173],Kt=[1,174],Pt=[1,178],qt=[1,175],zt=[1,176],Wt=[77,116,119],Yt=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],$t=[10,106],jt=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Ut=[1,248],Ht=[1,246],Vt=[1,250],Gt=[1,244],Xt=[1,245],Zt=[1,247],Qt=[1,249],Jt=[1,251],te=[1,269],ee=[8,9,11,106],re=[8,9,10,11,60,84,105,106,109,110,111,112],ie={trace:(0,C.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:(0,C.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(a[s])||a[s].length>0)&&a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 183:case 44:case 54:case 76:case 181:this.$=a[s];break;case 11:i.setDirection("TB"),this.$="TB";break;case 12:i.setDirection(a[s-1]),this.$=a[s-1];break;case 27:this.$=a[s-1].nodes;break;case 33:this.$=i.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 34:this.$=i.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 35:this.$=i.addSubGraph(void 0,a[s-1],void 0);break;case 37:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 38:case 39:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 43:case 133:this.$=a[s-1]+a[s];break;case 45:i.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),i.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 46:i.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 47:i.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 48:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 49:i.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),this.$={stmt:a[s-1],nodes:a[s-1],shapeData:a[s]};break;case 50:this.$={stmt:a[s],nodes:a[s]};break;case 51:case 128:case 130:this.$=[a[s]];break;case 52:i.addVertex(a[s-5][a[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s-4]),this.$=a[s-5].concat(a[s]);break;case 53:this.$=a[s-4].concat(a[s]);break;case 55:this.$=a[s-2],i.setClass(a[s-2],a[s]);break;case 56:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"square");break;case 57:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"doublecircle");break;case 58:this.$=a[s-5],i.addVertex(a[s-5],a[s-2],"circle");break;case 59:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"ellipse");break;case 60:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"stadium");break;case 61:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"subroutine");break;case 62:this.$=a[s-7],i.addVertex(a[s-7],a[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 63:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"cylinder");break;case 64:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"round");break;case 65:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"diamond");break;case 66:this.$=a[s-5],i.addVertex(a[s-5],a[s-2],"hexagon");break;case 67:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"odd");break;case 68:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"trapezoid");break;case 69:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"inv_trapezoid");break;case 70:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"lean_right");break;case 71:this.$=a[s-3],i.addVertex(a[s-3],a[s-1],"lean_left");break;case 72:this.$=a[s],i.addVertex(a[s]);break;case 73:a[s-1].text=a[s],this.$=a[s-1];break;case 74:case 75:a[s-2].text=a[s-1],this.$=a[s-2];break;case 77:var l=i.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[s-1]};break;case 78:l=i.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[s-1],id:a[s-3]};break;case 79:case 86:case 101:case 103:this.$={text:a[s],type:"text"};break;case 80:case 87:case 102:this.$={text:a[s-1].text+""+a[s],type:a[s-1].type};break;case 81:case 88:this.$={text:a[s],type:"string"};break;case 82:case 89:case 104:this.$={text:a[s],type:"markdown"};break;case 83:l=i.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 84:l=i.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length,id:a[s-1]};break;case 85:this.$=a[s-1];break;case 105:this.$=a[s-4],i.addClass(a[s-2],a[s]);break;case 106:this.$=a[s-4],i.setClass(a[s-2],a[s]);break;case 107:case 115:this.$=a[s-1],i.setClickEvent(a[s-1],a[s]);break;case 108:case 116:this.$=a[s-3],i.setClickEvent(a[s-3],a[s-2]),i.setTooltip(a[s-3],a[s]);break;case 109:this.$=a[s-2],i.setClickEvent(a[s-2],a[s-1],a[s]);break;case 110:this.$=a[s-4],i.setClickEvent(a[s-4],a[s-3],a[s-2]),i.setTooltip(a[s-4],a[s]);break;case 111:this.$=a[s-2],i.setLink(a[s-2],a[s]);break;case 112:this.$=a[s-4],i.setLink(a[s-4],a[s-2]),i.setTooltip(a[s-4],a[s]);break;case 113:this.$=a[s-4],i.setLink(a[s-4],a[s-2],a[s]);break;case 114:this.$=a[s-6],i.setLink(a[s-6],a[s-4],a[s]),i.setTooltip(a[s-6],a[s-2]);break;case 117:this.$=a[s-1],i.setLink(a[s-1],a[s]);break;case 118:this.$=a[s-3],i.setLink(a[s-3],a[s-2]),i.setTooltip(a[s-3],a[s]);break;case 119:this.$=a[s-3],i.setLink(a[s-3],a[s-2],a[s]);break;case 120:this.$=a[s-5],i.setLink(a[s-5],a[s-4],a[s]),i.setTooltip(a[s-5],a[s-2]);break;case 121:this.$=a[s-4],i.addVertex(a[s-2],void 0,void 0,a[s]);break;case 122:this.$=a[s-4],i.updateLink([a[s-2]],a[s]);break;case 123:this.$=a[s-4],i.updateLink(a[s-2],a[s]);break;case 124:this.$=a[s-8],i.updateLinkInterpolate([a[s-6]],a[s-2]),i.updateLink([a[s-6]],a[s]);break;case 125:this.$=a[s-8],i.updateLinkInterpolate(a[s-6],a[s-2]),i.updateLink(a[s-6],a[s]);break;case 126:this.$=a[s-6],i.updateLinkInterpolate([a[s-4]],a[s]);break;case 127:this.$=a[s-6],i.updateLinkInterpolate(a[s-4],a[s]);break;case 129:case 131:a[s-2].push(a[s]),this.$=a[s-2];break;case 182:case 184:this.$=a[s-1]+""+a[s];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"}}},"anonymous"),table:[{3:1,4:2,9:e,10:r,12:i},{1:[3]},t(n,a,{5:6}),{4:7,9:e,10:r,12:i},{4:8,9:e,10:r,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:o,9:s,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:u,33:24,34:h,36:d,38:p,42:28,43:39,44:g,45:40,47:41,60:f,84:y,85:m,86:v,87:x,88:b,89:k,102:A,105:D,106:E,109:T,111:w,113:42,114:S,115:F,116:_,121:B,122:L,123:I,124:R,125:O},t(n,[2,9]),t(n,[2,10]),t(n,[2,11]),{8:[1,55],9:[1,56],10:M,15:54,18:57},t(N,[2,3]),t(N,[2,4]),t(N,[2,5]),t(N,[2,6]),t(N,[2,7]),t(N,[2,8]),{8:K,9:P,11:q,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:K,9:P,11:q,21:68},{8:K,9:P,11:q,21:69},{8:K,9:P,11:q,21:70},{8:K,9:P,11:q,21:71},{8:K,9:P,11:q,21:72},{8:K,9:P,10:[1,73],11:q,21:74},t(N,[2,36]),{35:[1,75]},{37:[1,76]},t(N,[2,39]),t(z,[2,50],{18:77,39:78,10:M,40:W}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Y,44:$,60:j,80:[1,87],89:U,95:[1,84],97:[1,85],101:86,105:H,106:V,109:G,111:X,114:Z,115:Q,116:J,120:88},t(N,[2,185]),t(N,[2,186]),t(N,[2,187]),t(N,[2,188]),t(N,[2,189]),t(tt,[2,51]),t(tt,[2,54],{46:[1,100]}),t(et,[2,72],{113:113,29:[1,101],44:g,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:f,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:k,102:A,105:D,106:E,109:T,111:w,114:S,115:F,116:_}),t(rt,[2,181]),t(rt,[2,142]),t(rt,[2,143]),t(rt,[2,144]),t(rt,[2,145]),t(rt,[2,146]),t(rt,[2,147]),t(rt,[2,148]),t(rt,[2,149]),t(rt,[2,150]),t(rt,[2,151]),t(rt,[2,152]),t(n,[2,12]),t(n,[2,18]),t(n,[2,19]),{9:[1,114]},t(it,[2,26],{18:115,10:M}),t(N,[2,27]),{42:116,43:39,44:g,45:40,47:41,60:f,89:k,102:A,105:D,106:E,109:T,111:w,113:42,114:S,115:F,116:_},t(N,[2,40]),t(N,[2,41]),t(N,[2,42]),t(nt,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:at,81:ot,116:st,119:lt},{75:[1,126],77:[1,127]},t(ct,[2,83]),t(N,[2,28]),t(N,[2,29]),t(N,[2,30]),t(N,[2,31]),t(N,[2,32]),{10:ut,12:ht,14:dt,27:pt,28:128,32:gt,44:ft,60:yt,75:mt,80:[1,130],81:[1,131],83:141,84:vt,85:xt,86:bt,87:kt,88:Ct,89:At,90:Dt,91:129,105:Et,109:Tt,111:wt,114:St,115:Ft,116:_t},t(Bt,a,{5:154}),t(N,[2,37]),t(N,[2,38]),t(z,[2,48],{44:Lt}),t(z,[2,49],{18:156,10:M,40:It}),t(tt,[2,44]),{44:g,47:158,60:f,89:k,102:A,105:D,106:E,109:T,111:w,113:42,114:S,115:F,116:_},{102:[1,159],103:160,105:[1,161]},{44:g,47:162,60:f,89:k,102:A,105:D,106:E,109:T,111:w,113:42,114:S,115:F,116:_},{44:g,47:163,60:f,89:k,102:A,105:D,106:E,109:T,111:w,113:42,114:S,115:F,116:_},t(Rt,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(Rt,[2,115],{120:168,10:[1,167],14:Y,44:$,60:j,89:U,105:H,106:V,109:G,111:X,114:Z,115:Q,116:J}),t(Rt,[2,117],{10:[1,169]}),t(Ot,[2,183]),t(Ot,[2,170]),t(Ot,[2,171]),t(Ot,[2,172]),t(Ot,[2,173]),t(Ot,[2,174]),t(Ot,[2,175]),t(Ot,[2,176]),t(Ot,[2,177]),t(Ot,[2,178]),t(Ot,[2,179]),t(Ot,[2,180]),{44:g,47:170,60:f,89:k,102:A,105:D,106:E,109:T,111:w,113:42,114:S,115:F,116:_},{30:171,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},{30:179,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},{30:181,50:[1,180],67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},{30:182,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},{30:183,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},{30:184,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},{109:[1,185]},{30:186,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},{30:187,65:[1,188],67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},{30:189,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},{30:190,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},{30:191,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},t(rt,[2,182]),t(n,[2,20]),t(it,[2,25]),t(z,[2,46],{39:192,18:193,10:M,40:W}),t(nt,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},{77:[1,197],79:198,116:st,119:lt},t(Wt,[2,79]),t(Wt,[2,81]),t(Wt,[2,82]),t(Wt,[2,168]),t(Wt,[2,169]),{76:199,79:121,80:at,81:ot,116:st,119:lt},t(ct,[2,84]),{8:K,9:P,10:ut,11:q,12:ht,14:dt,21:201,27:pt,29:[1,200],32:gt,44:ft,60:yt,75:mt,83:141,84:vt,85:xt,86:bt,87:kt,88:Ct,89:At,90:Dt,91:202,105:Et,109:Tt,111:wt,114:St,115:Ft,116:_t},t(Yt,[2,101]),t(Yt,[2,103]),t(Yt,[2,104]),t(Yt,[2,157]),t(Yt,[2,158]),t(Yt,[2,159]),t(Yt,[2,160]),t(Yt,[2,161]),t(Yt,[2,162]),t(Yt,[2,163]),t(Yt,[2,164]),t(Yt,[2,165]),t(Yt,[2,166]),t(Yt,[2,167]),t(Yt,[2,90]),t(Yt,[2,91]),t(Yt,[2,92]),t(Yt,[2,93]),t(Yt,[2,94]),t(Yt,[2,95]),t(Yt,[2,96]),t(Yt,[2,97]),t(Yt,[2,98]),t(Yt,[2,99]),t(Yt,[2,100]),{6:11,7:12,8:o,9:s,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,203],33:24,34:h,36:d,38:p,42:28,43:39,44:g,45:40,47:41,60:f,84:y,85:m,86:v,87:x,88:b,89:k,102:A,105:D,106:E,109:T,111:w,113:42,114:S,115:F,116:_,121:B,122:L,123:I,124:R,125:O},{10:M,18:204},{44:[1,205]},t(tt,[2,43]),{10:[1,206],44:g,60:f,89:k,102:A,105:D,106:E,109:T,111:w,113:113,114:S,115:F,116:_},{10:[1,207]},{10:[1,208],106:[1,209]},t($t,[2,128]),{10:[1,210],44:g,60:f,89:k,102:A,105:D,106:E,109:T,111:w,113:113,114:S,115:F,116:_},{10:[1,211],44:g,60:f,89:k,102:A,105:D,106:E,109:T,111:w,113:113,114:S,115:F,116:_},{80:[1,212]},t(Rt,[2,109],{10:[1,213]}),t(Rt,[2,111],{10:[1,214]}),{80:[1,215]},t(Ot,[2,184]),{80:[1,216],98:[1,217]},t(tt,[2,55],{113:113,44:g,60:f,89:k,102:A,105:D,106:E,109:T,111:w,114:S,115:F,116:_}),{31:[1,218],67:Mt,82:219,116:Pt,117:qt,118:zt},t(jt,[2,86]),t(jt,[2,88]),t(jt,[2,89]),t(jt,[2,153]),t(jt,[2,154]),t(jt,[2,155]),t(jt,[2,156]),{49:[1,220],67:Mt,82:219,116:Pt,117:qt,118:zt},{30:221,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},{51:[1,222],67:Mt,82:219,116:Pt,117:qt,118:zt},{53:[1,223],67:Mt,82:219,116:Pt,117:qt,118:zt},{55:[1,224],67:Mt,82:219,116:Pt,117:qt,118:zt},{57:[1,225],67:Mt,82:219,116:Pt,117:qt,118:zt},{60:[1,226]},{64:[1,227],67:Mt,82:219,116:Pt,117:qt,118:zt},{66:[1,228],67:Mt,82:219,116:Pt,117:qt,118:zt},{30:229,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},{31:[1,230],67:Mt,82:219,116:Pt,117:qt,118:zt},{67:Mt,69:[1,231],71:[1,232],82:219,116:Pt,117:qt,118:zt},{67:Mt,69:[1,234],71:[1,233],82:219,116:Pt,117:qt,118:zt},t(z,[2,45],{18:156,10:M,40:It}),t(z,[2,47],{44:Lt}),t(nt,[2,75]),t(nt,[2,74]),{62:[1,235],67:Mt,82:219,116:Pt,117:qt,118:zt},t(nt,[2,77]),t(Wt,[2,80]),{77:[1,236],79:198,116:st,119:lt},{30:237,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},t(Bt,a,{5:238}),t(Yt,[2,102]),t(N,[2,35]),{43:239,44:g,45:40,47:41,60:f,89:k,102:A,105:D,106:E,109:T,111:w,113:42,114:S,115:F,116:_},{10:M,18:240},{10:Ut,60:Ht,84:Vt,92:241,105:Gt,107:242,108:243,109:Xt,110:Zt,111:Qt,112:Jt},{10:Ut,60:Ht,84:Vt,92:252,104:[1,253],105:Gt,107:242,108:243,109:Xt,110:Zt,111:Qt,112:Jt},{10:Ut,60:Ht,84:Vt,92:254,104:[1,255],105:Gt,107:242,108:243,109:Xt,110:Zt,111:Qt,112:Jt},{105:[1,256]},{10:Ut,60:Ht,84:Vt,92:257,105:Gt,107:242,108:243,109:Xt,110:Zt,111:Qt,112:Jt},{44:g,47:258,60:f,89:k,102:A,105:D,106:E,109:T,111:w,113:42,114:S,115:F,116:_},t(Rt,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(Rt,[2,116]),t(Rt,[2,118],{10:[1,262]}),t(Rt,[2,119]),t(et,[2,56]),t(jt,[2,87]),t(et,[2,57]),{51:[1,263],67:Mt,82:219,116:Pt,117:qt,118:zt},t(et,[2,64]),t(et,[2,59]),t(et,[2,60]),t(et,[2,61]),{109:[1,264]},t(et,[2,63]),t(et,[2,65]),{66:[1,265],67:Mt,82:219,116:Pt,117:qt,118:zt},t(et,[2,67]),t(et,[2,68]),t(et,[2,70]),t(et,[2,69]),t(et,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(nt,[2,78]),{31:[1,266],67:Mt,82:219,116:Pt,117:qt,118:zt},{6:11,7:12,8:o,9:s,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,267],33:24,34:h,36:d,38:p,42:28,43:39,44:g,45:40,47:41,60:f,84:y,85:m,86:v,87:x,88:b,89:k,102:A,105:D,106:E,109:T,111:w,113:42,114:S,115:F,116:_,121:B,122:L,123:I,124:R,125:O},t(tt,[2,53]),{43:268,44:g,45:40,47:41,60:f,89:k,102:A,105:D,106:E,109:T,111:w,113:42,114:S,115:F,116:_},t(Rt,[2,121],{106:te}),t(ee,[2,130],{108:270,10:Ut,60:Ht,84:Vt,105:Gt,109:Xt,110:Zt,111:Qt,112:Jt}),t(re,[2,132]),t(re,[2,134]),t(re,[2,135]),t(re,[2,136]),t(re,[2,137]),t(re,[2,138]),t(re,[2,139]),t(re,[2,140]),t(re,[2,141]),t(Rt,[2,122],{106:te}),{10:[1,271]},t(Rt,[2,123],{106:te}),{10:[1,272]},t($t,[2,129]),t(Rt,[2,105],{106:te}),t(Rt,[2,106],{113:113,44:g,60:f,89:k,102:A,105:D,106:E,109:T,111:w,114:S,115:F,116:_}),t(Rt,[2,110]),t(Rt,[2,112],{10:[1,273]}),t(Rt,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:K,9:P,11:q,21:278},t(N,[2,34]),t(tt,[2,52]),{10:Ut,60:Ht,84:Vt,105:Gt,107:279,108:243,109:Xt,110:Zt,111:Qt,112:Jt},t(re,[2,133]),{14:Y,44:$,60:j,89:U,101:280,105:H,106:V,109:G,111:X,114:Z,115:Q,116:J,120:88},{14:Y,44:$,60:j,89:U,101:281,105:H,106:V,109:G,111:X,114:Z,115:Q,116:J,120:88},{98:[1,282]},t(Rt,[2,120]),t(et,[2,58]),{30:283,67:Mt,80:Nt,81:Kt,82:172,116:Pt,117:qt,118:zt},t(et,[2,66]),t(Bt,a,{5:284}),t(ee,[2,131],{108:270,10:Ut,60:Ht,84:Vt,105:Gt,109:Xt,110:Zt,111:Qt,112:Jt}),t(Rt,[2,126],{120:168,10:[1,285],14:Y,44:$,60:j,89:U,105:H,106:V,109:G,111:X,114:Z,115:Q,116:J}),t(Rt,[2,127],{120:168,10:[1,286],14:Y,44:$,60:j,89:U,105:H,106:V,109:G,111:X,114:Z,115:Q,116:J}),t(Rt,[2,114]),{31:[1,287],67:Mt,82:219,116:Pt,117:qt,118:zt},{6:11,7:12,8:o,9:s,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:u,32:[1,288],33:24,34:h,36:d,38:p,42:28,43:39,44:g,45:40,47:41,60:f,84:y,85:m,86:v,87:x,88:b,89:k,102:A,105:D,106:E,109:T,111:w,113:42,114:S,115:F,116:_,121:B,122:L,123:I,124:R,125:O},{10:Ut,60:Ht,84:Vt,92:289,105:Gt,107:242,108:243,109:Xt,110:Zt,111:Qt,112:Jt},{10:Ut,60:Ht,84:Vt,92:290,105:Gt,107:242,108:243,109:Xt,110:Zt,111:Qt,112:Jt},t(et,[2,62]),t(N,[2,33]),t(Rt,[2,124],{106:te}),t(Rt,[2,125],{106:te})],defaultActions:{},parseError:(0,C.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,C.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,u=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var f=d.yylloc;a.push(f);var y=d.options&&d.options.ranges;function m(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,C.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,C.K2)(m,"lex");for(var v,x,b,k,A,D,E,T,w,S={};;){if(b=r[r.length-1],this.defaultActions[b]?k=this.defaultActions[b]:(null==v&&(v=m()),k=o[b]&&o[b][v]),void 0===k||!k.length||!k[0]){var F="";for(D in w=[],o[b])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(F,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:f,expected:w})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+v);switch(k[0]){case 1:r.push(v),n.push(d.yytext),a.push(d.yylloc),r.push(k[1]),v=null,x?(v=x,x=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,f=d.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,p.yy,k[1],n,a].concat(h))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[k[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},ne=function(){return{EOF:1,parseError:(0,C.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,C.K2)(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},"setInput"),input:(0,C.K2)(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},"input"),unput:(0,C.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,C.K2)(function(){return this._more=!0,this},"more"),reject:(0,C.K2)(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})},"reject"),less:(0,C.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,C.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,C.K2)(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,"")},"upcomingInput"),showPosition:(0,C.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,C.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,C.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,C.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,C.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,C.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,C.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,C.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,C.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,C.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,C.K2)(function(t,e,r,i){switch(r){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),e.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return e.yytext=e.yytext.replace(/\n\s*/g,"<br/>"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 18:return 96;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 34:return 88;case 35:case 36:case 37:return t.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:case 41:case 42:case 43:return 98;case 44:return this.popState(),13;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 78;case 61:return 105;case 62:case 103:return 111;case 63:return 46;case 64:return 60;case 65:case 104:return 44;case 66:return 8;case 67:return 106;case 68:case 102:return 115;case 69:case 72:case 75:return this.popState(),77;case 70:return this.pushState("edgeText"),75;case 71:case 74:case 77:return 119;case 73:return this.pushState("thickEdgeText"),75;case 76:return this.pushState("dottedEdgeText"),75;case 78:return 77;case 79:return this.popState(),53;case 80:case 116:return"TEXT";case 81:return this.pushState("ellipseText"),52;case 82:return this.popState(),55;case 83:return this.pushState("text"),54;case 84:return this.popState(),57;case 85:return this.pushState("text"),56;case 86:return 58;case 87:return this.pushState("text"),67;case 88:return this.popState(),64;case 89:return this.pushState("text"),63;case 90:return this.popState(),49;case 91:return this.pushState("text"),48;case 92:return this.popState(),69;case 93:return this.popState(),71;case 94:return 117;case 95:return this.pushState("trapText"),68;case 96:return this.pushState("trapText"),70;case 97:return 118;case 98:return 67;case 99:return 90;case 100:return"SEP";case 101:return 89;case 105:return 109;case 106:return 114;case 107:return 116;case 108:return this.popState(),62;case 109:return this.pushState("text"),62;case 110:return this.popState(),51;case 111:return this.pushState("text"),50;case 112:return this.popState(),31;case 113:return this.pushState("text"),29;case 114:return this.popState(),66;case 115:return this.pushState("text"),65;case 117:return"QUOTE";case 118:return 9;case 119:return 10;case 120:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeData:{rules:[8,11,12,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackargs:{rules:[17,18,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackname:{rules:[14,15,16,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},href:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},click:{rules:[21,24,33,34,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dottedEdgeText:{rules:[21,24,75,77,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},thickEdgeText:{rules:[21,24,72,74,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},edgeText:{rules:[21,24,69,71,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},trapText:{rules:[21,24,78,81,83,85,89,91,92,93,94,95,96,109,111,113,115],inclusive:!1},ellipseText:{rules:[21,24,78,79,80,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},text:{rules:[21,24,78,81,82,83,84,85,88,89,90,91,95,96,108,109,110,111,112,113,114,115,116],inclusive:!1},vertex:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr:{rules:[3,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_title:{rules:[1,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},md_string:{rules:[19,20,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},string:{rules:[21,22,23,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,75,76,78,81,83,85,86,87,89,91,95,96,97,98,99,100,101,102,103,104,105,106,107,109,111,113,115,117,118,119,120],inclusive:!0}}}}();function ae(){this.yy={}}return ie.lexer=ne,(0,C.K2)(ae,"Parser"),ae.prototype=ie,ie.Parser=ae,new ae}();B.parser=B;var L=B,I=Object.assign({},L);I.parse=function(t){var e=t.replace(/}\s*\n/g,"}\n");return L.parse(e)};var R=I,O=(0,C.K2)(function(t,e){var r=T.A,i=r(t,"r"),n=r(t,"g"),a=r(t,"b");return E.A(i,n,a,e)},"fade"),M=(0,C.K2)(function(t){var e,r;return".label {\n    font-family: ".concat(t.fontFamily,";\n    color: ").concat(t.nodeTextColor||t.textColor,";\n  }\n  .cluster-label text {\n    fill: ").concat(t.titleColor,";\n  }\n  .cluster-label span {\n    color: ").concat(t.titleColor,";\n  }\n  .cluster-label span p {\n    background-color: transparent;\n  }\n\n  .label text,span {\n    fill: ").concat(t.nodeTextColor||t.textColor,";\n    color: ").concat(t.nodeTextColor||t.textColor,";\n  }\n\n  .node rect,\n  .node circle,\n  .node ellipse,\n  .node polygon,\n  .node path {\n    fill: ").concat(t.mainBkg,";\n    stroke: ").concat(t.nodeBorder,";\n    stroke-width: ").concat(null!==(e=t.strokeWidth)&&void 0!==e?e:1,"px;\n  }\n  .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {\n    text-anchor: middle;\n  }\n  // .flowchart-label .text-outer-tspan {\n  //   text-anchor: middle;\n  // }\n  // .flowchart-label .text-inner-tspan {\n  //   text-anchor: start;\n  // }\n\n  .node .katex path {\n    fill: #000;\n    stroke: #000;\n    stroke-width: 1px;\n  }\n\n  .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {\n    text-align: center;\n  }\n  .node.clickable {\n    cursor: pointer;\n  }\n\n\n  .root .anchor path {\n    fill: ").concat(t.lineColor," !important;\n    stroke-width: 0;\n    stroke: ").concat(t.lineColor,";\n  }\n\n  .arrowheadPath {\n    fill: ").concat(t.arrowheadColor,";\n  }\n\n  .edgePath .path {\n    stroke: ").concat(t.lineColor,";\n    stroke-width: ").concat(null!==(r=t.strokeWidth)&&void 0!==r?r:2,"px;\n  }\n\n  .flowchart-link {\n    stroke: ").concat(t.lineColor,";\n    fill: none;\n  }\n\n  .edgeLabel {\n    background-color: ").concat(t.edgeLabelBackground,";\n    p {\n      background-color: ").concat(t.edgeLabelBackground,";\n    }\n    rect {\n      opacity: 0.5;\n      background-color: ").concat(t.edgeLabelBackground,";\n      fill: ").concat(t.edgeLabelBackground,";\n    }\n    text-align: center;\n  }\n\n  /* For html labels only */\n  .labelBkg {\n    background-color: ").concat(O(t.edgeLabelBackground,.5),";\n    // background-color:\n  }\n\n  .cluster rect {\n    fill: ").concat(t.clusterBkg,";\n    stroke: ").concat(t.clusterBorder,";\n    stroke-width: 1px;\n  }\n\n  .cluster text {\n    fill: ").concat(t.titleColor,";\n  }\n\n  .cluster span {\n    color: ").concat(t.titleColor,";\n  }\n  /* .cluster div {\n    color: ").concat(t.titleColor,";\n  } */\n\n  div.mermaidTooltip {\n    position: absolute;\n    text-align: center;\n    max-width: 200px;\n    padding: 2px;\n    font-family: ").concat(t.fontFamily,";\n    font-size: 12px;\n    background: ").concat(t.tertiaryColor,";\n    border: 1px solid ").concat(t.border2,";\n    border-radius: 2px;\n    pointer-events: none;\n    z-index: 100;\n  }\n\n  .flowchartTitleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ").concat(t.textColor,";\n  }\n\n  rect.text {\n    fill: none;\n    stroke-width: 0;\n  }\n\n  .icon-shape, .image-shape {\n    background-color: ").concat(t.edgeLabelBackground,";\n    p {\n      background-color: ").concat(t.edgeLabelBackground,";\n      padding: 2px;\n    }\n    .label rect {\n      opacity: 0.5;\n      background-color: ").concat(t.edgeLabelBackground,";\n      fill: ").concat(t.edgeLabelBackground,";\n    }\n    text-align: center;\n  }\n  ").concat((0,p.o)(),"\n")},"getStyles"),N={parser:R,get db(){return new w},renderer:_,styles:M,init:(0,C.K2)(function(t){t.flowchart||(t.flowchart={}),t.layout&&(0,k.XV)({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,(0,k.XV)({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")}},53558:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return $t}});var i=r(23772),n=r(74721),a=r(3604),o=r(8495),s=r(81587),l=(r(74423),r(34539)),c=r(40985),u=r(68548),h=r(92457),d=r(1576),p=r(70742),g=r(76110),f=r(74642),y=r(76807),m=r(63219),v=function(){var t=(0,u.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],i=[1,27],n=[1,28],a=[1,29],o=[1,30],s=[1,31],l=[1,32],c=[1,33],h=[1,34],d=[1,9],p=[1,10],g=[1,11],f=[1,12],y=[1,13],m=[1,14],v=[1,15],x=[1,16],b=[1,19],k=[1,20],C=[1,21],A=[1,22],D=[1,23],E=[1,25],T=[1,35],w={trace:(0,u.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:(0,u.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 1:return a[s-1];case 2:case 6:case 7:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 8:i.setWeekday("monday");break;case 9:i.setWeekday("tuesday");break;case 10:i.setWeekday("wednesday");break;case 11:i.setWeekday("thursday");break;case 12:i.setWeekday("friday");break;case 13:i.setWeekday("saturday");break;case 14:i.setWeekday("sunday");break;case 15:i.setWeekend("friday");break;case 16:i.setWeekend("saturday");break;case 17:i.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:i.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:i.TopAxis(),this.$=a[s].substr(8);break;case 20:i.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:i.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:i.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:i.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:i.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:i.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 31:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:i.addTask(a[s-1],a[s]),this.$="task";break;case 34:this.$=a[s-1],i.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],i.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],i.setClickEvent(a[s-2],a[s-1],null),i.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],i.setClickEvent(a[s-3],a[s-2],a[s-1]),i.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],i.setClickEvent(a[s-2],a[s],null),i.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],i.setClickEvent(a[s-3],a[s-1],a[s]),i.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],i.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+" "+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+" "+a[s-1]+" "+a[s];break;case 44:case 46:this.$=a[s-3]+" "+a[s-2]+" "+a[s-1]+" "+a[s]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:n,15:a,16:o,17:s,18:l,19:18,20:c,21:h,22:d,23:p,24:g,25:f,26:y,27:m,28:v,29:x,30:b,31:k,33:C,35:A,36:D,37:24,38:E,40:T},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:r,13:i,14:n,15:a,16:o,17:s,18:l,19:18,20:c,21:h,22:d,23:p,24:g,25:f,26:y,27:m,28:v,29:x,30:b,31:k,33:C,35:A,36:D,37:24,38:E,40:T},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:(0,u.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,u.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,h=0,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g.yy[f]=this.yy[f]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var m=p.options&&p.options.ranges;function v(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,u.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,u.K2)(v,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=v()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(p.yytext),a.push(p.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(c=p.yyleng,s=p.yytext,l=p.yylineno,y=p.yylloc,h>0&&h--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,g.yy,C[1],n,a].concat(d))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},S=function(){return{EOF:1,parseError:(0,u.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,u.K2)(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},"setInput"),input:(0,u.K2)(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},"input"),unput:(0,u.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,u.K2)(function(){return this._more=!0,this},"more"),reject:(0,u.K2)(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})},"reject"),less:(0,u.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,u.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,u.K2)(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,"")},"upcomingInput"),showPosition:(0,u.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,u.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,u.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,u.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,u.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,u.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,u.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,u.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,u.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,u.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,u.K2)(function(t,e,r,i){switch(r){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,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],inclusive:!0}}}}();function F(){this.yy={}}return w.lexer=S,(0,u.K2)(F,"Parser"),F.prototype=w,w.Parser=F,new F}();v.parser=v;var x=v;d.extend(p),d.extend(g),d.extend(f);var b,k,C={friday:5,saturday:6},A="",D="",E=void 0,T="",w=[],S=[],F=new Map,_=[],B=[],L="",I="",R=["active","done","crit","milestone","vert"],O=[],M="",N=!1,K=!1,P="sunday",q="saturday",z=0,W=(0,u.K2)(function(){_=[],B=[],L="",O=[],kt=0,b=void 0,k=void 0,Et=[],A="",D="",I="",E=void 0,T="",w=[],S=[],N=!1,K=!1,z=0,F=new Map,M="",(0,c.IU)(),P="sunday",q="saturday"},"clear"),Y=(0,u.K2)(function(t){M=t},"setDiagramId"),$=(0,u.K2)(function(t){D=t},"setAxisFormat"),j=(0,u.K2)(function(){return D},"getAxisFormat"),U=(0,u.K2)(function(t){E=t},"setTickInterval"),H=(0,u.K2)(function(){return E},"getTickInterval"),V=(0,u.K2)(function(t){T=t},"setTodayMarker"),G=(0,u.K2)(function(){return T},"getTodayMarker"),X=(0,u.K2)(function(t){A=t},"setDateFormat"),Z=(0,u.K2)(function(){N=!0},"enableInclusiveEndDates"),Q=(0,u.K2)(function(){return N},"endDatesAreInclusive"),J=(0,u.K2)(function(){K=!0},"enableTopAxis"),tt=(0,u.K2)(function(){return K},"topAxisEnabled"),et=(0,u.K2)(function(t){I=t},"setDisplayMode"),rt=(0,u.K2)(function(){return I},"getDisplayMode"),it=(0,u.K2)(function(){return A},"getDateFormat"),nt=(0,u.K2)(function(t){w=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),at=(0,u.K2)(function(){return w},"getIncludes"),ot=(0,u.K2)(function(t){S=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),st=(0,u.K2)(function(){return S},"getExcludes"),lt=(0,u.K2)(function(){return F},"getLinks"),ct=(0,u.K2)(function(t){L=t,_.push(t)},"addSection"),ut=(0,u.K2)(function(){return _},"getSections"),ht=(0,u.K2)(function(){for(var t=_t(),e=0;!t&&e<10;)t=_t(),e++;return B=Et},"getTasks"),dt=(0,u.K2)(function(t,e,r,i){var n=t.format(e.trim()),a=t.format("YYYY-MM-DD");return!i.includes(n)&&!i.includes(a)&&(!(!r.includes("weekends")||t.isoWeekday()!==C[q]&&t.isoWeekday()!==C[q]+1)||(!!r.includes(t.format("dddd").toLowerCase())||(r.includes(n)||r.includes(a))))},"isInvalidDate"),pt=(0,u.K2)(function(t){P=t},"setWeekday"),gt=(0,u.K2)(function(){return P},"getWeekday"),ft=(0,u.K2)(function(t){q=t},"setWeekend"),yt=(0,u.K2)(function(t,e,r,i){if(r.length&&!t.manualEndTime){var n,a;n=(n=t.startTime instanceof Date?d(t.startTime):d(t.startTime,e,!0)).add(1,"d"),a=t.endTime instanceof Date?d(t.endTime):d(t.endTime,e,!0);var o=mt(n,a,e,r,i),l=(0,s.A)(o,2),c=l[0],u=l[1];t.endTime=c.toDate(),t.renderEndTime=u}},"checkTaskDates"),mt=(0,u.K2)(function(t,e,r,i,n){for(var a=!1,o=null,s=e.add(1e4,"d");t<=e;){if(a||(o=e.toDate()),(a=dt(t,r,i,n))&&(e=e.add(1,"d"))>s)throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,o]},"fixTaskDates"),vt=(0,u.K2)(function(t,e,r){if(r=r.trim(),(0,u.K2)(function(t){var e=t.trim();return"x"===e||"X"===e},"isTimestampFormat")(e)&&/^\d+$/.test(r))return new Date(Number(r));var i=(0,o.A)(/^after\s+([\d\w- ]+)/,{ids:1}).exec(r);if(null!==i){var n,s=null,l=(0,a.A)(i.groups.ids.split(" "));try{for(l.s();!(n=l.n()).done;){var c=n.value,h=St(c);void 0!==h&&(!s||h.endTime>s.endTime)&&(s=h)}}catch(t){l.e(t)}finally{l.f()}if(s)return s.endTime;var p=new Date;return p.setHours(0,0,0,0),p}var g=d(r,e.trim(),!0);if(g.isValid())return g.toDate();u.Rm.debug("Invalid date:"+r),u.Rm.debug("With date format:"+e.trim());var f=new Date(r);if(void 0===f||isNaN(f.getTime())||f.getFullYear()<-1e4||f.getFullYear()>1e4)throw new Error("Invalid date:"+r);return f},"getStartDate"),xt=(0,u.K2)(function(t){var e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),bt=(0,u.K2)(function(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];r=r.trim();var n=(0,o.A)(/^until\s+([\d\w- ]+)/,{ids:1}).exec(r);if(null!==n){var l,c=null,u=(0,a.A)(n.groups.ids.split(" "));try{for(u.s();!(l=u.n()).done;){var h=l.value,p=St(h);void 0!==p&&(!c||p.startTime<c.startTime)&&(c=p)}}catch(t){u.e(t)}finally{u.f()}if(c)return c.startTime;var g=new Date;return g.setHours(0,0,0,0),g}var f=d(r,e.trim(),!0);if(f.isValid())return i&&(f=f.add(1,"d")),f.toDate();var y=d(t),m=xt(r),v=(0,s.A)(m,2),x=v[0],b=v[1];if(!Number.isNaN(x)){var k=y.add(x,b);k.isValid()&&(y=k)}return y.toDate()},"getEndDate"),kt=0,Ct=(0,u.K2)(function(t){return void 0===t?"task"+(kt+=1):t},"parseId"),At=(0,u.K2)(function(t,e){var r=(":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),i={};Kt(r,i,R);for(var n=0;n<r.length;n++)r[n]=r[n].trim();var a="";switch(r.length){case 1:i.id=Ct(),i.startTime=t.endTime,a=r[0];break;case 2:i.id=Ct(),i.startTime=vt(void 0,A,r[0]),a=r[1];break;case 3:i.id=Ct(r[0]),i.startTime=vt(void 0,A,r[1]),a=r[2]}return a&&(i.endTime=bt(i.startTime,A,a,N),i.manualEndTime=d(a,"YYYY-MM-DD",!0).isValid(),yt(i,A,S,w)),i},"compileData"),Dt=(0,u.K2)(function(t,e){var r=(":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),i={};Kt(r,i,R);for(var n=0;n<r.length;n++)r[n]=r[n].trim();switch(r.length){case 1:i.id=Ct(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Ct(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Ct(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i},"parseData"),Et=[],Tt={},wt=(0,u.K2)(function(t,e){var r={section:L,type:L,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},i=Dt(k,e);r.raw.startTime=i.startTime,r.raw.endTime=i.endTime,r.id=i.id,r.prevTaskId=k,r.active=i.active,r.done=i.done,r.crit=i.crit,r.milestone=i.milestone,r.vert=i.vert,r.order=z,z++;var n=Et.push(r);k=r.id,Tt[r.id]=n-1},"addTask"),St=(0,u.K2)(function(t){var e=Tt[t];return Et[e]},"findTaskById"),Ft=(0,u.K2)(function(t,e){var r={section:L,type:L,description:t,task:t,classes:[]},i=At(b,e);r.startTime=i.startTime,r.endTime=i.endTime,r.id=i.id,r.active=i.active,r.done=i.done,r.crit=i.crit,r.milestone=i.milestone,r.vert=i.vert,b=r,B.push(r)},"addTaskOrg"),_t=(0,u.K2)(function(){var t,e=(0,u.K2)(function(t){var e=Et[t],r="";switch(Et[t].raw.startTime.type){case"prevTaskEnd":var i=St(e.prevTaskId);e.startTime=i.endTime;break;case"getStartDate":(r=vt(void 0,A,Et[t].raw.startTime.startData))&&(Et[t].startTime=r)}return Et[t].startTime&&(Et[t].endTime=bt(Et[t].startTime,A,Et[t].raw.endTime.data,N),Et[t].endTime&&(Et[t].processed=!0,Et[t].manualEndTime=d(Et[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),yt(Et[t],A,S,w))),Et[t].processed},"compileTask"),r=!0,i=(0,a.A)(Et.entries());try{for(i.s();!(t=i.n()).done;){var n=(0,s.A)(t.value,2),o=n[0],l=n[1];e(o),r=r&&l.processed}}catch(t){i.e(t)}finally{i.f()}return r},"compileTasks"),Bt=(0,u.K2)(function(t,e){var r=e;"loose"!==(0,c.D7)().securityLevel&&(r=(0,h.J)(e)),t.split(",").forEach(function(t){void 0!==St(t)&&(Rt(t,function(){window.open(r,"_self")}),F.set(t,r))}),Lt(t,"clickable")},"setLink"),Lt=(0,u.K2)(function(t,e){t.split(",").forEach(function(t){var r=St(t);void 0!==r&&r.classes.push(e)})},"setClass"),It=(0,u.K2)(function(t,e,r){if("loose"===(0,c.D7)().securityLevel&&void 0!==e){var i=[];if("string"==typeof r){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var a=0;a<i.length;a++){var o=i[a].trim();o.startsWith('"')&&o.endsWith('"')&&(o=o.substr(1,o.length-2)),i[a]=o}}0===i.length&&i.push(t),void 0!==St(t)&&Rt(t,function(){l._K.runFunc.apply(l._K,[e].concat((0,n.A)(i)))})}},"setClickFun"),Rt=(0,u.K2)(function(t,e){O.push(function(){var r=M?"".concat(M,"-").concat(t):t,i=document.querySelector('[id="'.concat(r,'"]'));null!==i&&i.addEventListener("click",function(){e()})},function(){var r=M?"".concat(M,"-").concat(t):t,i=document.querySelector('[id="'.concat(r,'-text"]'));null!==i&&i.addEventListener("click",function(){e()})})},"pushFun"),Ot=(0,u.K2)(function(t,e,r){t.split(",").forEach(function(t){It(t,e,r)}),Lt(t,"clickable")},"setClickEvent"),Mt=(0,u.K2)(function(t){O.forEach(function(e){e(t)})},"bindFunctions"),Nt={getConfig:(0,u.K2)(function(){return(0,c.D7)().gantt},"getConfig"),clear:W,setDateFormat:X,getDateFormat:it,enableInclusiveEndDates:Z,endDatesAreInclusive:Q,enableTopAxis:J,topAxisEnabled:tt,setAxisFormat:$,getAxisFormat:j,setTickInterval:U,getTickInterval:H,setTodayMarker:V,getTodayMarker:G,setAccTitle:c.SV,getAccTitle:c.iN,setDiagramTitle:c.ke,getDiagramTitle:c.ab,setDiagramId:Y,setDisplayMode:et,getDisplayMode:rt,setAccDescription:c.EI,getAccDescription:c.m7,addSection:ct,getSections:ut,getTasks:ht,addTask:wt,findTaskById:St,addTaskOrg:Ft,setIncludes:nt,getIncludes:at,setExcludes:ot,getExcludes:st,setClickEvent:Ot,setLink:Bt,getLinks:lt,bindFunctions:Mt,parseDuration:xt,isInvalidDate:dt,setWeekday:pt,getWeekday:gt,setWeekend:ft};function Kt(t,e,r){for(var i=!0;i;)i=!1,r.forEach(function(r){var n=new RegExp("^\\s*"+r+"\\s*$");t[0].match(n)&&(e[r]=!0,t.shift(1),i=!0)})}(0,u.K2)(Kt,"getTaskTags"),d.extend(y);var Pt,qt=(0,u.K2)(function(){u.Rm.debug("Something is calling, setConf, remove the call")},"setConf"),zt={monday:m.ABi,tuesday:m.PGu,wednesday:m.GuW,thursday:m.Mol,friday:m.TUC,saturday:m.rGn,sunday:m.YPH},Wt=(0,u.K2)(function(t,e){var r,i=(0,n.A)(t).map(function(){return-1/0}),o=(0,n.A)(t).sort(function(t,e){return t.startTime-e.startTime||t.order-e.order}),s=0,l=(0,a.A)(o);try{for(l.s();!(r=l.n()).done;)for(var c=r.value,u=0;u<i.length;u++)if(c.startTime>=i[u]){i[u]=c.endTime,c.order=u+e,u>s&&(s=u);break}}catch(t){l.e(t)}finally{l.f()}return s},"getMaxIntersections"),Yt=1e4,$t={parser:x,db:Nt,renderer:{setConf:qt,draw:(0,u.K2)(function(t,e,r,o){var l=(0,c.D7)().gantt;o.db.setDiagramId(e);var h,p=(0,c.D7)().securityLevel;"sandbox"===p&&(h=(0,m.Ltv)("#i"+e));var g="sandbox"===p?(0,m.Ltv)(h.nodes()[0].contentDocument.body):(0,m.Ltv)("body"),f="sandbox"===p?h.nodes()[0].contentDocument:document,y=f.getElementById(e);void 0===(Pt=y.parentElement.offsetWidth)&&(Pt=1200),void 0!==l.useWidth&&(Pt=l.useWidth);var v,x=o.db.getTasks(),b=[],k=(0,a.A)(x);try{for(k.s();!(v=k.n()).done;){var C=v.value;b.push(C.type)}}catch(t){k.e(t)}finally{k.f()}b=H(b);var A={},D=2*l.topPadding;if("compact"===o.db.getDisplayMode()||"compact"===l.displayMode){var E,T={},w=(0,a.A)(x);try{for(w.s();!(E=w.n()).done;){var S=E.value;void 0===T[S.section]?T[S.section]=[S]:T[S.section].push(S)}}catch(t){w.e(t)}finally{w.f()}for(var F=0,_=0,B=Object.keys(T);_<B.length;_++){var L=B[_],I=Wt(T[L],F)+1;F+=I,D+=I*(l.barHeight+l.barGap),A[L]=I}}else{D+=x.length*(l.barHeight+l.barGap);var R,O=(0,a.A)(b);try{var M=function(){var t=R.value;A[t]=x.filter(function(e){return e.type===t}).length};for(O.s();!(R=O.n()).done;)M()}catch(t){O.e(t)}finally{O.f()}}y.setAttribute("viewBox","0 0 "+Pt+" "+D);var N=g.select('[id="'.concat(e,'"]')),K=(0,m.w7C)().domain([(0,m.jkA)(x,function(t){return t.startTime}),(0,m.T9B)(x,function(t){return t.endTime})]).rangeRound([0,Pt-l.leftPadding-l.rightPadding]);function P(t,e){var r=t.startTime,i=e.startTime,n=0;return r>i?n=1:r<i&&(n=-1),n}function q(t,e,r){var i=l.barHeight,n=i+l.barGap,a=l.topPadding,s=l.leftPadding,c=(0,m.m4Y)().domain([0,b.length]).range(["#00B9FA","#F95002"]).interpolate(m.bEH);W(n,a,s,e,r,t,o.db.getExcludes(),o.db.getIncludes()),$(s,a,e,r),z(t,n,a,s,i,c,e),j(n,a),U(s,a,e,r)}function z(t,r,i,u,h,d,p){t.sort(function(t,e){return t.vert===e.vert?0:t.vert?1:-1});var g=(0,n.A)(new Set(t.map(function(t){return t.order}))).map(function(e){return t.find(function(t){return t.order===e})});N.append("g").selectAll("rect").data(g).enter().append("rect").attr("x",0).attr("y",function(t,e){return t.order*r+i-2}).attr("width",function(){return p-l.rightPadding/2}).attr("height",r).attr("class",function(t){var e,r=(0,a.A)(b.entries());try{for(r.s();!(e=r.n()).done;){var i=(0,s.A)(e.value,2),n=i[0],o=i[1];if(t.type===o)return"section section"+n%l.numberSectionStyles}}catch(t){r.e(t)}finally{r.f()}return"section section0"}).enter();var f=N.append("g").selectAll("rect").data(t).enter(),y=o.db.getLinks();if(f.append("rect").attr("id",function(t){return e+"-"+t.id}).attr("rx",3).attr("ry",3).attr("x",function(t){return t.milestone?K(t.startTime)+u+.5*(K(t.endTime)-K(t.startTime))-.5*h:K(t.startTime)+u}).attr("y",function(t,e){return e=t.order,t.vert?l.gridLineStartPadding:e*r+i}).attr("width",function(t){return t.milestone?h:t.vert?.08*h:K(t.renderEndTime||t.endTime)-K(t.startTime)}).attr("height",function(t){return t.vert?x.length*(l.barHeight+l.barGap)+2*l.barHeight:h}).attr("transform-origin",function(t,e){return e=t.order,(K(t.startTime)+u+.5*(K(t.endTime)-K(t.startTime))).toString()+"px "+(e*r+i+.5*h).toString()+"px"}).attr("class",function(t){var e="";t.classes.length>0&&(e=t.classes.join(" "));var r,i=0,n=(0,a.A)(b.entries());try{for(n.s();!(r=n.n()).done;){var o=(0,s.A)(r.value,2),c=o[0],u=o[1];t.type===u&&(i=c%l.numberSectionStyles)}}catch(t){n.e(t)}finally{n.f()}var h="";return t.active?t.crit?h+=" activeCrit":h=" active":t.done?h=t.crit?" doneCrit":" done":t.crit&&(h+=" crit"),0===h.length&&(h=" task"),t.milestone&&(h=" milestone "+h),t.vert&&(h=" vert "+h),h+=i,"task"+(h+=" "+e)}),f.append("text").attr("id",function(t){return e+"-"+t.id+"-text"}).text(function(t){return t.task}).attr("font-size",l.fontSize).attr("x",function(t){var e=K(t.startTime),r=K(t.renderEndTime||t.endTime);if(t.milestone&&(r=(e+=.5*(K(t.endTime)-K(t.startTime))-.5*h)+h),t.vert)return K(t.startTime)+u;var i=this.getBBox().width;return i>r-e?r+i+1.5*l.leftPadding>p?e+u-5:r+u+5:(r-e)/2+e+u}).attr("y",function(t,e){return t.vert?l.gridLineStartPadding+x.length*(l.barHeight+l.barGap)+60:t.order*r+l.barHeight/2+(l.fontSize/2-2)+i}).attr("text-height",h).attr("class",function(t){var e=K(t.startTime),r=K(t.endTime);t.milestone&&(r=e+h);var i=this.getBBox().width,n="";t.classes.length>0&&(n=t.classes.join(" "));var o,c=0,u=(0,a.A)(b.entries());try{for(u.s();!(o=u.n()).done;){var d=(0,s.A)(o.value,2),g=d[0],f=d[1];t.type===f&&(c=g%l.numberSectionStyles)}}catch(t){u.e(t)}finally{u.f()}var y="";return t.active&&(y=t.crit?"activeCritText"+c:"activeText"+c),t.done?y=t.crit?y+" doneCritText"+c:y+" doneText"+c:t.crit&&(y=y+" critText"+c),t.milestone&&(y+=" milestoneText"),t.vert&&(y+=" vertText"),i>r-e?r+i+1.5*l.leftPadding>p?n+" taskTextOutsideLeft taskTextOutside"+c+" "+y:n+" taskTextOutsideRight taskTextOutside"+c+" "+y+" width-"+i:n+" taskText taskText"+c+" "+y+" width-"+i}),"sandbox"===(0,c.D7)().securityLevel){var v=(0,m.Ltv)("#i"+e).nodes()[0].contentDocument;f.filter(function(t){return y.has(t.id)}).each(function(t){var r=v.querySelector("#"+CSS.escape(e+"-"+t.id)),i=v.querySelector("#"+CSS.escape(e+"-"+t.id+"-text")),n=r.parentNode,a=v.createElement("a");a.setAttribute("xlink:href",y.get(t.id)),a.setAttribute("target","_top"),n.appendChild(a),a.appendChild(r),a.appendChild(i)})}}function W(t,r,i,n,s,c,h,p){if(0!==h.length||0!==p.length){var g,f,y,m=(0,a.A)(c);try{for(m.s();!(y=m.n()).done;){var v=y.value,x=v.startTime,b=v.endTime;(void 0===g||x<g)&&(g=x),(void 0===f||b>f)&&(f=b)}}catch(t){m.e(t)}finally{m.f()}if(g&&f)if(d(f).diff(d(g),"year")>5)u.Rm.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");else{for(var k=o.db.getDateFormat(),C=[],A=null,D=d(g);D.valueOf()<=f;)o.db.isInvalidDate(D,k,h,p)?A?A.end=D:A={start:D,end:D}:A&&(C.push(A),A=null),D=D.add(1,"d");N.append("g").selectAll("rect").data(C).enter().append("rect").attr("id",function(t){return e+"-exclude-"+t.start.format("YYYY-MM-DD")}).attr("x",function(t){return K(t.start.startOf("day"))+i}).attr("y",l.gridLineStartPadding).attr("width",function(t){return K(t.end.endOf("day"))-K(t.start.startOf("day"))}).attr("height",s-r-l.gridLineStartPadding).attr("transform-origin",function(e,r){return(K(e.start)+i+.5*(K(e.end)-K(e.start))).toString()+"px "+(r*t+.5*s).toString()+"px"}).attr("class","exclude-range")}}}function Y(t,e,r,n){if(r<=0||t>e)return 1/0;var a=e-t,o=d.duration((0,i.A)({},null!=n?n:"day",r)).asMilliseconds();return o<=0?1/0:Math.ceil(a/o)}function $(t,e,r,i){var n,a=o.db.getDateFormat(),s=o.db.getAxisFormat();if(s)n=s;else if("D"===a)n="%d";else{var c;n=null!==(c=l.axisFormat)&&void 0!==c?c:"%Y-%m-%d"}var h=(0,m.l78)(K).tickSize(-i+e+l.gridLineStartPadding).tickFormat((0,m.DCK)(n)),d=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(o.db.getTickInterval()||l.tickInterval);if(null!==d){var p=parseInt(d[1],10);if(isNaN(p)||p<=0)u.Rm.warn('Invalid tick interval value: "'.concat(d[1],'". Skipping custom tick interval.'));else{var g=d[2],f=o.db.getWeekday()||l.weekday,y=K.domain(),v=Y(y[0],y[1],p,g);if(v>Yt)u.Rm.warn('The tick interval "'.concat(p).concat(g,'" would generate ').concat(v," ticks, which exceeds the maximum allowed (").concat(Yt,"). This may indicate an invalid date or time range. Skipping custom tick interval."));else switch(g){case"millisecond":h.ticks(m.t6C.every(p));break;case"second":h.ticks(m.ucG.every(p));break;case"minute":h.ticks(m.wXd.every(p));break;case"hour":h.ticks(m.Agd.every(p));break;case"day":h.ticks(m.UAC.every(p));break;case"week":h.ticks(zt[f].every(p));break;case"month":h.ticks(m.Ui6.every(p))}}}if(N.append("g").attr("class","grid").attr("transform","translate("+t+", "+(i-50)+")").call(h).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),o.db.topAxisEnabled()||l.topAxis){var x=(0,m.tlR)(K).tickSize(-i+e+l.gridLineStartPadding).tickFormat((0,m.DCK)(n));if(null!==d){var b=parseInt(d[1],10);if(isNaN(b)||b<=0)u.Rm.warn('Invalid tick interval value: "'.concat(d[1],'". Skipping custom tick interval.'));else{var k=d[2],C=o.db.getWeekday()||l.weekday,A=K.domain();if(Y(A[0],A[1],b,k)<=Yt)switch(k){case"millisecond":x.ticks(m.t6C.every(b));break;case"second":x.ticks(m.ucG.every(b));break;case"minute":x.ticks(m.wXd.every(b));break;case"hour":x.ticks(m.Agd.every(b));break;case"day":x.ticks(m.UAC.every(b));break;case"week":x.ticks(zt[C].every(b));break;case"month":x.ticks(m.Ui6.every(b))}}}N.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(x).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function j(t,e){var r=0,i=Object.keys(A).map(function(t){return[t,A[t]]});N.append("g").selectAll("text").data(i).enter().append(function(t){var e=t[0].split(c.Y2.lineBreakRegex),r=-(e.length-1)/2,i=f.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("dy",r+"em");var n,o=(0,a.A)(e.entries());try{for(o.s();!(n=o.n()).done;){var l=(0,s.A)(n.value,2),u=l[0],h=l[1],d=f.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttribute("alignment-baseline","central"),d.setAttribute("x","10"),u>0&&d.setAttribute("dy","1em"),d.textContent=h,i.appendChild(d)}}catch(t){o.e(t)}finally{o.f()}return i}).attr("x",10).attr("y",function(n,a){if(!(a>0))return n[1]*t/2+e;for(var o=0;o<a;o++)return r+=i[a-1][1],n[1]*t/2+r*t+e}).attr("font-size",l.sectionFontSize).attr("class",function(t){var e,r=(0,a.A)(b.entries());try{for(r.s();!(e=r.n()).done;){var i=(0,s.A)(e.value,2),n=i[0],o=i[1];if(t[0]===o)return"sectionTitle sectionTitle"+n%l.numberSectionStyles}}catch(t){r.e(t)}finally{r.f()}return"sectionTitle"})}function U(t,e,r,i){var n=o.db.getTodayMarker();if("off"!==n){var a=N.append("g").attr("class","today"),s=new Date,c=a.append("line");c.attr("x1",K(s)+t).attr("x2",K(s)+t).attr("y1",l.titleTopMargin).attr("y2",i-l.titleTopMargin).attr("class","today"),""!==n&&c.attr("style",n.replace(/,/g,";"))}}function H(t){for(var e={},r=[],i=0,n=t.length;i<n;++i)Object.prototype.hasOwnProperty.call(e,t[i])||(e[t[i]]=!0,r.push(t[i]));return r}(0,u.K2)(P,"taskCompare"),x.sort(P),q(x,Pt,D),(0,c.a$)(N,D,Pt,l.useMaxWidth),N.append("text").text(o.db.getDiagramTitle()).attr("x",Pt/2).attr("y",l.titleTopMargin).attr("class","titleText"),(0,u.K2)(q,"makeGantt"),(0,u.K2)(z,"drawRects"),(0,u.K2)(W,"drawExcludeDays"),(0,u.K2)(Y,"getEstimatedTickCount"),(0,u.K2)($,"makeGrid"),(0,u.K2)(j,"vertLabels"),(0,u.K2)(U,"drawToday"),(0,u.K2)(H,"checkUnique")},"draw")},styles:(0,u.K2)(function(t){return"\n  .mermaid-main-font {\n        font-family: ".concat(t.fontFamily,";\n  }\n\n  .exclude-range {\n    fill: ").concat(t.excludeBkgColor,";\n  }\n\n  .section {\n    stroke: none;\n    opacity: 0.2;\n  }\n\n  .section0 {\n    fill: ").concat(t.sectionBkgColor,";\n  }\n\n  .section2 {\n    fill: ").concat(t.sectionBkgColor2,";\n  }\n\n  .section1,\n  .section3 {\n    fill: ").concat(t.altSectionBkgColor,";\n    opacity: 0.2;\n  }\n\n  .sectionTitle0 {\n    fill: ").concat(t.titleColor,";\n  }\n\n  .sectionTitle1 {\n    fill: ").concat(t.titleColor,";\n  }\n\n  .sectionTitle2 {\n    fill: ").concat(t.titleColor,";\n  }\n\n  .sectionTitle3 {\n    fill: ").concat(t.titleColor,";\n  }\n\n  .sectionTitle {\n    text-anchor: start;\n    font-family: ").concat(t.fontFamily,";\n  }\n\n\n  /* Grid and axis */\n\n  .grid .tick {\n    stroke: ").concat(t.gridColor,";\n    opacity: 0.8;\n    shape-rendering: crispEdges;\n  }\n\n  .grid .tick text {\n    font-family: ").concat(t.fontFamily,";\n    fill: ").concat(t.textColor,";\n  }\n\n  .grid path {\n    stroke-width: 0;\n  }\n\n\n  /* Today line */\n\n  .today {\n    fill: none;\n    stroke: ").concat(t.todayLineColor,";\n    stroke-width: 2px;\n  }\n\n\n  /* Task styling */\n\n  /* Default task */\n\n  .task {\n    stroke-width: 2;\n  }\n\n  .taskText {\n    text-anchor: middle;\n    font-family: ").concat(t.fontFamily,";\n  }\n\n  .taskTextOutsideRight {\n    fill: ").concat(t.taskTextDarkColor,";\n    text-anchor: start;\n    font-family: ").concat(t.fontFamily,";\n  }\n\n  .taskTextOutsideLeft {\n    fill: ").concat(t.taskTextDarkColor,";\n    text-anchor: end;\n  }\n\n\n  /* Special case clickable */\n\n  .task.clickable {\n    cursor: pointer;\n  }\n\n  .taskText.clickable {\n    cursor: pointer;\n    fill: ").concat(t.taskTextClickableColor," !important;\n    font-weight: bold;\n  }\n\n  .taskTextOutsideLeft.clickable {\n    cursor: pointer;\n    fill: ").concat(t.taskTextClickableColor," !important;\n    font-weight: bold;\n  }\n\n  .taskTextOutsideRight.clickable {\n    cursor: pointer;\n    fill: ").concat(t.taskTextClickableColor," !important;\n    font-weight: bold;\n  }\n\n\n  /* Specific task settings for the sections*/\n\n  .taskText0,\n  .taskText1,\n  .taskText2,\n  .taskText3 {\n    fill: ").concat(t.taskTextColor,";\n  }\n\n  .task0,\n  .task1,\n  .task2,\n  .task3 {\n    fill: ").concat(t.taskBkgColor,";\n    stroke: ").concat(t.taskBorderColor,";\n  }\n\n  .taskTextOutside0,\n  .taskTextOutside2\n  {\n    fill: ").concat(t.taskTextOutsideColor,";\n  }\n\n  .taskTextOutside1,\n  .taskTextOutside3 {\n    fill: ").concat(t.taskTextOutsideColor,";\n  }\n\n\n  /* Active task */\n\n  .active0,\n  .active1,\n  .active2,\n  .active3 {\n    fill: ").concat(t.activeTaskBkgColor,";\n    stroke: ").concat(t.activeTaskBorderColor,";\n  }\n\n  .activeText0,\n  .activeText1,\n  .activeText2,\n  .activeText3 {\n    fill: ").concat(t.taskTextDarkColor," !important;\n  }\n\n\n  /* Completed task */\n\n  .done0,\n  .done1,\n  .done2,\n  .done3 {\n    stroke: ").concat(t.doneTaskBorderColor,";\n    fill: ").concat(t.doneTaskBkgColor,";\n    stroke-width: 2;\n  }\n\n  .doneText0,\n  .doneText1,\n  .doneText2,\n  .doneText3 {\n    fill: ").concat(t.taskTextDarkColor," !important;\n  }\n\n  /* Done task text displayed outside the bar sits against the diagram background,\n     not against the done-task bar, so it must use the outside/contrast color. */\n  .doneText0.taskTextOutsideLeft,\n  .doneText0.taskTextOutsideRight,\n  .doneText1.taskTextOutsideLeft,\n  .doneText1.taskTextOutsideRight,\n  .doneText2.taskTextOutsideLeft,\n  .doneText2.taskTextOutsideRight,\n  .doneText3.taskTextOutsideLeft,\n  .doneText3.taskTextOutsideRight {\n    fill: ").concat(t.taskTextOutsideColor," !important;\n  }\n\n\n  /* Tasks on the critical line */\n\n  .crit0,\n  .crit1,\n  .crit2,\n  .crit3 {\n    stroke: ").concat(t.critBorderColor,";\n    fill: ").concat(t.critBkgColor,";\n    stroke-width: 2;\n  }\n\n  .activeCrit0,\n  .activeCrit1,\n  .activeCrit2,\n  .activeCrit3 {\n    stroke: ").concat(t.critBorderColor,";\n    fill: ").concat(t.activeTaskBkgColor,";\n    stroke-width: 2;\n  }\n\n  .doneCrit0,\n  .doneCrit1,\n  .doneCrit2,\n  .doneCrit3 {\n    stroke: ").concat(t.critBorderColor,";\n    fill: ").concat(t.doneTaskBkgColor,";\n    stroke-width: 2;\n    cursor: pointer;\n    shape-rendering: crispEdges;\n  }\n\n  .milestone {\n    transform: rotate(45deg) scale(0.8,0.8);\n  }\n\n  .milestoneText {\n    font-style: italic;\n  }\n  .doneCritText0,\n  .doneCritText1,\n  .doneCritText2,\n  .doneCritText3 {\n    fill: ").concat(t.taskTextDarkColor," !important;\n  }\n\n  /* Done-crit task text outside the bar — same reasoning as doneText above. */\n  .doneCritText0.taskTextOutsideLeft,\n  .doneCritText0.taskTextOutsideRight,\n  .doneCritText1.taskTextOutsideLeft,\n  .doneCritText1.taskTextOutsideRight,\n  .doneCritText2.taskTextOutsideLeft,\n  .doneCritText2.taskTextOutsideRight,\n  .doneCritText3.taskTextOutsideLeft,\n  .doneCritText3.taskTextOutsideRight {\n    fill: ").concat(t.taskTextOutsideColor," !important;\n  }\n\n  .vert {\n    stroke: ").concat(t.vertLineColor,";\n  }\n\n  .vertText {\n    font-size: 15px;\n    text-anchor: middle;\n    fill: ").concat(t.vertLineColor," !important;\n  }\n\n  .activeCritText0,\n  .activeCritText1,\n  .activeCritText2,\n  .activeCritText3 {\n    fill: ").concat(t.taskTextDarkColor," !important;\n  }\n\n  .titleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ").concat(t.titleColor||t.textColor,";\n    font-family: ").concat(t.fontFamily,";\n  }\n")},"getStyles")}},78142:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return Ot}});var i=r(20908),n=r(30388),a=r(3604),o=r(74721),s=r(41034),l=(r(74423),r(17362)),c=r(3755),u=r(34539),h=r(40985),d=r(68548),p=r(79510),g=r(63219),f={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},y=h.UI.gitGraph,m=(0,d.K2)(function(){return(0,u.$t)((0,s.A)((0,s.A)({},y),(0,h.zj)().gitGraph))},"getConfig"),v=new c.m(function(){var t=m(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function x(){return(0,u.yT)({length:7})}function b(t,e){var r=Object.create(null);return t.reduce(function(t,i){var n=e(i);return r[n]||(r[n]=!0,t.push(i)),t},[])}(0,d.K2)(x,"getID"),(0,d.K2)(b,"uniqBy");var k=(0,d.K2)(function(t){v.records.direction=t},"setDirection"),C=(0,d.K2)(function(t){var e;d.Rm.debug("options str",t),t=(t=null===(e=t)||void 0===e?void 0:e.trim())||"{}";try{v.records.options=JSON.parse(t)}catch(t){d.Rm.error("error while parsing gitGraph options",t.message)}},"setOptions"),A=(0,d.K2)(function(){return v.records.options},"getOptions"),D=(0,d.K2)(function(t){var e,r=t.msg,i=t.id,n=t.type,a=t.tags;d.Rm.info("commit",r,i,n,a),d.Rm.debug("Entering commit:",r,i,n,a);var o=m();i=h.Y2.sanitizeText(i,o),r=h.Y2.sanitizeText(r,o),a=null===(e=a)||void 0===e?void 0:e.map(function(t){return h.Y2.sanitizeText(t,o)});var s={id:i||v.records.seq+"-"+x(),message:r,seq:v.records.seq++,type:null!=n?n:f.NORMAL,tags:null!=a?a:[],parents:null==v.records.head?[]:[v.records.head.id],branch:v.records.currBranch};v.records.head=s,d.Rm.info("main branch",o.mainBranchName),v.records.commits.has(s.id)&&d.Rm.warn("Commit ID ".concat(s.id," already exists")),v.records.commits.set(s.id,s),v.records.branches.set(v.records.currBranch,s.id),d.Rm.debug("in pushCommit "+s.id)},"commit"),E=(0,d.K2)(function(t){var e=t.name,r=t.order;if(e=h.Y2.sanitizeText(e,m()),v.records.branches.has(e))throw new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '.concat(e,'")'));v.records.branches.set(e,null!=v.records.head?v.records.head.id:null),v.records.branchConfig.set(e,{name:e,order:r}),S(e),d.Rm.debug("in createBranch")},"branch"),T=(0,d.K2)(function(t){var e=t.branch,r=t.id,i=t.type,n=t.tags,a=m();e=h.Y2.sanitizeText(e,a),r&&(r=h.Y2.sanitizeText(r,a));var o=v.records.branches.get(v.records.currBranch),s=v.records.branches.get(e),l=o?v.records.commits.get(o):void 0,c=s?v.records.commits.get(s):void 0;if(l&&c&&l.branch===e)throw new Error("Cannot merge branch '".concat(e,"' into itself."));if(v.records.currBranch===e){var u=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw u.hash={text:"merge ".concat(e),token:"merge ".concat(e),expected:["branch abc"]},u}if(void 0===l||!l){var p=new Error('Incorrect usage of "merge". Current branch ('.concat(v.records.currBranch,")has no commits"));throw p.hash={text:"merge ".concat(e),token:"merge ".concat(e),expected:["commit"]},p}if(!v.records.branches.has(e)){var g=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw g.hash={text:"merge ".concat(e),token:"merge ".concat(e),expected:["branch ".concat(e)]},g}if(void 0===c||!c){var y=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw y.hash={text:"merge ".concat(e),token:"merge ".concat(e),expected:['"commit"']},y}if(l===c){var b=new Error('Incorrect usage of "merge". Both branches have same head');throw b.hash={text:"merge ".concat(e),token:"merge ".concat(e),expected:["branch abc"]},b}if(r&&v.records.commits.has(r)){var k=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw k.hash={text:"merge ".concat(e," ").concat(r," ").concat(i," ").concat(null==n?void 0:n.join(" ")),token:"merge ".concat(e," ").concat(r," ").concat(i," ").concat(null==n?void 0:n.join(" ")),expected:["merge ".concat(e," ").concat(r,"_UNIQUE ").concat(i," ").concat(null==n?void 0:n.join(" "))]},k}var C=s||"",A={id:r||"".concat(v.records.seq,"-").concat(x()),message:"merged branch ".concat(e," into ").concat(v.records.currBranch),seq:v.records.seq++,parents:null==v.records.head?[]:[v.records.head.id,C],branch:v.records.currBranch,type:f.MERGE,customType:i,customId:!!r,tags:null!=n?n:[]};v.records.head=A,v.records.commits.set(A.id,A),v.records.branches.set(v.records.currBranch,A.id),d.Rm.debug(v.records.branches),d.Rm.debug("in mergeBranch")},"merge"),w=(0,d.K2)(function(t){var e,r=t.id,i=t.targetId,n=t.tags,a=t.parent;d.Rm.debug("Entering cherryPick:",r,i,n);var o=m();if(r=h.Y2.sanitizeText(r,o),i=h.Y2.sanitizeText(i,o),n=null===(e=n)||void 0===e?void 0:e.map(function(t){return h.Y2.sanitizeText(t,o)}),a=h.Y2.sanitizeText(a,o),!r||!v.records.commits.has(r)){var s=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw s.hash={text:"cherryPick ".concat(r," ").concat(i),token:"cherryPick ".concat(r," ").concat(i),expected:["cherry-pick abc"]},s}var l=v.records.commits.get(r);if(void 0===l||!l)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(a&&(!Array.isArray(l.parents)||!l.parents.includes(a)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");var c=l.branch;if(l.type===f.MERGE&&!a)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!i||!v.records.commits.has(i)){if(c===v.records.currBranch){var u=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw u.hash={text:"cherryPick ".concat(r," ").concat(i),token:"cherryPick ".concat(r," ").concat(i),expected:["cherry-pick abc"]},u}var p=v.records.branches.get(v.records.currBranch);if(void 0===p||!p){var g=new Error('Incorrect usage of "cherry-pick". Current branch ('.concat(v.records.currBranch,")has no commits"));throw g.hash={text:"cherryPick ".concat(r," ").concat(i),token:"cherryPick ".concat(r," ").concat(i),expected:["cherry-pick abc"]},g}var y=v.records.commits.get(p);if(void 0===y||!y){var b=new Error('Incorrect usage of "cherry-pick". Current branch ('.concat(v.records.currBranch,")has no commits"));throw b.hash={text:"cherryPick ".concat(r," ").concat(i),token:"cherryPick ".concat(r," ").concat(i),expected:["cherry-pick abc"]},b}var k={id:v.records.seq+"-"+x(),message:"cherry-picked ".concat(null==l?void 0:l.message," into ").concat(v.records.currBranch),seq:v.records.seq++,parents:null==v.records.head?[]:[v.records.head.id,l.id],branch:v.records.currBranch,type:f.CHERRY_PICK,tags:n?n.filter(Boolean):["cherry-pick:".concat(l.id).concat(l.type===f.MERGE?"|parent:".concat(a):"")]};v.records.head=k,v.records.commits.set(k.id,k),v.records.branches.set(v.records.currBranch,k.id),d.Rm.debug(v.records.branches),d.Rm.debug("in cherryPick")}},"cherryPick"),S=(0,d.K2)(function(t){if(t=h.Y2.sanitizeText(t,m()),!v.records.branches.has(t)){var e=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '.concat(t,'")'));throw e.hash={text:"checkout ".concat(t),token:"checkout ".concat(t),expected:["branch ".concat(t)]},e}v.records.currBranch=t;var r,i=v.records.branches.get(v.records.currBranch);v.records.head=void 0!==i&&i&&null!==(r=v.records.commits.get(i))&&void 0!==r?r:null},"checkout");function F(t,e,r){var i=t.indexOf(e);-1===i?t.push(r):t.splice(i,1,r)}function _(t){var e=t.reduce(function(t,e){return t.seq>e.seq?t:e},t[0]),r="";t.forEach(function(t){r+=t===e?"\t*":"\t|"});var i=[r,e.id,e.seq];for(var n in v.records.branches)v.records.branches.get(n)===e.id&&i.push(n);if(d.Rm.debug(i.join(" ")),e.parents&&2==e.parents.length&&e.parents[0]&&e.parents[1]){var a=v.records.commits.get(e.parents[0]);F(t,e,a),e.parents[1]&&t.push(v.records.commits.get(e.parents[1]))}else{if(0==e.parents.length)return;if(e.parents[0]){var o=v.records.commits.get(e.parents[0]);F(t,e,o)}}_(t=b(t,function(t){return t.id}))}(0,d.K2)(F,"upsert"),(0,d.K2)(_,"prettyPrintCommitHistory");var B=(0,d.K2)(function(){d.Rm.debug(v.records.commits),_([M()[0]])},"prettyPrint"),L=(0,d.K2)(function(){v.reset(),(0,h.IU)()},"clear"),I=(0,d.K2)(function(){return(0,o.A)(v.records.branchConfig.values()).map(function(t,e){return null!==t.order&&void 0!==t.order?t:(0,s.A)((0,s.A)({},t),{},{order:parseFloat("0.".concat(e))})}).sort(function(t,e){var r,i;return(null!==(r=t.order)&&void 0!==r?r:0)-(null!==(i=e.order)&&void 0!==i?i:0)}).map(function(t){return{name:t.name}})},"getBranchesAsObjArray"),R=(0,d.K2)(function(){return v.records.branches},"getBranches"),O=(0,d.K2)(function(){return v.records.commits},"getCommits"),M=(0,d.K2)(function(){var t=(0,o.A)(v.records.commits.values());return t.forEach(function(t){d.Rm.debug(t.id)}),t.sort(function(t,e){return t.seq-e.seq}),t},"getCommitsArray"),N={commitType:f,getConfig:m,setDirection:k,setOptions:C,getOptions:A,commit:D,branch:E,merge:T,cherryPick:w,checkout:S,prettyPrint:B,clear:L,getBranchesAsObjArray:I,getBranches:R,getCommits:O,getCommitsArray:M,getCurrentBranch:(0,d.K2)(function(){return v.records.currBranch},"getCurrentBranch"),getDirection:(0,d.K2)(function(){return v.records.direction},"getDirection"),getHead:(0,d.K2)(function(){return v.records.head},"getHead"),setAccTitle:h.SV,getAccTitle:h.iN,getAccDescription:h.m7,setAccDescription:h.EI,setDiagramTitle:h.ke,getDiagramTitle:h.ab},K=(0,d.K2)(function(t,e){(0,l.S)(t,e),t.dir&&e.setDirection(t.dir);var r,i=(0,a.A)(t.statements);try{for(i.s();!(r=i.n()).done;){var n=r.value;P(n,e)}}catch(t){i.e(t)}finally{i.f()}},"populate"),P=(0,d.K2)(function(t,e){var r={Commit:(0,d.K2)(function(t){return e.commit(q(t))},"Commit"),Branch:(0,d.K2)(function(t){return e.branch(z(t))},"Branch"),Merge:(0,d.K2)(function(t){return e.merge(W(t))},"Merge"),Checkout:(0,d.K2)(function(t){return e.checkout(Y(t))},"Checkout"),CherryPicking:(0,d.K2)(function(t){return e.cherryPick($(t))},"CherryPicking")}[t.$type];r?r(t):d.Rm.error("Unknown statement type: ".concat(t.$type))},"parseStatement"),q=(0,d.K2)(function(t){var e,r;return{id:t.id,msg:null!==(e=t.message)&&void 0!==e?e:"",type:void 0!==t.type?f[t.type]:f.NORMAL,tags:null!==(r=t.tags)&&void 0!==r?r:void 0}},"parseCommit"),z=(0,d.K2)(function(t){var e;return{name:t.name,order:null!==(e=t.order)&&void 0!==e?e:0}},"parseBranch"),W=(0,d.K2)(function(t){var e,r;return{branch:t.branch,id:null!==(e=t.id)&&void 0!==e?e:"",type:void 0!==t.type?f[t.type]:void 0,tags:null!==(r=t.tags)&&void 0!==r?r:void 0}},"parseMerge"),Y=(0,d.K2)(function(t){return t.branch},"parseCheckout"),$=(0,d.K2)(function(t){var e;return{id:t.id,targetId:"",tags:0===(null===(e=t.tags)||void 0===e?void 0:e.length)?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),j={parse:(0,d.K2)(function(){var t=(0,n.A)((0,i.A)().m(function t(e){var r;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,(0,p.qg)("gitGraph",e);case 1:r=t.v,d.Rm.debug(r),K(r,N);case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),"parse")},U=10,H=40,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),G=new Set(["redux-color","redux-dark-color"]),X=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Z=(0,d.K2)(function(t,e){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&t>0?(t-1)%(e-1)+1:t%e},"calcColorIndex"),Q=new Map,J=new Map,tt=new Map,et=[],rt=0,it="LR",nt=(0,d.K2)(function(){Q.clear(),J.clear(),tt.clear(),rt=0,et=[],it="LR"},"clear"),at=(0,d.K2)(function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(function(t){var r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=t.trim(),e.appendChild(r)}),e},"drawText"),ot=(0,d.K2)(function(t){var e,r,i;return"BT"===it?(r=(0,d.K2)(function(t,e){return t<=e},"comparisonFunc"),i=1/0):(r=(0,d.K2)(function(t,e){return t>=e},"comparisonFunc"),i=0),t.forEach(function(t){var n,a,o="TB"===it||"BT"==it?null===(n=J.get(t))||void 0===n?void 0:n.y:null===(a=J.get(t))||void 0===a?void 0:a.x;void 0!==o&&r(o,i)&&(e=t,i=o)}),e},"findClosestParent"),st=(0,d.K2)(function(t){var e="",r=1/0;return t.forEach(function(t){var i=J.get(t).y;i<=r&&(e=t,r=i)}),e||void 0},"findClosestParentBT"),lt=(0,d.K2)(function(t,e,r){var i=r,n=r,a=[];t.forEach(function(t){var r=e.get(t);if(!r)throw new Error("Commit not found for key ".concat(t));r.parents.length?(i=ut(r),n=Math.max(i,n)):a.push(r),ht(r,i)}),i=n,a.forEach(function(t){dt(t,i,r)}),t.forEach(function(t){var r=e.get(t);if(null!=r&&r.parents.length){var a=st(r.parents);(i=J.get(a).y-H)<=n&&(n=i);var o=Q.get(r.branch).pos,s=i-U;J.set(r.id,{x:o,y:s})}})},"setParallelBTPos"),ct=(0,d.K2)(function(t){var e,r=ot(t.parents.filter(function(t){return null!==t}));if(!r)throw new Error("Closest parent not found for commit ".concat(t.id));var i=null===(e=J.get(r))||void 0===e?void 0:e.y;if(void 0===i)throw new Error("Closest parent position not found for commit ".concat(t.id));return i},"findClosestParentPos"),ut=(0,d.K2)(function(t){return ct(t)+H},"calculateCommitPosition"),ht=(0,d.K2)(function(t,e){var r=Q.get(t.branch);if(!r)throw new Error("Branch not found for commit ".concat(t.id));var i=r.pos,n=e+U;return J.set(t.id,{x:i,y:n}),{x:i,y:n}},"setCommitPosition"),dt=(0,d.K2)(function(t,e,r){var i=Q.get(t.branch);if(!i)throw new Error("Branch not found for commit ".concat(t.id));var n=e+r,a=i.pos;J.set(t.id,{x:a,y:n})},"setRootPosition"),pt=(0,d.K2)(function(t,e,r,i,n,a){var o=(0,h.D7)().theme,s=V.has(null!=o?o:""),l=G.has(null!=o?o:""),c=X.has(null!=o?o:"");if(a===f.HIGHLIGHT)t.append("rect").attr("x",r.x-10+(s?3:0)).attr("y",r.y-10+(s?3:0)).attr("width",s?14:20).attr("height",s?14:20).attr("class","commit ".concat(e.id," commit-highlight").concat(Z(n,8,l)," ").concat(i,"-outer")),t.append("rect").attr("x",r.x-6+(s?2:0)).attr("y",r.y-6+(s?2:0)).attr("width",s?8:12).attr("height",s?8:12).attr("class","commit ".concat(e.id," commit").concat(Z(n,8,l)," ").concat(i,"-inner"));else if(a===f.CHERRY_PICK)t.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",s?7:10).attr("class","commit ".concat(e.id," ").concat(i)),t.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",s?2.5:2.75).attr("fill",c?"#000000":"#fff").attr("class","commit ".concat(e.id," ").concat(i)),t.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",s?2.5:2.75).attr("fill",c?"#000000":"#fff").attr("class","commit ".concat(e.id," ").concat(i)),t.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",c?"#000000":"#fff").attr("class","commit ".concat(e.id," ").concat(i)),t.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",c?"#000000":"#fff").attr("class","commit ".concat(e.id," ").concat(i));else{var u=t.append("circle");if(u.attr("cx",r.x),u.attr("cy",r.y),u.attr("r",s?7:10),u.attr("class","commit ".concat(e.id," commit").concat(Z(n,8,l))),a===f.MERGE){var d=t.append("circle");d.attr("cx",r.x),d.attr("cy",r.y),d.attr("r",s?5:6),d.attr("class","commit ".concat(i," ").concat(e.id," commit").concat(Z(n,8,l)))}if(a===f.REVERSE){var p=s?4:5;t.append("path").attr("d","M ".concat(r.x-p,",").concat(r.y-p,"L").concat(r.x+p,",").concat(r.y+p,"M").concat(r.x-p,",").concat(r.y+p,"L").concat(r.x+p,",").concat(r.y-p)).attr("class","commit ".concat(i," ").concat(e.id," commit").concat(Z(n,8,l)))}}},"drawCommitBullet"),gt=(0,d.K2)(function(t,e,r,i,n){if(e.type!==f.CHERRY_PICK&&(e.customId&&e.type===f.MERGE||e.type!==f.MERGE)&&n.showCommitLabel){var a,o=t.append("g"),s=o.insert("rect").attr("class","commit-label-bkg"),l=o.append("text").attr("x",i).attr("y",r.y+25).attr("class","commit-label").text(e.id),c=null===(a=l.node())||void 0===a?void 0:a.getBBox();if(c&&(s.attr("x",r.posWithOffset-c.width/2-2).attr("y",r.y+13.5).attr("width",c.width+4).attr("height",c.height+4),"TB"===it||"BT"===it?(s.attr("x",r.x-(c.width+16+5)).attr("y",r.y-12),l.attr("x",r.x-(c.width+16)).attr("y",r.y+c.height-12)):l.attr("x",r.posWithOffset-c.width/2),n.rotateCommitLabel))if("TB"===it||"BT"===it)l.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),s.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{var u=-7.5-(c.width+10)/25*9.5,h=10+c.width/25*8.5;o.attr("transform","translate("+u+", "+h+") rotate(-45, "+i+", "+r.y+")")}}},"drawCommitLabel"),ft=(0,d.K2)(function(t,e,r,i){if(e.tags.length>0){var n,o=0,s=0,l=0,c=[],u=(0,a.A)(e.tags.reverse());try{for(u.s();!(n=u.n()).done;){var h,d=n.value,p=t.insert("polygon"),g=t.append("circle"),f=t.append("text").attr("y",r.y-16-o).attr("class","tag-label").text(d),y=null===(h=f.node())||void 0===h?void 0:h.getBBox();if(!y)throw new Error("Tag bbox not found");s=Math.max(s,y.width),l=Math.max(l,y.height),f.attr("x",r.posWithOffset-y.width/2),c.push({tag:f,hole:g,rect:p,yOffset:o}),o+=20}}catch(t){u.e(t)}finally{u.f()}for(var m=0,v=c;m<v.length;m++){var x=v[m],b=x.tag,k=x.hole,C=x.rect,A=x.yOffset,D=l/2,E=r.y-19.2-A;if(C.attr("class","tag-label-bkg").attr("points","\n      ".concat(i-s/2-2,",").concat(E+2,"  \n      ").concat(i-s/2-2,",").concat(E-2,"\n      ").concat(r.posWithOffset-s/2-4,",").concat(E-D-2,"\n      ").concat(r.posWithOffset+s/2+4,",").concat(E-D-2,"\n      ").concat(r.posWithOffset+s/2+4,",").concat(E+D+2,"\n      ").concat(r.posWithOffset-s/2-4,",").concat(E+D+2)),k.attr("cy",E).attr("cx",i-s/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===it||"BT"===it){var T=i+A;C.attr("class","tag-label-bkg").attr("points","\n        ".concat(r.x,",").concat(T+2,"\n        ").concat(r.x,",").concat(T-2,"\n        ").concat(r.x+U,",").concat(T-D-2,"\n        ").concat(r.x+U+s+4,",").concat(T-D-2,"\n        ").concat(r.x+U+s+4,",").concat(T+D+2,"\n        ").concat(r.x+U,",").concat(T+D+2)).attr("transform","translate(12,12) rotate(45, "+r.x+","+i+")"),k.attr("cx",r.x+2).attr("cy",T).attr("transform","translate(12,12) rotate(45, "+r.x+","+i+")"),b.attr("x",r.x+5).attr("y",T+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+i+")")}}}},"drawCommitTags"),yt=(0,d.K2)(function(t){var e;switch(null!==(e=t.customType)&&void 0!==e?e:t.type){case f.NORMAL:return"commit-normal";case f.REVERSE:return"commit-reverse";case f.HIGHLIGHT:return"commit-highlight";case f.MERGE:return"commit-merge";case f.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),mt=(0,d.K2)(function(t,e,r,i){var n,a={x:0,y:0};if(!(t.parents.length>0))return"TB"===e?30:"BT"===e?(null!==(n=i.get(t.id))&&void 0!==n?n:a).y-H:0;var o=ot(t.parents);if(o){var s,l,c=null!==(s=i.get(o))&&void 0!==s?s:a;return"TB"===e?c.y+H:"BT"===e?(null!==(l=i.get(t.id))&&void 0!==l?l:a).y-H:c.x+H}return 0},"calculatePosition"),vt=(0,d.K2)(function(t,e,r){var i,n,a,o="BT"===it&&r?e:e+U,s=null===(i=Q.get(t.branch))||void 0===i?void 0:i.pos,l="TB"===it||"BT"===it?null===(n=Q.get(t.branch))||void 0===n?void 0:n.pos:o;if(void 0===l||void 0===s)throw new Error("Position were undefined for commit ".concat(t.id));var c=V.has(null!==(a=(0,h.D7)().theme)&&void 0!==a?a:"");return{x:l,y:"TB"===it||"BT"===it?o:s+(c?7:-2),posWithOffset:o}},"getCommitPosition"),xt=(0,d.K2)(function(t,e,r,i){var n,a=t.append("g").attr("class","commit-bullets"),s=t.append("g").attr("class","commit-labels"),l="TB"===it||"BT"===it?30:0,c=(0,o.A)(e.keys()),u=null!==(n=i.parallelCommits)&&void 0!==n&&n,h=(0,d.K2)(function(t,r){var i,n,a=null===(i=e.get(t))||void 0===i?void 0:i.seq,o=null===(n=e.get(r))||void 0===n?void 0:n.seq;return void 0!==a&&void 0!==o?a-o:0},"sortKeys"),p=c.sort(h);"BT"===it&&(u&&lt(p,e,l),p=p.reverse()),p.forEach(function(t){var n=e.get(t);if(!n)throw new Error("Commit not found for key ".concat(t));u&&(l=mt(n,it,l,J));var o=vt(n,l,u);if(r){var c,h,d,p=yt(n),g=null!==(c=n.customType)&&void 0!==c?c:n.type,f=null!==(h=null===(d=Q.get(n.branch))||void 0===d?void 0:d.index)&&void 0!==h?h:0;pt(a,n,o,p,f,g),gt(s,n,o,l,i),ft(s,n,o,l)}"TB"===it||"BT"===it?J.set(n.id,{x:o.x,y:o.posWithOffset}):J.set(n.id,{x:o.posWithOffset,y:o.y}),(l="BT"===it&&u?l+H:l+H+U)>rt&&(rt=l)})},"drawCommits"),bt=(0,d.K2)(function(t,e,r,i,n){var a=("TB"===it||"BT"===it?r.x<i.x:r.y<i.y)?e.branch:t.branch,s=(0,d.K2)(function(t){return t.branch===a},"isOnBranchToGetCurve"),l=(0,d.K2)(function(r){return r.seq>t.seq&&r.seq<e.seq},"isBetweenCommits");return(0,o.A)(n.values()).some(function(t){return l(t)&&s(t)})},"shouldRerouteArrow"),kt=(0,d.K2)(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=t+Math.abs(t-e)/2;if(r>5)return i;if(et.every(function(t){return Math.abs(t-i)>=10}))return et.push(i),i;var n=Math.abs(t-e);return kt(t,e-n/5,r+1)},"findLane"),Ct=(0,d.K2)(function(t,e,r,i){var n,a=(0,h.D7)().theme,o=G.has(null!=a?a:""),s=J.get(e.id),l=J.get(r.id);if(void 0===s||void 0===l)throw new Error("Commit positions not found for commits ".concat(e.id," and ").concat(r.id));var c,u,d=bt(e,r,s,l,i),p="",g="",y=0,m=0,v=null===(n=Q.get(r.branch))||void 0===n?void 0:n.index;r.type===f.MERGE&&e.id!==r.parents[0]&&(v=null===(c=Q.get(e.branch))||void 0===c?void 0:c.index);if(d){p="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",y=10,m=10;var x,b=s.y<l.y?kt(s.y,l.y):kt(l.y,s.y),k=s.x<l.x?kt(s.x,l.x):kt(l.x,s.x);if("TB"===it)if(s.x<l.x)u="M ".concat(s.x," ").concat(s.y," L ").concat(k-y," ").concat(s.y," ").concat(g," ").concat(k," ").concat(s.y+m," L ").concat(k," ").concat(l.y-y," ").concat(p," ").concat(k+m," ").concat(l.y," L ").concat(l.x," ").concat(l.y);else v=null===(x=Q.get(e.branch))||void 0===x?void 0:x.index,u="M ".concat(s.x," ").concat(s.y," L ").concat(k+y," ").concat(s.y," ").concat(p," ").concat(k," ").concat(s.y+m," L ").concat(k," ").concat(l.y-y," ").concat(g," ").concat(k-m," ").concat(l.y," L ").concat(l.x," ").concat(l.y);else if("BT"===it){var C;if(s.x<l.x)u="M ".concat(s.x," ").concat(s.y," L ").concat(k-y," ").concat(s.y," ").concat(p," ").concat(k," ").concat(s.y-m," L ").concat(k," ").concat(l.y+y," ").concat(g," ").concat(k+m," ").concat(l.y," L ").concat(l.x," ").concat(l.y);else v=null===(C=Q.get(e.branch))||void 0===C?void 0:C.index,u="M ".concat(s.x," ").concat(s.y," L ").concat(k+y," ").concat(s.y," ").concat(g," ").concat(k," ").concat(s.y-m," L ").concat(k," ").concat(l.y+y," ").concat(p," ").concat(k-m," ").concat(l.y," L ").concat(l.x," ").concat(l.y)}else{var A;if(s.y<l.y)u="M ".concat(s.x," ").concat(s.y," L ").concat(s.x," ").concat(b-y," ").concat(p," ").concat(s.x+m," ").concat(b," L ").concat(l.x-y," ").concat(b," ").concat(g," ").concat(l.x," ").concat(b+m," L ").concat(l.x," ").concat(l.y);else v=null===(A=Q.get(e.branch))||void 0===A?void 0:A.index,u="M ".concat(s.x," ").concat(s.y," L ").concat(s.x," ").concat(b+y," ").concat(g," ").concat(s.x+m," ").concat(b," L ").concat(l.x-y," ").concat(b," ").concat(p," ").concat(l.x," ").concat(b-m," L ").concat(l.x," ").concat(l.y)}}else p="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",y=20,m=20,"TB"===it?(s.x<l.x&&(u=r.type===f.MERGE&&e.id!==r.parents[0]?"M ".concat(s.x," ").concat(s.y," L ").concat(s.x," ").concat(l.y-y," ").concat(p," ").concat(s.x+m," ").concat(l.y," L ").concat(l.x," ").concat(l.y):"M ".concat(s.x," ").concat(s.y," L ").concat(l.x-y," ").concat(s.y," ").concat(g," ").concat(l.x," ").concat(s.y+m," L ").concat(l.x," ").concat(l.y)),s.x>l.x&&(p="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",y=20,m=20,u=r.type===f.MERGE&&e.id!==r.parents[0]?"M ".concat(s.x," ").concat(s.y," L ").concat(s.x," ").concat(l.y-y," ").concat(g," ").concat(s.x-m," ").concat(l.y," L ").concat(l.x," ").concat(l.y):"M ".concat(s.x," ").concat(s.y," L ").concat(l.x+y," ").concat(s.y," ").concat(p," ").concat(l.x," ").concat(s.y+m," L ").concat(l.x," ").concat(l.y)),s.x===l.x&&(u="M ".concat(s.x," ").concat(s.y," L ").concat(l.x," ").concat(l.y))):"BT"===it?(s.x<l.x&&(u=r.type===f.MERGE&&e.id!==r.parents[0]?"M ".concat(s.x," ").concat(s.y," L ").concat(s.x," ").concat(l.y+y," ").concat(g," ").concat(s.x+m," ").concat(l.y," L ").concat(l.x," ").concat(l.y):"M ".concat(s.x," ").concat(s.y," L ").concat(l.x-y," ").concat(s.y," ").concat(p," ").concat(l.x," ").concat(s.y-m," L ").concat(l.x," ").concat(l.y)),s.x>l.x&&(p="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",y=20,m=20,u=r.type===f.MERGE&&e.id!==r.parents[0]?"M ".concat(s.x," ").concat(s.y," L ").concat(s.x," ").concat(l.y+y," ").concat(p," ").concat(s.x-m," ").concat(l.y," L ").concat(l.x," ").concat(l.y):"M ".concat(s.x," ").concat(s.y," L ").concat(l.x+y," ").concat(s.y," ").concat(g," ").concat(l.x," ").concat(s.y-m," L ").concat(l.x," ").concat(l.y)),s.x===l.x&&(u="M ".concat(s.x," ").concat(s.y," L ").concat(l.x," ").concat(l.y))):(s.y<l.y&&(u=r.type===f.MERGE&&e.id!==r.parents[0]?"M ".concat(s.x," ").concat(s.y," L ").concat(l.x-y," ").concat(s.y," ").concat(g," ").concat(l.x," ").concat(s.y+m," L ").concat(l.x," ").concat(l.y):"M ".concat(s.x," ").concat(s.y," L ").concat(s.x," ").concat(l.y-y," ").concat(p," ").concat(s.x+m," ").concat(l.y," L ").concat(l.x," ").concat(l.y)),s.y>l.y&&(u=r.type===f.MERGE&&e.id!==r.parents[0]?"M ".concat(s.x," ").concat(s.y," L ").concat(l.x-y," ").concat(s.y," ").concat(p," ").concat(l.x," ").concat(s.y-m," L ").concat(l.x," ").concat(l.y):"M ".concat(s.x," ").concat(s.y," L ").concat(s.x," ").concat(l.y+y," ").concat(g," ").concat(s.x+m," ").concat(l.y," L ").concat(l.x," ").concat(l.y)),s.y===l.y&&(u="M ".concat(s.x," ").concat(s.y," L ").concat(l.x," ").concat(l.y)));if(void 0===u)throw new Error("Line definition not found");t.append("path").attr("d",u).attr("class","arrow arrow"+Z(v,8,o))},"drawArrow"),At=(0,d.K2)(function(t,e){var r=t.append("g").attr("class","commit-arrows");(0,o.A)(e.keys()).forEach(function(t){var i=e.get(t);i.parents&&i.parents.length>0&&i.parents.forEach(function(t){Ct(r,e.get(t),i,e)})})},"drawArrows"),Dt=(0,d.K2)(function(t,e,r,i){var n=(0,h.D7)(),a=n.look,o=n.theme,s=n.themeVariables,l=s.dropShadow,c=s.THEME_COLOR_LIMIT,u=V.has(null!=o?o:""),d=G.has(null!=o?o:""),p=t.append("g");e.forEach(function(t,e){var n,o=Z(e,u?c:8,d),s=null===(n=Q.get(t.name))||void 0===n?void 0:n.pos;if(void 0===s)throw new Error("Position not found for branch ".concat(t.name));var h="TB"===it||"BT"===it?s:u?s+6+1:s-2,g=p.append("line");g.attr("x1",0),g.attr("y1",h),g.attr("x2",rt),g.attr("y2",h),g.attr("class","branch branch"+o),"TB"===it?(g.attr("y1",30),g.attr("x1",s),g.attr("y2",rt),g.attr("x2",s)):"BT"===it&&(g.attr("y1",rt),g.attr("x1",s),g.attr("y2",30),g.attr("x2",s)),et.push(h);var f=t.name,y=at(f),m=p.insert("rect"),v=p.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+o);v.node().appendChild(y);var x=y.getBBox(),b=u?0:4,k=u?16:0,C=u?12:0;"neo"===a&&m.attr("data-look","neo"),m.attr("class","branchLabelBkg label"+o).attr("style","neo"===a?"filter:".concat(u?"url(#".concat(i,"-drop-shadow)"):l):"").attr("rx",b).attr("ry",b).attr("x",-x.width-4-(!0===r.rotateCommitLabel?30:0)).attr("y",-x.height/2+10).attr("width",x.width+18+k).attr("height",x.height+4+C),v.attr("transform","translate("+(-x.width-14-(!0===r.rotateCommitLabel?30:0)+k/2)+", "+(h-x.height/2-2)+")"),"TB"===it?(m.attr("x",s-x.width/2-10).attr("y",0),v.attr("transform","translate("+(s-x.width/2-5)+", 0)"),u&&(m.attr("transform","translate(".concat(-k/2-3,", ").concat(-C-10,")")),v.attr("transform","translate("+(s-x.width/2-5)+", "+(2*-C+7)+")"))):"BT"===it?(m.attr("x",s-x.width/2-10).attr("y",rt),v.attr("transform","translate("+(s-x.width/2-5)+", "+rt+")"),u&&(m.attr("transform","translate(".concat(-k/2-3,", ").concat(C+10,")")),v.attr("transform","translate("+(s-x.width/2-5)+", "+(rt+2*C+4)+")"))):m.attr("transform","translate(-19, "+(h-12-C/2)+")")})},"drawBranches"),Et=(0,d.K2)(function(t,e,r,i,n){return Q.set(t,{pos:e,index:r}),e+=50+(n?40:0)+("TB"===it||"BT"===it?i.width/2:0)},"setBranchPosition"),Tt={draw:(0,d.K2)(function(t,e,r,i){var n,a;nt(),d.Rm.debug("in gitgraph renderer",t+"\n","id:",e,r);var o=i.db;if(o.getConfig){var s=o.getConfig(),l=null!==(n=s.rotateCommitLabel)&&void 0!==n&&n;tt=o.getCommits();var c=o.getBranchesAsObjArray();it=o.getDirection();var p=(0,g.Ltv)('[id="'.concat(e,'"]')),f=(0,h.D7)(),y=f.look,m=f.theme,v=f.themeVariables,x=v.useGradient,b=v.gradientStart,k=v.gradientStop,C=v.filterColor;if(x){var A=p.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");A.append("stop").attr("offset","0%").attr("stop-color",b).attr("stop-opacity",1),A.append("stop").attr("offset","100%").attr("stop-color",k).attr("stop-opacity",1)}"neo"===y&&V.has(null!=m?m:"")&&p.append("defs").append("filter").attr("id",e+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",C);var D=0;c.forEach(function(t,e){var r,i=at(t.name),n=p.append("g"),a=n.insert("g").attr("class","branchLabel"),o=a.insert("g").attr("class","label branch-label");null===(r=o.node())||void 0===r||r.appendChild(i);var s=i.getBBox();D=Et(t.name,D,e,s,l),o.remove(),a.remove(),n.remove()}),xt(p,tt,!1,s),s.showBranches&&Dt(p,c,s,e),At(p,tt),xt(p,tt,!0,s),u._K.insertTitle(p,"gitTitleText",null!==(a=s.titleTopMargin)&&void 0!==a?a:0,o.getDiagramTitle()),(0,h.mj)(void 0,p,s.diagramPadding,s.useMaxWidth)}else d.Rm.error("getConfig method is not available on db")},"draw")},wt=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),St=new Set(["redux-color","redux-dark-color"]),Ft=new Set(["neo","neo-dark"]),_t=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Bt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),Lt=(0,d.K2)(function(t){var e=t.svgId,r="";if(t.useGradient&&e)for(var i=0;i<t.THEME_COLOR_LIMIT;i++)r+="\n      .label".concat(i,"  { fill: ").concat(t.mainBkg,"; stroke: url(").concat(e,"-gradient); stroke-width: ").concat(t.strokeWidth,";}\n             ");return r},"genGitGraphGradient"),It=(0,d.K2)(function(t){var e=(0,h.zj)(),r=e.theme,i=e.themeVariables.borderColorArray,n=wt.has(r);if(Ft.has(r)){for(var a="",o=0;o<t.THEME_COLOR_LIMIT;o++)if(0===o)a+="\n        .branch-label".concat(o," { fill: ").concat(t.nodeBorder,";}\n        .commit").concat(o," { stroke: ").concat(t.nodeBorder,";   }\n        .commit-highlight").concat(o," { stroke: ").concat(t.nodeBorder,"; fill: ").concat(t.nodeBorder,"; }\n        .arrow").concat(o," { stroke: ").concat(t.nodeBorder,"; }\n        .commit-bullets { fill: ").concat(t.nodeBorder,"; }\n        .commit-cherry-pick").concat(o," { stroke: ").concat(t.nodeBorder,"; }\n        ").concat(Lt(t));else{var s=o%8;a+="\n        .branch-label".concat(o," { fill: ").concat(t["gitBranchLabel"+s],"; }\n        .commit").concat(o," { stroke: ").concat(t["git"+s],"; fill: ").concat(t["git"+s],"; }\n        .commit-highlight").concat(o," { stroke: ").concat(t["gitInv"+s],"; fill: ").concat(t["gitInv"+s],"; }\n        .arrow").concat(o," { stroke: ").concat(t["git"+s],"; }\n        ")}return a}if(St.has(r)){for(var l="",c=0;c<t.THEME_COLOR_LIMIT;c++)if(0===c)l+="\n        .branch-label".concat(c," { fill: ").concat(t.nodeBorder,"; ").concat(n?"font-weight:".concat(t.noteFontWeight):""," }\n        .commit").concat(c," { stroke: ").concat(t.nodeBorder,"; }\n        .commit-highlight").concat(c," { stroke: ").concat(t.nodeBorder,"; fill: ").concat(t.mainBkg,"; }\n        .label").concat(c,"  { fill: ").concat(t.mainBkg,"; stroke: ").concat(t.nodeBorder,"; stroke-width: ").concat(t.strokeWidth,"; ").concat(n?"font-weight:".concat(t.noteFontWeight):""," }\n        .arrow").concat(c," { stroke: ").concat(t.nodeBorder,"; }\n        .commit-bullets { fill: ").concat(t.nodeBorder,"; }\n        ");else{var u=c%i.length;l+="\n        .branch-label".concat(c," { fill: ").concat(t.nodeBorder,"; ").concat(n?"font-weight:".concat(t.noteFontWeight):""," }\n        .commit").concat(c," { stroke: ").concat(i[u],"; fill: ").concat(i[u],"; }\n        .commit-highlight").concat(c," { stroke: ").concat(i[u],"; fill: ").concat(i[u],"; }\n        .label").concat(c,"  { fill: ").concat(_t.has(r)?t.mainBkg:i[u],"; stroke: ").concat(i[u],";  stroke-width: ").concat(t.strokeWidth,"; }\n        .arrow").concat(c," { stroke: ").concat(i[u],"; }\n        ")}return l}for(var d="",p=0;p<t.THEME_COLOR_LIMIT;p++)d+="\n        .branch-label".concat(p," { fill: ").concat(t.nodeBorder,"; ").concat(n?"font-weight:".concat(t.noteFontWeight):""," }\n        .commit").concat(p," { stroke: ").concat(t.nodeBorder,";   }\n        .commit-highlight").concat(p," { stroke: ").concat(t.nodeBorder,"; fill: ").concat(t.nodeBorder,"; }\n        .label").concat(p,"  { fill: ").concat(t.mainBkg,"; stroke: ").concat(t.nodeBorder,"; stroke-width: ").concat(t.strokeWidth,"; ").concat(n?"font-weight:".concat(t.noteFontWeight):"","}\n        .arrow").concat(p," { stroke: ").concat(t.nodeBorder,"; }\n        .commit-bullets { fill: ").concat(t.nodeBorder,"; }\n        .commit-cherry-pick").concat(p," { stroke: ").concat(t.nodeBorder,"; }\n        ");return d},"genColor"),Rt=(0,d.K2)(function(t){return"".concat(Array.from({length:t.THEME_COLOR_LIMIT},function(t,e){return e}).map(function(e){var r=e%8;return"\n        .branch-label".concat(e," { fill: ").concat(t["gitBranchLabel"+r],"; }\n        .commit").concat(e," { stroke: ").concat(t["git"+r],"; fill: ").concat(t["git"+r],"; }\n        .commit-highlight").concat(e," { stroke: ").concat(t["gitInv"+r],"; fill: ").concat(t["gitInv"+r],"; }\n        .label").concat(e,"  { fill: ").concat(t["git"+r],"; }\n        .arrow").concat(e," { stroke: ").concat(t["git"+r],"; }\n        ")}).join("\n"))},"normalTheme"),Ot={parser:j,db:N,renderer:Tt,styles:(0,d.K2)(function(t){var e,r=(0,h.zj)().theme,i=Bt.has(r);return"\n  .commit-id,\n  .commit-msg,\n  .branch-label {\n    fill: lightgrey;\n    color: lightgrey;\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n  }\n  \n  ".concat(i?It(t):Rt(t),"\n\n  .branch {\n    stroke-width: ").concat(t.strokeWidth,";\n    stroke: ").concat(null!==(e=t.commitLineColor)&&void 0!==e?e:t.lineColor,";\n    stroke-dasharray:  ").concat(i?"4 2":"2",";\n  }\n  .commit-label { font-size: ").concat(t.commitLabelFontSize,"; fill: ").concat(i?t.nodeBorder:t.commitLabelColor,"; ").concat(i?"font-weight:".concat(t.noteFontWeight,";"):"","}\n  .commit-label-bkg { font-size: ").concat(t.commitLabelFontSize,"; fill: ").concat(i?"transparent":t.commitLabelBackground,"; opacity: ").concat(i?"":.5,";  }\n  .tag-label { font-size: ").concat(t.tagLabelFontSize,"; fill: ").concat(t.tagLabelColor,";}\n  .tag-label-bkg { fill: ").concat(i?t.mainBkg:t.tagLabelBackground,"; stroke: ").concat(i?t.nodeBorder:t.tagLabelBorder,"; ").concat(i?"filter:".concat(t.dropShadow):"","  }\n  .tag-hole { fill: ").concat(t.textColor,"; }\n\n  .commit-merge {\n    stroke: ").concat(i?t.mainBkg:t.primaryColor,";\n    fill: ").concat(i?t.mainBkg:t.primaryColor,";\n  }\n  .commit-reverse {\n    stroke: ").concat(i?t.mainBkg:t.primaryColor,";\n    fill: ").concat(i?t.mainBkg:t.primaryColor,";\n    stroke-width: ").concat(i?t.strokeWidth:3,";\n  }\n  .commit-highlight-outer {\n  }\n  .commit-highlight-inner {\n    stroke: ").concat(i?t.mainBkg:t.primaryColor,";\n    fill: ").concat(i?t.mainBkg:t.primaryColor,";\n  }\n\n  .arrow {\n    /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */\n    stroke-width: ").concat(wt.has(r)?t.strokeWidth:8,";\n    stroke-linecap: round;\n    fill: none\n  }\n  .gitTitleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ").concat(t.textColor,";\n  }\n")},"getStyles")}},30363:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return h}});var i=r(20908),n=r(30388),a=r(52067),o=r(40985),s=r(68548),l=r(79510),c={parse:(0,s.K2)(function(){var t=(0,n.A)((0,i.A)().m(function t(e){var r;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,(0,l.qg)("info",e);case 1:r=t.v,s.Rm.debug(r);case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),"parse")},u={version:"11.15.0"},h={parser:c,db:{getVersion:(0,s.K2)(function(){return u.version},"getVersion")},renderer:{draw:(0,s.K2)(function(t,e,r){s.Rm.debug("rendering info diagram\n"+t);var i=(0,a.D)(e);(0,o.a$)(i,100,400,!0),i.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text("v".concat(r))},"draw")}}},40082:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return M}});var i,n=r(3604),a=r(74721),o=r(81587),s=r(25026),l=r(69492),c=r(52067),u=r(34539),h=r(40985),d=r(68548),p=r(79435),g=function(){var t=(0,d.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,4],r=[1,14],i=[1,12],n=[1,13],a=[6,7,8],o=[1,20],s=[1,18],l=[1,19],c=[6,7,11],u=[1,6,13,14],h=[1,23],p=[1,24],g=[1,6,7,11,13,14],f={trace:(0,d.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:(0,d.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 6:case 7:return i;case 15:i.addNode(a[s-1].length,a[s].trim());break;case 16:i.addNode(0,a[s].trim())}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:i,14:n},t(a,[2,3]),{1:[2,2]},t(a,[2,4]),t(a,[2,5]),{1:[2,6],6:r,12:15,13:i,14:n},{6:r,9:16,12:11,13:i,14:n},{6:o,7:s,10:17,11:l},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:o,7:s,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:n},t(u,[2,14],{7:h,11:p}),t(g,[2,8]),t(g,[2,9]),t(g,[2,10]),t(c,[2,15]),t(u,[2,13],{7:h,11:p}),t(g,[2,11]),t(g,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,d.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,d.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,u=0,h=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g.yy[f]=this.yy[f]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var m=p.options&&p.options.ranges;function v(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,d.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,d.K2)(v,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=v()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(p.yytext),a.push(p.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(c=p.yyleng,s=p.yytext,l=p.yylineno,y=p.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,g.yy,C[1],n,a].concat(h))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},y=function(){return{EOF:1,parseError:(0,d.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,d.K2)(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},"setInput"),input:(0,d.K2)(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},"input"),unput:(0,d.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,d.K2)(function(){return this._more=!0,this},"more"),reject:(0,d.K2)(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})},"reject"),less:(0,d.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,d.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,d.K2)(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,"")},"upcomingInput"),showPosition:(0,d.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,d.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,d.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,d.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,d.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,d.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,d.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,d.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,d.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,d.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,d.K2)(function(t,e,r,i){switch(r){case 0:case 3:return 6;case 1:case 2:return 8;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}}}();function m(){this.yy={}}return f.lexer=y,(0,d.K2)(m,"Parser"),m.prototype=f,f.Parser=m,new m}();g.parser=g;var f=g,y=(i=function(){return(0,l.A)(function t(){(0,s.A)(this,t),this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)},[{key:"clear",value:function(){this.root=void 0,this.stack=[],this.baseLevel=void 0,(0,h.IU)()}},{key:"getRoot",value:function(){return this.root}},{key:"addNode",value:function(t,e){var r,i=h.Y2.sanitizeText(e,(0,h.D7)());if(!this.root)return this.root={text:i,children:[]},this.stack=[{level:0,node:this.root}],void(0,h.ke)(i);null!==(r=this.baseLevel)&&void 0!==r||(this.baseLevel=t);var n=t-this.baseLevel+1;for(n<=0&&(n=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=n;)this.stack.pop();var a={text:i,children:[]};this.stack[this.stack.length-1].node.children.push(a),this.stack.push({level:n,node:a})}},{key:"getAccTitle",value:function(){return(0,h.iN)()}},{key:"setAccTitle",value:function(t){(0,h.SV)(t)}},{key:"getAccDescription",value:function(){return(0,h.m7)()}},{key:"setAccDescription",value:function(t){(0,h.EI)(t)}},{key:"getDiagramTitle",value:function(){return(0,h.ab)()}},{key:"setDiagramTitle",value:function(t){(0,h.ke)(t)}}])}(),(0,d.K2)(i,"IshikawaDB"),i),m=250,v=82*Math.PI/180,x=Math.cos(v),b=Math.sin(v),k=(0,d.K2)(function(t,e,r){var i=t.node().getBBox(),n=i.width+2*e,a=i.height+2*e;(0,h.a$)(t,a,n,r),t.attr("viewBox","".concat(i.x-e," ").concat(i.y-e," ").concat(n," ").concat(a))},"applyPaddedViewBox"),C=(0,d.K2)(function(t,e,r,i){var n,a,s,l,d,g,f,y,v=i.db.getRoot();if(v){var x=(0,h.D7)(),b=x.look,C=x.handDrawnSeed,E=x.themeVariables,T=null!==(n=(0,u.I5)(x.fontSize)[0])&&void 0!==n?n:14,w="handDrawn"===b,F=null!==(a=v.children)&&void 0!==a?a:[],_=null!==(s=null===(l=x.ishikawa)||void 0===l?void 0:l.diagramPadding)&&void 0!==s?s:20,B=null!==(d=null===(g=x.ishikawa)||void 0===g?void 0:g.useMaxWidth)&&void 0!==d&&d,L=(0,c.D)(e),R=L.append("g").attr("class","ishikawa"),O=w?p.A.svg(L.node()):void 0,M=O?{roughSvg:O,seed:null!=C?C:0,lineColor:null!==(f=null==E?void 0:E.lineColor)&&void 0!==f?f:"#333",fillColor:null!==(y=null==E?void 0:E.mainBkg)&&void 0!==y?y:"#fff"}:void 0,N="ishikawa-arrow-".concat(e);w||R.append("defs").append("marker").attr("id",N).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");var K=0,P=m,q=w?void 0:I(R,K,P,K,P,"ishikawa-spine");if(D(R,K,P,v.text,T,M),!F.length)return w&&I(R,K,P,K,P,"ishikawa-spine",M),void k(L,_,B);K-=20;var z=F.filter(function(t,e){return e%2==0}),W=F.filter(function(t,e){return e%2==1}),Y=A(z),$=A(W),j=Y.total+$.total,U=m,H=m;if(j>0){U=Math.max(75,Y.total/j*500),H=Math.max(75,$.total/j*500)}var V=2*T;U=Math.max(U,Y.max*V),H=Math.max(H,$.max*V),P=Math.max(U,m),q&&q.attr("y1",P).attr("y2",P),R.select(".ishikawa-head-group").attr("transform","translate(0,".concat(P,")"));for(var G=Math.ceil(F.length/2),X=0;X<G;X++){for(var Z=R.append("g").attr("class","ishikawa-pair"),Q=0,J=[[F[2*X],-1,U],[F[2*X+1],1,H]];Q<J.length;Q++){var tt=(0,o.A)(J[Q],3),et=tt[0],rt=tt[1],it=tt[2];et&&S(Z,et,K,P,rt,it,T,M)}K=Z.selectAll("text").nodes().reduce(function(t,e){return Math.min(t,e.getBBox().x)},1/0)}if(w)I(R,K,P,0,P,"ishikawa-spine",M);else{q.attr("x1",K);var nt="url(#".concat(N,")");R.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",nt)}k(L,_,B)}},"draw"),A=(0,d.K2)(function(t){var e=(0,d.K2)(function(t){return t.children.reduce(function(t,r){return t+1+e(r)},0)},"countDescendants");return t.reduce(function(t,r){var i=e(r);return t.total+=i,t.max=Math.max(t.max,i),t},{total:0,max:0})},"sideStats"),D=(0,d.K2)(function(t,e,r,i,n,a){var o=Math.max(6,Math.floor(110/(.6*n))),s=t.append("g").attr("class","ishikawa-head-group").attr("transform","translate(".concat(e,",").concat(r,")")),l=B(s,_(i,o),0,0,"ishikawa-head-label","start",n),c=l.node().getBBox(),u=Math.max(60,c.width+6),h=Math.max(40,2*c.height+40),d="M 0 ".concat(-h/2," L 0 ").concat(h/2," Q ").concat(2.4*u," 0 0 ").concat(-h/2," Z");if(a){var p=a.roughSvg.path(d,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});s.insert(function(){return p},":first-child").attr("class","ishikawa-head")}else s.insert("path",":first-child").attr("class","ishikawa-head").attr("d",d);l.attr("transform","translate(".concat((u-c.width)/2-c.x+3,",").concat(-c.y-c.height/2,")"))},"drawHead"),E=(0,d.K2)(function(t,e){var r=[],i=[],o=(0,d.K2)(function(t,s,l){var c,u=-1===e?(0,a.A)(t).reverse():t,h=(0,n.A)(u);try{for(h.s();!(c=h.n()).done;){var d,p=c.value,g=r.length,f=null!==(d=p.children)&&void 0!==d?d:[];r.push({depth:l,text:_(p.text,15),parentIndex:s,childCount:f.length}),l%2==0?(i.push(g),f.length&&o(f,g,l+1)):(f.length&&o(f,g,l+1),i.push(g))}}catch(t){h.e(t)}finally{h.f()}},"walk");return o(t,-1,2),{entries:r,yOrder:i}},"flattenTree"),T=(0,d.K2)(function(t,e,r,i,n,a,o){var s=t.append("g").attr("class","ishikawa-label-group"),l=B(s,e,r,i+11*n,"ishikawa-label cause","middle",a).node().getBBox();if(o){var c=o.roughSvg.rectangle(l.x-20,l.y-2,l.width+40,l.height+4,{roughness:1.5,seed:o.seed,fill:o.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:o.lineColor,strokeWidth:2});s.insert(function(){return c},":first-child").attr("class","ishikawa-label-box")}else s.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",l.x-20).attr("y",l.y-2).attr("width",l.width+40).attr("height",l.height+4)},"drawCauseLabel"),w=(0,d.K2)(function(t,e,r,i,n,a){var o=Math.sqrt(i*i+n*n);if(0!==o){var s=i/o,l=n/o,c=6*-l,u=6*s,h=e,d=r,p="M ".concat(h," ").concat(d," L ").concat(h-6*s*2+c," ").concat(d-6*l*2+u," L ").concat(h-6*s*2-c," ").concat(d-6*l*2-u," Z"),g=a.roughSvg.path(p,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:"solid",stroke:a.lineColor,strokeWidth:1});t.append(function(){return g})}},"drawArrowMarker"),S=(0,d.K2)(function(t,e,r,i,a,s,l,c){var u,h=null!==(u=e.children)&&void 0!==u?u:[],d=s*(h.length?1:.2),p=b*d*a,g=r+-x*d,f=i+p;if(I(t,r,i,g,f,"ishikawa-branch",c),c&&w(t,r,i,r-g,i-f,c),T(t,e.text,g,f,a,l,c),h.length){var y,m=E(h,a),v=m.entries,k=m.yOrder,C=v.length,A=new Array(C),D=(0,n.A)(k.entries());try{for(D.s();!(y=D.n()).done;){var S=(0,o.A)(y.value,2),F=S[0];A[S[1]]=i+p*((F+1)/(C+1))}}catch(t){D.e(t)}finally{D.f()}var _=new Map;_.set(-1,{x0:r,y0:i,x1:g,y1:f,childCount:h.length,childrenDrawn:0});var R,O=-x,M=b*a,N=a<0?"ishikawa-label up":"ishikawa-label down",K=(0,n.A)(v.entries());try{for(K.s();!(R=K.n()).done;){var P=(0,o.A)(R.value,2),q=P[0],z=P[1],W=A[q],Y=_.get(z.parentIndex),$=t.append("g").attr("class","ishikawa-sub-group"),j=0,U=0,H=0;if(z.depth%2==0){var V=Y.y1-Y.y0;j=L(Y.x0,Y.x1,V?(W-Y.y0)/V:.5),U=W,H=j-(z.childCount>0?60+5*z.childCount:30),I($,j,W,H,W,"ishikawa-sub-branch",c),c&&w($,j,W,1,0,c),B($,z.text,H,W,"ishikawa-label align","end",l)}else{var G=Y.childrenDrawn++;j=L(Y.x0,Y.x1,(Y.childCount-G)/(Y.childCount+1)),U=Y.y0,I($,j,U,H=j+O*((W-U)/M),W,"ishikawa-sub-branch",c),c&&w($,j,U,j-H,U-W,c),B($,z.text,H,W,N,"end",l)}z.childCount>0&&_.set(q,{x0:j,y0:U,x1:H,y1:W,childCount:z.childCount,childrenDrawn:0})}}catch(t){K.e(t)}finally{K.f()}}},"drawBranch"),F=(0,d.K2)(function(t){return t.split(/<br\s*\/?>|\n/)},"splitLines"),_=(0,d.K2)(function(t,e){if(t.length<=e)return t;var r,i=[],a=(0,n.A)(t.split(/\s+/));try{for(a.s();!(r=a.n()).done;){var o=r.value,s=i.length-1;s>=0&&i[s].length+1+o.length<=e?i[s]+=" "+o:i.push(o)}}catch(t){a.e(t)}finally{a.f()}return i.join("\n")},"wrapText"),B=(0,d.K2)(function(t,e,r,i,a,s,l){var c,u=F(e),h=1.05*l,d=t.append("text").attr("class",a).attr("text-anchor",s).attr("x",r).attr("y",i-(u.length-1)*h/2),p=(0,n.A)(u.entries());try{for(p.s();!(c=p.n()).done;){var g=(0,o.A)(c.value,2),f=g[0],y=g[1];d.append("tspan").attr("x",r).attr("dy",0===f?0:h).text(y)}}catch(t){p.e(t)}finally{p.f()}return d},"drawMultilineText"),L=(0,d.K2)(function(t,e,r){return t+(e-t)*r},"lerp"),I=(0,d.K2)(function(t,e,r,i,n,a,o){if(!o)return t.append("line").attr("class",a).attr("x1",e).attr("y1",r).attr("x2",i).attr("y2",n);var s=o.roughSvg.line(e,r,i,n,{roughness:1.5,seed:o.seed,stroke:o.lineColor,strokeWidth:2});t.append(function(){return s}).attr("class",a)},"drawLine"),R={draw:C},O=(0,d.K2)(function(t){return"\n.ishikawa .ishikawa-spine,\n.ishikawa .ishikawa-branch,\n.ishikawa .ishikawa-sub-branch {\n  stroke: ".concat(t.lineColor,";\n  stroke-width: 2;\n  fill: none;\n}\n\n.ishikawa .ishikawa-sub-branch {\n  stroke-width: 1;\n}\n\n.ishikawa .ishikawa-arrow {\n  fill: ").concat(t.lineColor,";\n}\n\n.ishikawa .ishikawa-head {\n  fill: ").concat(t.mainBkg,";\n  stroke: ").concat(t.lineColor,";\n  stroke-width: 2;\n}\n\n.ishikawa .ishikawa-label-box {\n  fill: ").concat(t.mainBkg,";\n  stroke: ").concat(t.lineColor,";\n  stroke-width: 2;\n}\n\n.ishikawa text {\n  font-family: ").concat(t.fontFamily,";\n  font-size: ").concat(t.fontSize,";\n  fill: ").concat(t.textColor,";\n}\n\n.ishikawa .ishikawa-head-label {\n  font-weight: 600;\n  text-anchor: middle;\n  dominant-baseline: middle;\n  font-size: 14px;\n}\n\n.ishikawa .ishikawa-label {\n  text-anchor: end;\n}\n\n.ishikawa .ishikawa-label.cause {\n  text-anchor: middle;\n  dominant-baseline: middle;\n}\n\n.ishikawa .ishikawa-label.align {\n  text-anchor: end;\n  dominant-baseline: middle;\n}\n\n.ishikawa .ishikawa-label.up {\n  dominant-baseline: baseline;\n}\n\n.ishikawa .ishikawa-label.down {\n  dominant-baseline: hanging;\n}\n")},"getStyles"),M={parser:f,get db(){return new y},renderer:R,styles:O}},93675:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return Z}});var i=r(81587),n=r(3604),a=r(74721),o=r(43840),s=r(89906),l=r(40985),c=r(68548),u=r(63219),h=function(){var t=(0,c.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],n=[1,11],a=[1,12],o=[1,13],s=[1,14],l={trace:(0,c.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:(0,c.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 1:return a[s-1];case 2:case 6:case 7:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 8:i.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 12:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:i.addTask(a[s-1],a[s]),this.$="task"}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:n,16:a,17:o,18:s},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:r,12:i,14:n,16:a,17:o,18:s},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:(0,c.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,c.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,u=0,h=0,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g.yy[f]=this.yy[f]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var m=p.options&&p.options.ranges;function v(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,c.K2)(v,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=v()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(p.yytext),a.push(p.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(u=p.yyleng,s=p.yytext,l=p.yylineno,y=p.yylloc,h>0&&h--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,u,l,g.yy,C[1],n,a].concat(d))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},u=function(){return{EOF:1,parseError:(0,c.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,c.K2)(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},"setInput"),input:(0,c.K2)(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},"input"),unput:(0,c.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.K2)(function(){return this._more=!0,this},"more"),reject:(0,c.K2)(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})},"reject"),less:(0,c.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,c.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.K2)(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,"")},"upcomingInput"),showPosition:(0,c.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,c.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,c.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,c.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,c.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,c.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,c.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,c.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,c.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,c.K2)(function(t,e,r,i){switch(r){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}}}();function h(){this.yy={}}return l.lexer=u,(0,c.K2)(h,"Parser"),h.prototype=l,l.Parser=h,new h}();h.parser=h;var d=h,p="",g=[],f=[],y=[],m=(0,c.K2)(function(){g.length=0,f.length=0,p="",y.length=0,(0,l.IU)()},"clear"),v=(0,c.K2)(function(t){p=t,g.push(t)},"addSection"),x=(0,c.K2)(function(){return g},"getSections"),b=(0,c.K2)(function(){for(var t=D(),e=0;!t&&e<100;)t=D(),e++;return f.push.apply(f,y),f},"getTasks"),k=(0,c.K2)(function(){var t=[];f.forEach(function(e){e.people&&t.push.apply(t,(0,a.A)(e.people))});var e=new Set(t);return(0,a.A)(e).sort()},"updateActors"),C=(0,c.K2)(function(t,e){var r=e.substr(1).split(":"),i=0,n=[];1===r.length?(i=Number(r[0]),n=[]):(i=Number(r[0]),n=r[1].split(","));var a=n.map(function(t){return t.trim()}),o={section:p,type:p,people:a,task:t,score:i};y.push(o)},"addTask"),A=(0,c.K2)(function(t){var e={section:p,type:p,description:t,task:t,classes:[]};f.push(e)},"addTaskOrg"),D=(0,c.K2)(function(){var t,e=(0,c.K2)(function(t){return y[t].processed},"compileTask"),r=!0,a=(0,n.A)(y.entries());try{for(a.s();!(t=a.n()).done;){var o=(0,i.A)(t.value,2),s=o[0],l=o[1];e(s),r=r&&l.processed}}catch(t){a.e(t)}finally{a.f()}return r},"compileTasks"),E=(0,c.K2)(function(){return k()},"getActors"),T={getConfig:(0,c.K2)(function(){return(0,l.D7)().journey},"getConfig"),clear:m,setDiagramTitle:l.ke,getDiagramTitle:l.ab,setAccTitle:l.SV,getAccTitle:l.iN,setAccDescription:l.EI,getAccDescription:l.m7,addSection:v,getSections:x,getTasks:b,addTask:C,addTaskOrg:A,getActors:E},w=(0,c.K2)(function(t){return".label {\n    font-family: ".concat(t.fontFamily,";\n    color: ").concat(t.textColor,";\n  }\n  .mouth {\n    stroke: #666;\n  }\n\n  line {\n    stroke: ").concat(t.textColor,"\n  }\n\n  .legend {\n    fill: ").concat(t.textColor,";\n    font-family: ").concat(t.fontFamily,";\n  }\n\n  .label text {\n    fill: #333;\n  }\n  .label {\n    color: ").concat(t.textColor,"\n  }\n\n  .face {\n    ").concat(t.faceColor?"fill: ".concat(t.faceColor):"fill: #FFF8DC",";\n    stroke: #999;\n  }\n\n  .node rect,\n  .node circle,\n  .node ellipse,\n  .node polygon,\n  .node path {\n    fill: ").concat(t.mainBkg,";\n    stroke: ").concat(t.nodeBorder,";\n    stroke-width: 1px;\n  }\n\n  .node .label {\n    text-align: center;\n  }\n  .node.clickable {\n    cursor: pointer;\n  }\n\n  .arrowheadPath {\n    fill: ").concat(t.arrowheadColor,";\n  }\n\n  .edgePath .path {\n    stroke: ").concat(t.lineColor,";\n    stroke-width: 1.5px;\n  }\n\n  .flowchart-link {\n    stroke: ").concat(t.lineColor,";\n    fill: none;\n  }\n\n  .edgeLabel {\n    background-color: ").concat(t.edgeLabelBackground,";\n    rect {\n      opacity: 0.5;\n    }\n    text-align: center;\n  }\n\n  .cluster rect {\n  }\n\n  .cluster text {\n    fill: ").concat(t.titleColor,";\n  }\n\n  div.mermaidTooltip {\n    position: absolute;\n    text-align: center;\n    max-width: 200px;\n    padding: 2px;\n    font-family: ").concat(t.fontFamily,";\n    font-size: 12px;\n    background: ").concat(t.tertiaryColor,";\n    border: 1px solid ").concat(t.border2,";\n    border-radius: 2px;\n    pointer-events: none;\n    z-index: 100;\n  }\n\n  .task-type-0, .section-type-0  {\n    ").concat(t.fillType0?"fill: ".concat(t.fillType0):"",";\n  }\n  .task-type-1, .section-type-1  {\n    ").concat(t.fillType0?"fill: ".concat(t.fillType1):"",";\n  }\n  .task-type-2, .section-type-2  {\n    ").concat(t.fillType0?"fill: ".concat(t.fillType2):"",";\n  }\n  .task-type-3, .section-type-3  {\n    ").concat(t.fillType0?"fill: ".concat(t.fillType3):"",";\n  }\n  .task-type-4, .section-type-4  {\n    ").concat(t.fillType0?"fill: ".concat(t.fillType4):"",";\n  }\n  .task-type-5, .section-type-5  {\n    ").concat(t.fillType0?"fill: ".concat(t.fillType5):"",";\n  }\n  .task-type-6, .section-type-6  {\n    ").concat(t.fillType0?"fill: ".concat(t.fillType6):"",";\n  }\n  .task-type-7, .section-type-7  {\n    ").concat(t.fillType0?"fill: ".concat(t.fillType7):"",";\n  }\n\n  .actor-0 {\n    ").concat(t.actor0?"fill: ".concat(t.actor0):"",";\n  }\n  .actor-1 {\n    ").concat(t.actor1?"fill: ".concat(t.actor1):"",";\n  }\n  .actor-2 {\n    ").concat(t.actor2?"fill: ".concat(t.actor2):"",";\n  }\n  .actor-3 {\n    ").concat(t.actor3?"fill: ".concat(t.actor3):"",";\n  }\n  .actor-4 {\n    ").concat(t.actor4?"fill: ".concat(t.actor4):"",";\n  }\n  .actor-5 {\n    ").concat(t.actor5?"fill: ".concat(t.actor5):"",";\n  }\n  ").concat((0,o.o)(),"\n")},"getStyles"),S=(0,c.K2)(function(t,e){return(0,s.tk)(t,e)},"drawRect"),F=(0,c.K2)(function(t,e){var r=15,i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",r).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");function a(t){var i=(0,u.JLW)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(r/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function o(t){var i=(0,u.JLW)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(r/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function s(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return n.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,c.K2)(a,"smile"),(0,c.K2)(o,"sad"),(0,c.K2)(s,"ambivalent"),e.score>3?a(n):e.score<3?o(n):s(n),i},"drawFace"),_=(0,c.K2)(function(t,e){var r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),void 0!==r.class&&r.attr("class",r.class),void 0!==e.title&&r.append("title").text(e.title),r},"drawCircle"),B=(0,c.K2)(function(t,e){return(0,s.m)(t,e)},"drawText"),L=(0,c.K2)(function(t,e){function r(t,e,r,i,n){return t+","+e+" "+(t+r)+","+e+" "+(t+r)+","+(e+i-n)+" "+(t+r-1.2*n)+","+(e+i)+" "+t+","+(e+i)}(0,c.K2)(r,"genPoints");var i=t.append("polygon");i.attr("points",r(e.x,e.y,50,20,7)),i.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,B(t,e)},"drawLabel"),I=(0,c.K2)(function(t,e,r){var i=t.append("g"),n=(0,s.PB)();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),n.height=r.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,S(i,n),N(r)(e.text,i,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),R=-1,O=(0,c.K2)(function(t,e,r,i){var n=e.x+r.width/2,a=t.append("g");R++;a.append("line").attr("id",i+"-task"+R).attr("x1",n).attr("y1",e.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),F(a,{cx:n,cy:300+30*(5-e.score),score:e.score});var o=(0,s.PB)();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=r.width,o.height=r.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,S(a,o);var l=e.x+14;e.people.forEach(function(t){var r=e.actors[t].color,i={cx:l,cy:e.y,r:7,fill:r,stroke:"#000",title:t,pos:e.actors[t].position};_(a,i),l+=10}),N(r)(e.task,a,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),M=(0,c.K2)(function(t,e){(0,s.lC)(t,e)},"drawBackgroundRect"),N=function(){function t(t,e,r,n,a,o,s,l){i(e.append("text").attr("x",r+a/2).attr("y",n+o/2+5).style("font-color",l).style("text-anchor","middle").text(t),s)}function e(t,e,r,n,a,o,s,l,c){for(var u=l.taskFontSize,h=l.taskFontFamily,d=t.split(/<br\s*\/?>/gi),p=0;p<d.length;p++){var g=p*u-u*(d.length-1)/2,f=e.append("text").attr("x",r+a/2).attr("y",n).attr("fill",c).style("text-anchor","middle").style("font-size",u).style("font-family",h);f.append("tspan").attr("x",r+a/2).attr("dy",g).text(d[p]),f.attr("y",n+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(f,s)}}function r(t,r,n,a,o,s,l,c){var u=r.append("switch"),h=u.append("foreignObject").attr("x",n).attr("y",a).attr("width",o).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,n,a,o,s,l,c),i(h,l)}function i(t,e){for(var r in e)r in e&&t.attr(r,e[r])}return(0,c.K2)(t,"byText"),(0,c.K2)(e,"byTspan"),(0,c.K2)(r,"byFo"),(0,c.K2)(i,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?r:"old"===i.textPlacement?t:e}}(),K={drawRect:S,drawCircle:_,drawSection:I,drawText:B,drawLabel:L,drawTask:O,drawBackgroundRect:M,initGraphics:(0,c.K2)(function(t,e){R=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics")},P=(0,c.K2)(function(t){Object.keys(t).forEach(function(e){Y[e]=t[e]})},"setConf"),q={},z=0;function W(t){var e=(0,l.D7)().journey,r=e.maxLabelWidth;z=0;var i=60;Object.keys(q).forEach(function(a){var o=q[a].color,s={cx:20,cy:i,r:7,fill:o,stroke:"#000",pos:q[a].position};K.drawCircle(t,s);var l=t.append("text").attr("visibility","hidden").text(a),c=l.node().getBoundingClientRect().width;l.remove();var u=[];if(c<=r)u=[a];else{var h=a.split(" "),d="";l=t.append("text").attr("visibility","hidden"),h.forEach(function(t){var e=d?"".concat(d," ").concat(t):t;if(l.text(e),l.node().getBoundingClientRect().width>r){if(d&&u.push(d),d=t,l.text(t),l.node().getBoundingClientRect().width>r){var i,a="",o=(0,n.A)(t);try{for(o.s();!(i=o.n()).done;){var s=i.value;a+=s,l.text(a+"-"),l.node().getBoundingClientRect().width>r&&(u.push(a.slice(0,-1)+"-"),a=s)}}catch(t){o.e(t)}finally{o.f()}d=a}}else d=e}),d&&u.push(d),l.remove()}u.forEach(function(r,n){var a,o={x:40,y:i+7+20*n,fill:"#666",text:r,textMargin:null!==(a=e.boxTextMargin)&&void 0!==a?a:5},s=K.drawText(t,o).node().getBoundingClientRect().width;s>z&&s>e.leftMargin-s&&(z=s)}),i+=Math.max(20,20*u.length)})}(0,c.K2)(W,"drawActorLegend");var Y=(0,l.D7)().journey,$=0,j=(0,c.K2)(function(t,e,r,i){var n,a=(0,l.D7)(),o=a.journey.titleColor,s=a.journey.titleFontSize,c=a.journey.titleFontFamily,h=a.securityLevel;"sandbox"===h&&(n=(0,u.Ltv)("#i"+e));var d="sandbox"===h?(0,u.Ltv)(n.nodes()[0].contentDocument.body):(0,u.Ltv)("body");U.init();var p=d.select("#"+e);K.initGraphics(p,e);var g=i.db.getTasks(),f=i.db.getDiagramTitle(),y=i.db.getActors();for(var m in q)delete q[m];var v=0;y.forEach(function(t){q[t]={color:Y.actorColours[v%Y.actorColours.length],position:v},v++}),W(p),$=Y.leftMargin+z,U.insert(0,0,$,50*Object.keys(q).length),G(p,g,0,e);var x=U.getBounds();f&&p.append("text").text(f).attr("x",$).attr("font-size",s).attr("font-weight","bold").attr("y",25).attr("fill",o).attr("font-family",c);var b=x.stopy-x.starty+2*Y.diagramMarginY,k=$+x.stopx+2*Y.diagramMarginX;(0,l.a$)(p,b,k,Y.useMaxWidth),p.append("line").attr("x1",$).attr("y1",4*Y.height).attr("x2",k-$-4).attr("y2",4*Y.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");var C=f?70:0;p.attr("viewBox","".concat(x.startx," -25 ").concat(k," ").concat(b+C)),p.attr("preserveAspectRatio","xMinYMin meet"),p.attr("height",b+C+25)},"draw"),U={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:(0,c.K2)(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:(0,c.K2)(function(t,e,r,i){void 0===t[e]?t[e]=r:t[e]=i(r,t[e])},"updateVal"),updateBounds:(0,c.K2)(function(t,e,r,i){var n=(0,l.D7)().journey,a=this,o=0;function s(s){return(0,c.K2)(function(l){o++;var c=a.sequenceItems.length-o+1;a.updateVal(l,"starty",e-c*n.boxMargin,Math.min),a.updateVal(l,"stopy",i+c*n.boxMargin,Math.max),a.updateVal(U.data,"startx",t-c*n.boxMargin,Math.min),a.updateVal(U.data,"stopx",r+c*n.boxMargin,Math.max),"activation"!==s&&(a.updateVal(l,"startx",t-c*n.boxMargin,Math.min),a.updateVal(l,"stopx",r+c*n.boxMargin,Math.max),a.updateVal(U.data,"starty",e-c*n.boxMargin,Math.min),a.updateVal(U.data,"stopy",i+c*n.boxMargin,Math.max))},"updateItemBounds")}(0,c.K2)(s,"updateFn"),this.sequenceItems.forEach(s())},"updateBounds"),insert:(0,c.K2)(function(t,e,r,i){var n=Math.min(t,r),a=Math.max(t,r),o=Math.min(e,i),s=Math.max(e,i);this.updateVal(U.data,"startx",n,Math.min),this.updateVal(U.data,"starty",o,Math.min),this.updateVal(U.data,"stopx",a,Math.max),this.updateVal(U.data,"stopy",s,Math.max),this.updateBounds(n,o,a,s)},"insert"),bumpVerticalPos:(0,c.K2)(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:(0,c.K2)(function(){return this.verticalPos},"getVerticalPos"),getBounds:(0,c.K2)(function(){return this.data},"getBounds")},H=Y.sectionFills,V=Y.sectionColours,G=(0,c.K2)(function(t,e,r,a){var o,s=(0,l.D7)().journey,c="",u=r+(2*s.height+s.diagramMarginY),h=0,d="#CCC",p="black",g=0,f=(0,n.A)(e.entries());try{for(f.s();!(o=f.n()).done;){var y=(0,i.A)(o.value,2),m=y[0],v=y[1];if(c!==v.section){d=H[h%H.length],g=h%H.length,p=V[h%V.length];for(var x=0,b=v.section,k=m;k<e.length&&e[k].section==b;k++)x+=1;var C={x:m*s.taskMargin+m*s.width+$,y:50,text:v.section,fill:d,num:g,colour:p,taskCount:x};K.drawSection(t,C,s),c=v.section,h++}var A=v.people.reduce(function(t,e){return q[e]&&(t[e]=q[e]),t},{});v.x=m*s.taskMargin+m*s.width+$,v.y=u,v.width=s.diagramMarginX,v.height=s.diagramMarginY,v.colour=p,v.fill=d,v.num=g,v.actors=A,K.drawTask(t,v,s,a),U.insert(v.x,v.y,v.x+v.width+s.taskMargin,450)}}catch(t){f.e(t)}finally{f.f()}},"drawTasks"),X={setConf:P,draw:j},Z={parser:d,db:T,renderer:X,styles:w,init:(0,c.K2)(function(t){X.setConf(t.journey),T.clear()},"init")}},71250:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return L}});var i=r(90208),n=r(20908),a=r(30388),o=r(3604),s=(r(74423),r(52067)),l=r(43840),c=r(28582),u=r(86735),h=(r(43376),r(17428),r(51266),r(34539),r(40985)),d=r(68548),p=r(84872),g=r(89090),f=r(38602),y=function(){var t=(0,d.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,4],r=[1,13],i=[1,12],n=[1,15],a=[1,16],o=[1,20],s=[1,19],l=[6,7,8],c=[1,26],u=[1,24],h=[1,25],p=[6,7,11],g=[1,31],f=[6,7,11,24],y=[1,6,13,16,17,20,23],m=[1,35],v=[1,36],x=[1,6,7,11,13,16,17,20,23],b=[1,38],k={trace:(0,d.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:(0,d.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",a[s-1].id),i.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:i.getLogger().info("Node: ",a[s].id),i.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:i.getLogger().trace("Icon: ",a[s]),i.decorateNode({icon:a[s]});break;case 18:case 23:i.decorateNode({class:a[s]});break;case 19:i.getLogger().trace("SPACELIST");break;case 20:i.getLogger().trace("Node: ",a[s-1].id),i.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:i.getLogger().trace("Node: ",a[s].id),i.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:i.decorateNode({icon:a[s]});break;case 27:i.getLogger().trace("node found ..",a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:i.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:i.getLogger().trace("node found ..",a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:i.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:n,17:a,18:17,19:18,20:o,23:s},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:n,17:a,18:17,19:18,20:o,23:s},{6:r,9:22,12:11,13:i,14:14,16:n,17:a,18:17,19:18,20:o,23:s},{6:c,7:u,10:23,11:h},t(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:s}),t(p,[2,19]),t(p,[2,21],{15:30,24:g}),t(p,[2,22]),t(p,[2,23]),t(f,[2,25]),t(f,[2,26]),t(f,[2,28],{20:[1,32]}),{21:[1,33]},{6:c,7:u,10:34,11:h},{1:[2,7],6:r,12:21,13:i,14:14,16:n,17:a,18:17,19:18,20:o,23:s},t(y,[2,14],{7:m,11:v}),t(x,[2,8]),t(x,[2,9]),t(x,[2,10]),t(p,[2,16],{15:37,24:g}),t(p,[2,17]),t(p,[2,18]),t(p,[2,20],{24:b}),t(f,[2,31]),{21:[1,39]},{22:[1,40]},t(y,[2,13],{7:m,11:v}),t(x,[2,11]),t(x,[2,12]),t(p,[2,15],{24:b}),t(f,[2,30]),{22:[1,41]},t(f,[2,27]),t(f,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,d.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,d.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,u=0,h=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g.yy[f]=this.yy[f]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var m=p.options&&p.options.ranges;function v(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,d.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,d.K2)(v,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=v()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(p.yytext),a.push(p.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(c=p.yyleng,s=p.yytext,l=p.yylineno,y=p.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,g.yy,C[1],n,a].concat(h))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},C=function(){return{EOF:1,parseError:(0,d.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,d.K2)(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},"setInput"),input:(0,d.K2)(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},"input"),unput:(0,d.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,d.K2)(function(){return this._more=!0,this},"more"),reject:(0,d.K2)(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})},"reject"),less:(0,d.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,d.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,d.K2)(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,"")},"upcomingInput"),showPosition:(0,d.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,d.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,d.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,d.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,d.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,d.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,d.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,d.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,d.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,d.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,d.K2)(function(t,e,r,i){switch(r){case 0:return this.pushState("shapeData"),e.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:return e.yytext=e.yytext.replace(/\n\s*/g,"<br/>"),24;case 4:return 24;case 5:case 10:case 29:case 32:this.popState();break;case 6:return t.getLogger().trace("Found comment",e.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 11:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return t.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:t.getLogger().trace("end icon"),this.popState();break;case 16:return t.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return t.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:case 21:case 22:case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 30:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 33:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 36:case 39:case 40:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 37:case 38:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 41:case 42:return t.getLogger().trace("Long description:",e.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}}}();function A(){this.yy={}}return k.lexer=C,(0,d.K2)(A,"Parser"),A.prototype=k,k.Parser=A,new A}();y.parser=y;var m=y,v=[],x=[],b=0,k={},C=(0,d.K2)(function(){v=[],x=[],b=0,k={}},"clear"),A=(0,d.K2)(function(t){var e;if(0===v.length)return null;for(var r=v[0].level,i=null,n=v.length-1;n>=0;n--)if(v[n].level!==r||i||(i=v[n]),v[n].level<r)throw new Error('Items without section detected, found section ("'+v[n].label+'")');return t===(null===(e=i)||void 0===e?void 0:e.level)?null:i},"getSection"),D=(0,d.K2)(function(){return x},"getSections"),E=(0,d.K2)(function(){var t,e=[],r=D(),i=(0,h.D7)(),n=(0,o.A)(r);try{var a=function(){var r,n=t.value,a={id:n.id,label:(0,h.jZ)(null!==(r=n.label)&&void 0!==r?r:"",i),labelType:"markdown",isGroup:!0,ticket:n.ticket,shape:"kanbanSection",level:n.level,look:i.look};e.push(a);var s,l=v.filter(function(t){return t.parentId===n.id}),c=(0,o.A)(l);try{for(c.s();!(s=c.n()).done;){var u,d=s.value,p={id:d.id,parentId:n.id,label:(0,h.jZ)(null!==(u=d.label)&&void 0!==u?u:"",i),labelType:"markdown",isGroup:!1,ticket:null==d?void 0:d.ticket,priority:null==d?void 0:d.priority,assigned:null==d?void 0:d.assigned,icon:null==d?void 0:d.icon,shape:"kanbanItem",level:d.level,rx:5,ry:5,cssStyles:["text-align: left"]};e.push(p)}}catch(t){c.e(t)}finally{c.f()}};for(n.s();!(t=n.n()).done;)a()}catch(t){n.e(t)}finally{n.f()}return{nodes:e,edges:[],other:{},config:(0,h.D7)()}},"getData"),T=(0,d.K2)(function(t,e,r,i,n){var a,o,s,l,u=(0,h.D7)(),d=null!==(a=null===(o=u.mindmap)||void 0===o?void 0:o.padding)&&void 0!==a?a:h.UI.mindmap.padding;switch(i){case w.ROUNDED_RECT:case w.RECT:case w.HEXAGON:d*=2}var p={id:(0,h.jZ)(e,u)||"kbn"+b++,level:t,label:(0,h.jZ)(r,u),width:null!==(s=null===(l=u.mindmap)||void 0===l?void 0:l.maxNodeWidth)&&void 0!==s?s:h.UI.mindmap.maxNodeWidth,padding:d,isGroup:!1};if(void 0!==n){var g;g=n.includes("\n")?n+"\n":"{\n"+n+"\n}";var f=(0,c.H)(g,{schema:c.r});if(f.shape&&(f.shape!==f.shape.toLowerCase()||f.shape.includes("_")))throw new Error("No such shape: ".concat(f.shape,". Shape names should be lowercase."));null!=f&&f.shape&&"kanbanItem"===f.shape&&(p.shape=null==f?void 0:f.shape),null!=f&&f.label&&(p.label=null==f?void 0:f.label),null!=f&&f.icon&&(p.icon=null==f?void 0:f.icon.toString()),null!=f&&f.assigned&&(p.assigned=null==f?void 0:f.assigned.toString()),null!=f&&f.ticket&&(p.ticket=null==f?void 0:f.ticket.toString()),null!=f&&f.priority&&(p.priority=null==f?void 0:f.priority)}var y=A(t);y?p.parentId=y.id||"kbn"+b++:x.push(p),v.push(p)},"addNode"),w={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},S={clear:C,addNode:T,getSections:D,getData:E,nodeType:w,getType:(0,d.K2)(function(t,e){switch(d.Rm.debug("In get type",t,e),t){case"[":return w.RECT;case"(":return")"===e?w.ROUNDED_RECT:w.CLOUD;case"((":return w.CIRCLE;case")":return w.CLOUD;case"))":return w.BANG;case"{{":return w.HEXAGON;default:return w.DEFAULT}},"getType"),setElementForId:(0,d.K2)(function(t,e){k[t]=e},"setElementForId"),decorateNode:(0,d.K2)(function(t){if(t){var e=(0,h.D7)(),r=v[v.length-1];t.icon&&(r.icon=(0,h.jZ)(t.icon,e)),t.class&&(r.cssClasses=(0,h.jZ)(t.class,e))}},"decorateNode"),type2Str:(0,d.K2)(function(t){switch(t){case w.DEFAULT:return"no-border";case w.RECT:return"rect";case w.ROUNDED_RECT:return"rounded-rect";case w.CIRCLE:return"circle";case w.CLOUD:return"cloud";case w.BANG:return"bang";case w.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),getLogger:(0,d.K2)(function(){return d.Rm},"getLogger"),getElementById:(0,d.K2)(function(t){return k[t]},"getElementById")},F=(0,d.K2)(function(){var t=(0,a.A)((0,n.A)().m(function t(e,r,a,l){var c,p,g,f,y,m,v,x,b,k,C,A,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W;return(0,n.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:d.Rm.debug("Rendering kanban diagram\n"+e),y=l.db,m=y.getData(),(v=(0,h.D7)()).htmlLabels=!1,x=(0,s.D)(r),b=(0,o.A)(m.nodes);try{for(b.s();!(k=b.n()).done;)(C=k.value).domId="".concat(r,"-").concat(C.id)}catch(t){b.e(t)}finally{b.f()}(A=x.append("g")).attr("class","sections"),(D=x.append("g")).attr("class","items"),E=m.nodes.filter(function(t){return t.isGroup}),T=0,w=10,S=[],F=25,_=(0,o.A)(E),t.p=1,_.s();case 2:if((B=_.n()).done){t.n=5;break}return R=B.value,O=(null==v||null===(L=v.kanban)||void 0===L?void 0:L.sectionWidth)||200,T+=1,R.x=O*T+(T-1)*w/2,R.width=O,R.y=0,R.height=3*O,R.rx=5,R.ry=5,R.cssClasses=R.cssClasses+" section-"+T,t.n=3,(0,u.U)(A,R);case 3:M=t.v,F=Math.max(F,null==M||null===(I=M.labelBBox)||void 0===I?void 0:I.height),S.push(M);case 4:t.n=2;break;case 5:t.n=7;break;case 6:t.p=6,z=t.v,_.e(z);case 7:return t.p=7,_.f(),t.f(7);case 8:N=0,K=(0,o.A)(E),t.p=9,q=(0,n.A)().m(function t(){var e,r,i,a,s,l,c,h,d,p,g,f,y,x,b;return(0,n.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:r=P.value,i=S[N],N+=1,a=(null==v||null===(e=v.kanban)||void 0===e?void 0:e.sectionWidth)||200,l=s=3*-a/2+F,c=m.nodes.filter(function(t){return t.parentId===r.id}),h=(0,o.A)(c),t.p=1,h.s();case 2:if((d=h.n()).done){t.n=7;break}if(!(p=d.value).isGroup){t.n=3;break}throw new Error("Groups within groups are not allowed in Kanban diagrams");case 3:return p.x=r.x,p.width=a-1.5*w,t.n=4,(0,u.on)(D,p,{config:v});case 4:return g=t.v,f=g.node().getBBox(),p.y=l+f.height/2,t.n=5,(0,u.U_)(p);case 5:l=p.y+f.height/2+w/2;case 6:t.n=2;break;case 7:t.n=9;break;case 8:t.p=8,b=t.v,h.e(b);case 9:return t.p=9,h.f(),t.f(9);case 10:y=i.cluster.select("rect"),x=Math.max(l-s+3*w,50)+(F-25),y.attr("height",x);case 11:return t.a(2)}},t,null,[[1,8,9,10]])}),K.s();case 10:if((P=K.n()).done){t.n=12;break}return t.d((0,i.A)(q()),11);case 11:t.n=10;break;case 12:t.n=14;break;case 13:t.p=13,W=t.v,K.e(W);case 14:return t.p=14,K.f(),t.f(14);case 15:(0,h.ot)(void 0,x,null!==(c=null===(p=v.mindmap)||void 0===p?void 0:p.padding)&&void 0!==c?c:h.UI.kanban.padding,null!==(g=null===(f=v.mindmap)||void 0===f?void 0:f.useMaxWidth)&&void 0!==g?g:h.UI.kanban.useMaxWidth);case 16:return t.a(2)}},t,null,[[9,13,14,15],[1,6,7,8]])}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"draw"),_={draw:F},B=(0,d.K2)(function(t){for(var e="",r=0;r<t.THEME_COLOR_LIMIT;r++)t["lineColor"+r]=t["lineColor"+r]||t["cScaleInv"+r],(0,p.A)(t["lineColor"+r])?t["lineColor"+r]=(0,g.A)(t["lineColor"+r],20):t["lineColor"+r]=(0,f.A)(t["lineColor"+r],20);for(var i=(0,d.K2)(function(e,r){return t.darkMode?(0,f.A)(e,r):(0,g.A)(e,r)},"adjuster"),n=0;n<t.THEME_COLOR_LIMIT;n++){var a=""+(17-3*n);e+="\n    .section-".concat(n-1," rect, .section-").concat(n-1," path, .section-").concat(n-1," circle, .section-").concat(n-1," polygon, .section-").concat(n-1," path  {\n      fill: ").concat(i(t["cScale"+n],10),";\n      stroke: ").concat(i(t["cScale"+n],10),";\n\n    }\n    .section-").concat(n-1," text {\n     fill: ").concat(t["cScaleLabel"+n],";\n    }\n    .node-icon-").concat(n-1," {\n      font-size: 40px;\n      color: ").concat(t["cScaleLabel"+n],";\n    }\n    .section-edge-").concat(n-1,"{\n      stroke: ").concat(t["cScale"+n],";\n    }\n    .edge-depth-").concat(n-1,"{\n      stroke-width: ").concat(a,";\n    }\n    .section-").concat(n-1," line {\n      stroke: ").concat(t["cScaleInv"+n]," ;\n      stroke-width: 3;\n    }\n\n    .disabled, .disabled circle, .disabled text {\n      fill: lightgray;\n    }\n    .disabled text {\n      fill: #efefef;\n    }\n\n  .node rect,\n  .node circle,\n  .node ellipse,\n  .node polygon,\n  .node path {\n    fill: ").concat(t.background,";\n    stroke: ").concat(t.nodeBorder,";\n    stroke-width: 1px;\n  }\n\n  .kanban-ticket-link {\n    fill: ").concat(t.background,";\n    stroke: ").concat(t.nodeBorder,";\n    text-decoration: underline;\n  }\n    ")}return e},"genSections"),L={db:S,renderer:_,parser:m,styles:(0,d.K2)(function(t){return"\n  .edge {\n    stroke-width: 3;\n  }\n  ".concat(B(t),"\n  .section-root rect, .section-root path, .section-root circle, .section-root polygon  {\n    fill: ").concat(t.git0,";\n  }\n  .section-root text {\n    fill: ").concat(t.gitBranchLabel0,";\n  }\n  .icon-container {\n    height:100%;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n  }\n  .edge {\n    fill: none;\n  }\n  .cluster-label, .label {\n    color: ").concat(t.textColor,";\n    fill: ").concat(t.textColor,";\n    }\n  .kanban-label {\n    dy: 1em;\n    alignment-baseline: middle;\n    text-anchor: middle;\n    dominant-baseline: middle;\n    text-align: center;\n  }\n    ").concat((0,l.o)(),"\n")},"getStyles")}},62690:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return L}});var i=r(20908),n=r(30388),a=r(81587),o=r(3604),s=r(25026),l=r(69492),c=(r(74423),r(21888)),u=r(61340),h=r(86349),d=(r(69914),r(607),r(86735),r(43376),r(17428),r(51266),r(34539),r(40985)),p=r(68548),g=new Uint8Array(16);for(var f=[],y=0;y<256;++y)f.push((y+256).toString(16).slice(1));function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(f[t[e+0]]+f[t[e+1]]+f[t[e+2]]+f[t[e+3]]+"-"+f[t[e+4]]+f[t[e+5]]+"-"+f[t[e+6]]+f[t[e+7]]+"-"+f[t[e+8]]+f[t[e+9]]+"-"+f[t[e+10]]+f[t[e+11]]+f[t[e+12]]+f[t[e+13]]+f[t[e+14]]+f[t[e+15]]).toLowerCase()}var v,x=function(t,e,r){return e||t||!crypto.randomUUID?function(t,e,r){var i,n,a,o;t=t||{};var s=null!==(i=null!==(n=t.random)&&void 0!==n?n:null===(a=(o=t).rng)||void 0===a?void 0:a.call(o))&&void 0!==i?i:crypto.getRandomValues(g);if(s.length<16)throw new Error("Random bytes length must be >= 16");if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e){if((r=r||0)<0||r+16>e.length)throw new RangeError("UUID byte range ".concat(r,":").concat(r+15," is out of buffer bounds"));for(var l=0;l<16;++l)e[r+l]=s[l];return e}return m(s)}(t,e,r):crypto.randomUUID()},b=r(84872),k=r(89090),C=r(38602),A=function(){var t=(0,p.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,4],r=[1,13],i=[1,12],n=[1,15],a=[1,16],o=[1,20],s=[1,19],l=[6,7,8],c=[1,26],u=[1,24],h=[1,25],d=[6,7,11],g=[1,6,13,15,16,19,22],f=[1,33],y=[1,34],m=[1,6,7,11,13,15,16,19,22],v={trace:(0,p.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:(0,p.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",a[s].id),i.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:i.getLogger().trace("Icon: ",a[s]),i.decorateNode({icon:a[s]});break;case 17:case 21:i.decorateNode({class:a[s]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",a[s].id),i.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:i.decorateNode({icon:a[s]});break;case 25:i.getLogger().trace("node found ..",a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:i.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:i.getType(a[s-2],a[s])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:n,16:a,17:17,18:18,19:o,22:s},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:n,16:a,17:17,18:18,19:o,22:s},{6:r,9:22,12:11,13:i,14:14,15:n,16:a,17:17,18:18,19:o,22:s},{6:c,7:u,10:23,11:h},t(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:s}),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),t(d,[2,21]),t(d,[2,23]),t(d,[2,24]),t(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:c,7:u,10:32,11:h},{1:[2,7],6:r,12:21,13:i,14:14,15:n,16:a,17:17,18:18,19:o,22:s},t(g,[2,14],{7:f,11:y}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(d,[2,15]),t(d,[2,16]),t(d,[2,17]),{20:[1,35]},{21:[1,36]},t(g,[2,13],{7:f,11:y}),t(m,[2,11]),t(m,[2,12]),{21:[1,37]},t(d,[2,25]),t(d,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,p.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,p.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,u=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),g={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g.yy[f]=this.yy[f]);d.setInput(t,g.yy),g.yy.lexer=d,g.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var y=d.yylloc;a.push(y);var m=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,p.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,p.K2)(v,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=v()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:d.match,token:this.terminals_[x]||x,line:d.yylineno,loc:y,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(d.yytext),a.push(d.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,y=d.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,g.yy,C[1],n,a].concat(h))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},x=function(){var t={EOF:1,parseError:(0,p.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,p.K2)(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},"setInput"),input:(0,p.K2)(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},"input"),unput:(0,p.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,p.K2)(function(){return this._more=!0,this},"more"),reject:(0,p.K2)(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})},"reject"),less:(0,p.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,p.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,p.K2)(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,"")},"upcomingInput"),showPosition:(0,p.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,p.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,p.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,p.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,p.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,p.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,p.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,p.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,p.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,p.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,p.K2)(function(t,e,r,i){switch(r){case 0:return t.getLogger().trace("Found comment",e.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 27:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return t.getLogger().trace("Long description:",e.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return t}();function b(){this.yy={}}return v.lexer=x,(0,p.K2)(b,"Parser"),b.prototype=v,v.Parser=b,new b}();A.parser=A;var D=A,E={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},T=(v=function(){return(0,l.A)(function t(){(0,s.A)(this,t),this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=E,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)},[{key:"clear",value:function(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}},{key:"getParent",value:function(t){for(var e=this.nodes.length-1;e>=0;e--)if(this.nodes[e].level<t)return this.nodes[e];return null}},{key:"getMindmap",value:function(){return this.nodes.length>0?this.nodes[0]:null}},{key:"addNode",value:function(t,e,r,i){var n,a,o,s;p.Rm.info("addNode",t,e,r,i);var l=!1;0===this.nodes.length?(this.baseLevel=t,t=0,l=!0):void 0!==this.baseLevel&&(t-=this.baseLevel,l=!1);var c=(0,d.D7)(),u=null!==(n=null===(a=c.mindmap)||void 0===a?void 0:a.padding)&&void 0!==n?n:d.UI.mindmap.padding;switch(i){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:u*=2}var h={id:this.count++,nodeId:(0,d.jZ)(e,c),level:t,descr:(0,d.jZ)(r,c),type:i,children:[],width:null!==(o=null===(s=c.mindmap)||void 0===s?void 0:s.maxNodeWidth)&&void 0!==o?o:d.UI.mindmap.maxNodeWidth,padding:u,isRoot:l},g=this.getParent(t);if(g)g.children.push(h),this.nodes.push(h);else{if(!l)throw new Error('There can be only one root. No parent could be found for ("'.concat(h.descr,'")'));this.nodes.push(h)}}},{key:"getType",value:function(t,e){switch(p.Rm.debug("In get type",t,e),t){case"[":return this.nodeType.RECT;case"(":return")"===e?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}},{key:"setElementForId",value:function(t,e){this.elements[t]=e}},{key:"getElementById",value:function(t){return this.elements[t]}},{key:"decorateNode",value:function(t){if(t){var e=(0,d.D7)(),r=this.nodes[this.nodes.length-1];t.icon&&(r.icon=(0,d.jZ)(t.icon,e)),t.class&&(r.class=(0,d.jZ)(t.class,e))}}},{key:"type2Str",value:function(t){switch(t){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}},{key:"assignSections",value:function(t,e){if(0===t.level?t.section=void 0:t.section=e,t.children){var r,i=(0,o.A)(t.children.entries());try{for(i.s();!(r=i.n()).done;){var n=(0,a.A)(r.value,2),s=n[0],l=n[1],c=0===t.level?s%11:e;this.assignSections(l,c)}}catch(t){i.e(t)}finally{i.f()}}}},{key:"flattenNodes",value:function(t,e){var r,i=(0,d.D7)(),n=["mindmap-node"];!0===t.isRoot?n.push("section-root","section--1"):void 0!==t.section&&n.push("section-".concat(t.section)),t.class&&n.push(t.class);var a=n.join(" "),s=(0,p.K2)(function(t){var e,r,n=(null!==(e=null===(r=i.theme)||void 0===r?void 0:r.toLowerCase())&&void 0!==e?e:"").includes("redux");switch(t){case E.CIRCLE:return"mindmapCircle";case E.RECT:return"rect";case E.ROUNDED_RECT:return"rounded";case E.CLOUD:return"cloud";case E.BANG:return"bang";case E.HEXAGON:return"hexagon";case E.DEFAULT:return n?"rounded":"defaultMindmapNode";default:return"rect"}},"getShapeFromType"),l={id:t.id.toString(),domId:"node_"+t.id.toString(),label:t.descr,labelType:"markdown",isGroup:!1,shape:s(t.type),width:t.width,height:null!==(r=t.height)&&void 0!==r?r:0,padding:t.padding,cssClasses:a,cssStyles:[],look:i.look,icon:t.icon,x:t.x,y:t.y,level:t.level,nodeId:t.nodeId,type:t.type,section:t.section};if(e.push(l),t.children){var c,u=(0,o.A)(t.children);try{for(u.s();!(c=u.n()).done;){var h=c.value;this.flattenNodes(h,e)}}catch(t){u.e(t)}finally{u.f()}}}},{key:"generateEdges",value:function(t,e){if(t.children){var r,i=(0,d.D7)(),n=(0,o.A)(t.children);try{for(n.s();!(r=n.n()).done;){var a=r.value,s="edge";void 0!==a.section&&(s+=" section-edge-".concat(a.section));var l=t.level+1;s+=" edge-depth-".concat(l);var c={id:"edge_".concat(t.id,"_").concat(a.id),start:t.id.toString(),end:a.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:i.look,classes:s,depth:t.level,section:a.section};e.push(c),this.generateEdges(a,e)}}catch(t){n.e(t)}finally{n.f()}}}},{key:"getData",value:function(){var t=this.getMindmap(),e=(0,d.D7)(),r=e;if(void 0!==(0,d.TM)().layout||(r.layout="cose-bilkent"),!t)return{nodes:[],edges:[],config:r};p.Rm.debug("getData: mindmapRoot",t,e),this.assignSections(t);var i=[],n=[];this.flattenNodes(t,i),this.generateEdges(t,n),p.Rm.debug("getData: processed ".concat(i.length," nodes and ").concat(n.length," edges"));for(var a=new Map,o=0,s=i;o<s.length;o++){var l=s[o];a.set(l.id,{shape:l.shape,width:l.width,height:l.height,padding:l.padding})}return{nodes:i,edges:n,config:r,rootNode:t,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(a),type:"mindmap",diagramId:"mindmap-"+x()}}},{key:"getLogger",value:function(){return p.Rm}}])}(),(0,p.K2)(v,"MindmapDB"),v),w=(0,p.K2)(function(){var t=(0,n.A)((0,i.A)().m(function t(e,r,n,a){var o,s,l,g,f,y,m,v,x,b,k,C,A,D;return(0,i.A)().w(function(t){for(;;)switch(t.n){case 0:if(p.Rm.debug("Rendering mindmap diagram\n"+e),f=a.db,y=f.getData(),m=(0,c.A)(r,y.config.securityLevel),y.type=a.type,y.layoutAlgorithm=(0,h.q7)(y.config.layout,{fallback:"cose-bilkent"}),y.diagramId=r,f.getMindmap()){t.n=1;break}return t.a(2);case 1:return y.nodes.forEach(function(t){"rounded"===t.shape?(t.radius=15,t.taper=15,t.stroke="none",t.width=0,t.padding=15):"circle"===t.shape?t.padding=10:"rect"===t.shape?(t.width=0,t.padding=10):"hexagon"===t.shape&&(t.width=0,t.height=0)}),t.n=2,(0,h.XX)(y,m);case 2:v=(0,d.zj)(),x=v.themeVariables,b=x.useGradient,k=x.gradientStart,C=x.gradientStop,b&&k&&C&&(A=m.attr("id"),(D=m.append("defs").append("linearGradient").attr("id","".concat(A,"-gradient")).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%")).append("stop").attr("offset","0%").attr("stop-color",k).attr("stop-opacity",1),D.append("stop").attr("offset","100%").attr("stop-color",C).attr("stop-opacity",1)),(0,u.P)(m,null!==(o=null===(s=y.config.mindmap)||void 0===s?void 0:s.padding)&&void 0!==o?o:d.UI.mindmap.padding,"mindmapDiagram",null!==(l=null===(g=y.config.mindmap)||void 0===g?void 0:g.useMaxWidth)&&void 0!==l?l:d.UI.mindmap.useMaxWidth);case 3:return t.a(2)}},t)}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"draw"),S={draw:w},F=(0,p.K2)(function(t){for(var e=t.theme,r=t.look,i="",n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],(0,b.A)(t["lineColor"+n])?t["lineColor"+n]=(0,k.A)(t["lineColor"+n],20):t["lineColor"+n]=(0,C.A)(t["lineColor"+n],20);for(var a=0;a<t.THEME_COLOR_LIMIT;a++){var o,s=""+("neo"===r?Math.max(10-2*(a-1),2):17-3*a);i+="\n    .section-".concat(a-1," rect, .section-").concat(a-1," path, .section-").concat(a-1," circle, .section-").concat(a-1," polygon, .section-").concat(a-1," path  {\n      fill: ").concat(t["cScale"+a],";\n    }\n    .section-").concat(a-1," text {\n     fill: ").concat(t["cScaleLabel"+a],";\n    }\n     .section-").concat(a-1," span {\n     color: ").concat(t["cScaleLabel"+a],";\n    }\n    .node-icon-").concat(a-1," {\n      font-size: 40px;\n      color: ").concat(t["cScaleLabel"+a],";\n    }\n    .section-edge-").concat(a-1,"{\n      stroke: ").concat(t["cScale"+a],";\n    }\n    .edge-depth-").concat(a-1,"{\n      stroke-width: ").concat(s,";\n    }\n    .section-").concat(a-1," line {\n      stroke: ").concat(t["cScaleInv"+a],' ;\n      stroke-width: 3;\n    }\n\n    .disabled, .disabled circle, .disabled text {\n      fill: lightgray;\n    }\n    .disabled text {\n      fill: #efefef;\n    }\n    [data-look="neo"].mindmap-node.section-').concat(a-1,' rect, [data-look="neo"].mindmap-node.section-').concat(a-1,' path, [data-look="neo"].mindmap-node.section-').concat(a-1,' circle, [data-look="neo"].mindmap-node.section-').concat(a-1," polygon {\n      fill: ").concat("redux"===e||"redux-dark"===e||"neutral"===e?t.mainBkg:t["cScale"+a],";\n      stroke: ").concat("redux"===e||"redux-dark"===e?t.nodeBorder:t["cScale"+a],";\n      stroke-width: ").concat(null!==(o=t.strokeWidth)&&void 0!==o?o:2,'px;\n    }\n    [data-look="neo"].section-edge-').concat(a-1,"{\n      stroke: ").concat(null!=e&&e.includes("redux")||"neo-dark"===e?t.nodeBorder:t["cScale"+a],';\n    }\n    [data-look="neo"].mindmap-node.section-').concat(a-1," text {\n     fill: ").concat("redux"===e||"redux-dark"===e?t.nodeBorder:t["cScaleLabel"+("neutral"===e?1:a)],";\n    }\n    ")}return i},"genSections"),_=(0,p.K2)(function(t,e,r){for(var i="",n=0;n<t;n++)i+='\n    [data-look="neo"].mindmap-node.section-'.concat(n-1,' rect, [data-look="neo"].mindmap-node.section-').concat(n-1,' path, [data-look="neo"].mindmap-node.section-').concat(n-1,' circle, [data-look="neo"].mindmap-node.section-').concat(n-1," polygon {\n      stroke: url(").concat(e,"-gradient);\n      fill: ").concat(r,";\n    }\n    .section-").concat(n-1," line {\n      stroke-width: 0;\n    }");return i},"genGradient"),B=(0,p.K2)(function(t){var e=t.theme,r=t.svgId,i=t.dropShadow?t.dropShadow.replace("url(#drop-shadow)","url(".concat(r,"-drop-shadow)")):"none";return"\n  .edge {\n    stroke-width: 3;\n  }\n  ".concat(F(t),"\n  .section-root rect, .section-root path, .section-root circle, .section-root polygon  {\n    fill: ").concat(t.git0,";\n  }\n  .section-root text {\n    fill: ").concat(t.gitBranchLabel0,";\n  }\n  .section-root span {\n    color: ").concat(null!=e&&e.includes("redux")?t.nodeBorder:t.gitBranchLabel0,';\n  }\n  .icon-container {\n    height:100%;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n  }\n  .edge {\n    fill: none;\n  }\n  .mindmap-node-label {\n    dy: 1em;\n    alignment-baseline: middle;\n    text-anchor: middle;\n    dominant-baseline: middle;\n    text-align: center;\n  }\n  [data-look="neo"].mindmap-node  {\n    filter: ').concat(i,';\n  }\n  [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon  {\n    fill: ').concat(null!=e&&e.includes("redux")?t.mainBkg:t.git0,';\n  }\n  [data-look="neo"].mindmap-node.section-root .text-inner-tspan {\n    fill:  ').concat(null!=e&&e.includes("redux")?t.nodeBorder:t["cScaleLabel"+("neutral"===e?1:0)],";\n  }\n  ").concat(t.useGradient&&r&&t.mainBkg?_(t.THEME_COLOR_LIMIT,r,t.mainBkg):"","\n")},"getStyles"),L={get db(){return new T},renderer:S,parser:D,styles:B}},57530:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return _}});var i=r(81587),n=r(74721),a=r(20908),o=r(30388),s=r(52067),l=r(17362),c=r(34539),u=r(40985),h=r(68548),d=r(79510),p=r(63219),g=u.UI.pie,f={sections:new Map,showData:!1,config:g},y=f.sections,m=f.showData,v=structuredClone(g),x=(0,h.K2)(function(){return structuredClone(v)},"getConfig"),b=(0,h.K2)(function(){y=new Map,m=f.showData,(0,u.IU)()},"clear"),k=(0,h.K2)(function(t){var e=t.label,r=t.value;if(r<0)throw new Error('"'.concat(e,'" has invalid value: ').concat(r,". Negative values are not allowed in pie charts. All slice values must be >= 0."));y.has(e)||(y.set(e,r),h.Rm.debug("added new section: ".concat(e,", with value: ").concat(r)))},"addSection"),C=(0,h.K2)(function(){return y},"getSections"),A=(0,h.K2)(function(t){m=t},"setShowData"),D=(0,h.K2)(function(){return m},"getShowData"),E={getConfig:x,clear:b,setDiagramTitle:u.ke,getDiagramTitle:u.ab,setAccTitle:u.SV,getAccTitle:u.iN,setAccDescription:u.EI,getAccDescription:u.m7,addSection:k,getSections:C,setShowData:A,getShowData:D},T=(0,h.K2)(function(t,e){(0,l.S)(t,e),e.setShowData(t.showData),t.sections.map(e.addSection)},"populateDb"),w={parse:(0,h.K2)(function(){var t=(0,o.A)((0,a.A)().m(function t(e){var r;return(0,a.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,(0,d.qg)("pie",e);case 1:r=t.v,h.Rm.debug(r),T(r,E);case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),"parse")},S=(0,h.K2)(function(t){return"\n  .pieCircle{\n    stroke: ".concat(t.pieStrokeColor,";\n    stroke-width : ").concat(t.pieStrokeWidth,";\n    opacity : ").concat(t.pieOpacity,";\n  }\n  .pieOuterCircle{\n    stroke: ").concat(t.pieOuterStrokeColor,";\n    stroke-width: ").concat(t.pieOuterStrokeWidth,";\n    fill: none;\n  }\n  .pieTitleText {\n    text-anchor: middle;\n    font-size: ").concat(t.pieTitleTextSize,";\n    fill: ").concat(t.pieTitleTextColor,";\n    font-family: ").concat(t.fontFamily,";\n  }\n  .slice {\n    font-family: ").concat(t.fontFamily,";\n    fill: ").concat(t.pieSectionTextColor,";\n    font-size:").concat(t.pieSectionTextSize,";\n    // fill: white;\n  }\n  .legend text {\n    fill: ").concat(t.pieLegendTextColor,";\n    font-family: ").concat(t.fontFamily,";\n    font-size: ").concat(t.pieLegendTextSize,";\n  }\n")},"getStyles"),F=(0,h.K2)(function(t){var e=(0,n.A)(t.values()).reduce(function(t,e){return t+e},0),r=(0,n.A)(t.entries()).map(function(t){var e=(0,i.A)(t,2);return{label:e[0],value:e[1]}}).filter(function(t){return t.value/e*100>=1});return(0,p.rLf)().value(function(t){return t.value}).sort(null)(r)},"createPieArcs"),_={parser:w,db:E,renderer:{draw:(0,h.K2)(function(t,e,r,a){var o,l;h.Rm.debug("rendering pie chart\n"+t);var d=a.db,g=(0,u.D7)(),f=(0,c.$t)(d.getConfig(),g.pie),y=18,m=450,v=m,x=(0,s.D)(e),b=x.append("g");b.attr("transform","translate(225,225)");var k=g.themeVariables,C=(0,c.I5)(k.pieOuterStrokeWidth),A=(0,i.A)(C,1)[0];null!=A||(A=2);var D=f.textPosition,E=Math.min(v,m)/2-40,T=(0,p.JLW)().innerRadius(0).outerRadius(E),w=(0,p.JLW)().innerRadius(E*D).outerRadius(E*D);b.append("circle").attr("cx",0).attr("cy",0).attr("r",E+A/2).attr("class","pieOuterCircle");var S=d.getSections(),_=F(S),B=[k.pie1,k.pie2,k.pie3,k.pie4,k.pie5,k.pie6,k.pie7,k.pie8,k.pie9,k.pie10,k.pie11,k.pie12],L=0;S.forEach(function(t){L+=t});var I=_.filter(function(t){return"0"!==(t.data.value/L*100).toFixed(0)}),R=(0,p.UMr)(B).domain((0,n.A)(S.keys()));b.selectAll("mySlices").data(I).enter().append("path").attr("d",T).attr("fill",function(t){return R(t.data.label)}).attr("class","pieCircle"),b.selectAll("mySlices").data(I).enter().append("text").text(function(t){return(t.data.value/L*100).toFixed(0)+"%"}).attr("transform",function(t){return"translate("+w.centroid(t)+")"}).style("text-anchor","middle").attr("class","slice");var O=b.append("text").text(d.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText"),M=(0,n.A)(S.entries()).map(function(t){var e=(0,i.A)(t,2);return{label:e[0],value:e[1]}}),N=b.selectAll(".legend").data(M).enter().append("g").attr("class","legend").attr("transform",function(t,e){return"translate(216,"+(22*e-22*M.length/2)+")"});N.append("rect").attr("width",y).attr("height",y).style("fill",function(t){return R(t.label)}).style("stroke",function(t){return R(t.label)}),N.append("text").attr("x",22).attr("y",14).text(function(t){return d.getShowData()?"".concat(t.label," [").concat(t.value,"]"):t.label});var K=512+Math.max.apply(Math,(0,n.A)(N.selectAll("text").nodes().map(function(t){var e;return null!==(e=null==t?void 0:t.getBoundingClientRect().width)&&void 0!==e?e:0}))),P=null!==(o=null===(l=O.node())||void 0===l?void 0:l.getBoundingClientRect().width)&&void 0!==o?o:0,q=225-P/2,z=225+P/2,W=Math.min(0,q),Y=Math.max(K,z)-W;x.attr("viewBox","".concat(W," 0 ").concat(Y," ").concat(m)),(0,u.a$)(x,m,Y,f.useMaxWidth)},"draw")},styles:S}},27691:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return W}});var i,n,a=r(81587),o=r(3604),s=r(25647),l=r(28578),c=r(84056),u=r(74721),h=r(41034),d=r(25026),p=r(69492),g=r(40985),f=r(68548),y=r(63219),m=function(){var t=(0,f.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,3],r=[1,4],i=[1,5],n=[1,6],a=[1,7],o=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],s=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],c=[2,36],u=[1,37],h=[1,36],d=[1,38],p=[1,35],g=[1,43],y=[1,41],m=[1,45],v=[1,14],x=[1,23],b=[1,18],k=[1,19],C=[1,20],A=[1,21],D=[1,22],E=[1,24],T=[1,25],w=[1,26],S=[1,27],F=[1,28],_=[1,29],B=[1,32],L=[1,33],I=[1,34],R=[1,39],O=[1,40],M=[1,42],N=[1,44],K=[1,63],P=[1,62],q=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],z=[1,66],W=[1,67],Y=[1,68],$=[1,69],j=[1,70],U=[1,71],H=[1,72],V=[1,73],G=[1,74],X=[1,75],Z=[1,76],Q=[1,77],J=[4,5,6,7,8,9,10,11,12,13,14,15,18],tt=[1,91],et=[1,92],rt=[1,93],it=[1,100],nt=[1,94],at=[1,97],ot=[1,95],st=[1,96],lt=[1,98],ct=[1,99],ut=[1,103],ht=[10,55,56,57],dt=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],pt={trace:(0,f.K2)(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:(0,f.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 23:case 68:this.$=a[s];break;case 24:case 69:this.$=a[s-1]+""+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],i.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),i.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 46:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:i.addPoint(a[s-3],"",a[s-1],a[s],[]);break;case 48:i.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:i.addPoint(a[s-4],"",a[s-2],a[s-1],a[s]);break;case 50:i.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:i.setXAxisLeftText(a[s-2]),i.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=" ⟶ ",i.setXAxisLeftText(a[s-1]);break;case 53:i.setXAxisLeftText(a[s]);break;case 54:i.setYAxisBottomText(a[s-2]),i.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=" ⟶ ",i.setYAxisBottomText(a[s-1]);break;case 56:i.setYAxisBottomText(a[s]);break;case 57:i.setQuadrant1Text(a[s]);break;case 58:i.setQuadrant2Text(a[s]);break;case 59:i.setQuadrant3Text(a[s]);break;case 60:i.setQuadrant4Text(a[s]);break;case 64:case 66:this.$={text:a[s],type:"text"};break;case 65:this.$={text:a[s-1].text+""+a[s],type:a[s-1].type};break;case 67:this.$={text:a[s],type:"markdown"}}},"anonymous"),table:[{18:e,26:1,27:2,28:r,55:i,56:n,57:a},{1:[3]},{18:e,26:8,27:2,28:r,55:i,56:n,57:a},{18:e,26:9,27:2,28:r,55:i,56:n,57:a},t(o,[2,33],{29:10}),t(s,[2,61]),t(s,[2,62]),t(s,[2,63]),{1:[2,30]},{1:[2,31]},t(l,c,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:h,10:d,12:p,13:g,14:y,15:m,18:v,25:x,35:b,37:k,39:C,41:A,42:D,48:E,50:T,51:w,52:S,53:F,54:_,60:B,61:L,63:I,64:R,65:O,66:M,67:N}),t(o,[2,34]),{27:46,55:i,56:n,57:a},t(l,[2,37]),t(l,c,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:h,10:d,12:p,13:g,14:y,15:m,18:v,25:x,35:b,37:k,39:C,41:A,42:D,48:E,50:T,51:w,52:S,53:F,54:_,60:B,61:L,63:I,64:R,65:O,66:M,67:N}),t(l,[2,39]),t(l,[2,40]),t(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(l,[2,45]),t(l,[2,46]),{18:[1,51]},{4:u,5:h,10:d,12:p,13:g,14:y,15:m,43:52,58:31,60:B,61:L,63:I,64:R,65:O,66:M,67:N},{4:u,5:h,10:d,12:p,13:g,14:y,15:m,43:53,58:31,60:B,61:L,63:I,64:R,65:O,66:M,67:N},{4:u,5:h,10:d,12:p,13:g,14:y,15:m,43:54,58:31,60:B,61:L,63:I,64:R,65:O,66:M,67:N},{4:u,5:h,10:d,12:p,13:g,14:y,15:m,43:55,58:31,60:B,61:L,63:I,64:R,65:O,66:M,67:N},{4:u,5:h,10:d,12:p,13:g,14:y,15:m,43:56,58:31,60:B,61:L,63:I,64:R,65:O,66:M,67:N},{4:u,5:h,10:d,12:p,13:g,14:y,15:m,43:57,58:31,60:B,61:L,63:I,64:R,65:O,66:M,67:N},{4:u,5:h,8:K,10:d,12:p,13:g,14:y,15:m,18:P,44:[1,58],47:[1,59],58:61,59:60,63:I,64:R,65:O,66:M,67:N},t(q,[2,64]),t(q,[2,66]),t(q,[2,67]),t(q,[2,70]),t(q,[2,71]),t(q,[2,72]),t(q,[2,73]),t(q,[2,74]),t(q,[2,75]),t(q,[2,76]),t(q,[2,77]),t(q,[2,78]),t(q,[2,79]),t(q,[2,80]),t(q,[2,81]),t(o,[2,35]),t(l,[2,38]),t(l,[2,42]),t(l,[2,43]),t(l,[2,44]),{3:65,4:z,5:W,6:Y,7:$,8:j,9:U,10:H,11:V,12:G,13:X,14:Z,15:Q,21:64},t(l,[2,53],{59:60,58:61,4:u,5:h,8:K,10:d,12:p,13:g,14:y,15:m,18:P,49:[1,78],63:I,64:R,65:O,66:M,67:N}),t(l,[2,56],{59:60,58:61,4:u,5:h,8:K,10:d,12:p,13:g,14:y,15:m,18:P,49:[1,79],63:I,64:R,65:O,66:M,67:N}),t(l,[2,57],{59:60,58:61,4:u,5:h,8:K,10:d,12:p,13:g,14:y,15:m,18:P,63:I,64:R,65:O,66:M,67:N}),t(l,[2,58],{59:60,58:61,4:u,5:h,8:K,10:d,12:p,13:g,14:y,15:m,18:P,63:I,64:R,65:O,66:M,67:N}),t(l,[2,59],{59:60,58:61,4:u,5:h,8:K,10:d,12:p,13:g,14:y,15:m,18:P,63:I,64:R,65:O,66:M,67:N}),t(l,[2,60],{59:60,58:61,4:u,5:h,8:K,10:d,12:p,13:g,14:y,15:m,18:P,63:I,64:R,65:O,66:M,67:N}),{45:[1,80]},{44:[1,81]},t(q,[2,65]),t(q,[2,82]),t(q,[2,83]),t(q,[2,84]),{3:83,4:z,5:W,6:Y,7:$,8:j,9:U,10:H,11:V,12:G,13:X,14:Z,15:Q,18:[1,82]},t(J,[2,23]),t(J,[2,1]),t(J,[2,2]),t(J,[2,3]),t(J,[2,4]),t(J,[2,5]),t(J,[2,6]),t(J,[2,7]),t(J,[2,8]),t(J,[2,9]),t(J,[2,10]),t(J,[2,11]),t(J,[2,12]),t(l,[2,52],{58:31,43:84,4:u,5:h,10:d,12:p,13:g,14:y,15:m,60:B,61:L,63:I,64:R,65:O,66:M,67:N}),t(l,[2,55],{58:31,43:85,4:u,5:h,10:d,12:p,13:g,14:y,15:m,60:B,61:L,63:I,64:R,65:O,66:M,67:N}),{46:[1,86]},{45:[1,87]},{4:tt,5:et,6:rt,8:it,11:nt,13:at,16:90,17:ot,18:st,19:lt,20:ct,22:89,23:88},t(J,[2,24]),t(l,[2,51],{59:60,58:61,4:u,5:h,8:K,10:d,12:p,13:g,14:y,15:m,18:P,63:I,64:R,65:O,66:M,67:N}),t(l,[2,54],{59:60,58:61,4:u,5:h,8:K,10:d,12:p,13:g,14:y,15:m,18:P,63:I,64:R,65:O,66:M,67:N}),t(l,[2,47],{22:89,16:90,23:101,4:tt,5:et,6:rt,8:it,11:nt,13:at,17:ot,18:st,19:lt,20:ct}),{46:[1,102]},t(l,[2,29],{10:ut}),t(ht,[2,27],{16:104,4:tt,5:et,6:rt,8:it,11:nt,13:at,17:ot,18:st,19:lt,20:ct}),t(dt,[2,25]),t(dt,[2,13]),t(dt,[2,14]),t(dt,[2,15]),t(dt,[2,16]),t(dt,[2,17]),t(dt,[2,18]),t(dt,[2,19]),t(dt,[2,20]),t(dt,[2,21]),t(dt,[2,22]),t(l,[2,49],{10:ut}),t(l,[2,48],{22:89,16:90,23:105,4:tt,5:et,6:rt,8:it,11:nt,13:at,17:ot,18:st,19:lt,20:ct}),{4:tt,5:et,6:rt,8:it,11:nt,13:at,16:90,17:ot,18:st,19:lt,20:ct,22:106},t(dt,[2,26]),t(l,[2,50],{10:ut}),t(ht,[2,28],{16:104,4:tt,5:et,6:rt,8:it,11:nt,13:at,17:ot,18:st,19:lt,20:ct})],defaultActions:{8:[2,30],9:[2,31]},parseError:(0,f.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,f.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,u=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var y=d.yylloc;a.push(y);var m=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,f.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,f.K2)(v,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=v()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:d.match,token:this.terminals_[x]||x,line:d.yylineno,loc:y,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(d.yytext),a.push(d.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,y=d.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,p.yy,C[1],n,a].concat(h))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},gt=function(){return{EOF:1,parseError:(0,f.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,f.K2)(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},"setInput"),input:(0,f.K2)(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},"input"),unput:(0,f.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,f.K2)(function(){return this._more=!0,this},"more"),reject:(0,f.K2)(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})},"reject"),less:(0,f.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,f.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,f.K2)(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,"")},"upcomingInput"),showPosition:(0,f.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,f.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,f.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,f.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,f.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,f.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,f.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,f.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,f.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,f.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,f.K2)(function(t,e,r,i){switch(r){case 0:case 1:case 3:break;case 2:return 55;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 23:case 25:case 31:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 24:this.begin("string");break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}}();function ft(){this.yy={}}return pt.lexer=gt,(0,f.K2)(ft,"Parser"),ft.prototype=pt,pt.Parser=ft,new ft}();m.parser=m;var v=m,x=(0,g.P$)(),b=(i=function(){return(0,p.A)(function t(){(0,d.A)(this,t),this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()},[{key:"getDefaultData",value:function(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}},{key:"getDefaultConfig",value:function(){var t,e,r,i,n,a,o,s,l,c,u,h,d,p,f,y,m,v;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:(null===(t=g.UI.quadrantChart)||void 0===t?void 0:t.chartWidth)||500,chartWidth:(null===(e=g.UI.quadrantChart)||void 0===e?void 0:e.chartHeight)||500,titlePadding:(null===(r=g.UI.quadrantChart)||void 0===r?void 0:r.titlePadding)||10,titleFontSize:(null===(i=g.UI.quadrantChart)||void 0===i?void 0:i.titleFontSize)||20,quadrantPadding:(null===(n=g.UI.quadrantChart)||void 0===n?void 0:n.quadrantPadding)||5,xAxisLabelPadding:(null===(a=g.UI.quadrantChart)||void 0===a?void 0:a.xAxisLabelPadding)||5,yAxisLabelPadding:(null===(o=g.UI.quadrantChart)||void 0===o?void 0:o.yAxisLabelPadding)||5,xAxisLabelFontSize:(null===(s=g.UI.quadrantChart)||void 0===s?void 0:s.xAxisLabelFontSize)||16,yAxisLabelFontSize:(null===(l=g.UI.quadrantChart)||void 0===l?void 0:l.yAxisLabelFontSize)||16,quadrantLabelFontSize:(null===(c=g.UI.quadrantChart)||void 0===c?void 0:c.quadrantLabelFontSize)||16,quadrantTextTopPadding:(null===(u=g.UI.quadrantChart)||void 0===u?void 0:u.quadrantTextTopPadding)||5,pointTextPadding:(null===(h=g.UI.quadrantChart)||void 0===h?void 0:h.pointTextPadding)||5,pointLabelFontSize:(null===(d=g.UI.quadrantChart)||void 0===d?void 0:d.pointLabelFontSize)||12,pointRadius:(null===(p=g.UI.quadrantChart)||void 0===p?void 0:p.pointRadius)||5,xAxisPosition:(null===(f=g.UI.quadrantChart)||void 0===f?void 0:f.xAxisPosition)||"top",yAxisPosition:(null===(y=g.UI.quadrantChart)||void 0===y?void 0:y.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:(null===(m=g.UI.quadrantChart)||void 0===m?void 0:m.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:(null===(v=g.UI.quadrantChart)||void 0===v?void 0:v.quadrantExternalBorderStrokeWidth)||2}}},{key:"getDefaultThemeConfig",value:function(){return{quadrant1Fill:x.quadrant1Fill,quadrant2Fill:x.quadrant2Fill,quadrant3Fill:x.quadrant3Fill,quadrant4Fill:x.quadrant4Fill,quadrant1TextFill:x.quadrant1TextFill,quadrant2TextFill:x.quadrant2TextFill,quadrant3TextFill:x.quadrant3TextFill,quadrant4TextFill:x.quadrant4TextFill,quadrantPointFill:x.quadrantPointFill,quadrantPointTextFill:x.quadrantPointTextFill,quadrantXAxisTextFill:x.quadrantXAxisTextFill,quadrantYAxisTextFill:x.quadrantYAxisTextFill,quadrantTitleFill:x.quadrantTitleFill,quadrantInternalBorderStrokeFill:x.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:x.quadrantExternalBorderStrokeFill}}},{key:"clear",value:function(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,f.Rm.info("clear called")}},{key:"setData",value:function(t){this.data=(0,h.A)((0,h.A)({},this.data),t)}},{key:"addPoints",value:function(t){this.data.points=[].concat((0,u.A)(t),(0,u.A)(this.data.points))}},{key:"addClass",value:function(t,e){this.classes.set(t,e)}},{key:"setConfig",value:function(t){f.Rm.trace("setConfig called with: ",t),this.config=(0,h.A)((0,h.A)({},this.config),t)}},{key:"setThemeConfig",value:function(t){f.Rm.trace("setThemeConfig called with: ",t),this.themeConfig=(0,h.A)((0,h.A)({},this.themeConfig),t)}},{key:"calculateSpace",value:function(t,e,r,i){var n=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,a={top:"top"===t&&e?n:0,bottom:"bottom"===t&&e?n:0},o=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,s={left:"left"===this.config.yAxisPosition&&r?o:0,right:"right"===this.config.yAxisPosition&&r?o:0},l=this.config.titleFontSize+2*this.config.titlePadding,c={top:i?l:0},u=this.config.quadrantPadding+s.left,h=this.config.quadrantPadding+a.top+c.top,d=this.config.chartWidth-2*this.config.quadrantPadding-s.left-s.right,p=this.config.chartHeight-2*this.config.quadrantPadding-a.top-a.bottom-c.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:c,quadrantSpace:{quadrantLeft:u,quadrantTop:h,quadrantWidth:d,quadrantHalfWidth:d/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}},{key:"getAxisLabels",value:function(t,e,r,i){var n=i.quadrantSpace,a=i.titleSpace,o=n.quadrantHalfHeight,s=n.quadrantHeight,l=n.quadrantLeft,c=n.quadrantHalfWidth,u=n.quadrantTop,h=n.quadrantWidth,d=Boolean(this.data.xAxisRightText),p=Boolean(this.data.yAxisTopText),g=[];return this.data.xAxisLeftText&&e&&g.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+(d?c/2:0),y:"top"===t?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&e&&g.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+c+(d?c/2:0),y:"top"===t?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&r&&g.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+h+this.config.quadrantPadding,y:u+s-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&r&&g.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+h+this.config.quadrantPadding,y:u+o-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?"center":"left",horizontalPos:"top",rotation:-90}),g}},{key:"getQuadrants",value:function(t){for(var e=t.quadrantSpace,r=e.quadrantHalfHeight,i=e.quadrantLeft,n=e.quadrantHalfWidth,a=e.quadrantTop,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+n,y:a,width:n,height:r,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:a,width:n,height:r,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:a+r,width:n,height:r,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+n,y:a+r,width:n,height:r,fill:this.themeConfig.quadrant4Fill}],s=0,l=o;s<l.length;s++){var c=l[s];c.text.x=c.x+c.width/2,0===this.data.points.length?(c.text.y=c.y+c.height/2,c.text.horizontalPos="middle"):(c.text.y=c.y+this.config.quadrantTextTopPadding,c.text.horizontalPos="top")}return o}},{key:"getQuadrantPoints",value:function(t){var e=this,r=t.quadrantSpace,i=r.quadrantHeight,n=r.quadrantLeft,a=r.quadrantTop,o=r.quadrantWidth,s=(0,y.m4Y)().domain([0,1]).range([n,o+n]),l=(0,y.m4Y)().domain([0,1]).range([i+a,a]);return this.data.points.map(function(t){var r,i,n,a,o=e.classes.get(t.className);return o&&(t=(0,h.A)((0,h.A)({},o),t)),{x:s(t.x),y:l(t.y),fill:null!==(r=t.color)&&void 0!==r?r:e.themeConfig.quadrantPointFill,radius:null!==(i=t.radius)&&void 0!==i?i:e.config.pointRadius,text:{text:t.text,fill:e.themeConfig.quadrantPointTextFill,x:s(t.x),y:l(t.y)+e.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:e.config.pointLabelFontSize,rotation:0},strokeColor:null!==(n=t.strokeColor)&&void 0!==n?n:e.themeConfig.quadrantPointFill,strokeWidth:null!==(a=t.strokeWidth)&&void 0!==a?a:"0px"}})}},{key:"getBorders",value:function(t){var e=this.config.quadrantExternalBorderStrokeWidth/2,r=t.quadrantSpace,i=r.quadrantHalfHeight,n=r.quadrantHeight,a=r.quadrantLeft,o=r.quadrantHalfWidth,s=r.quadrantTop,l=r.quadrantWidth;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:s,x2:a+l+e,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+l,y1:s+e,x2:a+l,y2:s+n-e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:s+n,x2:a+l+e,y2:s+n},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+e,x2:a,y2:s+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+e,x2:a+o,y2:s+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+e,y1:s+i,x2:a+l-e,y2:s+i}]}},{key:"getTitle",value:function(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}},{key:"build",value:function(){var t=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),e=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),r=this.config.showTitle&&!!this.data.titleText,i=this.data.points.length>0?"bottom":this.config.xAxisPosition,n=this.calculateSpace(i,t,e,r);return{points:this.getQuadrantPoints(n),quadrants:this.getQuadrants(n),axisLabels:this.getAxisLabels(i,t,e,n),borderLines:this.getBorders(n),title:this.getTitle(r)}}}])}(),(0,f.K2)(i,"QuadrantBuilder"),i),k=(n=function(t){function e(t,r,i){var n;return(0,d.A)(this,e),(n=(0,s.A)(this,e,["value for ".concat(t," ").concat(r," is invalid, please use a valid ").concat(i)])).name="InvalidStyleError",n}return(0,l.A)(e,t),(0,p.A)(e)}((0,c.A)(Error)),(0,f.K2)(n,"InvalidStyleError"),n);function C(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}function A(t){return!/^\d+$/.test(t)}function D(t){return!/^\d+px$/.test(t)}(0,f.K2)(C,"validateHexCode"),(0,f.K2)(A,"validateNumber"),(0,f.K2)(D,"validateSizeInPixels");var E=(0,g.D7)();function T(t){return(0,g.jZ)(t.trim(),E)}(0,f.K2)(T,"textSanitizer");var w=new b;function S(t){w.setData({quadrant1Text:T(t.text)})}function F(t){w.setData({quadrant2Text:T(t.text)})}function _(t){w.setData({quadrant3Text:T(t.text)})}function B(t){w.setData({quadrant4Text:T(t.text)})}function L(t){w.setData({xAxisLeftText:T(t.text)})}function I(t){w.setData({xAxisRightText:T(t.text)})}function R(t){w.setData({yAxisTopText:T(t.text)})}function O(t){w.setData({yAxisBottomText:T(t.text)})}function M(t){var e,r={},i=(0,o.A)(t);try{for(i.s();!(e=i.n()).done;){var n=e.value.trim().split(/\s*:\s*/),s=(0,a.A)(n,2),l=s[0],c=s[1];if("radius"===l){if(A(c))throw new k(l,c,"number");r.radius=parseInt(c)}else if("color"===l){if(C(c))throw new k(l,c,"hex code");r.color=c}else if("stroke-color"===l){if(C(c))throw new k(l,c,"hex code");r.strokeColor=c}else{if("stroke-width"!==l)throw new Error("style named ".concat(l," is not supported."));if(D(c))throw new k(l,c,"number of pixels (eg. 10px)");r.strokeWidth=c}}}catch(t){i.e(t)}finally{i.f()}return r}function N(t,e,r,i,n){var a=M(n);w.addPoints([(0,h.A)({x:r,y:i,text:T(t.text),className:e},a)])}function K(t,e){w.addClass(t,M(e))}function P(t){w.setConfig({chartWidth:t})}function q(t){w.setConfig({chartHeight:t})}function z(){var t=(0,g.D7)(),e=t.themeVariables,r=t.quadrantChart;return r&&w.setConfig(r),w.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),w.setData({titleText:(0,g.ab)()}),w.build()}(0,f.K2)(S,"setQuadrant1Text"),(0,f.K2)(F,"setQuadrant2Text"),(0,f.K2)(_,"setQuadrant3Text"),(0,f.K2)(B,"setQuadrant4Text"),(0,f.K2)(L,"setXAxisLeftText"),(0,f.K2)(I,"setXAxisRightText"),(0,f.K2)(R,"setYAxisTopText"),(0,f.K2)(O,"setYAxisBottomText"),(0,f.K2)(M,"parseStyles"),(0,f.K2)(N,"addPoint"),(0,f.K2)(K,"addClass"),(0,f.K2)(P,"setWidth"),(0,f.K2)(q,"setHeight"),(0,f.K2)(z,"getQuadrantData");var W={parser:v,db:{setWidth:P,setHeight:q,setQuadrant1Text:S,setQuadrant2Text:F,setQuadrant3Text:_,setQuadrant4Text:B,setXAxisLeftText:L,setXAxisRightText:I,setYAxisTopText:R,setYAxisBottomText:O,parseStyles:M,addPoint:N,addClass:K,getQuadrantData:z,clear:(0,f.K2)(function(){w.clear(),(0,g.IU)()},"clear"),setAccTitle:g.SV,getAccTitle:g.iN,setDiagramTitle:g.ke,getDiagramTitle:g.ab,getAccDescription:g.m7,setAccDescription:g.EI},renderer:{draw:(0,f.K2)(function(t,e,r,i){var n,a,o,s,l,c;function u(t){return"top"===t?"hanging":"middle"}function h(t){return"left"===t?"start":"middle"}function d(t){return"translate(".concat(t.x,", ").concat(t.y,") rotate(").concat(t.rotation||0,")")}(0,f.K2)(u,"getDominantBaseLine"),(0,f.K2)(h,"getTextAnchor"),(0,f.K2)(d,"getTransformation");var p=(0,g.D7)();f.Rm.debug("Rendering quadrant chart\n"+t);var m,v=p.securityLevel;"sandbox"===v&&(m=(0,y.Ltv)("#i"+e));var x=("sandbox"===v?(0,y.Ltv)(m.nodes()[0].contentDocument.body):(0,y.Ltv)("body")).select('[id="'.concat(e,'"]')),b=x.append("g").attr("class","main"),k=null!==(n=null===(a=p.quadrantChart)||void 0===a?void 0:a.chartWidth)&&void 0!==n?n:500,C=null!==(o=null===(s=p.quadrantChart)||void 0===s?void 0:s.chartHeight)&&void 0!==o?o:500;(0,g.a$)(x,C,k,null===(l=null===(c=p.quadrantChart)||void 0===c?void 0:c.useMaxWidth)||void 0===l||l),x.attr("viewBox","0 0 "+k+" "+C),i.db.setHeight(C),i.db.setWidth(k);var A=i.db.getQuadrantData(),D=b.append("g").attr("class","quadrants"),E=b.append("g").attr("class","border"),T=b.append("g").attr("class","data-points"),w=b.append("g").attr("class","labels"),S=b.append("g").attr("class","title");A.title&&S.append("text").attr("x",0).attr("y",0).attr("fill",A.title.fill).attr("font-size",A.title.fontSize).attr("dominant-baseline",u(A.title.horizontalPos)).attr("text-anchor",h(A.title.verticalPos)).attr("transform",d(A.title)).text(A.title.text),A.borderLines&&E.selectAll("line").data(A.borderLines).enter().append("line").attr("x1",function(t){return t.x1}).attr("y1",function(t){return t.y1}).attr("x2",function(t){return t.x2}).attr("y2",function(t){return t.y2}).style("stroke",function(t){return t.strokeFill}).style("stroke-width",function(t){return t.strokeWidth});var F=D.selectAll("g.quadrant").data(A.quadrants).enter().append("g").attr("class","quadrant");F.append("rect").attr("x",function(t){return t.x}).attr("y",function(t){return t.y}).attr("width",function(t){return t.width}).attr("height",function(t){return t.height}).attr("fill",function(t){return t.fill}),F.append("text").attr("x",0).attr("y",0).attr("fill",function(t){return t.text.fill}).attr("font-size",function(t){return t.text.fontSize}).attr("dominant-baseline",function(t){return u(t.text.horizontalPos)}).attr("text-anchor",function(t){return h(t.text.verticalPos)}).attr("transform",function(t){return d(t.text)}).text(function(t){return t.text.text}),w.selectAll("g.label").data(A.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(function(t){return t.text}).attr("fill",function(t){return t.fill}).attr("font-size",function(t){return t.fontSize}).attr("dominant-baseline",function(t){return u(t.horizontalPos)}).attr("text-anchor",function(t){return h(t.verticalPos)}).attr("transform",function(t){return d(t)});var _=T.selectAll("g.data-point").data(A.points).enter().append("g").attr("class","data-point");_.append("circle").attr("cx",function(t){return t.x}).attr("cy",function(t){return t.y}).attr("r",function(t){return t.radius}).attr("fill",function(t){return t.fill}).attr("stroke",function(t){return t.strokeColor}).attr("stroke-width",function(t){return t.strokeWidth}),_.append("text").attr("x",0).attr("y",0).text(function(t){return t.text.text}).attr("fill",function(t){return t.text.fill}).attr("font-size",function(t){return t.text.fontSize}).attr("dominant-baseline",function(t){return u(t.text.horizontalPos)}).attr("text-anchor",function(t){return h(t.text.verticalPos)}).attr("transform",function(t){return d(t.text)})},"draw")},styles:(0,f.K2)(function(){return""},"styles")}},70102:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return A}});var i,n=r(20908),a=r(30388),o=r(74721),s=r(3604),l=r(25026),c=r(69492),u=(r(74423),r(21888)),h=r(61340),d=r(86349),p=(r(69914),r(607),r(86735),r(43376),r(17428),r(51266),r(34539)),g=r(40985),f=r(68548),y=function(){var t=(0,f.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,3],r=[1,4],i=[1,5],n=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],o=[1,22],s=[2,7],l=[1,26],c=[1,27],u=[1,28],h=[1,29],d=[1,33],p=[1,34],g=[1,35],y=[1,36],m=[1,37],v=[1,38],x=[1,24],b=[1,31],k=[1,32],C=[1,30],A=[1,39],D=[1,40],E=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],T=[1,61],w=[89,90],S=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],F=[27,29],_=[1,70],B=[1,71],L=[1,72],I=[1,73],R=[1,74],O=[1,75],M=[1,76],N=[1,83],K=[1,80],P=[1,84],q=[1,85],z=[1,86],W=[1,87],Y=[1,88],$=[1,89],j=[1,90],U=[1,91],H=[1,92],V=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],G=[63,64],X=[1,101],Z=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],Q=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],J=[1,110],tt=[1,106],et=[1,107],rt=[1,108],it=[1,109],nt=[1,111],at=[1,116],ot=[1,117],st=[1,114],lt=[1,115],ct={trace:(0,f.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:(0,f.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 4:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:i.setDirection("TB");break;case 18:i.setDirection("BT");break;case 19:i.setDirection("RL");break;case 20:i.setDirection("LR");break;case 21:i.addRequirement(a[s-3],a[s-4]);break;case 22:i.addRequirement(a[s-5],a[s-6]),i.setClass([a[s-5]],a[s-3]);break;case 23:i.setNewReqId(a[s-2]);break;case 24:i.setNewReqText(a[s-2]);break;case 25:i.setNewReqRisk(a[s-2]);break;case 26:i.setNewReqVerifyMethod(a[s-2]);break;case 29:this.$=i.RequirementType.REQUIREMENT;break;case 30:this.$=i.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=i.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=i.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=i.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=i.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=i.RiskLevel.LOW_RISK;break;case 36:this.$=i.RiskLevel.MED_RISK;break;case 37:this.$=i.RiskLevel.HIGH_RISK;break;case 38:this.$=i.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=i.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=i.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=i.VerifyType.VERIFY_TEST;break;case 42:i.addElement(a[s-3]);break;case 43:i.addElement(a[s-5]),i.setClass([a[s-5]],a[s-3]);break;case 44:i.setNewElementType(a[s-2]);break;case 45:i.setNewElementDocRef(a[s-2]);break;case 48:i.addRelationship(a[s-2],a[s],a[s-4]);break;case 49:i.addRelationship(a[s-2],a[s-4],a[s]);break;case 50:this.$=i.Relationships.CONTAINS;break;case 51:this.$=i.Relationships.COPIES;break;case 52:this.$=i.Relationships.DERIVES;break;case 53:this.$=i.Relationships.SATISFIES;break;case 54:this.$=i.Relationships.VERIFIES;break;case 55:this.$=i.Relationships.REFINES;break;case 56:this.$=i.Relationships.TRACES;break;case 57:this.$=a[s-2],i.defineClass(a[s-1],a[s]);break;case 58:i.setClass(a[s-1],a[s]);break;case 59:i.setClass([a[s-2]],a[s]);break;case 60:case 62:case 65:this.$=[a[s]];break;case 61:case 63:this.$=a[s-2].concat([a[s]]);break;case 64:this.$=a[s-2],i.setCssStyle(a[s-1],a[s]);break;case 66:a[s-2].push(a[s]),this.$=a[s-2];break;case 68:this.$=a[s-1]+a[s]}},"anonymous"),table:[{3:1,4:2,6:e,9:r,11:i,13:n},{1:[3]},{3:8,4:2,5:[1,7],6:e,9:r,11:i,13:n},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(a,[2,6]),{3:12,4:2,6:e,9:r,11:i,13:n},{1:[2,2]},{4:17,5:o,7:13,8:s,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:g,44:y,45:m,46:v,54:x,72:b,74:k,77:C,89:A,90:D},t(a,[2,4]),t(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:o,7:42,8:s,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:g,44:y,45:m,46:v,54:x,72:b,74:k,77:C,89:A,90:D},{4:17,5:o,7:43,8:s,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:g,44:y,45:m,46:v,54:x,72:b,74:k,77:C,89:A,90:D},{4:17,5:o,7:44,8:s,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:g,44:y,45:m,46:v,54:x,72:b,74:k,77:C,89:A,90:D},{4:17,5:o,7:45,8:s,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:g,44:y,45:m,46:v,54:x,72:b,74:k,77:C,89:A,90:D},{4:17,5:o,7:46,8:s,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:g,44:y,45:m,46:v,54:x,72:b,74:k,77:C,89:A,90:D},{4:17,5:o,7:47,8:s,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:g,44:y,45:m,46:v,54:x,72:b,74:k,77:C,89:A,90:D},{4:17,5:o,7:48,8:s,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:g,44:y,45:m,46:v,54:x,72:b,74:k,77:C,89:A,90:D},{4:17,5:o,7:49,8:s,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:g,44:y,45:m,46:v,54:x,72:b,74:k,77:C,89:A,90:D},{4:17,5:o,7:50,8:s,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:c,23:u,24:h,25:23,33:25,41:d,42:p,43:g,44:y,45:m,46:v,54:x,72:b,74:k,77:C,89:A,90:D},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},t(E,[2,17]),t(E,[2,18]),t(E,[2,19]),t(E,[2,20]),{30:60,33:62,75:T,89:A,90:D},{30:63,33:62,75:T,89:A,90:D},{30:64,33:62,75:T,89:A,90:D},t(w,[2,29]),t(w,[2,30]),t(w,[2,31]),t(w,[2,32]),t(w,[2,33]),t(w,[2,34]),t(S,[2,81]),t(S,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},t(F,[2,79]),t(F,[2,80]),{27:[1,67],29:[1,68]},t(F,[2,85]),t(F,[2,86]),{62:69,65:_,66:B,67:L,68:I,69:R,70:O,71:M},{62:77,65:_,66:B,67:L,68:I,69:R,70:O,71:M},{30:78,33:62,75:T,89:A,90:D},{73:79,75:N,76:K,78:81,79:82,80:P,81:q,82:z,83:W,84:Y,85:$,86:j,87:U,88:H},t(V,[2,60]),t(V,[2,62]),{73:93,75:N,76:K,78:81,79:82,80:P,81:q,82:z,83:W,84:Y,85:$,86:j,87:U,88:H},{30:94,33:62,75:T,76:K,89:A,90:D},{5:[1,95]},{30:96,33:62,75:T,89:A,90:D},{5:[1,97]},{30:98,33:62,75:T,89:A,90:D},{63:[1,99]},t(G,[2,50]),t(G,[2,51]),t(G,[2,52]),t(G,[2,53]),t(G,[2,54]),t(G,[2,55]),t(G,[2,56]),{64:[1,100]},t(E,[2,59],{76:K}),t(E,[2,64],{76:X}),{33:103,75:[1,102],89:A,90:D},t(Z,[2,65],{79:104,75:N,80:P,81:q,82:z,83:W,84:Y,85:$,86:j,87:U,88:H}),t(Q,[2,67]),t(Q,[2,69]),t(Q,[2,70]),t(Q,[2,71]),t(Q,[2,72]),t(Q,[2,73]),t(Q,[2,74]),t(Q,[2,75]),t(Q,[2,76]),t(Q,[2,77]),t(Q,[2,78]),t(E,[2,57],{76:X}),t(E,[2,58],{76:K}),{5:J,28:105,31:tt,34:et,36:rt,38:it,40:nt},{27:[1,112],76:K},{5:at,40:ot,56:113,57:st,59:lt},{27:[1,118],76:K},{33:119,89:A,90:D},{33:120,89:A,90:D},{75:N,78:121,79:82,80:P,81:q,82:z,83:W,84:Y,85:$,86:j,87:U,88:H},t(V,[2,61]),t(V,[2,63]),t(Q,[2,68]),t(E,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:J,28:126,31:tt,34:et,36:rt,38:it,40:nt},t(E,[2,28]),{5:[1,127]},t(E,[2,42]),{32:[1,128]},{32:[1,129]},{5:at,40:ot,56:130,57:st,59:lt},t(E,[2,47]),{5:[1,131]},t(E,[2,48]),t(E,[2,49]),t(Z,[2,66],{79:104,75:N,80:P,81:q,82:z,83:W,84:Y,85:$,86:j,87:U,88:H}),{33:132,89:A,90:D},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},t(E,[2,27]),{5:J,28:145,31:tt,34:et,36:rt,38:it,40:nt},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},t(E,[2,46]),{5:at,40:ot,56:152,57:st,59:lt},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},t(E,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},t(E,[2,43]),{5:J,28:159,31:tt,34:et,36:rt,38:it,40:nt},{5:J,28:160,31:tt,34:et,36:rt,38:it,40:nt},{5:J,28:161,31:tt,34:et,36:rt,38:it,40:nt},{5:J,28:162,31:tt,34:et,36:rt,38:it,40:nt},{5:at,40:ot,56:163,57:st,59:lt},{5:at,40:ot,56:164,57:st,59:lt},t(E,[2,23]),t(E,[2,24]),t(E,[2,25]),t(E,[2,26]),t(E,[2,44]),t(E,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:(0,f.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,f.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,u=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var y=d.yylloc;a.push(y);var m=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,f.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,f.K2)(v,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=v()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:d.match,token:this.terminals_[x]||x,line:d.yylineno,loc:y,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(d.yytext),a.push(d.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,y=d.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,p.yy,C[1],n,a].concat(h))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},ut=function(){return{EOF:1,parseError:(0,f.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,f.K2)(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},"setInput"),input:(0,f.K2)(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},"input"),unput:(0,f.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,f.K2)(function(){return this._more=!0,this},"more"),reject:(0,f.K2)(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})},"reject"),less:(0,f.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,f.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,f.K2)(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,"")},"upcomingInput"),showPosition:(0,f.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,f.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,f.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,f.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,f.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,f.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,f.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,f.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,f.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,f.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,f.K2)(function(t,e,r,i){switch(r){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 58:case 65:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:case 14:case 15:case 56:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:case 68:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 57:case 64:this.begin("string");break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 66:return"qString";case 67:return e.yytext=e.yytext.trim(),89;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,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,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}}}();function ht(){this.yy={}}return ct.lexer=ut,(0,f.K2)(ht,"Parser"),ht.prototype=ct,ct.Parser=ht,new ht}();y.parser=y;var m=y,v=(i=function(){return(0,c.A)(function t(){(0,l.A)(this,t),this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=g.SV,this.getAccTitle=g.iN,this.setAccDescription=g.EI,this.getAccDescription=g.m7,this.setDiagramTitle=g.ke,this.getDiagramTitle=g.ab,this.getConfig=(0,f.K2)(function(){return(0,g.D7)().requirement},"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)},[{key:"getDirection",value:function(){return this.direction}},{key:"setDirection",value:function(t){this.direction=t}},{key:"resetLatestRequirement",value:function(){this.latestRequirement=this.getInitialRequirement()}},{key:"resetLatestElement",value:function(){this.latestElement=this.getInitialElement()}},{key:"getInitialRequirement",value:function(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}},{key:"getInitialElement",value:function(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}},{key:"addRequirement",value:function(t,e){return this.requirements.has(t)||this.requirements.set(t,{name:t,type:e,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(t)}},{key:"getRequirements",value:function(){return this.requirements}},{key:"setNewReqId",value:function(t){void 0!==this.latestRequirement&&(this.latestRequirement.requirementId=t)}},{key:"setNewReqText",value:function(t){void 0!==this.latestRequirement&&(this.latestRequirement.text=t)}},{key:"setNewReqRisk",value:function(t){void 0!==this.latestRequirement&&(this.latestRequirement.risk=t)}},{key:"setNewReqVerifyMethod",value:function(t){void 0!==this.latestRequirement&&(this.latestRequirement.verifyMethod=t)}},{key:"addElement",value:function(t){return this.elements.has(t)||(this.elements.set(t,{name:t,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),f.Rm.info("Added new element: ",t)),this.resetLatestElement(),this.elements.get(t)}},{key:"getElements",value:function(){return this.elements}},{key:"setNewElementType",value:function(t){void 0!==this.latestElement&&(this.latestElement.type=t)}},{key:"setNewElementDocRef",value:function(t){void 0!==this.latestElement&&(this.latestElement.docRef=t)}},{key:"addRelationship",value:function(t,e,r){this.relations.push({type:t,src:e,dst:r})}},{key:"getRelationships",value:function(){return this.relations}},{key:"clear",value:function(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,(0,g.IU)()}},{key:"setCssStyle",value:function(t,e){var r,i=(0,s.A)(t);try{for(i.s();!(r=i.n()).done;){var n,a=r.value,l=null!==(n=this.requirements.get(a))&&void 0!==n?n:this.elements.get(a);if(!e||!l)return;var c,u=(0,s.A)(e);try{for(u.s();!(c=u.n()).done;){var h,d=c.value;if(d.includes(","))(h=l.cssStyles).push.apply(h,(0,o.A)(d.split(",")));else l.cssStyles.push(d)}}catch(t){u.e(t)}finally{u.f()}}}catch(t){i.e(t)}finally{i.f()}}},{key:"setClass",value:function(t,e){var r,i=(0,s.A)(t);try{for(i.s();!(r=i.n()).done;){var n,a=r.value,l=null!==(n=this.requirements.get(a))&&void 0!==n?n:this.elements.get(a);if(l){var c,u=(0,s.A)(e);try{for(u.s();!(c=u.n()).done;){var h,d=c.value;l.classes.push(d);var p,g=null===(h=this.classes.get(d))||void 0===h?void 0:h.styles;if(g)(p=l.cssStyles).push.apply(p,(0,o.A)(g))}}catch(t){u.e(t)}finally{u.f()}}}}catch(t){i.e(t)}finally{i.f()}}},{key:"defineClass",value:function(t,e){var r,i=this,n=(0,s.A)(t);try{var a=function(){var t=r.value,n=i.classes.get(t);void 0===n&&(n={id:t,styles:[],textStyles:[]},i.classes.set(t,n)),e&&e.forEach(function(t){if(/color/.exec(t)){var e=t.replace("fill","bgFill");n.textStyles.push(e)}n.styles.push(t)}),i.requirements.forEach(function(r){var i;r.classes.includes(t)&&(i=r.cssStyles).push.apply(i,(0,o.A)(e.flatMap(function(t){return t.split(",")})))}),i.elements.forEach(function(r){var i;r.classes.includes(t)&&(i=r.cssStyles).push.apply(i,(0,o.A)(e.flatMap(function(t){return t.split(",")})))})};for(n.s();!(r=n.n()).done;)a()}catch(t){n.e(t)}finally{n.f()}}},{key:"getClasses",value:function(){return this.classes}},{key:"getData",value:function(){var t,e=(0,g.D7)(),r=[],i=[],n=(0,s.A)(this.requirements.values());try{for(n.s();!(t=n.n()).done;){var a=t.value,o=a;o.id=a.name,o.cssStyles=a.cssStyles,o.cssClasses=a.classes.join(" "),o.shape="requirementBox",o.look=e.look,o.colorIndex=r.length,r.push(o)}}catch(t){n.e(t)}finally{n.f()}var l,c=(0,s.A)(this.elements.values());try{for(c.s();!(l=c.n()).done;){var u=l.value,h=u;h.shape="requirementBox",h.look=e.look,h.id=u.name,h.cssStyles=u.cssStyles,h.cssClasses=u.classes.join(" "),h.colorIndex=r.length,r.push(h)}}catch(t){c.e(t)}finally{c.f()}var d,p=(0,s.A)(this.relations);try{for(p.s();!(d=p.n()).done;){var f,y,m,v,x,b,k=d.value,C=0,A=k.type===this.Relationships.CONTAINS,D={id:"".concat(k.src,"-").concat(k.dst,"-").concat(C),start:null!==(f=null===(y=this.requirements.get(k.src))||void 0===y?void 0:y.name)&&void 0!==f?f:null===(m=this.elements.get(k.src))||void 0===m?void 0:m.name,end:null!==(v=null===(x=this.requirements.get(k.dst))||void 0===x?void 0:x.name)&&void 0!==v?v:null===(b=this.elements.get(k.dst))||void 0===b?void 0:b.name,label:"&lt;&lt;".concat(k.type,"&gt;&gt;"),classes:"relationshipLine",style:["fill:none",A?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:A?"normal":"dashed",arrowTypeStart:A?"requirement_contains":"",arrowTypeEnd:A?"":"requirement_arrow",look:e.look,labelType:"markdown"};i.push(D),C++}}catch(t){p.e(t)}finally{p.f()}return{nodes:r,edges:i,other:{},config:e,direction:this.getDirection()}}}])}(),(0,f.K2)(i,"RequirementDB"),i),x=(0,f.K2)(function(t){var e=(0,g.zj)(),r=e.themeVariables,i=e.look,n=r.bkgColorArray,a=r.borderColorArray;if(null==a||!a.length)return"";for(var o="",s=0;s<t.THEME_COLOR_LIMIT;s++)o+='\n\n    [data-look="'.concat(i,'"][data-color-id="color-').concat(s,'"].node path {\n    stroke: ').concat(a[s],";\n    fill: ").concat(null!=n&&n.length?n[s]:"",';\n    }\n\n    [data-look="').concat(i,'"][data-color-id="color-').concat(s,'"].node  rect {\n    stroke: ').concat(a[s],";\n    fill: ").concat(null!=n&&n.length?n[s]:"",";\n     }\n    ");return o},"genColor"),b=(0,f.K2)(function(t){var e=(0,g.zj)(),r=e.look,i=e.themeVariables.requirementEdgeLabelBackground;return"\n  ".concat(x(t),"\n  marker {\n    fill: ").concat(t.relationColor,";\n    stroke: ").concat(t.relationColor,";\n  }\n\n  marker.cross {\n    stroke: ").concat(t.lineColor,";\n  }\n\n  svg {\n    font-family: ").concat(t.fontFamily,";\n    font-size: ").concat(t.fontSize,";\n  }\n\n  .reqBox {\n    fill: ").concat(t.requirementBackground,";\n    fill-opacity: 1.0;\n    stroke: ").concat(t.requirementBorderColor,";\n    stroke-width: ").concat(t.requirementBorderSize,";\n  }\n  \n  .reqTitle, .reqLabel{\n    fill:  ").concat(t.requirementTextColor,";\n  }\n  .reqLabelBox {\n    fill: ").concat(t.relationLabelBackground,";\n    fill-opacity: 1.0;\n  }\n\n  .req-title-line {\n    stroke: ").concat(t.requirementBorderColor,";\n    stroke-width: ").concat(t.requirementBorderSize,";\n  }\n  .relationshipLine {\n    stroke: ").concat(t.relationColor,";\n    stroke-width: ").concat("neo"===r?t.strokeWidth:"1px",";\n  }\n  .relationshipLabel {\n    fill: ").concat(t.relationLabelColor,";\n  }\n    .edgeLabel {\n    background-color: ").concat(t.edgeLabelBackground,";\n  }\n  .edgeLabel .label rect {\n    fill: ").concat(t.edgeLabelBackground,";\n  }\n  .edgeLabel .label text {\n    fill: ").concat(t.relationLabelColor,";\n  }\n  .divider {\n    stroke: ").concat(t.nodeBorder,";\n    stroke-width: 1;\n  }\n  .label {\n    font-family: ").concat(t.fontFamily,";\n    color: ").concat(t.nodeTextColor||t.textColor,";\n  }\n  .label text,span {\n    fill: ").concat(t.nodeTextColor||t.textColor,";\n    color: ").concat(t.nodeTextColor||t.textColor,";\n  }\n  .labelBkg {\n    background-color: ").concat(null!=i?i:t.edgeLabelBackground,";\n  }\n\n")},"getStyles"),k={};(0,f.VA)(k,{draw:function(){return C}});var C=(0,f.K2)(function(){var t=(0,a.A)((0,n.A)().m(function t(e,r,i,a){var o,s,l,c,y,m,v,x,b,k,C;return(0,n.A)().w(function(t){for(;;)switch(t.n){case 0:return f.Rm.info("REF0:"),f.Rm.info("Drawing requirement diagram (unified)",r),y=(0,g.D7)(),m=y.securityLevel,v=y.state,x=y.layout,b=y.look,k=a.db.getData(),C=(0,u.A)(r,m),k.type=a.type,k.layoutAlgorithm=(0,d.q7)(x),k.nodeSpacing=null!==(o=null==v?void 0:v.nodeSpacing)&&void 0!==o?o:50,k.rankSpacing=null!==(s=null==v?void 0:v.rankSpacing)&&void 0!==s?s:50,k.markers="neo"===b?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],k.diagramId=r,t.n=1,(0,d.XX)(k,C);case 1:p._K.insertTitle(C,"requirementDiagramTitleText",null!==(l=null==v?void 0:v.titleTopMargin)&&void 0!==l?l:25,a.db.getDiagramTitle()),(0,h.P)(C,8,"requirementDiagram",null===(c=null==v?void 0:v.useMaxWidth)||void 0===c||c);case 2:return t.a(2)}},t)}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"draw"),A={parser:m,get db(){return new v},renderer:k,styles:b}},29803:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return M}});var i,n,a,o=r(3604),s=r(69492),l=r(25026),c=r(40985),u=r(68548),h=r(63219),d=r(53868),p=r(32555),g=r(34413),f=function(){var t=(0,u.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,9],r=[1,10],i=[1,5,10,12],n={trace:(0,u.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:(0,u.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 7:var l=i.findOrCreateNode(a[s-4].trim().replaceAll('""','"')),c=i.findOrCreateNode(a[s-2].trim().replaceAll('""','"')),u=parseFloat(a[s].trim());i.addLink(l,c,u);break;case 8:case 9:case 11:this.$=a[s];break;case 10:this.$=a[s-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:r},{15:18,16:7,17:8,18:e,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:e,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,u.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,u.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,h=0,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g.yy[f]=this.yy[f]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var m=p.options&&p.options.ranges;function v(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,u.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,u.K2)(v,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=v()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(p.yytext),a.push(p.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(c=p.yyleng,s=p.yytext,l=p.yylineno,y=p.yylloc,h>0&&h--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,g.yy,C[1],n,a].concat(d))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},a=function(){return{EOF:1,parseError:(0,u.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,u.K2)(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},"setInput"),input:(0,u.K2)(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},"input"),unput:(0,u.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,u.K2)(function(){return this._more=!0,this},"more"),reject:(0,u.K2)(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})},"reject"),less:(0,u.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,u.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,u.K2)(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,"")},"upcomingInput"),showPosition:(0,u.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,u.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,u.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,u.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,u.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,u.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,u.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,u.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,u.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,u.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,u.K2)(function(t,e,r,i){switch(r){case 0:case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}}}();function o(){this.yy={}}return n.lexer=a,(0,u.K2)(o,"Parser"),o.prototype=n,n.Parser=o,new o}();f.parser=f;var y=f,m=[],v=[],x=new Map,b=(0,u.K2)(function(){m=[],v=[],x=new Map,(0,c.IU)()},"clear"),k=(i=(0,s.A)(function t(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;(0,l.A)(this,t),this.source=e,this.target=r,this.value=i}),(0,u.K2)(i,"SankeyLink"),i),C=(0,u.K2)(function(t,e,r){m.push(new k(t,e,r))},"addLink"),A=(n=(0,s.A)(function t(e){(0,l.A)(this,t),this.ID=e}),(0,u.K2)(n,"SankeyNode"),n),D=(0,u.K2)(function(t){t=c.Y2.sanitizeText(t,(0,c.D7)());var e=x.get(t);return void 0===e&&(e=new A(t),x.set(t,e),v.push(e)),e},"findOrCreateNode"),E=(0,u.K2)(function(){return v},"getNodes"),T=(0,u.K2)(function(){return m},"getLinks"),w=(0,u.K2)(function(){return{nodes:v.map(function(t){return{id:t.ID}}),links:m.map(function(t){return{source:t.source.ID,target:t.target.ID,value:t.value}})}},"getGraph"),S={nodesMap:x,getConfig:(0,u.K2)(function(){return(0,c.D7)().sankey},"getConfig"),getNodes:E,getLinks:T,getGraph:w,addLink:C,findOrCreateNode:D,getAccTitle:c.iN,setAccTitle:c.SV,getAccDescription:c.m7,setAccDescription:c.EI,getDiagramTitle:c.ab,setDiagramTitle:c.ke,clear:b},F=(a=function(){function t(e){(0,l.A)(this,t),this.id=e,this.href="#".concat(e)}return(0,s.A)(t,[{key:"toString",value:function(){return"url("+this.href+")"}}],[{key:"next",value:function(e){return new t(e+ ++t.count)}}])}(),(0,u.K2)(a,"Uid"),a.count=0,a),_={left:p.kb,right:p.pG,center:p.gX,justify:p.pD},B=(0,u.K2)(function(t){var e,r=0,i=0,n=(0,o.A)(t);try{for(n.s();!(e=n.n()).done;){var a,s,l=e.value,c=null!==(a=l.value)&&void 0!==a?a:0;if(c>r)r=c,i=null!==(s=l.layer)&&void 0!==s?s:0}}catch(t){n.e(t)}finally{n.f()}return i},"findCentralNodeLayer"),L={draw:(0,u.K2)(function(t,e,r,i){var n,a,o,s,l,p,f,y,m,v,x,b,k,C,A,D,E=(0,c.D7)(),T=E.securityLevel,w=E.sankey,S=c.ME.sankey;"sandbox"===T&&(D=(0,h.Ltv)("#i"+e));var L="sandbox"===T?(0,h.Ltv)(D.nodes()[0].contentDocument.body):(0,h.Ltv)("body"),I="sandbox"===T?L.select('[id="'.concat(e,'"]')):(0,h.Ltv)('[id="'.concat(e,'"]')),R=null!==(n=null==w?void 0:w.width)&&void 0!==n?n:S.width,O=null!==(a=null==w?void 0:w.height)&&void 0!==a?a:S.width,M=null!==(o=null==w?void 0:w.useMaxWidth)&&void 0!==o?o:S.useMaxWidth,N=null!==(s=null==w?void 0:w.nodeAlignment)&&void 0!==s?s:S.nodeAlignment,K=null!==(l=null==w?void 0:w.prefix)&&void 0!==l?l:S.prefix,P=null!==(p=null==w?void 0:w.suffix)&&void 0!==p?p:S.suffix,q=null!==(f=null==w?void 0:w.showValues)&&void 0!==f?f:S.showValues,z=null!==(y=null!==(m=null==w?void 0:w.nodeWidth)&&void 0!==m?m:S.nodeWidth)&&void 0!==y?y:10,W=null!==(v=null!==(x=null==w?void 0:w.nodePadding)&&void 0!==x?x:S.nodePadding)&&void 0!==v?v:12,Y=null!==(b=null!==(k=null==w?void 0:w.labelStyle)&&void 0!==k?k:S.labelStyle)&&void 0!==b?b:"legacy",$=null!==(C=null==w?void 0:w.nodeColors)&&void 0!==C?C:{},j=i.db.getGraph(),U=_[N];(0,d.A)().nodeId(function(t){return t.id}).nodeWidth(z).nodePadding(W+(q?15:0)).nodeAlign(U).extent([[0,0],[R,O]])(j);var H=B(j.nodes),V=(0,h.UMr)(h.zt),G=(0,u.K2)(function(t){var e;return null!==(e=$[t])&&void 0!==e?e:V(t)},"getNodeColor");I.append("g").attr("class","nodes").selectAll(".node").data(j.nodes).join("g").attr("class","node").attr("id",function(t){return(t.uid=F.next("node-")).id}).attr("transform",function(t){return"translate("+t.x0+","+t.y0+")"}).attr("x",function(t){return t.x0}).attr("y",function(t){return t.y0}).append("rect").attr("height",function(t){return t.y1-t.y0}).attr("width",function(t){return t.x1-t.x0}).attr("fill",function(t){return G(t.id)});var X=(0,u.K2)(function(t){var e=t.id,r=t.value;return q?"".concat(e,"\n").concat(K).concat(Math.round(100*r)/100).concat(P):e},"getText"),Z=(0,u.K2)(function(t){var e;return"outlined"===Y?(null!==(e=t.layer)&&void 0!==e?e:0)<H?{x:t.x0-6,anchor:"end"}:{x:t.x1+6,anchor:"start"}:t.x0<R/2?{x:t.x1+6,anchor:"start"}:{x:t.x0-6,anchor:"end"}},"getLabelPosition"),Q=I.append("g").attr("class","node-labels").attr("font-size",14),J=(0,u.K2)(function(t){return Q.selectAll(t?".".concat(t):"text").data(j.nodes).join("text").attr("class",null!=t?t:null).attr("x",function(t){return Z(t).x}).attr("y",function(t){return(t.y1+t.y0)/2}).attr("dy","".concat(q?"0":"0.35","em")).attr("text-anchor",function(t){return Z(t).anchor}).text(X)},"appendLabel");"outlined"===Y?(J("sankey-label-bg"),J("sankey-label-fg")):J();var tt,et=I.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(j.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),rt=null!==(A=null==w?void 0:w.linkColor)&&void 0!==A?A:"gradient";if("gradient"===rt){var it=et.append("linearGradient").attr("id",function(t){return(t.uid=F.next("linearGradient-")).id}).attr("gradientUnits","userSpaceOnUse").attr("x1",function(t){return t.source.x1}).attr("x2",function(t){return t.target.x0});it.append("stop").attr("offset","0%").attr("stop-color",function(t){return G(t.source.id)}),it.append("stop").attr("offset","100%").attr("stop-color",function(t){return G(t.target.id)})}switch(rt){case"gradient":tt=(0,u.K2)(function(t){return t.uid},"coloring");break;case"source":tt=(0,u.K2)(function(t){return G(t.source.id)},"coloring");break;case"target":tt=(0,u.K2)(function(t){return G(t.target.id)},"coloring");break;default:tt=rt}et.append("path").attr("d",(0,g.A)()).attr("stroke",tt).attr("stroke-width",function(t){return Math.max(1,t.width)}),(0,c.ot)(void 0,I,0,M)},"draw")},I=(0,u.K2)(function(t){return t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim()},"prepareTextForParsing"),R=(0,u.K2)(function(t){return".label {\n    font-family: ".concat(t.fontFamily,";\n  }\n\n  .node-labels {\n    font-family: ").concat(t.fontFamily,";\n  }\n\n  /* Outlined label style - background stroke for better readability */\n  .sankey-label-bg {\n    stroke: ").concat(t.mainBkg||t.background||"#fff",";\n    stroke-width: 4px;\n    stroke-linejoin: round;\n    paint-order: stroke;\n  }\n\n  /* Foreground label text */\n  .sankey-label-fg {\n    fill: ").concat(t.textColor,";\n  }\n\n  /* Node styling */\n  .node rect {\n    shape-rendering: crispEdges;\n  }\n\n  /* Link styling */\n  .link {\n    fill: none;\n    stroke-opacity: 0.5;\n    mix-blend-mode: multiply;\n  }\n")},"getStyles"),O=y.parse.bind(y);y.parse=function(t){return O(I(t))};var M={styles:R,parser:y,db:S,renderer:L}},43899:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return ee}});var i,n=r(90454),a=r(90208),o=r(41034),s=r(3604),l=r(81587),c=r(20908),u=r(30388),h=r(74721),d=r(25026),p=r(69492),g=(r(74423),r(28582)),f=r(89906),y=r(3755),m=r(34539),v=r(40985),x=r(68548),b=r(63219),k=r(92457),C=function(){var t=(0,x.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,2],r=[1,3],i=[1,4],n=[2,4],a=[1,9],o=[1,11],s=[1,12],l=[1,14],c=[1,15],u=[1,17],h=[1,18],d=[1,19],p=[1,25],g=[1,26],f=[1,27],y=[1,28],m=[1,29],v=[1,30],b=[1,31],k=[1,32],C=[1,33],A=[1,34],D=[1,35],E=[1,36],T=[1,37],w=[1,38],S=[1,39],F=[1,40],_=[1,42],B=[1,43],L=[1,44],I=[1,45],R=[1,46],O=[1,47],M=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],N=[1,74],K=[1,80],P=[1,81],q=[1,82],z=[1,83],W=[1,84],Y=[1,85],$=[1,86],j=[1,87],U=[1,88],H=[1,89],V=[1,90],G=[1,91],X=[1,92],Z=[1,93],Q=[1,94],J=[1,95],tt=[1,96],et=[1,97],rt=[1,98],it=[1,99],nt=[1,100],at=[1,101],ot=[1,102],st=[1,103],lt=[1,104],ct=[1,105],ut=[2,78],ht=[4,5,17,51,53,54],dt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],pt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],gt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],ft=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],yt=[5,52],mt=[70,71,72,73],vt=[1,151],xt={trace:(0,x.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:(0,x.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 3:return i.apply(a[s]),a[s];case 4:case 10:case 8:case 9:case 14:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:case 67:this.$=a[s];break;case 16:a[s].type="createParticipant",this.$=a[s];break;case 17:a[s-1].unshift({type:"boxStart",boxData:i.parseBoxData(a[s-2])}),a[s-1].push({type:"boxEnd",boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:i.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:i.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:i.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:"loopStart",loopText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.LOOP_START}),a[s-1].push({type:"loopEnd",loopText:a[s-2],signalType:i.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:"rectStart",color:i.parseMessage(a[s-2]),signalType:i.LINETYPE.RECT_START}),a[s-1].push({type:"rectEnd",color:i.parseMessage(a[s-2]),signalType:i.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:"optStart",optText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.OPT_START}),a[s-1].push({type:"optEnd",optText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:"altStart",altText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.ALT_START}),a[s-1].push({type:"altEnd",signalType:i.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:"parStart",parText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.PAR_START}),a[s-1].push({type:"parEnd",signalType:i.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:"parStart",parText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.PAR_OVER_START}),a[s-1].push({type:"parEnd",signalType:i.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:"criticalStart",criticalText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.CRITICAL_START}),a[s-1].push({type:"criticalEnd",signalType:i.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:"breakStart",breakText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.BREAK_START}),a[s-1].push({type:"breakEnd",optText:i.parseMessage(a[s-2]),signalType:i.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:"option",optionText:i.parseMessage(a[s-1]),signalType:i.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:"and",parText:i.parseMessage(a[s-1]),signalType:i.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:"else",altText:i.parseMessage(a[s-1]),signalType:i.LINETYPE.ALT_ELSE},a[s]]);break;case 49:case 54:a[s-3].draw="participant",a[s-3].type="addParticipant",a[s-3].description=i.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:case 55:a[s-1].draw="participant",a[s-1].type="addParticipant",this.$=a[s-1];break;case 51:case 56:a[s-3].draw="actor",a[s-3].type="addParticipant",a[s-3].description=i.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw="actor",a[s-1].type="addParticipant",this.$=a[s-1];break;case 53:a[s-1].type="destroyParticipant",this.$=a[s-1];break;case 58:this.$=[a[s-1],{type:"addNote",placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:"addNote",placement:i.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:"addLinks",actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:"addALink",actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:"addProperties",actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:"addDetails",actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 68:this.$=i.PLACEMENT.LEFTOF;break;case 69:this.$=i.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:i.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:i.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:i.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:i.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:"addMessage",from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:i.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:i.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:"centralConnectionReverse",signalType:i.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:"addMessage",from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:"addParticipant",actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:this.$={type:"addParticipant",actor:a[s]};break;case 79:this.$=i.LINETYPE.SOLID_OPEN;break;case 80:this.$=i.LINETYPE.DOTTED_OPEN;break;case 81:this.$=i.LINETYPE.SOLID;break;case 82:this.$=i.LINETYPE.SOLID_TOP;break;case 83:this.$=i.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=i.LINETYPE.STICK_TOP;break;case 85:this.$=i.LINETYPE.STICK_BOTTOM;break;case 86:this.$=i.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=i.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=i.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=i.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=i.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=i.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=i.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=i.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=i.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=i.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=i.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=i.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=i.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=i.LINETYPE.DOTTED;break;case 100:this.$=i.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=i.LINETYPE.SOLID_CROSS;break;case 102:this.$=i.LINETYPE.DOTTED_CROSS;break;case 103:this.$=i.LINETYPE.SOLID_POINT;break;case 104:this.$=i.LINETYPE.DOTTED_POINT;break;case 105:this.$=i.parseMessage(a[s].trim().substring(1))}},"anonymous"),table:[{3:1,4:e,5:r,6:i},{1:[3]},{3:5,4:e,5:r,6:i},{3:6,4:e,5:r,6:i},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:c,18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:f,34:y,36:m,37:v,38:b,39:k,40:C,42:A,44:D,45:E,47:T,51:w,53:S,54:F,56:_,61:B,62:L,63:I,64:R,73:O},t(M,[2,5]),{9:48,13:13,14:l,15:c,18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:f,34:y,36:m,37:v,38:b,39:k,40:C,42:A,44:D,45:E,47:T,51:w,53:S,54:F,56:_,61:B,62:L,63:I,64:R,73:O},t(M,[2,7]),t(M,[2,8]),t(M,[2,9]),t(M,[2,15]),{13:49,51:w,53:S,54:F},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:O},{23:56,73:O},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},t(M,[2,30]),t(M,[2,31]),{33:[1,62]},{35:[1,63]},t(M,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:N},{23:75,55:76,73:N},{23:77,73:O},{69:78,72:[1,79],78:K,79:P,80:q,81:z,82:W,83:Y,84:$,85:j,86:U,87:H,88:V,89:G,90:X,91:Z,92:Q,93:J,94:tt,95:et,96:rt,97:it,98:nt,99:at,100:ot,101:st,102:lt,103:ct},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:O},{23:111,73:O},{23:112,73:O},{23:113,73:O},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ut),t(M,[2,6]),t(M,[2,16]),t(ht,[2,10],{11:114}),t(M,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},t(M,[2,22]),{5:[1,118]},{5:[1,119]},t(M,[2,25]),t(M,[2,26]),t(M,[2,27]),t(M,[2,28]),t(M,[2,29]),t(M,[2,32]),t(M,[2,33]),t(dt,n,{7:120}),t(dt,n,{7:121}),t(dt,n,{7:122}),t(pt,n,{41:123,7:124}),t(gt,n,{43:125,7:126}),t(gt,n,{7:126,43:127}),t(ft,n,{46:128,7:129}),t(dt,n,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(yt,ut,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:O},{69:146,78:K,79:P,80:q,81:z,82:W,83:Y,84:$,85:j,86:U,87:H,88:V,89:G,90:X,91:Z,92:Q,93:J,94:tt,95:et,96:rt,97:it,98:nt,99:at,100:ot,101:st,102:lt,103:ct},t(mt,[2,79]),t(mt,[2,80]),t(mt,[2,81]),t(mt,[2,82]),t(mt,[2,83]),t(mt,[2,84]),t(mt,[2,85]),t(mt,[2,86]),t(mt,[2,87]),t(mt,[2,88]),t(mt,[2,89]),t(mt,[2,90]),t(mt,[2,91]),t(mt,[2,92]),t(mt,[2,93]),t(mt,[2,94]),t(mt,[2,95]),t(mt,[2,96]),t(mt,[2,97]),t(mt,[2,98]),t(mt,[2,99]),t(mt,[2,100]),t(mt,[2,101]),t(mt,[2,102]),t(mt,[2,103]),t(mt,[2,104]),{23:147,73:O},{23:149,60:148,73:O},{73:[2,68]},{73:[2,69]},{58:150,104:vt},{58:152,104:vt},{58:153,104:vt},{58:154,104:vt},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:w,53:S,54:F},{5:[1,160]},t(M,[2,20]),t(M,[2,21]),t(M,[2,23]),t(M,[2,24]),{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:c,17:[1,161],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:f,34:y,36:m,37:v,38:b,39:k,40:C,42:A,44:D,45:E,47:T,51:w,53:S,54:F,56:_,61:B,62:L,63:I,64:R,73:O},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:c,17:[1,162],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:f,34:y,36:m,37:v,38:b,39:k,40:C,42:A,44:D,45:E,47:T,51:w,53:S,54:F,56:_,61:B,62:L,63:I,64:R,73:O},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:c,17:[1,163],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:f,34:y,36:m,37:v,38:b,39:k,40:C,42:A,44:D,45:E,47:T,51:w,53:S,54:F,56:_,61:B,62:L,63:I,64:R,73:O},{17:[1,164]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:c,17:[2,47],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:f,34:y,36:m,37:v,38:b,39:k,40:C,42:A,44:D,45:E,47:T,50:[1,165],51:w,53:S,54:F,56:_,61:B,62:L,63:I,64:R,73:O},{17:[1,166]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:c,17:[2,45],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:f,34:y,36:m,37:v,38:b,39:k,40:C,42:A,44:D,45:E,47:T,49:[1,167],51:w,53:S,54:F,56:_,61:B,62:L,63:I,64:R,73:O},{17:[1,168]},{17:[1,169]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:c,17:[2,43],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:f,34:y,36:m,37:v,38:b,39:k,40:C,42:A,44:D,45:E,47:T,48:[1,170],51:w,53:S,54:F,56:_,61:B,62:L,63:I,64:R,73:O},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:c,17:[1,171],18:16,19:u,22:h,23:41,24:d,25:20,26:21,27:22,28:23,29:24,30:p,31:g,32:f,34:y,36:m,37:v,38:b,39:k,40:C,42:A,44:D,45:E,47:T,51:w,53:S,54:F,56:_,61:B,62:L,63:I,64:R,73:O},{16:[1,172]},t(M,[2,50]),{16:[1,173]},t(M,[2,55]),t(yt,[2,76]),{76:[1,174]},{16:[1,175]},t(M,[2,52]),{16:[1,176]},t(M,[2,57]),t(M,[2,53]),{23:177,73:O},{23:178,73:O},{23:179,73:O},{58:180,104:vt},{23:181,72:[1,182],73:O},{58:183,104:vt},{58:184,104:vt},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(M,[2,17]),t(ht,[2,11]),{13:186,51:w,53:S,54:F},t(ht,[2,13]),t(ht,[2,14]),t(M,[2,19]),t(M,[2,35]),t(M,[2,36]),t(M,[2,37]),t(M,[2,38]),{16:[1,187]},t(M,[2,39]),{16:[1,188]},t(M,[2,40]),t(M,[2,41]),{16:[1,189]},t(M,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:vt},{58:196,104:vt},{58:197,104:vt},{5:[2,75]},{58:198,104:vt},{23:199,73:O},{5:[2,58]},{5:[2,59]},{23:200,73:O},t(ht,[2,12]),t(pt,n,{7:124,41:201}),t(gt,n,{7:126,43:202}),t(ft,n,{7:129,46:203}),t(M,[2,49]),t(M,[2,54]),t(yt,[2,77]),t(M,[2,51]),t(M,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:vt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:(0,x.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,x.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,u=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var f=d.yylloc;a.push(f);var y=d.options&&d.options.ranges;function m(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,x.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,x.K2)(m,"lex");for(var v,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==v&&(v=m()),C=o[k]&&o[k][v]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(F,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:f,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+v);switch(C[0]){case 1:r.push(v),n.push(d.yytext),a.push(d.yylloc),r.push(C[1]),v=null,b?(v=b,b=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,f=d.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,p.yy,C[1],n,a].concat(h))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},bt=function(){return{EOF:1,parseError:(0,x.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,x.K2)(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},"setInput"),input:(0,x.K2)(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},"input"),unput:(0,x.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,x.K2)(function(){return this._more=!0,this},"more"),reject:(0,x.K2)(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})},"reject"),less:(0,x.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,x.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,x.K2)(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,"")},"upcomingInput"),showPosition:(0,x.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,x.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,x.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,x.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,x.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,x.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,x.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,x.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,x.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,x.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,x.K2)(function(t,e,r,i){switch(r){case 0:case 59:case 92:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:case 60:return e.yytext=e.yytext.trim(),73;case 12:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),73;case 13:return e.yytext=e.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return e.yytext=e.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}}}();function kt(){this.yy={}}return xt.lexer=bt,(0,x.K2)(kt,"Parser"),kt.prototype=xt,xt.Parser=kt,new kt}();C.parser=C;var A=C,D={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},E={FILLED:0,OPEN:1},T={LEFTOF:0,RIGHTOF:1,OVER:2},w="actor",S="control",F="database",_="entity",B=(i=function(){return(0,p.A)(function t(){(0,d.A)(this,t),this.state=new y.m(function(){return{prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0}}),this.setAccTitle=v.SV,this.setAccDescription=v.EI,this.setDiagramTitle=v.ke,this.getAccTitle=v.iN,this.getAccDescription=v.m7,this.getDiagramTitle=v.ab,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap((0,v.D7)().wrap),this.LINETYPE=D,this.ARROWTYPE=E,this.PLACEMENT=T},[{key:"addBox",value:function(t){var e;this.state.records.boxes.push({name:t.text,wrap:null!==(e=t.wrap)&&void 0!==e?e:this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}},{key:"addActor",value:function(t,e,r,i,n){var a,o,s,l,c,u,h,d,p=this.state.records.currentBox;void 0!==n&&(h=n.includes("\n")?n+"\n":"{\n"+n+"\n}",u=(0,g.H)(h,{schema:g.r}));(i=null!==(a=null===(o=u)||void 0===o?void 0:o.type)&&void 0!==a?a:i,null===(s=u)||void 0===s||!s.alias||r&&r.text!==e)||(r={text:u.alias,wrap:null===(d=r)||void 0===d?void 0:d.wrap,type:i});var f=this.state.records.actors.get(t);if(f){if(this.state.records.currentBox&&f.box&&this.state.records.currentBox!==f.box)throw new Error("A same participant should only be defined in one Box: ".concat(f.name," can't be in '").concat(f.box.name,"' and in '").concat(this.state.records.currentBox.name,"' at the same time."));if(p=f.box?f.box:this.state.records.currentBox,f.box=p,f&&e===f.name&&null==r)return}if(null==(null===(l=r)||void 0===l?void 0:l.text)&&(r={text:e,type:i}),null!=i&&null!=r.text||(r={text:e,type:i}),this.state.records.actors.set(t,{box:p,name:e,description:r.text,wrap:null!==(c=r.wrap)&&void 0!==c?c:this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:null!=i?i:"participant"}),this.state.records.prevActor){var y=this.state.records.actors.get(this.state.records.prevActor);y&&(y.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}},{key:"activationCount",value:function(t){var e,r=0;if(!t)return 0;for(e=0;e<this.state.records.messages.length;e++)this.state.records.messages[e].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[e].from===t&&r++,this.state.records.messages[e].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[e].from===t&&r--;return r}},{key:"addMessage",value:function(t,e,r,i){var n;this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:r.text,wrap:null!==(n=r.wrap)&&void 0!==n?n:this.autoWrap(),answer:i})}},{key:"addSignal",value:function(t,e,r,i){var n,a,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5?arguments[5]:void 0;if(i===this.LINETYPE.ACTIVE_END&&this.activationCount(null!=t?t:"")<1){var l=new Error("Trying to inactivate an inactive participant ("+t+")");throw l.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},l}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:null!==(n=null==r?void 0:r.text)&&void 0!==n?n:"",wrap:null!==(a=null==r?void 0:r.wrap)&&void 0!==a?a:this.autoWrap(),type:i,activate:o,centralConnection:null!=s?s:0}),!0}},{key:"hasAtLeastOneBox",value:function(){return this.state.records.boxes.length>0}},{key:"hasAtLeastOneBoxWithTitle",value:function(){return this.state.records.boxes.some(function(t){return t.name})}},{key:"getMessages",value:function(){return this.state.records.messages}},{key:"getBoxes",value:function(){return this.state.records.boxes}},{key:"getActors",value:function(){return this.state.records.actors}},{key:"getCreatedActors",value:function(){return this.state.records.createdActors}},{key:"getDestroyedActors",value:function(){return this.state.records.destroyedActors}},{key:"getActor",value:function(t){return this.state.records.actors.get(t)}},{key:"getActorKeys",value:function(){return(0,h.A)(this.state.records.actors.keys())}},{key:"enableSequenceNumbers",value:function(){this.state.records.sequenceNumbersEnabled=!0}},{key:"disableSequenceNumbers",value:function(){this.state.records.sequenceNumbersEnabled=!1}},{key:"showSequenceNumbers",value:function(){return this.state.records.sequenceNumbersEnabled}},{key:"setWrap",value:function(t){this.state.records.wrapEnabled=t}},{key:"extractWrap",value:function(t){if(void 0===t)return{};t=t.trim();var e=null!==/^:?wrap:/.exec(t)||null===/^:?nowrap:/.exec(t)&&void 0;return{cleanedText:(void 0===e?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:e}}},{key:"autoWrap",value:function(){var t,e;return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:null!==(t=null===(e=(0,v.D7)().sequence)||void 0===e?void 0:e.wrap)&&void 0!==t&&t}},{key:"clear",value:function(){this.state.reset(),(0,v.IU)()}},{key:"parseMessage",value:function(t){var e=t.trim(),r=this.extractWrap(e),i=r.wrap,n={text:r.cleanedText,wrap:i};return x.Rm.debug("parseMessage: ".concat(JSON.stringify(n))),n}},{key:"parseBoxData",value:function(t){var e,r=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t),i=null!=r&&r[1]?r[1].trim():"transparent",n=null!=r&&r[2]?r[2].trim():void 0;if(null!==(e=window)&&void 0!==e&&e.CSS)window.CSS.supports("color",i)||(i="transparent",n=t.trim());else{var a=(new Option).style;a.color=i,a.color!==i&&(i="transparent",n=t.trim())}var o=this.extractWrap(n),s=o.wrap,l=o.cleanedText;return{text:l?(0,v.jZ)(l,(0,v.D7)()):void 0,color:i,wrap:s}}},{key:"addNote",value:function(t,e,r){var i,n,a={actor:t,placement:e,message:r.text,wrap:null!==(i=r.wrap)&&void 0!==i?i:this.autoWrap()},o=[].concat(t,t);this.state.records.notes.push(a),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:o[0],to:o[1],message:r.text,wrap:null!==(n=r.wrap)&&void 0!==n?n:this.autoWrap(),type:this.LINETYPE.NOTE,placement:e})}},{key:"addLinks",value:function(t,e){var r=this.getActor(t);try{var i=(0,v.jZ)(e.text,(0,v.D7)());i=(i=i.replace(/&equals;/g,"=")).replace(/&amp;/g,"&");var n=JSON.parse(i);this.insertLinks(r,n)}catch(t){x.Rm.error("error while parsing actor link text",t)}}},{key:"addALink",value:function(t,e){var r=this.getActor(t);try{var i={},n=(0,v.jZ)(e.text,(0,v.D7)()),a=n.indexOf("@"),o=(n=(n=n.replace(/&equals;/g,"=")).replace(/&amp;/g,"&")).slice(0,a-1).trim(),s=n.slice(a+1).trim();i[o]=s,this.insertLinks(r,i)}catch(t){x.Rm.error("error while parsing actor link text",t)}}},{key:"insertLinks",value:function(t,e){if(null==t.links)t.links=e;else for(var r in e)t.links[r]=e[r]}},{key:"addProperties",value:function(t,e){var r=this.getActor(t);try{var i=(0,v.jZ)(e.text,(0,v.D7)()),n=JSON.parse(i);this.insertProperties(r,n)}catch(t){x.Rm.error("error while parsing actor properties text",t)}}},{key:"insertProperties",value:function(t,e){if(null==t.properties)t.properties=e;else for(var r in e)t.properties[r]=e[r]}},{key:"boxEnd",value:function(){this.state.records.currentBox=void 0}},{key:"addDetails",value:function(t,e){var r=this.getActor(t),i=document.getElementById(e.text);try{var n=i.innerHTML,a=JSON.parse(n);a.properties&&this.insertProperties(r,a.properties),a.links&&this.insertLinks(r,a.links)}catch(t){x.Rm.error("error while parsing actor details text",t)}}},{key:"getActorProperty",value:function(t,e){if(void 0!==(null==t?void 0:t.properties))return t.properties[e]}},{key:"apply",value:function(t){var e=this;if(Array.isArray(t))t.forEach(function(t){e.apply(t)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":case"centralConnection":case"centralConnectionReverse":case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated){if(t.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate,t.centralConnection);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":(0,v.SV)(t.text);break;case"parStart":case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType)}}},{key:"getConfig",value:function(){return(0,v.D7)().sequence}}])}(),(0,x.K2)(i,"SequenceDB"),i),L=(0,x.K2)(function(t){var e,r,i=null!==(e=t.dropShadow)&&void 0!==e?e:"none",n=(0,v.D7)().look;return".actor {\n    stroke: ".concat(t.actorBorder,";\n    fill: ").concat(t.actorBkg,";\n    stroke-width: ").concat(null!==(r=t.strokeWidth)&&void 0!==r?r:1,';\n  }\n\n  rect.actor.outer-path[data-look="neo"] {\n      filter: ').concat(i,';\n  }\n\n  rect.note[data-look="neo"] {\n      stroke:').concat(t.noteBorderColor,";\n      fill:").concat(t.noteBkgColor,";\n      filter: ").concat(i,";\n  }\n\n  text.actor > tspan {\n    fill: ").concat(t.actorTextColor,";\n    stroke: none;\n  }\n\n  .actor-line {\n    stroke: ").concat(t.actorLineColor,";\n  }\n\n  .innerArc {\n    stroke-width: 1.5;\n    stroke-dasharray: none;\n  }\n\n  .messageLine0 {\n    stroke-width: 1.5;\n    stroke-dasharray: none;\n    stroke: ").concat(t.signalColor,";\n  }\n\n  .messageLine1 {\n    stroke-width: 1.5;\n    stroke-dasharray: 2, 2;\n    stroke: ").concat(t.signalColor,';\n  }\n\n  [id$="-arrowhead"] path {\n    fill: ').concat(t.signalColor,";\n    stroke: ").concat(t.signalColor,";\n  }\n\n  .sequenceNumber {\n    fill: ").concat(t.sequenceNumberColor,';\n  }\n\n  [id$="-sequencenumber"] {\n    fill: ').concat(t.signalColor,';\n  }\n\n  [id$="-crosshead"] path {\n    fill: ').concat(t.signalColor,";\n    stroke: ").concat(t.signalColor,";\n  }\n\n  .messageText {\n    fill: ").concat(t.signalTextColor,";\n    stroke: none;\n  }\n\n  .labelBox {\n    stroke: ").concat(t.labelBoxBorderColor,";\n    fill: ").concat(t.labelBoxBkgColor,";\n    filter: ").concat("neo"===n?i:"none",";\n  }\n\n  .labelText, .labelText > tspan {\n    fill: ").concat(t.labelTextColor,";\n    stroke: none;\n  }\n\n  .loopText, .loopText > tspan {\n    fill: ").concat(t.loopTextColor,";\n    stroke: none;\n  }\n\n  .sectionTitle, .sectionTitle > tspan {\n    fill: ").concat(t.loopTextColor,";\n    stroke: none;\n  }\n\n  .loopLine {\n    stroke-width: 2px;\n    stroke-dasharray: 2, 2;\n    stroke: ").concat(t.labelBoxBorderColor,";\n    fill: ").concat(t.labelBoxBorderColor,";\n  }\n\n  .note {\n    //stroke: #decc93;\n    stroke: ").concat(t.noteBorderColor,";\n    fill: ").concat(t.noteBkgColor,";\n  }\n\n  .noteText, .noteText > tspan {\n    fill: ").concat(t.noteTextColor,";\n    stroke: none;\n    ").concat(t.noteFontWeight?"font-weight: ".concat(t.noteFontWeight,";"):"","\n  }\n\n  .activation0 {\n    fill: ").concat(t.activationBkgColor,";\n    stroke: ").concat(t.activationBorderColor,";\n  }\n\n  .activation1 {\n    fill: ").concat(t.activationBkgColor,";\n    stroke: ").concat(t.activationBorderColor,";\n  }\n\n  .activation2 {\n    fill: ").concat(t.activationBkgColor,";\n    stroke: ").concat(t.activationBorderColor,";\n  }\n\n  .actorPopupMenu {\n    position: absolute;\n  }\n\n  .actorPopupMenuPanel {\n    position: absolute;\n    fill: ").concat(t.actorBkg,";\n    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n    filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n  .actor-man circle, line {\n    fill: ").concat(t.actorBkg,";\n    stroke-width: 2px;\n  }\n\n  g rect.rect {\n    filter: ").concat(i,";\n    stroke: ").concat(t.nodeBorder,";\n  }\n")},"getStyles"),I="actor-top",R="actor-bottom",O="actor-box",M="actor-man",N=new Set(["redux-color","redux-dark-color"]),K=(0,x.K2)(function(t,e){var r=(0,f.tk)(t,e);return"neo"===(0,v.zj)().look&&r.attr("data-look","neo"),r},"drawRect"),P=(0,x.K2)(function(t,e,r,i,n){if(void 0===e.links||null===e.links||0===Object.keys(e.links).length)return{height:0,width:0};var a=e.links,o=e.actorCnt,s=e.rectData,l="none";n&&(l="block !important");var c=t.append("g");c.attr("id","actor"+o+"_popup"),c.attr("class","actorPopupMenu"),c.attr("display",l);var u="";void 0!==s.class&&(u=" "+s.class);var h=s.width>r?s.width:r,d=c.append("rect");if(d.attr("class","actorPopupMenuPanel"+u),d.attr("x",s.x),d.attr("y",s.height),d.attr("fill",s.fill),d.attr("stroke",s.stroke),d.attr("width",h),d.attr("height",s.height),d.attr("rx",s.rx),d.attr("ry",s.ry),null!=a){var p=20;for(var g in a){var f=c.append("a"),y=(0,k.J)(a[g]);f.attr("xlink:href",y),f.attr("target","_blank"),mt(i)(g,f,s.x+10,s.height+p,h,20,{class:"actor"},i),p+=30}}return d.attr("height",p),{height:s.height+p,width:h}},"drawPopup"),q=(0,x.K2)(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),z=(0,x.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,d,p,g,f=arguments;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return i=f.length>2&&void 0!==f[2]?f[2]:null,n=e.append("foreignObject"),t.n=1,(0,v.dj)(r.text,(0,v.zj)());case 1:return a=t.v,o=n.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(a),s=o.node().getBoundingClientRect(),n.attr("height",Math.round(s.height)).attr("width",Math.round(s.width)),"noteText"===r.class?((l=e.node().firstChild).setAttribute("height",s.height+2*r.textMargin),u=l.getBBox(),n.attr("x",Math.round(u.x+u.width/2-s.width/2)).attr("y",Math.round(u.y+u.height/2-s.height/2))):i&&(h=i.startx,d=i.stopx,p=i.starty,h>d&&(g=h,h=d,d=g),n.attr("x",Math.round(h+Math.abs(h-d)/2-s.width/2)),"loopText"===r.class?n.attr("y",Math.round(p)):n.attr("y",Math.round(p-s.height))),t.a(2,[n])}},t)}));return function(e,r){return t.apply(this,arguments)}}(),"drawKatex"),W=(0,x.K2)(function(t,e){var r=0,i=0,n=e.text.split(v.Y2.lineBreakRegex),a=(0,m.I5)(e.fontSize),o=(0,l.A)(a,2),c=o[0],u=o[1],h=[],d=0,p=(0,x.K2)(function(){return e.y},"yfunc");if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":p=(0,x.K2)(function(){return Math.round(e.y+e.textMargin)},"yfunc");break;case"middle":case"center":p=(0,x.K2)(function(){return Math.round(e.y+(r+i+e.textMargin)/2)},"yfunc");break;case"bottom":case"end":p=(0,x.K2)(function(){return Math.round(e.y+(r+i+2*e.textMargin)-e.textMargin)},"yfunc")}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}var g,f=(0,s.A)(n.entries());try{for(f.s();!(g=f.n()).done;){var y=(0,l.A)(g.value,2),b=y[0],k=y[1];void 0!==e.textMargin&&0===e.textMargin&&void 0!==c&&(d=b*c);var C=t.append("text");C.attr("x",e.x),C.attr("y",p()),void 0!==e.anchor&&C.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&C.style("font-family",e.fontFamily),void 0!==u&&C.style("font-size",u),void 0!==e.fontWeight&&C.style("font-weight",e.fontWeight),void 0!==e.fill&&C.attr("fill",e.fill),void 0!==e.class&&C.attr("class",e.class),void 0!==e.dy?C.attr("dy",e.dy):0!==d&&C.attr("dy",d);var A=k||m.pe;if(e.tspan){var D=C.append("tspan");D.attr("x",e.x),void 0!==e.fill&&D.attr("fill",e.fill),D.text(A)}else C.text(A);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(i+=(C._groups||C)[0][0].getBBox().height,r=i),h.push(C)}}catch(t){f.e(t)}finally{f.f()}return h},"drawText"),Y=(0,x.K2)(function(t,e){function r(t,e,r,i,n){return t+","+e+" "+(t+r)+","+e+" "+(t+r)+","+(e+i-n)+" "+(t+r-1.2*n)+","+(e+i)+" "+t+","+(e+i)}(0,x.K2)(r,"genPoints");var i=t.append("polygon");return i.attr("points",r(e.x,e.y,e.width,e.height,7)),i.attr("class","labelBox"),e.y=e.y+e.height/2,W(t,e),i},"drawLabel"),$=-1,j=(0,x.K2)(function(t,e,r,i){t.select&&r.forEach(function(r){var n=e.get(r),a=t.select("#actor"+n.actorCnt);!i.mirrorActors&&n.stopy?a.attr("y2",n.stopy+n.height/2):i.mirrorActors&&a.attr("y2",n.stopy)})},"fixLifeLineHeights"),U=(0,x.K2)(function(t,e,r,i,n){var a,o,s,l=i?e.stopy:e.starty,c=e.x+e.width/2,u=l+e.height,h=r.look,d=r.theme,p=r.themeVariables,g=p.bkgColorArray,y=p.borderColorArray,m=t.append("g").lower(),x=m;i||($++,Object.keys(e.links||{}).length&&!r.forceMenus&&x.attr("onclick",q("actor".concat($,"_popup"))).attr("cursor","pointer"),x.append("line").attr("id","actor"+$).attr("x1",c).attr("y1",u).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),x=m.append("g"),e.actorCnt=$,null!=e.links&&x.attr("id","root-"+$),"neo"===h&&x.attr("data-look","neo"));var b=(0,f.PB)(),k="actor";null!==(a=e.properties)&&void 0!==a&&a.class?k=e.properties.class:b.fill="#eaeaea",k+=" ".concat(i?R:I),b.x=e.x,b.y=l,b.width=e.width,b.height=e.height,b.class=k,b.rx=3,b.ry=3,b.name=e.name,"neo"===h&&(b.rx=6,b.ry=6);var C=K(x,b),A=null!==(o=n.get(e.name))&&void 0!==o?o:0;if(N.has(d)&&(C.style("stroke",y[A%y.length]),C.style("fill",g[A%y.length])),"neo"===h&&C.attr("filter","url(#drop-shadow)"),e.rectData=b,null!==(s=e.properties)&&void 0!==s&&s.icon){var D=e.properties.icon.trim();"@"===D.charAt(0)?(0,f.CP)(x,b.x+b.width-20,b.y+10,D.substr(1)):(0,f.aC)(x,b.x+b.width-20,b.y+10,D)}i||(x.attr("data-et","participant"),x.attr("data-type","participant"),x.attr("data-id",e.name)),yt(r,(0,v.Wi)(e.description))(e.description,x,b.x,b.y,b.width,b.height,{class:"actor ".concat(O)},r);var E=e.height;if(C.node){var T=C.node().getBBox();e.height=T.height,E=T.height}return E},"drawActorTypeParticipant"),H=(0,x.K2)(function(t,e,r,i,n){var a,s,l,c=i?e.stopy:e.starty,u=e.x+e.width/2,h=c+e.height,d=r.look,p=r.theme,g=r.themeVariables,y=g.bkgColorArray,m=g.borderColorArray,x=t.append("g").lower(),b=x;i||($++,Object.keys(e.links||{}).length&&!r.forceMenus&&b.attr("onclick",q("actor".concat($,"_popup"))).attr("cursor","pointer"),b.append("line").attr("id","actor"+$).attr("x1",u).attr("y1",h).attr("x2",u).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),b=x.append("g"),e.actorCnt=$,null!=e.links&&b.attr("id","root-"+$),"neo"===d&&b.attr("data-look","neo"));var k=(0,f.PB)(),C="actor";null!==(a=e.properties)&&void 0!==a&&a.class?C=e.properties.class:k.fill="#eaeaea",C+=" ".concat(i?R:I),k.x=e.x,k.y=c,k.width=e.width,k.height=e.height,k.class=C,k.name=e.name;var A=(0,o.A)((0,o.A)({},k),{},{x:k.x+-6,y:k.y+6,class:"actor"}),D=K(b,k),E=K(b,A);e.rectData=k,"neo"===d&&b.attr("filter","url(#drop-shadow)");var T=null!==(s=n.get(e.name))&&void 0!==s?s:0;if(N.has(p)&&(D.style("stroke",m[T%m.length]),D.style("fill",y[T%m.length]),E.style("stroke",m[T%m.length]),E.style("fill",y[T%m.length])),null!==(l=e.properties)&&void 0!==l&&l.icon){var w=e.properties.icon.trim();"@"===w.charAt(0)?(0,f.CP)(b,k.x+k.width-20,k.y+10,w.substr(1)):(0,f.aC)(b,k.x+k.width-20,k.y+10,w)}yt(r,(0,v.Wi)(e.description))(e.description,b,k.x-6,k.y+6,k.width,k.height,{class:"actor ".concat(O)},r);var S=e.height;if(D.node){var F=D.node().getBBox();e.height=F.height,S=F.height}return i||(b.attr("data-et","participant"),b.attr("data-type","collections"),b.attr("data-id",e.name)),S},"drawActorTypeCollections"),V=(0,x.K2)(function(t,e,r,i,n){var a,o,s,l=i?e.stopy:e.starty,c=e.x+e.width/2,u=l+e.height,h=r.look,d=r.theme,p=r.themeVariables,g=p.bkgColorArray,y=p.borderColorArray,m=t.append("g").lower(),x=m;i||($++,Object.keys(e.links||{}).length&&!r.forceMenus&&x.attr("onclick",q("actor".concat($,"_popup"))).attr("cursor","pointer"),x.append("line").attr("id","actor"+$).attr("x1",c).attr("y1",u).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),x=m.append("g"),e.actorCnt=$,null!=e.links&&x.attr("id","root-"+$),"neo"===h&&x.attr("data-look","neo"));var b=(0,f.PB)(),k="actor";null!==(a=e.properties)&&void 0!==a&&a.class?k=e.properties.class:b.fill="#eaeaea",k+=" ".concat(i?R:I),x.attr("class",k),b.x=e.x,b.y=l,b.width=e.width,b.height=e.height,b.name=e.name;var C=b.height/2,A=C/(2.5+b.height/50),D=x.append("g"),E=x.append("g"),T="M ".concat(b.x,",").concat(b.y+C,"\n    a ").concat(A,",").concat(C," 0 0 0 0,").concat(b.height,"\n    h ").concat(b.width-2*A,"\n    a ").concat(A,",").concat(C," 0 0 0 0,-").concat(b.height,"\n    Z\n  ");D.append("path").attr("d",T),E.append("path").attr("d","M ".concat(b.x,",").concat(b.y+C,"\n      a ").concat(A,",").concat(C," 0 0 0 0,").concat(b.height)),D.attr("transform","translate(".concat(A,", ").concat(-b.height/2,")")),E.attr("transform","translate(".concat(b.width-A,", ").concat(-b.height/2,")")),e.rectData=b,"neo"===h&&D.attr("filter","url(#drop-shadow)");var w=null!==(o=n.get(e.name))&&void 0!==o?o:0;if(N.has(d)&&(D.style("stroke",y[w%y.length]),D.style("fill",g[w%y.length]),E.style("stroke",y[w%y.length]),E.style("fill",g[w%y.length])),null!==(s=e.properties)&&void 0!==s&&s.icon){var S=e.properties.icon.trim(),F=b.x+b.width-20,_=b.y+10;"@"===S.charAt(0)?(0,f.CP)(x,F,_,S.substr(1)):(0,f.aC)(x,F,_,S)}yt(r,(0,v.Wi)(e.description))(e.description,x,b.x,b.y,b.width,b.height,{class:"actor ".concat(O)},r);var B=e.height,L=D.select("path:last-child");if(L.node()){var M=L.node().getBBox();e.height=M.height,B=M.height}return i||(x.attr("data-et","participant"),x.attr("data-type","queue"),x.attr("data-id",e.name)),B},"drawActorTypeQueue"),G=(0,x.K2)(function(t,e,r,i,n,a){var o,s,l,c=i?e.stopy:e.starty,u=e.x+e.width/2,h=c+75,d=r.look,p=r.theme,g=r.themeVariables,y=g.bkgColorArray,m=g.borderColorArray,x=g.actorBorder,b=g.actorBkg,k=t.append("g").lower();i||($++,k.append("line").attr("id","actor"+$).attr("x1",u).attr("y1",h).attr("x2",u).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=$);var C=t.append("g"),A=M;A+=" ".concat(i?R:I),C.attr("class",A),C.attr("name",e.name);var D=(0,f.PB)();D.x=e.x,D.y=c,D.fill="#eaeaea",D.width=e.width,D.height=e.height,D.class="actor";var E=e.x+e.width/2,T=c+32;C.append("defs").append("marker").attr("id",n+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),C.append("circle").attr("cx",E).attr("cy",T).attr("r",22).attr("filter","".concat("neo"===d?"url(#drop-shadow)":"")),C.append("line").attr("marker-end","url(#"+n+"-filled-head-control)").attr("transform","translate(".concat(E,", ").concat(T-22,")"));var w=null!==(o=a.get(e.name))&&void 0!==o?o:0;N.has(p)?(C.style("stroke",m[w%m.length]),C.style("fill",y[w%m.length])):(C.style("stroke",x),C.style("fill",b));var S=C.node().getBBox();return e.height=S.height+2*(null!==(s=null==r||null===(l=r.sequence)||void 0===l?void 0:l.labelBoxHeight)&&void 0!==s?s:0),yt(r,(0,v.Wi)(e.description))(e.description,C,D.x,D.y+22+(i?5:12),D.width,D.height,{class:"actor ".concat(M)},r),i||(C.attr("data-et","participant"),C.attr("data-type","control"),C.attr("data-id",e.name)),e.height},"drawActorTypeControl"),X=(0,x.K2)(function(t,e,r,i,n){var a,o,s,l=i?e.stopy:e.starty,c=e.x+e.width/2,u=l+75,h=r.look,d=r.theme,p=r.themeVariables,g=p.bkgColorArray,y=p.borderColorArray,m=t.append("g").lower(),x=t.append("g"),b="actor";b+=" ".concat(i?R:I),x.attr("class",b),x.attr("name",e.name);var k=(0,f.PB)();k.x=e.x,k.y=l,k.fill="#eaeaea",k.width=e.width,k.height=e.height,k.class="actor";var C=e.x+e.width/2,A=l+(i?10:25),D=22;x.append("circle").attr("cx",C).attr("cy",A).attr("r",D).attr("width",e.width).attr("height",e.height),x.append("line").attr("x1",C-D).attr("x2",C+D).attr("y1",A+D).attr("y2",A+D).attr("stroke-width",2),"neo"===h&&x.attr("filter","url(#drop-shadow)");var E=null!==(a=n.get(e.name))&&void 0!==a?a:0;N.has(d)&&(x.style("stroke",y[E%y.length]),x.style("fill",g[E%y.length]));var T=x.node().getBBox();return e.height=T.height+(null!==(o=null==r||null===(s=r.sequence)||void 0===s?void 0:s.labelBoxHeight)&&void 0!==o?o:0),i||($++,m.append("line").attr("id","actor"+$).attr("x1",c).attr("y1",u).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=$),yt(r,(0,v.Wi)(e.description))(e.description,x,k.x,k.y+(i?15:30),k.width,k.height,{class:"actor ".concat(M)},r),i?x.attr("transform","translate(".concat(0,", ",D,")")):(x.attr("transform","translate(".concat(0,", ",6,")")),x.attr("data-et","participant"),x.attr("data-type","entity"),x.attr("data-id",e.name)),e.height},"drawActorTypeEntity"),Z=(0,x.K2)(function(t,e,r,i,n){var a,o,s=i?e.stopy:e.starty,l=e.x+e.width/2,c=s+e.height+2*r.boxTextMargin,u=r.theme,h=r.themeVariables,d=r.look,p=h.bkgColorArray,g=h.borderColorArray,y=h.actorBorder,m=t.append("g").lower(),x=m;i||($++,Object.keys(e.links||{}).length&&!r.forceMenus&&x.attr("onclick",q("actor".concat($,"_popup"))).attr("cursor","pointer"),x.append("line").attr("id","actor"+$).attr("x1",l).attr("y1",c).attr("x2",l).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),x=m.append("g"),e.actorCnt=$,null!=e.links&&x.attr("id","root-"+$),"neo"===d&&x.attr("data-look","neo"));var b=(0,f.PB)(),k="actor";null!==(a=e.properties)&&void 0!==a&&a.class?k=e.properties.class:b.fill="#eaeaea",k+=" ".concat(i?R:I),b.x=e.x,b.y=s,b.width=e.width,b.height=e.height,b.class=k,b.name=e.name,b.x=e.x,b.y=s;var C=b.width/3,A=b.width/3,D=C/2,E=D/(2.5+C/50),T=x.append("g");T.attr("class",k);var w="\n  M ".concat(b.x,",").concat(b.y+E,"\n  a ").concat(D,",").concat(E," 0 0 0 ").concat(C,",0\n  a ").concat(D,",").concat(E," 0 0 0 -").concat(C,",0\n  l 0,").concat(A-2*E,"\n  a ").concat(D,",").concat(E," 0 0 0 ").concat(C,",0\n  l 0,-").concat(A-2*E,"\n");T.append("path").attr("d",w),"neo"===d&&T.attr("filter","url(#drop-shadow)");var S=null!==(o=n.get(e.name))&&void 0!==o?o:0;N.has(u)?(T.style("stroke",g[S%g.length]),T.style("fill",p[S%g.length])):T.style("stroke",y),T.attr("transform","translate(".concat(C,", ").concat(E,")")),e.rectData=b,yt(r,(0,v.Wi)(e.description))(e.description,x,b.x,b.y+35,b.width,b.height,{class:"actor ".concat(O)},r);var F=T.select("path:last-child");if(F.node()){var _,B=F.node().getBBox();e.height=B.height+(null!==(_=r.sequence.labelBoxHeight)&&void 0!==_?_:0)}return i||(x.attr("data-et","participant"),x.attr("data-type","database"),x.attr("data-id",e.name)),e.height},"drawActorTypeDatabase"),Q=(0,x.K2)(function(t,e,r,i,n){var a,o,s=i?e.stopy:e.starty,l=e.x+e.width/2,c=s+80,u=t.append("g").lower(),h=r.look,d=r.theme,p=r.themeVariables,g=p.bkgColorArray,y=p.borderColorArray,m=p.actorBorder;i||($++,u.append("line").attr("id","actor"+$).attr("x1",l).attr("y1",c).attr("x2",l).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=$);var x=t.append("g"),b=M;b+=" ".concat(i?R:I),x.attr("class",b),x.attr("name",e.name);var k=(0,f.PB)();k.x=e.x,k.y=s,k.fill="#eaeaea",k.width=e.width,k.height=e.height,k.class="actor",x.append("line").attr("id","actor-man-torso"+$).attr("x1",e.x+e.width/2-55).attr("y1",s+12).attr("x2",e.x+e.width/2-15).attr("y2",s+12),x.append("line").attr("id","actor-man-arms"+$).attr("x1",e.x+e.width/2-55).attr("y1",s+2).attr("x2",e.x+e.width/2-55).attr("y2",s+22),x.append("circle").attr("cx",e.x+e.width/2).attr("cy",s+12).attr("r",22),"neo"===h&&x.attr("filter","url(#drop-shadow)");var C=null!==(a=n.get(e.name))&&void 0!==a?a:0;N.has(d)?(x.style("stroke",y[C%y.length]),x.style("fill",g[C%y.length])):x.style("stroke",m);var A=x.node().getBBox();return e.height=A.height+(null!==(o=r.sequence.labelBoxHeight)&&void 0!==o?o:0),yt(r,(0,v.Wi)(e.description))(e.description,x,k.x,k.y+15,k.width,k.height,{class:"actor ".concat(M)},r),x.attr("transform","translate(0,".concat(21,")")),i||(x.attr("data-et","participant"),x.attr("data-type","boundary"),x.attr("data-id",e.name)),e.height},"drawActorTypeBoundary"),J=(0,x.K2)(function(t,e,r,i,n){var a,o=i?e.stopy:e.starty,s=e.x+e.width/2,l=o+80,c=r.look,u=r.theme,h=r.themeVariables,d=h.bkgColorArray,p=h.borderColorArray,g=h.actorBorder,y=t.append("g").lower();i||($++,y.append("line").attr("id","actor"+$).attr("x1",s).attr("y1",l).attr("x2",s).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=$);var m=t.append("g"),x=M;x+=" ".concat(i?R:I),m.attr("class",x),m.attr("name",e.name),i||m.attr("data-et","participant").attr("data-type","actor").attr("data-id",e.name);var b="neo"===c?.5:1,k="neo"===c?o+30*(1-b):o;m.append("line").attr("id","actor-man-torso"+$).attr("x1",s).attr("y1",k+25*b).attr("x2",s).attr("y2",k+45*b),m.append("line").attr("id","actor-man-arms"+$).attr("x1",s-18*b).attr("y1",k+33*b).attr("x2",s+18*b).attr("y2",k+33*b),m.append("line").attr("x1",s-18*b).attr("y1",k+60*b).attr("x2",s).attr("y2",k+45*b),m.append("line").attr("x1",s).attr("y1",k+45*b).attr("x2",s+16*b).attr("y2",k+60*b);var C=m.append("circle");C.attr("cx",e.x+e.width/2),C.attr("cy",k+10*b),C.attr("r",15*b),C.attr("width",e.width*b),C.attr("height",e.height*b);var A=m.node().getBBox();e.height=A.height;var D=(0,f.PB)();D.x=e.x,D.y=k,D.fill="#eaeaea",D.width=e.width,D.height=e.height/b,D.class="actor",D.rx=3,D.ry=3;var E=null!==(a=n.get(e.name))&&void 0!==a?a:0;return N.has(u)?(m.style("stroke",p[E%p.length]),m.style("fill",d[E%p.length])):m.style("stroke",g),yt(r,(0,v.Wi)(e.description))(e.description,m,D.x,k+35*b-("neo"===c?10:0),D.width,D.height,{class:"actor ".concat(M)},r),e.height},"drawActorTypeActor"),tt=(0,x.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r,i,n,a,o,s){var l,u;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:l=null!=s?s:new Map((0,h.A)(o.db.getActors().values()).map(function(t,e){return[t.name,e]})),u=r.type,t.n="actor"===u?1:"participant"===u?3:"boundary"===u?5:"control"===u?7:"entity"===u?9:"database"===u?11:"collections"===u?13:"queue"===u?15:17;break;case 1:return t.n=2,J(e,r,i,n,l);case 2:case 4:case 6:case 8:case 10:case 12:case 14:case 16:return t.a(2,t.v);case 3:return t.n=4,U(e,r,i,n,l);case 5:return t.n=6,Q(e,r,i,n,l);case 7:return t.n=8,G(e,r,i,n,a,l);case 9:return t.n=10,X(e,r,i,n,l);case 11:return t.n=12,Z(e,r,i,n,l);case 13:return t.n=14,H(e,r,i,n,l);case 15:return t.n=16,V(e,r,i,n,l);case 17:return t.a(2)}},t)}));return function(e,r,i,n,a,o,s){return t.apply(this,arguments)}}(),"drawActor"),et=(0,x.K2)(function(t,e,r){var i=t.append("g");at(i,e),e.name&&yt(r)(e.name,i,e.x,e.y+r.boxTextMargin+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},r),i.lower()},"drawBox"),rt=(0,x.K2)(function(t){return t.append("g")},"anchorElement"),it=(0,x.K2)(function(t,e,r,i,n,a,o){var s,l=i.theme,c=i.themeVariables,u=c.bkgColorArray,d=c.borderColorArray,p=c.mainBkg,g=(0,f.PB)(),y=e.anchored,m=e.actor;g.x=e.startx,g.y=e.starty,g.class="activation"+n%3,g.width=e.stopx-e.startx,g.height=r-e.starty;var v,x=K(y,g),b=null!==(s=(null!=o?o:new Map((0,h.A)(a.db.getActors().values()).map(function(t,e){return[t.name,e]}))).get(m))&&void 0!==s?s:0;N.has(l)&&(x.style("stroke",d[b%d.length]),x.style("fill",null!==(v=u[b%d.length])&&void 0!==v?v:p))},"drawActivation"),nt=(0,x.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r,i,n,a){var o,s,u,h,d,p,g,y,m,b,k,C,A,D,E,T,w,S;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:if(o=n.boxMargin,s=n.boxTextMargin,u=n.labelBoxHeight,h=n.labelBoxWidth,d=n.messageFontFamily,p=n.messageFontSize,g=n.messageFontWeight,y=e.append("g").attr("data-et","control-structure").attr("data-id","i"+a.id),(m=(0,x.K2)(function(t,e,r,i){return y.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",i).attr("class","loopLine")},"drawLoopLine"))(r.startx,r.starty,r.stopx,r.starty),m(r.stopx,r.starty,r.stopx,r.stopy),m(r.startx,r.stopy,r.stopx,r.stopy),m(r.startx,r.starty,r.startx,r.stopy),void 0!==r.sections&&r.sections.forEach(function(t){m(r.startx,t.y,r.stopx,t.y).style("stroke-dasharray","3, 3")}),(b=(0,f.HT)()).text=i,b.x=r.startx,b.y=r.starty,b.fontFamily=d,b.fontSize=p,b.fontWeight=g,b.anchor="middle",b.valign="middle",b.tspan=!1,b.width=Math.max(null!=h?h:0,50),b.height=u+("neo"===n.look?15:0)||20,b.textMargin=s,b.class="labelText",Y(y,b),(b=gt()).text=r.title,b.x=r.startx+h/2+(r.stopx-r.startx)/2,b.y=r.starty+o+s,b.anchor="middle",b.valign="middle",b.textMargin=s,b.class="loopText",b.fontFamily=d,b.fontSize=p,b.fontWeight=g,b.wrap=!0,!(0,v.Wi)(b.text)){t.n=2;break}return t.n=1,z(y,b,r);case 1:S=t.v,t.n=3;break;case 2:S=W(y,b);case 3:if(k=S,void 0===r.sectionTitles){t.n=9;break}C=0,A=Object.entries(r.sectionTitles);case 4:if(!(C<A.length)){t.n=9;break}if(D=(0,l.A)(A[C],2),E=D[0],!(T=D[1]).message){t.n=8;break}if(b.text=T.message,b.x=r.startx+(r.stopx-r.startx)/2,b.y=r.sections[E].y+o+s,b.class="sectionTitle",b.anchor="middle",b.valign="middle",b.tspan=!1,b.fontFamily=d,b.fontSize=p,b.fontWeight=g,b.wrap=r.wrap,!(0,v.Wi)(b.text)){t.n=6;break}return r.starty=r.sections[E].y,t.n=5,z(y,b,r);case 5:t.n=7;break;case 6:W(y,b);case 7:w=Math.round(k.map(function(t){return(t._groups||t)[0][0].getBBox().height}).reduce(function(t,e){return t+e})),r.sections[E].height+=w-(o+s);case 8:C++,t.n=4;break;case 9:return r.height=Math.round(r.stopy-r.starty),t.a(2,y)}},t)}));return function(e,r,i,n,a){return t.apply(this,arguments)}}(),"drawLoop"),at=(0,x.K2)(function(t,e){(0,f.lC)(t,e)},"drawBackgroundRect"),ot=(0,x.K2)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),st=(0,x.K2)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),lt=(0,x.K2)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),ct=(0,x.K2)(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),ut=(0,x.K2)(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",15.5).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")},"insertArrowFilledHead"),ht=(0,x.K2)(function(t,e){t.append("defs").append("marker").attr("id",e+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),dt=(0,x.K2)(function(t,e){t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),pt=(0,x.K2)(function(t,e){var r=e.theme;t.append("defs").append("filter").attr("id","drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color","".concat("redux"===r||"redux-color"===r?"#000000":"#FFFFFF"))},"insertDropShadow"),gt=(0,x.K2)(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),ft=(0,x.K2)(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),yt=function(){function t(t,e,r,i,n,o,s){a(e.append("text").attr("x",r+n/2).attr("y",i+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,r,i,n,o,s,c){for(var u=c.actorFontSize,h=c.actorFontFamily,d=c.actorFontWeight,p=(0,m.I5)(u),g=(0,l.A)(p,2),f=g[0],y=g[1],x=t.split(v.Y2.lineBreakRegex),b=0;b<x.length;b++){var k=b*f-f*(x.length-1)/2,C=e.append("text").attr("x",r+n/2).attr("y",i).style("text-anchor","middle").style("font-size",y).style("font-weight",d).style("font-family",h);C.append("tspan").attr("x",r+n/2).attr("dy",k).text(x[b]),C.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(C,s)}}function r(t,r,i,n,o,s,l,c){var u=r.append("switch"),h=u.append("foreignObject").attr("x",i).attr("y",n).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,i,n,o,s,l,c),a(h,l)}function i(t,e,r,i,a,o,s,l){return n.apply(this,arguments)}function n(){return(n=(0,u.A)((0,c.A)().m(function t(r,i,n,o,s,l,u,h){var d,p,g,f,y;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,(0,v.Dl)(r,(0,v.zj)());case 1:return d=t.v,p=i.append("switch"),g=p.append("foreignObject").attr("x",n+s/2-d.width/2).attr("y",o+l/2-d.height/2).attr("width",d.width).attr("height",d.height),f=g.append("xhtml:div").style("height","100%").style("width","100%"),y=f.append("div").style("text-align","center").style("vertical-align","middle"),t.n=2,(0,v.dj)(r,(0,v.zj)());case 2:y.html.call(y,t.v),e(r,p,n,o,s,l,u,h),a(f,u);case 3:return t.a(2)}},t)}))).apply(this,arguments)}function a(t,e){for(var r in e)e.hasOwnProperty(r)&&t.attr(r,e[r])}return(0,x.K2)(t,"byText"),(0,x.K2)(e,"byTspan"),(0,x.K2)(r,"byFo"),(0,x.K2)(i,"byKatex"),(0,x.K2)(a,"_setTextAttrs"),function(n){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?i:"fo"===n.textPlacement?r:"old"===n.textPlacement?t:e}}(),mt=function(){function t(t,e,r,n,a,o,s){i(e.append("text").attr("x",r).attr("y",n).style("text-anchor","start").text(t),s)}function e(t,e,r,n,a,o,s,l){for(var c=l.actorFontSize,u=l.actorFontFamily,h=l.actorFontWeight,d=t.split(v.Y2.lineBreakRegex),p=0;p<d.length;p++){var g=p*c-c*(d.length-1)/2,f=e.append("text").attr("x",r).attr("y",n).style("text-anchor","start").style("font-size",c).style("font-weight",h).style("font-family",u);f.append("tspan").attr("x",r).attr("dy",g).text(d[p]),f.attr("y",n+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(f,s)}}function r(t,r,n,a,o,s,l,c){var u=r.append("switch"),h=u.append("foreignObject").attr("x",n).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,n,a,0,s,l,c),i(h,l)}function i(t,e){for(var r in e)e.hasOwnProperty(r)&&t.attr(r,e[r])}return(0,x.K2)(t,"byText"),(0,x.K2)(e,"byTspan"),(0,x.K2)(r,"byFo"),(0,x.K2)(i,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?r:"old"===i.textPlacement?t:e}}(),vt=(0,x.K2)(function(t,e){t.append("defs").append("marker").attr("id",e+"-solidTopArrowHead").attr("refX",7.9).attr("refY",7.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 8 L 0 8 z")},"insertSolidTopArrowHead"),xt=(0,x.K2)(function(t,e){t.append("defs").append("marker").attr("id",e+"-solidBottomArrowHead").attr("refX",7.9).attr("refY",.75).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 0 L 0 8 z")},"insertSolidBottomArrowHead"),bt=(0,x.K2)(function(t,e){t.append("defs").append("marker").attr("id",e+"-stickTopArrowHead").attr("refX",7.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 7 7").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickTopArrowHead"),kt=(0,x.K2)(function(t,e){t.append("defs").append("marker").attr("id",e+"-stickBottomArrowHead").attr("refX",7.5).attr("refY",0).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 7 L 7 0").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickBottomArrowHead"),Ct={drawRect:K,drawText:W,drawLabel:Y,drawActor:tt,drawBox:et,drawPopup:P,anchorElement:rt,drawActivation:it,drawLoop:nt,drawBackgroundRect:at,insertArrowHead:ct,insertArrowFilledHead:ut,insertSequenceNumber:ht,insertArrowCrossHead:dt,insertDatabaseIcon:ot,insertComputerIcon:st,insertClockIcon:lt,getTextObj:gt,getNoteRect:ft,fixLifeLineHeights:j,sanitizeUrl:k.J,insertDropShadow:pt,insertSolidTopArrowHead:vt,insertSolidBottomArrowHead:xt,insertStickTopArrowHead:bt,insertStickBottomArrowHead:kt},At={},Dt={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:(0,x.K2)(function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map(function(t){return t.height||0}))+(0===this.loops.length?0:this.loops.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(0===this.messages.length?0:this.messages.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(0===this.notes.length?0:this.notes.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))},"getHeight"),clear:(0,x.K2)(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:(0,x.K2)(function(t){this.boxes.push(t)},"addBox"),addActor:(0,x.K2)(function(t){this.actors.push(t)},"addActor"),addLoop:(0,x.K2)(function(t){this.loops.push(t)},"addLoop"),addMessage:(0,x.K2)(function(t){this.messages.push(t)},"addMessage"),addNote:(0,x.K2)(function(t){this.notes.push(t)},"addNote"),lastActor:(0,x.K2)(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:(0,x.K2)(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:(0,x.K2)(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:(0,x.K2)(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:(0,x.K2)(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,Mt((0,v.D7)())},"init"),updateVal:(0,x.K2)(function(t,e,r,i){void 0===t[e]?t[e]=r:t[e]=i(r,t[e])},"updateVal"),updateBounds:(0,x.K2)(function(t,e,r,i){var n=this,a=0;function o(o){return(0,x.K2)(function(s){a++;var l=n.sequenceItems.length-a+1;n.updateVal(s,"starty",e-l*At.boxMargin,Math.min),n.updateVal(s,"stopy",i+l*At.boxMargin,Math.max),n.updateVal(Dt.data,"startx",t-l*At.boxMargin,Math.min),n.updateVal(Dt.data,"stopx",r+l*At.boxMargin,Math.max),"activation"!==o&&(n.updateVal(s,"startx",t-l*At.boxMargin,Math.min),n.updateVal(s,"stopx",r+l*At.boxMargin,Math.max),n.updateVal(Dt.data,"starty",e-l*At.boxMargin,Math.min),n.updateVal(Dt.data,"stopy",i+l*At.boxMargin,Math.max))},"updateItemBounds")}(0,x.K2)(o,"updateFn"),this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},"updateBounds"),insert:(0,x.K2)(function(t,e,r,i){var n=v.Y2.getMin(t,r),a=v.Y2.getMax(t,r),o=v.Y2.getMin(e,i),s=v.Y2.getMax(e,i);this.updateVal(Dt.data,"startx",n,Math.min),this.updateVal(Dt.data,"starty",o,Math.min),this.updateVal(Dt.data,"stopx",a,Math.max),this.updateVal(Dt.data,"stopy",s,Math.max),this.updateBounds(n,o,a,s)},"insert"),newActivation:(0,x.K2)(function(t,e,r){var i=r.get(t.from),n=Nt(t.from).length||0,a=i.x+i.width/2+(n-1)*At.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+At.activationWidth,stopy:void 0,actor:t.from,anchored:Ct.anchorElement(e)})},"newActivation"),endActivation:(0,x.K2)(function(t){var e=this.activations.map(function(t){return t.actor}).lastIndexOf(t.from);return this.activations.splice(e,1)[0]},"endActivation"),createLoop:(0,x.K2)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},"createLoop"),newLoop:(0,x.K2)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(t,e))},"newLoop"),endLoop:(0,x.K2)(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:(0,x.K2)(function(){return!!this.sequenceItems.length&&this.sequenceItems[this.sequenceItems.length-1].overlap},"isLoopOverlap"),addSectionToLoop:(0,x.K2)(function(t){var e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:Dt.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},"addSectionToLoop"),saveVerticalPos:(0,x.K2)(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:(0,x.K2)(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:(0,x.K2)(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=v.Y2.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:(0,x.K2)(function(){return this.verticalPos},"getVerticalPos"),getBounds:(0,x.K2)(function(){return{bounds:this.data,models:this.models}},"getBounds")},Et=(0,x.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,o,s,l,u,h;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:if(Dt.bumpVerticalPos(At.boxMargin),r.height=At.boxMargin,r.starty=Dt.getVerticalPos(),(n=(0,f.PB)()).x=r.startx,n.y=r.starty,n.width=r.width||At.width,n.class="note",(a=e.append("g")).attr("data-et","note"),a.attr("data-id","i"+i),o=Ct.drawRect(a,n),(s=(0,f.HT)()).x=r.startx,s.y=r.starty,s.width=n.width,s.dy="1em",s.text=r.message,s.class="noteText",s.fontFamily=At.noteFontFamily,s.fontSize=At.noteFontSize,s.fontWeight=At.noteFontWeight,s.anchor=At.noteAlign,s.textMargin=At.noteMargin,s.valign="center",!(0,v.Wi)(s.text)){t.n=2;break}return t.n=1,z(a,s);case 1:h=t.v,t.n=3;break;case 2:h=W(a,s);case 3:l=h,u=Math.round(l.map(function(t){return(t._groups||t)[0][0].getBBox().height}).reduce(function(t,e){return t+e})),o.attr("height",u+2*At.noteMargin),r.height+=u+2*At.noteMargin,Dt.bumpVerticalPos(u+2*At.noteMargin),r.stopy=r.starty+u+2*At.noteMargin,r.stopx=r.startx+n.width,Dt.insert(r.startx,r.starty,r.stopx,r.stopy),Dt.models.addNote(r);case 4:return t.a(2)}},t)}));return function(e,r,i){return t.apply(this,arguments)}}(),"drawNote"),Tt=(0,x.K2)(function(t,e,r,i,n,a,o){var s=i.db.getActors(),l=s.get(e.from),c=s.get(e.to),u=r.sequenceVisible,h=l.x+l.width/2,d=c.x+c.width/2,p=h<=d,g=Xt(e,i),f=t.append("g"),y=(0,x.K2)(function(t,e){var r=t?16.5:-16.5;return e?-r:r},"getCircleOffset"),m=(0,x.K2)(function(t){f.append("circle").attr("cx",t).attr("cy",o).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),v=i.db.LINETYPE,b=v.CENTRAL_CONNECTION,k=v.CENTRAL_CONNECTION_REVERSE,C=v.CENTRAL_CONNECTION_DUAL;if(u)switch(e.centralConnection){case b:g&&(d+=y(p,!0));break;case k:g||(h+=y(p,!1));break;case C:g?d+=y(p,!0):h+=y(p,!1)}switch(e.centralConnection){case b:m(d);break;case k:m(h);break;case C:m(h),m(d)}},"drawCentralConnection"),wt=(0,x.K2)(function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},"messageFont"),St=(0,x.K2)(function(t){return{fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}},"noteFont"),Ft=(0,x.K2)(function(t){return{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}},"actorFont");function _t(t,e){return Bt.apply(this,arguments)}function Bt(){return(Bt=(0,u.A)((0,c.A)().m(function t(e,r){var i,n,a,o,s,l,u,h,d,p,g,f;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:if(Dt.bumpVerticalPos(10),i=r.startx,n=r.stopx,a=r.message,o=v.Y2.splitBreaks(a).length,!(s=(0,v.Wi)(a))){t.n=2;break}return t.n=1,(0,v.Dl)(a,(0,v.D7)());case 1:f=t.v,t.n=3;break;case 2:f=m._K.calculateTextDimensions(a,wt(At));case 3:return l=f,s||(u=l.height/o,r.height+=u,Dt.bumpVerticalPos(u)),d=l.height-10,p=l.width,i===n?(h=Dt.getVerticalPos()+d,At.rightAngles||(d+=At.boxMargin,h=Dt.getVerticalPos()+d),d+=30,g=v.Y2.getMax(p/2,At.width/2),Dt.insert(i-g,Dt.getVerticalPos()-10+d,n+g,Dt.getVerticalPos()+30+d)):(d+=At.boxMargin,h=Dt.getVerticalPos()+d,Dt.insert(i,h-10,n,h)),Dt.bumpVerticalPos(d),r.height+=d,r.stopy=r.starty+r.height,Dt.insert(r.fromBounds,r.starty,r.toBounds,r.stopy),t.a(2,h)}},t)}))).apply(this,arguments)}(0,x.K2)(_t,"boundMessage");var Lt=(0,x.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r,i,n,a,o){var s,l,u,h,d,p,g,y,x,b,k,C,A,D,E,T,w,S,F,_,B,L,I,R,O;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:if(s=r.startx,l=r.stopx,u=r.starty,h=r.message,d=r.type,p=r.sequenceIndex,g=r.sequenceVisible,y=m._K.calculateTextDimensions(h,wt(At)),(x=(0,f.HT)()).x=Math.min(s,l),x.y=u+10,x.width=Math.abs(l-s),x.class="messageText",x.dy="1em",x.text=h,x.fontFamily=At.messageFontFamily,x.fontSize=At.messageFontSize,x.fontWeight=At.messageFontWeight,x.anchor=At.messageAlign,x.valign="center",x.textMargin=At.wrapPadding,x.tspan=!1,!(0,v.Wi)(x.text)){t.n=2;break}return t.n=1,z(e,x,{startx:s,stopx:l,starty:i});case 1:t.n=3;break;case 2:W(e,x);case 3:b=y.width,s===l?(C=g||At.showSequenceNumbers,A=Xt(a,n),D=Zt(a,n),E=s+(C&&(A||D)?10:0),k=At.rightAngles?e.append("path").attr("d","M  ".concat(E,",").concat(i," H ").concat(s+v.Y2.getMax(At.width/2,b/2)," V ").concat(i+25," H ").concat(s)):e.append("path").attr("d","M "+E+","+i+" C "+(E+60)+","+(i-10)+" "+(s+60)+","+(i+30)+" "+s+","+(i+20)),Vt(a,n)&&Tt(e,a,r,n,s,l,i)):((k=e.append("line")).attr("x1",s),k.attr("y1",i),k.attr("x2",l),k.attr("y2",i),Vt(a,n)&&Tt(e,a,r,n,s,l,i)),d===n.db.LINETYPE.DOTTED||d===n.db.LINETYPE.DOTTED_CROSS||d===n.db.LINETYPE.DOTTED_POINT||d===n.db.LINETYPE.DOTTED_OPEN||d===n.db.LINETYPE.BIDIRECTIONAL_DOTTED||d===n.db.LINETYPE.SOLID_TOP_DOTTED||d===n.db.LINETYPE.SOLID_BOTTOM_DOTTED||d===n.db.LINETYPE.STICK_TOP_DOTTED||d===n.db.LINETYPE.STICK_BOTTOM_DOTTED||d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(k.style("stroke-dasharray","3, 3"),k.attr("class","messageLine1")):k.attr("class","messageLine0"),k.attr("data-et","message"),k.attr("data-id","i"+r.id),k.attr("data-from",r.from),k.attr("data-to",r.to),T="",At.arrowMarkerAbsolute&&(T=(0,v.ID)(!0)),k.attr("stroke-width",2),k.attr("stroke","none"),k.style("fill","none"),d!==n.db.LINETYPE.SOLID_TOP&&d!==n.db.LINETYPE.SOLID_TOP_DOTTED||k.attr("marker-end","url("+T+"#"+o+"-solidTopArrowHead)"),d!==n.db.LINETYPE.SOLID_BOTTOM&&d!==n.db.LINETYPE.SOLID_BOTTOM_DOTTED||k.attr("marker-end","url("+T+"#"+o+"-solidBottomArrowHead)"),d!==n.db.LINETYPE.STICK_TOP&&d!==n.db.LINETYPE.STICK_TOP_DOTTED||k.attr("marker-end","url("+T+"#"+o+"-stickTopArrowHead)"),d!==n.db.LINETYPE.STICK_BOTTOM&&d!==n.db.LINETYPE.STICK_BOTTOM_DOTTED||k.attr("marker-end","url("+T+"#"+o+"-stickBottomArrowHead)"),d!==n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE&&d!==n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||k.attr("marker-start","url("+T+"#"+o+"-solidBottomArrowHead)"),d!==n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE&&d!==n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||k.attr("marker-start","url("+T+"#"+o+"-solidTopArrowHead)"),d!==n.db.LINETYPE.STICK_ARROW_TOP_REVERSE&&d!==n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||k.attr("marker-start","url("+T+"#"+o+"-stickBottomArrowHead)"),d!==n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE&&d!==n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED||k.attr("marker-start","url("+T+"#"+o+"-stickTopArrowHead)"),d!==n.db.LINETYPE.SOLID&&d!==n.db.LINETYPE.DOTTED||k.attr("marker-end","url("+T+"#"+o+"-arrowhead)"),d!==n.db.LINETYPE.BIDIRECTIONAL_SOLID&&d!==n.db.LINETYPE.BIDIRECTIONAL_DOTTED||(k.attr("marker-start","url("+T+"#"+o+"-arrowhead)"),k.attr("marker-end","url("+T+"#"+o+"-arrowhead)")),d!==n.db.LINETYPE.SOLID_POINT&&d!==n.db.LINETYPE.DOTTED_POINT||k.attr("marker-end","url("+T+"#"+o+"-filled-head)"),d!==n.db.LINETYPE.SOLID_CROSS&&d!==n.db.LINETYPE.DOTTED_CROSS||k.attr("marker-end","url("+T+"#"+o+"-crosshead)"),(g||At.showSequenceNumbers)&&(w=d===n.db.LINETYPE.BIDIRECTIONAL_SOLID||d===n.db.LINETYPE.BIDIRECTIONAL_DOTTED,S=d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,F=Vt(a,n),_=s,B=l,w?(s<l?_=s+12:(_=s-6+(F?-5:0),_+=(null==a?void 0:a.centralConnection)===n.db.LINETYPE.CENTRAL_CONNECTION_DUAL||(null==a?void 0:a.centralConnection)===n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),k.attr("x1",_)):S?(l>s?B=l-12:(B=l-6,_+=(null==a?void 0:a.centralConnection)===n.db.LINETYPE.CENTRAL_CONNECTION_DUAL||(null==a?void 0:a.centralConnection)===n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),B+=F?15:0,k.attr("x2",B),k.attr("x1",_)):k.attr("x1",s+6),L=0,I=s<=l,L=s===l?r.fromBounds+1:S?I?r.toBounds-1:r.fromBounds+1:I?r.fromBounds+1:r.toBounds-1,R="12px",(O=p.toString().length)>5?R="7px":O>3&&(R="9px"),e.append("line").attr("x1",L).attr("y1",i).attr("x2",L).attr("y2",i).attr("stroke-width",0).attr("marker-start","url("+T+"#"+o+"-sequencenumber)"),e.append("text").attr("x",L).attr("y",i+4).attr("font-family","sans-serif").attr("font-size",R).attr("text-anchor","middle").attr("class","sequenceNumber").text(p));case 4:return t.a(2)}},t)}));return function(e,r,i,n,a,o){return t.apply(this,arguments)}}(),"drawMessage"),It=(0,x.K2)(function(t,e,r,i,n,a,o){var l,c=0,u=0,h=void 0,d=0,p=(0,s.A)(i);try{for(p.s();!(l=p.n()).done;){var g=l.value,f=e.get(g),y=f.box;h&&h!=y&&(o||Dt.models.addBox(h),u+=At.boxMargin+h.margin),y&&y!=h&&(o||(y.x=c+u,y.y=n),u+=y.margin),f.width=v.Y2.getMax(f.width||At.width,At.width),f.height=v.Y2.getMax(f.height||At.height,At.height),f.margin=f.margin||At.actorMargin,d=v.Y2.getMax(d,f.height),r.get(f.name)&&(u+=f.width/2),f.x=c+u,f.starty=Dt.getVerticalPos(),Dt.insert(f.x,n,f.x+f.width,f.height),c+=f.width+u,f.box&&(f.box.width=c+y.margin-f.box.x),u=f.margin,h=f.box,Dt.models.addActor(f)}}catch(t){p.e(t)}finally{p.f()}h&&!o&&Dt.models.addBox(h),Dt.bumpVerticalPos(d)},"addActorRenderingData"),Rt=(0,x.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r,i,n,a,o,l){var u,h,d,p,g,f,y,m,x,b,k,C;return(0,c.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n){t.n=8;break}u=(0,s.A)(i),t.p=1,u.s();case 2:if((h=u.n()).done){t.n=4;break}return d=h.value,p=r.get(d),t.n=3,Ct.drawActor(e,p,At,!1,a,o,l);case 3:t.n=2;break;case 4:t.n=6;break;case 5:t.p=5,k=t.v,u.e(k);case 6:return t.p=6,u.f(),t.f(6);case 7:t.n=17;break;case 8:g=0,Dt.bumpVerticalPos(2*At.boxMargin),f=(0,s.A)(i),t.p=9,f.s();case 10:if((y=f.n()).done){t.n=13;break}return m=y.value,(x=r.get(m)).stopy||(x.stopy=Dt.getVerticalPos()),t.n=11,Ct.drawActor(e,x,At,!0,a,o,l);case 11:b=t.v,g=v.Y2.getMax(g,b);case 12:t.n=10;break;case 13:t.n=15;break;case 14:t.p=14,C=t.v,f.e(C);case 15:return t.p=15,f.f(),t.f(15);case 16:Dt.bumpVerticalPos(g+At.boxMargin);case 17:return t.a(2)}},t,null,[[9,14,15,16],[1,5,6,7]])}));return function(e,r,i,n,a,o,s){return t.apply(this,arguments)}}(),"drawActors"),Ot=(0,x.K2)(function(t,e,r,i){var n,a=0,o=0,l=(0,s.A)(r);try{for(l.s();!(n=l.n()).done;){var c=n.value,u=e.get(c),h=$t(u),d=Ct.drawPopup(t,u,h,At,At.forceMenus,i);d.height>a&&(a=d.height),d.width+u.x>o&&(o=d.width+u.x)}}catch(t){l.e(t)}finally{l.f()}return{maxHeight:a,maxWidth:o}},"drawActorsPopup"),Mt=(0,x.K2)(function(t){(0,v.hH)(At,t),t.fontFamily&&(At.actorFontFamily=At.noteFontFamily=At.messageFontFamily=t.fontFamily),t.fontSize&&(At.actorFontSize=At.noteFontSize=At.messageFontSize=t.fontSize),t.fontWeight&&(At.actorFontWeight=At.noteFontWeight=At.messageFontWeight=t.fontWeight)},"setConf"),Nt=(0,x.K2)(function(t){return Dt.activations.filter(function(e){return e.actor===t})},"actorActivations"),Kt=(0,x.K2)(function(t,e){var r=e.get(t),i=Nt(t);return[i.reduce(function(t,e){return v.Y2.getMin(t,e.startx)},r.x+r.width/2-1),i.reduce(function(t,e){return v.Y2.getMax(t,e.stopx)},r.x+r.width/2+1)]},"activationBounds");function Pt(t,e,r,i,n){Dt.bumpVerticalPos(r);var a=i;if(e.id&&e.message&&t[e.id]){var o=t[e.id].width,s=wt(At);e.message=m._K.wrapLabel("[".concat(e.message,"]"),o-2*At.wrapPadding,s),e.width=o,e.wrap=!0;var l=m._K.calculateTextDimensions(e.message,s),c=v.Y2.getMax(l.height,At.labelBoxHeight);a=i+c,x.Rm.debug("".concat(c," - ").concat(e.message))}n(e),Dt.bumpVerticalPos(a)}function qt(t,e,r,i,n,a,o){function s(r,i){r.x<n.get(t.from).x?(Dt.insert(e.stopx-i,e.starty,e.startx,e.stopy+r.height/2+At.noteMargin),e.stopx=e.stopx+i):(Dt.insert(e.startx,e.starty,e.stopx+i,e.stopy+r.height/2+At.noteMargin),e.stopx=e.stopx-i)}function l(r,i){r.x<n.get(t.to).x?(Dt.insert(e.startx-i,e.starty,e.stopx,e.stopy+r.height/2+At.noteMargin),e.startx=e.startx+i):(Dt.insert(e.stopx,e.starty,e.startx+i,e.stopy+r.height/2+At.noteMargin),e.startx=e.startx-i)}(0,x.K2)(s,"receiverAdjustment"),(0,x.K2)(l,"senderAdjustment");var c=[w,S,_,F];if(a.get(t.to)==i){var u=n.get(t.to);s(u,c.includes(u.type)?21:u.width/2+3),u.starty=r-u.height/2,Dt.bumpVerticalPos(u.height/2)}else if(o.get(t.from)==i){var h=n.get(t.from);if(At.mirrorActors)l(h,c.includes(h.type)?18:h.width/2);h.stopy=r-h.height/2,Dt.bumpVerticalPos(h.height/2)}else if(o.get(t.to)==i){var d=n.get(t.to);if(At.mirrorActors)s(d,c.includes(d.type)?21:d.width/2+3);d.stopy=r-d.height/2,Dt.bumpVerticalPos(d.height/2)}}(0,x.K2)(Pt,"adjustLoopHeightForWrap"),(0,x.K2)(qt,"adjustCreatedDestroyedData");var zt=(0,x.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r,i,n){var a,o,l,u,h,d,p,g,f,y,m,k,C,A,D,E,T,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W,Y,$,U,H,V,G,X,Z,Q,J,tt,et,rt,it,nt,at,ot,st,lt,ct;return(0,c.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:return B=function(t,e){var r=Dt.endActivation(t);r.starty+18>e&&(r.starty=e-6,e+=12),Ct.drawActivation(g,r,e,At,Nt(t.from).length,n,F),Dt.insert(r.startx,e-10,r.stopx,e)},a=(0,v.D7)(),o=a.securityLevel,l=a.sequence,u=a.look,At=l,"sandbox"===o&&(h=(0,b.Ltv)("#i"+r)),d="sandbox"===o?(0,b.Ltv)(h.nodes()[0].contentDocument.body):(0,b.Ltv)("body"),p="sandbox"===o?h.nodes()[0].contentDocument:document,Dt.init(),x.Rm.debug(n.db),g="sandbox"===o?d.select('[id="'.concat(r,'"]')):(0,b.Ltv)('[id="'.concat(r,'"]')),f=n.db.getActors(),y=n.db.getCreatedActors(),m=n.db.getDestroyedActors(),k=n.db.getBoxes(),C=n.db.getActorKeys(),A=n.db.getMessages(),D=n.db.getDiagramTitle(),E=n.db.hasAtLeastOneBox(),T=n.db.hasAtLeastOneBoxWithTitle(),t.n=1,Wt(f,A,n);case 1:return w=t.v,t.n=2,jt(f,w,k);case 2:return At.height=t.v,Ct.insertComputerIcon(g,r),Ct.insertDatabaseIcon(g,r),Ct.insertClockIcon(g,r),E&&(Dt.bumpVerticalPos(At.boxMargin),T&&Dt.bumpVerticalPos(k[0].textMaxHeight)),!0===At.hideUnusedParticipants&&(S=new Set,A.forEach(function(t){S.add(t.from),S.add(t.to)}),C=C.filter(function(t){return S.has(t)})),F=new Map(C.map(function(t,e){var r,i;return[null!==(r=null===(i=f.get(t))||void 0===i?void 0:i.name)&&void 0!==r?r:t,e]})),It(g,f,y,C,0,A,!1),t.n=3,Jt(A,f,w,n);case 3:_=t.v,Ct.insertArrowHead(g,r),Ct.insertArrowCrossHead(g,r),Ct.insertArrowFilledHead(g,r),Ct.insertSequenceNumber(g,r),Ct.insertSolidTopArrowHead(g,r),Ct.insertSolidBottomArrowHead(g,r),Ct.insertStickTopArrowHead(g,r),Ct.insertStickBottomArrowHead(g,r),"neo"===u&&Ct.insertDropShadow(g,At),(0,x.K2)(B,"activeEnd"),L=1,I=1,R=[],O=[],M=0,N=(0,s.A)(A),t.p=4,N.s();case 5:if((K=N.n()).done){t.n=41;break}P=K.value,q=void 0,z=void 0,W=void 0,st=P.type,t.n=st===n.db.LINETYPE.NOTE?6:st===n.db.LINETYPE.ACTIVE_START?8:st===n.db.LINETYPE.CENTRAL_CONNECTION?9:st===n.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?10:st===n.db.LINETYPE.ACTIVE_END?11:st===n.db.LINETYPE.LOOP_START?12:st===n.db.LINETYPE.LOOP_END?13:st===n.db.LINETYPE.RECT_START?15:st===n.db.LINETYPE.RECT_END?16:st===n.db.LINETYPE.OPT_START?17:st===n.db.LINETYPE.OPT_END?18:st===n.db.LINETYPE.ALT_START?20:st===n.db.LINETYPE.ALT_ELSE?21:st===n.db.LINETYPE.ALT_END?22:st===n.db.LINETYPE.PAR_START||st===n.db.LINETYPE.PAR_OVER_START?24:st===n.db.LINETYPE.PAR_AND?25:st===n.db.LINETYPE.PAR_END?26:st===n.db.LINETYPE.AUTONUMBER?28:st===n.db.LINETYPE.CRITICAL_START?29:st===n.db.LINETYPE.CRITICAL_OPTION?30:st===n.db.LINETYPE.CRITICAL_END?31:st===n.db.LINETYPE.BREAK_START?33:st===n.db.LINETYPE.BREAK_END?34:36;break;case 6:return Dt.resetVerticalPos(),z=P.noteModel,t.n=7,Et(g,z,P.id);case 7:return t.a(3,39);case 8:case 9:case 10:return Dt.newActivation(P,g,f),t.a(3,39);case 11:return B(P,Dt.getVerticalPos()),t.a(3,39);case 12:return Pt(_,P,At.boxMargin,At.boxMargin+At.boxTextMargin,function(t){return Dt.newLoop(t)}),t.a(3,39);case 13:return q=Dt.endLoop(),t.n=14,Ct.drawLoop(g,q,"loop",At,P);case 14:return Dt.bumpVerticalPos(q.stopy-Dt.getVerticalPos()),Dt.models.addLoop(q),t.a(3,39);case 15:return Pt(_,P,At.boxMargin,At.boxMargin,function(t){return Dt.newLoop(void 0,t.message)}),t.a(3,39);case 16:return q=Dt.endLoop(),O.push(q),Dt.models.addLoop(q),Dt.bumpVerticalPos(q.stopy-Dt.getVerticalPos()),t.a(3,39);case 17:return Pt(_,P,At.boxMargin,At.boxMargin+At.boxTextMargin,function(t){return Dt.newLoop(t)}),t.a(3,39);case 18:return q=Dt.endLoop(),t.n=19,Ct.drawLoop(g,q,"opt",At,P);case 19:return Dt.bumpVerticalPos(q.stopy-Dt.getVerticalPos()),Dt.models.addLoop(q),t.a(3,39);case 20:return Pt(_,P,At.boxMargin,At.boxMargin+At.boxTextMargin,function(t){return Dt.newLoop(t)}),t.a(3,39);case 21:return Pt(_,P,At.boxMargin+At.boxTextMargin,At.boxMargin,function(t){return Dt.addSectionToLoop(t)}),t.a(3,39);case 22:return q=Dt.endLoop(),t.n=23,Ct.drawLoop(g,q,"alt",At,P);case 23:return Dt.bumpVerticalPos(q.stopy-Dt.getVerticalPos()),Dt.models.addLoop(q),t.a(3,39);case 24:return Pt(_,P,At.boxMargin,At.boxMargin+At.boxTextMargin,function(t){return Dt.newLoop(t)}),Dt.saveVerticalPos(),t.a(3,39);case 25:return Pt(_,P,At.boxMargin+At.boxTextMargin,At.boxMargin,function(t){return Dt.addSectionToLoop(t)}),t.a(3,39);case 26:return q=Dt.endLoop(),t.n=27,Ct.drawLoop(g,q,"par",At,P);case 27:return Dt.bumpVerticalPos(q.stopy-Dt.getVerticalPos()),Dt.models.addLoop(q),t.a(3,39);case 28:return L=P.message.start||L,I=P.message.step||I,P.message.visible?n.db.enableSequenceNumbers():n.db.disableSequenceNumbers(),t.a(3,39);case 29:return Pt(_,P,At.boxMargin,At.boxMargin+At.boxTextMargin,function(t){return Dt.newLoop(t)}),t.a(3,39);case 30:return Pt(_,P,At.boxMargin+At.boxTextMargin,At.boxMargin,function(t){return Dt.addSectionToLoop(t)}),t.a(3,39);case 31:return q=Dt.endLoop(),t.n=32,Ct.drawLoop(g,q,"critical",At,P);case 32:return Dt.bumpVerticalPos(q.stopy-Dt.getVerticalPos()),Dt.models.addLoop(q),t.a(3,39);case 33:return Pt(_,P,At.boxMargin,At.boxMargin+At.boxTextMargin,function(t){return Dt.newLoop(t)}),t.a(3,39);case 34:return q=Dt.endLoop(),t.n=35,Ct.drawLoop(g,q,"break",At,P);case 35:return Dt.bumpVerticalPos(q.stopy-Dt.getVerticalPos()),Dt.models.addLoop(q),t.a(3,39);case 36:return t.p=36,(W=P.msgModel).starty=Dt.getVerticalPos(),W.sequenceIndex=L,W.sequenceVisible=n.db.showSequenceNumbers(),W.id=P.id,W.from=P.from,W.to=P.to,t.n=37,_t(g,W);case 37:Y=t.v,qt(P,W,Y,M,f,y,m),R.push({messageModel:W,lineStartY:Y,msg:P}),Dt.models.addMessage(W),t.n=39;break;case 38:t.p=38,lt=t.v,x.Rm.error("error while drawing message",lt);case 39:[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.SOLID_TOP,n.db.LINETYPE.SOLID_BOTTOM,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.SOLID_TOP_DOTTED,n.db.LINETYPE.SOLID_BOTTOM_DOTTED,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT,n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(P.type)&&(L=Math.round(100*(L+I))/100),M++;case 40:t.n=5;break;case 41:t.n=43;break;case 42:t.p=42,ct=t.v,N.e(ct);case 43:return t.p=43,N.f(),t.f(43);case 44:return x.Rm.debug("createdActors",y),x.Rm.debug("destroyedActors",m),t.n=45,Rt(g,f,C,!1,r,n,F);case 45:$=0,U=R;case 46:if(!($<U.length)){t.n=48;break}return H=U[$],t.n=47,Lt(g,H.messageModel,H.lineStartY,n,H.msg,r);case 47:$++,t.n=46;break;case 48:if(!At.mirrorActors){t.n=49;break}return t.n=49,Rt(g,f,C,!0,r,n,F);case 49:O.forEach(function(t){return Ct.drawBackgroundRect(g,t)}),j(g,f,C,At),V=(0,s.A)(Dt.models.boxes);try{for(V.s();!(G=V.n()).done;)(X=G.value).height=Dt.getVerticalPos()-X.y,Dt.insert(X.x,X.y,X.x+X.width,X.height),Z=2*At.boxMargin,X.startx=X.x-Z,X.starty=X.y-.25*Z,X.stopx=X.startx+X.width+2*Z,X.stopy=X.starty+X.height+.75*Z,X.stroke="rgb(0,0,0, 0.5)",Ct.drawBox(g,X,At)}catch(t){V.e(t)}finally{V.f()}E&&Dt.bumpVerticalPos(At.boxMargin),Q=Ot(g,f,C,p),J=Dt.getBounds(),void 0===(tt=J.bounds).startx&&(tt.startx=0),void 0===tt.starty&&(tt.starty=0),void 0===tt.stopx&&(tt.stopx=0),void 0===tt.stopy&&(tt.stopy=0),(et=tt.stopy-tt.starty)<Q.maxHeight&&(et=Q.maxHeight),rt=et+2*At.diagramMarginY,At.mirrorActors&&(rt=rt-At.boxMargin+At.bottomMarginAdj),(it=tt.stopx-tt.startx)<Q.maxWidth&&(it=Q.maxWidth),nt=it+2*At.diagramMarginX,D&&g.append("text").text(D).attr("x",(tt.stopx-tt.startx)/2-2*At.diagramMarginX).attr("y",-25),(0,v.a$)(g,rt,nt,At.useMaxWidth),at=D?40:0,ot=f.size&&"neo"===u?30:0,g.attr("viewBox",tt.startx-At.diagramMarginX+" -"+(At.diagramMarginY+at)+" "+nt+" "+(rt+at+ot)),x.Rm.debug("models:",Dt.models);case 50:return t.a(2)}},t,null,[[36,38],[4,42,43,44]])}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"draw");function Wt(t,e,r){return Yt.apply(this,arguments)}function Yt(){return(Yt=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,o,l,u,h,d,p,g,f,y,b;return(0,c.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:n={},a=(0,s.A)(r),t.p=1,a.s();case 2:if((o=a.n()).done){t.n=9;break}if(l=o.value,!e.get(l.to)||!e.get(l.from)){t.n=8;break}if(u=e.get(l.to),l.placement!==i.db.PLACEMENT.LEFTOF||u.prevActor){t.n=3;break}return t.a(3,8);case 3:if(l.placement!==i.db.PLACEMENT.RIGHTOF||u.nextActor){t.n=4;break}return t.a(3,8);case 4:if(h=void 0!==l.placement,d=!h,p=h?St(At):wt(At),g=l.wrap?m._K.wrapLabel(l.message,At.width-2*At.wrapPadding,p):l.message,!(0,v.Wi)(g)){t.n=6;break}return t.n=5,(0,v.Dl)(l.message,(0,v.D7)());case 5:y=t.v,t.n=7;break;case 6:y=m._K.calculateTextDimensions(g,p);case 7:f=y.width+2*At.wrapPadding,d&&l.from===u.nextActor?n[l.to]=v.Y2.getMax(n[l.to]||0,f):d&&l.from===u.prevActor?n[l.from]=v.Y2.getMax(n[l.from]||0,f):d&&l.from===l.to?(n[l.from]=v.Y2.getMax(n[l.from]||0,f/2),n[l.to]=v.Y2.getMax(n[l.to]||0,f/2)):l.placement===i.db.PLACEMENT.RIGHTOF?n[l.from]=v.Y2.getMax(n[l.from]||0,f):l.placement===i.db.PLACEMENT.LEFTOF?n[u.prevActor]=v.Y2.getMax(n[u.prevActor]||0,f):l.placement===i.db.PLACEMENT.OVER&&(u.prevActor&&(n[u.prevActor]=v.Y2.getMax(n[u.prevActor]||0,f/2)),u.nextActor&&(n[l.from]=v.Y2.getMax(n[l.from]||0,f/2)));case 8:t.n=2;break;case 9:t.n=11;break;case 10:t.p=10,b=t.v,a.e(b);case 11:return t.p=11,a.f(),t.f(11);case 12:return x.Rm.debug("maxMessageWidthPerActor:",n),t.a(2,n)}},t,null,[[1,10,11,12]])}))).apply(this,arguments)}(0,x.K2)(Wt,"getMaxMessageWidthPerActor");var $t=(0,x.K2)(function(t){var e=0,r=Ft(At);for(var i in t.links){var n=m._K.calculateTextDimensions(i,r).width+2*At.wrapPadding+2*At.boxMargin;e<n&&(e=n)}return e},"getRequiredPopupWidth");function jt(t,e,r){return Ut.apply(this,arguments)}function Ut(){return(Ut=(0,u.A)((0,c.A)().m(function t(e,r,i){var a,o,l,u,h,d,p,g,f,y,x,b,k,C,A,D,E,T;return(0,c.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:a=0,o=(0,s.A)(e.keys()),t.p=1,o.s();case 2:if((l=o.n()).done){t.n=7;break}if(u=l.value,(h=e.get(u)).wrap&&(h.description=m._K.wrapLabel(h.description,At.width-2*At.wrapPadding,Ft(At))),!(0,v.Wi)(h.description)){t.n=4;break}return t.n=3,(0,v.Dl)(h.description,(0,v.D7)());case 3:A=t.v,t.n=5;break;case 4:A=m._K.calculateTextDimensions(h.description,Ft(At));case 5:d=A,h.width=h.wrap?At.width:v.Y2.getMax(At.width,d.width+2*At.wrapPadding),h.height=h.wrap?v.Y2.getMax(d.height,At.height):At.height,a=v.Y2.getMax(a,h.height);case 6:t.n=2;break;case 7:t.n=9;break;case 8:t.p=8,D=t.v,o.e(D);case 9:return t.p=9,o.f(),t.f(9);case 10:E=(0,n.A)(r);case 11:if((T=E()).done){t.n=14;break}if(p=T.value,g=e.get(p)){t.n=12;break}return t.a(3,11);case 12:if(f=e.get(g.nextActor)){t.n=13;break}return y=r[p],x=y+At.actorMargin-g.width/2,g.margin=v.Y2.getMax(x,At.actorMargin),t.a(3,11);case 13:b=r[p],k=b+At.actorMargin-g.width/2-f.width/2,g.margin=v.Y2.getMax(k,At.actorMargin),t.n=11;break;case 14:return C=0,i.forEach(function(t){var r=wt(At),i=t.actorKeys.reduce(function(t,r){return t+(e.get(r).width+(e.get(r).margin||0))},0);i+=8*At.boxMargin,i-=2*At.boxTextMargin,t.wrap&&(t.name=m._K.wrapLabel(t.name,i-2*At.wrapPadding,r));var n=m._K.calculateTextDimensions(t.name,r);C=v.Y2.getMax(n.height,C);var a=v.Y2.getMax(i,n.width+2*At.wrapPadding);if(t.margin=At.boxTextMargin,i<a){var o=(a-i)/2;t.margin+=o}}),i.forEach(function(t){return t.textMaxHeight=C}),t.a(2,v.Y2.getMax(a,At.height))}},t,null,[[1,8,9,10]])}))).apply(this,arguments)}(0,x.K2)(jt,"calculateActorMargins");var Ht=(0,x.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r,i){var n,a,o,s,l,u,h,d;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:if(n=r.get(e.from),a=r.get(e.to),o=n.x,s=a.x,l=e.wrap&&e.message,!(0,v.Wi)(e.message)){t.n=2;break}return t.n=1,(0,v.Dl)(e.message,(0,v.D7)());case 1:d=t.v,t.n=3;break;case 2:d=m._K.calculateTextDimensions(l?m._K.wrapLabel(e.message,At.width,St(At)):e.message,St(At));case 3:return u=d,h={width:l?At.width:v.Y2.getMax(At.width,u.width+2*At.noteMargin),height:0,startx:n.x,stopx:0,starty:0,stopy:0,message:e.message},e.placement===i.db.PLACEMENT.RIGHTOF?(h.width=l?v.Y2.getMax(At.width,u.width):v.Y2.getMax(n.width/2+a.width/2,u.width+2*At.noteMargin),h.startx=o+(n.width+At.actorMargin)/2):e.placement===i.db.PLACEMENT.LEFTOF?(h.width=l?v.Y2.getMax(At.width,u.width+2*At.noteMargin):v.Y2.getMax(n.width/2+a.width/2,u.width+2*At.noteMargin),h.startx=o-h.width+(n.width-At.actorMargin)/2):e.to===e.from?(u=m._K.calculateTextDimensions(l?m._K.wrapLabel(e.message,v.Y2.getMax(At.width,n.width),St(At)):e.message,St(At)),h.width=l?v.Y2.getMax(At.width,n.width):v.Y2.getMax(n.width,At.width,u.width+2*At.noteMargin),h.startx=o+(n.width-h.width)/2):(h.width=Math.abs(o+n.width/2-(s+a.width/2))+At.actorMargin,h.startx=o<s?o+n.width/2-At.actorMargin/2:s+a.width/2-At.actorMargin/2),l&&(h.message=m._K.wrapLabel(e.message,h.width-2*At.wrapPadding,St(At))),x.Rm.debug("NM:[".concat(h.startx,",").concat(h.stopx,",").concat(h.starty,",").concat(h.stopy,":").concat(h.width,",").concat(h.height,"=").concat(e.message,"]")),t.a(2,h)}},t)}));return function(e,r,i){return t.apply(this,arguments)}}(),"buildNoteModel"),Vt=(0,x.K2)(function(t,e){var r=e.db.LINETYPE;return[r.CENTRAL_CONNECTION,r.CENTRAL_CONNECTION_REVERSE,r.CENTRAL_CONNECTION_DUAL].includes(t.centralConnection)},"hasCentralConnection"),Gt=(0,x.K2)(function(t,e,r){var i=e.db.LINETYPE,n=i.CENTRAL_CONNECTION_REVERSE,a=i.CENTRAL_CONNECTION_DUAL,o=i.BIDIRECTIONAL_SOLID,s=i.BIDIRECTIONAL_DOTTED,l=0;return t.centralConnection!==n&&t.centralConnection!==a||(l+=4),t.centralConnection!==n&&t.centralConnection!==a||t.type!==o&&t.type!==s||(l+=r?0:-6),l},"calculateCentralConnectionOffset"),Xt=(0,x.K2)(function(t,e){var r=e.db.LINETYPE;return[r.SOLID_ARROW_TOP_REVERSE,r.SOLID_ARROW_TOP_REVERSE_DOTTED,r.SOLID_ARROW_BOTTOM_REVERSE,r.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.STICK_ARROW_TOP_REVERSE,r.STICK_ARROW_TOP_REVERSE_DOTTED,r.STICK_ARROW_BOTTOM_REVERSE,r.STICK_ARROW_BOTTOM_REVERSE_DOTTED].includes(t.type)},"isReverseArrowType"),Zt=(0,x.K2)(function(t,e){var r=e.db.LINETYPE;return[r.BIDIRECTIONAL_SOLID,r.BIDIRECTIONAL_DOTTED].includes(t.type)},"isBidirectionalArrowType"),Qt=(0,x.K2)(function(t,e,r){var i=(0,v.D7)().look;if(![r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type))return{};var n=Kt(t.from,e),a=(0,l.A)(n,2),o=a[0],s=a[1],c=Kt(t.to,e),u=(0,l.A)(c,2),h=u[0],d=u[1],p=o<=h,g=p?s:o,f=p?h:d;if("neo"===i){t.type!==r.db.LINETYPE.SOLID_OPEN&&(f+=p?-3:3),t.type!==r.db.LINETYPE.BIDIRECTIONAL_SOLID&&t.type!==r.db.LINETYPE.BIDIRECTIONAL_DOTTED||(g+=p?3:-3)}g+=Gt(t,r,p);var y=Math.abs(h-d)>2,b=(0,x.K2)(function(t){return p?-t:t},"adjustValue");t.from===t.to?f=g:(t.activate&&!y&&(f+=b(At.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)||(f+=b(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)&&(g-=b(3)));var k=[o,s,h,d],C=Math.abs(g-f);t.wrap&&t.message&&(t.message=m._K.wrapLabel(t.message,v.Y2.getMax(C+2*At.wrapPadding,At.width),wt(At)));var A=m._K.calculateTextDimensions(t.message,wt(At));return{width:v.Y2.getMax(t.wrap?0:A.width+2*At.wrapPadding,C+2*At.wrapPadding,At.width),height:0,startx:g,stopx:f,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,k),toBounds:Math.max.apply(null,k)}},"buildMessageModel"),Jt=(0,x.K2)(function(){var t=(0,u.A)((0,c.A)().m(function t(e,r,i,n){var o,l,u,h,d,p,g,f,y;return(0,c.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:o={},l=[],p=(0,s.A)(e),t.p=1,f=(0,c.A)().m(function t(){var e,i,a,s,p,f,y;return(0,c.A)().w(function(t){for(;;)switch(t.n){case 0:e=g.value,y=e.type,t.n=y===n.db.LINETYPE.LOOP_START||y===n.db.LINETYPE.ALT_START||y===n.db.LINETYPE.OPT_START||y===n.db.LINETYPE.PAR_START||y===n.db.LINETYPE.PAR_OVER_START||y===n.db.LINETYPE.CRITICAL_START||y===n.db.LINETYPE.BREAK_START?1:y===n.db.LINETYPE.ALT_ELSE||y===n.db.LINETYPE.PAR_AND||y===n.db.LINETYPE.CRITICAL_OPTION?2:y===n.db.LINETYPE.LOOP_END||y===n.db.LINETYPE.ALT_END||y===n.db.LINETYPE.OPT_END||y===n.db.LINETYPE.PAR_END||y===n.db.LINETYPE.CRITICAL_END||y===n.db.LINETYPE.BREAK_END?3:y===n.db.LINETYPE.ACTIVE_START?4:y===n.db.LINETYPE.ACTIVE_END?5:6;break;case 1:return l.push({id:e.id,msg:e.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0}),t.a(3,6);case 2:return e.message&&(u=l.pop(),o[u.id]=u,o[e.id]=u,l.push(u)),t.a(3,6);case 3:return u=l.pop(),o[u.id]=u,t.a(3,6);case 4:return i=r.get(e.from?e.from:e.to.actor),a=Nt(e.from?e.from:e.to.actor).length,s=i.x+i.width/2+(a-1)*At.activationWidth/2,p={startx:s,stopx:s+At.activationWidth,actor:e.from,enabled:!0},Dt.activations.push(p),t.a(3,6);case 5:return f=Dt.activations.map(function(t){return t.actor}).lastIndexOf(e.from),Dt.activations.splice(f,1).splice(0,1),t.a(3,6);case 6:if(!(void 0!==e.placement)){t.n=8;break}return t.n=7,Ht(e,r,n);case 7:h=t.v,e.noteModel=h,l.forEach(function(t){(u=t).from=v.Y2.getMin(u.from,h.startx),u.to=v.Y2.getMax(u.to,h.startx+h.width),u.width=v.Y2.getMax(u.width,Math.abs(u.from-u.to))-At.labelBoxWidth}),t.n=9;break;case 8:d=Qt(e,r,n),e.msgModel=d,d.startx&&d.stopx&&l.length>0&&l.forEach(function(t){if(u=t,d.startx===d.stopx){var i=r.get(e.from),n=r.get(e.to);u.from=v.Y2.getMin(i.x-d.width/2,i.x-i.width/2,u.from),u.to=v.Y2.getMax(n.x+d.width/2,n.x+i.width/2,u.to),u.width=v.Y2.getMax(u.width,Math.abs(u.to-u.from))-At.labelBoxWidth}else u.from=v.Y2.getMin(d.startx,u.from),u.to=v.Y2.getMax(d.stopx,u.to),u.width=v.Y2.getMax(u.width,d.width)-At.labelBoxWidth});case 9:return t.a(2)}},t)}),p.s();case 2:if((g=p.n()).done){t.n=4;break}return t.d((0,a.A)(f()),3);case 3:t.n=2;break;case 4:t.n=6;break;case 5:t.p=5,y=t.v,p.e(y);case 6:return t.p=6,p.f(),t.f(6);case 7:return Dt.activations=[],x.Rm.debug("Loop type widths:",o),t.a(2,o)}},t,null,[[1,5,6,7]])}));return function(e,r,i,n){return t.apply(this,arguments)}}(),"calculateLoopBounds"),te={bounds:Dt,drawActors:Rt,drawActorsPopup:Ot,setConf:Mt,draw:zt},ee={parser:A,get db(){return new B},renderer:te,styles:L,init:(0,x.K2)(function(t){t.sequence||(t.sequence={}),t.wrap&&(t.sequence.wrap=t.wrap,(0,v.XV)({sequence:{wrap:t.wrap}}))},"init")}},84436:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return B}});var i,n=r(3604),a=r(72660),o=(r(21888),r(61340),r(86349),r(69914),r(607),r(86735),r(43376),r(17428),r(51266),r(34539)),s=r(40985),l=r(68548),c=r(63219),u=r(57794),h=r(18668),d=(0,l.K2)(function(t){return t.append("circle").attr("class","start-state").attr("r",(0,s.D7)().state.sizeUnit).attr("cx",(0,s.D7)().state.padding+(0,s.D7)().state.sizeUnit).attr("cy",(0,s.D7)().state.padding+(0,s.D7)().state.sizeUnit)},"drawStartState"),p=(0,l.K2)(function(t){return t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,s.D7)().state.textHeight).attr("class","divider").attr("x2",2*(0,s.D7)().state.textHeight).attr("y1",0).attr("y2",0)},"drawDivider"),g=(0,l.K2)(function(t,e){var r=t.append("text").attr("x",2*(0,s.D7)().state.padding).attr("y",(0,s.D7)().state.textHeight+2*(0,s.D7)().state.padding).attr("font-size",(0,s.D7)().state.fontSize).attr("class","state-title").text(e.id),i=r.node().getBBox();return t.insert("rect",":first-child").attr("x",(0,s.D7)().state.padding).attr("y",(0,s.D7)().state.padding).attr("width",i.width+2*(0,s.D7)().state.padding).attr("height",i.height+2*(0,s.D7)().state.padding).attr("rx",(0,s.D7)().state.radius),r},"drawSimpleState"),f=(0,l.K2)(function(t,e){var r=(0,l.K2)(function(t,e,r){var i=t.append("tspan").attr("x",2*(0,s.D7)().state.padding).text(e);r||i.attr("dy",(0,s.D7)().state.textHeight)},"addTspan"),i=t.append("text").attr("x",2*(0,s.D7)().state.padding).attr("y",(0,s.D7)().state.textHeight+1.3*(0,s.D7)().state.padding).attr("font-size",(0,s.D7)().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),n=i.height,a=t.append("text").attr("x",(0,s.D7)().state.padding).attr("y",n+.4*(0,s.D7)().state.padding+(0,s.D7)().state.dividerMargin+(0,s.D7)().state.textHeight).attr("class","state-description"),o=!0,c=!0;e.descriptions.forEach(function(t){o||(r(a,t,c),c=!1),o=!1});var u=t.append("line").attr("x1",(0,s.D7)().state.padding).attr("y1",(0,s.D7)().state.padding+n+(0,s.D7)().state.dividerMargin/2).attr("y2",(0,s.D7)().state.padding+n+(0,s.D7)().state.dividerMargin/2).attr("class","descr-divider"),h=a.node().getBBox(),d=Math.max(h.width,i.width);return u.attr("x2",d+3*(0,s.D7)().state.padding),t.insert("rect",":first-child").attr("x",(0,s.D7)().state.padding).attr("y",(0,s.D7)().state.padding).attr("width",d+2*(0,s.D7)().state.padding).attr("height",h.height+n+2*(0,s.D7)().state.padding).attr("rx",(0,s.D7)().state.radius),t},"drawDescrState"),y=(0,l.K2)(function(t,e,r){var i,n=(0,s.D7)().state.padding,a=2*(0,s.D7)().state.padding,o=t.node().getBBox(),l=o.width,c=o.x,u=t.append("text").attr("x",0).attr("y",(0,s.D7)().state.titleShift).attr("font-size",(0,s.D7)().state.fontSize).attr("class","state-title").text(e.id),h=u.node().getBBox().width+a,d=Math.max(h,l);d===l&&(d+=a);var p=t.node().getBBox();e.doc,i=c-n,h>l&&(i=(l-d)/2+n),Math.abs(c-p.x)<n&&h>l&&(i=c-(h-l)/2);var g=1-(0,s.D7)().state.textHeight;return t.insert("rect",":first-child").attr("x",i).attr("y",g).attr("class",r?"alt-composit":"composit").attr("width",d).attr("height",p.height+(0,s.D7)().state.textHeight+(0,s.D7)().state.titleShift+1).attr("rx","0"),u.attr("x",i+n),h<=l&&u.attr("x",c+(d-a)/2-h/2+n),t.insert("rect",":first-child").attr("x",i).attr("y",(0,s.D7)().state.titleShift-(0,s.D7)().state.textHeight-(0,s.D7)().state.padding).attr("width",d).attr("height",3*(0,s.D7)().state.textHeight).attr("rx",(0,s.D7)().state.radius),t.insert("rect",":first-child").attr("x",i).attr("y",(0,s.D7)().state.titleShift-(0,s.D7)().state.textHeight-(0,s.D7)().state.padding).attr("width",d).attr("height",p.height+3+2*(0,s.D7)().state.textHeight).attr("rx",(0,s.D7)().state.radius),t},"addTitleAndBox"),m=(0,l.K2)(function(t){return t.append("circle").attr("class","end-state-outer").attr("r",(0,s.D7)().state.sizeUnit+(0,s.D7)().state.miniPadding).attr("cx",(0,s.D7)().state.padding+(0,s.D7)().state.sizeUnit+(0,s.D7)().state.miniPadding).attr("cy",(0,s.D7)().state.padding+(0,s.D7)().state.sizeUnit+(0,s.D7)().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",(0,s.D7)().state.sizeUnit).attr("cx",(0,s.D7)().state.padding+(0,s.D7)().state.sizeUnit+2).attr("cy",(0,s.D7)().state.padding+(0,s.D7)().state.sizeUnit+2)},"drawEndState"),v=(0,l.K2)(function(t,e){var r=(0,s.D7)().state.forkWidth,i=(0,s.D7)().state.forkHeight;if(e.parentId){var n=r;r=i,i=n}return t.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",i).attr("x",(0,s.D7)().state.padding).attr("y",(0,s.D7)().state.padding)},"drawForkJoinState"),x=(0,l.K2)(function(t,e,r,i){var a=0,o=i.append("text");o.style("text-anchor","start"),o.attr("class","noteText");var l,c=t.replace(/\r\n/g,"<br/>"),u=(c=c.replace(/\n/g,"<br/>")).split(s.Y2.lineBreakRegex),h=1.25*(0,s.D7)().state.noteMargin,d=(0,n.A)(u);try{for(d.s();!(l=d.n()).done;){var p=l.value.trim();if(p.length>0){var g=o.append("tspan");if(g.text(p),0===h)h+=g.node().getBBox().height;a+=h,g.attr("x",e+(0,s.D7)().state.noteMargin),g.attr("y",r+a+1.25*(0,s.D7)().state.noteMargin)}}}catch(t){d.e(t)}finally{d.f()}return{textWidth:o.node().getBBox().width,textHeight:a}},"_drawLongText"),b=(0,l.K2)(function(t,e){e.attr("class","state-note");var r=e.append("rect").attr("x",0).attr("y",(0,s.D7)().state.padding),i=e.append("g"),n=x(t,0,0,i),a=n.textWidth,o=n.textHeight;return r.attr("height",o+2*(0,s.D7)().state.noteMargin),r.attr("width",a+2*(0,s.D7)().state.noteMargin),r},"drawNote"),k=(0,l.K2)(function(t,e){var r=e.id,i={id:r,label:e.id,width:0,height:0},n=t.append("g").attr("id",r).attr("class","stateGroup");"start"===e.type&&d(n),"end"===e.type&&m(n),"fork"!==e.type&&"join"!==e.type||v(n,e),"note"===e.type&&b(e.note.text,n),"divider"===e.type&&p(n),"default"===e.type&&0===e.descriptions.length&&g(n,e),"default"===e.type&&e.descriptions.length>0&&f(n,e);var a=n.node().getBBox();return i.width=a.width+2*(0,s.D7)().state.padding,i.height=a.height+2*(0,s.D7)().state.padding,i},"drawState"),C=0,A=(0,l.K2)(function(t,e,r){var i=(0,l.K2)(function(t){switch(t){case a.u4.relationType.AGGREGATION:return"aggregation";case a.u4.relationType.EXTENSION:return"extension";case a.u4.relationType.COMPOSITION:return"composition";case a.u4.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(function(t){return!Number.isNaN(t.y)});var n=e.points,u=(0,c.n8j)().x(function(t){return t.x}).y(function(t){return t.y}).curve(c.qrM),h=t.append("path").attr("d",u(n)).attr("id","edge"+C).attr("class","transition"),d="";if((0,s.D7)().state.arrowMarkerAbsolute&&(d=(0,s.ID)(!0)),h.attr("marker-end","url("+d+"#"+i(a.u4.relationType.DEPENDENCY)+"End)"),void 0!==r.title){for(var p=t.append("g").attr("class","stateLabel"),g=o._K.calcLabelPosition(e.points),f=g.x,y=g.y,m=s.Y2.getRows(r.title),v=0,x=[],b=0,k=0,A=0;A<=m.length;A++){var D=p.append("text").attr("text-anchor","middle").text(m[A]).attr("x",f).attr("y",y+v),E=D.node().getBBox();if(b=Math.max(b,E.width),k=Math.min(k,E.x),l.Rm.info(E.x,f,y+v),0===v){var T=D.node().getBBox();v=T.height,l.Rm.info("Title height",v,y)}x.push(D)}var w=v*m.length;if(m.length>1){var S=(m.length-1)*v*.5;x.forEach(function(t,e){return t.attr("y",y+e*v-S)}),w=v*m.length}var F=p.node().getBBox();p.insert("rect",":first-child").attr("class","box").attr("x",f-b/2-(0,s.D7)().state.padding/2).attr("y",y-w/2-(0,s.D7)().state.padding/2-3.5).attr("width",b+(0,s.D7)().state.padding).attr("height",w+(0,s.D7)().state.padding),l.Rm.info(F)}C++},"drawEdge"),D={},E=(0,l.K2)(function(){},"setConf"),T=(0,l.K2)(function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),w=(0,l.K2)(function(t,e,r,n){i=(0,s.D7)().state;var a,o=(0,s.D7)().securityLevel;"sandbox"===o&&(a=(0,c.Ltv)("#i"+e));var u="sandbox"===o?(0,c.Ltv)(a.nodes()[0].contentDocument.body):(0,c.Ltv)("body"),h="sandbox"===o?a.nodes()[0].contentDocument:document;l.Rm.debug("Rendering diagram "+t);var d=u.select("[id='".concat(e,"']"));T(d);var p=n.db.getRootDoc(),g=d.append("g").attr("id",e+"-root");F(p,g,void 0,!1,u,h,n);var f=i.padding,y=d.node().getBBox(),m=y.width+2*f,v=y.height+2*f,x=1.75*m;(0,s.a$)(d,v,x,i.useMaxWidth),d.attr("viewBox","".concat(y.x-i.padding,"  ").concat(y.y-i.padding," ")+m+" "+v)},"draw"),S=(0,l.K2)(function(t){return t?t.length*i.fontSizeFactor:1},"getLabelWidth"),F=(0,l.K2)(function(t,e,r,n,a,o,c){var d,p=new h.T({compound:!0,multigraph:!0}),g=!0;for(d=0;d<t.length;d++)if("relation"===t[d].stmt){g=!1;break}r?p.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:g?1:i.edgeLengthFactor,nodeSep:g?1:50,isMultiGraph:!0}):p.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:g?1:i.edgeLengthFactor,nodeSep:g?1:50,ranker:"tight-tree",isMultiGraph:!0}),p.setDefaultEdgeLabel(function(){return{}});for(var f=c.db.getStates(),m=c.db.getRelations(),v=0,x=Object.keys(f);v<x.length;v++){var b=f[x[v]];r&&(b.parentId=r);var C=void 0;if(b.doc){var E=e.append("g").attr("id",b.id).attr("class","stateGroup");C=F(b.doc,E,b.id,!n,a,o,c);var T=(E=y(E,b,n)).node().getBBox();C.width=T.width,C.height=T.height+i.padding/2,D[b.id]={y:i.compositTitleSize}}else C=k(e,b,p);if(b.note){var w={descriptions:[],id:b.id+"-note",note:b.note,type:"note"},_=k(e,w,p);"left of"===b.note.position?(p.setNode(C.id+"-note",_),p.setNode(C.id,C)):(p.setNode(C.id,C),p.setNode(C.id+"-note",_)),p.setParent(C.id,C.id+"-group"),p.setParent(C.id+"-note",C.id+"-group")}else p.setNode(C.id,C)}l.Rm.debug("Count=",p.nodeCount(),p);var B=0;m.forEach(function(t){B++,l.Rm.debug("Setting edge",t),p.setEdge(t.id1,t.id2,{relation:t,width:S(t.title),height:i.labelHeight*s.Y2.getRows(t.title).length,labelpos:"c"},"id"+B)}),(0,u.Zp)(p),l.Rm.debug("Graph after layout",p.nodes());var L=e.node();p.nodes().forEach(function(t){void 0!==t&&void 0!==p.node(t)?(l.Rm.warn("Node "+t+": "+JSON.stringify(p.node(t))),a.select("#"+L.id+" #"+t).attr("transform","translate("+(p.node(t).x-p.node(t).width/2)+","+(p.node(t).y+(D[t]?D[t].y:0)-p.node(t).height/2)+" )"),a.select("#"+L.id+" #"+t).attr("data-x-shift",p.node(t).x-p.node(t).width/2),o.querySelectorAll("#"+L.id+" #"+t+" .divider").forEach(function(t){var e=t.parentElement,r=0,i=0;e&&(e.parentElement&&(r=e.parentElement.getBBox().width),i=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(i)&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",r-i-8)})):l.Rm.debug("No Node "+t+": "+JSON.stringify(p.node(t)))});var I=L.getBBox();p.edges().forEach(function(t){void 0!==t&&void 0!==p.edge(t)&&(l.Rm.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(p.edge(t))),A(e,p.edge(t),p.edge(t).relation))}),I=L.getBBox();var R={id:r||"root",label:r||"root",width:0,height:0};return R.width=I.width+2*i.padding,R.height=I.height+2*i.padding,l.Rm.debug("Doc rendered",R,p),R},"renderDoc"),_={setConf:E,draw:w},B={parser:a.Zk,get db(){return new a.u4(1)},renderer:_,styles:a.tM,init:(0,l.K2)(function(t){t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}},3598:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return a}});var i=r(72660),n=(r(21888),r(61340),r(86349),r(69914),r(607),r(86735),r(43376),r(17428),r(51266),r(34539),r(40985),r(68548)),a={parser:i.Zk,get db(){return new i.u4(2)},renderer:i.q7,styles:i.tM,init:(0,n.K2)(function(t){t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}},80004:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return ht}});var i=r(81587),n=r(3604),a=(r(74423),r(52067)),o=r(34539),s=r(40985),l=r(68548),c=r(63219),u=r(84872),h=r(89090),d=r(38602),p=function(){var t=(0,l.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],n=[1,14],a=[1,15],o=[1,16],s=[1,19],c=[1,20],u={trace:(0,l.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:(0,l.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 1:return a[s-1];case 3:i.setDirection("LR");break;case 4:i.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 11:i.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),i.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),i.getCommonDb().setAccDescription(this.$);break;case 15:i.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:i.addTask(a[s],0,""),this.$=a[s];break;case 19:i.addEvent(a[s].substr(2)),this.$=a[s]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(e,[2,5],{5:6}),t(e,[2,2]),t(e,[2,3]),t(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:n,19:a,20:o,21:17,22:18,23:s,24:c},t(e,[2,10],{1:[2,1]}),t(e,[2,6]),{12:21,14:r,15:i,17:n,19:a,20:o,21:17,22:18,23:s,24:c},t(e,[2,8]),t(e,[2,9]),t(e,[2,11]),{16:[1,22]},{18:[1,23]},t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,7]),t(e,[2,12]),t(e,[2,13])],defaultActions:{},parseError:(0,l.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,l.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",c=0,u=0,h=0,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g.yy[f]=this.yy[f]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var m=p.options&&p.options.ranges;function v(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,l.K2)(v,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=v()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(p.yytext),a.push(p.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,y=p.yylloc,h>0&&h--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,u,c,g.yy,C[1],n,a].concat(d))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},h=function(){return{EOF:1,parseError:(0,l.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,l.K2)(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},"setInput"),input:(0,l.K2)(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},"input"),unput:(0,l.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.K2)(function(){return this._more=!0,this},"more"),reject:(0,l.K2)(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})},"reject"),less:(0,l.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,l.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,l.K2)(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,"")},"upcomingInput"),showPosition:(0,l.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,l.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,l.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,l.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,l.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,l.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,l.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,l.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,l.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,l.K2)(function(t,e,r,i){switch(r){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}}();function d(){this.yy={}}return u.lexer=h,(0,l.K2)(d,"Parser"),d.prototype=u,u.Parser=d,new d}();p.parser=p;var g=p,f={};(0,l.VA)(f,{addEvent:function(){return _},addSection:function(){return T},addTask:function(){return F},addTaskOrg:function(){return B},clear:function(){return A},default:function(){return I},getCommonDb:function(){return C},getDirection:function(){return E},getSections:function(){return w},getTasks:function(){return S},setDirection:function(){return D}});var y="",m=0,v="LR",x=[],b=[],k=[],C=(0,l.K2)(function(){return s.Wt},"getCommonDb"),A=(0,l.K2)(function(){x.length=0,b.length=0,y="",k.length=0,v="LR",(0,s.IU)()},"clear"),D=(0,l.K2)(function(t){v=t},"setDirection"),E=(0,l.K2)(function(){return v},"getDirection"),T=(0,l.K2)(function(t){y=t,x.push(t)},"addSection"),w=(0,l.K2)(function(){return x},"getSections"),S=(0,l.K2)(function(){for(var t=L(),e=0;!t&&e<100;)t=L(),e++;return b.push.apply(b,k),b},"getTasks"),F=(0,l.K2)(function(t,e,r){var i={id:m++,section:y,type:y,task:t,score:e||0,events:r?[r]:[]};k.push(i)},"addTask"),_=(0,l.K2)(function(t){k.find(function(t){return t.id===m-1}).events.push(t)},"addEvent"),B=(0,l.K2)(function(t){var e={section:y,type:y,description:t,task:t,classes:[]};b.push(e)},"addTaskOrg"),L=(0,l.K2)(function(){var t,e=(0,l.K2)(function(t){return k[t].processed},"compileTask"),r=!0,a=(0,n.A)(k.entries());try{for(a.s();!(t=a.n()).done;){var o=(0,i.A)(t.value,2),s=o[0],c=o[1];e(s),r=r&&c.processed}}catch(t){a.e(t)}finally{a.f()}return r},"compileTasks"),I={clear:A,getCommonDb:C,getDirection:E,setDirection:D,addSection:T,getSections:w,getTasks:S,addTask:F,addTaskOrg:B,addEvent:_},R=0,O=(0,l.K2)(function(t,e){var r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),void 0!==e.class&&r.attr("class",e.class),r},"drawRect"),M=(0,l.K2)(function(t,e){var r=15,i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",r).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");function a(t){var i=(0,c.JLW)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(r/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function o(t){var i=(0,c.JLW)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(r/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function s(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return n.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,l.K2)(a,"smile"),(0,l.K2)(o,"sad"),(0,l.K2)(s,"ambivalent"),e.score>3?a(n):e.score<3?o(n):s(n),i},"drawFace"),N=(0,l.K2)(function(t,e){var r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),void 0!==r.class&&r.attr("class",r.class),void 0!==e.title&&r.append("title").text(e.title),r},"drawCircle"),K=(0,l.K2)(function(t,e){var r=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);var n=i.append("tspan");return n.attr("x",e.x+2*e.textMargin),n.text(r),i},"drawText"),P=(0,l.K2)(function(t,e){function r(t,e,r,i,n){return t+","+e+" "+(t+r)+","+e+" "+(t+r)+","+(e+i-n)+" "+(t+r-1.2*n)+","+(e+i)+" "+t+","+(e+i)}(0,l.K2)(r,"genPoints");var i=t.append("polygon");i.attr("points",r(e.x,e.y,50,20,7)),i.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,K(t,e)},"drawLabel"),q=(0,l.K2)(function(t,e,r){var i=t.append("g"),n=j();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=r.width,n.height=r.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,O(i,n),U(r)(e.text,i,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),z=-1,W=(0,l.K2)(function(t,e,r,i){var n=e.x+r.width/2,a=t.append("g");z++;a.append("line").attr("id",i+"-task"+z).attr("x1",n).attr("y1",e.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),M(a,{cx:n,cy:300+30*(5-e.score),score:e.score});var o=j();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=r.width,o.height=r.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,O(a,o),U(r)(e.task,a,o.x,o.y,o.width,o.height,{class:"task"},r,e.colour)},"drawTask"),Y=(0,l.K2)(function(t,e){O(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),$=(0,l.K2)(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),j=(0,l.K2)(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),U=function(){function t(t,e,r,n,a,o,s,l){i(e.append("text").attr("x",r+a/2).attr("y",n+o/2+5).style("font-color",l).style("text-anchor","middle").text(t),s)}function e(t,e,r,n,a,o,s,l,c){for(var u=l.taskFontSize,h=l.taskFontFamily,d=t.split(/<br\s*\/?>/gi),p=0;p<d.length;p++){var g=p*u-u*(d.length-1)/2,f=e.append("text").attr("x",r+a/2).attr("y",n).attr("fill",c).style("text-anchor","middle").style("font-size",u).style("font-family",h);f.append("tspan").attr("x",r+a/2).attr("dy",g).text(d[p]),f.attr("y",n+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(f,s)}}function r(t,r,n,a,o,s,l,c){var u=r.append("switch"),h=u.append("foreignObject").attr("x",n).attr("y",a).attr("width",o).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,n,a,o,s,l,c),i(h,l)}function i(t,e){for(var r in e)r in e&&t.attr(r,e[r])}return(0,l.K2)(t,"byText"),(0,l.K2)(e,"byTspan"),(0,l.K2)(r,"byFo"),(0,l.K2)(i,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?r:"old"===i.textPlacement?t:e}}(),H=(0,l.K2)(function(t,e){R=0,z=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function V(t,e){t.each(function(){for(var t,r=(0,c.Ltv)(this),i=r.text().split(/(\s+|<br>)/).reverse(),n=[],a=r.attr("y"),o=parseFloat(r.attr("dy")),s=r.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",o+"em"),l=0;l<i.length;l++)t=i[i.length-1-l],n.push(t),s.text(n.join(" ").trim()),(s.node().getComputedTextLength()>e||"<br>"===t)&&(n.pop(),s.text(n.join(" ").trim()),n="<br>"===t?[""]:[t],s=r.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}(0,l.K2)(V,"wrap");var G=(0,l.K2)(function(t,e,r,i,n){var a,o,s,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=i.theme,h=i.look,d=null==u?void 0:u.includes("redux"),p=r%(null!==(a=null==i||null===(o=i.themeVariables)||void 0===o?void 0:o.THEME_COLOR_LIMIT)&&void 0!==a?a:12)-1,g=t.append("g");e.section=p,g.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+p);var f=g.append("g"),y=g.append("g"),m=y.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(V,e.width).node().getBBox(),v=null!==(s=i.fontSize)&&void 0!==s&&s.replace?i.fontSize.replace("px",""):i.fontSize;if(e.height=m.height+1.1*v*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,y.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),d&&y.attr("transform","translate(".concat(e.width/2,", ").concat(l?e.padding/2+3:e.padding,")")),Z(f,e,p,n,i),"neo"===h&&(g.attr("data-look","neo"),d)){var x,b,k,C=u.includes("dark"),A=null!==(x=null===(b=t.node())||void 0===b?void 0:b.ownerSVGElement)&&void 0!==x?x:t.node(),D=(0,c.Ltv)(A),E=null!==(k=D.attr("id"))&&void 0!==k?k:"",T=E?"".concat(E,"-drop-shadow"):"drop-shadow";if(D.select("#".concat(T)).empty()){var w=D.select("defs");(w.empty()?D.append("defs"):w).append("filter").attr("id",T).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",C?"0.2":"0.06").attr("flood-color",C?"#FFFFFF":"#000000")}}return e},"drawNode"),X=(0,l.K2)(function(t,e,r){var i,n=t.append("g"),a=n.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(V,e.width).node().getBBox(),o=null!==(i=r.fontSize)&&void 0!==i&&i.replace?r.fontSize.replace("px",""):r.fontSize;return n.remove(),a.height+1.1*o*.5+e.padding},"getVirtualNodeHeight"),Z=(0,l.K2)(function(t,e,r,i,n){var a=n.theme,o=null!=a&&a.includes("redux")?0:5,s=o>0?"M0 ".concat(e.height-5," v").concat(10-e.height," q0,-").concat(o,",").concat(o,",-").concat(o," h").concat(e.width-10," q").concat(o,",0,").concat(o,",").concat(o," v").concat(e.height-5," H0 Z"):"M0 ".concat(e.height-5," v").concat(-(e.height-5)," h").concat(e.width," v").concat(e.height," H0 Z");t.append("path").attr("id",i+"-node-"+R++).attr("class","node-bkg node-"+e.type).attr("d",s),null!=a&&a.includes("redux")||t.append("line").attr("class","node-line-"+r).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),Q={drawRect:O,drawCircle:N,drawSection:q,drawText:K,drawLabel:P,drawTask:W,drawBackgroundRect:Y,getTextObj:$,getNoteRect:j,initGraphics:H,drawNode:G,getVirtualNodeHeight:X},J=(0,l.K2)(function(t,e,r,a){var o,u,h,d,p,g,f=(0,s.D7)(),y=f.look,m=f.theme,v=f.themeVariables,x=v.useGradient,b=v.gradientStart,k=v.gradientStop,C=null!==(o=null===(u=f.timeline)||void 0===u?void 0:u.leftMargin)&&void 0!==o?o:50;l.Rm.debug("timeline",a.db);var A,D=f.securityLevel;"sandbox"===D&&(A=(0,c.Ltv)("#i"+e));var E=("sandbox"===D?(0,c.Ltv)(A.nodes()[0].contentDocument.body):(0,c.Ltv)("body")).select("#"+e);E.append("g");var T=a.db.getTasks(),w=a.db.getCommonDb().getDiagramTitle();l.Rm.debug("task",T),Q.initGraphics(E,e);var S=a.db.getSections();l.Rm.debug("sections",S);var F,_=0,B=0,L=50+C,I=50;var R=0,O=!0;S.forEach(function(t){var e={number:R,descr:t,section:R,width:150,padding:20,maxHeight:_},r=Q.getVirtualNodeHeight(E,e,f);l.Rm.debug("sectionHeight before draw",r),_=Math.max(_,r+20)});var M=0,N=0;l.Rm.debug("tasks.length",T.length);var K,P=(0,n.A)(T.entries());try{for(P.s();!(K=P.n()).done;){var q=(0,i.A)(K.value,2),z=q[0],W=q[1],Y={number:z,descr:W,section:W.section,width:150,padding:20,maxHeight:B},$=Q.getVirtualNodeHeight(E,Y,f);l.Rm.debug("taskHeight before draw",$),B=Math.max(B,$+20),M=Math.max(M,W.events.length);var j,U=0,H=(0,n.A)(W.events);try{for(H.s();!(j=H.n()).done;){var V={descr:j.value,section:W.section,number:W.section,width:150,padding:20,maxHeight:50};U+=Q.getVirtualNodeHeight(E,V,f)}}catch(t){H.e(t)}finally{H.f()}W.events.length>0&&(U+=10*(W.events.length-1)),N=Math.max(N,U)}}catch(t){P.e(t)}finally{P.f()}l.Rm.debug("maxSectionHeight before draw",_),l.Rm.debug("maxTaskHeight before draw",B),S&&S.length>0?S.forEach(function(t){var r=T.filter(function(e){return e.section===t}),i={number:R,descr:t,section:R,width:200*Math.max(r.length,1)-50,padding:20,maxHeight:_};l.Rm.debug("sectionNode",i);var n=E.append("g"),a=Q.drawNode(n,i,R,f,e);l.Rm.debug("sectionNode output",a),n.attr("transform","translate(".concat(L,", ").concat(50,")")),I+=_+50,r.length>0&&tt(E,r,R,L,I,B,f,M,N,_,!1,e),L+=200*Math.max(r.length,1),I=50,R++}):(O=!1,tt(E,T,R,L,I,B,f,M,N,_,!0,e));var G=E.node().getBBox();if(l.Rm.debug("bounds",G),w&&E.append("text").text(w).attr("x","neo"===y?2*G.x+C:G.width/2-C).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),F=O?_+B+150:B+100,E.append("g").attr("class","lineWrapper").append("line").attr("x1",C).attr("y1",F).attr("x2",G.width+3*C).attr("y2",F).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#".concat(e,"-arrowhead)")),"neo"===y&&x&&"neutral"!==m){var X=E.select("defs"),Z=(X.empty()?E.append("defs"):X).append("linearGradient").attr("id",E.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");Z.append("stop").attr("offset","0%").attr("stop-color",b).attr("stop-opacity",1),Z.append("stop").attr("offset","100%").attr("stop-color",k).attr("stop-opacity",1)}(0,s.ot)(void 0,E,null!==(h=null===(d=f.timeline)||void 0===d?void 0:d.padding)&&void 0!==h?h:50,null!==(p=null===(g=f.timeline)||void 0===g?void 0:g.useMaxWidth)&&void 0!==p&&p)},"draw"),tt=(0,l.K2)(function(t,e,r,i,a,o,s,c,u,h,d,p){var g,f=(0,n.A)(e);try{for(f.s();!(g=f.n()).done;){var y,m=g.value,v={descr:m.task,section:r,number:r,width:150,padding:20,maxHeight:o};l.Rm.debug("taskNode",v);var x=t.append("g").attr("class","taskWrapper"),b=Q.drawNode(x,v,r,s,p).height;if(l.Rm.debug("taskHeight after draw",b),x.attr("transform","translate(".concat(i,", ").concat(a,")")),o=Math.max(o,b),m.events){var k=t.append("g").attr("class","lineWrapper");a+=100,et(t,m.events,r,i,a,s,p),a-=100,k.append("line").attr("x1",i+95).attr("y1",a+o).attr("x2",i+95).attr("y2",a+o+100+u+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#".concat(p,"-arrowhead)")).attr("stroke-dasharray","5,5")}i+=200,!d||null!==(y=s.timeline)&&void 0!==y&&y.disableMulticolor||r++}}catch(t){f.e(t)}finally{f.f()}a-=10},"drawTasks"),et=(0,l.K2)(function(t,e,r,i,a,o,s){var c=0,u=a;a+=100;var h,d=(0,n.A)(e);try{for(d.s();!(h=d.n()).done;){var p={descr:h.value,section:r,number:r,width:150,padding:20,maxHeight:50};l.Rm.debug("eventNode",p);var g=t.append("g").attr("class","eventWrapper"),f=Q.drawNode(g,p,r,o,s,!0).height;c+=f,g.attr("transform","translate(".concat(i,", ").concat(a,")")),a=a+10+f}}catch(t){d.e(t)}finally{d.f()}return a=u,c},"drawEvents"),rt={setConf:(0,l.K2)(function(){},"setConf"),draw:J},it=200,nt=(0,l.K2)(function(t,e,r,c){var u,h,d,p,g,f,y,m=(0,s.D7)(),v=null!==(u=null===(h=m.timeline)||void 0===h?void 0:h.leftMargin)&&void 0!==u?u:50;l.Rm.debug("timeline",c.db);var x=(0,a.D)(e);x.append("g");var b=c.db.getTasks(),k=c.db.getCommonDb().getDiagramTitle();l.Rm.debug("task",b),Q.initGraphics(x);var C=c.db.getSections();l.Rm.debug("sections",C);var A=0,D=0,E=50+v,T=50,w=T,S=230,F=E+S,_=0,B=C&&C.length>0,L=B?F:E+S,I=Math.max(50,580);C.forEach(function(t){var e={number:_,descr:t,section:_,width:I,padding:5,maxHeight:A},r=Q.getVirtualNodeHeight(x,e,m);l.Rm.debug("sectionHeight before draw",r),A=Math.max(A,r)});var R=0;l.Rm.debug("tasks.length",b.length);var O,M=(0,n.A)(b.entries());try{for(M.s();!(O=M.n()).done;){var N=(0,i.A)(O.value,2),K=N[0],P=N[1],q={number:K,descr:P,section:P.section,width:it,padding:5,maxHeight:D},z=Q.getVirtualNodeHeight(x,q,m);l.Rm.debug("taskHeight before draw",z),D=Math.max(D,z);var W,Y=0,$=(0,n.A)(P.events);try{for($.s();!(W=$.n()).done;){var j={descr:W.value,section:P.section,number:P.section,width:300,padding:5,maxHeight:50};Y+=Q.getVirtualNodeHeight(x,j,m)}}catch(t){$.e(t)}finally{$.f()}P.events.length>0&&(Y+=10*(P.events.length-1)),R=Math.max(R,Y)+0}}catch(t){M.e(t)}finally{M.f()}l.Rm.debug("maxSectionHeight before draw",A),l.Rm.debug("maxTaskHeight before draw",D);var U=Math.max(D,R)+30;B?C.forEach(function(t){var e=b.filter(function(e){return e.section===t}),r={number:_,descr:t,section:_,width:I,padding:5,maxHeight:A};l.Rm.debug("sectionNode",r);var i=x.append("g"),n=Q.drawNode(i,r,_,m);l.Rm.debug("sectionNode output",n);var a=L-S;i.attr("transform","translate(".concat(a,", ").concat(T,")"));var o=T+n.height+20;e.length>0&&at(x,e,_,L,o,D,m,U,!1);var s=e.length,c=n.height+20+U*Math.max(s,1)-(s>0?60:0);T+=c,_++}):at(x,b,_,L,T,D,m,U,!0);var H=null===(d=x.node())||void 0===d?void 0:d.getBBox();if(!H)throw new Error("bbox not found");if(l.Rm.debug("bounds",H),k){var V;if(x.append("text").text(k).attr("x",H.width/2-v).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),!(H=null===(V=x.node())||void 0===V?void 0:V.getBBox()))throw new Error("bbox not found");l.Rm.debug("bounds after title",H)}var G=(0,o.I5)(m.fontSize),X=(0,i.A)(G,1)[0],Z=2*(null!=X?X:16),J=.5*(null!=X?X:16)+20,tt=x.append("g").attr("class","lineWrapper");tt.append("line").attr("x1",L).attr("y1",w-Z).attr("x2",L).attr("y2",H.y+H.height+J).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),tt.lower(),(0,s.ot)(void 0,x,null!==(p=null===(g=m.timeline)||void 0===g?void 0:g.padding)&&void 0!==p?p:50,null!==(f=null===(y=m.timeline)||void 0===y?void 0:y.useMaxWidth)&&void 0!==f&&f)},"draw"),at=(0,l.K2)(function(t,e,r,i,a,o,s,c,u){var h,d=(0,n.A)(e);try{for(d.s();!(h=d.n()).done;){var p,g=h.value,f={descr:g.task,section:r,number:r,width:it,padding:5,maxHeight:o};l.Rm.debug("taskNode",f);var y=t.append("g").attr("class","taskWrapper"),m=Q.drawNode(y,f,r,s),v=m.height;l.Rm.debug("taskHeight after draw",v);var x=i-20-m.width;if(y.attr("transform","translate(".concat(x,", ").concat(a,")")),o=Math.max(o,v),g.events&&g.events.length>0){var b=a,k=i+50;ot(t,g.events,r,i,k,b,s)}a+=c,!u||null!==(p=s.timeline)&&void 0!==p&&p.disableMulticolor||r++}}catch(t){d.e(t)}finally{d.f()}},"drawTasks"),ot=(0,l.K2)(function(t,e,r,i,a,o,s){var c,u=o,h=(0,n.A)(e);try{for(h.s();!(c=h.n()).done;){var d={descr:c.value,section:r,number:r,width:300,padding:5,maxHeight:0};l.Rm.debug("eventNode",d);var p=t.append("g").attr("class","eventWrapper"),g=Q.drawNode(p,d,r,s).height;p.attr("transform","translate(".concat(a,", ").concat(u,")"));var f=t.append("g").attr("class","lineWrapper"),y=u+g/2;f.append("line").attr("x1",i).attr("y1",y).attr("x2",a).attr("y2",y).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),u=u+g+10}}catch(t){h.e(t)}finally{h.f()}return u-o},"drawEvents"),st={setConf:(0,l.K2)(function(){},"setConf"),draw:nt},lt=(0,l.K2)(function(t){for(var e,r,i,n=(0,s.zj)().theme,a=null==n?void 0:n.includes("dark"),o=null==n?void 0:n.includes("color"),l=null!==(e=null===(r=t.svgId)||void 0===r?void 0:r.replace(/^#/,""))&&void 0!==e?e:"",c=l?"url(#".concat(l,"-drop-shadow)"):null!==(i=t.dropShadow)&&void 0!==i?i:"none",u="",h=0;h<t.THEME_COLOR_LIMIT;h++){var d,p,g="".concat(17-3*h),f=o?t.borderColorArray[h]:t.mainBkg,y=o?t.borderColorArray[h]:t.nodeBorder;u+="\n    .section-".concat(h-1," rect,\n    .section-").concat(h-1," path,\n    .section-").concat(h-1," circle {\n      fill: ").concat(a&&o?t.mainBkg:f,";\n      stroke: ").concat(y,";\n      stroke-width: ").concat(t.strokeWidth,";\n      filter: ").concat(c,";\n    }\n\n    .section-").concat(h-1," text {\n      fill: ").concat(t.nodeBorder,";\n      font-weight: ").concat(t.fontWeight,"\n    }\n\n    .node-icon-").concat(h-1," {\n      font-size: 40px;\n      color: ").concat(t["cScaleLabel"+h],";\n    }\n\n    .section-edge-").concat(h-1," {\n      stroke: ").concat(t["cScale"+h],";\n    }\n\n    .edge-depth-").concat(h-1," {\n      stroke-width: ").concat(g,";\n    }\n\n    .section-").concat(h-1," line {\n      stroke: ").concat(t["cScaleInv"+h],";\n      stroke-width: 3;\n    }\n\n    .lineWrapper line {\n      stroke: ").concat(t.nodeBorder,";\n      stroke-width:").concat(t.strokeWidth,"\n    }\n\n    .disabled,\n    .disabled circle,\n    .disabled text {\n      fill: ").concat(null!==(d=t.tertiaryColor)&&void 0!==d?d:"lightgray",";\n    }\n\n    .disabled text {\n      fill: ").concat(null!==(p=t.clusterBorder)&&void 0!==p?p:"#efefef",";\n    }\n    ")}return u},"genReduxSections"),ct=(0,l.K2)(function(t){for(var e="",r=0;r<t.THEME_COLOR_LIMIT;r++)t["lineColor"+r]=t["lineColor"+r]||t["cScaleInv"+r],(0,u.A)(t["lineColor"+r])?t["lineColor"+r]=(0,h.A)(t["lineColor"+r],20):t["lineColor"+r]=(0,d.A)(t["lineColor"+r],20);for(var i=0;i<t.THEME_COLOR_LIMIT;i++){var n,a,o=""+(17-3*i);e+="\n    .section-".concat(i-1," rect, .section-").concat(i-1," path, .section-").concat(i-1," circle, .section-").concat(i-1," path  {\n      fill: ").concat(t["cScale"+i],";\n    }\n    .section-").concat(i-1," text {\n     fill: ").concat(t["cScaleLabel"+i],";\n    }\n    .node-icon-").concat(i-1," {\n      font-size: 40px;\n      color: ").concat(t["cScaleLabel"+i],";\n    }\n    .section-edge-").concat(i-1,"{\n      stroke: ").concat(t["cScale"+i],";\n    }\n    .edge-depth-").concat(i-1,"{\n      stroke-width: ").concat(o,";\n    }\n    .section-").concat(i-1," line {\n      stroke: ").concat(t["cScaleInv"+i]," ;\n      stroke-width: 3;\n    }\n\n    .lineWrapper line{\n      stroke: ").concat(t["cScaleLabel"+i]," ;\n    }\n\n    .disabled, .disabled circle, .disabled text {\n      fill: ").concat(null!==(n=t.tertiaryColor)&&void 0!==n?n:"lightgray",";\n    }\n    .disabled text {\n      fill: ").concat(null!==(a=t.clusterBorder)&&void 0!==a?a:"#efefef",";\n    }\n    ")}return e},"genSections"),ut=(0,l.K2)(function(t){var e,r,i=(0,s.zj)().theme,n=null==i?void 0:i.includes("redux"),a="neutral"===i,o=null!==(e=null===(r=t.svgId)||void 0===r?void 0:r.replace(/^#/,""))&&void 0!==e?e:"",l="";if(t.useGradient&&o&&t.THEME_COLOR_LIMIT&&!a)for(var c=0;c<t.THEME_COLOR_LIMIT;c++)l+="\n      .section-".concat(c-1,'[data-look="neo"] rect,\n      .section-').concat(c-1,'[data-look="neo"] path,\n      .section-').concat(c-1,'[data-look="neo"] circle {\n        fill: ').concat(t.mainBkg,";\n        stroke: url(#").concat(o,"-gradient);\n        stroke-width: 2;\n      }\n      .section-").concat(c-1,'[data-look="neo"] line {\n        stroke: url(#').concat(o,"-gradient);\n        stroke-width: 2;\n      }");return"\n  .edge {\n    stroke-width: 3;\n  }\n  ".concat(n?lt(t):ct(t),"\n  ").concat(l,"\n  .section-root rect, .section-root path, .section-root circle  {\n    fill: ").concat(t.git0,";\n  }\n  .section-root text {\n    fill: ").concat(t.gitBranchLabel0,";\n  }\n  .icon-container {\n    height:100%;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n  }\n  .edge {\n    fill: none;\n  }\n  .eventWrapper  {\n   filter: brightness(120%);\n  }\n")},"getStyles"),ht={db:f,renderer:{setConf:(0,l.K2)(function(){},"setConf"),draw:(0,l.K2)(function(t,e,r,i){var n,a,o;return"TD"===(null!==(n=null==i||null===(a=i.db)||void 0===a||null===(o=a.getDirection)||void 0===o?void 0:o.call(a))&&void 0!==n?n:"LR")?st.draw(t,e,r,i):rt.draw(t,e,r,i)},"draw")},parser:g,styles:ut}},36896:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return H}});var i=r(41034),n=r(81587),a=r(3604),o=r(74721),s=r(52067),l=r(34539),c=r(40985),u=r(68548),h=r(63219),d=r(84872),p=r(89090),g=r(38602),f=r(58925),y=r(25083),m=r(79435),v=function(){var t=(0,u.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[5,8],r=[7,8,11,12,17,19,22,24],i=[1,17],n=[1,18],a=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],s=[1,31],l=[1,39],c=[7,8,11,12,17,19,22,24,27],h=[1,57],d=[1,56],p=[1,58],g=[1,59],f=[1,60],y=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],m={trace:(0,u.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:(0,u.K2)(function(t,e,r,i,n,a,s){var l=a.length-1;switch(n){case 1:return a[l-1];case 2:case 3:case 4:case 6:this.$=[];break;case 5:case 35:a[l-1].push(a[l]),this.$=a[l-1];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:case 43:case 44:this.$=a[l];break;case 8:i.setDiagramTitle(a[l].substr(6)),this.$=a[l].substr(6);break;case 9:i.addSubsetData([a[l]],void 0,void 0),i.setIndentMode&&i.setIndentMode(!0);break;case 10:i.addSubsetData([a[l-1]],a[l],void 0),i.setIndentMode&&i.setIndentMode(!0);break;case 11:i.addSubsetData([a[l-2]],void 0,parseFloat(a[l])),i.setIndentMode&&i.setIndentMode(!0);break;case 12:i.addSubsetData([a[l-3]],a[l-2],parseFloat(a[l])),i.setIndentMode&&i.setIndentMode(!0);break;case 13:if(a[l].length<2)throw new Error("union requires multiple identifiers");i.validateUnionIdentifiers&&i.validateUnionIdentifiers(a[l]),i.addSubsetData(a[l],void 0,void 0),i.setIndentMode&&i.setIndentMode(!0);break;case 14:if(a[l-1].length<2)throw new Error("union requires multiple identifiers");i.validateUnionIdentifiers&&i.validateUnionIdentifiers(a[l-1]),i.addSubsetData(a[l-1],a[l],void 0),i.setIndentMode&&i.setIndentMode(!0);break;case 15:if(a[l-2].length<2)throw new Error("union requires multiple identifiers");i.validateUnionIdentifiers&&i.validateUnionIdentifiers(a[l-2]),i.addSubsetData(a[l-2],void 0,parseFloat(a[l])),i.setIndentMode&&i.setIndentMode(!0);break;case 16:if(a[l-3].length<2)throw new Error("union requires multiple identifiers");i.validateUnionIdentifiers&&i.validateUnionIdentifiers(a[l-3]),i.addSubsetData(a[l-3],a[l-2],parseFloat(a[l])),i.setIndentMode&&i.setIndentMode(!0);break;case 17:case 18:case 19:i.addTextData(a[l-1],a[l],void 0);break;case 20:case 21:i.addTextData(a[l-2],a[l-1],a[l]);break;case 23:i.addStyleData(a[l-1],a[l]);break;case 24:case 25:case 26:if(!(c=i.getCurrentSets()))throw new Error("text requires set");i.addTextData(c,a[l],void 0);break;case 27:case 28:var c;if(!(c=i.getCurrentSets()))throw new Error("text requires set");i.addTextData(c,a[l-1],a[l]);break;case 29:case 41:case 34:this.$=[a[l]];break;case 30:case 42:this.$=[].concat((0,o.A)(a[l-2]),[a[l]]);break;case 31:this.$=[a[l-2],a[l]];break;case 33:this.$=a[l].join(" ")}},"anonymous"),table:[t(e,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},t(r,[2,4],{6:5}),t(e,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},t(r,[2,5]),t(r,[2,6]),t(r,[2,7]),t(r,[2,8]),{13:16,20:i,21:n},{13:20,18:19,20:i,21:n},{13:20,18:21,20:i,21:n},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:i,21:n},t(r,[2,9],{14:[1,27],15:[1,28]}),t(a,[2,43]),t(a,[2,44]),t(r,[2,13],{14:[1,29],15:[1,30],27:s}),t(a,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:s},t(r,[2,22]),t(r,[2,24],{14:[1,35]}),t(r,[2,25],{14:[1,36]}),t(r,[2,26]),{20:l,25:37,26:38,27:s},t(r,[2,10],{15:[1,40]}),{16:[1,41]},t(r,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:i,21:n},t(r,[2,17],{14:[1,45]}),t(r,[2,18],{14:[1,46]}),t(r,[2,19]),t(r,[2,27]),t(r,[2,28]),t(r,[2,23],{27:[1,47]}),t(c,[2,29]),{15:[1,48]},{16:[1,49]},t(r,[2,11]),{16:[1,50]},t(r,[2,15]),t(a,[2,42]),t(r,[2,20]),t(r,[2,21]),{20:l,26:51},{16:h,20:d,21:[1,53],28:52,29:54,30:55,31:p,32:g,33:f},t(r,[2,12]),t(r,[2,16]),t(c,[2,30]),t(c,[2,31]),t(c,[2,32]),t(c,[2,33],{30:61,16:h,20:d,31:p,32:g,33:f}),t(y,[2,34]),t(y,[2,36]),t(y,[2,37]),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,35])],defaultActions:{6:[2,1]},parseError:(0,u.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,u.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,h=0,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g.yy[f]=this.yy[f]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var m=p.options&&p.options.ranges;function v(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,u.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,u.K2)(v,"lex");for(var x,b,k,C,A,D,E,T,w,S={};;){if(k=r[r.length-1],this.defaultActions[k]?C=this.defaultActions[k]:(null==x&&(x=v()),C=o[k]&&o[k][x]),void 0===C||!C.length||!C[0]){var F="";for(D in w=[],o[k])this.terminals_[D]&&D>2&&w.push("'"+this.terminals_[D]+"'");F=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(F,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:w})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(C[0]){case 1:r.push(x),n.push(p.yytext),a.push(p.yylloc),r.push(C[1]),x=null,b?(x=b,b=null):(c=p.yyleng,s=p.yytext,l=p.yylineno,y=p.yylloc,h>0&&h--);break;case 2:if(E=this.productions_[C[1]][1],S.$=n[n.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},m&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[s,c,l,g.yy,C[1],n,a].concat(d))))return A;E&&(r=r.slice(0,-1*E*2),n=n.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[C[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},v=function(){return{EOF:1,parseError:(0,u.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,u.K2)(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},"setInput"),input:(0,u.K2)(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},"input"),unput:(0,u.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,u.K2)(function(){return this._more=!0,this},"more"),reject:(0,u.K2)(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})},"reject"),less:(0,u.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,u.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,u.K2)(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,"")},"upcomingInput"),showPosition:(0,u.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,u.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,u.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,u.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,u.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,u.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,u.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,u.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,u.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,u.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,u.K2)(function(t,e,r,i){switch(r){case 0:case 1:case 2:case 4:case 7:case 8:break;case 3:if(t.getIndentMode&&t.getIndentMode())return t.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 5:t.setIndentMode&&t.setIndentMode(!1),this.begin("INITIAL"),this.unput(e.yytext);break;case 6:return this.begin("bol"),8;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(!t.consumeIndentText)return 19;t.consumeIndentText=!1;break;case 15:return 24;case 16:return e.yytext=e.yytext.slice(2,-2),14;case 17:return e.yytext=e.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}}}();function x(){this.yy={}}return m.lexer=v,(0,u.K2)(x,"Parser"),x.prototype=m,m.Parser=x,new x}();v.parser=v;var x,b=v,k=[],C=[],A=[],D=new Set,E=!1,T=(0,u.K2)(function(t,e,r){var i=I(t).sort(),n=null!=r?r:10/Math.pow(t.length,2);x=i,1===i.length&&D.add(i[0]),k.push({sets:i,size:n,label:e?S(e):void 0})},"addSubsetData"),w=(0,u.K2)(function(){return k},"getSubsetData"),S=(0,u.K2)(function(t){var e=t.trim();return e.length>=2&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e},"normalizeText"),F=(0,u.K2)(function(t){return t?S(t):t},"normalizeStyleValue"),_=(0,u.K2)(function(t,e,r){var i=S(e);C.push({sets:I(t).sort(),id:i,label:r?S(r):void 0})},"addTextData"),B=(0,u.K2)(function(t,e){var r,i=I(t).sort(),o={},s=(0,a.A)(e);try{for(s.s();!(r=s.n()).done;){var l,c=(0,n.A)(r.value,2),u=c[0],h=c[1];o[u]=null!==(l=F(h))&&void 0!==l?l:h}}catch(t){s.e(t)}finally{s.f()}A.push({targets:i,styles:o})},"addStyleData"),L=(0,u.K2)(function(){return A},"getStyleData"),I=(0,u.K2)(function(t){return t.map(function(t){return S(t)})},"normalizeIdentifierList"),R=(0,u.K2)(function(t){var e=I(t).filter(function(t){return!D.has(t)});if(e.length>0)throw new Error("unknown set identifier: ".concat(e.join(", ")))},"validateUnionIdentifiers"),O=(0,u.K2)(function(){return C},"getTextData"),M=(0,u.K2)(function(){return x},"getCurrentSets"),N=(0,u.K2)(function(){return E},"getIndentMode"),K=(0,u.K2)(function(t){E=t},"setIndentMode"),P=c.UI.venn;function q(){return(0,l.$t)(P,(0,c.zj)().venn)}(0,u.K2)(q,"getConfig");var z={getConfig:q,clear:(0,u.K2)(function(){(0,c.IU)(),k.length=0,C.length=0,A.length=0,D.clear(),x=void 0,E=!1},"customClear"),setAccTitle:c.SV,getAccTitle:c.iN,setDiagramTitle:c.ke,getDiagramTitle:c.ab,getAccDescription:c.m7,setAccDescription:c.EI,addSubsetData:T,getSubsetData:w,addTextData:_,addStyleData:B,validateUnionIdentifiers:R,getTextData:O,getStyleData:L,getCurrentSets:M,getIndentMode:N,setIndentMode:K},W=(0,u.K2)(function(t){return"\n  .venn-title {\n    font-size: 32px;\n    fill: ".concat(t.vennTitleTextColor,";\n    font-family: ").concat(t.fontFamily,";\n  }\n\n  .venn-circle text {\n    font-size: 48px;\n    font-family: ").concat(t.fontFamily,";\n  }\n\n  .venn-intersection text {\n    font-size: 48px;\n    fill: ").concat(t.vennSetTextColor,";\n    font-family: ").concat(t.fontFamily,";\n  }\n\n  .venn-text-node {\n    font-family: ").concat(t.fontFamily,";\n    color: ").concat(t.vennSetTextColor,";\n  }\n")},"getStyles");function Y(t){var e,r=new Map,n=(0,a.A)(t);try{for(n.s();!(e=n.n()).done;){var o=e.value,s=o.targets.join("|"),l=r.get(s);l?Object.assign(l,o.styles):r.set(s,(0,i.A)({},o.styles))}}catch(t){n.e(t)}finally{n.f()}return r}(0,u.K2)(Y,"buildStyleByKey");var $=(0,u.K2)(function(t,e,r,i){var n,l,u,v,x,b,k,C=i.db,A=null===(n=C.getConfig)||void 0===n?void 0:n.call(C),D=(0,c.zj)(),E=D.themeVariables,T=D.look,w=D.handDrawnSeed,S="handDrawn"===T,F=[E.venn1,E.venn2,E.venn3,E.venn4,E.venn5,E.venn6,E.venn7,E.venn8].filter(Boolean),_=null===(l=C.getDiagramTitle)||void 0===l?void 0:l.call(C),B=C.getSubsetData(),L=C.getTextData(),I=Y(C.getStyleData()),R=null!==(u=null==A?void 0:A.width)&&void 0!==u?u:800,O=null!==(v=null==A?void 0:A.height)&&void 0!==v?v:450,M=R/1600,N=_?48*M:0,K=null!==(x=E.primaryTextColor)&&void 0!==x?x:E.textColor,P=(0,s.D)(e);P.attr("viewBox","0 0 ".concat(R," ").concat(O)),_&&P.append("text").text(_).attr("class","venn-title").attr("font-size","".concat(32*M,"px")).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*M).style("fill",E.vennTitleTextColor||E.titleColor);var q=(0,h.Ltv)(document.createElement("div")),z=y.py().width(R).height(O-N);q.datum(B).call(z);var W,$=S?m.A.svg(q.select("svg").node()):void 0,H=y.Zp(B,{width:R,height:O-N,padding:null!==(b=null==A?void 0:A.padding)&&void 0!==b?b:15}),V=new Map,G=(0,a.A)(H);try{for(G.s();!(W=G.n()).done;){var X=W.value,Z=j((0,o.A)(X.data.sets).sort());V.set(Z,X)}}catch(t){G.e(t)}finally{G.f()}L.length>0&&U(A,V,q,L,M,I);var Q=(0,d.A)(E.background||"#f4f4f4");q.selectAll(".venn-circle").each(function(t,e){var r,i=(0,h.Ltv)(this),n=t,a=j((0,o.A)(n.sets).sort()),s=I.get(a),l=(null==s?void 0:s.fill)||F[e%F.length]||E.primaryColor;i.classed("venn-set-".concat(e%8),!0);var c=null!==(r=null==s?void 0:s["fill-opacity"])&&void 0!==r?r:.1,u=(null==s?void 0:s.stroke)||l,d=(null==s?void 0:s["stroke-width"])||"".concat(5*M);if(S&&$){var y=V.get(a);if(y&&y.circles.length>0){var m,v=y.circles[0],x=$.circle(v.x,v.y,2*v.radius,{roughness:.7,seed:w,fill:(0,f.A)(l,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:60*e-41,stroke:u,strokeWidth:parseFloat(String(d))});i.select("path").remove(),null===(m=i.node())||void 0===m||m.insertBefore(x,i.select("text").node())}}else i.select("path").style("fill",l).style("fill-opacity",c).style("stroke",u).style("stroke-width",d).style("stroke-opacity",.95);var b=(null==s?void 0:s.color)||(Q?(0,p.A)(l,30):(0,g.A)(l,30));i.select("text").style("font-size","".concat(48*M,"px")).style("fill",b)}),S&&$?q.selectAll(".venn-intersection").each(function(t){var e,r,i=(0,h.Ltv)(this),n=t,a=j((0,o.A)(n.sets).sort()),s=I.get(a),l=null==s?void 0:s.fill;if(l){var c=i.select("path"),u=c.attr("d");if(u){var d,p=$.path(u,{roughness:.7,seed:w,fill:(0,f.A)(l,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),g=c.node();null==g||null===(d=g.parentNode)||void 0===d||d.insertBefore(p,g),c.remove()}}else i.select("path").style("fill-opacity",0);i.select("text").style("font-size","".concat(48*M,"px")).style("fill",null!==(e=null!==(r=null==s?void 0:s.color)&&void 0!==r?r:E.vennSetTextColor)&&void 0!==e?e:K)}):(q.selectAll(".venn-intersection text").style("font-size","".concat(48*M,"px")).style("fill",function(t){var e,r,i,n=t,a=j((0,o.A)(n.sets).sort());return null!==(e=null!==(r=null===(i=I.get(a))||void 0===i?void 0:i.color)&&void 0!==r?r:E.vennSetTextColor)&&void 0!==e?e:K}),q.selectAll(".venn-intersection path").style("fill-opacity",function(t){var e,r=t,i=j((0,o.A)(r.sets).sort());return null!==(e=I.get(i))&&void 0!==e&&e.fill?1:0}).style("fill",function(t){var e,r,i=t,n=j((0,o.A)(i.sets).sort());return null!==(e=null===(r=I.get(n))||void 0===r?void 0:r.fill)&&void 0!==e?e:"transparent"}));var J=P.append("g").attr("transform","translate(0, ".concat(N,")")),tt=q.select("svg").node();if(tt&&"childNodes"in tt)for(var et=0,rt=(0,o.A)(tt.childNodes);et<rt.length;et++){var it,nt=rt[et];null===(it=J.node())||void 0===it||it.appendChild(nt)}(0,c.a$)(P,O,R,null===(k=null==A?void 0:A.useMaxWidth)||void 0===k||k)},"draw");function j(t){return t.join("|")}function U(t,e,r,i,s,l){var c,u,h=null!==(c=null==t?void 0:t.useDebugLayout)&&void 0!==c&&c,d=r.select("svg").append("g").attr("class","venn-text-nodes"),p=new Map,g=(0,a.A)(i);try{for(g.s();!(u=g.n()).done;){var f=u.value,y=j(f.sets),m=p.get(y);m?m.push(f):p.set(y,[f])}}catch(t){g.e(t)}finally{g.f()}var v,x=(0,a.A)(p.entries());try{var b=function(){var t=(0,n.A)(v.value,2),r=t[0],i=t[1],c=e.get(r);if(null==c||!c.text)return 1;var u=c.text.x,p=c.text.y,g=Math.min.apply(Math,(0,o.A)(c.circles.map(function(t){return t.radius}))),f=Math.min.apply(Math,(0,o.A)(c.circles.map(function(t){return t.radius-Math.hypot(u-t.x,p-t.y)}))),y=Number.isFinite(f)?Math.max(0,f):0;0===y&&Number.isFinite(g)&&(y=.6*g);var m=d.append("g").attr("class","venn-text-area").attr("font-size","".concat(40*s,"px"));h&&m.append("circle").attr("class","venn-text-debug-circle").attr("cx",u).attr("cy",p).attr("r",y).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*s).attr("stroke-dasharray","".concat(6*s," ").concat(4*s));var x,b=Math.max(80*s,2*y*.95),k=Math.max(60*s,2*y*.95),C=(c.data.label&&c.data.label.length>0?Math.min(32*s,.25*y):0)+(i.length<=2?30*s:0),A=u-b/2,D=p-k/2+C,E=Math.max(1,Math.ceil(Math.sqrt(i.length))),T=b/E,w=k/Math.max(1,Math.ceil(i.length/E)),S=(0,a.A)(i.entries());try{for(S.s();!(x=S.n()).done;){var F,_,B=(0,n.A)(x.value,2),L=B[0],I=B[1],R=L%E,O=Math.floor(L/E),M=A+T*(R+.5),N=D+w*(O+.5);h&&m.append("rect").attr("class","venn-text-debug-cell").attr("x",A+T*R).attr("y",D+w*O).attr("width",T).attr("height",w).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*s).attr("stroke-dasharray","".concat(4*s," ").concat(3*s));var K=.9*T,P=.9*w,q=m.append("foreignObject").attr("class","venn-text-node-fo").attr("width",K).attr("height",P).attr("x",M-K/2).attr("y",N-P/2).attr("overflow","visible"),z=null===(F=l.get(I.id))||void 0===F?void 0:F.color,W=q.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(null!==(_=I.label)&&void 0!==_?_:I.id);z&&W.style("color",z)}}catch(t){S.e(t)}finally{S.f()}};for(x.s();!(v=x.n()).done;)b()}catch(t){x.e(t)}finally{x.f()}}(0,u.K2)(j,"stableSetsKey"),(0,u.K2)(U,"renderTextNodes");var H={parser:b,db:z,renderer:{draw:$},styles:W}},89266:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return V}});var i,n=r(74721),a=r(81587),o=r(3604),s=r(41034),l=r(25026),c=r(69492),u=r(20908),h=r(30388),d=(r(74423),r(52067)),p=r(17362),g=r(34539),f=r(40985),y=r(68548),m=r(79510),v=(0,y.K2)(function(t,e){var r=t<=1?100*t:t;if(r<0||r>100)throw new Error("".concat(e," must be between 0-1 (decimal) or 0-100 (percentage). Received: ").concat(t));return r},"toPercent"),x=(0,y.K2)(function(t,e,r){return{x:v(e,"".concat(r," evolution")),y:v(t,"".concat(r," visibility"))}},"toCoordinates"),b=(0,y.K2)(function(t){if(t)return"+<>"===t?"bidirectional":"+<"===t?"backward":"+>"===t?"forward":void 0},"getFlowFromPort"),k=(0,y.K2)(function(t){if(null==t||!t.startsWith("+"))return{};var e=/^\+'([^']*)'/.exec(t),r=null==e?void 0:e[1];return t.includes("<>")?{flow:"bidirectional",label:r}:t.includes("<")?{flow:"backward",label:r}:t.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),C=(0,y.K2)(function(t,e){if((0,p.S)(t,e),t.size&&e.setSize(t.size.width,t.size.height),t.evolution){var r=t.evolution.stages.map(function(t){return t.secondName?"".concat(t.name.trim()," / ").concat(t.secondName.trim()):t.name.trim()}),i=t.evolution.stages.filter(function(t){return void 0!==t.boundary}).map(function(t){return t.boundary});e.updateAxes({stages:r,stageBoundaries:i})}if(t.anchors.forEach(function(t){var r=x(t.visibility,t.evolution,'Anchor "'.concat(t.name,'"'));e.addNode(t.name,t.name,r.x,r.y,"anchor")}),t.components.forEach(function(t){var r,i=x(t.visibility,t.evolution,'Component "'.concat(t.name,'"')),n=t.label?(t.label.negX?-1:1)*t.label.offsetX:void 0,a=t.label?(t.label.negY?-1:1)*t.label.offsetY:void 0,o=null===(r=t.decorator)||void 0===r?void 0:r.strategy;e.addNode(t.name,t.name,i.x,i.y,"component",n,a,t.inertia,o)}),t.notes.forEach(function(t){var r=x(t.visibility,t.evolution,'Note "'.concat(t.text,'"'));e.addNote(t.text,r.x,r.y)}),t.pipelines.forEach(function(t){var r=e.getNode(t.parent);if(!r||"number"!=typeof r.y)throw new Error('Pipeline "'.concat(t.parent,'" must reference an existing component with coordinates.'));var i=r.y;e.startPipeline(t.parent),t.components.forEach(function(r){var n="".concat(t.parent,"_").concat(r.name),a=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,o=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,s=v(r.evolution,'Pipeline component "'.concat(r.name,'" evolution'));e.addNode(n,r.name,s,i,"pipeline-component",a,o),e.addPipelineComponent(t.parent,n)})}),t.links.forEach(function(t){var r,i=!!t.arrow&&(t.arrow.includes("-.->")||t.arrow.includes(".-.")),n=null!==(r=b(t.fromPort))&&void 0!==r?r:b(t.toPort),a=k(t.arrow),o=a.flow,s=a.label;!n&&o&&(n=o);var l=t.linkLabel,c=null!=s?s:l;e.addLink(e.resolveNodeId(t.from),e.resolveNodeId(t.to),i,c,n)}),t.evolves.forEach(function(t){var r=e.getNode(t.component);if(void 0!==(null==r?void 0:r.y)){var i=v(t.target,'Evolve target for "'.concat(t.component,'"'));e.addTrend(t.component,i,r.y)}}),t.annotations.length>0){var n=t.annotations[0],a=x(n.x,n.y,"Annotations box");e.setAnnotationsBox(a.x,a.y)}t.annotation.forEach(function(t){var r=x(t.x,t.y,"Annotation ".concat(t.number));e.addAnnotation(t.number,[{x:r.x,y:r.y}],t.text)}),t.accelerators.forEach(function(t){var r=x(t.x,t.y,'Accelerator "'.concat(t.name,'"'));e.addAccelerator(t.name,r.x,r.y)}),t.deaccelerators.forEach(function(t){var r=x(t.x,t.y,'Deaccelerator "'.concat(t.name,'"'));e.addDeaccelerator(t.name,r.x,r.y)})},"populateDb"),A={parser:{yy:void 0},parse:(0,y.K2)(function(){var t=(0,h.A)((0,u.A)().m(function t(e){var r,i,n;return(0,u.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,(0,m.qg)("wardley",e);case 1:if(i=t.v,y.Rm.debug(i),(n=null===(r=A.parser)||void 0===r?void 0:r.yy)&&"function"==typeof n.addNode){t.n=2;break}throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");case 2:C(i,n);case 3:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),"parse")},D=new(i=function(){return(0,c.A)(function t(){(0,l.A)(this,t),this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}},[{key:"addNode",value:function(t){var e,r,i,n,a=null!==(e=this.nodes.get(t.id))&&void 0!==e?e:{id:t.id,label:t.label},o=(0,s.A)((0,s.A)((0,s.A)({},a),t),{},{className:null!==(r=t.className)&&void 0!==r?r:a.className,labelOffsetX:null!==(i=t.labelOffsetX)&&void 0!==i?i:a.labelOffsetX,labelOffsetY:null!==(n=t.labelOffsetY)&&void 0!==n?n:a.labelOffsetY});this.nodes.set(t.id,o)}},{key:"addLink",value:function(t){this.links.push(t)}},{key:"addTrend",value:function(t){this.trends.set(t.nodeId,t)}},{key:"startPipeline",value:function(t){this.pipelines.set(t,{nodeId:t,componentIds:[]});var e=this.nodes.get(t);e&&(e.isPipelineParent=!0)}},{key:"addPipelineComponent",value:function(t,e){var r=this.pipelines.get(t);r&&r.componentIds.push(e);var i=this.nodes.get(e);i&&(i.inPipeline=!0)}},{key:"addAnnotation",value:function(t){this.annotations.push(t)}},{key:"addNote",value:function(t){this.notes.push(t)}},{key:"addAccelerator",value:function(t){this.accelerators.push(t)}},{key:"addDeaccelerator",value:function(t){this.deaccelerators.push(t)}},{key:"setAnnotationsBox",value:function(t,e){this.annotationsBox={x:t,y:e}}},{key:"setAxes",value:function(t){this.axes=(0,s.A)((0,s.A)({},this.axes),t)}},{key:"setSize",value:function(t,e){this.size={width:t,height:e}}},{key:"getNode",value:function(t){return this.nodes.get(t)}},{key:"resolveNodeId",value:function(t){if(this.nodes.has(t))return t;var e,r=(0,o.A)(this.nodes);try{for(r.s();!(e=r.n()).done;){var i=(0,a.A)(e.value,2),n=i[0];if(i[1].label===t)return n}}catch(t){r.e(t)}finally{r.f()}return t}},{key:"build",value:function(){var t,e=[],r=(0,o.A)(this.nodes.values());try{for(r.s();!(t=r.n()).done;){var i=t.value;if("number"!=typeof i.x||"number"!=typeof i.y)throw new Error('Node "'.concat(i.label,'" is missing coordinates'));e.push(i)}}catch(t){r.e(t)}finally{r.f()}return{nodes:e,links:(0,n.A)(this.links),trends:(0,n.A)(this.trends.values()),pipelines:(0,n.A)(this.pipelines.values()),annotations:(0,n.A)(this.annotations),notes:(0,n.A)(this.notes),accelerators:(0,n.A)(this.accelerators),deaccelerators:(0,n.A)(this.deaccelerators),annotationsBox:this.annotationsBox,axes:(0,s.A)({},this.axes),size:this.size}}},{key:"clear",value:function(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}}])}(),(0,y.K2)(i,"WardleyBuilder"),i);function E(){return(0,f.D7)()["wardley-beta"]}function T(t,e,r,i,n,a,o,s,l){D.addNode({id:t,label:e,x:r,y:i,className:n,labelOffsetX:a,labelOffsetY:o,inertia:s,sourceStrategy:l})}function w(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0;D.addLink({source:t,target:e,dashed:r,label:i,flow:n})}function S(t,e,r){D.addTrend({nodeId:t,targetX:e,targetY:r})}function F(t,e,r){D.addAnnotation({number:t,coordinates:e,text:r})}function _(t,e,r){D.addNote({text:t,x:e,y:r})}function B(t,e,r){D.addAccelerator({name:t,x:e,y:r})}function L(t,e,r){D.addDeaccelerator({name:t,x:e,y:r})}function I(t,e){D.setAnnotationsBox(t,e)}function R(t,e){D.setSize(t,e)}function O(t){D.startPipeline(t)}function M(t,e){D.addPipelineComponent(t,e)}function N(t){D.setAxes(t)}function K(t){return D.getNode(t)}function P(t){return D.resolveNodeId(t)}function q(){return D.build()}function z(){D.clear(),(0,f.IU)()}(0,y.K2)(E,"getConfig"),(0,y.K2)(T,"addNode"),(0,y.K2)(w,"addLink"),(0,y.K2)(S,"addTrend"),(0,y.K2)(F,"addAnnotation"),(0,y.K2)(_,"addNote"),(0,y.K2)(B,"addAccelerator"),(0,y.K2)(L,"addDeaccelerator"),(0,y.K2)(I,"setAnnotationsBox"),(0,y.K2)(R,"setSize"),(0,y.K2)(O,"startPipeline"),(0,y.K2)(M,"addPipelineComponent"),(0,y.K2)(N,"updateAxes"),(0,y.K2)(K,"getNode"),(0,y.K2)(P,"resolveNodeId"),(0,y.K2)(q,"getWardleyData"),(0,y.K2)(z,"clear");var W={getConfig:E,addNode:T,addLink:w,addTrend:S,addAnnotation:F,addNote:_,addAccelerator:B,addDeaccelerator:L,setAnnotationsBox:I,setSize:R,startPipeline:O,addPipelineComponent:M,updateAxes:N,getNode:K,resolveNodeId:P,getWardleyData:q,clear:z,setAccTitle:f.SV,getAccTitle:f.iN,setDiagramTitle:f.ke,getDiagramTitle:f.ab,getAccDescription:f.m7,setAccDescription:f.EI},Y=["Genesis","Custom Built","Product","Commodity"],$=(0,y.K2)(function(){var t,e,r,i,n,a,o,s,l,c,u,h,d,p,g,y,m,v,x,b,k,C,A,D,E,T,w,S,F,_=(0,f.D7)().themeVariables;return{backgroundColor:null!==(t=null!==(e=null===(r=_.wardley)||void 0===r?void 0:r.backgroundColor)&&void 0!==e?e:_.background)&&void 0!==t?t:"#fff",axisColor:null!==(i=null===(n=_.wardley)||void 0===n?void 0:n.axisColor)&&void 0!==i?i:"#000",axisTextColor:null!==(a=null!==(o=null===(s=_.wardley)||void 0===s?void 0:s.axisTextColor)&&void 0!==o?o:_.primaryTextColor)&&void 0!==a?a:"#222",gridColor:null!==(l=null===(c=_.wardley)||void 0===c?void 0:c.gridColor)&&void 0!==l?l:"rgba(100, 100, 100, 0.2)",componentFill:null!==(u=null===(h=_.wardley)||void 0===h?void 0:h.componentFill)&&void 0!==u?u:"#fff",componentStroke:null!==(d=null===(p=_.wardley)||void 0===p?void 0:p.componentStroke)&&void 0!==d?d:"#000",componentLabelColor:null!==(g=null!==(y=null===(m=_.wardley)||void 0===m?void 0:m.componentLabelColor)&&void 0!==y?y:_.primaryTextColor)&&void 0!==g?g:"#222",linkStroke:null!==(v=null===(x=_.wardley)||void 0===x?void 0:x.linkStroke)&&void 0!==v?v:"#000",evolutionStroke:null!==(b=null===(k=_.wardley)||void 0===k?void 0:k.evolutionStroke)&&void 0!==b?b:"#dc3545",annotationStroke:null!==(C=null===(A=_.wardley)||void 0===A?void 0:A.annotationStroke)&&void 0!==C?C:"#000",annotationTextColor:null!==(D=null!==(E=null===(T=_.wardley)||void 0===T?void 0:T.annotationTextColor)&&void 0!==E?E:_.primaryTextColor)&&void 0!==D?D:"#222",annotationFill:null!==(w=null!==(S=null===(F=_.wardley)||void 0===F?void 0:F.annotationFill)&&void 0!==S?S:_.background)&&void 0!==w?w:"#fff"}},"getTheme"),j=(0,y.K2)(function(){var t,e,r,i,n,a,o,s,l,c=(0,f.D7)()["wardley-beta"];return{width:null!==(t=null==c?void 0:c.width)&&void 0!==t?t:900,height:null!==(e=null==c?void 0:c.height)&&void 0!==e?e:600,padding:null!==(r=null==c?void 0:c.padding)&&void 0!==r?r:48,nodeRadius:null!==(i=null==c?void 0:c.nodeRadius)&&void 0!==i?i:6,nodeLabelOffset:null!==(n=null==c?void 0:c.nodeLabelOffset)&&void 0!==n?n:8,axisFontSize:null!==(a=null==c?void 0:c.axisFontSize)&&void 0!==a?a:12,labelFontSize:null!==(o=null==c?void 0:c.labelFontSize)&&void 0!==o?o:10,showGrid:null!==(s=null==c?void 0:c.showGrid)&&void 0!==s&&s,useMaxWidth:null===(l=null==c?void 0:c.useMaxWidth)||void 0===l||l}},"getConfigValues"),U={draw:(0,y.K2)(function(t,e,r,i){var a,o,s,l,c,u;y.Rm.debug("Rendering Wardley map\n"+t);var h=j(),p=$(),g=1.6*h.nodeRadius,m=i.db,v=m.getWardleyData(),x=m.getDiagramTitle(),b=null!==(a=null===(o=v.size)||void 0===o?void 0:o.width)&&void 0!==a?a:h.width,k=null!==(s=null===(l=v.size)||void 0===l?void 0:l.height)&&void 0!==s?s:h.height,C=(0,d.D)(e);C.selectAll("*").remove(),(0,f.a$)(C,k,b,h.useMaxWidth),C.attr("viewBox","0 0 ".concat(b," ").concat(k));var A=C.append("g").attr("class","wardley-map"),D=C.append("defs");D.append("marker").attr("id","arrow-".concat(e)).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",p.evolutionStroke).attr("stroke","none"),D.append("marker").attr("id","link-arrow-end-".concat(e)).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",p.linkStroke).attr("stroke","none"),D.append("marker").attr("id","link-arrow-start-".concat(e)).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",p.linkStroke).attr("stroke","none"),A.append("rect").attr("class","wardley-background").attr("width",b).attr("height",k).attr("fill",p.backgroundColor);var E=b-2*h.padding,T=k-2*h.padding;x&&A.append("text").attr("class","wardley-title").attr("x",b/2).attr("y",h.padding/2).attr("fill",p.axisTextColor).attr("font-size",1.05*h.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(x);var w=(0,y.K2)(function(t){return h.padding+t/100*E},"projectX"),S=(0,y.K2)(function(t){return k-h.padding-t/100*T},"projectY"),F=A.append("g").attr("class","wardley-axes");F.append("line").attr("x1",h.padding).attr("x2",b-h.padding).attr("y1",k-h.padding).attr("y2",k-h.padding).attr("stroke",p.axisColor).attr("stroke-width",1),F.append("line").attr("x1",h.padding).attr("x2",h.padding).attr("y1",h.padding).attr("y2",k-h.padding).attr("stroke",p.axisColor).attr("stroke-width",1);var _=null!==(c=v.axes.xLabel)&&void 0!==c?c:"Evolution",B=null!==(u=v.axes.yLabel)&&void 0!==u?u:"Visibility";F.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",h.padding+E/2).attr("y",k-h.padding/4).attr("fill",p.axisTextColor).attr("font-size",h.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(_),F.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",h.padding/3).attr("y",h.padding+T/2).attr("fill",p.axisTextColor).attr("font-size",h.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform","rotate(-90 ".concat(h.padding/3," ").concat(h.padding+T/2,")")).text(B);var L=v.axes.stages&&v.axes.stages.length>0?v.axes.stages:Y;if(L.length>0){var I=A.append("g").attr("class","wardley-stages"),R=v.axes.stageBoundaries,O=[];if(R&&R.length===L.length){var M=0;R.forEach(function(t){O.push({start:M,end:t}),M=t})}else{var N=1/L.length;L.forEach(function(t,e){O.push({start:e*N,end:(e+1)*N})})}L.forEach(function(t,e){var r=O[e],i=h.padding+r.start*E,n=(i+(h.padding+r.end*E))/2;e>0&&I.append("line").attr("x1",i).attr("x2",i).attr("y1",h.padding).attr("y2",k-h.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),I.append("text").attr("class","wardley-stage-label").attr("x",n).attr("y",k-h.padding/1.5).attr("fill",p.axisTextColor).attr("font-size",h.axisFontSize-2).attr("text-anchor","middle").text(t)})}if(h.showGrid)for(var K=A.append("g").attr("class","wardley-grid"),P=1;P<4;P++){var q=P/4,z=h.padding+E*q;K.append("line").attr("x1",z).attr("x2",z).attr("y1",h.padding).attr("y2",k-h.padding).attr("stroke",p.gridColor).attr("stroke-dasharray","2 6"),K.append("line").attr("x1",h.padding).attr("x2",b-h.padding).attr("y1",k-h.padding-T*q).attr("y2",k-h.padding-T*q).attr("stroke",p.gridColor).attr("stroke-dasharray","2 6")}var W=new Map;if(v.nodes.forEach(function(t){W.set(t.id,{x:w(t.x),y:S(t.y),node:t})}),v.pipelines.length>0){var U=A.append("g").attr("class","wardley-pipelines"),H=A.append("g").attr("class","wardley-pipeline-links");v.pipelines.forEach(function(t){if(0!==t.componentIds.length){for(var e=t.componentIds.map(function(t){return{id:t,pos:W.get(t),node:v.nodes.find(function(e){return e.id===t})}}).filter(function(t){return t.pos&&t.node}).sort(function(t,e){return t.node.x-e.node.x}),r=0;r<e.length-1;r++){var i=e[r],n=e[r+1];H.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",i.pos.x).attr("y1",i.pos.y).attr("x2",n.pos.x).attr("y2",n.pos.y).attr("stroke",p.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}var a=1/0,o=-1/0,s=0;if(t.componentIds.forEach(function(t){var e=W.get(t);e&&(a=Math.min(a,e.x),o=Math.max(o,e.x),s=e.y)}),a!==1/0&&o!==-1/0){var l=4*h.nodeRadius,c=s-l/2,u=W.get(t.nodeId);if(u){var d=(a+o)/2;u.x=d,u.y=c-g/6}U.append("rect").attr("class","wardley-pipeline-box").attr("x",a-15).attr("y",c).attr("width",o-a+30).attr("height",l).attr("fill","none").attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}})}var V=A.append("g").attr("class","wardley-links"),G=new Map;v.pipelines.forEach(function(t){G.set(t.nodeId,new Set(t.componentIds))});var X=v.links.filter(function(t){if(!W.has(t.source)||!W.has(t.target))return!1;var e=G.get(t.target);return null==e||!e.has(t.source)});V.selectAll("line").data(X).enter().append("line").attr("class",function(t){return"wardley-link".concat(t.dashed?" wardley-link--dashed":"")}).attr("x1",function(t){var e=W.get(t.source),r=W.get(t.target),i=v.nodes.find(function(e){return e.id===t.source}).isPipelineParent?g/Math.sqrt(2):h.nodeRadius,n=r.x-e.x,a=r.y-e.y,o=Math.sqrt(n*n+a*a);return e.x+n/o*i}).attr("y1",function(t){var e=W.get(t.source),r=W.get(t.target),i=v.nodes.find(function(e){return e.id===t.source}).isPipelineParent?g/Math.sqrt(2):h.nodeRadius,n=r.x-e.x,a=r.y-e.y,o=Math.sqrt(n*n+a*a);return e.y+a/o*i}).attr("x2",function(t){var e=W.get(t.source),r=W.get(t.target),i=v.nodes.find(function(e){return e.id===t.target}).isPipelineParent?g/Math.sqrt(2):h.nodeRadius,n=e.x-r.x,a=e.y-r.y,o=Math.sqrt(n*n+a*a);return r.x+n/o*i}).attr("y2",function(t){var e=W.get(t.source),r=W.get(t.target),i=v.nodes.find(function(e){return e.id===t.target}).isPipelineParent?g/Math.sqrt(2):h.nodeRadius,n=e.x-r.x,a=e.y-r.y,o=Math.sqrt(n*n+a*a);return r.y+a/o*i}).attr("stroke",p.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",function(t){return t.dashed?"6 6":null}).attr("marker-end",function(t){return"forward"===t.flow||"bidirectional"===t.flow?"url(#link-arrow-end-".concat(e,")"):null}).attr("marker-start",function(t){return"backward"===t.flow||"bidirectional"===t.flow?"url(#link-arrow-start-".concat(e,")"):null}),V.selectAll("text").data(X.filter(function(t){return t.label})).enter().append("text").attr("class","wardley-link-label").attr("x",function(t){var e=W.get(t.source),r=W.get(t.target),i=(e.x+r.x)/2,n=r.y-e.y,a=r.x-e.x;return i+8*(n/Math.sqrt(a*a+n*n))}).attr("y",function(t){var e=W.get(t.source),r=W.get(t.target),i=(e.y+r.y)/2,n=r.x-e.x,a=r.y-e.y;return i+8*(-n/Math.sqrt(n*n+a*a))}).attr("fill",p.axisTextColor).attr("font-size",h.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",function(t){var e=W.get(t.source),r=W.get(t.target),i=(e.x+r.x)/2,n=(e.y+r.y)/2,a=r.x-e.x,o=r.y-e.y,s=Math.sqrt(a*a+o*o),l=i+8*(o/s),c=n+8*(-a/s),u=180*Math.atan2(o,a)/Math.PI;return(u>90||u<-90)&&(u+=180),"rotate(".concat(u," ").concat(l," ").concat(c,")")}).text(function(t){return t.label});var Z=A.append("g").attr("class","wardley-trends"),Q=v.trends.map(function(t){var e=W.get(t.nodeId);if(!e)return null;var r=w(t.targetX),i=S(t.targetY),n=r-e.x,a=i-e.y,o=Math.sqrt(n*n+a*a),s=h.nodeRadius+2;return{origin:e,targetX:r,targetY:i,adjustedX2:o>s?r-n/o*s:r,adjustedY2:o>s?i-a/o*s:i}}).filter(function(t){return null!==t});Z.selectAll("line").data(Q).enter().append("line").attr("class","wardley-trend").attr("x1",function(t){return t.origin.x}).attr("y1",function(t){return t.origin.y}).attr("x2",function(t){return t.adjustedX2}).attr("y2",function(t){return t.adjustedY2}).attr("stroke",p.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end","url(#arrow-".concat(e,")"));var J=A.append("g").attr("class","wardley-nodes").selectAll("g").data(v.nodes).enter().append("g").attr("class",function(t){return["wardley-node",t.className?"wardley-node--".concat(t.className):""].filter(Boolean).join(" ")});J.filter(function(t){return"outsource"===t.sourceStrategy}).append("circle").attr("class","wardley-outsource-overlay").attr("cx",function(t){return W.get(t.id).x}).attr("cy",function(t){return W.get(t.id).y}).attr("r",2*h.nodeRadius).attr("fill","#666").attr("stroke",p.componentStroke).attr("stroke-width",1),J.filter(function(t){return"buy"===t.sourceStrategy}).append("circle").attr("class","wardley-buy-overlay").attr("cx",function(t){return W.get(t.id).x}).attr("cy",function(t){return W.get(t.id).y}).attr("r",2*h.nodeRadius).attr("fill","#ccc").attr("stroke",p.componentStroke).attr("stroke-width",1),J.filter(function(t){return"build"===t.sourceStrategy}).append("circle").attr("class","wardley-build-overlay").attr("cx",function(t){return W.get(t.id).x}).attr("cy",function(t){return W.get(t.id).y}).attr("r",2*h.nodeRadius).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);var tt=J.filter(function(t){return"market"===t.sourceStrategy});tt.append("circle").attr("class","wardley-market-overlay").attr("cx",function(t){return W.get(t.id).x}).attr("cy",function(t){return W.get(t.id).y}).attr("r",2*h.nodeRadius).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",1),J.filter(function(t){return!t.isPipelineParent&&"market"!==t.sourceStrategy&&"anchor"!==t.className}).append("circle").attr("cx",function(t){return W.get(t.id).x}).attr("cy",function(t){return W.get(t.id).y}).attr("r",h.nodeRadius).attr("fill",p.componentFill).attr("stroke",p.componentStroke).attr("stroke-width",1);var et=.7*h.nodeRadius,rt=1.2*h.nodeRadius;if(tt.append("line").attr("class","wardley-market-line").attr("x1",function(t){return W.get(t.id).x}).attr("y1",function(t){return W.get(t.id).y-rt}).attr("x2",function(t){return W.get(t.id).x-rt*Math.cos(Math.PI/6)}).attr("y2",function(t){return W.get(t.id).y+rt*Math.sin(Math.PI/6)}).attr("stroke",p.componentStroke).attr("stroke-width",1),tt.append("line").attr("class","wardley-market-line").attr("x1",function(t){return W.get(t.id).x-rt*Math.cos(Math.PI/6)}).attr("y1",function(t){return W.get(t.id).y+rt*Math.sin(Math.PI/6)}).attr("x2",function(t){return W.get(t.id).x+rt*Math.cos(Math.PI/6)}).attr("y2",function(t){return W.get(t.id).y+rt*Math.sin(Math.PI/6)}).attr("stroke",p.componentStroke).attr("stroke-width",1),tt.append("line").attr("class","wardley-market-line").attr("x1",function(t){return W.get(t.id).x+rt*Math.cos(Math.PI/6)}).attr("y1",function(t){return W.get(t.id).y+rt*Math.sin(Math.PI/6)}).attr("x2",function(t){return W.get(t.id).x}).attr("y2",function(t){return W.get(t.id).y-rt}).attr("stroke",p.componentStroke).attr("stroke-width",1),tt.append("circle").attr("class","wardley-market-dot").attr("cx",function(t){return W.get(t.id).x}).attr("cy",function(t){return W.get(t.id).y-rt}).attr("r",et).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),tt.append("circle").attr("class","wardley-market-dot").attr("cx",function(t){return W.get(t.id).x-rt*Math.cos(Math.PI/6)}).attr("cy",function(t){return W.get(t.id).y+rt*Math.sin(Math.PI/6)}).attr("r",et).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),tt.append("circle").attr("class","wardley-market-dot").attr("cx",function(t){return W.get(t.id).x+rt*Math.cos(Math.PI/6)}).attr("cy",function(t){return W.get(t.id).y+rt*Math.sin(Math.PI/6)}).attr("r",et).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",2),J.filter(function(t){return!0===t.isPipelineParent}).append("rect").attr("x",function(t){return W.get(t.id).x-g/2}).attr("y",function(t){return W.get(t.id).y-g/2}).attr("width",g).attr("height",g).attr("fill",p.componentFill).attr("stroke",p.componentStroke).attr("stroke-width",1),J.filter(function(t){return!0===t.inertia}).append("line").attr("class","wardley-inertia").attr("x1",function(t){var e=W.get(t.id),r=t.isPipelineParent?g/2+15:h.nodeRadius+15;return t.sourceStrategy&&(r+=h.nodeRadius+10),e.x+r}).attr("y1",function(t){var e=W.get(t.id),r=t.isPipelineParent?g:2*h.nodeRadius;return e.y-r/2}).attr("x2",function(t){var e=W.get(t.id),r=t.isPipelineParent?g/2+15:h.nodeRadius+15;return t.sourceStrategy&&(r+=h.nodeRadius+10),e.x+r}).attr("y2",function(t){var e=W.get(t.id),r=t.isPipelineParent?g:2*h.nodeRadius;return e.y+r/2}).attr("stroke",p.componentStroke).attr("stroke-width",6),J.append("text").attr("x",function(t){var e,r=W.get(t.id);if("anchor"===t.className)return void 0!==t.labelOffsetX?r.x+t.labelOffsetX:r.x;var i=h.nodeLabelOffset;t.sourceStrategy&&void 0===t.labelOffsetX&&(i+=10);var n=null!==(e=t.labelOffsetX)&&void 0!==e?e:i;return r.x+n}).attr("y",function(t){var e,r=W.get(t.id);if("anchor"===t.className)return void 0!==t.labelOffsetY?r.y+t.labelOffsetY:r.y-3;var i=-h.nodeLabelOffset;t.sourceStrategy&&void 0===t.labelOffsetY&&(i-=10);var n=null!==(e=t.labelOffsetY)&&void 0!==e?e:i;return r.y+n}).attr("class","wardley-node-label").attr("fill",function(t){return"evolved"===t.className?p.evolutionStroke:"anchor"===t.className?"#000":p.componentLabelColor}).attr("font-size",h.labelFontSize).attr("font-weight",function(t){return"anchor"===t.className?"bold":"normal"}).attr("text-anchor",function(t){return"anchor"===t.className?"middle":"start"}).attr("dominant-baseline",function(t){return"anchor"===t.className?"middle":"auto"}).text(function(t){return t.label}),v.annotations.length>0){var it=A.append("g").attr("class","wardley-annotations");if(v.annotations.forEach(function(t){var e=t.coordinates.map(function(t){return{x:w(t.x),y:S(t.y)}});if(e.length>1)for(var r=0;r<e.length-1;r++)it.append("line").attr("class","wardley-annotation-line").attr("x1",e[r].x).attr("y1",e[r].y).attr("x2",e[r+1].x).attr("y2",e[r+1].y).attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");e.forEach(function(e){var r=it.append("g").attr("class","wardley-annotation");r.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",10).attr("fill","white").attr("stroke",p.axisColor).attr("stroke-width",1.5),r.append("text").attr("x",e.x).attr("y",e.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",p.axisTextColor).attr("font-weight","bold").text(t.number)})}),v.annotationsBox){var nt=w(v.annotationsBox.x),at=S(v.annotationsBox.y),ot=10,st=it.append("g").attr("class","wardley-annotations-box"),lt=(0,n.A)(v.annotations).filter(function(t){return t.text}).sort(function(t,e){return t.number-e.number}),ct=[];if(lt.forEach(function(t,e){var r=st.append("text").attr("x",nt+ot).attr("y",at+ot+16*(e+1)).attr("font-size",11).attr("fill",p.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text("".concat(t.number,". ").concat(t.text));ct.push(r)}),ct.length>0){var ut=0,ht=0;ct.forEach(function(t){var e=t.node(),r=e.getComputedTextLength();ut=Math.max(ut,r);var i=e.getBBox();ht=Math.max(ht,i.height)});var dt=ut+20+105,pt=16*lt.length+20+ht/2,gt=h.padding,ft=b-h.padding-dt,yt=h.padding,mt=k-h.padding-pt;nt=Math.max(gt,Math.min(nt,ft)),at=Math.max(yt,Math.min(at,mt)),ct.forEach(function(t,e){t.attr("x",nt+ot).attr("y",at+ot+16*(e+1))}),st.insert("rect","text").attr("x",nt).attr("y",at).attr("width",dt).attr("height",pt).attr("fill","white").attr("stroke",p.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(v.notes.length>0){var vt=A.append("g").attr("class","wardley-notes");v.notes.forEach(function(t){var e=w(t.x),r=S(t.y);vt.append("text").attr("x",e).attr("y",r).attr("text-anchor","start").attr("font-size",11).attr("fill",p.axisTextColor).attr("font-weight","bold").text(t.text)})}if(v.accelerators.length>0){var xt=A.append("g").attr("class","wardley-accelerators");v.accelerators.forEach(function(t){var e=w(t.x),r=S(t.y),i=60,n="\n        M ".concat(e," ").concat(r-15,"\n        L ").concat(e+i-20," ").concat(r-15,"\n        L ").concat(e+i-20," ").concat(r-15-8,"\n        L ").concat(e+i," ").concat(r,"\n        L ").concat(e+i-20," ").concat(r+15+8,"\n        L ").concat(e+i-20," ").concat(r+15,"\n        L ").concat(e," ").concat(r+15,"\n        Z\n      ");xt.append("path").attr("d",n).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",1),xt.append("text").attr("x",e+30).attr("y",r+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",p.axisTextColor).attr("font-weight","bold").text(t.name)})}if(v.deaccelerators.length>0){var bt=A.append("g").attr("class","wardley-deaccelerators");v.deaccelerators.forEach(function(t){var e=w(t.x),r=S(t.y),i="\n        M ".concat(e+60," ").concat(r-15,"\n        L ").concat(e+20," ").concat(r-15,"\n        L ").concat(e+20," ").concat(r-15-8,"\n        L ").concat(e," ").concat(r,"\n        L ").concat(e+20," ").concat(r+15+8,"\n        L ").concat(e+20," ").concat(r+15,"\n        L ").concat(e+60," ").concat(r+15,"\n        Z\n      ");bt.append("path").attr("d",i).attr("fill","white").attr("stroke",p.componentStroke).attr("stroke-width",1),bt.append("text").attr("x",e+30).attr("y",r+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",p.axisTextColor).attr("font-weight","bold").text(t.name)})}},"draw")},H=(0,y.K2)(function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).wardley,e=(0,f.P$)(),r=(0,f.zj)(),i=(0,g.$t)(e,r.themeVariables),n=(0,g.$t)(i.wardley,t);return"\n  .wardley-background {\n    fill: ".concat(n.backgroundColor,";\n  }\n  .wardley-axes line, .wardley-axes path {\n    stroke: ").concat(n.axisColor,";\n  }\n  .wardley-axis-label {\n    fill: ").concat(n.axisTextColor,";\n  }\n  .wardley-stage-label {\n    fill: ").concat(n.axisTextColor,";\n  }\n  .wardley-grid line {\n    stroke: ").concat(n.gridColor,";\n  }\n  .wardley-node circle {\n    fill: ").concat(n.componentFill,";\n    stroke: ").concat(n.componentStroke,";\n  }\n  .wardley-node-label {\n    fill: ").concat(n.componentLabelColor,";\n  }\n  .wardley-link {\n    stroke: ").concat(n.linkStroke,";\n  }\n  .wardley-link--dashed {\n    stroke-dasharray: 4 4;\n  }\n  .wardley-link-label {\n    fill: ").concat(n.axisTextColor,";\n  }\n  .wardley-trend line {\n    stroke: ").concat(n.evolutionStroke,";\n  }\n  .wardley-annotation-line {\n    stroke: ").concat(n.annotationStroke,";\n  }\n  .wardley-annotation circle {\n    fill: ").concat(n.annotationFill,";\n    stroke: ").concat(n.annotationStroke,";\n  }\n  .wardley-annotation text {\n    fill: ").concat(n.annotationTextColor,";\n  }\n  .wardley-annotations-box rect {\n    fill: ").concat(n.annotationFill,";\n    stroke: ").concat(n.annotationStroke,";\n  }\n  .wardley-annotations-box text {\n    fill: ").concat(n.annotationTextColor,";\n  }\n  .wardley-pipeline-box {\n    stroke: ").concat(n.componentStroke,";\n  }\n  .wardley-notes text {\n    fill: ").concat(n.axisTextColor,";\n  }\n  ")},"styles"),V={parser:A,db:W,renderer:U,styles:H}},9763:function(t,e,r){"use strict";r.r(e),r.d(e,{diagram:function(){return xt}});var i,n,a,o,s,l,c,u,h,d,p=r(81587),g=r(25647),f=r(85394),y=r(28578),m=r(3604),v=r(25026),x=r(69492),b=r(74721),k=r(52067),C=r(51266),A=r(34539),D=r(40985),E=r(68548),T=r(63219),w=function(){var t=(0,E.K2)(function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},"o"),e=[1,10,12,14,16,18,19,21,23],r=[2,6],i=[1,3],n=[1,5],a=[1,6],o=[1,7],s=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],c=[1,26],u=[1,28],h=[1,29],d=[1,30],p=[1,31],g=[1,32],f=[1,33],y=[1,34],m=[1,35],v=[1,36],x=[1,37],k=[1,43],C=[1,42],A=[1,47],D=[1,50],T=[1,10,12,14,16,18,19,21,23,34,35,36],w=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],S=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],F=[1,64],_={trace:(0,E.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:(0,E.K2)(function(t,e,r,i,n,a,o){var s=a.length-1;switch(n){case 5:i.setOrientation(a[s]);break;case 9:i.setDiagramTitle(a[s].text.trim());break;case 12:i.setLineData({text:"",type:"text"},a[s]);break;case 13:i.setLineData(a[s-1],a[s]);break;case 14:i.setBarData({text:"",type:"text"},a[s]);break;case 15:i.setBarData(a[s-1],a[s]);break;case 16:this.$=a[s].trim(),i.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),i.setAccDescription(this.$);break;case 19:case 27:this.$=a[s-1];break;case 20:this.$=[Number(a[s-2])].concat((0,b.A)(a[s]));break;case 21:this.$=[Number(a[s])];break;case 22:i.setXAxisTitle(a[s]);break;case 23:i.setXAxisTitle(a[s-1]);break;case 24:i.setXAxisTitle({type:"text",text:""});break;case 25:i.setXAxisBand(a[s]);break;case 26:i.setXAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 28:this.$=[a[s-2]].concat((0,b.A)(a[s]));break;case 29:this.$=[a[s]];break;case 30:i.setYAxisTitle(a[s]);break;case 31:i.setYAxisTitle(a[s-1]);break;case 32:i.setYAxisTitle({type:"text",text:""});break;case 33:i.setYAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 37:case 38:this.$={text:a[s],type:"text"};break;case 39:this.$={text:a[s],type:"markdown"};break;case 40:this.$=a[s];break;case 41:this.$=a[s-1]+""+a[s]}},"anonymous"),table:[t(e,r,{3:1,4:2,7:4,5:i,34:n,35:a,36:o}),{1:[3]},t(e,r,{4:2,7:4,3:8,5:i,34:n,35:a,36:o}),t(e,r,{4:2,7:4,6:9,3:10,5:i,8:[1,11],34:n,35:a,36:o}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(s,[2,34]),t(s,[2,35]),t(s,[2,36]),{1:[2,1]},t(e,r,{4:2,7:4,3:21,5:i,34:n,35:a,36:o}),{1:[2,3]},t(s,[2,5]),t(e,[2,7],{4:22,34:n,35:a,36:o}),{11:23,37:24,38:l,39:c,40:27,41:u,42:h,43:d,44:p,45:g,46:f,47:y,48:m,49:v,50:x},{11:39,13:38,24:k,27:C,29:40,30:41,37:24,38:l,39:c,40:27,41:u,42:h,43:d,44:p,45:g,46:f,47:y,48:m,49:v,50:x},{11:45,15:44,27:A,33:46,37:24,38:l,39:c,40:27,41:u,42:h,43:d,44:p,45:g,46:f,47:y,48:m,49:v,50:x},{11:49,17:48,24:D,37:24,38:l,39:c,40:27,41:u,42:h,43:d,44:p,45:g,46:f,47:y,48:m,49:v,50:x},{11:52,17:51,24:D,37:24,38:l,39:c,40:27,41:u,42:h,43:d,44:p,45:g,46:f,47:y,48:m,49:v,50:x},{20:[1,53]},{22:[1,54]},t(T,[2,18]),{1:[2,2]},t(T,[2,8]),t(T,[2,9]),t(w,[2,37],{40:55,41:u,42:h,43:d,44:p,45:g,46:f,47:y,48:m,49:v,50:x}),t(w,[2,38]),t(w,[2,39]),t(S,[2,40]),t(S,[2,42]),t(S,[2,43]),t(S,[2,44]),t(S,[2,45]),t(S,[2,46]),t(S,[2,47]),t(S,[2,48]),t(S,[2,49]),t(S,[2,50]),t(S,[2,51]),t(T,[2,10]),t(T,[2,22],{30:41,29:56,24:k,27:C}),t(T,[2,24]),t(T,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:c,40:27,41:u,42:h,43:d,44:p,45:g,46:f,47:y,48:m,49:v,50:x},t(T,[2,11]),t(T,[2,30],{33:60,27:A}),t(T,[2,32]),{31:[1,61]},t(T,[2,12]),{17:62,24:D},{25:63,27:F},t(T,[2,14]),{17:65,24:D},t(T,[2,16]),t(T,[2,17]),t(S,[2,41]),t(T,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(T,[2,31]),{27:[1,69]},t(T,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(T,[2,15]),t(T,[2,26]),t(T,[2,27]),{11:59,32:72,37:24,38:l,39:c,40:27,41:u,42:h,43:d,44:p,45:g,46:f,47:y,48:m,49:v,50:x},t(T,[2,33]),t(T,[2,19]),{25:73,27:F},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:(0,E.K2)(function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},"parseError"),parse:(0,E.K2)(function(t){var e=this,r=[0],i=[],n=[null],a=[],o=this.table,s="",l=0,c=0,u=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var f=d.yylloc;a.push(f);var y=d.options&&d.options.ranges;function m(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,E.K2)(function(t){r.length=r.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,E.K2)(m,"lex");for(var v,x,b,k,C,A,D,T,w,S={};;){if(b=r[r.length-1],this.defaultActions[b]?k=this.defaultActions[b]:(null==v&&(v=m()),k=o[b]&&o[b][v]),void 0===k||!k.length||!k[0]){var F="";for(A in w=[],o[b])this.terminals_[A]&&A>2&&w.push("'"+this.terminals_[A]+"'");F=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(F,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:f,expected:w})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+v);switch(k[0]){case 1:r.push(v),n.push(d.yytext),a.push(d.yylloc),r.push(k[1]),v=null,x?(v=x,x=null):(c=d.yyleng,s=d.yytext,l=d.yylineno,f=d.yylloc,u>0&&u--);break;case 2:if(D=this.productions_[k[1]][1],S.$=n[n.length-D],S._$={first_line:a[a.length-(D||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(D||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(D||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,c,l,p.yy,k[1],n,a].concat(h))))return C;D&&(r=r.slice(0,-1*D*2),n=n.slice(0,-1*D),a=a.slice(0,-1*D)),r.push(this.productions_[k[1]][0]),n.push(S.$),a.push(S._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0},"parse")},B=function(){return{EOF:1,parseError:(0,E.K2)(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:(0,E.K2)(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},"setInput"),input:(0,E.K2)(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},"input"),unput:(0,E.K2)(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 n=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=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,E.K2)(function(){return this._more=!0,this},"more"),reject:(0,E.K2)(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})},"reject"),less:(0,E.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,E.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,E.K2)(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,"")},"upcomingInput"),showPosition:(0,E.K2)(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,E.K2)(function(t,e){var r,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:(0,E.K2)(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 n=this._currentRules(),a=0;a<n.length;a++)if((r=this._input.match(this.rules[n[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[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})},"next"),lex:(0,E.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,E.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,E.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,E.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,E.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,E.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,E.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,E.K2)(function(t,e,r,i){switch(r){case 0:case 1:case 5:case 44:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:case 26:case 28:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 27:this.pushState("string");break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\)                                    \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+                  \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}}}();function L(){this.yy={}}return _.lexer=B,(0,E.K2)(L,"Parser"),L.prototype=_,_.Parser=L,new L}();w.parser=w;var S=w;function F(t){return"bar"===t.type}function _(t){return"band"===t.type}function B(t){return"linear"===t.type}(0,E.K2)(F,"isBarPlot"),(0,E.K2)(_,"isBandAxisData"),(0,E.K2)(B,"isLinearAxisData");var L=(i=function(){return(0,x.A)(function t(e){(0,v.A)(this,t),this.parentGroup=e},[{key:"getMaxDimension",value:function(t,e){if(!this.parentGroup)return{width:t.reduce(function(t,e){return Math.max(e.length,t)},0)*e,height:e};var r,i={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",e),a=(0,m.A)(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=(0,C.W6)(n,1,o),l=s?s.width:o.length*e,c=s?s.height:e;i.width=Math.max(i.width,l),i.height=Math.max(i.height,c)}}catch(t){a.e(t)}finally{a.f()}return n.remove(),i}}])}(),(0,E.K2)(i,"TextDimensionCalculatorWithFont"),i),I=(n=function(){return(0,x.A)(function t(e,r,i,n){(0,v.A)(this,t),this.axisConfig=e,this.title=r,this.textDimensionCalculator=i,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"},[{key:"setRange",value:function(t){this.range=t,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}},{key:"getRange",value:function(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}},{key:"setAxisPosition",value:function(t){this.axisPosition=t,this.setRange(this.range)}},{key:"getTickDistance",value:function(){var t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}},{key:"getAxisOuterPadding",value:function(){return this.outerPadding}},{key:"getLabelDimension",value:function(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(function(t){return t.toString()}),this.axisConfig.labelFontSize)}},{key:"recalculateOuterPaddingToDrawBar",value:function(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}},{key:"calculateSpaceIfDrawnHorizontally",value:function(t){var e=t.height;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){var r=this.getLabelDimension(),i=.2*t.width;this.outerPadding=Math.min(r.width/2,i);var n=r.height+2*this.axisConfig.labelPadding;this.labelTextHeight=r.height,n<=e&&(e-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){var a=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),o=a.height+2*this.axisConfig.titlePadding;this.titleTextHeight=a.height,o<=e&&(e-=o,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-e}},{key:"calculateSpaceIfDrawnVertical",value:function(t){var e=t.width;if(this.axisConfig.showAxisLine&&e>this.axisConfig.axisLineWidth&&(e-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){var r=this.getLabelDimension(),i=.2*t.height;this.outerPadding=Math.min(r.height/2,i);var n=r.width+2*this.axisConfig.labelPadding;n<=e&&(e-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&e>=this.axisConfig.tickLength&&(this.showTick=!0,e-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){var a=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),o=a.height+2*this.axisConfig.titlePadding;this.titleTextHeight=a.height,o<=e&&(e-=o,this.showTitle=!0)}this.boundingRect.width=t.width-e,this.boundingRect.height=t.height}},{key:"calculateSpace",value:function(t){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}},{key:"setBoundingBoxXY",value:function(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}},{key:"getDrawableElementsForLeftAxis",value:function(){var t=this,e=[];if(this.showAxisLine){var r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:"M ".concat(r,",").concat(this.boundingRect.y," L ").concat(r,",").concat(this.boundingRect.y+this.boundingRect.height," "),strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(function(e){return{text:e.toString(),x:t.boundingRect.x+t.boundingRect.width-(t.showLabel?t.axisConfig.labelPadding:0)-(t.showTick?t.axisConfig.tickLength:0)-(t.showAxisLine?t.axisConfig.axisLineWidth:0),y:t.getScaleValue(e),fill:t.axisThemeConfig.labelColor,fontSize:t.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}})}),this.showTick){var i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(function(e){return{path:"M ".concat(i,",").concat(t.getScaleValue(e)," L ").concat(i-t.axisConfig.tickLength,",").concat(t.getScaleValue(e)),strokeFill:t.axisThemeConfig.tickColor,strokeWidth:t.axisConfig.tickWidth}})})}return this.showTitle&&e.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),e}},{key:"getDrawableElementsForBottomAxis",value:function(){var t=this,e=[];if(this.showAxisLine){var r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:"M ".concat(this.boundingRect.x,",").concat(r," L ").concat(this.boundingRect.x+this.boundingRect.width,",").concat(r),strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(function(e){return{text:e.toString(),x:t.getScaleValue(e),y:t.boundingRect.y+t.axisConfig.labelPadding+(t.showTick?t.axisConfig.tickLength:0)+(t.showAxisLine?t.axisConfig.axisLineWidth:0),fill:t.axisThemeConfig.labelColor,fontSize:t.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}})}),this.showTick){var i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(function(e){return{path:"M ".concat(t.getScaleValue(e),",").concat(i," L ").concat(t.getScaleValue(e),",").concat(i+t.axisConfig.tickLength),strokeFill:t.axisThemeConfig.tickColor,strokeWidth:t.axisConfig.tickWidth}})})}return this.showTitle&&e.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}},{key:"getDrawableElementsForTopAxis",value:function(){var t=this,e=[];if(this.showAxisLine){var r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:"M ".concat(this.boundingRect.x,",").concat(r," L ").concat(this.boundingRect.x+this.boundingRect.width,",").concat(r),strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(function(e){return{text:e.toString(),x:t.getScaleValue(e),y:t.boundingRect.y+(t.showTitle?t.titleTextHeight+2*t.axisConfig.titlePadding:0)+t.axisConfig.labelPadding,fill:t.axisThemeConfig.labelColor,fontSize:t.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}})}),this.showTick){var i=this.boundingRect.y;e.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(function(e){return{path:"M ".concat(t.getScaleValue(e),",").concat(i+t.boundingRect.height-(t.showAxisLine?t.axisConfig.axisLineWidth:0)," L ").concat(t.getScaleValue(e),",").concat(i+t.boundingRect.height-t.axisConfig.tickLength-(t.showAxisLine?t.axisConfig.axisLineWidth:0)),strokeFill:t.axisThemeConfig.tickColor,strokeWidth:t.axisConfig.tickWidth}})})}return this.showTitle&&e.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}},{key:"getDrawableElements",value:function(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}}])}(),(0,E.K2)(n,"BaseAxis"),n),R=(a=function(t){function e(t,r,i,n,a){var o;return(0,v.A)(this,e),(o=(0,g.A)(this,e,[t,n,a,r])).categories=i,o.scale=(0,T.WH)().domain(o.categories).range(o.getRange()),o}return(0,y.A)(e,t),(0,x.A)(e,[{key:"setRange",value:function(t){(0,f.A)(e,"setRange",this,3)([t])}},{key:"recalculateScale",value:function(){this.scale=(0,T.WH)().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),E.Rm.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}},{key:"getTickValues",value:function(){return this.categories}},{key:"getScaleValue",value:function(t){var e;return null!==(e=this.scale(t))&&void 0!==e?e:this.getRange()[0]}}])}(I),(0,E.K2)(a,"BandAxis"),a),O=(o=function(t){function e(t,r,i,n,a){var o;return(0,v.A)(this,e),(o=(0,g.A)(this,e,[t,n,a,r])).domain=i,o.scale=(0,T.m4Y)().domain(o.domain).range(o.getRange()),o}return(0,y.A)(e,t),(0,x.A)(e,[{key:"getTickValues",value:function(){return this.scale.ticks()}},{key:"recalculateScale",value:function(){var t=(0,b.A)(this.domain);"left"===this.axisPosition&&t.reverse(),this.scale=(0,T.m4Y)().domain(t).range(this.getRange())}},{key:"getScaleValue",value:function(t){return this.scale(t)}}])}(I),(0,E.K2)(o,"LinearAxis"),o);function M(t,e,r,i){var n=new L(i);return _(t)?new R(e,r,t.categories,t.title,n):new O(e,r,[t.min,t.max],t.title,n)}(0,E.K2)(M,"getAxis");var N=(s=function(){return(0,x.A)(function t(e,r,i,n){(0,v.A)(this,t),this.textDimensionCalculator=e,this.chartConfig=r,this.chartData=i,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1},[{key:"setBoundingBoxXY",value:function(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}},{key:"calculateSpace",value:function(t){var e=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),r=Math.max(e.width,t.width),i=e.height+2*this.chartConfig.titlePadding;return e.width<=r&&e.height<=i&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=r,this.boundingRect.height=i,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}},{key:"getDrawableElements",value:function(){var t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}}])}(),(0,E.K2)(s,"ChartTitle"),s);function K(t,e,r,i){var n=new L(i);return new N(n,t,e,r)}(0,E.K2)(K,"getChartTitleComponent");var P=(l=function(){return(0,x.A)(function t(e,r,i,n,a){(0,v.A)(this,t),this.plotData=e,this.xAxis=r,this.yAxis=i,this.orientation=n,this.plotIndex=a},[{key:"getDrawableElement",value:function(){var t,e=this,r=this.plotData.data.map(function(t){return[e.xAxis.getScaleValue(t[0]),e.yAxis.getScaleValue(t[1])]});return(t="horizontal"===this.orientation?(0,T.n8j)().y(function(t){return t[0]}).x(function(t){return t[1]})(r):(0,T.n8j)().x(function(t){return t[0]}).y(function(t){return t[1]})(r))?[{groupTexts:["plot","line-plot-".concat(this.plotIndex)],type:"path",data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}])}(),(0,E.K2)(l,"LinePlot"),l),q=(c=function(){return(0,x.A)(function t(e,r,i,n,a,o){(0,v.A)(this,t),this.barData=e,this.boundingRect=r,this.xAxis=i,this.yAxis=n,this.orientation=a,this.plotIndex=o},[{key:"getDrawableElement",value:function(){var t=this,e=this.barData.data.map(function(e){return[t.xAxis.getScaleValue(e[0]),t.yAxis.getScaleValue(e[1])]}),r=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),i=r/2;return"horizontal"===this.orientation?[{groupTexts:["plot","bar-plot-".concat(this.plotIndex)],type:"rect",data:e.map(function(e){return{x:t.boundingRect.x,y:e[0]-i,height:r,width:e[1]-t.boundingRect.x,fill:t.barData.fill,strokeWidth:0,strokeFill:t.barData.fill}})}]:[{groupTexts:["plot","bar-plot-".concat(this.plotIndex)],type:"rect",data:e.map(function(e){return{x:e[0]-i,y:e[1],width:r,height:t.boundingRect.y+t.boundingRect.height-e[1],fill:t.barData.fill,strokeWidth:0,strokeFill:t.barData.fill}})}]}}])}(),(0,E.K2)(c,"BarPlot"),c),z=(u=function(){return(0,x.A)(function t(e,r,i){(0,v.A)(this,t),this.chartConfig=e,this.chartData=r,this.chartThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0}},[{key:"setAxes",value:function(t,e){this.xAxis=t,this.yAxis=e}},{key:"setBoundingBoxXY",value:function(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}},{key:"calculateSpace",value:function(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}},{key:"getDrawableElements",value:function(){if(!this.xAxis||!this.yAxis)throw Error("Axes must be passed to render Plots");var t,e=[],r=(0,m.A)(this.chartData.plots.entries());try{for(r.s();!(t=r.n()).done;){var i=(0,p.A)(t.value,2),n=i[0],a=i[1];switch(a.type){case"line":var o=new P(a,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,n);e.push.apply(e,(0,b.A)(o.getDrawableElement()));break;case"bar":var s=new q(a,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,n);e.push.apply(e,(0,b.A)(s.getDrawableElement()))}}}catch(t){r.e(t)}finally{r.f()}return e}}])}(),(0,E.K2)(u,"BasePlot"),u);function W(t,e,r){return new z(t,e,r)}(0,E.K2)(W,"getPlotComponent");var Y,$=(h=function(){return(0,x.A)(function t(e,r,i,n){(0,v.A)(this,t),this.chartConfig=e,this.chartData=r,this.componentStore={title:K(e,r,i,n),plot:W(e,r,i),xAxis:M(r.xAxis,e.xAxis,{titleColor:i.xAxisTitleColor,labelColor:i.xAxisLabelColor,tickColor:i.xAxisTickColor,axisLineColor:i.xAxisLineColor},n),yAxis:M(r.yAxis,e.yAxis,{titleColor:i.yAxisTitleColor,labelColor:i.yAxisLabelColor,tickColor:i.yAxisTickColor,axisLineColor:i.yAxisLineColor},n)}},[{key:"calculateVerticalSpace",value:function(){var t,e,r=this.chartConfig.width,i=this.chartConfig.height,n=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),a=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:n,height:a});r-=o.width,i-=o.height,e=(o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i})).height,i-=o.height,this.componentStore.xAxis.setAxisPosition("bottom"),i-=(o=this.componentStore.xAxis.calculateSpace({width:r,height:i})).height,this.componentStore.yAxis.setAxisPosition("left"),t=(o=this.componentStore.yAxis.calculateSpace({width:r,height:i})).width,(r-=o.width)>0&&(n+=r,r=0),i>0&&(a+=i,i=0),this.componentStore.plot.calculateSpace({width:n,height:a}),this.componentStore.plot.setBoundingBoxXY({x:t,y:e}),this.componentStore.xAxis.setRange([t,t+n]),this.componentStore.xAxis.setBoundingBoxXY({x:t,y:e+a}),this.componentStore.yAxis.setRange([e,e+a]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:e}),this.chartData.plots.some(function(t){return F(t)})&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}},{key:"calculateHorizontalSpace",value:function(){var t,e,r,i=this.chartConfig.width,n=this.chartConfig.height,a=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(n*this.chartConfig.plotReservedSpacePercent/100),s=this.componentStore.plot.calculateSpace({width:a,height:o});i-=s.width,n-=s.height,t=(s=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:n})).height,n-=s.height,this.componentStore.xAxis.setAxisPosition("left"),i-=(s=this.componentStore.xAxis.calculateSpace({width:i,height:n})).width,e=s.width,this.componentStore.yAxis.setAxisPosition("top"),n-=(s=this.componentStore.yAxis.calculateSpace({width:i,height:n})).height,r=t+s.height,i>0&&(a+=i,i=0),n>0&&(o+=n,n=0),this.componentStore.plot.calculateSpace({width:a,height:o}),this.componentStore.plot.setBoundingBoxXY({x:e,y:r}),this.componentStore.yAxis.setRange([e,e+a]),this.componentStore.yAxis.setBoundingBoxXY({x:e,y:t}),this.componentStore.xAxis.setRange([r,r+o]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:r}),this.chartData.plots.some(function(t){return F(t)})&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}},{key:"calculateSpace",value:function(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}},{key:"getDrawableElement",value:function(){this.calculateSpace();var t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(var e=0,r=Object.values(this.componentStore);e<r.length;e++){var i=r[e];t.push.apply(t,(0,b.A)(i.getDrawableElements()))}return t}}])}(),(0,E.K2)(h,"Orchestrator"),h),j=(d=function(){return(0,x.A)(function t(){(0,v.A)(this,t)},null,[{key:"build",value:function(t,e,r,i){return new $(t,e,r,i).getDrawableElement()}}])}(),(0,E.K2)(d,"XYChartBuilder"),d),U=0,H=tt(),V=J(),G=et(),X=V.plotColorPalette.split(",").map(function(t){return t.trim()}),Z=!1,Q=!1;function J(){var t=(0,D.P$)(),e=(0,D.zj)();return(0,A.$t)(t.xyChart,e.themeVariables.xyChart)}function tt(){var t=(0,D.zj)();return(0,A.$t)(D.UI.xyChart,t.xyChart)}function et(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function rt(t){var e=(0,D.zj)();return(0,D.jZ)(t.trim(),e)}function it(t){Y=t}function nt(t){H.chartOrientation="horizontal"===t?"horizontal":"vertical"}function at(t){G.xAxis.title=rt(t.text)}function ot(t,e){G.xAxis={type:"linear",title:G.xAxis.title,min:t,max:e},Z=!0}function st(t){G.xAxis={type:"band",title:G.xAxis.title,categories:t.map(function(t){return rt(t.text)})},Z=!0}function lt(t){G.yAxis.title=rt(t.text)}function ct(t,e){G.yAxis={type:"linear",title:G.yAxis.title,min:t,max:e},Q=!0}function ut(t){var e=Math.min.apply(Math,(0,b.A)(t)),r=Math.max.apply(Math,(0,b.A)(t)),i=B(G.yAxis)?G.yAxis.min:1/0,n=B(G.yAxis)?G.yAxis.max:-1/0;G.yAxis={type:"linear",title:G.yAxis.title,min:Math.min(i,e),max:Math.max(n,r)}}function ht(t){var e=[];if(0===t.length)return e;if(!Z){var r=B(G.xAxis)?G.xAxis.min:1/0,i=B(G.xAxis)?G.xAxis.max:-1/0;ot(Math.min(r,1),Math.max(i,t.length))}if(Q||ut(t),_(G.xAxis)&&(e=G.xAxis.categories.map(function(e,r){return[e,t[r]]})),B(G.xAxis)){for(var n=G.xAxis.min,a=G.xAxis.max,o=(a-n)/(t.length-1),s=[],l=n;l<=a;l+=o)s.push("".concat(l));e=s.map(function(e,r){return[e,t[r]]})}return e}function dt(t){return X[0===t?0:t%X.length]}function pt(t,e){var r=ht(e);G.plots.push({type:"line",strokeFill:dt(U),strokeWidth:2,data:r}),U++}function gt(t,e){var r=ht(e);G.plots.push({type:"bar",fill:dt(U),data:r}),U++}function ft(){if(0===G.plots.length)throw Error("No Plot to render, please provide a plot with some data");return G.title=(0,D.ab)(),j.build(H,G,V,Y)}function yt(){return V}function mt(){return H}function vt(){return G}(0,E.K2)(J,"getChartDefaultThemeConfig"),(0,E.K2)(tt,"getChartDefaultConfig"),(0,E.K2)(et,"getChartDefaultData"),(0,E.K2)(rt,"textSanitizer"),(0,E.K2)(it,"setTmpSVGG"),(0,E.K2)(nt,"setOrientation"),(0,E.K2)(at,"setXAxisTitle"),(0,E.K2)(ot,"setXAxisRangeData"),(0,E.K2)(st,"setXAxisBand"),(0,E.K2)(lt,"setYAxisTitle"),(0,E.K2)(ct,"setYAxisRangeData"),(0,E.K2)(ut,"setYAxisRangeFromPlotData"),(0,E.K2)(ht,"transformDataWithoutCategory"),(0,E.K2)(dt,"getPlotColorFromPalette"),(0,E.K2)(pt,"setLineData"),(0,E.K2)(gt,"setBarData"),(0,E.K2)(ft,"getDrawableElem"),(0,E.K2)(yt,"getChartThemeConfig"),(0,E.K2)(mt,"getChartConfig"),(0,E.K2)(vt,"getXYChartData");var xt={parser:S,db:{getDrawableElem:ft,clear:(0,E.K2)(function(){(0,D.IU)(),U=0,H=tt(),G={yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]},V=J(),X=V.plotColorPalette.split(",").map(function(t){return t.trim()}),Z=!1,Q=!1},"clear"),setAccTitle:D.SV,getAccTitle:D.iN,setDiagramTitle:D.ke,getDiagramTitle:D.ab,getAccDescription:D.m7,setAccDescription:D.EI,setOrientation:nt,setXAxisTitle:at,setXAxisRangeData:ot,setXAxisBand:st,setYAxisTitle:lt,setYAxisRangeData:ct,setLineData:pt,setBarData:gt,setTmpSVGG:it,getChartThemeConfig:yt,getChartConfig:mt,getXYChartData:vt},renderer:{draw:(0,E.K2)(function(t,e,r,i){var n=i.db,a=n.getChartThemeConfig(),o=n.getChartConfig(),s=n.getXYChartData().plots[0].data.map(function(t){return t[1]});function l(t){return"top"===t?"text-before-edge":"middle"}function c(t){return"left"===t?"start":"right"===t?"end":"middle"}function u(t){return"translate(".concat(t.x,", ").concat(t.y,") rotate(").concat(t.rotation||0,")")}(0,E.K2)(l,"getDominantBaseLine"),(0,E.K2)(c,"getTextAnchor"),(0,E.K2)(u,"getTextTransformation"),E.Rm.debug("Rendering xychart chart\n"+t);var h=(0,k.D)(e),d=h.append("g").attr("class","main"),g=d.append("rect").attr("width",o.width).attr("height",o.height).attr("class","background");(0,D.a$)(h,o.height,o.width,!0),h.attr("viewBox","0 0 ".concat(o.width," ").concat(o.height)),g.attr("fill",a.backgroundColor),n.setTmpSVGG(h.append("g").attr("class","mermaid-tmp-group"));var f=n.getDrawableElem(),y={};function v(t){var e,r=d,i="",n=(0,m.A)(t.entries());try{for(n.s();!(e=n.n()).done;){var a=(0,p.A)(e.value,1)[0],o=d;a>0&&y[i]&&(o=y[i]),i+=t[a],(r=y[i])||(r=y[i]=o.append("g").attr("class",t[a]))}}catch(t){n.e(t)}finally{n.f()}return r}(0,E.K2)(v,"getGroup");var x,C=(0,m.A)(f);try{var A=function(){var t=x.value;if(0===t.data.length)return 1;var e=v(t.groupTexts);switch(t.type){case"rect":if(e.selectAll("rect").data(t.data).enter().append("rect").attr("x",function(t){return t.x}).attr("y",function(t){return t.y}).attr("width",function(t){return t.width}).attr("height",function(t){return t.height}).attr("fill",function(t){return t.fill}).attr("stroke",function(t){return t.strokeFill}).attr("stroke-width",function(t){return t.strokeWidth}),o.showDataLabel){var r=o.showDataLabelOutsideBar;if("horizontal"===o.chartOrientation){var i=function(t,e){var r=t.data;return e*t.label.length*n<=r.width-h};(0,E.K2)(i,"fitsHorizontally");var n=.7,h=10,d=t.data.map(function(t,e){return{data:t,label:s[e].toString()}}).filter(function(t){return t.data.width>0&&t.data.height>0}),p=d.map(function(t){for(var e=.7*t.data.height;!i(t,e)&&e>0;)e-=1;return e}),g=Math.floor(Math.min.apply(Math,(0,b.A)(p))),f=(0,E.K2)(function(t){return r?t.data.x+t.data.width+h:t.data.x+t.data.width-h},"determineLabelXPosition");e.selectAll("text").data(d).enter().append("text").attr("x",f).attr("y",function(t){return t.data.y+t.data.height/2}).attr("text-anchor",r?"start":"end").attr("dominant-baseline","middle").attr("fill",a.dataLabelColor).attr("font-size","".concat(g,"px")).text(function(t){return t.label})}else{var y=function(t,e,r){var i=t.data,n=e*t.label.length*.7,a=i.x+i.width/2,o=a+n/2,s=a-n/2>=i.x&&o<=i.x+i.width,l=i.y+r+e<=i.y+i.height;return s&&l};(0,E.K2)(y,"fitsInBar");var m=t.data.map(function(t,e){return{data:t,label:s[e].toString()}}).filter(function(t){return t.data.width>0&&t.data.height>0}),k=m.map(function(t){for(var e=t.data,r=t.label,i=e.width/(.7*r.length);!y(t,i,10)&&i>0;)i-=1;return i}),C=Math.floor(Math.min.apply(Math,(0,b.A)(k))),A=(0,E.K2)(function(t){return r?t.data.y-10:t.data.y+10},"determineLabelYPosition");e.selectAll("text").data(m).enter().append("text").attr("x",function(t){return t.data.x+t.data.width/2}).attr("y",A).attr("text-anchor","middle").attr("dominant-baseline",r?"auto":"hanging").attr("fill",a.dataLabelColor).attr("font-size","".concat(C,"px")).text(function(t){return t.label})}}break;case"text":e.selectAll("text").data(t.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",function(t){return t.fill}).attr("font-size",function(t){return t.fontSize}).attr("dominant-baseline",function(t){return l(t.verticalPos)}).attr("text-anchor",function(t){return c(t.horizontalPos)}).attr("transform",function(t){return u(t)}).text(function(t){return t.text});break;case"path":e.selectAll("path").data(t.data).enter().append("path").attr("d",function(t){return t.path}).attr("fill",function(t){return t.fill?t.fill:"none"}).attr("stroke",function(t){return t.strokeFill}).attr("stroke-width",function(t){return t.strokeWidth})}};for(C.s();!(x=C.n()).done;)A()}catch(t){C.e(t)}finally{C.f()}},"draw")}}},1168:function(t,e,r){"use strict";r.d(e,{A:function(){return Re}});var i,n=r(74721),a=r(41034),o=r(54119),s=r(25026),l=r(69492),c=r(3604),u=r(81587),h=r(20908),d=r(30388),p=(r(74423),r(52067)),g=r(28582),f=r(86349),y=(r(69914),r(607),r(86735),r(43376),r(17428),r(51266)),m=r(34539),v=r(40985),x=r(68548),b=r(13512),k=r(63219),C=r(78237),A=r(56108),D=r(77756),E=r(65968),T=r(18353),w=r(94713),S={id:"c4",detector:(0,x.K2)(function(t){return/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e(7340).then(r.bind(r,45116));case 1:return e=t.v,i=e.diagram,t.a(2,{id:"c4",diagram:i})}},t)})),"loader")},F="flowchart",_={id:F,detector:(0,x.K2)(function(t,e){var r,i;return"dagre-wrapper"!==(null==e||null===(r=e.flowchart)||void 0===r?void 0:r.defaultRenderer)&&"elk"!==(null==e||null===(i=e.flowchart)||void 0===i?void 0:i.defaultRenderer)&&/^\s*graph/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(2962)]).then(r.bind(r,40178));case 1:return e=t.v,i=e.diagram,t.a(2,{id:F,diagram:i})}},t)})),"loader")},B="flowchart-v2",L={id:B,detector:(0,x.K2)(function(t,e){var r,i,n;return"dagre-d3"!==(null==e||null===(r=e.flowchart)||void 0===r?void 0:r.defaultRenderer)&&("elk"===(null==e||null===(i=e.flowchart)||void 0===i?void 0:i.defaultRenderer)&&(e.layout="elk"),!(!/^\s*graph/.test(t)||"dagre-wrapper"!==(null==e||null===(n=e.flowchart)||void 0===n?void 0:n.defaultRenderer))||/^\s*flowchart/.test(t))},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(2962)]).then(r.bind(r,40178));case 1:return e=t.v,i=e.diagram,t.a(2,{id:B,diagram:i})}},t)})),"loader")},I={id:"er",detector:(0,x.K2)(function(t){return/^\s*erDiagram/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(581)]).then(r.bind(r,77516));case 1:return e=t.v,i=e.diagram,t.a(2,{id:"er",diagram:i})}},t)})),"loader")},R="gitGraph",O={id:R,detector:(0,x.K2)(function(t){return/^\s*gitGraph/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(9510)]).then(r.bind(r,78142));case 1:return e=t.v,i=e.diagram,t.a(2,{id:R,diagram:i})}},t)})),"loader")},M="gantt",N={id:M,detector:(0,x.K2)(function(t){return/^\s*gantt/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(4116)]).then(r.bind(r,53558));case 1:return e=t.v,i=e.diagram,t.a(2,{id:M,diagram:i})}},t)})),"loader")},K="info",P={id:K,detector:(0,x.K2)(function(t){return/^\s*info/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(9510)]).then(r.bind(r,30363));case 1:return e=t.v,i=e.diagram,t.a(2,{id:K,diagram:i})}},t)})),"loader")},q={id:"pie",detector:(0,x.K2)(function(t){return/^\s*pie/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(9510)]).then(r.bind(r,57530));case 1:return e=t.v,i=e.diagram,t.a(2,{id:"pie",diagram:i})}},t)})),"loader")},z="quadrantChart",W={id:z,detector:(0,x.K2)(function(t){return/^\s*quadrantChart/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e(7340).then(r.bind(r,27691));case 1:return e=t.v,i=e.diagram,t.a(2,{id:z,diagram:i})}},t)})),"loader")},Y="xychart",$={id:Y,detector:(0,x.K2)(function(t){return/^\s*xychart(-beta)?/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e(7340).then(r.bind(r,9763));case 1:return e=t.v,i=e.diagram,t.a(2,{id:Y,diagram:i})}},t)})),"loader")},j="requirement",U={id:j,detector:(0,x.K2)(function(t){return/^\s*requirement(Diagram)?/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e(7340).then(r.bind(r,70102));case 1:return e=t.v,i=e.diagram,t.a(2,{id:j,diagram:i})}},t)})),"loader")},H="sequence",V={id:H,detector:(0,x.K2)(function(t){return/^\s*sequenceDiagram/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(454)]).then(r.bind(r,43899));case 1:return e=t.v,i=e.diagram,t.a(2,{id:H,diagram:i})}},t)})),"loader")},G="class",X={id:G,detector:(0,x.K2)(function(t,e){var r;return"dagre-wrapper"!==(null==e||null===(r=e.class)||void 0===r?void 0:r.defaultRenderer)&&/^\s*classDiagram/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e(7340).then(r.bind(r,21075));case 1:return e=t.v,i=e.diagram,t.a(2,{id:G,diagram:i})}},t)})),"loader")},Z="classDiagram",Q={id:Z,detector:(0,x.K2)(function(t,e){var r;return!(!/^\s*classDiagram/.test(t)||"dagre-wrapper"!==(null==e||null===(r=e.class)||void 0===r?void 0:r.defaultRenderer))||/^\s*classDiagram-v2/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e(7340).then(r.bind(r,60467));case 1:return e=t.v,i=e.diagram,t.a(2,{id:Z,diagram:i})}},t)})),"loader")},J="state",tt={id:J,detector:(0,x.K2)(function(t,e){var r;return"dagre-wrapper"!==(null==e||null===(r=e.state)||void 0===r?void 0:r.defaultRenderer)&&/^\s*stateDiagram/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(2525),r.e(8668),r.e(7794)]).then(r.bind(r,84436));case 1:return e=t.v,i=e.diagram,t.a(2,{id:J,diagram:i})}},t)})),"loader")},et="stateDiagram",rt={id:et,detector:(0,x.K2)(function(t,e){var r;return!!/^\s*stateDiagram-v2/.test(t)||!(!/^\s*stateDiagram/.test(t)||"dagre-wrapper"!==(null==e||null===(r=e.state)||void 0===r?void 0:r.defaultRenderer))},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e(7340).then(r.bind(r,3598));case 1:return e=t.v,i=e.diagram,t.a(2,{id:et,diagram:i})}},t)})),"loader")},it="journey",nt={id:it,detector:(0,x.K2)(function(t){return/^\s*journey/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e(7340).then(r.bind(r,93675));case 1:return e=t.v,i=e.diagram,t.a(2,{id:it,diagram:i})}},t)})),"loader")},at={draw:(0,x.K2)(function(t,e,r){x.Rm.debug("rendering svg for syntax error\n");var i=(0,p.D)(e),n=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,v.a$)(i,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version ".concat(r))},"draw")},ot=at,st={db:{},renderer:at,parser:{parse:(0,x.K2)(function(){},"parse")}},lt="flowchart-elk",ct=(0,x.K2)(function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!(/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&"elk"===(null==r||null===(e=r.flowchart)||void 0===e?void 0:e.defaultRenderer))&&(r.layout="elk",!0)},"detector"),ut={id:lt,detector:ct,loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(2962)]).then(r.bind(r,40178));case 1:return e=t.v,i=e.diagram,t.a(2,{id:lt,diagram:i})}},t)})),"loader")},ht="timeline",dt={id:ht,detector:(0,x.K2)(function(t){return/^\s*timeline/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e(7340).then(r.bind(r,80004));case 1:return e=t.v,i=e.diagram,t.a(2,{id:ht,diagram:i})}},t)})),"loader")},pt="mindmap",gt={id:pt,detector:(0,x.K2)(function(t){return/^\s*mindmap/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e(7340).then(r.bind(r,62690));case 1:return e=t.v,i=e.diagram,t.a(2,{id:pt,diagram:i})}},t)})),"loader")},ft="kanban",yt={id:ft,detector:(0,x.K2)(function(t){return/^\s*kanban/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e(7340).then(r.bind(r,71250));case 1:return e=t.v,i=e.diagram,t.a(2,{id:ft,diagram:i})}},t)})),"loader")},mt="sankey",vt={id:mt,detector:(0,x.K2)(function(t){return/^\s*sankey(-beta)?/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(7730)]).then(r.bind(r,29803));case 1:return e=t.v,i=e.diagram,t.a(2,{id:mt,diagram:i})}},t)})),"loader")},xt="packet",bt={id:xt,detector:(0,x.K2)(function(t){return/^\s*packet(-beta)?/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(9510)]).then(r.bind(r,60442));case 1:return e=t.v,i=e.diagram,t.a(2,{id:xt,diagram:i})}},t)})),"loader")},kt="radar",Ct={id:kt,detector:(0,x.K2)(function(t){return/^\s*radar-beta/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(9510)]).then(r.bind(r,53295));case 1:return e=t.v,i=e.diagram,t.a(2,{id:kt,diagram:i})}},t)})),"loader")},At="block",Dt={id:At,detector:(0,x.K2)(function(t){return/^\s*block(-beta)?/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(2525),r.e(8668),r.e(5233)]).then(r.bind(r,81245));case 1:return e=t.v,i=e.diagram,t.a(2,{id:At,diagram:i})}},t)})),"loader")},Et="treeView",Tt={id:Et,detector:(0,x.K2)(function(t){return/^\s*treeView-beta/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(9510)]).then(r.bind(r,53261));case 1:return e=t.v,i=e.diagram,t.a(2,{id:Et,diagram:i})}},t)})),"loader")},wt="architecture",St={id:wt,detector:(0,x.K2)(function(t){return/^\s*architecture/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(9510),r.e(9326),r.e(2646)]).then(r.bind(r,94944));case 1:return e=t.v,i=e.diagram,t.a(2,{id:wt,diagram:i})}},t)})),"loader")},Ft="eventmodeling",_t={id:Ft,detector:(0,x.K2)(function(t){return/^\s*eventmodeling/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(9510)]).then(r.bind(r,56177));case 1:return e=t.v,i=e.diagram,t.a(2,{id:Ft,diagram:i})}},t)})),"loader")},Bt="ishikawa",Lt={id:Bt,detector:(0,x.K2)(function(t){return/^\s*ishikawa(-beta)?\b/i.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r.e(7340).then(r.bind(r,40082));case 1:return e=t.v,i=e.diagram,t.a(2,{id:Bt,diagram:i})}},t)})),"loader")},It="venn",Rt={id:It,detector:(0,x.K2)(function(t){return/^\s*venn-beta/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(499)]).then(r.bind(r,36896));case 1:return e=t.v,i=e.diagram,t.a(2,{id:It,diagram:i})}},t)})),"loader")},Ot="treemap",Mt={id:Ot,detector:(0,x.K2)(function(t){return/^\s*treemap/.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(9510)]).then(r.bind(r,58858));case 1:return e=t.v,i=e.diagram,t.a(2,{id:Ot,diagram:i})}},t)})),"loader")},Nt="wardley-beta",Kt={id:Nt,detector:(0,x.K2)(function(t){return/^\s*wardley-beta/i.test(t)},"detector"),loader:(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,i;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Promise.all([r.e(7340),r.e(9510)]).then(r.bind(r,89266));case 1:return e=t.v,i=e.diagram,t.a(2,{id:Nt,diagram:i})}},t)})),"loader")},Pt=!1,qt=(0,x.K2)(function(){Pt||(Pt=!0,(0,v.Js)("error",st,function(t){return"error"===t.toLowerCase().trim()}),(0,v.Js)("---",{db:{clear:(0,x.K2)(function(){},"clear")},styles:{},renderer:{draw:(0,x.K2)(function(){},"draw")},parser:{parse:(0,x.K2)(function(){throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,x.K2)(function(){return null},"init")},function(t){return t.toLowerCase().trimStart().startsWith("---")}),(0,v.Xd)(ut,gt,St),(0,v.Xd)(S,yt,Q,X,I,N,P,q,U,V,L,_,dt,O,rt,tt,nt,W,vt,bt,$,Dt,_t,Tt,Ct,Lt,Mt,Rt,Kt))},"addDiagrams"),zt=(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,r,i,n,a;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return x.Rm.debug("Loading registered diagrams"),t.n=1,Promise.allSettled(Object.entries(v.mW).map(function(){var t=(0,d.A)((0,h.A)().m(function t(e){var r,i,n,a,o,s,l,c,d;return(0,h.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:if(r=(0,u.A)(e,2),i=r[0],n=r[1],a=n.detector,o=n.loader){t.n=1;break}return t.a(2);case 1:t.p=1,(0,v.Gs)(i),t.n=6;break;case 2:return t.p=2,t.v,t.p=3,t.n=4,o();case 4:s=t.v,l=s.diagram,c=s.id,(0,v.Js)(c,l,a),t.n=6;break;case 5:throw t.p=5,d=t.v,x.Rm.error("Failed to load external diagram with key ".concat(i,". Removing from detectors.")),delete v.mW[i],d;case 6:return t.a(2)}},t,null,[[3,5],[1,2]])}));return function(e){return t.apply(this,arguments)}}()));case 1:if(e=t.v,!((r=e.filter(function(t){return"rejected"===t.status})).length>0)){t.n=2;break}x.Rm.error("Failed to load ".concat(r.length," external diagrams")),i=(0,c.A)(r);try{for(i.s();!(n=i.n()).done;)a=n.value,x.Rm.error(a)}catch(t){i.e(t)}finally{i.f()}throw new Error("Failed to load ".concat(r.length," external diagrams"));case 2:return t.a(2)}},t)})),"loadRegisteredDiagrams");function Wt(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function Yt(t,e,r,i){if(void 0!==t.insert){if(r){var n="chart-desc-".concat(i);t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(r)}if(e){var a="chart-title-".concat(i);t.attr("aria-labelledby",a),t.insert("title",":first-child").attr("id",a).text(e)}}}(0,x.K2)(Wt,"setA11yDiagramInfo"),(0,x.K2)(Yt,"addSVGa11yTitleDescription");var $t=(i=function(){function t(e,r,i,n,a){(0,s.A)(this,t),this.type=e,this.text=r,this.db=i,this.parser=n,this.renderer=a}return(0,l.A)(t,[{key:"render",value:(r=(0,d.A)((0,h.A)().m(function t(e,r){return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,this.renderer.draw(this.text,e,r,this);case 1:return t.a(2)}},t,this)})),function(t,e){return r.apply(this,arguments)})},{key:"getParser",value:function(){return this.parser}},{key:"getType",value:function(){return this.type}}],[{key:"fromText",value:(e=(0,d.A)((0,h.A)().m(function e(r){var i,n,a,o,s,l,c,u,d,p,g,f,y,x,b=arguments;return(0,h.A)().w(function(e){for(;;)switch(e.p=e.n){case 0:n=b.length>1&&void 0!==b[1]?b[1]:{},a=(0,v.zj)(),o=(0,v.Ch)(r,a),r=(0,m.C4)(r)+"\n",e.p=1,(0,v.Gs)(o),e.n=5;break;case 2:if(e.p=2,e.v,s=(0,v.J$)(o)){e.n=3;break}throw new v.C0("Diagram ".concat(o," not found."));case 3:return e.n=4,s();case 4:l=e.v,c=l.id,u=l.diagram,(0,v.Js)(c,u);case 5:return d=(0,v.Gs)(o),p=d.db,g=d.parser,f=d.renderer,y=d.init,g.parser&&(g.parser.yy=p),null===(i=p.clear)||void 0===i||i.call(p),null==y||y(a),n.title&&(null===(x=p.setDiagramTitle)||void 0===x||x.call(p,n.title)),e.n=6,g.parse(r);case 6:return e.a(2,new t(o,r,p,g,f))}},e,null,[[1,2]])})),function(t){return e.apply(this,arguments)})}]);var e,r}(),(0,x.K2)(i,"Diagram"),i),jt=[],Ut=(0,x.K2)(function(){jt.forEach(function(t){t()}),jt=[]},"attachFunctions"),Ht=(0,x.K2)(function(t){return t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart()},"cleanupComments");function Vt(t){var e,r=t.match(v.EJ);if(!r)return{text:t,metadata:{}};var i=null!==(e=(0,g.H)(r[1],{schema:g.r}))&&void 0!==e?e:{},n={};return(i="object"!==(0,o.A)(i)||Array.isArray(i)?{}:i).displayMode&&(n.displayMode=i.displayMode.toString()),i.title&&(n.title=i.title.toString()),i.config&&(n.config=i.config),{text:t.slice(r[0].length),metadata:n}}(0,x.K2)(Vt,"extractFrontMatter");var Gt=(0,x.K2)(function(t){return t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,function(t,e,r){return"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"})},"cleanupText"),Xt=(0,x.K2)(function(t){var e=Vt(t),r=e.text,i=e.metadata,n=i.displayMode,a=i.title,o=i.config,s=void 0===o?{}:o;return n&&(s.gantt||(s.gantt={}),s.gantt.displayMode=n),{title:a,config:s,text:r}},"processFrontmatter"),Zt=(0,x.K2)(function(t){var e,r=null!==(e=m._K.detectInit(t))&&void 0!==e?e:{},i=m._K.detectDirective(t,"wrap");return Array.isArray(i)?r.wrap=i.some(function(t){return"wrap"===t.type}):"wrap"===(null==i?void 0:i.type)&&(r.wrap=!0),{text:(0,m.vU)(t),directive:r}},"processDirectives");function Qt(t){var e=Gt(t),r=Xt(e),i=Zt(r.text),n=(0,m.$t)(r.config,i.directive);return{code:t=Ht(i.text),title:r.title,config:n}}function Jt(t){var e=(new TextEncoder).encode(t),r=Array.from(e,function(t){return String.fromCodePoint(t)}).join("");return btoa(r)}(0,x.K2)(Qt,"preprocessDiagram"),(0,x.K2)(Jt,"toBase64");var te=["foreignobject"],ee=["dominant-baseline"];function re(t){var e,r=Qt(t);return(0,v.cL)(),(0,v.xA)(null!==(e=r.config)&&void 0!==e?e:{}),r}function ie(t,e){return ne.apply(this,arguments)}function ne(){return(ne=(0,d.A)((0,h.A)().m(function t(e,r){var i,n,a,o,s;return(0,h.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:return qt(),t.p=1,i=re(e),n=i.code,a=i.config,t.n=2,ye(n);case 2:return o=t.v,t.a(2,{diagramType:o.type,config:a});case 3:if(t.p=3,s=t.v,null==r||!r.suppressErrors){t.n=4;break}return t.a(2,!1);case 4:throw s;case 5:return t.a(2)}},t,null,[[1,3]])}))).apply(this,arguments)}(0,x.K2)(re,"processAndSetConfigs"),(0,x.K2)(ie,"parse");var ae=(0,x.K2)(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=(0,v.Df)("{ ".concat(r.join(" !important; ")," !important; }"));return".".concat(t," ").concat(e," ").concat(i)},"cssImportantStyles"),oe=(0,x.K2)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,r=new CSSStyleSheet;if(void 0!==t.fontFamily&&r.insertRule(":root { --mermaid-font-family: ".concat(t.fontFamily,"}"),r.cssRules.length),void 0!==t.altFontFamily&&r.insertRule(":root { --mermaid-alt-font-family: ".concat(t.altFontFamily,"}"),r.cssRules.length),e instanceof Map){var i=(0,v.E)(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(function(t){(0,w.I)(t.styles)||i.forEach(function(e){r.insertRule(ae(t.id,e,t.styles),r.cssRules.length)}),(0,w.I)(t.textStyles)||r.insertRule(ae(t.id,"tspan",((null==t?void 0:t.textStyles)||[]).map(function(t){return t.replace("color","fill")})),r.cssRules.length)})}var n="";if(void 0!==t.themeCSS)if("function"==typeof r.replaceSync){var a=new CSSStyleSheet;a.replaceSync(t.themeCSS),n=(0,v.KG)(a)+"\n"}else n+="".concat(t.themeCSS,"\n");return n+(0,v.KG)(r)},"createCssStyles"),se=(0,x.K2)(function(t,e){return(0,D.l)((0,A.wE)("".concat(t,"{").concat(e,"}")),(0,E.r1)([(0,x.K2)(function(e,r,i,n){if("rule"===e.type&&Array.isArray(e.props)){if(e.parent&&e.parent.type===C.Sv)return;e.props=e.props.map(function(e){return e.startsWith(t)?e:"".concat(t," ").concat(e)})}else if(e.type.startsWith("@")){var a=[C.Rn,C.$1,C.IO,C.hx,"@container","@starting-style"];[].concat(a,[C.Sv]).includes(e.type)||(x.Rm.warn("Removing unsupported at-rule ".concat(e.type," from CSS")),e.type=C.YK)}},"addNamespace"),D.A]))},"compileCSS"),le=(0,x.K2)(function(t,e,r,i){var n=oe(t,r),o=(0,v.tM)(e,n,(0,a.A)((0,a.A)({},t.themeVariables),{},{theme:t.theme,look:t.look}),i);return se(i,o)},"createUserStyles"),ce=(0,x.K2)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(arguments.length>2?arguments[2]:void 0)||(arguments.length>1?arguments[1]:void 0)||(t=t.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),t=(t=(0,m.Sm)(t)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),ue=(0,x.K2)(function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0,n=null!=i&&null!==(t=i.viewBox)&&void 0!==t&&null!==(e=t.baseVal)&&void 0!==e&&e.height?i.viewBox.baseVal.height+"px":"100%",a=Jt('<body style="'.concat("margin:0",'">').concat(r,"</body>"));return'<iframe style="width:'.concat("100%",";height:").concat(n,";").concat("border:0;margin:0;",'" src="data:text/html;charset=UTF-8;base64,').concat(a,'" sandbox="').concat("allow-top-navigation-by-user-activation allow-popups",'">\n  ').concat('The "iframe" tag is not supported by your browser.',"\n</iframe>")},"putIntoIFrame"),he=(0,x.K2)(function(t,e,r,i,n){var a=t.append("div");a.attr("id",r),i&&a.attr("style",i);var o=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return n&&o.attr("xmlns:xlink",n),o.append("g"),t},"appendDivSvgG");function de(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,x.K2)(de,"sandboxedIframe");var pe=(0,x.K2)(function(t,e,r,i){var n,a,o;null===(n=t.getElementById(e))||void 0===n||n.remove(),null===(a=t.getElementById(r))||void 0===a||a.remove(),null===(o=t.getElementById(i))||void 0===o||o.remove()},"removeExistingElements"),ge=(0,x.K2)(function(){var t=(0,d.A)((0,h.A)().m(function t(e,r,i){var n,a,o,s,l,c,u,d,p,g,f,y,m,b,C,A,D,E,w,S,F,_,B,L,I,R,O,M,N,K,P,q,z,W,Y,$,j;return(0,h.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:return qt(),d=re(r),r=d.code,p=(0,v.zj)(),x.Rm.debug(p),r.length>(null!==(n=null==p?void 0:p.maxTextSize)&&void 0!==n?n:5e4)&&(r="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),g="#".concat(e),y="#"+(f="i"+e),b="#"+(m="d"+e),C=(0,x.K2)(function(){var t=D?y:b,e=(0,k.Ltv)(t).node();e&&"remove"in e&&e.remove()},"removeTempElements"),A=(0,k.Ltv)(document.body),D="sandbox"===p.securityLevel,E="loose"===p.securityLevel,w=p.fontFamily,void 0!==i?(i&&(i.innerHTML=""),D?(S=de((0,k.Ltv)(i),f),(A=(0,k.Ltv)(S.nodes()[0].contentDocument.body)).node().style.margin="0"):A=(0,k.Ltv)(i),he(A,e,m,"font-family: ".concat(w),"http://www.w3.org/1999/xlink")):(pe(document,e,m,f),D?(F=de((0,k.Ltv)(document.body),f),(A=(0,k.Ltv)(F.nodes()[0].contentDocument.body)).node().style.margin="0"):A=(0,k.Ltv)("body"),he(A,e,m)),t.p=1,t.n=2,$t.fromText(r,{title:d.title});case 2:_=t.v,t.n=6;break;case 3:if(t.p=3,$=t.v,!p.suppressErrorRendering){t.n=4;break}throw C(),$;case 4:return t.n=5,$t.fromText("error");case 5:_=t.v,B=$;case 6:return L=A.select(b).node(),I=_.type,R=L.firstChild,O=R.firstChild,M=null===(a=(o=_.renderer).getClasses)||void 0===a?void 0:a.call(o,r,_),N=le(p,I,M,g),(K=document.createElement("style")).innerHTML=N,R.insertBefore(K,O),t.p=7,t.n=8,_.renderer.draw(r,e,"11.15.0",_);case 8:t.n=10;break;case 9:throw t.p=9,j=t.v,p.suppressErrorRendering?C():ot.draw(r,e,"11.15.0"),j;case 10:if(P=A.select("".concat(b," svg")),q=null===(s=(l=_.db).getAccTitle)||void 0===s?void 0:s.call(l),z=null===(c=(u=_.db).getAccDescription)||void 0===c?void 0:c.call(u),me(I,P,q,z),A.select('[id="'.concat(e,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml"),W=A.select(b).node().innerHTML,x.Rm.debug("config.arrowMarkerAbsolute",p.arrowMarkerAbsolute),W=ce(W,D,(0,v._3)(p.arrowMarkerAbsolute)),D?(Y=A.select(b+" svg").node(),W=ue(W,Y)):E||(W=T.A.sanitize(W,{ADD_TAGS:te,ADD_ATTR:ee,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),Ut(),!B){t.n=11;break}throw B;case 11:return C(),t.a(2,{diagramType:I,svg:W,bindFunctions:_.db.bindFunctions})}},t,null,[[7,9],[1,3]])}));return function(e,r,i){return t.apply(this,arguments)}}(),"render");function fe(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,v.hH)({},e);null==r||!r.fontFamily||null!==(t=r.themeVariables)&&void 0!==t&&t.fontFamily||(r.themeVariables||(r.themeVariables={}),r.themeVariables.fontFamily=r.fontFamily),(0,v.wZ)(r),null!=r&&r.theme&&r.theme in v.H$?r.themeVariables=v.H$[r.theme].getThemeVariables(r.themeVariables):r&&(r.themeVariables=v.H$.default.getThemeVariables(r.themeVariables));var i="object"===(0,o.A)(r)?(0,v.UU)(r):(0,v.Q2)();(0,x.He)(i.logLevel),qt()}(0,x.K2)(fe,"initialize");var ye=(0,x.K2)(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Qt(t).code;return $t.fromText(r,e)},"getDiagramFromText");function me(t,e,r,i){Wt(e,t),Yt(e,r,i,e.attr("id"))}(0,x.K2)(me,"addA11yInfo");var ve=Object.freeze({render:ge,parse:ie,getDiagramFromText:ye,initialize:fe,getConfig:v.zj,setConfig:v.Nk,getSiteConfig:v.Q2,updateSiteConfig:v.B6,reset:(0,x.K2)(function(){(0,v.cL)()},"reset"),globalReset:(0,x.K2)(function(){(0,v.cL)(v.sb)},"globalReset"),defaultConfig:v.sb});(0,x.He)((0,v.zj)().logLevel),(0,v.cL)((0,v.zj)());var xe=(0,x.K2)(function(t,e,r){x.Rm.warn(t),(0,m.dq)(t)?(r&&r(t.str,t.hash),e.push((0,a.A)((0,a.A)({},t),{},{message:t.str,error:t}))):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),be=(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,r,i=arguments;return(0,h.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{querySelector:".mermaid"},t.p=1,t.n=2,ke(e);case 2:t.n=4;break;case 3:if(t.p=3,r=t.v,(0,m.dq)(r)&&x.Rm.error(r.str),Ie.parseError&&Ie.parseError(r),e.suppressErrors){t.n=4;break}throw x.Rm.error("Use the suppressErrors option to suppress these errors"),r;case 4:return t.a(2)}},t,null,[[1,3]])})),"run"),ke=(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,r,i,n,a,o,s,l,c,u,d,p,g,f,y,v,k,C,A=arguments;return(0,h.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:if(r=(e=A.length>0&&void 0!==A[0]?A[0]:{querySelector:".mermaid"}).postRenderCallback,i=e.querySelector,n=e.nodes,a=ve.getConfig(),x.Rm.debug("".concat(r?"":"No ","Callback function found")),!n){t.n=1;break}o=n,t.n=3;break;case 1:if(!i){t.n=2;break}o=document.querySelectorAll(i),t.n=3;break;case 2:throw new Error("Nodes and querySelector are both undefined");case 3:x.Rm.debug("Found ".concat(o.length," diagrams")),void 0!==(null==a?void 0:a.startOnLoad)&&(x.Rm.debug("Start On Load: "+(null==a?void 0:a.startOnLoad)),ve.updateSiteConfig({startOnLoad:null==a?void 0:a.startOnLoad})),s=new m._K.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),c=[],u=0,d=Array.from(o);case 4:if(!(u<d.length)){t.n=11;break}if(p=d[u],x.Rm.info("Rendering diagram: "+p.id),!p.getAttribute("data-processed")){t.n=5;break}return t.a(3,10);case 5:return p.setAttribute("data-processed","true"),g="mermaid-".concat(s.next()),l=p.innerHTML,l=(0,b.T)(m._K.entityDecode(l)).trim().replace(/<br\s*\/?>/gi,"<br/>"),(f=m._K.detectInit(l))&&x.Rm.debug("Detected early reinit: ",f),t.p=6,t.n=7,Be(g,l,p);case 7:if(y=t.v,v=y.svg,k=y.bindFunctions,p.innerHTML=v,!r){t.n=8;break}return t.n=8,r(g);case 8:k&&k(p),t.n=10;break;case 9:t.p=9,C=t.v,xe(C,c,Ie.parseError);case 10:u++,t.n=4;break;case 11:if(!(c.length>0)){t.n=12;break}throw c[0];case 12:return t.a(2)}},t,null,[[6,9]])})),"runThrowsErrors"),Ce=(0,x.K2)(function(t){ve.initialize(t)},"initialize"),Ae=(0,x.K2)(function(){var t=(0,d.A)((0,h.A)().m(function t(e,r,i){var n;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:return x.Rm.warn("mermaid.init is deprecated. Please use run instead."),e&&Ce(e),n={postRenderCallback:i,querySelector:".mermaid"},"string"==typeof r?n.querySelector=r:r&&(r instanceof HTMLElement?n.nodes=[r]:n.nodes=r),t.n=1,be(n);case 1:return t.a(2)}},t)}));return function(e,r,i){return t.apply(this,arguments)}}(),"init"),De=(0,x.K2)(function(){var t=(0,d.A)((0,h.A)().m(function t(e){var r,i,a=arguments;return(0,h.A)().w(function(t){for(;;)switch(t.n){case 0:if(r=(a.length>1&&void 0!==a[1]?a[1]:{}).lazyLoad,i=void 0===r||r,qt(),v.Xd.apply(void 0,(0,n.A)(e)),!1!==i){t.n=1;break}return t.n=1,zt();case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),"registerExternalDiagrams"),Ee=(0,x.K2)(function(){Ie.startOnLoad&&(ve.getConfig().startOnLoad&&Ie.run().catch(function(t){return x.Rm.error("Mermaid failed to initialize",t)}))},"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",Ee,!1);var Te=(0,x.K2)(function(t){Ie.parseError=t},"setParseErrorHandler"),we=[],Se=!1,Fe=(0,x.K2)((0,d.A)((0,h.A)().m(function t(){var e,r;return(0,h.A)().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!Se){t.n=1;break}return t.a(2);case 1:Se=!0;case 2:if(!(we.length>0)){t.n=7;break}if(!(e=we.shift())){t.n=6;break}return t.p=3,t.n=4,e();case 4:t.n=6;break;case 5:t.p=5,r=t.v,x.Rm.error("Error executing queue",r);case 6:t.n=2;break;case 7:Se=!1;case 8:return t.a(2)}},t,null,[[3,5]])})),"executeQueue"),_e=(0,x.K2)(function(){var t=(0,d.A)((0,h.A)().m(function t(e,r){return(0,h.A)().w(function(t){for(;;)if(0===t.n)return t.a(2,new Promise(function(t,i){var n=(0,x.K2)(function(){return new Promise(function(n,a){ve.parse(e,r).then(function(e){n(e),t(e)},function(t){var e;x.Rm.error("Error parsing",t),null===(e=Ie.parseError)||void 0===e||e.call(Ie,t),a(t),i(t)})})},"performCall");we.push(n),Fe().catch(i)}))},t)}));return function(e,r){return t.apply(this,arguments)}}(),"parse"),Be=(0,x.K2)(function(t,e,r){return new Promise(function(i,n){var a=(0,x.K2)(function(){return new Promise(function(a,o){ve.render(t,e,r).then(function(t){a(t),i(t)},function(t){var e;x.Rm.error("Error parsing",t),null===(e=Ie.parseError)||void 0===e||e.call(Ie,t),o(t),n(t)})})},"performCall");we.push(a),Fe().catch(n)})},"render"),Le=(0,x.K2)(function(){return Object.keys(v.mW).map(function(t){return{id:t}})},"getRegisteredDiagramsMetadata"),Ie={startOnLoad:!0,mermaidAPI:ve,parse:_e,render:Be,init:Ae,run:be,registerExternalDiagrams:De,registerLayoutLoaders:f.sO,initialize:Ce,parseError:void 0,contentLoaded:Ee,setParseErrorHandler:Te,detectType:v.Ch,registerIconPacks:y.pC,getRegisteredDiagramsMetadata:Le},Re=Ie}}]);