1264 lines
1.1 MiB
Plaintext
1264 lines
1.1 MiB
Plaintext
import{w as writable,_ as __vitePreload,d as derived}from"./preload-helper-23bf4dac.js";import{O as get_store_value}from"./index-1530a265.js";const defaultLoading={loading:!1},loadingStateStore=writable(defaultLoading),initLoading=async(f,k)=>{loadingStateStore.set({loading:!0,message:f});const h=await k;return loadingStateStore.set({loading:!1}),h};function getDefaultExportFromCjs(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var browserCookies={};(function(f){f.defaults={},f.set=function(k,h,m){var d=m||{},b=f.defaults,_=d.expires||b.expires,A=d.domain||b.domain,L=d.path!==void 0?d.path:b.path!==void 0?b.path:"/",E=d.secure!==void 0?d.secure:b.secure,D=d.httponly!==void 0?d.httponly:b.httponly,R=d.samesite!==void 0?d.samesite:b.samesite,P=_?new Date(typeof _=="number"?new Date().getTime()+_*864e5:_):0;document.cookie=k.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+h.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(P&&P.getTime()>=0?";expires="+P.toUTCString():"")+(A?";domain="+A:"")+(L?";path="+L:"")+(E?";secure":"")+(D?";httponly":"")+(R?";samesite="+R:"")},f.get=function(k){for(var h=document.cookie.split(";");h.length;){var m=h.pop(),d=m.indexOf("=");d=d<0?m.length:d;var b=decodeURIComponent(m.slice(0,d).replace(/^\s+/,""));if(b===k)return decodeURIComponent(m.slice(d+1))}return null},f.erase=function(k,h){f.set(k,"",{expires:-1,domain:h&&h.domain,path:h&&h.path,secure:0,httponly:0})},f.all=function(){for(var k={},h=document.cookie.split(";");h.length;){var m=h.pop(),d=m.indexOf("=");d=d<0?m.length:d;var b=decodeURIComponent(m.slice(0,d).replace(/^\s+/,""));k[b]=decodeURIComponent(m.slice(d+1))}return k}})(browserCookies);var bundle={};(function(exports){(function(f,k){for(var h in k)f[h]=k[h];k.__esModule&&Object.defineProperty(f,"__esModule",{value:!0})})(exports,(()=>{var __webpack_modules__={607:(module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var serializer_1=__webpack_require__(810),deserializer_1=__webpack_require__(496),Module;typeof process<"u"&&process.release.name==="node"&&(Module=eval("require")("module"));var ESSerializer=function(){function f(){}return f.throwErrorIfInNonNodeEnvironment=function(){if(!Module)throw new Error("Cannot intercept require in non-Node environment.")},f.interceptRequire=function(){this.isRequireIntercepted||(this.isRequireIntercepted=!0,this.throwErrorIfInNonNodeEnvironment(),f.originRequire=Module.prototype.require,Module.prototype.require=function(){var k=f.originRequire.apply(this,arguments),h=k.name;return f.requiredClasses[h]||(f.requiredClasses[h]=k),k})},f.stopInterceptRequire=function(){this.throwErrorIfInNonNodeEnvironment(),Module.prototype.require=f.originRequire,this.isRequireIntercepted=!1},f.isInterceptingRequire=function(){return this.isRequireIntercepted},f.getRequiredClasses=function(){return this.requiredClasses},f.clearRequiredClasses=function(){this.requiredClasses={}},f.registerClass=function(k){this.registeredClasses.push(k)},f.registerClasses=function(k){this.registeredClasses=this.registeredClasses.concat(k)},f.clearRegisteredClasses=function(){this.registeredClasses=[]},f.serialize=function(k,h){return h===void 0&&(h={}),JSON.stringify(serializer_1.getSerializeValueWithClassName(k,h))},f.deserialize=function(k,h,m){return h===void 0&&(h=[]),m===void 0&&(m={}),deserializer_1.deserializeFromParsedObj(JSON.parse(k),Object.values(this.requiredClasses).concat(this.registeredClasses).concat(h),m)},f.originRequire=null,f.isRequireIntercepted=!1,f.requiredClasses={},f.registeredClasses=[],f}();module.exports=ESSerializer},917:function(f,k){var h=this&&this.__spreadArrays||function(){for(var St=0,Lt=0,Ht=arguments.length;Lt<Ht;Lt++)St+=arguments[Lt].length;var ge=Array(St),We=0;for(Lt=0;Lt<Ht;Lt++)for(var Ee=arguments[Lt],fe=0,xe=Ee.length;fe<xe;fe++,We++)ge[We]=Ee[fe];return ge};Object.defineProperty(k,"__esModule",{value:!0}),k.TO_STRING_FIELD=k.TIMESTAMP_FIELD=k.OPTIONS_FIELD=k.CLASS_NAME_FIELD=k.BOOLEAN_FIELD=k.ARRAY_FIELD=k.BUILTIN_TYPE_UNDEFINED=k.BUILTIN_TYPE_NOT_FINITE=k.BUILTIN_TYPE_BIG_INT=k.BUILTIN_CLASS_AGGREGATE_ERROR=k.BUILTIN_CLASS_URI_ERROR=k.BUILTIN_CLASS_TYPE_ERROR=k.BUILTIN_CLASS_SYNTAX_ERROR=k.BUILTIN_CLASS_REFERENCE_ERROR=k.BUILTIN_CLASS_RANGE_ERROR=k.BUILTIN_CLASS_EVAL_ERROR=k.BUILTIN_CLASS_ERROR=k.BUILTIN_CLASS_STRING=k.BUILTIN_CLASS_SET=k.BUILTIN_CLASS_REGEXP=k.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT=k.BUILTIN_CLASS_INTL_PLURALRULES=k.BUILTIN_CLASS_INTL_NUMBERFORMAT=k.BUILTIN_CLASS_INTL_LOCALE=k.BUILTIN_CLASS_INTL_LISTFORMAT=k.BUILTIN_CLASS_INTL_DATETIMEFORMAT=k.BUILTIN_CLASS_INTL_COLLATOR=k.BUILTIN_CLASS_DATE=k.BUILTIN_CLASS_DATAVIEW=k.BUILTIN_CLASS_BOOLEAN=k.BUILTIN_CLASS_SHAREDARRAYBUFFER=k.BUILTIN_CLASS_ARRAYBUFFER=k.BUILTIN_CLASS_BIGUINT64ARRAY=k.BUILTIN_CLASS_BIGINT64ARRAY=k.BUILTIN_CLASS_FLOAT64ARRAY=k.BUILTIN_CLASS_FLOAT32ARRAY=k.BUILTIN_CLASS_UINT32ARRAY=k.BUILTIN_CLASS_INT32ARRAY=k.BUILTIN_CLASS_UINT16ARRAY=k.BUILTIN_CLASS_INT16ARRAY=k.BUILTIN_CLASS_UINT8CLAMPEDARRAY=k.BUILTIN_CLASS_UINT8ARRAY=k.BUILTIN_CLASS_INT8ARRAY=k.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED=k.ALL_BUILTIN_INTLS=k.ALL_BUILTIN_ERRORS=k.ALL_BUILTIN_ARRAYS=k.ESSERIALIZER_NULL=void 0,k.ESSERIALIZER_NULL="__ESSERIALIZER_NULL__",k.ARRAY_FIELD="ess_arr",k.BOOLEAN_FIELD="ess_bool",k.CLASS_NAME_FIELD="ess_cn",k.OPTIONS_FIELD="ess_opt",k.TIMESTAMP_FIELD="ess_ts",k.TO_STRING_FIELD="ess_str";var m="Int8Array";k.BUILTIN_CLASS_INT8ARRAY=m;var d="Uint8Array";k.BUILTIN_CLASS_UINT8ARRAY=d;var b="Uint8ClampedArray";k.BUILTIN_CLASS_UINT8CLAMPEDARRAY=b;var _="Int16Array";k.BUILTIN_CLASS_INT16ARRAY=_;var A="Uint16Array";k.BUILTIN_CLASS_UINT16ARRAY=A;var L="Int32Array";k.BUILTIN_CLASS_INT32ARRAY=L;var E="Uint32Array";k.BUILTIN_CLASS_UINT32ARRAY=E;var D="Float32Array";k.BUILTIN_CLASS_FLOAT32ARRAY=D;var R="Float64Array";k.BUILTIN_CLASS_FLOAT64ARRAY=R;var P="BigInt64Array";k.BUILTIN_CLASS_BIGINT64ARRAY=P;var $="BigUint64Array";k.BUILTIN_CLASS_BIGUINT64ARRAY=$,k.BUILTIN_CLASS_ARRAYBUFFER="ArrayBuffer",k.BUILTIN_CLASS_SHAREDARRAYBUFFER="SharedArrayBuffer",k.BUILTIN_CLASS_BOOLEAN="Boolean",k.BUILTIN_CLASS_DATAVIEW="DataView",k.BUILTIN_CLASS_DATE="Date";var K="Collator";k.BUILTIN_CLASS_INTL_COLLATOR=K;var et="DateTimeFormat";k.BUILTIN_CLASS_INTL_DATETIMEFORMAT=et;var ht="ListFormat";k.BUILTIN_CLASS_INTL_LISTFORMAT=ht,k.BUILTIN_CLASS_INTL_LOCALE="Locale";var X="NumberFormat";k.BUILTIN_CLASS_INTL_NUMBERFORMAT=X;var _t="PluralRules";k.BUILTIN_CLASS_INTL_PLURALRULES=_t;var rt="RelativeTimeFormat";k.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT=rt,k.BUILTIN_CLASS_REGEXP="RegExp",k.BUILTIN_CLASS_SET="Set";var at="String";k.BUILTIN_CLASS_STRING=at;var bt="Error";k.BUILTIN_CLASS_ERROR=bt;var Ft="EvalError";k.BUILTIN_CLASS_EVAL_ERROR=Ft;var Tt="RangeError";k.BUILTIN_CLASS_RANGE_ERROR=Tt;var yt="ReferenceError";k.BUILTIN_CLASS_REFERENCE_ERROR=yt;var Nt="SyntaxError";k.BUILTIN_CLASS_SYNTAX_ERROR=Nt;var xt="TypeError";k.BUILTIN_CLASS_TYPE_ERROR=xt;var pt="URIError";k.BUILTIN_CLASS_URI_ERROR=pt;var tt="AggregateError";k.BUILTIN_CLASS_AGGREGATE_ERROR=tt,k.BUILTIN_TYPE_BIG_INT="BI",k.BUILTIN_TYPE_NOT_FINITE="NF",k.BUILTIN_TYPE_UNDEFINED="UD";var ft=[m,d,b,_,A,L,E,D,R,P,$];k.ALL_BUILTIN_ARRAYS=ft;var q=[bt,Ft,Tt,yt,Nt,xt,pt,tt];k.ALL_BUILTIN_ERRORS=q;var kt=[K,et,ht,X,_t,rt];k.ALL_BUILTIN_INTLS=kt;var W=h([at],ft);k.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED=W},496:function(f,k,h){var m=this&&this.__spreadArrays||function(){for(var X=0,_t=0,rt=arguments.length;_t<rt;_t++)X+=arguments[_t].length;var at=Array(X),bt=0;for(_t=0;_t<rt;_t++)for(var Ft=arguments[_t],Tt=0,yt=Ft.length;Tt<yt;Tt++,bt++)at[bt]=Ft[Tt];return at};Object.defineProperty(k,"__esModule",{value:!0}),k.getParentClassName=k.getClassMappingFromClassArray=k.deserializeFromParsedObjWithClassMapping=k.deserializeFromParsedObj=void 0;var d=h(821),b=h(917),_=/^\s*class\s+/;function A(X,_t,rt){if(rt===void 0&&(rt={}),d.notObject(X))return X;if(Array.isArray(X))return L(X,_t);var at=X[b.CLASS_NAME_FIELD],bt=function(Tt,yt,Nt){switch(Tt){case b.BUILTIN_CLASS_INT8ARRAY:return E(yt[b.ARRAY_FIELD],Int8Array);case b.BUILTIN_CLASS_UINT8ARRAY:return E(yt[b.ARRAY_FIELD],Uint8Array);case b.BUILTIN_CLASS_UINT8CLAMPEDARRAY:return E(yt[b.ARRAY_FIELD],Uint8ClampedArray);case b.BUILTIN_CLASS_INT16ARRAY:return E(yt[b.ARRAY_FIELD],Int16Array);case b.BUILTIN_CLASS_UINT16ARRAY:return E(yt[b.ARRAY_FIELD],Uint16Array);case b.BUILTIN_CLASS_INT32ARRAY:return E(yt[b.ARRAY_FIELD],Int32Array);case b.BUILTIN_CLASS_UINT32ARRAY:return E(yt[b.ARRAY_FIELD],Uint32Array);case b.BUILTIN_CLASS_FLOAT32ARRAY:return E(yt[b.ARRAY_FIELD],Float32Array);case b.BUILTIN_CLASS_FLOAT64ARRAY:return E(yt[b.ARRAY_FIELD],Float64Array);case b.BUILTIN_CLASS_BIGINT64ARRAY:return D(yt[b.ARRAY_FIELD],BigInt64Array);case b.BUILTIN_CLASS_BIGUINT64ARRAY:return D(yt[b.ARRAY_FIELD],BigUint64Array);case b.BUILTIN_TYPE_BIG_INT:return R(yt[b.TO_STRING_FIELD]);case b.BUILTIN_TYPE_UNDEFINED:return;case b.BUILTIN_TYPE_NOT_FINITE:return d.getValueFromToStringResult(yt[b.TO_STRING_FIELD]);case b.BUILTIN_CLASS_ARRAYBUFFER:return xt=yt[b.ARRAY_FIELD],new Uint8Array(xt).buffer;case b.BUILTIN_CLASS_SHAREDARRAYBUFFER:return function(pt){var tt=new SharedArrayBuffer(pt.length),ft=new Uint8Array(tt);return pt.forEach(function(q,kt){ft[kt]=q}),tt}(yt[b.ARRAY_FIELD]);case b.BUILTIN_CLASS_BOOLEAN:return function(pt){return new Boolean(pt[b.BOOLEAN_FIELD])}(yt);case b.BUILTIN_CLASS_DATAVIEW:return function(pt){return new DataView(new Uint8Array(pt).buffer)}(yt[b.ARRAY_FIELD]);case b.BUILTIN_CLASS_DATE:return function(pt){return typeof pt[b.TIMESTAMP_FIELD]=="number"?new Date(pt[b.TIMESTAMP_FIELD]):null}(yt);case b.BUILTIN_CLASS_INTL_COLLATOR:return P(yt,Intl.Collator);case b.BUILTIN_CLASS_INTL_DATETIMEFORMAT:return P(yt,Intl.DateTimeFormat);case b.BUILTIN_CLASS_INTL_LISTFORMAT:return P(yt,Intl.ListFormat);case b.BUILTIN_CLASS_INTL_LOCALE:return new Intl.Locale(yt[b.TO_STRING_FIELD]);case b.BUILTIN_CLASS_INTL_NUMBERFORMAT:return P(yt,Intl.NumberFormat);case b.BUILTIN_CLASS_INTL_PLURALRULES:return P(yt,Intl.PluralRules);case b.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT:return P(yt,Intl.RelativeTimeFormat);case b.BUILTIN_CLASS_REGEXP:return function(pt){var tt=pt[b.TO_STRING_FIELD],ft=tt.lastIndexOf("/");return new RegExp(tt.substring(1,ft),tt.substring(ft+1))}(yt);case b.BUILTIN_CLASS_SET:return function(pt,tt){return new Set(L(pt[b.ARRAY_FIELD],tt))}(yt,Nt);case b.BUILTIN_CLASS_STRING:return function(pt){return new String(pt[b.TO_STRING_FIELD])}(yt);case b.BUILTIN_CLASS_ERROR:return $(yt,Error);case b.BUILTIN_CLASS_EVAL_ERROR:return $(yt,EvalError);case b.BUILTIN_CLASS_RANGE_ERROR:return $(yt,RangeError);case b.BUILTIN_CLASS_REFERENCE_ERROR:return $(yt,ReferenceError);case b.BUILTIN_CLASS_SYNTAX_ERROR:return $(yt,SyntaxError);case b.BUILTIN_CLASS_TYPE_ERROR:return $(yt,TypeError);case b.BUILTIN_CLASS_URI_ERROR:return $(yt,URIError);case b.BUILTIN_CLASS_AGGREGATE_ERROR:return $(yt,AggregateError);default:return b.ESSERIALIZER_NULL}var xt}(at,X,_t);if(bt!==b.ESSERIALIZER_NULL)return bt;if(at&&!_t[at])throw new Error("Class "+at+" not found");var Ft=[];return rt.fieldsForConstructorParameters&&(Ft=rt.fieldsForConstructorParameters.map(function(Tt){return Tt in X?X[Tt]:{}})),function(Tt,yt,Nt,xt){for(var pt in yt){var tt=yt[pt];if(!xt.ignoreProperties||!xt.ignoreProperties.includes(pt))if(xt.rawProperties&&xt.rawProperties.includes(pt))Tt[pt]=JSON.stringify(tt);else{var ft=Object.getOwnPropertyDescriptor(Tt,pt);q=tt,kt=ft,pt===b.CLASS_NAME_FIELD||kt&&(typeof kt.set=="function"||kt.writable===!1&&typeof q!="object")||(ft&&ft.writable===!1&&typeof tt=="object"?et(Tt[pt],tt,Nt):Tt[pt]=A(tt,Nt))}}var q,kt;return Tt}(function(Tt,yt){var Nt={};if(!Tt)return Nt;var xt=Tt.length-yt.length;if(xt>0&&(yt=yt.concat(Array.from(Array(xt),function(){return{}}))),_.test(Tt.toString()))try{Nt=new(Tt.bind.apply(Tt,m([void 0],yt)))}catch{K(Tt.name),Nt={},Object.setPrototypeOf(Nt,Tt?Tt.prototype:Object.prototype)}else{Nt=Object.create(Tt.prototype.constructor.prototype);try{Tt.prototype.constructor.call(Nt,yt)}catch{K(Tt.name)}}return Nt}(_t[at],Ft),X,_t,rt)}function L(X,_t){return X.map(function(rt){return A(rt,_t)})}function E(X,_t){return new _t(X)}function D(X,_t){return new _t(X.map(function(rt){return R(rt[b.TO_STRING_FIELD])}))}function R(X){return BigInt(X)}function P(X,_t){var rt=X[b.OPTIONS_FIELD],at=rt.locale;return delete rt.locale,new _t(at,rt)}function $(X,_t){var rt;return delete(rt=X.message?new _t(X.message):new _t).stack,X.name&&(rt.name=X.name),X.stack&&(rt.stack=X.stack),_t===AggregateError&&(rt.errors=A(X.errors,{})),rt}function K(X){console.warn("Incorrect parameter type passed to constructor: "+X)}function et(X,_t,rt){for(var at in _t){var bt=Object.getOwnPropertyDescriptor(X,at);bt&&bt.writable!==!0&&typeof bt.set!="function"||(X[at]=A(_t[at],rt))}}function ht(X){X===void 0&&(X=[]);var _t={};return X.forEach(function(rt){if(d.isClass(rt)){var at=rt.name,bt=_t[at];bt&&bt!==rt&&console.warn("WARNING: Found class definition with the same name: "+at),_t[at]=rt}}),_t}k.deserializeFromParsedObj=function(X,_t,rt){return A(X,ht(_t),rt)},k.deserializeFromParsedObjWithClassMapping=A,k.getClassMappingFromClassArray=ht,k.getParentClassName=function(X){return X.prototype.__proto__.constructor.name}},821:(f,k)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.isClass=k.notObject=k.getValueFromToStringResult=void 0,k.notObject=function(h){return h===null||typeof h!="object"},k.getValueFromToStringResult=function(h){switch(h){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN;default:return null}},k.isClass=function(h){if(function(m){return[Date].indexOf(m)>=0}(h))return!0;try{Reflect.construct(String,[],h)}catch{return!1}return!0}},810:(f,k,h)=>{Object.defineProperty(k,"__esModule",{value:!0}),k.getSerializeValueWithClassName=void 0;var m=h(917),d=h(821);function b(A,L){L===void 0&&(L={});var E=function($){var K,et,ht;return $===void 0?((K={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_UNDEFINED,K):typeof $!="number"||isFinite($)?typeof $=="bigint"?((ht={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_BIG_INT,ht[m.TO_STRING_FIELD]=$.toString(),ht):d.notObject($)?$:m.ESSERIALIZER_NULL:((et={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_NOT_FINITE,et[m.TO_STRING_FIELD]=$.toString(),et)}(A);if(E!==m.ESSERIALIZER_NULL)return E;if(Array.isArray(A))return _(A);var D={};if(!function($){var K=$.__proto__.constructor.name;return m.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED.includes(K)}(A)){if(L.ignoreProperties&&L.ignoreProperties.forEach(function($){delete A[$]}),L.interceptProperties)for(var R in L.interceptProperties)A[R]=L.interceptProperties[R].call(A,A[R]);for(var P in A)D[P]=b(A[P])}return function($,K){var et=$.__proto__.constructor.name;return et!=="Object"&&(K[m.CLASS_NAME_FIELD]=et,et===m.BUILTIN_CLASS_ARRAYBUFFER||et===m.BUILTIN_CLASS_SHAREDARRAYBUFFER?K[m.ARRAY_FIELD]=_(Array.from(new Uint8Array($))):et===m.BUILTIN_CLASS_BOOLEAN?K[m.BOOLEAN_FIELD]=$.valueOf():et===m.BUILTIN_CLASS_DATAVIEW?K[m.ARRAY_FIELD]=_(Array.from(new Uint8Array($.buffer))):et===m.BUILTIN_CLASS_DATE?K[m.TIMESTAMP_FIELD]=$.getTime():et===m.BUILTIN_CLASS_INTL_LOCALE||et===m.BUILTIN_CLASS_REGEXP?K[m.TO_STRING_FIELD]=$.toString():et===m.BUILTIN_CLASS_SET?K[m.ARRAY_FIELD]=_(Array.from($)):et===m.BUILTIN_CLASS_STRING?K[m.TO_STRING_FIELD]=$.toString():m.ALL_BUILTIN_ARRAYS.includes(et)?K[m.ARRAY_FIELD]=_(Array.from($)):m.ALL_BUILTIN_ERRORS.includes(et)?function(ht,X,_t){ht.name!=="Error"&&(X.name=ht.name),ht.message&&(X.message=ht.message),ht.stack&&(X.stack=ht.stack),_t===m.BUILTIN_CLASS_AGGREGATE_ERROR&&(X.errors=b(ht.errors))}($,K,et):m.ALL_BUILTIN_INTLS.includes(et)&&(K[m.OPTIONS_FIELD]=$.resolvedOptions())),K}(A,D)}function _(A){return A.map(function(L){return b(L)})}k.getSerializeValueWithClassName=b}},__webpack_module_cache__={};function __webpack_require__(f){if(__webpack_module_cache__[f])return __webpack_module_cache__[f].exports;var k=__webpack_module_cache__[f]={exports:{}};return __webpack_modules__[f].call(k.exports,k,k.exports,__webpack_require__),k.exports}return __webpack_require__(607)})())})(bundle);var ESSerializer=getDefaultExportFromCjs(bundle);const alreadyWarnFor=[],warnStorageNotFound=f=>{var k;const h=typeof process<"u"&&((k=process.env)===null||k===void 0?void 0:k.NODE_ENV)==="production";if(alreadyWarnFor.indexOf(f)===-1&&!h){let m=`Unable to find the ${f}. No data will be persisted.`;typeof window>"u"&&(m+=`
|
|
Are you running on a server? Most of storages are not available while running on a server.`),console.warn(m),alreadyWarnFor.push(f)}},allowedClasses=[],serialize=f=>ESSerializer.serialize(f),deserialize=f=>{if(f!=="undefined"){if(f!=null){try{return ESSerializer.deserialize(f,allowedClasses)}catch{}try{return JSON.parse(f)}catch{}}return f}};function persist(f,k,h){const m=k.getValue(h);return m!==null&&f.set(m),k.addListener&&k.addListener(h,d=>{f.set(d)}),f.subscribe(d=>{k.setValue(h,d)}),Object.assign(Object.assign({},f),{delete(){k.deleteValue(h)}})}function getBrowserStorage(f,k=!1){const h=[],m=_=>{const A=_.key;_.storageArea===f&&h.filter(({key:L})=>L===A).forEach(({listener:L})=>{L(deserialize(_.newValue))})},d=()=>{k&&typeof window<"u"&&(window==null?void 0:window.addEventListener)&&window.addEventListener("storage",m)},b=()=>{k&&typeof window<"u"&&(window==null?void 0:window.removeEventListener)&&window.removeEventListener("storage",m)};return{addListener(_,A){h.push({key:_,listener:A}),h.length===1&&d()},removeListener(_,A){const L=h.indexOf({key:_,listener:A});L!==-1&&h.splice(L,1),h.length===0&&b()},getValue(_){const A=f.getItem(_);return deserialize(A)},deleteValue(_){f.removeItem(_)},setValue(_,A){f.setItem(_,serialize(A))}}}function localStorage(f=!1){return typeof window<"u"&&(window==null?void 0:window.localStorage)?getBrowserStorage(window.localStorage,f):(warnStorageNotFound("window.localStorage"),noopStorage())}function noopStorage(){return{getValue(){return null},deleteValue(){},setValue(){}}}let analytics;const initAnalytics=async()=>{if(!analytics)try{const{Analytics:f}=await __vitePreload(()=>import("./analytics.browser.es-80770405.js"),[]),k=await __vitePreload(()=>import("./analytics-plugin-ga.browser.es-820bf674.js"),[]);analytics=f({app:"mermaid-live-editor",plugins:[k.init({trackingId:"UA-153180559-1"})]})}catch{console.info("Analytics blocked ;)")}},detectType=f=>f.replace(/^\s*%%.*\n/g,`
|
|
`).trimStart().split(" ")[0];let timeout;const saveStatistics=f=>{analytics&&(clearTimeout(timeout),timeout=setTimeout(function(){const k=detectType(f);console.debug("ga:","send","event","render",k),analytics.track("render",{graphType:k})},5e3))};/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(f){let k=f.length;for(;--k>=0;)f[k]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),extra_dbits=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(f,k,h,m,d){this.static_tree=f,this.extra_bits=k,this.extra_base=h,this.elems=m,this.max_length=d,this.has_stree=f&&f.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(f,k){this.dyn_tree=f,this.max_code=0,this.stat_desc=k}const d_code=f=>f<256?_dist_code[f]:_dist_code[256+(f>>>7)],put_short=(f,k)=>{f.pending_buf[f.pending++]=k&255,f.pending_buf[f.pending++]=k>>>8&255},send_bits=(f,k,h)=>{f.bi_valid>Buf_size-h?(f.bi_buf|=k<<f.bi_valid&65535,put_short(f,f.bi_buf),f.bi_buf=k>>Buf_size-f.bi_valid,f.bi_valid+=h-Buf_size):(f.bi_buf|=k<<f.bi_valid&65535,f.bi_valid+=h)},send_code=(f,k,h)=>{send_bits(f,h[k*2],h[k*2+1])},bi_reverse=(f,k)=>{let h=0;do h|=f&1,f>>>=1,h<<=1;while(--k>0);return h>>>1},bi_flush=f=>{f.bi_valid===16?(put_short(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):f.bi_valid>=8&&(f.pending_buf[f.pending++]=f.bi_buf&255,f.bi_buf>>=8,f.bi_valid-=8)},gen_bitlen=(f,k)=>{const h=k.dyn_tree,m=k.max_code,d=k.stat_desc.static_tree,b=k.stat_desc.has_stree,_=k.stat_desc.extra_bits,A=k.stat_desc.extra_base,L=k.stat_desc.max_length;let E,D,R,P,$,K,et=0;for(P=0;P<=MAX_BITS$1;P++)f.bl_count[P]=0;for(h[f.heap[f.heap_max]*2+1]=0,E=f.heap_max+1;E<HEAP_SIZE$1;E++)D=f.heap[E],P=h[h[D*2+1]*2+1]+1,P>L&&(P=L,et++),h[D*2+1]=P,!(D>m)&&(f.bl_count[P]++,$=0,D>=A&&($=_[D-A]),K=h[D*2],f.opt_len+=K*(P+$),b&&(f.static_len+=K*(d[D*2+1]+$)));if(et!==0){do{for(P=L-1;f.bl_count[P]===0;)P--;f.bl_count[P]--,f.bl_count[P+1]+=2,f.bl_count[L]--,et-=2}while(et>0);for(P=L;P!==0;P--)for(D=f.bl_count[P];D!==0;)R=f.heap[--E],!(R>m)&&(h[R*2+1]!==P&&(f.opt_len+=(P-h[R*2+1])*h[R*2],h[R*2+1]=P),D--)}},gen_codes=(f,k,h)=>{const m=new Array(MAX_BITS$1+1);let d=0,b,_;for(b=1;b<=MAX_BITS$1;b++)m[b]=d=d+h[b-1]<<1;for(_=0;_<=k;_++){let A=f[_*2+1];A!==0&&(f[_*2]=bi_reverse(m[A]++,A))}},tr_static_init=()=>{let f,k,h,m,d;const b=new Array(MAX_BITS$1+1);for(h=0,m=0;m<LENGTH_CODES$1-1;m++)for(base_length[m]=h,f=0;f<1<<extra_lbits[m];f++)_length_code[h++]=m;for(_length_code[h-1]=m,d=0,m=0;m<16;m++)for(base_dist[m]=d,f=0;f<1<<extra_dbits[m];f++)_dist_code[d++]=m;for(d>>=7;m<D_CODES$1;m++)for(base_dist[m]=d<<7,f=0;f<1<<extra_dbits[m]-7;f++)_dist_code[256+d++]=m;for(k=0;k<=MAX_BITS$1;k++)b[k]=0;for(f=0;f<=143;)static_ltree[f*2+1]=8,f++,b[8]++;for(;f<=255;)static_ltree[f*2+1]=9,f++,b[9]++;for(;f<=279;)static_ltree[f*2+1]=7,f++,b[7]++;for(;f<=287;)static_ltree[f*2+1]=8,f++,b[8]++;for(gen_codes(static_ltree,L_CODES$1+1,b),f=0;f<D_CODES$1;f++)static_dtree[f*2+1]=5,static_dtree[f*2]=bi_reverse(f,5);static_l_desc=new StaticTreeDesc(static_ltree,extra_lbits,LITERALS$1+1,L_CODES$1,MAX_BITS$1),static_d_desc=new StaticTreeDesc(static_dtree,extra_dbits,0,D_CODES$1,MAX_BITS$1),static_bl_desc=new StaticTreeDesc(new Array(0),extra_blbits,0,BL_CODES$1,MAX_BL_BITS)},init_block=f=>{let k;for(k=0;k<L_CODES$1;k++)f.dyn_ltree[k*2]=0;for(k=0;k<D_CODES$1;k++)f.dyn_dtree[k*2]=0;for(k=0;k<BL_CODES$1;k++)f.bl_tree[k*2]=0;f.dyn_ltree[END_BLOCK*2]=1,f.opt_len=f.static_len=0,f.last_lit=f.matches=0},bi_windup=f=>{f.bi_valid>8?put_short(f,f.bi_buf):f.bi_valid>0&&(f.pending_buf[f.pending++]=f.bi_buf),f.bi_buf=0,f.bi_valid=0},copy_block=(f,k,h,m)=>{bi_windup(f),m&&(put_short(f,h),put_short(f,~h)),f.pending_buf.set(f.window.subarray(k,k+h),f.pending),f.pending+=h},smaller=(f,k,h,m)=>{const d=k*2,b=h*2;return f[d]<f[b]||f[d]===f[b]&&m[k]<=m[h]},pqdownheap=(f,k,h)=>{const m=f.heap[h];let d=h<<1;for(;d<=f.heap_len&&(d<f.heap_len&&smaller(k,f.heap[d+1],f.heap[d],f.depth)&&d++,!smaller(k,m,f.heap[d],f.depth));)f.heap[h]=f.heap[d],h=d,d<<=1;f.heap[h]=m},compress_block=(f,k,h)=>{let m,d,b=0,_,A;if(f.last_lit!==0)do m=f.pending_buf[f.d_buf+b*2]<<8|f.pending_buf[f.d_buf+b*2+1],d=f.pending_buf[f.l_buf+b],b++,m===0?send_code(f,d,k):(_=_length_code[d],send_code(f,_+LITERALS$1+1,k),A=extra_lbits[_],A!==0&&(d-=base_length[_],send_bits(f,d,A)),m--,_=d_code(m),send_code(f,_,h),A=extra_dbits[_],A!==0&&(m-=base_dist[_],send_bits(f,m,A)));while(b<f.last_lit);send_code(f,END_BLOCK,k)},build_tree=(f,k)=>{const h=k.dyn_tree,m=k.stat_desc.static_tree,d=k.stat_desc.has_stree,b=k.stat_desc.elems;let _,A,L=-1,E;for(f.heap_len=0,f.heap_max=HEAP_SIZE$1,_=0;_<b;_++)h[_*2]!==0?(f.heap[++f.heap_len]=L=_,f.depth[_]=0):h[_*2+1]=0;for(;f.heap_len<2;)E=f.heap[++f.heap_len]=L<2?++L:0,h[E*2]=1,f.depth[E]=0,f.opt_len--,d&&(f.static_len-=m[E*2+1]);for(k.max_code=L,_=f.heap_len>>1;_>=1;_--)pqdownheap(f,h,_);E=b;do _=f.heap[1],f.heap[1]=f.heap[f.heap_len--],pqdownheap(f,h,1),A=f.heap[1],f.heap[--f.heap_max]=_,f.heap[--f.heap_max]=A,h[E*2]=h[_*2]+h[A*2],f.depth[E]=(f.depth[_]>=f.depth[A]?f.depth[_]:f.depth[A])+1,h[_*2+1]=h[A*2+1]=E,f.heap[1]=E++,pqdownheap(f,h,1);while(f.heap_len>=2);f.heap[--f.heap_max]=f.heap[1],gen_bitlen(f,k),gen_codes(h,L,f.bl_count)},scan_tree=(f,k,h)=>{let m,d=-1,b,_=k[0*2+1],A=0,L=7,E=4;for(_===0&&(L=138,E=3),k[(h+1)*2+1]=65535,m=0;m<=h;m++)b=_,_=k[(m+1)*2+1],!(++A<L&&b===_)&&(A<E?f.bl_tree[b*2]+=A:b!==0?(b!==d&&f.bl_tree[b*2]++,f.bl_tree[REP_3_6*2]++):A<=10?f.bl_tree[REPZ_3_10*2]++:f.bl_tree[REPZ_11_138*2]++,A=0,d=b,_===0?(L=138,E=3):b===_?(L=6,E=3):(L=7,E=4))},send_tree=(f,k,h)=>{let m,d=-1,b,_=k[0*2+1],A=0,L=7,E=4;for(_===0&&(L=138,E=3),m=0;m<=h;m++)if(b=_,_=k[(m+1)*2+1],!(++A<L&&b===_)){if(A<E)do send_code(f,b,f.bl_tree);while(--A!==0);else b!==0?(b!==d&&(send_code(f,b,f.bl_tree),A--),send_code(f,REP_3_6,f.bl_tree),send_bits(f,A-3,2)):A<=10?(send_code(f,REPZ_3_10,f.bl_tree),send_bits(f,A-3,3)):(send_code(f,REPZ_11_138,f.bl_tree),send_bits(f,A-11,7));A=0,d=b,_===0?(L=138,E=3):b===_?(L=6,E=3):(L=7,E=4)}},build_bl_tree=f=>{let k;for(scan_tree(f,f.dyn_ltree,f.l_desc.max_code),scan_tree(f,f.dyn_dtree,f.d_desc.max_code),build_tree(f,f.bl_desc),k=BL_CODES$1-1;k>=3&&f.bl_tree[bl_order[k]*2+1]===0;k--);return f.opt_len+=3*(k+1)+5+5+4,k},send_all_trees=(f,k,h,m)=>{let d;for(send_bits(f,k-257,5),send_bits(f,h-1,5),send_bits(f,m-4,4),d=0;d<m;d++)send_bits(f,f.bl_tree[bl_order[d]*2+1],3);send_tree(f,f.dyn_ltree,k-1),send_tree(f,f.dyn_dtree,h-1)},detect_data_type=f=>{let k=4093624447,h;for(h=0;h<=31;h++,k>>>=1)if(k&1&&f.dyn_ltree[h*2]!==0)return Z_BINARY;if(f.dyn_ltree[9*2]!==0||f.dyn_ltree[10*2]!==0||f.dyn_ltree[13*2]!==0)return Z_TEXT;for(h=32;h<LITERALS$1;h++)if(f.dyn_ltree[h*2]!==0)return Z_TEXT;return Z_BINARY};let static_init_done=!1;const _tr_init$1=f=>{static_init_done||(tr_static_init(),static_init_done=!0),f.l_desc=new TreeDesc(f.dyn_ltree,static_l_desc),f.d_desc=new TreeDesc(f.dyn_dtree,static_d_desc),f.bl_desc=new TreeDesc(f.bl_tree,static_bl_desc),f.bi_buf=0,f.bi_valid=0,init_block(f)},_tr_stored_block$1=(f,k,h,m)=>{send_bits(f,(STORED_BLOCK<<1)+(m?1:0),3),copy_block(f,k,h,!0)},_tr_align$1=f=>{send_bits(f,STATIC_TREES<<1,3),send_code(f,END_BLOCK,static_ltree),bi_flush(f)},_tr_flush_block$1=(f,k,h,m)=>{let d,b,_=0;f.level>0?(f.strm.data_type===Z_UNKNOWN$1&&(f.strm.data_type=detect_data_type(f)),build_tree(f,f.l_desc),build_tree(f,f.d_desc),_=build_bl_tree(f),d=f.opt_len+3+7>>>3,b=f.static_len+3+7>>>3,b<=d&&(d=b)):d=b=h+5,h+4<=d&&k!==-1?_tr_stored_block$1(f,k,h,m):f.strategy===Z_FIXED$1||b===d?(send_bits(f,(STATIC_TREES<<1)+(m?1:0),3),compress_block(f,static_ltree,static_dtree)):(send_bits(f,(DYN_TREES<<1)+(m?1:0),3),send_all_trees(f,f.l_desc.max_code+1,f.d_desc.max_code+1,_+1),compress_block(f,f.dyn_ltree,f.dyn_dtree)),init_block(f),m&&bi_windup(f)},_tr_tally$1=(f,k,h)=>(f.pending_buf[f.d_buf+f.last_lit*2]=k>>>8&255,f.pending_buf[f.d_buf+f.last_lit*2+1]=k&255,f.pending_buf[f.l_buf+f.last_lit]=h&255,f.last_lit++,k===0?f.dyn_ltree[h*2]++:(f.matches++,k--,f.dyn_ltree[(_length_code[h]+LITERALS$1+1)*2]++,f.dyn_dtree[d_code(k)*2]++),f.last_lit===f.lit_bufsize-1);var _tr_init_1=_tr_init$1,_tr_stored_block_1=_tr_stored_block$1,_tr_flush_block_1=_tr_flush_block$1,_tr_tally_1=_tr_tally$1,_tr_align_1=_tr_align$1,trees={_tr_init:_tr_init_1,_tr_stored_block:_tr_stored_block_1,_tr_flush_block:_tr_flush_block_1,_tr_tally:_tr_tally_1,_tr_align:_tr_align_1};const adler32=(f,k,h,m)=>{let d=f&65535|0,b=f>>>16&65535|0,_=0;for(;h!==0;){_=h>2e3?2e3:h,h-=_;do d=d+k[m++]|0,b=b+d|0;while(--_);d%=65521,b%=65521}return d|b<<16|0};var adler32_1=adler32;const makeTable=()=>{let f,k=[];for(var h=0;h<256;h++){f=h;for(var m=0;m<8;m++)f=f&1?3988292384^f>>>1:f>>>1;k[h]=f}return k},crcTable=new Uint32Array(makeTable()),crc32=(f,k,h,m)=>{const d=crcTable,b=m+h;f^=-1;for(let _=m;_<b;_++)f=f>>>8^d[(f^k[_])&255];return f^-1};var crc32_1=crc32,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$2,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(f,k)=>(f.msg=messages[k],k),rank=f=>(f<<1)-(f>4?9:0),zero=f=>{let k=f.length;for(;--k>=0;)f[k]=0};let HASH_ZLIB=(f,k,h)=>(k<<f.hash_shift^h)&f.hash_mask,HASH=HASH_ZLIB;const flush_pending=f=>{const k=f.state;let h=k.pending;h>f.avail_out&&(h=f.avail_out),h!==0&&(f.output.set(k.pending_buf.subarray(k.pending_out,k.pending_out+h),f.next_out),f.next_out+=h,k.pending_out+=h,f.total_out+=h,f.avail_out-=h,k.pending-=h,k.pending===0&&(k.pending_out=0))},flush_block_only=(f,k)=>{_tr_flush_block(f,f.block_start>=0?f.block_start:-1,f.strstart-f.block_start,k),f.block_start=f.strstart,flush_pending(f.strm)},put_byte=(f,k)=>{f.pending_buf[f.pending++]=k},putShortMSB=(f,k)=>{f.pending_buf[f.pending++]=k>>>8&255,f.pending_buf[f.pending++]=k&255},read_buf=(f,k,h,m)=>{let d=f.avail_in;return d>m&&(d=m),d===0?0:(f.avail_in-=d,k.set(f.input.subarray(f.next_in,f.next_in+d),h),f.state.wrap===1?f.adler=adler32_1(f.adler,k,d,h):f.state.wrap===2&&(f.adler=crc32_1(f.adler,k,d,h)),f.next_in+=d,f.total_in+=d,d)},longest_match=(f,k)=>{let h=f.max_chain_length,m=f.strstart,d,b,_=f.prev_length,A=f.nice_match;const L=f.strstart>f.w_size-MIN_LOOKAHEAD?f.strstart-(f.w_size-MIN_LOOKAHEAD):0,E=f.window,D=f.w_mask,R=f.prev,P=f.strstart+MAX_MATCH;let $=E[m+_-1],K=E[m+_];f.prev_length>=f.good_match&&(h>>=2),A>f.lookahead&&(A=f.lookahead);do if(d=k,!(E[d+_]!==K||E[d+_-1]!==$||E[d]!==E[m]||E[++d]!==E[m+1])){m+=2,d++;do;while(E[++m]===E[++d]&&E[++m]===E[++d]&&E[++m]===E[++d]&&E[++m]===E[++d]&&E[++m]===E[++d]&&E[++m]===E[++d]&&E[++m]===E[++d]&&E[++m]===E[++d]&&m<P);if(b=MAX_MATCH-(P-m),m=P-MAX_MATCH,b>_){if(f.match_start=k,_=b,b>=A)break;$=E[m+_-1],K=E[m+_]}}while((k=R[k&D])>L&&--h!==0);return _<=f.lookahead?_:f.lookahead},fill_window=f=>{const k=f.w_size;let h,m,d,b,_;do{if(b=f.window_size-f.lookahead-f.strstart,f.strstart>=k+(k-MIN_LOOKAHEAD)){f.window.set(f.window.subarray(k,k+k),0),f.match_start-=k,f.strstart-=k,f.block_start-=k,m=f.hash_size,h=m;do d=f.head[--h],f.head[h]=d>=k?d-k:0;while(--m);m=k,h=m;do d=f.prev[--h],f.prev[h]=d>=k?d-k:0;while(--m);b+=k}if(f.strm.avail_in===0)break;if(m=read_buf(f.strm,f.window,f.strstart+f.lookahead,b),f.lookahead+=m,f.lookahead+f.insert>=MIN_MATCH)for(_=f.strstart-f.insert,f.ins_h=f.window[_],f.ins_h=HASH(f,f.ins_h,f.window[_+1]);f.insert&&(f.ins_h=HASH(f,f.ins_h,f.window[_+MIN_MATCH-1]),f.prev[_&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=_,_++,f.insert--,!(f.lookahead+f.insert<MIN_MATCH)););}while(f.lookahead<MIN_LOOKAHEAD&&f.strm.avail_in!==0)},deflate_stored=(f,k)=>{let h=65535;for(h>f.pending_buf_size-5&&(h=f.pending_buf_size-5);;){if(f.lookahead<=1){if(fill_window(f),f.lookahead===0&&k===Z_NO_FLUSH$2)return BS_NEED_MORE;if(f.lookahead===0)break}f.strstart+=f.lookahead,f.lookahead=0;const m=f.block_start+h;if((f.strstart===0||f.strstart>=m)&&(f.lookahead=f.strstart-m,f.strstart=m,flush_block_only(f,!1),f.strm.avail_out===0)||f.strstart-f.block_start>=f.w_size-MIN_LOOKAHEAD&&(flush_block_only(f,!1),f.strm.avail_out===0))return BS_NEED_MORE}return f.insert=0,k===Z_FINISH$3?(flush_block_only(f,!0),f.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):(f.strstart>f.block_start&&(flush_block_only(f,!1),f.strm.avail_out===0),BS_NEED_MORE)},deflate_fast=(f,k)=>{let h,m;for(;;){if(f.lookahead<MIN_LOOKAHEAD){if(fill_window(f),f.lookahead<MIN_LOOKAHEAD&&k===Z_NO_FLUSH$2)return BS_NEED_MORE;if(f.lookahead===0)break}if(h=0,f.lookahead>=MIN_MATCH&&(f.ins_h=HASH(f,f.ins_h,f.window[f.strstart+MIN_MATCH-1]),h=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),h!==0&&f.strstart-h<=f.w_size-MIN_LOOKAHEAD&&(f.match_length=longest_match(f,h)),f.match_length>=MIN_MATCH)if(m=_tr_tally(f,f.strstart-f.match_start,f.match_length-MIN_MATCH),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=MIN_MATCH){f.match_length--;do f.strstart++,f.ins_h=HASH(f,f.ins_h,f.window[f.strstart+MIN_MATCH-1]),h=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart;while(--f.match_length!==0);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=HASH(f,f.ins_h,f.window[f.strstart+1]);else m=_tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(m&&(flush_block_only(f,!1),f.strm.avail_out===0))return BS_NEED_MORE}return f.insert=f.strstart<MIN_MATCH-1?f.strstart:MIN_MATCH-1,k===Z_FINISH$3?(flush_block_only(f,!0),f.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):f.last_lit&&(flush_block_only(f,!1),f.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_slow=(f,k)=>{let h,m,d;for(;;){if(f.lookahead<MIN_LOOKAHEAD){if(fill_window(f),f.lookahead<MIN_LOOKAHEAD&&k===Z_NO_FLUSH$2)return BS_NEED_MORE;if(f.lookahead===0)break}if(h=0,f.lookahead>=MIN_MATCH&&(f.ins_h=HASH(f,f.ins_h,f.window[f.strstart+MIN_MATCH-1]),h=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),f.prev_length=f.match_length,f.prev_match=f.match_start,f.match_length=MIN_MATCH-1,h!==0&&f.prev_length<f.max_lazy_match&&f.strstart-h<=f.w_size-MIN_LOOKAHEAD&&(f.match_length=longest_match(f,h),f.match_length<=5&&(f.strategy===Z_FILTERED||f.match_length===MIN_MATCH&&f.strstart-f.match_start>4096)&&(f.match_length=MIN_MATCH-1)),f.prev_length>=MIN_MATCH&&f.match_length<=f.prev_length){d=f.strstart+f.lookahead-MIN_MATCH,m=_tr_tally(f,f.strstart-1-f.prev_match,f.prev_length-MIN_MATCH),f.lookahead-=f.prev_length-1,f.prev_length-=2;do++f.strstart<=d&&(f.ins_h=HASH(f,f.ins_h,f.window[f.strstart+MIN_MATCH-1]),h=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart);while(--f.prev_length!==0);if(f.match_available=0,f.match_length=MIN_MATCH-1,f.strstart++,m&&(flush_block_only(f,!1),f.strm.avail_out===0))return BS_NEED_MORE}else if(f.match_available){if(m=_tr_tally(f,0,f.window[f.strstart-1]),m&&flush_block_only(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return BS_NEED_MORE}else f.match_available=1,f.strstart++,f.lookahead--}return f.match_available&&(m=_tr_tally(f,0,f.window[f.strstart-1]),f.match_available=0),f.insert=f.strstart<MIN_MATCH-1?f.strstart:MIN_MATCH-1,k===Z_FINISH$3?(flush_block_only(f,!0),f.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):f.last_lit&&(flush_block_only(f,!1),f.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_rle=(f,k)=>{let h,m,d,b;const _=f.window;for(;;){if(f.lookahead<=MAX_MATCH){if(fill_window(f),f.lookahead<=MAX_MATCH&&k===Z_NO_FLUSH$2)return BS_NEED_MORE;if(f.lookahead===0)break}if(f.match_length=0,f.lookahead>=MIN_MATCH&&f.strstart>0&&(d=f.strstart-1,m=_[d],m===_[++d]&&m===_[++d]&&m===_[++d])){b=f.strstart+MAX_MATCH;do;while(m===_[++d]&&m===_[++d]&&m===_[++d]&&m===_[++d]&&m===_[++d]&&m===_[++d]&&m===_[++d]&&m===_[++d]&&d<b);f.match_length=MAX_MATCH-(b-d),f.match_length>f.lookahead&&(f.match_length=f.lookahead)}if(f.match_length>=MIN_MATCH?(h=_tr_tally(f,1,f.match_length-MIN_MATCH),f.lookahead-=f.match_length,f.strstart+=f.match_length,f.match_length=0):(h=_tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++),h&&(flush_block_only(f,!1),f.strm.avail_out===0))return BS_NEED_MORE}return f.insert=0,k===Z_FINISH$3?(flush_block_only(f,!0),f.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):f.last_lit&&(flush_block_only(f,!1),f.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(f,k)=>{let h;for(;;){if(f.lookahead===0&&(fill_window(f),f.lookahead===0)){if(k===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(f.match_length=0,h=_tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++,h&&(flush_block_only(f,!1),f.strm.avail_out===0))return BS_NEED_MORE}return f.insert=0,k===Z_FINISH$3?(flush_block_only(f,!0),f.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):f.last_lit&&(flush_block_only(f,!1),f.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(f,k,h,m,d){this.good_length=f,this.max_lazy=k,this.nice_length=h,this.max_chain=m,this.func=d}const configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],lm_init=f=>{f.window_size=2*f.w_size,zero(f.head),f.max_lazy_match=configuration_table[f.level].max_lazy,f.good_match=configuration_table[f.level].good_length,f.nice_match=configuration_table[f.level].nice_length,f.max_chain_length=configuration_table[f.level].max_chain,f.strstart=0,f.block_start=0,f.lookahead=0,f.insert=0,f.match_length=f.prev_length=MIN_MATCH-1,f.match_available=0,f.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateResetKeep=f=>{if(!f||!f.state)return err(f,Z_STREAM_ERROR$2);f.total_in=f.total_out=0,f.data_type=Z_UNKNOWN;const k=f.state;return k.pending=0,k.pending_out=0,k.wrap<0&&(k.wrap=-k.wrap),k.status=k.wrap?INIT_STATE:BUSY_STATE,f.adler=k.wrap===2?0:1,k.last_flush=Z_NO_FLUSH$2,_tr_init(k),Z_OK$3},deflateReset=f=>{const k=deflateResetKeep(f);return k===Z_OK$3&&lm_init(f.state),k},deflateSetHeader=(f,k)=>!f||!f.state||f.state.wrap!==2?Z_STREAM_ERROR$2:(f.state.gzhead=k,Z_OK$3),deflateInit2=(f,k,h,m,d,b)=>{if(!f)return Z_STREAM_ERROR$2;let _=1;if(k===Z_DEFAULT_COMPRESSION$1&&(k=6),m<0?(_=0,m=-m):m>15&&(_=2,m-=16),d<1||d>MAX_MEM_LEVEL||h!==Z_DEFLATED$2||m<8||m>15||k<0||k>9||b<0||b>Z_FIXED)return err(f,Z_STREAM_ERROR$2);m===8&&(m=9);const A=new DeflateState;return f.state=A,A.strm=f,A.wrap=_,A.gzhead=null,A.w_bits=m,A.w_size=1<<A.w_bits,A.w_mask=A.w_size-1,A.hash_bits=d+7,A.hash_size=1<<A.hash_bits,A.hash_mask=A.hash_size-1,A.hash_shift=~~((A.hash_bits+MIN_MATCH-1)/MIN_MATCH),A.window=new Uint8Array(A.w_size*2),A.head=new Uint16Array(A.hash_size),A.prev=new Uint16Array(A.w_size),A.lit_bufsize=1<<d+6,A.pending_buf_size=A.lit_bufsize*4,A.pending_buf=new Uint8Array(A.pending_buf_size),A.d_buf=1*A.lit_bufsize,A.l_buf=(1+2)*A.lit_bufsize,A.level=k,A.strategy=b,A.method=h,deflateReset(f)},deflateInit=(f,k)=>deflateInit2(f,k,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(f,k)=>{let h,m;if(!f||!f.state||k>Z_BLOCK$1||k<0)return f?err(f,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const d=f.state;if(!f.output||!f.input&&f.avail_in!==0||d.status===FINISH_STATE&&k!==Z_FINISH$3)return err(f,f.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);d.strm=f;const b=d.last_flush;if(d.last_flush=k,d.status===INIT_STATE)if(d.wrap===2)f.adler=0,put_byte(d,31),put_byte(d,139),put_byte(d,8),d.gzhead?(put_byte(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0)),put_byte(d,d.gzhead.time&255),put_byte(d,d.gzhead.time>>8&255),put_byte(d,d.gzhead.time>>16&255),put_byte(d,d.gzhead.time>>24&255),put_byte(d,d.level===9?2:d.strategy>=Z_HUFFMAN_ONLY||d.level<2?4:0),put_byte(d,d.gzhead.os&255),d.gzhead.extra&&d.gzhead.extra.length&&(put_byte(d,d.gzhead.extra.length&255),put_byte(d,d.gzhead.extra.length>>8&255)),d.gzhead.hcrc&&(f.adler=crc32_1(f.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=EXTRA_STATE):(put_byte(d,0),put_byte(d,0),put_byte(d,0),put_byte(d,0),put_byte(d,0),put_byte(d,d.level===9?2:d.strategy>=Z_HUFFMAN_ONLY||d.level<2?4:0),put_byte(d,OS_CODE),d.status=BUSY_STATE);else{let _=Z_DEFLATED$2+(d.w_bits-8<<4)<<8,A=-1;d.strategy>=Z_HUFFMAN_ONLY||d.level<2?A=0:d.level<6?A=1:d.level===6?A=2:A=3,_|=A<<6,d.strstart!==0&&(_|=PRESET_DICT),_+=31-_%31,d.status=BUSY_STATE,putShortMSB(d,_),d.strstart!==0&&(putShortMSB(d,f.adler>>>16),putShortMSB(d,f.adler&65535)),f.adler=1}if(d.status===EXTRA_STATE)if(d.gzhead.extra){for(h=d.pending;d.gzindex<(d.gzhead.extra.length&65535)&&!(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>h&&(f.adler=crc32_1(f.adler,d.pending_buf,d.pending-h,h)),flush_pending(f),h=d.pending,d.pending===d.pending_buf_size));)put_byte(d,d.gzhead.extra[d.gzindex]&255),d.gzindex++;d.gzhead.hcrc&&d.pending>h&&(f.adler=crc32_1(f.adler,d.pending_buf,d.pending-h,h)),d.gzindex===d.gzhead.extra.length&&(d.gzindex=0,d.status=NAME_STATE)}else d.status=NAME_STATE;if(d.status===NAME_STATE)if(d.gzhead.name){h=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>h&&(f.adler=crc32_1(f.adler,d.pending_buf,d.pending-h,h)),flush_pending(f),h=d.pending,d.pending===d.pending_buf_size)){m=1;break}d.gzindex<d.gzhead.name.length?m=d.gzhead.name.charCodeAt(d.gzindex++)&255:m=0,put_byte(d,m)}while(m!==0);d.gzhead.hcrc&&d.pending>h&&(f.adler=crc32_1(f.adler,d.pending_buf,d.pending-h,h)),m===0&&(d.gzindex=0,d.status=COMMENT_STATE)}else d.status=COMMENT_STATE;if(d.status===COMMENT_STATE)if(d.gzhead.comment){h=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>h&&(f.adler=crc32_1(f.adler,d.pending_buf,d.pending-h,h)),flush_pending(f),h=d.pending,d.pending===d.pending_buf_size)){m=1;break}d.gzindex<d.gzhead.comment.length?m=d.gzhead.comment.charCodeAt(d.gzindex++)&255:m=0,put_byte(d,m)}while(m!==0);d.gzhead.hcrc&&d.pending>h&&(f.adler=crc32_1(f.adler,d.pending_buf,d.pending-h,h)),m===0&&(d.status=HCRC_STATE)}else d.status=HCRC_STATE;if(d.status===HCRC_STATE&&(d.gzhead.hcrc?(d.pending+2>d.pending_buf_size&&flush_pending(f),d.pending+2<=d.pending_buf_size&&(put_byte(d,f.adler&255),put_byte(d,f.adler>>8&255),f.adler=0,d.status=BUSY_STATE)):d.status=BUSY_STATE),d.pending!==0){if(flush_pending(f),f.avail_out===0)return d.last_flush=-1,Z_OK$3}else if(f.avail_in===0&&rank(k)<=rank(b)&&k!==Z_FINISH$3)return err(f,Z_BUF_ERROR$1);if(d.status===FINISH_STATE&&f.avail_in!==0)return err(f,Z_BUF_ERROR$1);if(f.avail_in!==0||d.lookahead!==0||k!==Z_NO_FLUSH$2&&d.status!==FINISH_STATE){let _=d.strategy===Z_HUFFMAN_ONLY?deflate_huff(d,k):d.strategy===Z_RLE?deflate_rle(d,k):configuration_table[d.level].func(d,k);if((_===BS_FINISH_STARTED||_===BS_FINISH_DONE)&&(d.status=FINISH_STATE),_===BS_NEED_MORE||_===BS_FINISH_STARTED)return f.avail_out===0&&(d.last_flush=-1),Z_OK$3;if(_===BS_BLOCK_DONE&&(k===Z_PARTIAL_FLUSH?_tr_align(d):k!==Z_BLOCK$1&&(_tr_stored_block(d,0,0,!1),k===Z_FULL_FLUSH$1&&(zero(d.head),d.lookahead===0&&(d.strstart=0,d.block_start=0,d.insert=0))),flush_pending(f),f.avail_out===0))return d.last_flush=-1,Z_OK$3}return k!==Z_FINISH$3?Z_OK$3:d.wrap<=0?Z_STREAM_END$3:(d.wrap===2?(put_byte(d,f.adler&255),put_byte(d,f.adler>>8&255),put_byte(d,f.adler>>16&255),put_byte(d,f.adler>>24&255),put_byte(d,f.total_in&255),put_byte(d,f.total_in>>8&255),put_byte(d,f.total_in>>16&255),put_byte(d,f.total_in>>24&255)):(putShortMSB(d,f.adler>>>16),putShortMSB(d,f.adler&65535)),flush_pending(f),d.wrap>0&&(d.wrap=-d.wrap),d.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=f=>{if(!f||!f.state)return Z_STREAM_ERROR$2;const k=f.state.status;return k!==INIT_STATE&&k!==EXTRA_STATE&&k!==NAME_STATE&&k!==COMMENT_STATE&&k!==HCRC_STATE&&k!==BUSY_STATE&&k!==FINISH_STATE?err(f,Z_STREAM_ERROR$2):(f.state=null,k===BUSY_STATE?err(f,Z_DATA_ERROR$2):Z_OK$3)},deflateSetDictionary=(f,k)=>{let h=k.length;if(!f||!f.state)return Z_STREAM_ERROR$2;const m=f.state,d=m.wrap;if(d===2||d===1&&m.status!==INIT_STATE||m.lookahead)return Z_STREAM_ERROR$2;if(d===1&&(f.adler=adler32_1(f.adler,k,h,0)),m.wrap=0,h>=m.w_size){d===0&&(zero(m.head),m.strstart=0,m.block_start=0,m.insert=0);let L=new Uint8Array(m.w_size);L.set(k.subarray(h-m.w_size,h),0),k=L,h=m.w_size}const b=f.avail_in,_=f.next_in,A=f.input;for(f.avail_in=h,f.next_in=0,f.input=k,fill_window(m);m.lookahead>=MIN_MATCH;){let L=m.strstart,E=m.lookahead-(MIN_MATCH-1);do m.ins_h=HASH(m,m.ins_h,m.window[L+MIN_MATCH-1]),m.prev[L&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=L,L++;while(--E);m.strstart=L,m.lookahead=MIN_MATCH-1,fill_window(m)}return m.strstart+=m.lookahead,m.block_start=m.strstart,m.insert=m.lookahead,m.lookahead=0,m.match_length=m.prev_length=MIN_MATCH-1,m.match_available=0,f.next_in=_,f.input=A,f.avail_in=b,m.wrap=d,Z_OK$3};var deflateInit_1=deflateInit,deflateInit2_1=deflateInit2,deflateReset_1=deflateReset,deflateResetKeep_1=deflateResetKeep,deflateSetHeader_1=deflateSetHeader,deflate_2$1=deflate$2,deflateEnd_1=deflateEnd,deflateSetDictionary_1=deflateSetDictionary,deflateInfo="pako deflate (from Nodeca project)",deflate_1$2={deflateInit:deflateInit_1,deflateInit2:deflateInit2_1,deflateReset:deflateReset_1,deflateResetKeep:deflateResetKeep_1,deflateSetHeader:deflateSetHeader_1,deflate:deflate_2$1,deflateEnd:deflateEnd_1,deflateSetDictionary:deflateSetDictionary_1,deflateInfo};const _has=(f,k)=>Object.prototype.hasOwnProperty.call(f,k);var assign=function(f){const k=Array.prototype.slice.call(arguments,1);for(;k.length;){const h=k.shift();if(!!h){if(typeof h!="object")throw new TypeError(h+"must be non-object");for(const m in h)_has(h,m)&&(f[m]=h[m])}}return f},flattenChunks=f=>{let k=0;for(let m=0,d=f.length;m<d;m++)k+=f[m].length;const h=new Uint8Array(k);for(let m=0,d=0,b=f.length;m<b;m++){let _=f[m];h.set(_,d),d+=_.length}return h},common={assign,flattenChunks};let STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(f){STR_APPLY_UIA_OK=!1}const _utf8len=new Uint8Array(256);for(let f=0;f<256;f++)_utf8len[f]=f>=252?6:f>=248?5:f>=240?4:f>=224?3:f>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=f=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(f);let k,h,m,d,b,_=f.length,A=0;for(d=0;d<_;d++)h=f.charCodeAt(d),(h&64512)===55296&&d+1<_&&(m=f.charCodeAt(d+1),(m&64512)===56320&&(h=65536+(h-55296<<10)+(m-56320),d++)),A+=h<128?1:h<2048?2:h<65536?3:4;for(k=new Uint8Array(A),b=0,d=0;b<A;d++)h=f.charCodeAt(d),(h&64512)===55296&&d+1<_&&(m=f.charCodeAt(d+1),(m&64512)===56320&&(h=65536+(h-55296<<10)+(m-56320),d++)),h<128?k[b++]=h:h<2048?(k[b++]=192|h>>>6,k[b++]=128|h&63):h<65536?(k[b++]=224|h>>>12,k[b++]=128|h>>>6&63,k[b++]=128|h&63):(k[b++]=240|h>>>18,k[b++]=128|h>>>12&63,k[b++]=128|h>>>6&63,k[b++]=128|h&63);return k};const buf2binstring=(f,k)=>{if(k<65534&&f.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,f.length===k?f:f.subarray(0,k));let h="";for(let m=0;m<k;m++)h+=String.fromCharCode(f[m]);return h};var buf2string=(f,k)=>{const h=k||f.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(f.subarray(0,k));let m,d;const b=new Array(h*2);for(d=0,m=0;m<h;){let _=f[m++];if(_<128){b[d++]=_;continue}let A=_utf8len[_];if(A>4){b[d++]=65533,m+=A-1;continue}for(_&=A===2?31:A===3?15:7;A>1&&m<h;)_=_<<6|f[m++]&63,A--;if(A>1){b[d++]=65533;continue}_<65536?b[d++]=_:(_-=65536,b[d++]=55296|_>>10&1023,b[d++]=56320|_&1023)}return buf2binstring(b,d)},utf8border=(f,k)=>{k=k||f.length,k>f.length&&(k=f.length);let h=k-1;for(;h>=0&&(f[h]&192)===128;)h--;return h<0||h===0?k:h+_utf8len[f[h]]>k?h:k},strings={string2buf,buf2string,utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream;const toString$1=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$2;function Deflate$1(f){this.options=common.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},f||{});let k=this.options;k.raw&&k.windowBits>0?k.windowBits=-k.windowBits:k.gzip&&k.windowBits>0&&k.windowBits<16&&(k.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let h=deflate_1$2.deflateInit2(this.strm,k.level,k.method,k.windowBits,k.memLevel,k.strategy);if(h!==Z_OK$2)throw new Error(messages[h]);if(k.header&&deflate_1$2.deflateSetHeader(this.strm,k.header),k.dictionary){let m;if(typeof k.dictionary=="string"?m=strings.string2buf(k.dictionary):toString$1.call(k.dictionary)==="[object ArrayBuffer]"?m=new Uint8Array(k.dictionary):m=k.dictionary,h=deflate_1$2.deflateSetDictionary(this.strm,m),h!==Z_OK$2)throw new Error(messages[h]);this._dict_set=!0}}Deflate$1.prototype.push=function(f,k){const h=this.strm,m=this.options.chunkSize;let d,b;if(this.ended)return!1;for(k===~~k?b=k:b=k===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof f=="string"?h.input=strings.string2buf(f):toString$1.call(f)==="[object ArrayBuffer]"?h.input=new Uint8Array(f):h.input=f,h.next_in=0,h.avail_in=h.input.length;;){if(h.avail_out===0&&(h.output=new Uint8Array(m),h.next_out=0,h.avail_out=m),(b===Z_SYNC_FLUSH||b===Z_FULL_FLUSH)&&h.avail_out<=6){this.onData(h.output.subarray(0,h.next_out)),h.avail_out=0;continue}if(d=deflate_1$2.deflate(h,b),d===Z_STREAM_END$2)return h.next_out>0&&this.onData(h.output.subarray(0,h.next_out)),d=deflate_1$2.deflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===Z_OK$2;if(h.avail_out===0){this.onData(h.output);continue}if(b>0&&h.next_out>0){this.onData(h.output.subarray(0,h.next_out)),h.avail_out=0;continue}if(h.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(f){this.chunks.push(f)};Deflate$1.prototype.onEnd=function(f){f===Z_OK$2&&(this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg};function deflate$1(f,k){const h=new Deflate$1(k);if(h.push(f,!0),h.err)throw h.msg||messages[h.err];return h.result}function deflateRaw$1(f,k){return k=k||{},k.raw=!0,deflate$1(f,k)}function gzip$1(f,k){return k=k||{},k.gzip=!0,deflate$1(f,k)}var Deflate_1$1=Deflate$1,deflate_2=deflate$1,deflateRaw_1$1=deflateRaw$1,gzip_1$1=gzip$1,constants$1=constants$2,deflate_1$1={Deflate:Deflate_1$1,deflate:deflate_2,deflateRaw:deflateRaw_1$1,gzip:gzip_1$1,constants:constants$1};const BAD$1=30,TYPE$1=12;var inffast=function f(k,h){let m,d,b,_,A,L,E,D,R,P,$,K,et,ht,X,_t,rt,at,bt,Ft,Tt,yt,Nt,xt;const pt=k.state;m=k.next_in,Nt=k.input,d=m+(k.avail_in-5),b=k.next_out,xt=k.output,_=b-(h-k.avail_out),A=b+(k.avail_out-257),L=pt.dmax,E=pt.wsize,D=pt.whave,R=pt.wnext,P=pt.window,$=pt.hold,K=pt.bits,et=pt.lencode,ht=pt.distcode,X=(1<<pt.lenbits)-1,_t=(1<<pt.distbits)-1;t:do{K<15&&($+=Nt[m++]<<K,K+=8,$+=Nt[m++]<<K,K+=8),rt=et[$&X];e:for(;;){if(at=rt>>>24,$>>>=at,K-=at,at=rt>>>16&255,at===0)xt[b++]=rt&65535;else if(at&16){bt=rt&65535,at&=15,at&&(K<at&&($+=Nt[m++]<<K,K+=8),bt+=$&(1<<at)-1,$>>>=at,K-=at),K<15&&($+=Nt[m++]<<K,K+=8,$+=Nt[m++]<<K,K+=8),rt=ht[$&_t];n:for(;;){if(at=rt>>>24,$>>>=at,K-=at,at=rt>>>16&255,at&16){if(Ft=rt&65535,at&=15,K<at&&($+=Nt[m++]<<K,K+=8,K<at&&($+=Nt[m++]<<K,K+=8)),Ft+=$&(1<<at)-1,Ft>L){k.msg="invalid distance too far back",pt.mode=BAD$1;break t}if($>>>=at,K-=at,at=b-_,Ft>at){if(at=Ft-at,at>D&&pt.sane){k.msg="invalid distance too far back",pt.mode=BAD$1;break t}if(Tt=0,yt=P,R===0){if(Tt+=E-at,at<bt){bt-=at;do xt[b++]=P[Tt++];while(--at);Tt=b-Ft,yt=xt}}else if(R<at){if(Tt+=E+R-at,at-=R,at<bt){bt-=at;do xt[b++]=P[Tt++];while(--at);if(Tt=0,R<bt){at=R,bt-=at;do xt[b++]=P[Tt++];while(--at);Tt=b-Ft,yt=xt}}}else if(Tt+=R-at,at<bt){bt-=at;do xt[b++]=P[Tt++];while(--at);Tt=b-Ft,yt=xt}for(;bt>2;)xt[b++]=yt[Tt++],xt[b++]=yt[Tt++],xt[b++]=yt[Tt++],bt-=3;bt&&(xt[b++]=yt[Tt++],bt>1&&(xt[b++]=yt[Tt++]))}else{Tt=b-Ft;do xt[b++]=xt[Tt++],xt[b++]=xt[Tt++],xt[b++]=xt[Tt++],bt-=3;while(bt>2);bt&&(xt[b++]=xt[Tt++],bt>1&&(xt[b++]=xt[Tt++]))}}else if((at&64)===0){rt=ht[(rt&65535)+($&(1<<at)-1)];continue n}else{k.msg="invalid distance code",pt.mode=BAD$1;break t}break}}else if((at&64)===0){rt=et[(rt&65535)+($&(1<<at)-1)];continue e}else if(at&32){pt.mode=TYPE$1;break t}else{k.msg="invalid literal/length code",pt.mode=BAD$1;break t}break}}while(m<d&&b<A);bt=K>>3,m-=bt,K-=bt<<3,$&=(1<<K)-1,k.next_in=m,k.next_out=b,k.avail_in=m<d?5+(d-m):5-(m-d),k.avail_out=b<A?257+(A-b):257-(b-A),pt.hold=$,pt.bits=K};const MAXBITS=15,ENOUGH_LENS$1=852,ENOUGH_DISTS$1=592,CODES$1=0,LENS$1=1,DISTS$1=2,lbase=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),lext=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),dbase=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),dext=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),inflate_table=(f,k,h,m,d,b,_,A)=>{const L=A.bits;let E=0,D=0,R=0,P=0,$=0,K=0,et=0,ht=0,X=0,_t=0,rt,at,bt,Ft,Tt,yt=null,Nt=0,xt;const pt=new Uint16Array(MAXBITS+1),tt=new Uint16Array(MAXBITS+1);let ft=null,q=0,kt,W,St;for(E=0;E<=MAXBITS;E++)pt[E]=0;for(D=0;D<m;D++)pt[k[h+D]]++;for($=L,P=MAXBITS;P>=1&&pt[P]===0;P--);if($>P&&($=P),P===0)return d[b++]=1<<24|64<<16|0,d[b++]=1<<24|64<<16|0,A.bits=1,0;for(R=1;R<P&&pt[R]===0;R++);for($<R&&($=R),ht=1,E=1;E<=MAXBITS;E++)if(ht<<=1,ht-=pt[E],ht<0)return-1;if(ht>0&&(f===CODES$1||P!==1))return-1;for(tt[1]=0,E=1;E<MAXBITS;E++)tt[E+1]=tt[E]+pt[E];for(D=0;D<m;D++)k[h+D]!==0&&(_[tt[k[h+D]]++]=D);if(f===CODES$1?(yt=ft=_,xt=19):f===LENS$1?(yt=lbase,Nt-=257,ft=lext,q-=257,xt=256):(yt=dbase,ft=dext,xt=-1),_t=0,D=0,E=R,Tt=b,K=$,et=0,bt=-1,X=1<<$,Ft=X-1,f===LENS$1&&X>ENOUGH_LENS$1||f===DISTS$1&&X>ENOUGH_DISTS$1)return 1;for(;;){kt=E-et,_[D]<xt?(W=0,St=_[D]):_[D]>xt?(W=ft[q+_[D]],St=yt[Nt+_[D]]):(W=32+64,St=0),rt=1<<E-et,at=1<<K,R=at;do at-=rt,d[Tt+(_t>>et)+at]=kt<<24|W<<16|St|0;while(at!==0);for(rt=1<<E-1;_t&rt;)rt>>=1;if(rt!==0?(_t&=rt-1,_t+=rt):_t=0,D++,--pt[E]===0){if(E===P)break;E=k[h+_[D]]}if(E>$&&(_t&Ft)!==bt){for(et===0&&(et=$),Tt+=R,K=E-et,ht=1<<K;K+et<P&&(ht-=pt[K+et],!(ht<=0));)K++,ht<<=1;if(X+=1<<K,f===LENS$1&&X>ENOUGH_LENS$1||f===DISTS$1&&X>ENOUGH_DISTS$1)return 1;bt=_t&Ft,d[bt]=$<<24|K<<16|Tt-b|0}}return _t!==0&&(d[Tt+_t]=E-et<<24|64<<16|0),A.bits=$,0};var inftrees=inflate_table;const CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$2,HEAD=1,FLAGS=2,TIME=3,OS=4,EXLEN=5,EXTRA=6,NAME=7,COMMENT=8,HCRC=9,DICTID=10,DICT=11,TYPE=12,TYPEDO=13,STORED=14,COPY_=15,COPY=16,TABLE=17,LENLENS=18,CODELENS=19,LEN_=20,LEN=21,LENEXT=22,DIST=23,DISTEXT=24,MATCH=25,LIT=26,CHECK=27,LENGTH=28,DONE=29,BAD=30,MEM=31,SYNC=32,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=f=>(f>>>24&255)+(f>>>8&65280)+((f&65280)<<8)+((f&255)<<24);function InflateState(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const inflateResetKeep=f=>{if(!f||!f.state)return Z_STREAM_ERROR$1;const k=f.state;return f.total_in=f.total_out=k.total=0,f.msg="",k.wrap&&(f.adler=k.wrap&1),k.mode=HEAD,k.last=0,k.havedict=0,k.dmax=32768,k.head=null,k.hold=0,k.bits=0,k.lencode=k.lendyn=new Int32Array(ENOUGH_LENS),k.distcode=k.distdyn=new Int32Array(ENOUGH_DISTS),k.sane=1,k.back=-1,Z_OK$1},inflateReset=f=>{if(!f||!f.state)return Z_STREAM_ERROR$1;const k=f.state;return k.wsize=0,k.whave=0,k.wnext=0,inflateResetKeep(f)},inflateReset2=(f,k)=>{let h;if(!f||!f.state)return Z_STREAM_ERROR$1;const m=f.state;return k<0?(h=0,k=-k):(h=(k>>4)+1,k<48&&(k&=15)),k&&(k<8||k>15)?Z_STREAM_ERROR$1:(m.window!==null&&m.wbits!==k&&(m.window=null),m.wrap=h,m.wbits=k,inflateReset(f))},inflateInit2=(f,k)=>{if(!f)return Z_STREAM_ERROR$1;const h=new InflateState;f.state=h,h.window=null;const m=inflateReset2(f,k);return m!==Z_OK$1&&(f.state=null),m},inflateInit=f=>inflateInit2(f,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=f=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let k=0;for(;k<144;)f.lens[k++]=8;for(;k<256;)f.lens[k++]=9;for(;k<280;)f.lens[k++]=7;for(;k<288;)f.lens[k++]=8;for(inftrees(LENS,f.lens,0,288,lenfix,0,f.work,{bits:9}),k=0;k<32;)f.lens[k++]=5;inftrees(DISTS,f.lens,0,32,distfix,0,f.work,{bits:5}),virgin=!1}f.lencode=lenfix,f.lenbits=9,f.distcode=distfix,f.distbits=5},updatewindow=(f,k,h,m)=>{let d;const b=f.state;return b.window===null&&(b.wsize=1<<b.wbits,b.wnext=0,b.whave=0,b.window=new Uint8Array(b.wsize)),m>=b.wsize?(b.window.set(k.subarray(h-b.wsize,h),0),b.wnext=0,b.whave=b.wsize):(d=b.wsize-b.wnext,d>m&&(d=m),b.window.set(k.subarray(h-m,h-m+d),b.wnext),m-=d,m?(b.window.set(k.subarray(h-m,h),0),b.wnext=m,b.whave=b.wsize):(b.wnext+=d,b.wnext===b.wsize&&(b.wnext=0),b.whave<b.wsize&&(b.whave+=d))),0},inflate$2=(f,k)=>{let h,m,d,b,_,A,L,E,D,R,P,$,K,et,ht=0,X,_t,rt,at,bt,Ft,Tt,yt;const Nt=new Uint8Array(4);let xt,pt;const tt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!f||!f.state||!f.output||!f.input&&f.avail_in!==0)return Z_STREAM_ERROR$1;h=f.state,h.mode===TYPE&&(h.mode=TYPEDO),_=f.next_out,d=f.output,L=f.avail_out,b=f.next_in,m=f.input,A=f.avail_in,E=h.hold,D=h.bits,R=A,P=L,yt=Z_OK$1;t:for(;;)switch(h.mode){case HEAD:if(h.wrap===0){h.mode=TYPEDO;break}for(;D<16;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}if(h.wrap&2&&E===35615){h.check=0,Nt[0]=E&255,Nt[1]=E>>>8&255,h.check=crc32_1(h.check,Nt,2,0),E=0,D=0,h.mode=FLAGS;break}if(h.flags=0,h.head&&(h.head.done=!1),!(h.wrap&1)||(((E&255)<<8)+(E>>8))%31){f.msg="incorrect header check",h.mode=BAD;break}if((E&15)!==Z_DEFLATED){f.msg="unknown compression method",h.mode=BAD;break}if(E>>>=4,D-=4,Tt=(E&15)+8,h.wbits===0)h.wbits=Tt;else if(Tt>h.wbits){f.msg="invalid window size",h.mode=BAD;break}h.dmax=1<<h.wbits,f.adler=h.check=1,h.mode=E&512?DICTID:TYPE,E=0,D=0;break;case FLAGS:for(;D<16;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}if(h.flags=E,(h.flags&255)!==Z_DEFLATED){f.msg="unknown compression method",h.mode=BAD;break}if(h.flags&57344){f.msg="unknown header flags set",h.mode=BAD;break}h.head&&(h.head.text=E>>8&1),h.flags&512&&(Nt[0]=E&255,Nt[1]=E>>>8&255,h.check=crc32_1(h.check,Nt,2,0)),E=0,D=0,h.mode=TIME;case TIME:for(;D<32;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}h.head&&(h.head.time=E),h.flags&512&&(Nt[0]=E&255,Nt[1]=E>>>8&255,Nt[2]=E>>>16&255,Nt[3]=E>>>24&255,h.check=crc32_1(h.check,Nt,4,0)),E=0,D=0,h.mode=OS;case OS:for(;D<16;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}h.head&&(h.head.xflags=E&255,h.head.os=E>>8),h.flags&512&&(Nt[0]=E&255,Nt[1]=E>>>8&255,h.check=crc32_1(h.check,Nt,2,0)),E=0,D=0,h.mode=EXLEN;case EXLEN:if(h.flags&1024){for(;D<16;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}h.length=E,h.head&&(h.head.extra_len=E),h.flags&512&&(Nt[0]=E&255,Nt[1]=E>>>8&255,h.check=crc32_1(h.check,Nt,2,0)),E=0,D=0}else h.head&&(h.head.extra=null);h.mode=EXTRA;case EXTRA:if(h.flags&1024&&($=h.length,$>A&&($=A),$&&(h.head&&(Tt=h.head.extra_len-h.length,h.head.extra||(h.head.extra=new Uint8Array(h.head.extra_len)),h.head.extra.set(m.subarray(b,b+$),Tt)),h.flags&512&&(h.check=crc32_1(h.check,m,$,b)),A-=$,b+=$,h.length-=$),h.length))break t;h.length=0,h.mode=NAME;case NAME:if(h.flags&2048){if(A===0)break t;$=0;do Tt=m[b+$++],h.head&&Tt&&h.length<65536&&(h.head.name+=String.fromCharCode(Tt));while(Tt&&$<A);if(h.flags&512&&(h.check=crc32_1(h.check,m,$,b)),A-=$,b+=$,Tt)break t}else h.head&&(h.head.name=null);h.length=0,h.mode=COMMENT;case COMMENT:if(h.flags&4096){if(A===0)break t;$=0;do Tt=m[b+$++],h.head&&Tt&&h.length<65536&&(h.head.comment+=String.fromCharCode(Tt));while(Tt&&$<A);if(h.flags&512&&(h.check=crc32_1(h.check,m,$,b)),A-=$,b+=$,Tt)break t}else h.head&&(h.head.comment=null);h.mode=HCRC;case HCRC:if(h.flags&512){for(;D<16;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}if(E!==(h.check&65535)){f.msg="header crc mismatch",h.mode=BAD;break}E=0,D=0}h.head&&(h.head.hcrc=h.flags>>9&1,h.head.done=!0),f.adler=h.check=0,h.mode=TYPE;break;case DICTID:for(;D<32;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}f.adler=h.check=zswap32(E),E=0,D=0,h.mode=DICT;case DICT:if(h.havedict===0)return f.next_out=_,f.avail_out=L,f.next_in=b,f.avail_in=A,h.hold=E,h.bits=D,Z_NEED_DICT$1;f.adler=h.check=1,h.mode=TYPE;case TYPE:if(k===Z_BLOCK||k===Z_TREES)break t;case TYPEDO:if(h.last){E>>>=D&7,D-=D&7,h.mode=CHECK;break}for(;D<3;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}switch(h.last=E&1,E>>>=1,D-=1,E&3){case 0:h.mode=STORED;break;case 1:if(fixedtables(h),h.mode=LEN_,k===Z_TREES){E>>>=2,D-=2;break t}break;case 2:h.mode=TABLE;break;case 3:f.msg="invalid block type",h.mode=BAD}E>>>=2,D-=2;break;case STORED:for(E>>>=D&7,D-=D&7;D<32;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}if((E&65535)!==(E>>>16^65535)){f.msg="invalid stored block lengths",h.mode=BAD;break}if(h.length=E&65535,E=0,D=0,h.mode=COPY_,k===Z_TREES)break t;case COPY_:h.mode=COPY;case COPY:if($=h.length,$){if($>A&&($=A),$>L&&($=L),$===0)break t;d.set(m.subarray(b,b+$),_),A-=$,b+=$,L-=$,_+=$,h.length-=$;break}h.mode=TYPE;break;case TABLE:for(;D<14;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}if(h.nlen=(E&31)+257,E>>>=5,D-=5,h.ndist=(E&31)+1,E>>>=5,D-=5,h.ncode=(E&15)+4,E>>>=4,D-=4,h.nlen>286||h.ndist>30){f.msg="too many length or distance symbols",h.mode=BAD;break}h.have=0,h.mode=LENLENS;case LENLENS:for(;h.have<h.ncode;){for(;D<3;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}h.lens[tt[h.have++]]=E&7,E>>>=3,D-=3}for(;h.have<19;)h.lens[tt[h.have++]]=0;if(h.lencode=h.lendyn,h.lenbits=7,xt={bits:h.lenbits},yt=inftrees(CODES,h.lens,0,19,h.lencode,0,h.work,xt),h.lenbits=xt.bits,yt){f.msg="invalid code lengths set",h.mode=BAD;break}h.have=0,h.mode=CODELENS;case CODELENS:for(;h.have<h.nlen+h.ndist;){for(;ht=h.lencode[E&(1<<h.lenbits)-1],X=ht>>>24,_t=ht>>>16&255,rt=ht&65535,!(X<=D);){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}if(rt<16)E>>>=X,D-=X,h.lens[h.have++]=rt;else{if(rt===16){for(pt=X+2;D<pt;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}if(E>>>=X,D-=X,h.have===0){f.msg="invalid bit length repeat",h.mode=BAD;break}Tt=h.lens[h.have-1],$=3+(E&3),E>>>=2,D-=2}else if(rt===17){for(pt=X+3;D<pt;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}E>>>=X,D-=X,Tt=0,$=3+(E&7),E>>>=3,D-=3}else{for(pt=X+7;D<pt;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}E>>>=X,D-=X,Tt=0,$=11+(E&127),E>>>=7,D-=7}if(h.have+$>h.nlen+h.ndist){f.msg="invalid bit length repeat",h.mode=BAD;break}for(;$--;)h.lens[h.have++]=Tt}}if(h.mode===BAD)break;if(h.lens[256]===0){f.msg="invalid code -- missing end-of-block",h.mode=BAD;break}if(h.lenbits=9,xt={bits:h.lenbits},yt=inftrees(LENS,h.lens,0,h.nlen,h.lencode,0,h.work,xt),h.lenbits=xt.bits,yt){f.msg="invalid literal/lengths set",h.mode=BAD;break}if(h.distbits=6,h.distcode=h.distdyn,xt={bits:h.distbits},yt=inftrees(DISTS,h.lens,h.nlen,h.ndist,h.distcode,0,h.work,xt),h.distbits=xt.bits,yt){f.msg="invalid distances set",h.mode=BAD;break}if(h.mode=LEN_,k===Z_TREES)break t;case LEN_:h.mode=LEN;case LEN:if(A>=6&&L>=258){f.next_out=_,f.avail_out=L,f.next_in=b,f.avail_in=A,h.hold=E,h.bits=D,inffast(f,P),_=f.next_out,d=f.output,L=f.avail_out,b=f.next_in,m=f.input,A=f.avail_in,E=h.hold,D=h.bits,h.mode===TYPE&&(h.back=-1);break}for(h.back=0;ht=h.lencode[E&(1<<h.lenbits)-1],X=ht>>>24,_t=ht>>>16&255,rt=ht&65535,!(X<=D);){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}if(_t&&(_t&240)===0){for(at=X,bt=_t,Ft=rt;ht=h.lencode[Ft+((E&(1<<at+bt)-1)>>at)],X=ht>>>24,_t=ht>>>16&255,rt=ht&65535,!(at+X<=D);){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}E>>>=at,D-=at,h.back+=at}if(E>>>=X,D-=X,h.back+=X,h.length=rt,_t===0){h.mode=LIT;break}if(_t&32){h.back=-1,h.mode=TYPE;break}if(_t&64){f.msg="invalid literal/length code",h.mode=BAD;break}h.extra=_t&15,h.mode=LENEXT;case LENEXT:if(h.extra){for(pt=h.extra;D<pt;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}h.length+=E&(1<<h.extra)-1,E>>>=h.extra,D-=h.extra,h.back+=h.extra}h.was=h.length,h.mode=DIST;case DIST:for(;ht=h.distcode[E&(1<<h.distbits)-1],X=ht>>>24,_t=ht>>>16&255,rt=ht&65535,!(X<=D);){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}if((_t&240)===0){for(at=X,bt=_t,Ft=rt;ht=h.distcode[Ft+((E&(1<<at+bt)-1)>>at)],X=ht>>>24,_t=ht>>>16&255,rt=ht&65535,!(at+X<=D);){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}E>>>=at,D-=at,h.back+=at}if(E>>>=X,D-=X,h.back+=X,_t&64){f.msg="invalid distance code",h.mode=BAD;break}h.offset=rt,h.extra=_t&15,h.mode=DISTEXT;case DISTEXT:if(h.extra){for(pt=h.extra;D<pt;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}h.offset+=E&(1<<h.extra)-1,E>>>=h.extra,D-=h.extra,h.back+=h.extra}if(h.offset>h.dmax){f.msg="invalid distance too far back",h.mode=BAD;break}h.mode=MATCH;case MATCH:if(L===0)break t;if($=P-L,h.offset>$){if($=h.offset-$,$>h.whave&&h.sane){f.msg="invalid distance too far back",h.mode=BAD;break}$>h.wnext?($-=h.wnext,K=h.wsize-$):K=h.wnext-$,$>h.length&&($=h.length),et=h.window}else et=d,K=_-h.offset,$=h.length;$>L&&($=L),L-=$,h.length-=$;do d[_++]=et[K++];while(--$);h.length===0&&(h.mode=LEN);break;case LIT:if(L===0)break t;d[_++]=h.length,L--,h.mode=LEN;break;case CHECK:if(h.wrap){for(;D<32;){if(A===0)break t;A--,E|=m[b++]<<D,D+=8}if(P-=L,f.total_out+=P,h.total+=P,P&&(f.adler=h.check=h.flags?crc32_1(h.check,d,P,_-P):adler32_1(h.check,d,P,_-P)),P=L,(h.flags?E:zswap32(E))!==h.check){f.msg="incorrect data check",h.mode=BAD;break}E=0,D=0}h.mode=LENGTH;case LENGTH:if(h.wrap&&h.flags){for(;D<32;){if(A===0)break t;A--,E+=m[b++]<<D,D+=8}if(E!==(h.total&4294967295)){f.msg="incorrect length check",h.mode=BAD;break}E=0,D=0}h.mode=DONE;case DONE:yt=Z_STREAM_END$1;break t;case BAD:yt=Z_DATA_ERROR$1;break t;case MEM:return Z_MEM_ERROR$1;case SYNC:default:return Z_STREAM_ERROR$1}return f.next_out=_,f.avail_out=L,f.next_in=b,f.avail_in=A,h.hold=E,h.bits=D,(h.wsize||P!==f.avail_out&&h.mode<BAD&&(h.mode<CHECK||k!==Z_FINISH$1))&&updatewindow(f,f.output,f.next_out,P-f.avail_out),R-=f.avail_in,P-=f.avail_out,f.total_in+=R,f.total_out+=P,h.total+=P,h.wrap&&P&&(f.adler=h.check=h.flags?crc32_1(h.check,d,P,f.next_out-P):adler32_1(h.check,d,P,f.next_out-P)),f.data_type=h.bits+(h.last?64:0)+(h.mode===TYPE?128:0)+(h.mode===LEN_||h.mode===COPY_?256:0),(R===0&&P===0||k===Z_FINISH$1)&&yt===Z_OK$1&&(yt=Z_BUF_ERROR),yt},inflateEnd=f=>{if(!f||!f.state)return Z_STREAM_ERROR$1;let k=f.state;return k.window&&(k.window=null),f.state=null,Z_OK$1},inflateGetHeader=(f,k)=>{if(!f||!f.state)return Z_STREAM_ERROR$1;const h=f.state;return(h.wrap&2)===0?Z_STREAM_ERROR$1:(h.head=k,k.done=!1,Z_OK$1)},inflateSetDictionary=(f,k)=>{const h=k.length;let m,d,b;return!f||!f.state||(m=f.state,m.wrap!==0&&m.mode!==DICT)?Z_STREAM_ERROR$1:m.mode===DICT&&(d=1,d=adler32_1(d,k,h,0),d!==m.check)?Z_DATA_ERROR$1:(b=updatewindow(f,k,h,h),b?(m.mode=MEM,Z_MEM_ERROR$1):(m.havedict=1,Z_OK$1))};var inflateReset_1=inflateReset,inflateReset2_1=inflateReset2,inflateResetKeep_1=inflateResetKeep,inflateInit_1=inflateInit,inflateInit2_1=inflateInit2,inflate_2$1=inflate$2,inflateEnd_1=inflateEnd,inflateGetHeader_1=inflateGetHeader,inflateSetDictionary_1=inflateSetDictionary,inflateInfo="pako inflate (from Nodeca project)",inflate_1$2={inflateReset:inflateReset_1,inflateReset2:inflateReset2_1,inflateResetKeep:inflateResetKeep_1,inflateInit:inflateInit_1,inflateInit2:inflateInit2_1,inflate:inflate_2$1,inflateEnd:inflateEnd_1,inflateGetHeader:inflateGetHeader_1,inflateSetDictionary:inflateSetDictionary_1,inflateInfo};function GZheader(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader;const toString=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$2;function Inflate$1(f){this.options=common.assign({chunkSize:1024*64,windowBits:15,to:""},f||{});const k=this.options;k.raw&&k.windowBits>=0&&k.windowBits<16&&(k.windowBits=-k.windowBits,k.windowBits===0&&(k.windowBits=-15)),k.windowBits>=0&&k.windowBits<16&&!(f&&f.windowBits)&&(k.windowBits+=32),k.windowBits>15&&k.windowBits<48&&(k.windowBits&15)===0&&(k.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let h=inflate_1$2.inflateInit2(this.strm,k.windowBits);if(h!==Z_OK)throw new Error(messages[h]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),k.dictionary&&(typeof k.dictionary=="string"?k.dictionary=strings.string2buf(k.dictionary):toString.call(k.dictionary)==="[object ArrayBuffer]"&&(k.dictionary=new Uint8Array(k.dictionary)),k.raw&&(h=inflate_1$2.inflateSetDictionary(this.strm,k.dictionary),h!==Z_OK)))throw new Error(messages[h])}Inflate$1.prototype.push=function(f,k){const h=this.strm,m=this.options.chunkSize,d=this.options.dictionary;let b,_,A;if(this.ended)return!1;for(k===~~k?_=k:_=k===!0?Z_FINISH:Z_NO_FLUSH,toString.call(f)==="[object ArrayBuffer]"?h.input=new Uint8Array(f):h.input=f,h.next_in=0,h.avail_in=h.input.length;;){for(h.avail_out===0&&(h.output=new Uint8Array(m),h.next_out=0,h.avail_out=m),b=inflate_1$2.inflate(h,_),b===Z_NEED_DICT&&d&&(b=inflate_1$2.inflateSetDictionary(h,d),b===Z_OK?b=inflate_1$2.inflate(h,_):b===Z_DATA_ERROR&&(b=Z_NEED_DICT));h.avail_in>0&&b===Z_STREAM_END&&h.state.wrap>0&&f[h.next_in]!==0;)inflate_1$2.inflateReset(h),b=inflate_1$2.inflate(h,_);switch(b){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(b),this.ended=!0,!1}if(A=h.avail_out,h.next_out&&(h.avail_out===0||b===Z_STREAM_END))if(this.options.to==="string"){let L=strings.utf8border(h.output,h.next_out),E=h.next_out-L,D=strings.buf2string(h.output,L);h.next_out=E,h.avail_out=m-E,E&&h.output.set(h.output.subarray(L,L+E),0),this.onData(D)}else this.onData(h.output.length===h.next_out?h.output:h.output.subarray(0,h.next_out));if(!(b===Z_OK&&A===0)){if(b===Z_STREAM_END)return b=inflate_1$2.inflateEnd(this.strm),this.onEnd(b),this.ended=!0,!0;if(h.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(f){this.chunks.push(f)};Inflate$1.prototype.onEnd=function(f){f===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg};function inflate$1(f,k){const h=new Inflate$1(k);if(h.push(f),h.err)throw h.msg||messages[h.err];return h.result}function inflateRaw$1(f,k){return k=k||{},k.raw=!0,inflate$1(f,k)}var Inflate_1$1=Inflate$1,inflate_2=inflate$1,inflateRaw_1$1=inflateRaw$1,ungzip$1=inflate$1,constants=constants$2,inflate_1$1={Inflate:Inflate_1$1,inflate:inflate_2,inflateRaw:inflateRaw_1$1,ungzip:ungzip$1,constants};const{Deflate,deflate,deflateRaw,gzip}=deflate_1$1,{Inflate,inflate,inflateRaw,ungzip}=inflate_1$1;var deflate_1=deflate,inflate_1=inflate;const _hasatob=typeof atob=="function",_hasbtoa=typeof btoa=="function",_hasBuffer=typeof Buffer=="function",_TD=typeof TextDecoder=="function"?new TextDecoder:void 0,_TE=typeof TextEncoder=="function"?new TextEncoder:void 0,b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=(f=>{let k={};return f.forEach((h,m)=>k[h]=m),k})(b64chs),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):(f,k=h=>h)=>new Uint8Array(Array.prototype.slice.call(f,0).map(k)),_mkUriSafe=f=>f.replace(/=/g,"").replace(/[+\/]/g,k=>k=="+"?"-":"_"),_tidyB64=f=>f.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=f=>{let k,h,m,d,b="";const _=f.length%3;for(let A=0;A<f.length;){if((h=f.charCodeAt(A++))>255||(m=f.charCodeAt(A++))>255||(d=f.charCodeAt(A++))>255)throw new TypeError("invalid character found");k=h<<16|m<<8|d,b+=b64chs[k>>18&63]+b64chs[k>>12&63]+b64chs[k>>6&63]+b64chs[k&63]}return _?b.slice(0,_-3)+"===".substring(_):b},_btoa=_hasbtoa?f=>btoa(f):_hasBuffer?f=>Buffer.from(f,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?f=>Buffer.from(f).toString("base64"):f=>{let h=[];for(let m=0,d=f.length;m<d;m+=4096)h.push(_fromCC.apply(null,f.subarray(m,m+4096)));return _btoa(h.join(""))},fromUint8Array=(f,k=!1)=>k?_mkUriSafe(_fromUint8Array(f)):_fromUint8Array(f),cb_utob=f=>{if(f.length<2){var k=f.charCodeAt(0);return k<128?f:k<2048?_fromCC(192|k>>>6)+_fromCC(128|k&63):_fromCC(224|k>>>12&15)+_fromCC(128|k>>>6&63)+_fromCC(128|k&63)}else{var k=65536+(f.charCodeAt(0)-55296)*1024+(f.charCodeAt(1)-56320);return _fromCC(240|k>>>18&7)+_fromCC(128|k>>>12&63)+_fromCC(128|k>>>6&63)+_fromCC(128|k&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=f=>f.replace(re_utob,cb_utob),_encode=_hasBuffer?f=>Buffer.from(f,"utf8").toString("base64"):_TE?f=>_fromUint8Array(_TE.encode(f)):f=>_btoa(utob(f)),encode=(f,k=!1)=>k?_mkUriSafe(_encode(f)):_encode(f),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=f=>{switch(f.length){case 4:var k=(7&f.charCodeAt(0))<<18|(63&f.charCodeAt(1))<<12|(63&f.charCodeAt(2))<<6|63&f.charCodeAt(3),h=k-65536;return _fromCC((h>>>10)+55296)+_fromCC((h&1023)+56320);case 3:return _fromCC((15&f.charCodeAt(0))<<12|(63&f.charCodeAt(1))<<6|63&f.charCodeAt(2));default:return _fromCC((31&f.charCodeAt(0))<<6|63&f.charCodeAt(1))}},btou=f=>f.replace(re_btou,cb_btou),atobPolyfill=f=>{if(f=f.replace(/\s+/g,""),!b64re.test(f))throw new TypeError("malformed base64.");f+="==".slice(2-(f.length&3));let k,h="",m,d;for(let b=0;b<f.length;)k=b64tab[f.charAt(b++)]<<18|b64tab[f.charAt(b++)]<<12|(m=b64tab[f.charAt(b++)])<<6|(d=b64tab[f.charAt(b++)]),h+=m===64?_fromCC(k>>16&255):d===64?_fromCC(k>>16&255,k>>8&255):_fromCC(k>>16&255,k>>8&255,k&255);return h},_atob=_hasatob?f=>atob(_tidyB64(f)):_hasBuffer?f=>Buffer.from(f,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?f=>_U8Afrom(Buffer.from(f,"base64")):f=>_U8Afrom(_atob(f),k=>k.charCodeAt(0)),toUint8Array=f=>_toUint8Array(_unURI(f)),_decode=_hasBuffer?f=>Buffer.from(f,"base64").toString("utf8"):_TD?f=>_TD.decode(_toUint8Array(f)):f=>btou(_atob(f)),_unURI=f=>_tidyB64(f.replace(/[-_]/g,k=>k=="-"?"+":"/")),decode=f=>_decode(_unURI(f)),base64Serde={serialize:f=>encode(f,!0),deserialize:f=>decode(f)},pakoSerde={serialize:f=>{const k=new TextEncoder().encode(f),h=deflate_1(k,{level:9});return fromUint8Array(h,!0)},deserialize:f=>{const k=toUint8Array(f);return inflate_1(k,{to:"string"})}},serdes={base64:base64Serde,pako:pakoSerde},serializeState=(f,k="pako")=>{if(serdes[k]===void 0)throw new Error(`Unknown serde type: ${k}`);const h=JSON.stringify(f),m=serdes[k].serialize(h);return`${k}:${m}`},deserializeState=f=>{let k,h;if(f.includes(":")){let d;if([d,h]=f.split(":"),d in serdes)k=d;else throw new Error(`Unknown serde type: ${d}`)}else k="base64",h=f;const m=serdes[k].deserialize(h);return JSON.parse(m)};/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var t={2536:(f,k,h)=>{f=h.nmd(f);var m=function(){var d=function(Le,ie,Qe,Vt){for(Qe=Qe||{},Vt=Le.length;Vt--;Qe[Le[Vt]]=ie);return Qe},b=[1,6],_=[1,7],A=[1,8],L=[1,9],E=[1,16],D=[1,11],R=[1,12],P=[1,13],$=[1,14],K=[1,15],et=[1,27],ht=[1,33],X=[1,34],_t=[1,35],rt=[1,36],at=[1,37],bt=[1,72],Ft=[1,73],Tt=[1,74],yt=[1,75],Nt=[1,76],xt=[1,77],pt=[1,78],tt=[1,38],ft=[1,39],q=[1,40],kt=[1,41],W=[1,42],St=[1,43],Lt=[1,44],Ht=[1,45],ge=[1,46],We=[1,47],Ee=[1,48],fe=[1,49],xe=[1,50],Ie=[1,51],Me=[1,52],ve=[1,53],An=[1,54],_e=[1,55],en=[1,56],Ot=[1,57],he=[1,59],Qt=[1,60],At=[1,61],De=[1,62],J=[1,63],Ce=[1,64],ot=[1,65],Te=[1,66],ue=[1,67],Fe=[1,68],fn=[1,69],rn=[24,52],Xe=[24,44,46,47,48,49,50,51,52,54,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],ae=[15,24,44,46,47,48,49,50,51,52,54,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],Be=[1,94],pe=[1,95],Pe=[1,96],ye=[1,97],Ve=[15,24,52],kn=[7,8,9,10,18,22,25,26,27,28],ar=[15,24,43,52],cn=[15,24,43,52,86,87,89,90],hn=[15,43],Qr=[44,46,47,48,49,50,51,54,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],Lr={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(Le,ie,Qe,Vt,Nn,Ct,vn){var Rt=Ct.length-1;switch(Nn){case 4:Vt.setDirection("TB");break;case 5:Vt.setDirection("BT");break;case 6:Vt.setDirection("RL");break;case 7:Vt.setDirection("LR");break;case 11:console.log("open_directive: ",Ct[Rt]),Vt.parseDirective("%%{","open_directive");break;case 12:break;case 13:Ct[Rt]=Ct[Rt].trim().replace(/'/g,'"'),console.log("arg_directive: ",Ct[Rt]),Vt.parseDirective(Ct[Rt],"arg_directive");break;case 14:console.log("close_directive: ",Ct[Rt]),Vt.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:Vt.setC4Type(Ct[Rt-3]);break;case 26:Vt.setTitle(Ct[Rt].substring(6)),this.$=Ct[Rt].substring(6);break;case 27:Vt.setAccDescription(Ct[Rt].substring(15)),this.$=Ct[Rt].substring(15);break;case 28:this.$=Ct[Rt].trim(),Vt.setTitle(this.$);break;case 29:case 30:this.$=Ct[Rt].trim(),Vt.setAccDescription(this.$);break;case 35:case 36:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Ct[Rt].splice(2,0,"ENTERPRISE"),Vt.addPersonOrSystemBoundary(...Ct[Rt]),this.$=Ct[Rt];break;case 37:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addPersonOrSystemBoundary(...Ct[Rt]),this.$=Ct[Rt];break;case 38:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Ct[Rt].splice(2,0,"CONTAINER"),Vt.addContainerBoundary(...Ct[Rt]),this.$=Ct[Rt];break;case 39:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addDeploymentNode("node",...Ct[Rt]),this.$=Ct[Rt];break;case 40:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addDeploymentNode("nodeL",...Ct[Rt]),this.$=Ct[Rt];break;case 41:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addDeploymentNode("nodeR",...Ct[Rt]),this.$=Ct[Rt];break;case 42:Vt.popBoundaryParseStack();break;case 46:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addPersonOrSystem("person",...Ct[Rt]),this.$=Ct[Rt];break;case 47:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addPersonOrSystem("external_person",...Ct[Rt]),this.$=Ct[Rt];break;case 48:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addPersonOrSystem("system",...Ct[Rt]),this.$=Ct[Rt];break;case 49:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addPersonOrSystem("system_db",...Ct[Rt]),this.$=Ct[Rt];break;case 50:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addPersonOrSystem("system_queue",...Ct[Rt]),this.$=Ct[Rt];break;case 51:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addPersonOrSystem("external_system",...Ct[Rt]),this.$=Ct[Rt];break;case 52:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addPersonOrSystem("external_system_db",...Ct[Rt]),this.$=Ct[Rt];break;case 53:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addPersonOrSystem("external_system_queue",...Ct[Rt]),this.$=Ct[Rt];break;case 54:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addContainer("container",...Ct[Rt]),this.$=Ct[Rt];break;case 55:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addContainer("container_db",...Ct[Rt]),this.$=Ct[Rt];break;case 56:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addContainer("container_queue",...Ct[Rt]),this.$=Ct[Rt];break;case 57:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addContainer("external_container",...Ct[Rt]),this.$=Ct[Rt];break;case 58:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addContainer("external_container_db",...Ct[Rt]),this.$=Ct[Rt];break;case 59:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addContainer("external_container_queue",...Ct[Rt]),this.$=Ct[Rt];break;case 60:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addComponent("component",...Ct[Rt]),this.$=Ct[Rt];break;case 61:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addComponent("component_db",...Ct[Rt]),this.$=Ct[Rt];break;case 62:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addComponent("component_queue",...Ct[Rt]),this.$=Ct[Rt];break;case 63:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addComponent("external_component",...Ct[Rt]),this.$=Ct[Rt];break;case 64:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addComponent("external_component_db",...Ct[Rt]),this.$=Ct[Rt];break;case 65:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addComponent("external_component_queue",...Ct[Rt]),this.$=Ct[Rt];break;case 67:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addRel("rel",...Ct[Rt]),this.$=Ct[Rt];break;case 68:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addRel("birel",...Ct[Rt]),this.$=Ct[Rt];break;case 69:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addRel("rel_u",...Ct[Rt]),this.$=Ct[Rt];break;case 70:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addRel("rel_d",...Ct[Rt]),this.$=Ct[Rt];break;case 71:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addRel("rel_l",...Ct[Rt]),this.$=Ct[Rt];break;case 72:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addRel("rel_r",...Ct[Rt]),this.$=Ct[Rt];break;case 73:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.addRel("rel_b",...Ct[Rt]),this.$=Ct[Rt];break;case 74:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Ct[Rt].splice(0,1),Vt.addRel("rel",...Ct[Rt]),this.$=Ct[Rt];break;case 75:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.updateElStyle("update_el_style",...Ct[Rt]),this.$=Ct[Rt];break;case 76:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.updateRelStyle("update_rel_style",...Ct[Rt]),this.$=Ct[Rt];break;case 77:console.log(Ct[Rt-1],JSON.stringify(Ct[Rt])),Vt.updateLayoutConfig("update_layout_config",...Ct[Rt]),this.$=Ct[Rt];break;case 78:console.log("PUSH ATTRIBUTE: ",Ct[Rt]),this.$=[Ct[Rt]];break;case 79:console.log("PUSH ATTRIBUTE: ",Ct[Rt-1]),Ct[Rt].unshift(Ct[Rt-1]),this.$=Ct[Rt];break;case 80:case 82:this.$=Ct[Rt].trim();break;case 81:console.log("kv: ",Ct[Rt-1],Ct[Rt]);let Un={};Un[Ct[Rt-1].trim()]=Ct[Rt].trim(),this.$=Un;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:b,8:_,9:A,10:L,11:5,12:10,18:E,22:D,25:R,26:P,27:$,28:K},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:b,8:_,9:A,10:L,11:5,12:10,18:E,22:D,25:R,26:P,27:$,28:K},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:et},d([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:ht,33:X,34:_t,36:rt,38:at,39:58,40:70,42:71,44:bt,46:Ft,47:Tt,48:yt,49:Nt,50:xt,51:pt,53:32,54:tt,55:ft,56:q,57:kt,58:W,59:St,60:Lt,61:Ht,62:ge,63:We,64:Ee,65:fe,66:xe,67:Ie,68:Me,69:ve,70:An,71:_e,72:en,73:Ot,74:he,75:Qt,76:At,77:De,78:J,79:Ce,80:ot,81:Te,82:ue,83:Fe,84:fn},{23:79,29:29,30:30,31:31,32:ht,33:X,34:_t,36:rt,38:at,39:58,40:70,42:71,44:bt,46:Ft,47:Tt,48:yt,49:Nt,50:xt,51:pt,53:32,54:tt,55:ft,56:q,57:kt,58:W,59:St,60:Lt,61:Ht,62:ge,63:We,64:Ee,65:fe,66:xe,67:Ie,68:Me,69:ve,70:An,71:_e,72:en,73:Ot,74:he,75:Qt,76:At,77:De,78:J,79:Ce,80:ot,81:Te,82:ue,83:Fe,84:fn},{23:80,29:29,30:30,31:31,32:ht,33:X,34:_t,36:rt,38:at,39:58,40:70,42:71,44:bt,46:Ft,47:Tt,48:yt,49:Nt,50:xt,51:pt,53:32,54:tt,55:ft,56:q,57:kt,58:W,59:St,60:Lt,61:Ht,62:ge,63:We,64:Ee,65:fe,66:xe,67:Ie,68:Me,69:ve,70:An,71:_e,72:en,73:Ot,74:he,75:Qt,76:At,77:De,78:J,79:Ce,80:ot,81:Te,82:ue,83:Fe,84:fn},{23:81,29:29,30:30,31:31,32:ht,33:X,34:_t,36:rt,38:at,39:58,40:70,42:71,44:bt,46:Ft,47:Tt,48:yt,49:Nt,50:xt,51:pt,53:32,54:tt,55:ft,56:q,57:kt,58:W,59:St,60:Lt,61:Ht,62:ge,63:We,64:Ee,65:fe,66:xe,67:Ie,68:Me,69:ve,70:An,71:_e,72:en,73:Ot,74:he,75:Qt,76:At,77:De,78:J,79:Ce,80:ot,81:Te,82:ue,83:Fe,84:fn},{23:82,29:29,30:30,31:31,32:ht,33:X,34:_t,36:rt,38:at,39:58,40:70,42:71,44:bt,46:Ft,47:Tt,48:yt,49:Nt,50:xt,51:pt,53:32,54:tt,55:ft,56:q,57:kt,58:W,59:St,60:Lt,61:Ht,62:ge,63:We,64:Ee,65:fe,66:xe,67:Ie,68:Me,69:ve,70:An,71:_e,72:en,73:Ot,74:he,75:Qt,76:At,77:De,78:J,79:Ce,80:ot,81:Te,82:ue,83:Fe,84:fn},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},d(rn,[2,20],{53:32,39:58,40:70,42:71,30:87,44:bt,46:Ft,47:Tt,48:yt,49:Nt,50:xt,51:pt,54:tt,55:ft,56:q,57:kt,58:W,59:St,60:Lt,61:Ht,62:ge,63:We,64:Ee,65:fe,66:xe,67:Ie,68:Me,69:ve,70:An,71:_e,72:en,73:Ot,74:he,75:Qt,76:At,77:De,78:J,79:Ce,80:ot,81:Te,82:ue,83:Fe,84:fn}),d(rn,[2,21]),d(Xe,[2,23],{15:[1,88]}),d(rn,[2,43],{15:[1,89]}),d(ae,[2,26]),d(ae,[2,27]),{35:[1,90]},{37:[1,91]},d(ae,[2,30]),{45:92,85:93,86:Be,87:pe,89:Pe,90:ye},{45:98,85:93,86:Be,87:pe,89:Pe,90:ye},{45:99,85:93,86:Be,87:pe,89:Pe,90:ye},{45:100,85:93,86:Be,87:pe,89:Pe,90:ye},{45:101,85:93,86:Be,87:pe,89:Pe,90:ye},{45:102,85:93,86:Be,87:pe,89:Pe,90:ye},{45:103,85:93,86:Be,87:pe,89:Pe,90:ye},{45:104,85:93,86:Be,87:pe,89:Pe,90:ye},{45:105,85:93,86:Be,87:pe,89:Pe,90:ye},{45:106,85:93,86:Be,87:pe,89:Pe,90:ye},{45:107,85:93,86:Be,87:pe,89:Pe,90:ye},{45:108,85:93,86:Be,87:pe,89:Pe,90:ye},{45:109,85:93,86:Be,87:pe,89:Pe,90:ye},{45:110,85:93,86:Be,87:pe,89:Pe,90:ye},{45:111,85:93,86:Be,87:pe,89:Pe,90:ye},{45:112,85:93,86:Be,87:pe,89:Pe,90:ye},{45:113,85:93,86:Be,87:pe,89:Pe,90:ye},{45:114,85:93,86:Be,87:pe,89:Pe,90:ye},{45:115,85:93,86:Be,87:pe,89:Pe,90:ye},{45:116,85:93,86:Be,87:pe,89:Pe,90:ye},d(Ve,[2,66]),{45:117,85:93,86:Be,87:pe,89:Pe,90:ye},{45:118,85:93,86:Be,87:pe,89:Pe,90:ye},{45:119,85:93,86:Be,87:pe,89:Pe,90:ye},{45:120,85:93,86:Be,87:pe,89:Pe,90:ye},{45:121,85:93,86:Be,87:pe,89:Pe,90:ye},{45:122,85:93,86:Be,87:pe,89:Pe,90:ye},{45:123,85:93,86:Be,87:pe,89:Pe,90:ye},{45:124,85:93,86:Be,87:pe,89:Pe,90:ye},{45:125,85:93,86:Be,87:pe,89:Pe,90:ye},{45:126,85:93,86:Be,87:pe,89:Pe,90:ye},{45:127,85:93,86:Be,87:pe,89:Pe,90:ye},{30:128,39:58,40:70,42:71,44:bt,46:Ft,47:Tt,48:yt,49:Nt,50:xt,51:pt,53:32,54:tt,55:ft,56:q,57:kt,58:W,59:St,60:Lt,61:Ht,62:ge,63:We,64:Ee,65:fe,66:xe,67:Ie,68:Me,69:ve,70:An,71:_e,72:en,73:Ot,74:he,75:Qt,76:At,77:De,78:J,79:Ce,80:ot,81:Te,82:ue,83:Fe,84:fn},{15:[1,130],43:[1,129]},{45:131,85:93,86:Be,87:pe,89:Pe,90:ye},{45:132,85:93,86:Be,87:pe,89:Pe,90:ye},{45:133,85:93,86:Be,87:pe,89:Pe,90:ye},{45:134,85:93,86:Be,87:pe,89:Pe,90:ye},{45:135,85:93,86:Be,87:pe,89:Pe,90:ye},{45:136,85:93,86:Be,87:pe,89:Pe,90:ye},{45:137,85:93,86:Be,87:pe,89:Pe,90:ye},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},d(kn,[2,9]),{14:142,21:et},{21:[2,13]},{1:[2,15]},d(rn,[2,22]),d(Xe,[2,24],{31:31,29:143,32:ht,33:X,34:_t,36:rt,38:at}),d(rn,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:ht,33:X,34:_t,36:rt,38:at,44:bt,46:Ft,47:Tt,48:yt,49:Nt,50:xt,51:pt,54:tt,55:ft,56:q,57:kt,58:W,59:St,60:Lt,61:Ht,62:ge,63:We,64:Ee,65:fe,66:xe,67:Ie,68:Me,69:ve,70:An,71:_e,72:en,73:Ot,74:he,75:Qt,76:At,77:De,78:J,79:Ce,80:ot,81:Te,82:ue,83:Fe,84:fn}),d(ae,[2,28]),d(ae,[2,29]),d(Ve,[2,46]),d(ar,[2,78],{85:93,45:145,86:Be,87:pe,89:Pe,90:ye}),d(cn,[2,80]),{88:[1,146]},d(cn,[2,82]),d(cn,[2,83]),d(Ve,[2,47]),d(Ve,[2,48]),d(Ve,[2,49]),d(Ve,[2,50]),d(Ve,[2,51]),d(Ve,[2,52]),d(Ve,[2,53]),d(Ve,[2,54]),d(Ve,[2,55]),d(Ve,[2,56]),d(Ve,[2,57]),d(Ve,[2,58]),d(Ve,[2,59]),d(Ve,[2,60]),d(Ve,[2,61]),d(Ve,[2,62]),d(Ve,[2,63]),d(Ve,[2,64]),d(Ve,[2,65]),d(Ve,[2,67]),d(Ve,[2,68]),d(Ve,[2,69]),d(Ve,[2,70]),d(Ve,[2,71]),d(Ve,[2,72]),d(Ve,[2,73]),d(Ve,[2,74]),d(Ve,[2,75]),d(Ve,[2,76]),d(Ve,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},d(hn,[2,35]),d(hn,[2,36]),d(hn,[2,37]),d(hn,[2,38]),d(hn,[2,39]),d(hn,[2,40]),d(hn,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},d(Xe,[2,25]),d(rn,[2,45]),d(ar,[2,79]),d(cn,[2,81]),d(Ve,[2,31]),d(Ve,[2,42]),d(Qr,[2,32]),d(Qr,[2,33],{15:[1,152]}),d(kn,[2,10]),d(Qr,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(Le,ie){if(!ie.recoverable){var Qe=new Error(Le);throw Qe.hash=ie,Qe}this.trace(Le)},parse:function(Le){var ie=this,Qe=[0],Vt=[],Nn=[null],Ct=[],vn=this.table,Rt="",Un=0,Yn=0,Xn=0,Hn=2,Vn=1,Kn=Ct.slice.call(arguments,1),Mn=Object.create(this.lexer),jn={yy:{}};for(var Gn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gn)&&(jn.yy[Gn]=this.yy[Gn]);Mn.setInput(Le,jn.yy),jn.yy.lexer=Mn,jn.yy.parser=this,Mn.yylloc===void 0&&(Mn.yylloc={});var Zn=Mn.yylloc;Ct.push(Zn);var Ua=Mn.options&&Mn.options.ranges;function Wr(){var or;return typeof(or=Vt.pop()||Mn.lex()||Vn)!="number"&&(or instanceof Array&&(or=(Vt=or).pop()),or=ie.symbols_[or]||or),or}typeof jn.yy.parseError=="function"?this.parseError=jn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Pr,On,Qi,Qn,Yr,Gr,Or,Vr,Zr,jr={};;){if(Qi=Qe[Qe.length-1],this.defaultActions[Qi]?Qn=this.defaultActions[Qi]:(Pr==null&&(Pr=Wr()),Qn=vn[Qi]&&vn[Qi][Pr]),Qn===void 0||!Qn.length||!Qn[0]){var ti="";for(Gr in Zr=[],vn[Qi])this.terminals_[Gr]&&Gr>Hn&&Zr.push("'"+this.terminals_[Gr]+"'");ti=Mn.showPosition?"Parse error on line "+(Un+1)+`:
|
|
`+Mn.showPosition()+`
|
|
Expecting `+Zr.join(", ")+", got '"+(this.terminals_[Pr]||Pr)+"'":"Parse error on line "+(Un+1)+": Unexpected "+(Pr==Vn?"end of input":"'"+(this.terminals_[Pr]||Pr)+"'"),this.parseError(ti,{text:Mn.match,token:this.terminals_[Pr]||Pr,line:Mn.yylineno,loc:Zn,expected:Zr})}if(Qn[0]instanceof Array&&Qn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Qi+", token: "+Pr);switch(Qn[0]){case 1:Qe.push(Pr),Nn.push(Mn.yytext),Ct.push(Mn.yylloc),Qe.push(Qn[1]),Pr=null,On?(Pr=On,On=null):(Yn=Mn.yyleng,Rt=Mn.yytext,Un=Mn.yylineno,Zn=Mn.yylloc,Xn>0);break;case 2:if(Or=this.productions_[Qn[1]][1],jr.$=Nn[Nn.length-Or],jr._$={first_line:Ct[Ct.length-(Or||1)].first_line,last_line:Ct[Ct.length-1].last_line,first_column:Ct[Ct.length-(Or||1)].first_column,last_column:Ct[Ct.length-1].last_column},Ua&&(jr._$.range=[Ct[Ct.length-(Or||1)].range[0],Ct[Ct.length-1].range[1]]),(Yr=this.performAction.apply(jr,[Rt,Yn,Un,jn.yy,Qn[1],Nn,Ct].concat(Kn)))!==void 0)return Yr;Or&&(Qe=Qe.slice(0,-1*Or*2),Nn=Nn.slice(0,-1*Or),Ct=Ct.slice(0,-1*Or)),Qe.push(this.productions_[Qn[1]][0]),Nn.push(jr.$),Ct.push(jr._$),Vr=vn[Qe[Qe.length-2]][Qe[Qe.length-1]],Qe.push(Vr);break;case 3:return!0}}return!0}},Cn={EOF:1,parseError:function(Le,ie){if(!this.yy.parser)throw new Error(Le);this.yy.parser.parseError(Le,ie)},setInput:function(Le,ie){return this.yy=ie||this.yy||{},this._input=Le,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Le=this._input[0];return this.yytext+=Le,this.yyleng++,this.offset++,this.match+=Le,this.matched+=Le,Le.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),Le},unput:function(Le){var ie=Le.length,Qe=Le.split(/(?:\r\n?|\n)/g);this._input=Le+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ie),this.offset-=ie;var Vt=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),Qe.length-1&&(this.yylineno-=Qe.length-1);var Nn=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:Qe?(Qe.length===Vt.length?this.yylloc.first_column:0)+Vt[Vt.length-Qe.length].length-Qe[0].length:this.yylloc.first_column-ie},this.options.ranges&&(this.yylloc.range=[Nn[0],Nn[0]+this.yyleng-ie]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Le){this.unput(this.match.slice(Le))},pastInput:function(){var Le=this.matched.substr(0,this.matched.length-this.match.length);return(Le.length>20?"...":"")+Le.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Le=this.match;return Le.length<20&&(Le+=this._input.substr(0,20-Le.length)),(Le.substr(0,20)+(Le.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Le=this.pastInput(),ie=new Array(Le.length+1).join("-");return Le+this.upcomingInput()+`
|
|
`+ie+"^"},test_match:function(Le,ie){var Qe,Vt,Nn;if(this.options.backtrack_lexer&&(Nn={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&&(Nn.yylloc.range=this.yylloc.range.slice(0))),(Vt=Le[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Vt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Vt?Vt[Vt.length-1].length-Vt[Vt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Le[0].length},this.yytext+=Le[0],this.match+=Le[0],this.matches=Le,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(Le[0].length),this.matched+=Le[0],Qe=this.performAction.call(this,this.yy,this,ie,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Qe)return Qe;if(this._backtrack){for(var Ct in Nn)this[Ct]=Nn[Ct];return!1}return!1},next:function(){if(this.done)return this.EOF;var Le,ie,Qe,Vt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Nn=this._currentRules(),Ct=0;Ct<Nn.length;Ct++)if((Qe=this._input.match(this.rules[Nn[Ct]]))&&(!ie||Qe[0].length>ie[0].length)){if(ie=Qe,Vt=Ct,this.options.backtrack_lexer){if((Le=this.test_match(Qe,Nn[Ct]))!==!1)return Le;if(this._backtrack){ie=!1;continue}return!1}if(!this.options.flex)break}return ie?(Le=this.test_match(ie,Nn[Vt]))!==!1&&Le:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Le){this.conditionStack.push(Le)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Le){return(Le=this.conditionStack.length-1-Math.abs(Le||0))>=0?this.conditionStack[Le]:"INITIAL"},pushState:function(Le){this.begin(Le)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Le,ie,Qe,Vt){switch(Qe){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),console.log("begin person_ext"),55;case 28:return this.begin("person"),console.log("begin person"),54;case 29:return this.begin("system_ext_queue"),console.log("begin system_ext_queue"),61;case 30:return this.begin("system_ext_db"),console.log("begin system_ext_db"),60;case 31:return this.begin("system_ext"),console.log("begin system_ext"),59;case 32:return this.begin("system_queue"),console.log("begin system_queue"),58;case 33:return this.begin("system_db"),console.log("begin system_db"),57;case 34:return this.begin("system"),console.log("begin system"),56;case 35:return this.begin("boundary"),console.log("begin boundary"),47;case 36:return this.begin("enterprise_boundary"),console.log("begin enterprise_boundary"),44;case 37:return this.begin("system_boundary"),console.log("begin system_boundary"),46;case 38:return this.begin("container_ext_queue"),console.log("begin container_ext_queue"),67;case 39:return this.begin("container_ext_db"),console.log("begin container_ext_db"),66;case 40:return this.begin("container_ext"),console.log("begin container_ext"),65;case 41:return this.begin("container_queue"),console.log("begin container_queue"),64;case 42:return this.begin("container_db"),console.log("begin container_db"),63;case 43:return this.begin("container"),console.log("begin container"),62;case 44:return this.begin("container_boundary"),console.log("begin container_boundary"),48;case 45:return this.begin("component_ext_queue"),console.log("begin component_ext_queue"),73;case 46:return this.begin("component_ext_db"),console.log("begin component_ext_db"),72;case 47:return this.begin("component_ext"),console.log("begin component_ext"),71;case 48:return this.begin("component_queue"),console.log("begin component_queue"),70;case 49:return this.begin("component_db"),console.log("begin component_db"),69;case 50:return this.begin("component"),console.log("begin component"),68;case 51:case 52:return this.begin("node"),console.log("begin node"),49;case 53:return this.begin("node_l"),console.log("begin node_l"),50;case 54:return this.begin("node_r"),console.log("begin node_r"),51;case 55:return this.begin("rel"),console.log("begin rel"),74;case 56:return this.begin("birel"),console.log("begin birel"),75;case 57:case 58:return this.begin("rel_u"),console.log("begin rel_u"),76;case 59:case 60:return this.begin("rel_d"),console.log("begin rel_d"),77;case 61:case 62:return this.begin("rel_l"),console.log("begin rel_l"),78;case 63:case 64:return this.begin("rel_r"),console.log("begin rel_r"),79;case 65:return this.begin("rel_b"),console.log("begin rel_b"),80;case 66:return this.begin("rel_index"),console.log("begin rel_index"),81;case 67:return this.begin("update_el_style"),console.log("begin update_el_style"),82;case 68:return this.begin("update_rel_style"),console.log("begin update_rel_style"),83;case 69:return this.begin("update_layout_config"),console.log("begin update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return console.log("begin attribute with ATTRIBUTE_EMPTY"),this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:console.log("begin attribute"),this.begin("attribute");break;case 73:console.log("STOP attribute"),this.popState(),console.log("STOP diagram"),this.popState();break;case 74:return console.log(",,"),90;case 75:console.log(",");break;case 76:return console.log("ATTRIBUTE_EMPTY"),90;case 77:console.log("begin string"),this.begin("string");break;case 78:console.log("STOP string"),this.popState();break;case 79:return console.log("STR"),"STR";case 80:console.log("begin string_kv"),this.begin("string_kv");break;case 81:return console.log("STR_KEY"),this.begin("string_kv_key"),"STR_KEY";case 82:console.log("begin string_kv_value"),this.popState(),this.begin("string_kv_value");break;case 83:return console.log("STR_VALUE"),"STR_VALUE";case 84:console.log("STOP string_kv_value"),this.popState(),this.popState();break;case 85:return console.log("not STR"),"STR";case 86:return console.log("begin boundary block"),"LBRACE";case 87:return console.log("STOP boundary block"),"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\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:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,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,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};function In(){this.yy={}}return Lr.lexer=Cn,In.prototype=Lr,Lr.Parser=In,new In}();k.parser=m,k.Parser=m.Parser,k.parse=function(){return m.parse.apply(m,arguments)},k.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var b=h(555).readFileSync(h(6470).normalize(d[1]),"utf8");return k.parser.parse(b)},h.c[h.s]===f&&k.main(process.argv.slice(1))},1362:(f,k,h)=>{f=h.nmd(f);var m=function(){var d=function(Ot,he,Qt,At){for(Qt=Qt||{},At=Ot.length;At--;Qt[Ot[At]]=he);return Qt},b=[1,3],_=[1,7],A=[1,8],L=[1,9],E=[1,10],D=[1,13],R=[1,12],P=[1,16,25],$=[1,20],K=[1,31],et=[1,32],ht=[1,33],X=[1,35],_t=[1,38],rt=[1,36],at=[1,37],bt=[1,39],Ft=[1,40],Tt=[1,41],yt=[1,42],Nt=[1,45],xt=[1,46],pt=[1,47],tt=[1,48],ft=[16,25],q=[1,62],kt=[1,63],W=[1,64],St=[1,65],Lt=[1,66],Ht=[1,67],ge=[16,25,32,44,45,53,56,57,58,59,60,61,66,68],We=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,66,68,83,84,85,86],Ee=[5,8,9,10,11,16,19,23,25],fe=[53,83,84,85,86],xe=[53,60,61,83,84,85,86],Ie=[53,56,57,58,59,83,84,85,86],Me=[16,25,32],ve=[1,99],An={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,CLASS:43,STYLE_SEPARATOR:44,STRUCT_START:45,members:46,STRUCT_STOP:47,ANNOTATION_START:48,ANNOTATION_END:49,MEMBER:50,SEPARATOR:51,relation:52,STR:53,relationType:54,lineType:55,AGGREGATION:56,EXTENSION:57,COMPOSITION:58,DEPENDENCY:59,LINE:60,DOTTED_LINE:61,CALLBACK:62,LINK:63,LINK_TARGET:64,CLICK:65,CALLBACK_NAME:66,CALLBACK_ARGS:67,HREF:68,CSSCLASS:69,commentToken:70,textToken:71,graphCodeTokens:72,textNoTagsToken:73,TAGSTART:74,TAGEND:75,"==":76,"--":77,PCT:78,DEFAULT:79,SPACE:80,MINUS:81,keywords:82,UNICODE_TEXT:83,NUM:84,ALPHA:85,BQUOTE_STR:86,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"CLASS",44:"STYLE_SEPARATOR",45:"STRUCT_START",47:"STRUCT_STOP",48:"ANNOTATION_START",49:"ANNOTATION_END",50:"MEMBER",51:"SEPARATOR",53:"STR",56:"AGGREGATION",57:"EXTENSION",58:"COMPOSITION",59:"DEPENDENCY",60:"LINE",61:"DOTTED_LINE",62:"CALLBACK",63:"LINK",64:"LINK_TARGET",65:"CLICK",66:"CALLBACK_NAME",67:"CALLBACK_ARGS",68:"HREF",69:"CSSCLASS",72:"graphCodeTokens",74:"TAGSTART",75:"TAGEND",76:"==",77:"--",78:"PCT",79:"DEFAULT",80:"SPACE",81:"MINUS",82:"keywords",83:"UNICODE_TEXT",84:"NUM",85:"ALPHA",86:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[46,1],[46,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[52,3],[52,2],[52,2],[52,1],[54,1],[54,1],[54,1],[54,1],[55,1],[55,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[70,1],[70,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[73,1],[73,1],[73,1],[73,1],[28,1],[28,1],[28,1],[29,1]],performAction:function(Ot,he,Qt,At,De,J,Ce){var ot=J.length-1;switch(De){case 5:At.setDirection("TB");break;case 6:At.setDirection("BT");break;case 7:At.setDirection("RL");break;case 8:At.setDirection("LR");break;case 12:At.parseDirective("%%{","open_directive");break;case 13:At.parseDirective(J[ot],"type_directive");break;case 14:J[ot]=J[ot].trim().replace(/'/g,'"'),At.parseDirective(J[ot],"arg_directive");break;case 15:At.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=J[ot];break;case 22:this.$=J[ot-1]+J[ot];break;case 23:case 24:this.$=J[ot-1]+"~"+J[ot];break;case 25:At.addRelation(J[ot]);break;case 26:J[ot-1].title=At.cleanupLabel(J[ot]),At.addRelation(J[ot-1]);break;case 34:this.$=J[ot].trim(),At.setAccTitle(this.$);break;case 35:case 36:this.$=J[ot].trim(),At.setAccDescription(this.$);break;case 37:At.addClass(J[ot]);break;case 38:At.addClass(J[ot-2]),At.setCssClass(J[ot-2],J[ot]);break;case 39:At.addClass(J[ot-3]),At.addMembers(J[ot-3],J[ot-1]);break;case 40:At.addClass(J[ot-5]),At.setCssClass(J[ot-5],J[ot-3]),At.addMembers(J[ot-5],J[ot-1]);break;case 41:At.addAnnotation(J[ot],J[ot-2]);break;case 42:this.$=[J[ot]];break;case 43:J[ot].push(J[ot-1]),this.$=J[ot];break;case 44:case 46:case 47:break;case 45:At.addMember(J[ot-1],At.cleanupLabel(J[ot]));break;case 48:this.$={id1:J[ot-2],id2:J[ot],relation:J[ot-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:J[ot-3],id2:J[ot],relation:J[ot-1],relationTitle1:J[ot-2],relationTitle2:"none"};break;case 50:this.$={id1:J[ot-3],id2:J[ot],relation:J[ot-2],relationTitle1:"none",relationTitle2:J[ot-1]};break;case 51:this.$={id1:J[ot-4],id2:J[ot],relation:J[ot-2],relationTitle1:J[ot-3],relationTitle2:J[ot-1]};break;case 52:this.$={type1:J[ot-2],type2:J[ot],lineType:J[ot-1]};break;case 53:this.$={type1:"none",type2:J[ot],lineType:J[ot-1]};break;case 54:this.$={type1:J[ot-1],type2:"none",lineType:J[ot]};break;case 55:this.$={type1:"none",type2:"none",lineType:J[ot]};break;case 56:this.$=At.relationType.AGGREGATION;break;case 57:this.$=At.relationType.EXTENSION;break;case 58:this.$=At.relationType.COMPOSITION;break;case 59:this.$=At.relationType.DEPENDENCY;break;case 60:this.$=At.lineType.LINE;break;case 61:this.$=At.lineType.DOTTED_LINE;break;case 62:case 68:this.$=J[ot-2],At.setClickEvent(J[ot-1],J[ot]);break;case 63:case 69:this.$=J[ot-3],At.setClickEvent(J[ot-2],J[ot-1]),At.setTooltip(J[ot-2],J[ot]);break;case 64:case 72:this.$=J[ot-2],At.setLink(J[ot-1],J[ot]);break;case 65:case 73:this.$=J[ot-3],At.setLink(J[ot-2],J[ot-1],J[ot]);break;case 66:case 74:this.$=J[ot-3],At.setLink(J[ot-2],J[ot-1]),At.setTooltip(J[ot-2],J[ot]);break;case 67:case 75:this.$=J[ot-4],At.setLink(J[ot-3],J[ot-2],J[ot]),At.setTooltip(J[ot-3],J[ot-1]);break;case 70:this.$=J[ot-3],At.setClickEvent(J[ot-2],J[ot-1],J[ot]);break;case 71:this.$=J[ot-4],At.setClickEvent(J[ot-3],J[ot-2],J[ot-1]),At.setTooltip(J[ot-3],J[ot]);break;case 76:At.setCssClass(J[ot-1],J[ot])}},table:[{3:1,4:2,5:b,6:4,7:5,8:_,9:A,10:L,11:E,12:6,13:11,19:D,23:R},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:b,6:4,7:5,8:_,9:A,10:L,11:E,12:6,13:11,19:D,23:R},{1:[2,9]},d(P,[2,5]),d(P,[2,6]),d(P,[2,7]),d(P,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:$},d([17,22],[2,13]),{6:30,7:29,8:_,9:A,10:L,11:E,13:11,19:D,24:21,26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:K,40:et,42:ht,43:X,48:_t,50:rt,51:at,62:bt,63:Ft,65:Tt,69:yt,83:Nt,84:xt,85:pt,86:tt},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},d(ft,[2,25],{32:[1,54]}),d(ft,[2,27]),d(ft,[2,28]),d(ft,[2,29]),d(ft,[2,30]),d(ft,[2,31]),d(ft,[2,32]),d(ft,[2,33]),{39:[1,55]},{41:[1,56]},d(ft,[2,36]),d(ft,[2,44],{52:57,54:60,55:61,32:[1,59],53:[1,58],56:q,57:kt,58:W,59:St,60:Lt,61:Ht}),{27:68,28:43,29:44,83:Nt,84:xt,85:pt,86:tt},d(ft,[2,46]),d(ft,[2,47]),{28:69,83:Nt,84:xt,85:pt},{27:70,28:43,29:44,83:Nt,84:xt,85:pt,86:tt},{27:71,28:43,29:44,83:Nt,84:xt,85:pt,86:tt},{27:72,28:43,29:44,83:Nt,84:xt,85:pt,86:tt},{53:[1,73]},d(ge,[2,20],{28:43,29:44,27:74,30:[1,75],83:Nt,84:xt,85:pt,86:tt}),d(ge,[2,21],{30:[1,76]}),d(We,[2,90]),d(We,[2,91]),d(We,[2,92]),d([16,25,30,32,44,45,53,56,57,58,59,60,61,66,68],[2,93]),d(Ee,[2,10]),{15:77,22:$},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:_,9:A,10:L,11:E,13:11,19:D,24:78,25:[2,18],26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:K,40:et,42:ht,43:X,48:_t,50:rt,51:at,62:bt,63:Ft,65:Tt,69:yt,83:Nt,84:xt,85:pt,86:tt},d(ft,[2,26]),d(ft,[2,34]),d(ft,[2,35]),{27:79,28:43,29:44,53:[1,80],83:Nt,84:xt,85:pt,86:tt},{52:81,54:60,55:61,56:q,57:kt,58:W,59:St,60:Lt,61:Ht},d(ft,[2,45]),{55:82,60:Lt,61:Ht},d(fe,[2,55],{54:83,56:q,57:kt,58:W,59:St}),d(xe,[2,56]),d(xe,[2,57]),d(xe,[2,58]),d(xe,[2,59]),d(Ie,[2,60]),d(Ie,[2,61]),d(ft,[2,37],{44:[1,84],45:[1,85]}),{49:[1,86]},{53:[1,87]},{53:[1,88]},{66:[1,89],68:[1,90]},{28:91,83:Nt,84:xt,85:pt},d(ge,[2,22]),d(ge,[2,23]),d(ge,[2,24]),{16:[1,92]},{25:[2,19]},d(Me,[2,48]),{27:93,28:43,29:44,83:Nt,84:xt,85:pt,86:tt},{27:94,28:43,29:44,53:[1,95],83:Nt,84:xt,85:pt,86:tt},d(fe,[2,54],{54:96,56:q,57:kt,58:W,59:St}),d(fe,[2,53]),{28:97,83:Nt,84:xt,85:pt},{46:98,50:ve},{27:100,28:43,29:44,83:Nt,84:xt,85:pt,86:tt},d(ft,[2,62],{53:[1,101]}),d(ft,[2,64],{53:[1,103],64:[1,102]}),d(ft,[2,68],{53:[1,104],67:[1,105]}),d(ft,[2,72],{53:[1,107],64:[1,106]}),d(ft,[2,76]),d(Ee,[2,11]),d(Me,[2,50]),d(Me,[2,49]),{27:108,28:43,29:44,83:Nt,84:xt,85:pt,86:tt},d(fe,[2,52]),d(ft,[2,38],{45:[1,109]}),{47:[1,110]},{46:111,47:[2,42],50:ve},d(ft,[2,41]),d(ft,[2,63]),d(ft,[2,65]),d(ft,[2,66],{64:[1,112]}),d(ft,[2,69]),d(ft,[2,70],{53:[1,113]}),d(ft,[2,73]),d(ft,[2,74],{64:[1,114]}),d(Me,[2,51]),{46:115,50:ve},d(ft,[2,39]),{47:[2,43]},d(ft,[2,67]),d(ft,[2,71]),d(ft,[2,75]),{47:[1,116]},d(ft,[2,40])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],51:[2,14],52:[2,16],78:[2,19],111:[2,43]},parseError:function(Ot,he){if(!he.recoverable){var Qt=new Error(Ot);throw Qt.hash=he,Qt}this.trace(Ot)},parse:function(Ot){var he=this,Qt=[0],At=[],De=[null],J=[],Ce=this.table,ot="",Te=0,ue=0,Fe=0,fn=2,rn=1,Xe=J.slice.call(arguments,1),ae=Object.create(this.lexer),Be={yy:{}};for(var pe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pe)&&(Be.yy[pe]=this.yy[pe]);ae.setInput(Ot,Be.yy),Be.yy.lexer=ae,Be.yy.parser=this,ae.yylloc===void 0&&(ae.yylloc={});var Pe=ae.yylloc;J.push(Pe);var ye=ae.options&&ae.options.ranges;function Ve(){var Vt;return typeof(Vt=At.pop()||ae.lex()||rn)!="number"&&(Vt instanceof Array&&(Vt=(At=Vt).pop()),Vt=he.symbols_[Vt]||Vt),Vt}typeof Be.yy.parseError=="function"?this.parseError=Be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var kn,ar,cn,hn,Qr,Lr,Cn,In,Le,ie={};;){if(cn=Qt[Qt.length-1],this.defaultActions[cn]?hn=this.defaultActions[cn]:(kn==null&&(kn=Ve()),hn=Ce[cn]&&Ce[cn][kn]),hn===void 0||!hn.length||!hn[0]){var Qe="";for(Lr in Le=[],Ce[cn])this.terminals_[Lr]&&Lr>fn&&Le.push("'"+this.terminals_[Lr]+"'");Qe=ae.showPosition?"Parse error on line "+(Te+1)+`:
|
|
`+ae.showPosition()+`
|
|
Expecting `+Le.join(", ")+", got '"+(this.terminals_[kn]||kn)+"'":"Parse error on line "+(Te+1)+": Unexpected "+(kn==rn?"end of input":"'"+(this.terminals_[kn]||kn)+"'"),this.parseError(Qe,{text:ae.match,token:this.terminals_[kn]||kn,line:ae.yylineno,loc:Pe,expected:Le})}if(hn[0]instanceof Array&&hn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+cn+", token: "+kn);switch(hn[0]){case 1:Qt.push(kn),De.push(ae.yytext),J.push(ae.yylloc),Qt.push(hn[1]),kn=null,ar?(kn=ar,ar=null):(ue=ae.yyleng,ot=ae.yytext,Te=ae.yylineno,Pe=ae.yylloc,Fe>0);break;case 2:if(Cn=this.productions_[hn[1]][1],ie.$=De[De.length-Cn],ie._$={first_line:J[J.length-(Cn||1)].first_line,last_line:J[J.length-1].last_line,first_column:J[J.length-(Cn||1)].first_column,last_column:J[J.length-1].last_column},ye&&(ie._$.range=[J[J.length-(Cn||1)].range[0],J[J.length-1].range[1]]),(Qr=this.performAction.apply(ie,[ot,ue,Te,Be.yy,hn[1],De,J].concat(Xe)))!==void 0)return Qr;Cn&&(Qt=Qt.slice(0,-1*Cn*2),De=De.slice(0,-1*Cn),J=J.slice(0,-1*Cn)),Qt.push(this.productions_[hn[1]][0]),De.push(ie.$),J.push(ie._$),In=Ce[Qt[Qt.length-2]][Qt[Qt.length-1]],Qt.push(In);break;case 3:return!0}}return!0}},_e={EOF:1,parseError:function(Ot,he){if(!this.yy.parser)throw new Error(Ot);this.yy.parser.parseError(Ot,he)},setInput:function(Ot,he){return this.yy=he||this.yy||{},this._input=Ot,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ot=this._input[0];return this.yytext+=Ot,this.yyleng++,this.offset++,this.match+=Ot,this.matched+=Ot,Ot.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),Ot},unput:function(Ot){var he=Ot.length,Qt=Ot.split(/(?:\r\n?|\n)/g);this._input=Ot+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var At=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),Qt.length-1&&(this.yylineno-=Qt.length-1);var De=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:Qt?(Qt.length===At.length?this.yylloc.first_column:0)+At[At.length-Qt.length].length-Qt[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[De[0],De[0]+this.yyleng-he]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Ot){this.unput(this.match.slice(Ot))},pastInput:function(){var Ot=this.matched.substr(0,this.matched.length-this.match.length);return(Ot.length>20?"...":"")+Ot.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ot=this.match;return Ot.length<20&&(Ot+=this._input.substr(0,20-Ot.length)),(Ot.substr(0,20)+(Ot.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ot=this.pastInput(),he=new Array(Ot.length+1).join("-");return Ot+this.upcomingInput()+`
|
|
`+he+"^"},test_match:function(Ot,he){var Qt,At,De;if(this.options.backtrack_lexer&&(De={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&&(De.yylloc.range=this.yylloc.range.slice(0))),(At=Ot[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=At.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:At?At[At.length-1].length-At[At.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ot[0].length},this.yytext+=Ot[0],this.match+=Ot[0],this.matches=Ot,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(Ot[0].length),this.matched+=Ot[0],Qt=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Qt)return Qt;if(this._backtrack){for(var J in De)this[J]=De[J];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ot,he,Qt,At;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var De=this._currentRules(),J=0;J<De.length;J++)if((Qt=this._input.match(this.rules[De[J]]))&&(!he||Qt[0].length>he[0].length)){if(he=Qt,At=J,this.options.backtrack_lexer){if((Ot=this.test_match(Qt,De[J]))!==!1)return Ot;if(this._backtrack){he=!1;continue}return!1}if(!this.options.flex)break}return he?(Ot=this.test_match(he,De[At]))!==!1&&Ot:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Ot){this.conditionStack.push(Ot)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ot){return(Ot=this.conditionStack.length-1-Math.abs(Ot||0))>=0?this.conditionStack[Ot]:"INITIAL"},pushState:function(Ot){this.begin(Ot)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Ot,he,Qt,At){switch(Qt){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:case 10:case 19:case 26:break;case 11:return this.begin("acc_title"),38;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),40;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 36:case 39:case 42:case 45:case 48:case 51:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 20:case 21:return 23;case 22:return this.begin("struct"),45;case 23:return"EOF_IN_STRUCT";case 24:return"OPEN_IN_STRUCT";case 25:return this.popState(),47;case 27:return"MEMBER";case 28:return 43;case 29:return 69;case 30:return 62;case 31:return 63;case 32:return 65;case 33:return 48;case 34:return 49;case 35:this.begin("generic");break;case 37:return"GENERICTYPE";case 38:this.begin("string");break;case 40:return"STR";case 41:this.begin("bqstring");break;case 43:return"BQUOTE_STR";case 44:this.begin("href");break;case 46:return 68;case 47:this.begin("callback_name");break;case 49:this.popState(),this.begin("callback_args");break;case 50:return 66;case 52:return 67;case 53:case 54:case 55:case 56:return 64;case 57:case 58:return 57;case 59:case 60:return 59;case 61:return 58;case 62:return 56;case 63:return 60;case 64:return 61;case 65:return 32;case 66:return 44;case 67:return 81;case 68:return"DOT";case 69:return"PLUS";case 70:return 78;case 71:case 72:return"EQUALS";case 73:return 85;case 74:return"PUNCTUATION";case 75:return 84;case 76:return 83;case 77:return 80;case 78:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\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)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{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)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[51,52],inclusive:!1},callback_name:{rules:[48,49,50],inclusive:!1},href:{rules:[45,46],inclusive:!1},struct:{rules:[23,24,25,26,27],inclusive:!1},generic:{rules:[36,37],inclusive:!1},bqstring:{rules:[42,43],inclusive:!1},string:{rules:[39,40],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,28,29,30,31,32,33,34,35,38,41,44,47,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78],inclusive:!0}}};function en(){this.yy={}}return An.lexer=_e,en.prototype=An,An.Parser=en,new en}();k.parser=m,k.Parser=m.Parser,k.parse=function(){return m.parse.apply(m,arguments)},k.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var b=h(8218).readFileSync(h(6470).normalize(d[1]),"utf8");return k.parser.parse(b)},h.c[h.s]===f&&k.main(process.argv.slice(1))},5890:(f,k,h)=>{f=h.nmd(f);var m=function(){var d=function(tt,ft,q,kt){for(q=q||{},kt=tt.length;kt--;q[tt[kt]]=ft);return q},b=[1,2],_=[1,5],A=[6,9,11,23,25,27,29,30,49],L=[1,17],E=[1,18],D=[1,19],R=[1,20],P=[1,21],$=[1,24],K=[1,29],et=[1,30],ht=[1,31],X=[1,32],_t=[6,9,11,15,20,23,25,27,29,30,42,43,44,45,49],rt=[1,45],at=[30,46,47],bt=[4,6,9,11,23,25,27,29,30,49],Ft=[42,43,44,45],Tt=[22,37],yt=[1,64],Nt={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,".":31,attribute:32,attributeType:33,attributeName:34,attributeKeyType:35,attributeComment:36,ATTRIBUTE_WORD:37,ATTRIBUTE_KEY:38,COMMENT:39,cardinality:40,relType:41,ZERO_OR_ONE:42,ZERO_OR_MORE:43,ONE_OR_MORE:44,ONLY_ONE:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:".",37:"ATTRIBUTE_WORD",38:"ATTRIBUTE_KEY",39:"COMMENT",42:"ZERO_OR_ONE",43:"ZERO_OR_MORE",44:"ONE_OR_MORE",45:"ONLY_ONE",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,3],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[36,1],[18,3],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(tt,ft,q,kt,W,St,Lt){var Ht=St.length-1;switch(W){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:St[Ht-1].push(St[Ht]),this.$=St[Ht-1];break;case 5:case 6:case 20:case 28:case 29:case 30:case 40:this.$=St[Ht];break;case 12:kt.addEntity(St[Ht-4]),kt.addEntity(St[Ht-2]),kt.addRelationship(St[Ht-4],St[Ht],St[Ht-2],St[Ht-3]);break;case 13:kt.addEntity(St[Ht-3]),kt.addAttributes(St[Ht-3],St[Ht-1]);break;case 14:kt.addEntity(St[Ht-2]);break;case 15:kt.addEntity(St[Ht]);break;case 16:case 17:this.$=St[Ht].trim(),kt.setAccTitle(this.$);break;case 18:case 19:this.$=St[Ht].trim(),kt.setAccDescription(this.$);break;case 21:this.$=St[Ht-2]+St[Ht-1]+St[Ht];break;case 22:this.$=[St[Ht]];break;case 23:St[Ht].push(St[Ht-1]),this.$=St[Ht];break;case 24:this.$={attributeType:St[Ht-1],attributeName:St[Ht]};break;case 25:this.$={attributeType:St[Ht-2],attributeName:St[Ht-1],attributeKeyType:St[Ht]};break;case 26:this.$={attributeType:St[Ht-2],attributeName:St[Ht-1],attributeComment:St[Ht]};break;case 27:this.$={attributeType:St[Ht-3],attributeName:St[Ht-2],attributeKeyType:St[Ht-1],attributeComment:St[Ht]};break;case 31:case 39:this.$=St[Ht].replace(/"/g,"");break;case 32:this.$={cardA:St[Ht],relType:St[Ht-1],cardB:St[Ht-2]};break;case 33:this.$=kt.Cardinality.ZERO_OR_ONE;break;case 34:this.$=kt.Cardinality.ZERO_OR_MORE;break;case 35:this.$=kt.Cardinality.ONE_OR_MORE;break;case 36:this.$=kt.Cardinality.ONLY_ONE;break;case 37:this.$=kt.Identification.NON_IDENTIFYING;break;case 38:this.$=kt.Identification.IDENTIFYING;break;case 41:kt.parseDirective("%%{","open_directive");break;case 42:kt.parseDirective(St[Ht],"type_directive");break;case 43:St[Ht]=St[Ht].trim().replace(/'/g,'"'),kt.parseDirective(St[Ht],"arg_directive");break;case 44:kt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:b,7:3,12:4,49:_},{1:[3]},d(A,[2,3],{5:6}),{3:7,4:b,7:3,12:4,49:_},{13:8,50:[1,9]},{50:[2,41]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:L,25:E,27:D,29:R,30:P,49:_},{1:[2,2]},{14:22,15:[1,23],52:$},d([15,52],[2,42]),d(A,[2,8],{1:[2,1]}),d(A,[2,4]),{7:15,10:25,12:4,17:16,23:L,25:E,27:D,29:R,30:P,49:_},d(A,[2,6]),d(A,[2,7]),d(A,[2,11]),d(A,[2,15],{18:26,40:28,20:[1,27],42:K,43:et,44:ht,45:X}),{24:[1,33]},{26:[1,34]},{28:[1,35]},d(A,[2,19]),d(_t,[2,20],{31:[1,36]}),{11:[1,37]},{16:38,51:[1,39]},{11:[2,44]},d(A,[2,5]),{17:40,30:P},{21:41,22:[1,42],32:43,33:44,37:rt},{41:46,46:[1,47],47:[1,48]},d(at,[2,33]),d(at,[2,34]),d(at,[2,35]),d(at,[2,36]),d(A,[2,16]),d(A,[2,17]),d(A,[2,18]),{17:49,30:P},d(bt,[2,9]),{14:50,52:$},{52:[2,43]},{15:[1,51]},{22:[1,52]},d(A,[2,14]),{21:53,22:[2,22],32:43,33:44,37:rt},{34:54,37:[1,55]},{37:[2,28]},{40:56,42:K,43:et,44:ht,45:X},d(Ft,[2,37]),d(Ft,[2,38]),d(_t,[2,21]),{11:[1,57]},{19:58,30:[1,60],48:[1,59]},d(A,[2,13]),{22:[2,23]},d(Tt,[2,24],{35:61,36:62,38:[1,63],39:yt}),d([22,37,38,39],[2,29]),{30:[2,32]},d(bt,[2,10]),d(A,[2,12]),d(A,[2,39]),d(A,[2,40]),d(Tt,[2,25],{36:65,39:yt}),d(Tt,[2,26]),d([22,37,39],[2,30]),d(Tt,[2,31]),d(Tt,[2,27])],defaultActions:{5:[2,41],7:[2,2],24:[2,44],39:[2,43],45:[2,28],53:[2,23],56:[2,32]},parseError:function(tt,ft){if(!ft.recoverable){var q=new Error(tt);throw q.hash=ft,q}this.trace(tt)},parse:function(tt){var ft=this,q=[0],kt=[],W=[null],St=[],Lt=this.table,Ht="",ge=0,We=0,Ee=0,fe=2,xe=1,Ie=St.slice.call(arguments,1),Me=Object.create(this.lexer),ve={yy:{}};for(var An in this.yy)Object.prototype.hasOwnProperty.call(this.yy,An)&&(ve.yy[An]=this.yy[An]);Me.setInput(tt,ve.yy),ve.yy.lexer=Me,ve.yy.parser=this,Me.yylloc===void 0&&(Me.yylloc={});var _e=Me.yylloc;St.push(_e);var en=Me.options&&Me.options.ranges;function Ot(){var rn;return typeof(rn=kt.pop()||Me.lex()||xe)!="number"&&(rn instanceof Array&&(rn=(kt=rn).pop()),rn=ft.symbols_[rn]||rn),rn}typeof ve.yy.parseError=="function"?this.parseError=ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var he,Qt,At,De,J,Ce,ot,Te,ue,Fe={};;){if(At=q[q.length-1],this.defaultActions[At]?De=this.defaultActions[At]:(he==null&&(he=Ot()),De=Lt[At]&&Lt[At][he]),De===void 0||!De.length||!De[0]){var fn="";for(Ce in ue=[],Lt[At])this.terminals_[Ce]&&Ce>fe&&ue.push("'"+this.terminals_[Ce]+"'");fn=Me.showPosition?"Parse error on line "+(ge+1)+`:
|
|
`+Me.showPosition()+`
|
|
Expecting `+ue.join(", ")+", got '"+(this.terminals_[he]||he)+"'":"Parse error on line "+(ge+1)+": Unexpected "+(he==xe?"end of input":"'"+(this.terminals_[he]||he)+"'"),this.parseError(fn,{text:Me.match,token:this.terminals_[he]||he,line:Me.yylineno,loc:_e,expected:ue})}if(De[0]instanceof Array&&De.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+he);switch(De[0]){case 1:q.push(he),W.push(Me.yytext),St.push(Me.yylloc),q.push(De[1]),he=null,Qt?(he=Qt,Qt=null):(We=Me.yyleng,Ht=Me.yytext,ge=Me.yylineno,_e=Me.yylloc,Ee>0);break;case 2:if(ot=this.productions_[De[1]][1],Fe.$=W[W.length-ot],Fe._$={first_line:St[St.length-(ot||1)].first_line,last_line:St[St.length-1].last_line,first_column:St[St.length-(ot||1)].first_column,last_column:St[St.length-1].last_column},en&&(Fe._$.range=[St[St.length-(ot||1)].range[0],St[St.length-1].range[1]]),(J=this.performAction.apply(Fe,[Ht,We,ge,ve.yy,De[1],W,St].concat(Ie)))!==void 0)return J;ot&&(q=q.slice(0,-1*ot*2),W=W.slice(0,-1*ot),St=St.slice(0,-1*ot)),q.push(this.productions_[De[1]][0]),W.push(Fe.$),St.push(Fe._$),Te=Lt[q[q.length-2]][q[q.length-1]],q.push(Te);break;case 3:return!0}}return!0}},xt={EOF:1,parseError:function(tt,ft){if(!this.yy.parser)throw new Error(tt);this.yy.parser.parseError(tt,ft)},setInput:function(tt,ft){return this.yy=ft||this.yy||{},this._input=tt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var tt=this._input[0];return this.yytext+=tt,this.yyleng++,this.offset++,this.match+=tt,this.matched+=tt,tt.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),tt},unput:function(tt){var ft=tt.length,q=tt.split(/(?:\r\n?|\n)/g);this._input=tt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ft),this.offset-=ft;var kt=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),q.length-1&&(this.yylineno-=q.length-1);var W=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:q?(q.length===kt.length?this.yylloc.first_column:0)+kt[kt.length-q.length].length-q[0].length:this.yylloc.first_column-ft},this.options.ranges&&(this.yylloc.range=[W[0],W[0]+this.yyleng-ft]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(tt){this.unput(this.match.slice(tt))},pastInput:function(){var tt=this.matched.substr(0,this.matched.length-this.match.length);return(tt.length>20?"...":"")+tt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var tt=this.match;return tt.length<20&&(tt+=this._input.substr(0,20-tt.length)),(tt.substr(0,20)+(tt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var tt=this.pastInput(),ft=new Array(tt.length+1).join("-");return tt+this.upcomingInput()+`
|
|
`+ft+"^"},test_match:function(tt,ft){var q,kt,W;if(this.options.backtrack_lexer&&(W={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&&(W.yylloc.range=this.yylloc.range.slice(0))),(kt=tt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=kt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:kt?kt[kt.length-1].length-kt[kt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+tt[0].length},this.yytext+=tt[0],this.match+=tt[0],this.matches=tt,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(tt[0].length),this.matched+=tt[0],q=this.performAction.call(this,this.yy,this,ft,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),q)return q;if(this._backtrack){for(var St in W)this[St]=W[St];return!1}return!1},next:function(){if(this.done)return this.EOF;var tt,ft,q,kt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var W=this._currentRules(),St=0;St<W.length;St++)if((q=this._input.match(this.rules[W[St]]))&&(!ft||q[0].length>ft[0].length)){if(ft=q,kt=St,this.options.backtrack_lexer){if((tt=this.test_match(q,W[St]))!==!1)return tt;if(this._backtrack){ft=!1;continue}return!1}if(!this.options.flex)break}return ft?(tt=this.test_match(ft,W[kt]))!==!1&&tt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(tt){this.conditionStack.push(tt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(tt){return(tt=this.conditionStack.length-1-Math.abs(tt||0))>=0?this.conditionStack[tt]:"INITIAL"},pushState:function(tt){this.begin(tt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(tt,ft,q,kt){switch(q){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;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 this.begin("open_directive"),49;case 8:return this.begin("type_directive"),50;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),52;case 11:return 51;case 12:case 13:case 15:case 20:case 24:break;case 14:return 11;case 16:return 9;case 17:return 48;case 18:return 4;case 19:return this.begin("block"),20;case 21:return 38;case 22:return 37;case 23:return 39;case 25:return this.popState(),22;case 26:case 39:return ft.yytext[0];case 27:case 31:return 42;case 28:case 32:return 43;case 29:case 33:return 44;case 30:return 45;case 34:case 36:case 37:return 46;case 35:return 47;case 38:return 30;case 40:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK))\b)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[20,21,22,23,24,25,26],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,27,28,29,30,31,32,33,34,35,36,37,38,39,40],inclusive:!0}}};function pt(){this.yy={}}return Nt.lexer=xt,pt.prototype=Nt,Nt.Parser=pt,new pt}();k.parser=m,k.Parser=m.Parser,k.parse=function(){return m.parse.apply(m,arguments)},k.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var b=h(8009).readFileSync(h(6470).normalize(d[1]),"utf8");return k.parser.parse(b)},h.c[h.s]===f&&k.main(process.argv.slice(1))},3602:(f,k,h)=>{f=h.nmd(f);var m=function(){var d=function(Tn,wr,tr,on){for(tr=tr||{},on=Tn.length;on--;tr[Tn[on]]=wr);return tr},b=[1,9],_=[1,7],A=[1,6],L=[1,8],E=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],D=[2,10],R=[1,20],P=[1,21],$=[1,22],K=[1,23],et=[1,30],ht=[1,32],X=[1,33],_t=[1,34],rt=[1,62],at=[1,48],bt=[1,52],Ft=[1,36],Tt=[1,37],yt=[1,38],Nt=[1,39],xt=[1,40],pt=[1,56],tt=[1,63],ft=[1,51],q=[1,53],kt=[1,55],W=[1,59],St=[1,60],Lt=[1,41],Ht=[1,42],ge=[1,43],We=[1,44],Ee=[1,61],fe=[1,50],xe=[1,54],Ie=[1,57],Me=[1,58],ve=[1,49],An=[1,66],_e=[1,71],en=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Ot=[1,75],he=[1,74],Qt=[1,76],At=[20,21,23,81,82],De=[1,99],J=[1,104],Ce=[1,107],ot=[1,108],Te=[1,101],ue=[1,106],Fe=[1,109],fn=[1,102],rn=[1,114],Xe=[1,113],ae=[1,103],Be=[1,105],pe=[1,110],Pe=[1,111],ye=[1,112],Ve=[1,115],kn=[20,21,22,23,81,82],ar=[20,21,22,23,53,81,82],cn=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],hn=[20,21,23],Qr=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],Lr=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Cn=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],In=[1,149],Le=[1,157],ie=[1,158],Qe=[1,159],Vt=[1,160],Nn=[1,144],Ct=[1,145],vn=[1,141],Rt=[1,152],Un=[1,153],Yn=[1,154],Xn=[1,155],Hn=[1,156],Vn=[1,161],Kn=[1,162],Mn=[1,147],jn=[1,150],Gn=[1,146],Zn=[1,143],Ua=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Wr=[1,165],Pr=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],On=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],Qi=[12,21,22,24],Qn=[22,106],Yr=[1,250],Gr=[1,245],Or=[1,246],Vr=[1,254],Zr=[1,251],jr=[1,248],ti=[1,247],or=[1,249],pi=[1,252],Sr=[1,253],ei=[1,255],ki=[1,273],za=[20,21,23,106],Dr=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],ga={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(Tn,wr,tr,on,sr,qt,gi){var Jt=qt.length-1;switch(sr){case 5:on.parseDirective("%%{","open_directive");break;case 6:on.parseDirective(qt[Jt],"type_directive");break;case 7:qt[Jt]=qt[Jt].trim().replace(/'/g,'"'),on.parseDirective(qt[Jt],"arg_directive");break;case 8:on.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:qt[Jt]!==[]&&qt[Jt-1].push(qt[Jt]),this.$=qt[Jt-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=qt[Jt];break;case 19:on.setDirection("TB"),this.$="TB";break;case 20:on.setDirection(qt[Jt-1]),this.$=qt[Jt-1];break;case 35:this.$=qt[Jt-1].nodes;break;case 41:this.$=on.addSubGraph(qt[Jt-6],qt[Jt-1],qt[Jt-4]);break;case 42:this.$=on.addSubGraph(qt[Jt-3],qt[Jt-1],qt[Jt-3]);break;case 43:this.$=on.addSubGraph(void 0,qt[Jt-1],void 0);break;case 45:this.$=qt[Jt].trim(),on.setAccTitle(this.$);break;case 46:case 47:this.$=qt[Jt].trim(),on.setAccDescription(this.$);break;case 51:on.addLink(qt[Jt-2].stmt,qt[Jt],qt[Jt-1]),this.$={stmt:qt[Jt],nodes:qt[Jt].concat(qt[Jt-2].nodes)};break;case 52:on.addLink(qt[Jt-3].stmt,qt[Jt-1],qt[Jt-2]),this.$={stmt:qt[Jt-1],nodes:qt[Jt-1].concat(qt[Jt-3].nodes)};break;case 53:this.$={stmt:qt[Jt-1],nodes:qt[Jt-1]};break;case 54:this.$={stmt:qt[Jt],nodes:qt[Jt]};break;case 55:case 123:case 125:this.$=[qt[Jt]];break;case 56:this.$=qt[Jt-4].concat(qt[Jt]);break;case 57:this.$=[qt[Jt-2]],on.setClass(qt[Jt-2],qt[Jt]);break;case 58:this.$=qt[Jt-3],on.addVertex(qt[Jt-3],qt[Jt-1],"square");break;case 59:this.$=qt[Jt-3],on.addVertex(qt[Jt-3],qt[Jt-1],"doublecircle");break;case 60:this.$=qt[Jt-5],on.addVertex(qt[Jt-5],qt[Jt-2],"circle");break;case 61:this.$=qt[Jt-3],on.addVertex(qt[Jt-3],qt[Jt-1],"ellipse");break;case 62:this.$=qt[Jt-3],on.addVertex(qt[Jt-3],qt[Jt-1],"stadium");break;case 63:this.$=qt[Jt-3],on.addVertex(qt[Jt-3],qt[Jt-1],"subroutine");break;case 64:this.$=qt[Jt-7],on.addVertex(qt[Jt-7],qt[Jt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[qt[Jt-5],qt[Jt-3]]]));break;case 65:this.$=qt[Jt-3],on.addVertex(qt[Jt-3],qt[Jt-1],"cylinder");break;case 66:this.$=qt[Jt-3],on.addVertex(qt[Jt-3],qt[Jt-1],"round");break;case 67:this.$=qt[Jt-3],on.addVertex(qt[Jt-3],qt[Jt-1],"diamond");break;case 68:this.$=qt[Jt-5],on.addVertex(qt[Jt-5],qt[Jt-2],"hexagon");break;case 69:this.$=qt[Jt-3],on.addVertex(qt[Jt-3],qt[Jt-1],"odd");break;case 70:this.$=qt[Jt-3],on.addVertex(qt[Jt-3],qt[Jt-1],"trapezoid");break;case 71:this.$=qt[Jt-3],on.addVertex(qt[Jt-3],qt[Jt-1],"inv_trapezoid");break;case 72:this.$=qt[Jt-3],on.addVertex(qt[Jt-3],qt[Jt-1],"lean_right");break;case 73:this.$=qt[Jt-3],on.addVertex(qt[Jt-3],qt[Jt-1],"lean_left");break;case 74:this.$=qt[Jt],on.addVertex(qt[Jt]);break;case 75:qt[Jt-1].text=qt[Jt],this.$=qt[Jt-1];break;case 76:case 77:qt[Jt-2].text=qt[Jt-1],this.$=qt[Jt-2];break;case 79:var Ti=on.destructLink(qt[Jt],qt[Jt-2]);this.$={type:Ti.type,stroke:Ti.stroke,length:Ti.length,text:qt[Jt-1]};break;case 80:Ti=on.destructLink(qt[Jt]),this.$={type:Ti.type,stroke:Ti.stroke,length:Ti.length};break;case 81:this.$=qt[Jt-1];break;case 83:case 97:case 153:case 151:this.$=qt[Jt-1]+""+qt[Jt];break;case 98:case 99:this.$=qt[Jt-4],on.addClass(qt[Jt-2],qt[Jt]);break;case 100:this.$=qt[Jt-4],on.setClass(qt[Jt-2],qt[Jt]);break;case 101:case 109:this.$=qt[Jt-1],on.setClickEvent(qt[Jt-1],qt[Jt]);break;case 102:case 110:this.$=qt[Jt-3],on.setClickEvent(qt[Jt-3],qt[Jt-2]),on.setTooltip(qt[Jt-3],qt[Jt]);break;case 103:this.$=qt[Jt-2],on.setClickEvent(qt[Jt-2],qt[Jt-1],qt[Jt]);break;case 104:this.$=qt[Jt-4],on.setClickEvent(qt[Jt-4],qt[Jt-3],qt[Jt-2]),on.setTooltip(qt[Jt-4],qt[Jt]);break;case 105:case 111:this.$=qt[Jt-1],on.setLink(qt[Jt-1],qt[Jt]);break;case 106:case 112:this.$=qt[Jt-3],on.setLink(qt[Jt-3],qt[Jt-2]),on.setTooltip(qt[Jt-3],qt[Jt]);break;case 107:case 113:this.$=qt[Jt-3],on.setLink(qt[Jt-3],qt[Jt-2],qt[Jt]);break;case 108:case 114:this.$=qt[Jt-5],on.setLink(qt[Jt-5],qt[Jt-4],qt[Jt]),on.setTooltip(qt[Jt-5],qt[Jt-2]);break;case 115:this.$=qt[Jt-4],on.addVertex(qt[Jt-2],void 0,void 0,qt[Jt]);break;case 116:case 118:this.$=qt[Jt-4],on.updateLink(qt[Jt-2],qt[Jt]);break;case 117:this.$=qt[Jt-4],on.updateLink([qt[Jt-2]],qt[Jt]);break;case 119:this.$=qt[Jt-8],on.updateLinkInterpolate([qt[Jt-6]],qt[Jt-2]),on.updateLink([qt[Jt-6]],qt[Jt]);break;case 120:this.$=qt[Jt-8],on.updateLinkInterpolate(qt[Jt-6],qt[Jt-2]),on.updateLink(qt[Jt-6],qt[Jt]);break;case 121:this.$=qt[Jt-6],on.updateLinkInterpolate([qt[Jt-4]],qt[Jt]);break;case 122:this.$=qt[Jt-6],on.updateLinkInterpolate(qt[Jt-4],qt[Jt]);break;case 124:case 126:qt[Jt-2].push(qt[Jt]),this.$=qt[Jt-2];break;case 128:this.$=qt[Jt-1]+qt[Jt];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:b,16:4,21:_,22:A,24:L},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:b,16:4,21:_,22:A,24:L},d(E,D,{17:11}),{7:12,13:[1,13]},{16:14,21:_,22:A,24:L},{16:15,21:_,22:A,24:L},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:R,21:P,22:$,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:et,43:31,44:ht,46:X,48:_t,50:35,51:45,52:rt,54:46,66:at,67:bt,86:Ft,87:Tt,88:yt,89:Nt,90:xt,91:pt,95:tt,105:ft,106:q,109:kt,111:W,112:St,116:47,118:Lt,119:Ht,120:ge,121:We,122:Ee,123:fe,124:xe,125:Ie,126:Me,127:ve},{8:64,10:[1,65],15:An},d([10,15],[2,6]),d(E,[2,17]),d(E,[2,18]),d(E,[2,19]),{20:[1,68],21:[1,69],22:_e,27:67,30:70},d(en,[2,11]),d(en,[2,12]),d(en,[2,13]),d(en,[2,14]),d(en,[2,15]),d(en,[2,16]),{9:72,20:Ot,21:he,23:Qt,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:Ot,21:he,23:Qt},{9:81,20:Ot,21:he,23:Qt},{9:82,20:Ot,21:he,23:Qt},{9:83,20:Ot,21:he,23:Qt},{9:84,20:Ot,21:he,23:Qt},{9:86,20:Ot,21:he,22:[1,85],23:Qt},d(en,[2,44]),{45:[1,87]},{47:[1,88]},d(en,[2,47]),d(At,[2,54],{30:89,22:_e}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:De,52:J,66:Ce,67:ot,84:[1,97],91:Te,97:96,98:[1,94],100:[1,95],105:ue,106:Fe,109:fn,111:rn,112:Xe,115:100,117:98,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},d(en,[2,158]),d(en,[2,159]),d(en,[2,160]),d(en,[2,161]),d(kn,[2,55],{53:[1,116]}),d(ar,[2,74],{116:129,40:[1,117],52:rt,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:at,67:bt,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:pt,95:tt,105:ft,106:q,109:kt,111:W,112:St,122:Ee,123:fe,124:xe,125:Ie,126:Me,127:ve}),d(cn,[2,150]),d(cn,[2,175]),d(cn,[2,176]),d(cn,[2,177]),d(cn,[2,178]),d(cn,[2,179]),d(cn,[2,180]),d(cn,[2,181]),d(cn,[2,182]),d(cn,[2,183]),d(cn,[2,184]),d(cn,[2,185]),d(cn,[2,186]),d(cn,[2,187]),d(cn,[2,188]),d(cn,[2,189]),d(cn,[2,190]),{9:130,20:Ot,21:he,23:Qt},{11:131,14:[1,132]},d(hn,[2,8]),d(E,[2,20]),d(E,[2,26]),d(E,[2,27]),{21:[1,133]},d(Qr,[2,34],{30:134,22:_e}),d(en,[2,35]),{50:135,51:45,52:rt,54:46,66:at,67:bt,91:pt,95:tt,105:ft,106:q,109:kt,111:W,112:St,116:47,122:Ee,123:fe,124:xe,125:Ie,126:Me,127:ve},d(Lr,[2,48]),d(Lr,[2,49]),d(Lr,[2,50]),d(Cn,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:In,24:Le,26:ie,38:Qe,39:139,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},d([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),d(en,[2,36]),d(en,[2,37]),d(en,[2,38]),d(en,[2,39]),d(en,[2,40]),{22:In,24:Le,26:ie,38:Qe,39:163,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},d(Ua,D,{17:164}),d(en,[2,45]),d(en,[2,46]),d(At,[2,53],{52:Wr}),{26:De,52:J,66:Ce,67:ot,91:Te,97:166,102:[1,167],105:ue,106:Fe,109:fn,111:rn,112:Xe,115:100,117:98,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{95:[1,168],103:169,105:[1,170]},{26:De,52:J,66:Ce,67:ot,91:Te,95:[1,171],97:172,105:ue,106:Fe,109:fn,111:rn,112:Xe,115:100,117:98,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{26:De,52:J,66:Ce,67:ot,91:Te,97:173,105:ue,106:Fe,109:fn,111:rn,112:Xe,115:100,117:98,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},d(hn,[2,101],{22:[1,174],99:[1,175]}),d(hn,[2,105],{22:[1,176]}),d(hn,[2,109],{115:100,117:178,22:[1,177],26:De,52:J,66:Ce,67:ot,91:Te,105:ue,106:Fe,109:fn,111:rn,112:Xe,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve}),d(hn,[2,111],{22:[1,179]}),d(Pr,[2,152]),d(Pr,[2,154]),d(Pr,[2,155]),d(Pr,[2,156]),d(Pr,[2,157]),d(On,[2,162]),d(On,[2,163]),d(On,[2,164]),d(On,[2,165]),d(On,[2,166]),d(On,[2,167]),d(On,[2,168]),d(On,[2,169]),d(On,[2,170]),d(On,[2,171]),d(On,[2,172]),d(On,[2,173]),d(On,[2,174]),{52:rt,54:180,66:at,67:bt,91:pt,95:tt,105:ft,106:q,109:kt,111:W,112:St,116:47,122:Ee,123:fe,124:xe,125:Ie,126:Me,127:ve},{22:In,24:Le,26:ie,38:Qe,39:181,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,39:182,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,39:184,42:Vt,52:J,57:[1,183],66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,39:185,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,39:186,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,39:187,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{66:[1,188]},{22:In,24:Le,26:ie,38:Qe,39:189,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,39:190,42:Vt,52:J,66:Ce,67:ot,71:[1,191],73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,39:192,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,39:193,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,39:194,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},d(cn,[2,151]),d(Qi,[2,3]),{8:195,15:An},{15:[2,7]},d(E,[2,28]),d(Qr,[2,33]),d(At,[2,51],{30:196,22:_e}),d(Cn,[2,75],{22:[1,197]}),{22:[1,198]},{22:In,24:Le,26:ie,38:Qe,39:199,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,82:[1,200],83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},d(On,[2,82]),d(On,[2,84]),d(On,[2,140]),d(On,[2,141]),d(On,[2,142]),d(On,[2,143]),d(On,[2,144]),d(On,[2,145]),d(On,[2,146]),d(On,[2,147]),d(On,[2,148]),d(On,[2,149]),d(On,[2,85]),d(On,[2,86]),d(On,[2,87]),d(On,[2,88]),d(On,[2,89]),d(On,[2,90]),d(On,[2,91]),d(On,[2,92]),d(On,[2,93]),d(On,[2,94]),d(On,[2,95]),{9:203,20:Ot,21:he,22:In,23:Qt,24:Le,26:ie,38:Qe,40:[1,202],42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{18:18,19:19,20:R,21:P,22:$,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:et,42:[1,204],43:31,44:ht,46:X,48:_t,50:35,51:45,52:rt,54:46,66:at,67:bt,86:Ft,87:Tt,88:yt,89:Nt,90:xt,91:pt,95:tt,105:ft,106:q,109:kt,111:W,112:St,116:47,118:Lt,119:Ht,120:ge,121:We,122:Ee,123:fe,124:xe,125:Ie,126:Me,127:ve},{22:_e,30:205},{22:[1,206],26:De,52:J,66:Ce,67:ot,91:Te,105:ue,106:Fe,109:fn,111:rn,112:Xe,115:100,117:178,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},d(Qn,[2,123]),{22:[1,211]},{22:[1,212],26:De,52:J,66:Ce,67:ot,91:Te,105:ue,106:Fe,109:fn,111:rn,112:Xe,115:100,117:178,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:[1,213],26:De,52:J,66:Ce,67:ot,91:Te,105:ue,106:Fe,109:fn,111:rn,112:Xe,115:100,117:178,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{84:[1,214]},d(hn,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},d(Pr,[2,153]),{84:[1,219],101:[1,220]},d(kn,[2,57],{116:129,52:rt,66:at,67:bt,91:pt,95:tt,105:ft,106:q,109:kt,111:W,112:St,122:Ee,123:fe,124:xe,125:Ie,126:Me,127:ve}),{22:In,24:Le,26:ie,38:Qe,41:[1,221],42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,42:Vt,52:J,56:[1,222],66:Ce,67:ot,73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,39:223,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,42:Vt,52:J,58:[1,224],66:Ce,67:ot,73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,42:Vt,52:J,60:[1,225],66:Ce,67:ot,73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,42:Vt,52:J,62:[1,226],66:Ce,67:ot,73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,42:Vt,52:J,64:[1,227],66:Ce,67:ot,73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{67:[1,228]},{22:In,24:Le,26:ie,38:Qe,42:Vt,52:J,66:Ce,67:ot,70:[1,229],73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,42:Vt,52:J,66:Ce,67:ot,72:[1,230],73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,39:231,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,41:[1,232],42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,42:Vt,52:J,66:Ce,67:ot,73:Nn,75:[1,233],77:[1,234],81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{22:In,24:Le,26:ie,38:Qe,42:Vt,52:J,66:Ce,67:ot,73:Nn,75:[1,236],77:[1,235],81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{9:237,20:Ot,21:he,23:Qt},d(At,[2,52],{52:Wr}),d(Cn,[2,77]),d(Cn,[2,76]),{22:In,24:Le,26:ie,38:Qe,42:Vt,52:J,66:Ce,67:ot,68:[1,238],73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},d(Cn,[2,79]),d(On,[2,83]),{22:In,24:Le,26:ie,38:Qe,39:239,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},d(Ua,D,{17:240}),d(en,[2,43]),{51:241,52:rt,54:46,66:at,67:bt,91:pt,95:tt,105:ft,106:q,109:kt,111:W,112:St,116:47,122:Ee,123:fe,124:xe,125:Ie,126:Me,127:ve},{22:Yr,66:Gr,67:Or,86:Vr,96:242,102:Zr,105:jr,107:243,108:244,109:ti,110:or,111:pi,112:Sr,113:ei},{22:Yr,66:Gr,67:Or,86:Vr,96:256,102:Zr,105:jr,107:243,108:244,109:ti,110:or,111:pi,112:Sr,113:ei},{22:Yr,66:Gr,67:Or,86:Vr,96:257,102:Zr,104:[1,258],105:jr,107:243,108:244,109:ti,110:or,111:pi,112:Sr,113:ei},{22:Yr,66:Gr,67:Or,86:Vr,96:259,102:Zr,104:[1,260],105:jr,107:243,108:244,109:ti,110:or,111:pi,112:Sr,113:ei},{105:[1,261]},{22:Yr,66:Gr,67:Or,86:Vr,96:262,102:Zr,105:jr,107:243,108:244,109:ti,110:or,111:pi,112:Sr,113:ei},{22:Yr,66:Gr,67:Or,86:Vr,96:263,102:Zr,105:jr,107:243,108:244,109:ti,110:or,111:pi,112:Sr,113:ei},{26:De,52:J,66:Ce,67:ot,91:Te,97:264,105:ue,106:Fe,109:fn,111:rn,112:Xe,115:100,117:98,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},d(hn,[2,102]),{84:[1,265]},d(hn,[2,106],{22:[1,266]}),d(hn,[2,107]),d(hn,[2,110]),d(hn,[2,112],{22:[1,267]}),d(hn,[2,113]),d(ar,[2,58]),d(ar,[2,59]),{22:In,24:Le,26:ie,38:Qe,42:Vt,52:J,58:[1,268],66:Ce,67:ot,73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},d(ar,[2,66]),d(ar,[2,61]),d(ar,[2,62]),d(ar,[2,63]),{66:[1,269]},d(ar,[2,65]),d(ar,[2,67]),{22:In,24:Le,26:ie,38:Qe,42:Vt,52:J,66:Ce,67:ot,72:[1,270],73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},d(ar,[2,69]),d(ar,[2,70]),d(ar,[2,72]),d(ar,[2,71]),d(ar,[2,73]),d(Qi,[2,4]),d([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:In,24:Le,26:ie,38:Qe,41:[1,271],42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{18:18,19:19,20:R,21:P,22:$,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:et,42:[1,272],43:31,44:ht,46:X,48:_t,50:35,51:45,52:rt,54:46,66:at,67:bt,86:Ft,87:Tt,88:yt,89:Nt,90:xt,91:pt,95:tt,105:ft,106:q,109:kt,111:W,112:St,116:47,118:Lt,119:Ht,120:ge,121:We,122:Ee,123:fe,124:xe,125:Ie,126:Me,127:ve},d(kn,[2,56]),d(hn,[2,115],{106:ki}),d(za,[2,125],{108:274,22:Yr,66:Gr,67:Or,86:Vr,102:Zr,105:jr,109:ti,110:or,111:pi,112:Sr,113:ei}),d(Dr,[2,127]),d(Dr,[2,129]),d(Dr,[2,130]),d(Dr,[2,131]),d(Dr,[2,132]),d(Dr,[2,133]),d(Dr,[2,134]),d(Dr,[2,135]),d(Dr,[2,136]),d(Dr,[2,137]),d(Dr,[2,138]),d(Dr,[2,139]),d(hn,[2,116],{106:ki}),d(hn,[2,117],{106:ki}),{22:[1,275]},d(hn,[2,118],{106:ki}),{22:[1,276]},d(Qn,[2,124]),d(hn,[2,98],{106:ki}),d(hn,[2,99],{106:ki}),d(hn,[2,100],{115:100,117:178,26:De,52:J,66:Ce,67:ot,91:Te,105:ue,106:Fe,109:fn,111:rn,112:Xe,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve}),d(hn,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:Ot,21:he,23:Qt},d(en,[2,42]),{22:Yr,66:Gr,67:Or,86:Vr,102:Zr,105:jr,107:283,108:244,109:ti,110:or,111:pi,112:Sr,113:ei},d(Dr,[2,128]),{26:De,52:J,66:Ce,67:ot,91:Te,97:284,105:ue,106:Fe,109:fn,111:rn,112:Xe,115:100,117:98,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{26:De,52:J,66:Ce,67:ot,91:Te,97:285,105:ue,106:Fe,109:fn,111:rn,112:Xe,115:100,117:98,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},d(hn,[2,108]),d(hn,[2,114]),d(ar,[2,60]),{22:In,24:Le,26:ie,38:Qe,39:286,42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:140,84:vn,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},d(ar,[2,68]),d(Ua,D,{17:287}),d(za,[2,126],{108:274,22:Yr,66:Gr,67:Or,86:Vr,102:Zr,105:jr,109:ti,110:or,111:pi,112:Sr,113:ei}),d(hn,[2,121],{115:100,117:178,22:[1,288],26:De,52:J,66:Ce,67:ot,91:Te,105:ue,106:Fe,109:fn,111:rn,112:Xe,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve}),d(hn,[2,122],{115:100,117:178,22:[1,289],26:De,52:J,66:Ce,67:ot,91:Te,105:ue,106:Fe,109:fn,111:rn,112:Xe,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve}),{22:In,24:Le,26:ie,38:Qe,41:[1,290],42:Vt,52:J,66:Ce,67:ot,73:Nn,81:Ct,83:201,85:151,86:Rt,87:Un,88:Yn,89:Xn,90:Hn,91:Vn,92:Kn,94:142,95:Mn,105:ue,106:Fe,109:jn,111:rn,112:Xe,113:Gn,114:Zn,115:148,122:ae,123:Be,124:pe,125:Pe,126:ye,127:Ve},{18:18,19:19,20:R,21:P,22:$,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:et,42:[1,291],43:31,44:ht,46:X,48:_t,50:35,51:45,52:rt,54:46,66:at,67:bt,86:Ft,87:Tt,88:yt,89:Nt,90:xt,91:pt,95:tt,105:ft,106:q,109:kt,111:W,112:St,116:47,118:Lt,119:Ht,120:ge,121:We,122:Ee,123:fe,124:xe,125:Ie,126:Me,127:ve},{22:Yr,66:Gr,67:Or,86:Vr,96:292,102:Zr,105:jr,107:243,108:244,109:ti,110:or,111:pi,112:Sr,113:ei},{22:Yr,66:Gr,67:Or,86:Vr,96:293,102:Zr,105:jr,107:243,108:244,109:ti,110:or,111:pi,112:Sr,113:ei},d(ar,[2,64]),d(en,[2,41]),d(hn,[2,119],{106:ki}),d(hn,[2,120],{106:ki})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(Tn,wr){if(!wr.recoverable){var tr=new Error(Tn);throw tr.hash=wr,tr}this.trace(Tn)},parse:function(Tn){var wr=this,tr=[0],on=[],sr=[null],qt=[],gi=this.table,Jt="",Ti=0,Ya=0,$r=0,Co=2,ya=1,Br=qt.slice.call(arguments,1),ni=Object.create(this.lexer),yi={yy:{}};for(var Ca in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ca)&&(yi.yy[Ca]=this.yy[Ca]);ni.setInput(Tn,yi.yy),yi.yy.lexer=ni,yi.yy.parser=this,ni.yylloc===void 0&&(ni.yylloc={});var Vi=ni.yylloc;qt.push(Vi);var Si=ni.options&&ni.options.ranges;function ma(){var jt;return typeof(jt=on.pop()||ni.lex()||ya)!="number"&&(jt instanceof Array&&(jt=(on=jt).pop()),jt=wr.symbols_[jt]||jt),jt}typeof yi.yy.parseError=="function"?this.parseError=yi.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ri,ja,Bn,wi,Na,$i,xr,oa,Li,si={};;){if(Bn=tr[tr.length-1],this.defaultActions[Bn]?wi=this.defaultActions[Bn]:(ri==null&&(ri=ma()),wi=gi[Bn]&&gi[Bn][ri]),wi===void 0||!wi.length||!wi[0]){var sa="";for($i in Li=[],gi[Bn])this.terminals_[$i]&&$i>Co&&Li.push("'"+this.terminals_[$i]+"'");sa=ni.showPosition?"Parse error on line "+(Ti+1)+`:
|
|
`+ni.showPosition()+`
|
|
Expecting `+Li.join(", ")+", got '"+(this.terminals_[ri]||ri)+"'":"Parse error on line "+(Ti+1)+": Unexpected "+(ri==ya?"end of input":"'"+(this.terminals_[ri]||ri)+"'"),this.parseError(sa,{text:ni.match,token:this.terminals_[ri]||ri,line:ni.yylineno,loc:Vi,expected:Li})}if(wi[0]instanceof Array&&wi.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Bn+", token: "+ri);switch(wi[0]){case 1:tr.push(ri),sr.push(ni.yytext),qt.push(ni.yylloc),tr.push(wi[1]),ri=null,ja?(ri=ja,ja=null):(Ya=ni.yyleng,Jt=ni.yytext,Ti=ni.yylineno,Vi=ni.yylloc,$r>0);break;case 2:if(xr=this.productions_[wi[1]][1],si.$=sr[sr.length-xr],si._$={first_line:qt[qt.length-(xr||1)].first_line,last_line:qt[qt.length-1].last_line,first_column:qt[qt.length-(xr||1)].first_column,last_column:qt[qt.length-1].last_column},Si&&(si._$.range=[qt[qt.length-(xr||1)].range[0],qt[qt.length-1].range[1]]),(Na=this.performAction.apply(si,[Jt,Ya,Ti,yi.yy,wi[1],sr,qt].concat(Br)))!==void 0)return Na;xr&&(tr=tr.slice(0,-1*xr*2),sr=sr.slice(0,-1*xr),qt=qt.slice(0,-1*xr)),tr.push(this.productions_[wi[1]][0]),sr.push(si.$),qt.push(si._$),oa=gi[tr[tr.length-2]][tr[tr.length-1]],tr.push(oa);break;case 3:return!0}}return!0}},Fi={EOF:1,parseError:function(Tn,wr){if(!this.yy.parser)throw new Error(Tn);this.yy.parser.parseError(Tn,wr)},setInput:function(Tn,wr){return this.yy=wr||this.yy||{},this._input=Tn,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Tn=this._input[0];return this.yytext+=Tn,this.yyleng++,this.offset++,this.match+=Tn,this.matched+=Tn,Tn.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),Tn},unput:function(Tn){var wr=Tn.length,tr=Tn.split(/(?:\r\n?|\n)/g);this._input=Tn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-wr),this.offset-=wr;var on=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),tr.length-1&&(this.yylineno-=tr.length-1);var sr=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:tr?(tr.length===on.length?this.yylloc.first_column:0)+on[on.length-tr.length].length-tr[0].length:this.yylloc.first_column-wr},this.options.ranges&&(this.yylloc.range=[sr[0],sr[0]+this.yyleng-wr]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Tn){this.unput(this.match.slice(Tn))},pastInput:function(){var Tn=this.matched.substr(0,this.matched.length-this.match.length);return(Tn.length>20?"...":"")+Tn.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Tn=this.match;return Tn.length<20&&(Tn+=this._input.substr(0,20-Tn.length)),(Tn.substr(0,20)+(Tn.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Tn=this.pastInput(),wr=new Array(Tn.length+1).join("-");return Tn+this.upcomingInput()+`
|
|
`+wr+"^"},test_match:function(Tn,wr){var tr,on,sr;if(this.options.backtrack_lexer&&(sr={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&&(sr.yylloc.range=this.yylloc.range.slice(0))),(on=Tn[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=on.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:on?on[on.length-1].length-on[on.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Tn[0].length},this.yytext+=Tn[0],this.match+=Tn[0],this.matches=Tn,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(Tn[0].length),this.matched+=Tn[0],tr=this.performAction.call(this,this.yy,this,wr,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),tr)return tr;if(this._backtrack){for(var qt in sr)this[qt]=sr[qt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Tn,wr,tr,on;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var sr=this._currentRules(),qt=0;qt<sr.length;qt++)if((tr=this._input.match(this.rules[sr[qt]]))&&(!wr||tr[0].length>wr[0].length)){if(wr=tr,on=qt,this.options.backtrack_lexer){if((Tn=this.test_match(tr,sr[qt]))!==!1)return Tn;if(this._backtrack){wr=!1;continue}return!1}if(!this.options.flex)break}return wr?(Tn=this.test_match(wr,sr[on]))!==!1&&Tn:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Tn){this.conditionStack.push(Tn)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Tn){return(Tn=this.conditionStack.length-1-Math.abs(Tn||0))>=0?this.conditionStack[Tn]:"INITIAL"},pushState:function(Tn){this.begin(Tn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Tn,wr,tr,on){switch(tr){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:case 24:case 27:case 30:case 33:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 25:return 100;case 26:this.begin("callbackname");break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 31:return 99;case 32:this.begin("click");break;case 34:return 90;case 35:case 36:return Tn.lex.firstGraph()&&this.begin("dir"),24;case 37:return 38;case 38:return 42;case 39:case 40:case 41:case 42:return 101;case 43:return this.popState(),25;case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:return this.popState(),26;case 54:return 118;case 55:return 119;case 56:return 120;case 57:return 121;case 58:return 105;case 59:return 111;case 60:return 53;case 61:return 67;case 62:return 52;case 63:return 20;case 64:return 106;case 65:return 126;case 66:case 67:case 68:return 82;case 69:case 70:case 71:return 81;case 72:return 59;case 73:return 60;case 74:return 61;case 75:return 62;case 76:return 63;case 77:return 64;case 78:return 65;case 79:return 69;case 80:return 70;case 81:return 55;case 82:return 56;case 83:return 109;case 84:return 112;case 85:return 127;case 86:return 124;case 87:return 113;case 88:case 89:return 125;case 90:return 114;case 91:return 73;case 92:return 92;case 93:return"SEP";case 94:return 91;case 95:return 66;case 96:return 75;case 97:return 74;case 98:return 77;case 99:return 76;case 100:return 122;case 101:return 123;case 102:return 68;case 103:return 57;case 104:return 58;case 105:return 40;case 106:return 41;case 107:return 71;case 108:return 72;case 109:return 133;case 110:return 21;case 111:return 22;case 112:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?: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]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\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:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[43,44,45,46,47,48,49,50,51,52,53],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,54,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,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],inclusive:!0}}};function ta(){this.yy={}}return ga.lexer=Fi,ta.prototype=ga,ga.Parser=ta,new ta}();k.parser=m,k.Parser=m.Parser,k.parse=function(){return m.parse.apply(m,arguments)},k.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var b=h(5354).readFileSync(h(6470).normalize(d[1]),"utf8");return k.parser.parse(b)},h.c[h.s]===f&&k.main(process.argv.slice(1))},9959:(f,k,h)=>{f=h.nmd(f);var m=function(){var d=function(pt,tt,ft,q){for(ft=ft||{},q=pt.length;q--;ft[pt[q]]=tt);return ft},b=[1,3],_=[1,5],A=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],L=[1,15],E=[1,16],D=[1,17],R=[1,18],P=[1,19],$=[1,20],K=[1,21],et=[1,22],ht=[1,23],X=[1,24],_t=[1,25],rt=[1,26],at=[1,28],bt=[1,30],Ft=[1,33],Tt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],yt={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,clickStatement:26,taskTxt:27,taskData:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,click:34,callbackname:35,callbackargs:36,href:37,clickStatementDebug:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"includes",18:"todayMarker",19:"title",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"taskTxt",28:"taskData",32:":",34:"click",35:"callbackname",36:"callbackargs",37:"href",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[26,2],[26,3],[26,3],[26,4],[26,3],[26,4],[26,2],[38,2],[38,3],[38,3],[38,4],[38,3],[38,4],[38,2],[29,1],[30,1],[33,1],[31,1]],performAction:function(pt,tt,ft,q,kt,W,St){var Lt=W.length-1;switch(kt){case 2:return W[Lt-1];case 3:case 7:case 8:this.$=[];break;case 4:W[Lt-1].push(W[Lt]),this.$=W[Lt-1];break;case 5:case 6:this.$=W[Lt];break;case 9:q.setDateFormat(W[Lt].substr(11)),this.$=W[Lt].substr(11);break;case 10:q.enableInclusiveEndDates(),this.$=W[Lt].substr(18);break;case 11:q.TopAxis(),this.$=W[Lt].substr(8);break;case 12:q.setAxisFormat(W[Lt].substr(11)),this.$=W[Lt].substr(11);break;case 13:q.setExcludes(W[Lt].substr(9)),this.$=W[Lt].substr(9);break;case 14:q.setIncludes(W[Lt].substr(9)),this.$=W[Lt].substr(9);break;case 15:q.setTodayMarker(W[Lt].substr(12)),this.$=W[Lt].substr(12);break;case 16:q.setDiagramTitle(W[Lt].substr(6)),this.$=W[Lt].substr(6);break;case 17:this.$=W[Lt].trim(),q.setAccTitle(this.$);break;case 18:case 19:this.$=W[Lt].trim(),q.setAccDescription(this.$);break;case 20:q.addSection(W[Lt].substr(8)),this.$=W[Lt].substr(8);break;case 22:q.addTask(W[Lt-1],W[Lt]),this.$="task";break;case 26:this.$=W[Lt-1],q.setClickEvent(W[Lt-1],W[Lt],null);break;case 27:this.$=W[Lt-2],q.setClickEvent(W[Lt-2],W[Lt-1],W[Lt]);break;case 28:this.$=W[Lt-2],q.setClickEvent(W[Lt-2],W[Lt-1],null),q.setLink(W[Lt-2],W[Lt]);break;case 29:this.$=W[Lt-3],q.setClickEvent(W[Lt-3],W[Lt-2],W[Lt-1]),q.setLink(W[Lt-3],W[Lt]);break;case 30:this.$=W[Lt-2],q.setClickEvent(W[Lt-2],W[Lt],null),q.setLink(W[Lt-2],W[Lt-1]);break;case 31:this.$=W[Lt-3],q.setClickEvent(W[Lt-3],W[Lt-1],W[Lt]),q.setLink(W[Lt-3],W[Lt-2]);break;case 32:this.$=W[Lt-1],q.setLink(W[Lt-1],W[Lt]);break;case 33:case 39:this.$=W[Lt-1]+" "+W[Lt];break;case 34:case 35:case 37:this.$=W[Lt-2]+" "+W[Lt-1]+" "+W[Lt];break;case 36:case 38:this.$=W[Lt-3]+" "+W[Lt-2]+" "+W[Lt-1]+" "+W[Lt];break;case 40:q.parseDirective("%%{","open_directive");break;case 41:q.parseDirective(W[Lt],"type_directive");break;case 42:W[Lt]=W[Lt].trim().replace(/'/g,'"'),q.parseDirective(W[Lt],"arg_directive");break;case 43:q.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:b,29:4,39:_},{1:[3]},{3:6,4:2,5:b,29:4,39:_},d(A,[2,3],{6:7}),{30:8,40:[1,9]},{40:[2,40]},{1:[2,1]},{4:29,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:L,13:E,14:D,15:R,16:P,17:$,18:K,19:et,20:ht,22:X,24:_t,25:rt,26:27,27:at,29:4,34:bt,39:_},{31:31,32:[1,32],42:Ft},d([32,42],[2,41]),d(A,[2,8],{1:[2,2]}),d(A,[2,4]),{4:29,10:34,12:L,13:E,14:D,15:R,16:P,17:$,18:K,19:et,20:ht,22:X,24:_t,25:rt,26:27,27:at,29:4,34:bt,39:_},d(A,[2,6]),d(A,[2,7]),d(A,[2,9]),d(A,[2,10]),d(A,[2,11]),d(A,[2,12]),d(A,[2,13]),d(A,[2,14]),d(A,[2,15]),d(A,[2,16]),{21:[1,35]},{23:[1,36]},d(A,[2,19]),d(A,[2,20]),d(A,[2,21]),{28:[1,37]},d(A,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},d(A,[2,5]),d(A,[2,17]),d(A,[2,18]),d(A,[2,22]),d(A,[2,26],{36:[1,43],37:[1,44]}),d(A,[2,32],{35:[1,45]}),d(Tt,[2,24]),{31:46,42:Ft},{42:[2,42]},d(A,[2,27],{37:[1,47]}),d(A,[2,28]),d(A,[2,30],{36:[1,48]}),{11:[1,49]},d(A,[2,29]),d(A,[2,31]),d(Tt,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]},parseError:function(pt,tt){if(!tt.recoverable){var ft=new Error(pt);throw ft.hash=tt,ft}this.trace(pt)},parse:function(pt){var tt=this,ft=[0],q=[],kt=[null],W=[],St=this.table,Lt="",Ht=0,ge=0,We=0,Ee=2,fe=1,xe=W.slice.call(arguments,1),Ie=Object.create(this.lexer),Me={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(Me.yy[ve]=this.yy[ve]);Ie.setInput(pt,Me.yy),Me.yy.lexer=Ie,Me.yy.parser=this,Ie.yylloc===void 0&&(Ie.yylloc={});var An=Ie.yylloc;W.push(An);var _e=Ie.options&&Ie.options.ranges;function en(){var fn;return typeof(fn=q.pop()||Ie.lex()||fe)!="number"&&(fn instanceof Array&&(fn=(q=fn).pop()),fn=tt.symbols_[fn]||fn),fn}typeof Me.yy.parseError=="function"?this.parseError=Me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ot,he,Qt,At,De,J,Ce,ot,Te,ue={};;){if(Qt=ft[ft.length-1],this.defaultActions[Qt]?At=this.defaultActions[Qt]:(Ot==null&&(Ot=en()),At=St[Qt]&&St[Qt][Ot]),At===void 0||!At.length||!At[0]){var Fe="";for(J in Te=[],St[Qt])this.terminals_[J]&&J>Ee&&Te.push("'"+this.terminals_[J]+"'");Fe=Ie.showPosition?"Parse error on line "+(Ht+1)+`:
|
|
`+Ie.showPosition()+`
|
|
Expecting `+Te.join(", ")+", got '"+(this.terminals_[Ot]||Ot)+"'":"Parse error on line "+(Ht+1)+": Unexpected "+(Ot==fe?"end of input":"'"+(this.terminals_[Ot]||Ot)+"'"),this.parseError(Fe,{text:Ie.match,token:this.terminals_[Ot]||Ot,line:Ie.yylineno,loc:An,expected:Te})}if(At[0]instanceof Array&&At.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Qt+", token: "+Ot);switch(At[0]){case 1:ft.push(Ot),kt.push(Ie.yytext),W.push(Ie.yylloc),ft.push(At[1]),Ot=null,he?(Ot=he,he=null):(ge=Ie.yyleng,Lt=Ie.yytext,Ht=Ie.yylineno,An=Ie.yylloc,We>0);break;case 2:if(Ce=this.productions_[At[1]][1],ue.$=kt[kt.length-Ce],ue._$={first_line:W[W.length-(Ce||1)].first_line,last_line:W[W.length-1].last_line,first_column:W[W.length-(Ce||1)].first_column,last_column:W[W.length-1].last_column},_e&&(ue._$.range=[W[W.length-(Ce||1)].range[0],W[W.length-1].range[1]]),(De=this.performAction.apply(ue,[Lt,ge,Ht,Me.yy,At[1],kt,W].concat(xe)))!==void 0)return De;Ce&&(ft=ft.slice(0,-1*Ce*2),kt=kt.slice(0,-1*Ce),W=W.slice(0,-1*Ce)),ft.push(this.productions_[At[1]][0]),kt.push(ue.$),W.push(ue._$),ot=St[ft[ft.length-2]][ft[ft.length-1]],ft.push(ot);break;case 3:return!0}}return!0}},Nt={EOF:1,parseError:function(pt,tt){if(!this.yy.parser)throw new Error(pt);this.yy.parser.parseError(pt,tt)},setInput:function(pt,tt){return this.yy=tt||this.yy||{},this._input=pt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var pt=this._input[0];return this.yytext+=pt,this.yyleng++,this.offset++,this.match+=pt,this.matched+=pt,pt.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),pt},unput:function(pt){var tt=pt.length,ft=pt.split(/(?:\r\n?|\n)/g);this._input=pt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-tt),this.offset-=tt;var q=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),ft.length-1&&(this.yylineno-=ft.length-1);var kt=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:ft?(ft.length===q.length?this.yylloc.first_column:0)+q[q.length-ft.length].length-ft[0].length:this.yylloc.first_column-tt},this.options.ranges&&(this.yylloc.range=[kt[0],kt[0]+this.yyleng-tt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(pt){this.unput(this.match.slice(pt))},pastInput:function(){var pt=this.matched.substr(0,this.matched.length-this.match.length);return(pt.length>20?"...":"")+pt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var pt=this.match;return pt.length<20&&(pt+=this._input.substr(0,20-pt.length)),(pt.substr(0,20)+(pt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var pt=this.pastInput(),tt=new Array(pt.length+1).join("-");return pt+this.upcomingInput()+`
|
|
`+tt+"^"},test_match:function(pt,tt){var ft,q,kt;if(this.options.backtrack_lexer&&(kt={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&&(kt.yylloc.range=this.yylloc.range.slice(0))),(q=pt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=q.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:q?q[q.length-1].length-q[q.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+pt[0].length},this.yytext+=pt[0],this.match+=pt[0],this.matches=pt,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(pt[0].length),this.matched+=pt[0],ft=this.performAction.call(this,this.yy,this,tt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ft)return ft;if(this._backtrack){for(var W in kt)this[W]=kt[W];return!1}return!1},next:function(){if(this.done)return this.EOF;var pt,tt,ft,q;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var kt=this._currentRules(),W=0;W<kt.length;W++)if((ft=this._input.match(this.rules[kt[W]]))&&(!tt||ft[0].length>tt[0].length)){if(tt=ft,q=W,this.options.backtrack_lexer){if((pt=this.test_match(ft,kt[W]))!==!1)return pt;if(this._backtrack){tt=!1;continue}return!1}if(!this.options.flex)break}return tt?(pt=this.test_match(tt,kt[q]))!==!1&&pt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(pt){this.conditionStack.push(pt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(pt){return(pt=this.conditionStack.length-1-Math.abs(pt||0))>=0?this.conditionStack[pt]:"INITIAL"},pushState:function(pt){this.begin(pt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(pt,tt,ft,q){switch(ft){case 0:return this.begin("open_directive"),39;case 1:return this.begin("type_directive"),40;case 2:return this.popState(),this.begin("arg_directive"),32;case 3:return this.popState(),this.popState(),42;case 4:return 41;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin("href");break;case 21:return 37;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 35;case 27:return 36;case 28:this.begin("click");break;case 30:return 34;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 17;case 37:return 16;case 38:return 18;case 39:return"date";case 40:return 19;case 41:return"accDescription";case 42:return 25;case 43:return 27;case 44:return 28;case 45:return 32;case 46:return 7;case 47:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/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,/^(?:%[^\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,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/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:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],inclusive:!0}}};function xt(){this.yy={}}return yt.lexer=Nt,xt.prototype=yt,yt.Parser=xt,new xt}();k.parser=m,k.Parser=m.Parser,k.parse=function(){return m.parse.apply(m,arguments)},k.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var b=h(6878).readFileSync(h(6470).normalize(d[1]),"utf8");return k.parser.parse(b)},h.c[h.s]===f&&k.main(process.argv.slice(1))},2553:(f,k,h)=>{f=h.nmd(f);var m=function(){var d=function(Nt,xt,pt,tt){for(pt=pt||{},tt=Nt.length;tt--;pt[Nt[tt]]=xt);return pt},b=[1,4],_=[1,7],A=[1,5],L=[1,9],E=[1,6],D=[2,6],R=[1,16],P=[6,8,14,20,22,24,25,27,29,32,35,37,49,53],$=[8,14,20,22,24,25,27,29,32,35,37],K=[8,13,14,20,22,24,25,27,29,32,35,37],et=[1,26],ht=[6,8,14,49,53],X=[8,14,53],_t=[1,64],rt=[1,65],at=[1,66],bt=[8,14,33,36,41,53],Ft={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ID:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,MERGE:35,COMMIT_TAG:36,COMMIT:37,commit_arg:38,COMMIT_TYPE:39,commitType:40,COMMIT_MSG:41,NORMAL:42,REVERSE:43,HIGHLIGHT:44,openDirective:45,typeDirective:46,closeDirective:47,argDirective:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,";":53,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",28:"ID",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"MERGE",36:"COMMIT_TAG",37:"COMMIT",39:"COMMIT_TYPE",41:"COMMIT_MSG",42:"NORMAL",43:"REVERSE",44:"HIGHLIGHT",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive",53:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[18,2],[18,4],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[38,0],[38,1],[40,1],[40,1],[40,1],[5,3],[5,5],[45,1],[46,1],[48,1],[47,1],[4,1],[4,1],[4,1]],performAction:function(Nt,xt,pt,tt,ft,q,kt){var W=q.length-1;switch(ft){case 3:return q[W];case 4:return q[W-1];case 5:return tt.setDirection(q[W-3]),q[W-1];case 7:tt.setOptions(q[W-1]),this.$=q[W];break;case 8:q[W-1]+=q[W],this.$=q[W-1];break;case 10:this.$=[];break;case 11:q[W-1].push(q[W]),this.$=q[W-1];break;case 12:this.$=q[W-1];break;case 17:this.$=q[W].trim(),tt.setAccTitle(this.$);break;case 18:case 19:this.$=q[W].trim(),tt.setAccDescription(this.$);break;case 20:tt.addSection(q[W].substr(8)),this.$=q[W].substr(8);break;case 22:tt.checkout(q[W]);break;case 23:tt.branch(q[W]);break;case 24:tt.branch(q[W-2],q[W]);break;case 25:tt.cherryPick(q[W]);break;case 26:tt.merge(q[W]);break;case 27:tt.merge(q[W-2],q[W]);break;case 28:tt.commit(q[W]);break;case 29:tt.commit("","",tt.commitType.NORMAL,q[W]);break;case 30:tt.commit("","",q[W],"");break;case 31:tt.commit("","",q[W],q[W-2]);break;case 32:tt.commit("","",q[W-2],q[W]);break;case 33:tt.commit("",q[W],tt.commitType.NORMAL,"");break;case 34:tt.commit("",q[W-2],tt.commitType.NORMAL,q[W]);break;case 35:tt.commit("",q[W],tt.commitType.NORMAL,q[W-2]);break;case 36:tt.commit("",q[W-2],q[W],"");break;case 37:tt.commit("",q[W],q[W-2],"");break;case 38:tt.commit("",q[W-4],q[W-2],q[W]);break;case 39:tt.commit("",q[W-4],q[W],q[W-2]);break;case 40:tt.commit("",q[W-2],q[W-4],q[W]);break;case 41:tt.commit("",q[W],q[W-4],q[W-2]);break;case 42:tt.commit("",q[W],q[W-2],q[W-4]);break;case 43:tt.commit("",q[W-2],q[W],q[W-4]);break;case 44:tt.commit(q[W],"",tt.commitType.NORMAL,"");break;case 45:tt.commit(q[W],"",tt.commitType.NORMAL,q[W-2]);break;case 46:tt.commit(q[W-2],"",tt.commitType.NORMAL,q[W]);break;case 47:tt.commit(q[W-2],"",q[W],"");break;case 48:tt.commit(q[W],"",q[W-2],"");break;case 49:tt.commit(q[W],q[W-2],tt.commitType.NORMAL,"");break;case 50:tt.commit(q[W-2],q[W],tt.commitType.NORMAL,"");break;case 51:tt.commit(q[W-4],"",q[W-2],q[W]);break;case 52:tt.commit(q[W-4],"",q[W],q[W-2]);break;case 53:tt.commit(q[W-2],"",q[W-4],q[W]);break;case 54:tt.commit(q[W],"",q[W-4],q[W-2]);break;case 55:tt.commit(q[W],"",q[W-2],q[W-4]);break;case 56:tt.commit(q[W-2],"",q[W],q[W-4]);break;case 57:tt.commit(q[W-4],q[W],q[W-2],"");break;case 58:tt.commit(q[W-4],q[W-2],q[W],"");break;case 59:tt.commit(q[W-2],q[W],q[W-4],"");break;case 60:tt.commit(q[W],q[W-2],q[W-4],"");break;case 61:tt.commit(q[W],q[W-4],q[W-2],"");break;case 62:tt.commit(q[W-2],q[W-4],q[W],"");break;case 63:tt.commit(q[W-4],q[W],tt.commitType.NORMAL,q[W-2]);break;case 64:tt.commit(q[W-4],q[W-2],tt.commitType.NORMAL,q[W]);break;case 65:tt.commit(q[W-2],q[W],tt.commitType.NORMAL,q[W-4]);break;case 66:tt.commit(q[W],q[W-2],tt.commitType.NORMAL,q[W-4]);break;case 67:tt.commit(q[W],q[W-4],tt.commitType.NORMAL,q[W-2]);break;case 68:tt.commit(q[W-2],q[W-4],tt.commitType.NORMAL,q[W]);break;case 69:tt.commit(q[W-6],q[W-4],q[W-2],q[W]);break;case 70:tt.commit(q[W-6],q[W-4],q[W],q[W-2]);break;case 71:tt.commit(q[W-6],q[W-2],q[W-4],q[W]);break;case 72:tt.commit(q[W-6],q[W],q[W-4],q[W-2]);break;case 73:tt.commit(q[W-6],q[W-2],q[W],q[W-4]);break;case 74:tt.commit(q[W-6],q[W],q[W-2],q[W-4]);break;case 75:tt.commit(q[W-4],q[W-6],q[W-2],q[W]);break;case 76:tt.commit(q[W-4],q[W-6],q[W],q[W-2]);break;case 77:tt.commit(q[W-2],q[W-6],q[W-4],q[W]);break;case 78:tt.commit(q[W],q[W-6],q[W-4],q[W-2]);break;case 79:tt.commit(q[W-2],q[W-6],q[W],q[W-4]);break;case 80:tt.commit(q[W],q[W-6],q[W-2],q[W-4]);break;case 81:tt.commit(q[W],q[W-4],q[W-2],q[W-6]);break;case 82:tt.commit(q[W-2],q[W-4],q[W],q[W-6]);break;case 83:tt.commit(q[W],q[W-2],q[W-4],q[W-6]);break;case 84:tt.commit(q[W-2],q[W],q[W-4],q[W-6]);break;case 85:tt.commit(q[W-4],q[W-2],q[W],q[W-6]);break;case 86:tt.commit(q[W-4],q[W],q[W-2],q[W-6]);break;case 87:tt.commit(q[W-2],q[W-4],q[W-6],q[W]);break;case 88:tt.commit(q[W],q[W-4],q[W-6],q[W-2]);break;case 89:tt.commit(q[W-2],q[W],q[W-6],q[W-4]);break;case 90:tt.commit(q[W],q[W-2],q[W-6],q[W-4]);break;case 91:tt.commit(q[W-4],q[W-2],q[W-6],q[W]);break;case 92:tt.commit(q[W-4],q[W],q[W-6],q[W-2]);break;case 93:this.$="";break;case 94:this.$=q[W];break;case 95:this.$=tt.commitType.NORMAL;break;case 96:this.$=tt.commitType.REVERSE;break;case 97:this.$=tt.commitType.HIGHLIGHT;break;case 100:tt.parseDirective("%%{","open_directive");break;case 101:tt.parseDirective(q[W],"type_directive");break;case 102:q[W]=q[W].trim().replace(/'/g,'"'),tt.parseDirective(q[W],"arg_directive");break;case 103:tt.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:b,8:_,14:A,45:8,49:L,53:E},{1:[3]},{3:10,4:2,5:3,6:b,8:_,14:A,45:8,49:L,53:E},{3:11,4:2,5:3,6:b,8:_,14:A,45:8,49:L,53:E},{7:12,8:D,9:[1,13],10:[1,14],11:15,14:R},d(P,[2,104]),d(P,[2,105]),d(P,[2,106]),{46:17,50:[1,18]},{50:[2,100]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:D,11:15,14:R},{9:[1,21]},d($,[2,10],{12:22,13:[1,23]}),d(K,[2,9]),{9:[1,25],47:24,52:et},d([9,52],[2,101]),{1:[2,3]},{8:[1,27]},{7:28,8:D,11:15,14:R},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],35:[1,42],37:[1,41]},d(K,[2,8]),d(ht,[2,98]),{48:45,51:[1,46]},d(ht,[2,103]),{1:[2,4]},{8:[1,47]},d($,[2,11]),{4:48,8:_,14:A,53:E},d($,[2,13]),d(X,[2,14]),d(X,[2,15]),d(X,[2,16]),{21:[1,49]},{23:[1,50]},d(X,[2,19]),d(X,[2,20]),d(X,[2,21]),{28:[1,51]},d(X,[2,93],{38:52,33:[1,55],34:[1,57],36:[1,53],39:[1,54],41:[1,56]}),{28:[1,58]},{33:[1,59]},{28:[1,60]},{47:61,52:et},{52:[2,102]},{1:[2,5]},d($,[2,12]),d(X,[2,17]),d(X,[2,18]),d(X,[2,22]),d(X,[2,28]),{34:[1,62]},{40:63,42:_t,43:rt,44:at},{34:[1,67]},{34:[1,68]},d(X,[2,94]),d(X,[2,26],{36:[1,69]}),{34:[1,70]},d(X,[2,23],{30:[1,71]}),d(ht,[2,99]),d(X,[2,29],{33:[1,73],39:[1,72],41:[1,74]}),d(X,[2,30],{33:[1,76],36:[1,75],41:[1,77]}),d(bt,[2,95]),d(bt,[2,96]),d(bt,[2,97]),d(X,[2,33],{36:[1,78],39:[1,79],41:[1,80]}),d(X,[2,44],{33:[1,83],36:[1,81],39:[1,82]}),{34:[1,84]},d(X,[2,25]),{31:[1,85]},{40:86,42:_t,43:rt,44:at},{34:[1,87]},{34:[1,88]},{34:[1,89]},{34:[1,90]},{34:[1,91]},{34:[1,92]},{40:93,42:_t,43:rt,44:at},{34:[1,94]},{34:[1,95]},{40:96,42:_t,43:rt,44:at},{34:[1,97]},d(X,[2,27]),d(X,[2,24]),d(X,[2,31],{33:[1,98],41:[1,99]}),d(X,[2,35],{39:[1,100],41:[1,101]}),d(X,[2,45],{33:[1,103],39:[1,102]}),d(X,[2,32],{33:[1,104],41:[1,105]}),d(X,[2,37],{36:[1,106],41:[1,107]}),d(X,[2,48],{33:[1,109],36:[1,108]}),d(X,[2,34],{39:[1,110],41:[1,111]}),d(X,[2,36],{36:[1,112],41:[1,113]}),d(X,[2,49],{36:[1,115],39:[1,114]}),d(X,[2,46],{33:[1,117],39:[1,116]}),d(X,[2,47],{33:[1,119],36:[1,118]}),d(X,[2,50],{36:[1,121],39:[1,120]}),{34:[1,122]},{34:[1,123]},{40:124,42:_t,43:rt,44:at},{34:[1,125]},{40:126,42:_t,43:rt,44:at},{34:[1,127]},{34:[1,128]},{34:[1,129]},{34:[1,130]},{34:[1,131]},{34:[1,132]},{34:[1,133]},{40:134,42:_t,43:rt,44:at},{34:[1,135]},{34:[1,136]},{34:[1,137]},{40:138,42:_t,43:rt,44:at},{34:[1,139]},{40:140,42:_t,43:rt,44:at},{34:[1,141]},{34:[1,142]},{34:[1,143]},{40:144,42:_t,43:rt,44:at},{34:[1,145]},d(X,[2,42],{41:[1,146]}),d(X,[2,55],{33:[1,147]}),d(X,[2,43],{41:[1,148]}),d(X,[2,66],{39:[1,149]}),d(X,[2,56],{33:[1,150]}),d(X,[2,65],{39:[1,151]}),d(X,[2,41],{41:[1,152]}),d(X,[2,54],{33:[1,153]}),d(X,[2,40],{41:[1,154]}),d(X,[2,60],{36:[1,155]}),d(X,[2,53],{33:[1,156]}),d(X,[2,59],{36:[1,157]}),d(X,[2,39],{41:[1,158]}),d(X,[2,67],{39:[1,159]}),d(X,[2,38],{41:[1,160]}),d(X,[2,61],{36:[1,161]}),d(X,[2,62],{36:[1,162]}),d(X,[2,68],{39:[1,163]}),d(X,[2,52],{33:[1,164]}),d(X,[2,63],{39:[1,165]}),d(X,[2,51],{33:[1,166]}),d(X,[2,57],{36:[1,167]}),d(X,[2,58],{36:[1,168]}),d(X,[2,64],{39:[1,169]}),{34:[1,170]},{34:[1,171]},{34:[1,172]},{40:173,42:_t,43:rt,44:at},{34:[1,174]},{40:175,42:_t,43:rt,44:at},{34:[1,176]},{34:[1,177]},{34:[1,178]},{34:[1,179]},{34:[1,180]},{34:[1,181]},{34:[1,182]},{40:183,42:_t,43:rt,44:at},{34:[1,184]},{34:[1,185]},{34:[1,186]},{40:187,42:_t,43:rt,44:at},{34:[1,188]},{40:189,42:_t,43:rt,44:at},{34:[1,190]},{34:[1,191]},{34:[1,192]},{40:193,42:_t,43:rt,44:at},d(X,[2,83]),d(X,[2,84]),d(X,[2,81]),d(X,[2,82]),d(X,[2,86]),d(X,[2,85]),d(X,[2,90]),d(X,[2,89]),d(X,[2,88]),d(X,[2,87]),d(X,[2,92]),d(X,[2,91]),d(X,[2,80]),d(X,[2,79]),d(X,[2,78]),d(X,[2,77]),d(X,[2,75]),d(X,[2,76]),d(X,[2,74]),d(X,[2,73]),d(X,[2,72]),d(X,[2,71]),d(X,[2,69]),d(X,[2,70])],defaultActions:{9:[2,100],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,102],47:[2,5]},parseError:function(Nt,xt){if(!xt.recoverable){var pt=new Error(Nt);throw pt.hash=xt,pt}this.trace(Nt)},parse:function(Nt){var xt=this,pt=[0],tt=[],ft=[null],q=[],kt=this.table,W="",St=0,Lt=0,Ht=0,ge=2,We=1,Ee=q.slice.call(arguments,1),fe=Object.create(this.lexer),xe={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(xe.yy[Ie]=this.yy[Ie]);fe.setInput(Nt,xe.yy),xe.yy.lexer=fe,xe.yy.parser=this,fe.yylloc===void 0&&(fe.yylloc={});var Me=fe.yylloc;q.push(Me);var ve=fe.options&&fe.options.ranges;function An(){var ue;return typeof(ue=tt.pop()||fe.lex()||We)!="number"&&(ue instanceof Array&&(ue=(tt=ue).pop()),ue=xt.symbols_[ue]||ue),ue}typeof xe.yy.parseError=="function"?this.parseError=xe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _e,en,Ot,he,Qt,At,De,J,Ce,ot={};;){if(Ot=pt[pt.length-1],this.defaultActions[Ot]?he=this.defaultActions[Ot]:(_e==null&&(_e=An()),he=kt[Ot]&&kt[Ot][_e]),he===void 0||!he.length||!he[0]){var Te="";for(At in Ce=[],kt[Ot])this.terminals_[At]&&At>ge&&Ce.push("'"+this.terminals_[At]+"'");Te=fe.showPosition?"Parse error on line "+(St+1)+`:
|
|
`+fe.showPosition()+`
|
|
Expecting `+Ce.join(", ")+", got '"+(this.terminals_[_e]||_e)+"'":"Parse error on line "+(St+1)+": Unexpected "+(_e==We?"end of input":"'"+(this.terminals_[_e]||_e)+"'"),this.parseError(Te,{text:fe.match,token:this.terminals_[_e]||_e,line:fe.yylineno,loc:Me,expected:Ce})}if(he[0]instanceof Array&&he.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ot+", token: "+_e);switch(he[0]){case 1:pt.push(_e),ft.push(fe.yytext),q.push(fe.yylloc),pt.push(he[1]),_e=null,en?(_e=en,en=null):(Lt=fe.yyleng,W=fe.yytext,St=fe.yylineno,Me=fe.yylloc,Ht>0);break;case 2:if(De=this.productions_[he[1]][1],ot.$=ft[ft.length-De],ot._$={first_line:q[q.length-(De||1)].first_line,last_line:q[q.length-1].last_line,first_column:q[q.length-(De||1)].first_column,last_column:q[q.length-1].last_column},ve&&(ot._$.range=[q[q.length-(De||1)].range[0],q[q.length-1].range[1]]),(Qt=this.performAction.apply(ot,[W,Lt,St,xe.yy,he[1],ft,q].concat(Ee)))!==void 0)return Qt;De&&(pt=pt.slice(0,-1*De*2),ft=ft.slice(0,-1*De),q=q.slice(0,-1*De)),pt.push(this.productions_[he[1]][0]),ft.push(ot.$),q.push(ot._$),J=kt[pt[pt.length-2]][pt[pt.length-1]],pt.push(J);break;case 3:return!0}}return!0}},Tt={EOF:1,parseError:function(Nt,xt){if(!this.yy.parser)throw new Error(Nt);this.yy.parser.parseError(Nt,xt)},setInput:function(Nt,xt){return this.yy=xt||this.yy||{},this._input=Nt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Nt=this._input[0];return this.yytext+=Nt,this.yyleng++,this.offset++,this.match+=Nt,this.matched+=Nt,Nt.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),Nt},unput:function(Nt){var xt=Nt.length,pt=Nt.split(/(?:\r\n?|\n)/g);this._input=Nt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-xt),this.offset-=xt;var tt=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),pt.length-1&&(this.yylineno-=pt.length-1);var ft=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:pt?(pt.length===tt.length?this.yylloc.first_column:0)+tt[tt.length-pt.length].length-pt[0].length:this.yylloc.first_column-xt},this.options.ranges&&(this.yylloc.range=[ft[0],ft[0]+this.yyleng-xt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Nt){this.unput(this.match.slice(Nt))},pastInput:function(){var Nt=this.matched.substr(0,this.matched.length-this.match.length);return(Nt.length>20?"...":"")+Nt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Nt=this.match;return Nt.length<20&&(Nt+=this._input.substr(0,20-Nt.length)),(Nt.substr(0,20)+(Nt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Nt=this.pastInput(),xt=new Array(Nt.length+1).join("-");return Nt+this.upcomingInput()+`
|
|
`+xt+"^"},test_match:function(Nt,xt){var pt,tt,ft;if(this.options.backtrack_lexer&&(ft={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&&(ft.yylloc.range=this.yylloc.range.slice(0))),(tt=Nt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:tt?tt[tt.length-1].length-tt[tt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Nt[0].length},this.yytext+=Nt[0],this.match+=Nt[0],this.matches=Nt,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(Nt[0].length),this.matched+=Nt[0],pt=this.performAction.call(this,this.yy,this,xt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),pt)return pt;if(this._backtrack){for(var q in ft)this[q]=ft[q];return!1}return!1},next:function(){if(this.done)return this.EOF;var Nt,xt,pt,tt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ft=this._currentRules(),q=0;q<ft.length;q++)if((pt=this._input.match(this.rules[ft[q]]))&&(!xt||pt[0].length>xt[0].length)){if(xt=pt,tt=q,this.options.backtrack_lexer){if((Nt=this.test_match(pt,ft[q]))!==!1)return Nt;if(this._backtrack){xt=!1;continue}return!1}if(!this.options.flex)break}return xt?(Nt=this.test_match(xt,ft[tt]))!==!1&&Nt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Nt){this.conditionStack.push(Nt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Nt){return(Nt=this.conditionStack.length-1-Math.abs(Nt||0))>=0?this.conditionStack[Nt]:"INITIAL"},pushState:function(Nt){this.begin(Nt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Nt,xt,pt,tt){switch(pt){case 0:return this.begin("open_directive"),49;case 1:return this.begin("type_directive"),50;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),52;case 4:return 51;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 35:case 38:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:case 15:break;case 16:return 6;case 17:return 37;case 18:return 33;case 19:return 39;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 36;case 25:return 29;case 26:return 30;case 27:return 35;case 28:return 32;case 29:return 27;case 30:case 31:return 10;case 32:return 9;case 33:return"CARET";case 34:this.begin("options");break;case 36:return 13;case 37:this.begin("string");break;case 39:return 34;case 40:return 31;case 41:return 28;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch\b)/i,/^(?:order:)/i,/^(?:merge\b)/i,/^(?:cherry-pick\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+)/i,/^(?:[a-zA-Z][-_\./a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[35,36],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,37,40,41,42],inclusive:!0}}};function yt(){this.yy={}}return Ft.lexer=Tt,yt.prototype=Ft,Ft.Parser=yt,new yt}();k.parser=m,k.Parser=m.Parser,k.parse=function(){return m.parse.apply(m,arguments)},k.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var b=h(8183).readFileSync(h(6470).normalize(d[1]),"utf8");return k.parser.parse(b)},h.c[h.s]===f&&k.main(process.argv.slice(1))},6765:(f,k,h)=>{f=h.nmd(f);var m=function(){var d=function(E,D,R,P){for(R=R||{},P=E.length;P--;R[E[P]]=D);return R},b=[6,9,10],_={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(E,D,R,P,$,K,et){switch(K.length,$){case 1:return P;case 4:break;case 6:P.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},d(b,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},d(b,[2,3]),d(b,[2,4]),d(b,[2,5]),d(b,[2,6])],defaultActions:{4:[2,1]},parseError:function(E,D){if(!D.recoverable){var R=new Error(E);throw R.hash=D,R}this.trace(E)},parse:function(E){var D=this,R=[0],P=[],$=[null],K=[],et=this.table,ht="",X=0,_t=0,rt=0,at=2,bt=1,Ft=K.slice.call(arguments,1),Tt=Object.create(this.lexer),yt={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(yt.yy[Nt]=this.yy[Nt]);Tt.setInput(E,yt.yy),yt.yy.lexer=Tt,yt.yy.parser=this,Tt.yylloc===void 0&&(Tt.yylloc={});var xt=Tt.yylloc;K.push(xt);var pt=Tt.options&&Tt.options.ranges;function tt(){var xe;return typeof(xe=P.pop()||Tt.lex()||bt)!="number"&&(xe instanceof Array&&(xe=(P=xe).pop()),xe=D.symbols_[xe]||xe),xe}typeof yt.yy.parseError=="function"?this.parseError=yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ft,q,kt,W,St,Lt,Ht,ge,We,Ee={};;){if(kt=R[R.length-1],this.defaultActions[kt]?W=this.defaultActions[kt]:(ft==null&&(ft=tt()),W=et[kt]&&et[kt][ft]),W===void 0||!W.length||!W[0]){var fe="";for(Lt in We=[],et[kt])this.terminals_[Lt]&&Lt>at&&We.push("'"+this.terminals_[Lt]+"'");fe=Tt.showPosition?"Parse error on line "+(X+1)+`:
|
|
`+Tt.showPosition()+`
|
|
Expecting `+We.join(", ")+", got '"+(this.terminals_[ft]||ft)+"'":"Parse error on line "+(X+1)+": Unexpected "+(ft==bt?"end of input":"'"+(this.terminals_[ft]||ft)+"'"),this.parseError(fe,{text:Tt.match,token:this.terminals_[ft]||ft,line:Tt.yylineno,loc:xt,expected:We})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+ft);switch(W[0]){case 1:R.push(ft),$.push(Tt.yytext),K.push(Tt.yylloc),R.push(W[1]),ft=null,q?(ft=q,q=null):(_t=Tt.yyleng,ht=Tt.yytext,X=Tt.yylineno,xt=Tt.yylloc,rt>0);break;case 2:if(Ht=this.productions_[W[1]][1],Ee.$=$[$.length-Ht],Ee._$={first_line:K[K.length-(Ht||1)].first_line,last_line:K[K.length-1].last_line,first_column:K[K.length-(Ht||1)].first_column,last_column:K[K.length-1].last_column},pt&&(Ee._$.range=[K[K.length-(Ht||1)].range[0],K[K.length-1].range[1]]),(St=this.performAction.apply(Ee,[ht,_t,X,yt.yy,W[1],$,K].concat(Ft)))!==void 0)return St;Ht&&(R=R.slice(0,-1*Ht*2),$=$.slice(0,-1*Ht),K=K.slice(0,-1*Ht)),R.push(this.productions_[W[1]][0]),$.push(Ee.$),K.push(Ee._$),ge=et[R[R.length-2]][R[R.length-1]],R.push(ge);break;case 3:return!0}}return!0}},A={EOF:1,parseError:function(E,D){if(!this.yy.parser)throw new Error(E);this.yy.parser.parseError(E,D)},setInput:function(E,D){return this.yy=D||this.yy||{},this._input=E,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var E=this._input[0];return this.yytext+=E,this.yyleng++,this.offset++,this.match+=E,this.matched+=E,E.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),E},unput:function(E){var D=E.length,R=E.split(/(?:\r\n?|\n)/g);this._input=E+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-D),this.offset-=D;var P=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),R.length-1&&(this.yylineno-=R.length-1);var $=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:R?(R.length===P.length?this.yylloc.first_column:0)+P[P.length-R.length].length-R[0].length:this.yylloc.first_column-D},this.options.ranges&&(this.yylloc.range=[$[0],$[0]+this.yyleng-D]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(E){this.unput(this.match.slice(E))},pastInput:function(){var E=this.matched.substr(0,this.matched.length-this.match.length);return(E.length>20?"...":"")+E.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var E=this.match;return E.length<20&&(E+=this._input.substr(0,20-E.length)),(E.substr(0,20)+(E.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var E=this.pastInput(),D=new Array(E.length+1).join("-");return E+this.upcomingInput()+`
|
|
`+D+"^"},test_match:function(E,D){var R,P,$;if(this.options.backtrack_lexer&&($={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&&($.yylloc.range=this.yylloc.range.slice(0))),(P=E[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=P.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:P?P[P.length-1].length-P[P.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+E[0].length},this.yytext+=E[0],this.match+=E[0],this.matches=E,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(E[0].length),this.matched+=E[0],R=this.performAction.call(this,this.yy,this,D,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),R)return R;if(this._backtrack){for(var K in $)this[K]=$[K];return!1}return!1},next:function(){if(this.done)return this.EOF;var E,D,R,P;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var $=this._currentRules(),K=0;K<$.length;K++)if((R=this._input.match(this.rules[$[K]]))&&(!D||R[0].length>D[0].length)){if(D=R,P=K,this.options.backtrack_lexer){if((E=this.test_match(R,$[K]))!==!1)return E;if(this._backtrack){D=!1;continue}return!1}if(!this.options.flex)break}return D?(E=this.test_match(D,$[P]))!==!1&&E:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(E){this.conditionStack.push(E)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(E){return(E=this.conditionStack.length-1-Math.abs(E||0))>=0?this.conditionStack[E]:"INITIAL"},pushState:function(E){this.begin(E)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(E,D,R,P){switch(R){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function L(){this.yy={}}return _.lexer=A,L.prototype=_,_.Parser=L,new L}();k.parser=m,k.Parser=m.Parser,k.parse=function(){return m.parse.apply(m,arguments)},k.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var b=h(1428).readFileSync(h(6470).normalize(d[1]),"utf8");return k.parser.parse(b)},h.c[h.s]===f&&k.main(process.argv.slice(1))},7062:(f,k,h)=>{f=h.nmd(f);var m=function(){var d=function(xt,pt,tt,ft){for(tt=tt||{},ft=xt.length;ft--;tt[xt[ft]]=pt);return tt},b=[1,4],_=[1,5],A=[1,6],L=[1,7],E=[1,9],D=[1,11,13,15,17,19,20,26,27,28,29],R=[2,5],P=[1,6,11,13,15,17,19,20,26,27,28,29],$=[26,27,28],K=[2,8],et=[1,18],ht=[1,19],X=[1,20],_t=[1,21],rt=[1,22],at=[1,23],bt=[1,28],Ft=[6,26,27,28,29],Tt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(xt,pt,tt,ft,q,kt,W){var St=kt.length-1;switch(q){case 4:ft.setShowData(!0);break;case 7:this.$=kt[St-1];break;case 9:ft.addSection(kt[St-1],ft.cleanupValue(kt[St]));break;case 10:this.$=kt[St].trim(),ft.setDiagramTitle(this.$);break;case 11:this.$=kt[St].trim(),ft.setAccTitle(this.$);break;case 12:case 13:this.$=kt[St].trim(),ft.setAccDescription(this.$);break;case 14:ft.addSection(kt[St].substr(8)),this.$=kt[St].substr(8);break;case 21:ft.parseDirective("%%{","open_directive");break;case 22:ft.parseDirective(kt[St],"type_directive");break;case 23:kt[St]=kt[St].trim().replace(/'/g,'"'),ft.parseDirective(kt[St],"arg_directive");break;case 24:ft.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:b,21:8,26:_,27:A,28:L,29:E},{1:[3]},{3:10,4:2,5:3,6:b,21:8,26:_,27:A,28:L,29:E},{3:11,4:2,5:3,6:b,21:8,26:_,27:A,28:L,29:E},d(D,R,{7:12,8:[1,13]}),d(P,[2,18]),d(P,[2,19]),d(P,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},d($,K,{21:8,9:16,10:17,5:24,1:[2,3],11:et,13:ht,15:X,17:_t,19:rt,20:at,29:E}),d(D,R,{7:25}),{23:26,24:[1,27],32:bt},d([24,32],[2,22]),d(D,[2,6]),{4:29,26:_,27:A,28:L},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},d($,[2,13]),d($,[2,14]),d($,[2,15]),d($,K,{21:8,9:16,10:17,5:24,1:[2,4],11:et,13:ht,15:X,17:_t,19:rt,20:at,29:E}),d(Ft,[2,16]),{25:34,31:[1,35]},d(Ft,[2,24]),d(D,[2,7]),d($,[2,9]),d($,[2,10]),d($,[2,11]),d($,[2,12]),{23:36,32:bt},{32:[2,23]},d(Ft,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(xt,pt){if(!pt.recoverable){var tt=new Error(xt);throw tt.hash=pt,tt}this.trace(xt)},parse:function(xt){var pt=this,tt=[0],ft=[],q=[null],kt=[],W=this.table,St="",Lt=0,Ht=0,ge=0,We=2,Ee=1,fe=kt.slice.call(arguments,1),xe=Object.create(this.lexer),Ie={yy:{}};for(var Me in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Me)&&(Ie.yy[Me]=this.yy[Me]);xe.setInput(xt,Ie.yy),Ie.yy.lexer=xe,Ie.yy.parser=this,xe.yylloc===void 0&&(xe.yylloc={});var ve=xe.yylloc;kt.push(ve);var An=xe.options&&xe.options.ranges;function _e(){var Fe;return typeof(Fe=ft.pop()||xe.lex()||Ee)!="number"&&(Fe instanceof Array&&(Fe=(ft=Fe).pop()),Fe=pt.symbols_[Fe]||Fe),Fe}typeof Ie.yy.parseError=="function"?this.parseError=Ie.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var en,Ot,he,Qt,At,De,J,Ce,ot,Te={};;){if(he=tt[tt.length-1],this.defaultActions[he]?Qt=this.defaultActions[he]:(en==null&&(en=_e()),Qt=W[he]&&W[he][en]),Qt===void 0||!Qt.length||!Qt[0]){var ue="";for(De in ot=[],W[he])this.terminals_[De]&&De>We&&ot.push("'"+this.terminals_[De]+"'");ue=xe.showPosition?"Parse error on line "+(Lt+1)+`:
|
|
`+xe.showPosition()+`
|
|
Expecting `+ot.join(", ")+", got '"+(this.terminals_[en]||en)+"'":"Parse error on line "+(Lt+1)+": Unexpected "+(en==Ee?"end of input":"'"+(this.terminals_[en]||en)+"'"),this.parseError(ue,{text:xe.match,token:this.terminals_[en]||en,line:xe.yylineno,loc:ve,expected:ot})}if(Qt[0]instanceof Array&&Qt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+he+", token: "+en);switch(Qt[0]){case 1:tt.push(en),q.push(xe.yytext),kt.push(xe.yylloc),tt.push(Qt[1]),en=null,Ot?(en=Ot,Ot=null):(Ht=xe.yyleng,St=xe.yytext,Lt=xe.yylineno,ve=xe.yylloc,ge>0);break;case 2:if(J=this.productions_[Qt[1]][1],Te.$=q[q.length-J],Te._$={first_line:kt[kt.length-(J||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(J||1)].first_column,last_column:kt[kt.length-1].last_column},An&&(Te._$.range=[kt[kt.length-(J||1)].range[0],kt[kt.length-1].range[1]]),(At=this.performAction.apply(Te,[St,Ht,Lt,Ie.yy,Qt[1],q,kt].concat(fe)))!==void 0)return At;J&&(tt=tt.slice(0,-1*J*2),q=q.slice(0,-1*J),kt=kt.slice(0,-1*J)),tt.push(this.productions_[Qt[1]][0]),q.push(Te.$),kt.push(Te._$),Ce=W[tt[tt.length-2]][tt[tt.length-1]],tt.push(Ce);break;case 3:return!0}}return!0}},yt={EOF:1,parseError:function(xt,pt){if(!this.yy.parser)throw new Error(xt);this.yy.parser.parseError(xt,pt)},setInput:function(xt,pt){return this.yy=pt||this.yy||{},this._input=xt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var xt=this._input[0];return this.yytext+=xt,this.yyleng++,this.offset++,this.match+=xt,this.matched+=xt,xt.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),xt},unput:function(xt){var pt=xt.length,tt=xt.split(/(?:\r\n?|\n)/g);this._input=xt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-pt),this.offset-=pt;var ft=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),tt.length-1&&(this.yylineno-=tt.length-1);var q=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:tt?(tt.length===ft.length?this.yylloc.first_column:0)+ft[ft.length-tt.length].length-tt[0].length:this.yylloc.first_column-pt},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-pt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(xt){this.unput(this.match.slice(xt))},pastInput:function(){var xt=this.matched.substr(0,this.matched.length-this.match.length);return(xt.length>20?"...":"")+xt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var xt=this.match;return xt.length<20&&(xt+=this._input.substr(0,20-xt.length)),(xt.substr(0,20)+(xt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var xt=this.pastInput(),pt=new Array(xt.length+1).join("-");return xt+this.upcomingInput()+`
|
|
`+pt+"^"},test_match:function(xt,pt){var tt,ft,q;if(this.options.backtrack_lexer&&(q={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&&(q.yylloc.range=this.yylloc.range.slice(0))),(ft=xt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ft.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ft?ft[ft.length-1].length-ft[ft.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+xt[0].length},this.yytext+=xt[0],this.match+=xt[0],this.matches=xt,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(xt[0].length),this.matched+=xt[0],tt=this.performAction.call(this,this.yy,this,pt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),tt)return tt;if(this._backtrack){for(var kt in q)this[kt]=q[kt];return!1}return!1},next:function(){if(this.done)return this.EOF;var xt,pt,tt,ft;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),kt=0;kt<q.length;kt++)if((tt=this._input.match(this.rules[q[kt]]))&&(!pt||tt[0].length>pt[0].length)){if(pt=tt,ft=kt,this.options.backtrack_lexer){if((xt=this.test_match(tt,q[kt]))!==!1)return xt;if(this._backtrack){pt=!1;continue}return!1}if(!this.options.flex)break}return pt?(xt=this.test_match(pt,q[ft]))!==!1&&xt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(xt){this.conditionStack.push(xt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(xt){return(xt=this.conditionStack.length-1-Math.abs(xt||0))>=0?this.conditionStack[xt]:"INITIAL"},pushState:function(xt){this.begin(xt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(xt,pt,tt,ft){switch(tt){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:case 20:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/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,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};function Nt(){this.yy={}}return Tt.lexer=yt,Nt.prototype=Tt,Tt.Parser=Nt,new Nt}();k.parser=m,k.Parser=m.Parser,k.parse=function(){return m.parse.apply(m,arguments)},k.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var b=h(4551).readFileSync(h(6470).normalize(d[1]),"utf8");return k.parser.parse(b)},h.c[h.s]===f&&k.main(process.argv.slice(1))},3176:(f,k,h)=>{f=h.nmd(f);var m=function(){var d=function(Ot,he,Qt,At){for(Qt=Qt||{},At=Ot.length;At--;Qt[Ot[At]]=he);return Qt},b=[1,3],_=[1,5],A=[1,6],L=[1,7],E=[1,8],D=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],R=[1,22],P=[2,13],$=[1,26],K=[1,27],et=[1,28],ht=[1,29],X=[1,30],_t=[1,31],rt=[1,24],at=[1,32],bt=[1,33],Ft=[1,36],Tt=[71,72],yt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],Nt=[1,56],xt=[1,57],pt=[1,58],tt=[1,59],ft=[1,60],q=[1,61],kt=[1,62],W=[62,63],St=[1,74],Lt=[1,70],Ht=[1,71],ge=[1,72],We=[1,73],Ee=[1,75],fe=[1,79],xe=[1,80],Ie=[1,77],Me=[1,78],ve=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],An={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",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",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(Ot,he,Qt,At,De,J,Ce){var ot=J.length-1;switch(De){case 6:this.$=J[ot].trim(),At.setAccTitle(this.$);break;case 7:case 8:this.$=J[ot].trim(),At.setAccDescription(this.$);break;case 9:At.parseDirective("%%{","open_directive");break;case 10:At.parseDirective(J[ot],"type_directive");break;case 11:J[ot]=J[ot].trim().replace(/'/g,'"'),At.parseDirective(J[ot],"arg_directive");break;case 12:At.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:At.addRequirement(J[ot-3],J[ot-4]);break;case 20:At.setNewReqId(J[ot-2]);break;case 21:At.setNewReqText(J[ot-2]);break;case 22:At.setNewReqRisk(J[ot-2]);break;case 23:At.setNewReqVerifyMethod(J[ot-2]);break;case 26:this.$=At.RequirementType.REQUIREMENT;break;case 27:this.$=At.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=At.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=At.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=At.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=At.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=At.RiskLevel.LOW_RISK;break;case 33:this.$=At.RiskLevel.MED_RISK;break;case 34:this.$=At.RiskLevel.HIGH_RISK;break;case 35:this.$=At.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=At.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=At.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=At.VerifyType.VERIFY_TEST;break;case 39:At.addElement(J[ot-3]);break;case 40:At.setNewElementType(J[ot-2]);break;case 41:At.setNewElementDocRef(J[ot-2]);break;case 44:At.addRelationship(J[ot-2],J[ot],J[ot-4]);break;case 45:At.addRelationship(J[ot-2],J[ot-4],J[ot]);break;case 46:this.$=At.Relationships.CONTAINS;break;case 47:this.$=At.Relationships.COPIES;break;case 48:this.$=At.Relationships.DERIVES;break;case 49:this.$=At.Relationships.SATISFIES;break;case 50:this.$=At.Relationships.VERIFIES;break;case 51:this.$=At.Relationships.REFINES;break;case 52:this.$=At.Relationships.TRACES}},table:[{3:1,4:2,6:b,9:4,14:_,16:A,18:L,19:E},{1:[3]},{3:10,4:2,5:[1,9],6:b,9:4,14:_,16:A,18:L,19:E},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},d(D,[2,8]),{20:[2,9]},{3:16,4:2,6:b,9:4,14:_,16:A,18:L,19:E},{1:[2,2]},{4:21,5:R,7:17,8:P,9:4,14:_,16:A,18:L,19:E,23:18,24:19,25:20,26:23,32:25,40:$,41:K,42:et,43:ht,44:X,45:_t,53:rt,71:at,72:bt},{11:34,12:[1,35],22:Ft},d([12,22],[2,10]),d(D,[2,6]),d(D,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:R,7:38,8:P,9:4,14:_,16:A,18:L,19:E,23:18,24:19,25:20,26:23,32:25,40:$,41:K,42:et,43:ht,44:X,45:_t,53:rt,71:at,72:bt},{4:21,5:R,7:39,8:P,9:4,14:_,16:A,18:L,19:E,23:18,24:19,25:20,26:23,32:25,40:$,41:K,42:et,43:ht,44:X,45:_t,53:rt,71:at,72:bt},{4:21,5:R,7:40,8:P,9:4,14:_,16:A,18:L,19:E,23:18,24:19,25:20,26:23,32:25,40:$,41:K,42:et,43:ht,44:X,45:_t,53:rt,71:at,72:bt},{4:21,5:R,7:41,8:P,9:4,14:_,16:A,18:L,19:E,23:18,24:19,25:20,26:23,32:25,40:$,41:K,42:et,43:ht,44:X,45:_t,53:rt,71:at,72:bt},{4:21,5:R,7:42,8:P,9:4,14:_,16:A,18:L,19:E,23:18,24:19,25:20,26:23,32:25,40:$,41:K,42:et,43:ht,44:X,45:_t,53:rt,71:at,72:bt},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},d(Tt,[2,26]),d(Tt,[2,27]),d(Tt,[2,28]),d(Tt,[2,29]),d(Tt,[2,30]),d(Tt,[2,31]),d(yt,[2,55]),d(yt,[2,56]),d(D,[2,4]),{13:51,21:[1,52]},d(D,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:Nt,65:xt,66:pt,67:tt,68:ft,69:q,70:kt},{61:63,64:Nt,65:xt,66:pt,67:tt,68:ft,69:q,70:kt},{11:64,22:Ft},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},d(W,[2,46]),d(W,[2,47]),d(W,[2,48]),d(W,[2,49]),d(W,[2,50]),d(W,[2,51]),d(W,[2,52]),{63:[1,68]},d(D,[2,5]),{5:St,29:69,30:Lt,33:Ht,35:ge,37:We,39:Ee},{5:fe,39:xe,55:76,56:Ie,58:Me},{32:81,71:at,72:bt},{32:82,71:at,72:bt},d(ve,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:St,29:87,30:Lt,33:Ht,35:ge,37:We,39:Ee},d(ve,[2,25]),d(ve,[2,39]),{31:[1,88]},{31:[1,89]},{5:fe,39:xe,55:90,56:Ie,58:Me},d(ve,[2,43]),d(ve,[2,44]),d(ve,[2,45]),{32:91,71:at,72:bt},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},d(ve,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},d(ve,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:St,29:116,30:Lt,33:Ht,35:ge,37:We,39:Ee},{5:St,29:117,30:Lt,33:Ht,35:ge,37:We,39:Ee},{5:St,29:118,30:Lt,33:Ht,35:ge,37:We,39:Ee},{5:St,29:119,30:Lt,33:Ht,35:ge,37:We,39:Ee},{5:fe,39:xe,55:120,56:Ie,58:Me},{5:fe,39:xe,55:121,56:Ie,58:Me},d(ve,[2,20]),d(ve,[2,21]),d(ve,[2,22]),d(ve,[2,23]),d(ve,[2,40]),d(ve,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(Ot,he){if(!he.recoverable){var Qt=new Error(Ot);throw Qt.hash=he,Qt}this.trace(Ot)},parse:function(Ot){var he=this,Qt=[0],At=[],De=[null],J=[],Ce=this.table,ot="",Te=0,ue=0,Fe=0,fn=2,rn=1,Xe=J.slice.call(arguments,1),ae=Object.create(this.lexer),Be={yy:{}};for(var pe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pe)&&(Be.yy[pe]=this.yy[pe]);ae.setInput(Ot,Be.yy),Be.yy.lexer=ae,Be.yy.parser=this,ae.yylloc===void 0&&(ae.yylloc={});var Pe=ae.yylloc;J.push(Pe);var ye=ae.options&&ae.options.ranges;function Ve(){var Vt;return typeof(Vt=At.pop()||ae.lex()||rn)!="number"&&(Vt instanceof Array&&(Vt=(At=Vt).pop()),Vt=he.symbols_[Vt]||Vt),Vt}typeof Be.yy.parseError=="function"?this.parseError=Be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var kn,ar,cn,hn,Qr,Lr,Cn,In,Le,ie={};;){if(cn=Qt[Qt.length-1],this.defaultActions[cn]?hn=this.defaultActions[cn]:(kn==null&&(kn=Ve()),hn=Ce[cn]&&Ce[cn][kn]),hn===void 0||!hn.length||!hn[0]){var Qe="";for(Lr in Le=[],Ce[cn])this.terminals_[Lr]&&Lr>fn&&Le.push("'"+this.terminals_[Lr]+"'");Qe=ae.showPosition?"Parse error on line "+(Te+1)+`:
|
|
`+ae.showPosition()+`
|
|
Expecting `+Le.join(", ")+", got '"+(this.terminals_[kn]||kn)+"'":"Parse error on line "+(Te+1)+": Unexpected "+(kn==rn?"end of input":"'"+(this.terminals_[kn]||kn)+"'"),this.parseError(Qe,{text:ae.match,token:this.terminals_[kn]||kn,line:ae.yylineno,loc:Pe,expected:Le})}if(hn[0]instanceof Array&&hn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+cn+", token: "+kn);switch(hn[0]){case 1:Qt.push(kn),De.push(ae.yytext),J.push(ae.yylloc),Qt.push(hn[1]),kn=null,ar?(kn=ar,ar=null):(ue=ae.yyleng,ot=ae.yytext,Te=ae.yylineno,Pe=ae.yylloc,Fe>0);break;case 2:if(Cn=this.productions_[hn[1]][1],ie.$=De[De.length-Cn],ie._$={first_line:J[J.length-(Cn||1)].first_line,last_line:J[J.length-1].last_line,first_column:J[J.length-(Cn||1)].first_column,last_column:J[J.length-1].last_column},ye&&(ie._$.range=[J[J.length-(Cn||1)].range[0],J[J.length-1].range[1]]),(Qr=this.performAction.apply(ie,[ot,ue,Te,Be.yy,hn[1],De,J].concat(Xe)))!==void 0)return Qr;Cn&&(Qt=Qt.slice(0,-1*Cn*2),De=De.slice(0,-1*Cn),J=J.slice(0,-1*Cn)),Qt.push(this.productions_[hn[1]][0]),De.push(ie.$),J.push(ie._$),In=Ce[Qt[Qt.length-2]][Qt[Qt.length-1]],Qt.push(In);break;case 3:return!0}}return!0}},_e={EOF:1,parseError:function(Ot,he){if(!this.yy.parser)throw new Error(Ot);this.yy.parser.parseError(Ot,he)},setInput:function(Ot,he){return this.yy=he||this.yy||{},this._input=Ot,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ot=this._input[0];return this.yytext+=Ot,this.yyleng++,this.offset++,this.match+=Ot,this.matched+=Ot,Ot.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),Ot},unput:function(Ot){var he=Ot.length,Qt=Ot.split(/(?:\r\n?|\n)/g);this._input=Ot+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var At=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),Qt.length-1&&(this.yylineno-=Qt.length-1);var De=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:Qt?(Qt.length===At.length?this.yylloc.first_column:0)+At[At.length-Qt.length].length-Qt[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[De[0],De[0]+this.yyleng-he]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Ot){this.unput(this.match.slice(Ot))},pastInput:function(){var Ot=this.matched.substr(0,this.matched.length-this.match.length);return(Ot.length>20?"...":"")+Ot.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ot=this.match;return Ot.length<20&&(Ot+=this._input.substr(0,20-Ot.length)),(Ot.substr(0,20)+(Ot.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ot=this.pastInput(),he=new Array(Ot.length+1).join("-");return Ot+this.upcomingInput()+`
|
|
`+he+"^"},test_match:function(Ot,he){var Qt,At,De;if(this.options.backtrack_lexer&&(De={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&&(De.yylloc.range=this.yylloc.range.slice(0))),(At=Ot[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=At.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:At?At[At.length-1].length-At[At.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ot[0].length},this.yytext+=Ot[0],this.match+=Ot[0],this.matches=Ot,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(Ot[0].length),this.matched+=Ot[0],Qt=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Qt)return Qt;if(this._backtrack){for(var J in De)this[J]=De[J];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ot,he,Qt,At;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var De=this._currentRules(),J=0;J<De.length;J++)if((Qt=this._input.match(this.rules[De[J]]))&&(!he||Qt[0].length>he[0].length)){if(he=Qt,At=J,this.options.backtrack_lexer){if((Ot=this.test_match(Qt,De[J]))!==!1)return Ot;if(this._backtrack){he=!1;continue}return!1}if(!this.options.flex)break}return he?(Ot=this.test_match(he,De[At]))!==!1&&Ot:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Ot){this.conditionStack.push(Ot)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ot){return(Ot=this.conditionStack.length-1-Math.abs(Ot||0))>=0?this.conditionStack[Ot]:"INITIAL"},pushState:function(Ot){this.begin(Ot)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ot,he,Qt,At){switch(Qt){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 53:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 54:return"qString";case 55:return he.yytext=he.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\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,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/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,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,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,55],inclusive:!0}}};function en(){this.yy={}}return An.lexer=_e,en.prototype=An,An.Parser=en,new en}();k.parser=m,k.Parser=m.Parser,k.parse=function(){return m.parse.apply(m,arguments)},k.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var b=h(8800).readFileSync(h(6470).normalize(d[1]),"utf8");return k.parser.parse(b)},h.c[h.s]===f&&k.main(process.argv.slice(1))},6876:(f,k,h)=>{f=h.nmd(f);var m=function(){var d=function(Ot,he,Qt,At){for(Qt=Qt||{},At=Ot.length;At--;Qt[Ot[At]]=he);return Qt},b=[1,2],_=[1,3],A=[1,5],L=[1,7],E=[2,5],D=[1,15],R=[1,17],P=[1,18],$=[1,19],K=[1,21],et=[1,22],ht=[1,23],X=[1,29],_t=[1,30],rt=[1,31],at=[1,32],bt=[1,33],Ft=[1,34],Tt=[1,35],yt=[1,36],Nt=[1,37],xt=[1,38],pt=[1,39],tt=[1,40],ft=[1,43],q=[1,44],kt=[1,45],W=[1,46],St=[1,47],Lt=[1,48],Ht=[1,51],ge=[1,4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],We=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,53,58,59,60,61,69,79],Ee=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,52,53,58,59,60,61,69,79],fe=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,51,53,58,59,60,61,69,79],xe=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,53,58,59,60,61,69,79],Ie=[67,68,69],Me=[1,121],ve=[1,4,5,7,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],An={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,NUM:23,off:24,activate:25,deactivate:26,note_statement:27,links_statement:28,link_statement:29,properties_statement:30,details_statement:31,title:32,legacy_title:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,loop:39,end:40,rect:41,opt:42,alt:43,else_sections:44,par:45,par_sections:46,critical:47,option_sections:48,break:49,option:50,and:51,else:52,note:53,placement:54,text2:55,over:56,actor_pair:57,links:58,link:59,properties:60,details:61,spaceList:62,",":63,left_of:64,right_of:65,signaltype:66,"+":67,"-":68,ACTOR:69,SOLID_OPEN_ARROW:70,DOTTED_OPEN_ARROW:71,SOLID_ARROW:72,DOTTED_ARROW:73,SOLID_CROSS:74,DOTTED_CROSS:75,SOLID_POINT:76,DOTTED_POINT:77,TXT:78,open_directive:79,type_directive:80,arg_directive:81,close_directive:82,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"NUM",24:"off",25:"activate",26:"deactivate",32:"title",33:"legacy_title",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",39:"loop",40:"end",41:"rect",42:"opt",43:"alt",45:"par",47:"critical",49:"break",50:"option",51:"and",52:"else",53:"note",56:"over",58:"links",59:"link",60:"properties",61:"details",63:",",64:"left_of",65:"right_of",67:"+",68:"-",69:"ACTOR",70:"SOLID_OPEN_ARROW",71:"DOTTED_OPEN_ARROW",72:"SOLID_ARROW",73:"DOTTED_ARROW",74:"SOLID_CROSS",75:"DOTTED_CROSS",76:"SOLID_POINT",77:"DOTTED_POINT",78:"TXT",79:"open_directive",80:"type_directive",81:"arg_directive",82:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[48,1],[48,4],[46,1],[46,4],[44,1],[44,4],[27,4],[27,4],[28,3],[29,3],[30,3],[31,3],[62,2],[62,1],[57,3],[57,1],[54,1],[54,1],[21,5],[21,5],[21,4],[17,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[55,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(Ot,he,Qt,At,De,J,Ce){var ot=J.length-1;switch(De){case 4:return At.apply(J[ot]),J[ot];case 5:case 9:this.$=[];break;case 6:J[ot-1].push(J[ot]),this.$=J[ot-1];break;case 7:case 8:case 56:this.$=J[ot];break;case 12:J[ot-3].type="addParticipant",J[ot-3].description=At.parseMessage(J[ot-1]),this.$=J[ot-3];break;case 13:J[ot-1].type="addParticipant",this.$=J[ot-1];break;case 14:J[ot-3].type="addActor",J[ot-3].description=At.parseMessage(J[ot-1]),this.$=J[ot-3];break;case 15:J[ot-1].type="addActor",this.$=J[ot-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(J[ot-2]),sequenceIndexStep:Number(J[ot-1]),sequenceVisible:!0,signalType:At.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(J[ot-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:At.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:At.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:At.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:At.LINETYPE.ACTIVE_START,actor:J[ot-1]};break;case 22:this.$={type:"activeEnd",signalType:At.LINETYPE.ACTIVE_END,actor:J[ot-1]};break;case 28:At.setDiagramTitle(J[ot].substring(6)),this.$=J[ot].substring(6);break;case 29:At.setDiagramTitle(J[ot].substring(7)),this.$=J[ot].substring(7);break;case 30:this.$=J[ot].trim(),At.setAccTitle(this.$);break;case 31:case 32:this.$=J[ot].trim(),At.setAccDescription(this.$);break;case 33:J[ot-1].unshift({type:"loopStart",loopText:At.parseMessage(J[ot-2]),signalType:At.LINETYPE.LOOP_START}),J[ot-1].push({type:"loopEnd",loopText:J[ot-2],signalType:At.LINETYPE.LOOP_END}),this.$=J[ot-1];break;case 34:J[ot-1].unshift({type:"rectStart",color:At.parseMessage(J[ot-2]),signalType:At.LINETYPE.RECT_START}),J[ot-1].push({type:"rectEnd",color:At.parseMessage(J[ot-2]),signalType:At.LINETYPE.RECT_END}),this.$=J[ot-1];break;case 35:J[ot-1].unshift({type:"optStart",optText:At.parseMessage(J[ot-2]),signalType:At.LINETYPE.OPT_START}),J[ot-1].push({type:"optEnd",optText:At.parseMessage(J[ot-2]),signalType:At.LINETYPE.OPT_END}),this.$=J[ot-1];break;case 36:J[ot-1].unshift({type:"altStart",altText:At.parseMessage(J[ot-2]),signalType:At.LINETYPE.ALT_START}),J[ot-1].push({type:"altEnd",signalType:At.LINETYPE.ALT_END}),this.$=J[ot-1];break;case 37:J[ot-1].unshift({type:"parStart",parText:At.parseMessage(J[ot-2]),signalType:At.LINETYPE.PAR_START}),J[ot-1].push({type:"parEnd",signalType:At.LINETYPE.PAR_END}),this.$=J[ot-1];break;case 38:J[ot-1].unshift({type:"criticalStart",criticalText:At.parseMessage(J[ot-2]),signalType:At.LINETYPE.CRITICAL_START}),J[ot-1].push({type:"criticalEnd",signalType:At.LINETYPE.CRITICAL_END}),this.$=J[ot-1];break;case 39:J[ot-1].unshift({type:"breakStart",breakText:At.parseMessage(J[ot-2]),signalType:At.LINETYPE.BREAK_START}),J[ot-1].push({type:"breakEnd",optText:At.parseMessage(J[ot-2]),signalType:At.LINETYPE.BREAK_END}),this.$=J[ot-1];break;case 42:this.$=J[ot-3].concat([{type:"option",optionText:At.parseMessage(J[ot-1]),signalType:At.LINETYPE.CRITICAL_OPTION},J[ot]]);break;case 44:this.$=J[ot-3].concat([{type:"and",parText:At.parseMessage(J[ot-1]),signalType:At.LINETYPE.PAR_AND},J[ot]]);break;case 46:this.$=J[ot-3].concat([{type:"else",altText:At.parseMessage(J[ot-1]),signalType:At.LINETYPE.ALT_ELSE},J[ot]]);break;case 47:this.$=[J[ot-1],{type:"addNote",placement:J[ot-2],actor:J[ot-1].actor,text:J[ot]}];break;case 48:J[ot-2]=[].concat(J[ot-1],J[ot-1]).slice(0,2),J[ot-2][0]=J[ot-2][0].actor,J[ot-2][1]=J[ot-2][1].actor,this.$=[J[ot-1],{type:"addNote",placement:At.PLACEMENT.OVER,actor:J[ot-2].slice(0,2),text:J[ot]}];break;case 49:this.$=[J[ot-1],{type:"addLinks",actor:J[ot-1].actor,text:J[ot]}];break;case 50:this.$=[J[ot-1],{type:"addALink",actor:J[ot-1].actor,text:J[ot]}];break;case 51:this.$=[J[ot-1],{type:"addProperties",actor:J[ot-1].actor,text:J[ot]}];break;case 52:this.$=[J[ot-1],{type:"addDetails",actor:J[ot-1].actor,text:J[ot]}];break;case 55:this.$=[J[ot-2],J[ot]];break;case 57:this.$=At.PLACEMENT.LEFTOF;break;case 58:this.$=At.PLACEMENT.RIGHTOF;break;case 59:this.$=[J[ot-4],J[ot-1],{type:"addMessage",from:J[ot-4].actor,to:J[ot-1].actor,signalType:J[ot-3],msg:J[ot]},{type:"activeStart",signalType:At.LINETYPE.ACTIVE_START,actor:J[ot-1]}];break;case 60:this.$=[J[ot-4],J[ot-1],{type:"addMessage",from:J[ot-4].actor,to:J[ot-1].actor,signalType:J[ot-3],msg:J[ot]},{type:"activeEnd",signalType:At.LINETYPE.ACTIVE_END,actor:J[ot-4]}];break;case 61:this.$=[J[ot-3],J[ot-1],{type:"addMessage",from:J[ot-3].actor,to:J[ot-1].actor,signalType:J[ot-2],msg:J[ot]}];break;case 62:this.$={type:"addParticipant",actor:J[ot]};break;case 63:this.$=At.LINETYPE.SOLID_OPEN;break;case 64:this.$=At.LINETYPE.DOTTED_OPEN;break;case 65:this.$=At.LINETYPE.SOLID;break;case 66:this.$=At.LINETYPE.DOTTED;break;case 67:this.$=At.LINETYPE.SOLID_CROSS;break;case 68:this.$=At.LINETYPE.DOTTED_CROSS;break;case 69:this.$=At.LINETYPE.SOLID_POINT;break;case 70:this.$=At.LINETYPE.DOTTED_POINT;break;case 71:this.$=At.parseMessage(J[ot].trim().substring(1));break;case 72:At.parseDirective("%%{","open_directive");break;case 73:At.parseDirective(J[ot],"type_directive");break;case 74:J[ot]=J[ot].trim().replace(/'/g,'"'),At.parseDirective(J[ot],"arg_directive");break;case 75:At.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:b,5:_,6:4,7:A,11:6,79:L},{1:[3]},{3:8,4:b,5:_,6:4,7:A,11:6,79:L},{3:9,4:b,5:_,6:4,7:A,11:6,79:L},{3:10,4:b,5:_,6:4,7:A,11:6,79:L},d([1,4,5,16,20,22,25,26,32,33,34,36,38,39,41,42,43,45,47,49,53,58,59,60,61,69,79],E,{8:11}),{12:12,80:[1,13]},{80:[2,72]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:D,5:R,6:41,9:14,10:16,11:6,16:P,17:42,20:$,21:20,22:K,25:et,26:ht,27:24,28:25,29:26,30:27,31:28,32:X,33:_t,34:rt,36:at,38:bt,39:Ft,41:Tt,42:yt,43:Nt,45:xt,47:pt,49:tt,53:ft,58:q,59:kt,60:W,61:St,69:Lt,79:L},{13:49,14:[1,50],82:Ht},d([14,82],[2,73]),d(ge,[2,6]),{6:41,10:52,11:6,16:P,17:42,20:$,21:20,22:K,25:et,26:ht,27:24,28:25,29:26,30:27,31:28,32:X,33:_t,34:rt,36:at,38:bt,39:Ft,41:Tt,42:yt,43:Nt,45:xt,47:pt,49:tt,53:ft,58:q,59:kt,60:W,61:St,69:Lt,79:L},d(ge,[2,8]),d(ge,[2,9]),{17:53,69:Lt},{17:54,69:Lt},{5:[1,55]},{5:[1,58],23:[1,56],24:[1,57]},{17:59,69:Lt},{17:60,69:Lt},{5:[1,61]},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},d(ge,[2,28]),d(ge,[2,29]),{35:[1,66]},{37:[1,67]},d(ge,[2,32]),{19:[1,68]},{19:[1,69]},{19:[1,70]},{19:[1,71]},{19:[1,72]},{19:[1,73]},{19:[1,74]},d(ge,[2,40]),{66:75,70:[1,76],71:[1,77],72:[1,78],73:[1,79],74:[1,80],75:[1,81],76:[1,82],77:[1,83]},{54:84,56:[1,85],64:[1,86],65:[1,87]},{17:88,69:Lt},{17:89,69:Lt},{17:90,69:Lt},{17:91,69:Lt},d([5,18,63,70,71,72,73,74,75,76,77,78],[2,62]),{5:[1,92]},{15:93,81:[1,94]},{5:[2,75]},d(ge,[2,7]),{5:[1,96],18:[1,95]},{5:[1,98],18:[1,97]},d(ge,[2,16]),{5:[1,100],23:[1,99]},{5:[1,101]},d(ge,[2,20]),{5:[1,102]},{5:[1,103]},d(ge,[2,23]),d(ge,[2,24]),d(ge,[2,25]),d(ge,[2,26]),d(ge,[2,27]),d(ge,[2,30]),d(ge,[2,31]),d(We,E,{8:104}),d(We,E,{8:105}),d(We,E,{8:106}),d(Ee,E,{44:107,8:108}),d(fe,E,{46:109,8:110}),d(xe,E,{48:111,8:112}),d(We,E,{8:113}),{17:116,67:[1,114],68:[1,115],69:Lt},d(Ie,[2,63]),d(Ie,[2,64]),d(Ie,[2,65]),d(Ie,[2,66]),d(Ie,[2,67]),d(Ie,[2,68]),d(Ie,[2,69]),d(Ie,[2,70]),{17:117,69:Lt},{17:119,57:118,69:Lt},{69:[2,57]},{69:[2,58]},{55:120,78:Me},{55:122,78:Me},{55:123,78:Me},{55:124,78:Me},d(ve,[2,10]),{13:125,82:Ht},{82:[2,74]},{19:[1,126]},d(ge,[2,13]),{19:[1,127]},d(ge,[2,15]),{5:[1,128]},d(ge,[2,18]),d(ge,[2,19]),d(ge,[2,21]),d(ge,[2,22]),{4:D,5:R,6:41,9:14,10:16,11:6,16:P,17:42,20:$,21:20,22:K,25:et,26:ht,27:24,28:25,29:26,30:27,31:28,32:X,33:_t,34:rt,36:at,38:bt,39:Ft,40:[1,129],41:Tt,42:yt,43:Nt,45:xt,47:pt,49:tt,53:ft,58:q,59:kt,60:W,61:St,69:Lt,79:L},{4:D,5:R,6:41,9:14,10:16,11:6,16:P,17:42,20:$,21:20,22:K,25:et,26:ht,27:24,28:25,29:26,30:27,31:28,32:X,33:_t,34:rt,36:at,38:bt,39:Ft,40:[1,130],41:Tt,42:yt,43:Nt,45:xt,47:pt,49:tt,53:ft,58:q,59:kt,60:W,61:St,69:Lt,79:L},{4:D,5:R,6:41,9:14,10:16,11:6,16:P,17:42,20:$,21:20,22:K,25:et,26:ht,27:24,28:25,29:26,30:27,31:28,32:X,33:_t,34:rt,36:at,38:bt,39:Ft,40:[1,131],41:Tt,42:yt,43:Nt,45:xt,47:pt,49:tt,53:ft,58:q,59:kt,60:W,61:St,69:Lt,79:L},{40:[1,132]},{4:D,5:R,6:41,9:14,10:16,11:6,16:P,17:42,20:$,21:20,22:K,25:et,26:ht,27:24,28:25,29:26,30:27,31:28,32:X,33:_t,34:rt,36:at,38:bt,39:Ft,40:[2,45],41:Tt,42:yt,43:Nt,45:xt,47:pt,49:tt,52:[1,133],53:ft,58:q,59:kt,60:W,61:St,69:Lt,79:L},{40:[1,134]},{4:D,5:R,6:41,9:14,10:16,11:6,16:P,17:42,20:$,21:20,22:K,25:et,26:ht,27:24,28:25,29:26,30:27,31:28,32:X,33:_t,34:rt,36:at,38:bt,39:Ft,40:[2,43],41:Tt,42:yt,43:Nt,45:xt,47:pt,49:tt,51:[1,135],53:ft,58:q,59:kt,60:W,61:St,69:Lt,79:L},{40:[1,136]},{4:D,5:R,6:41,9:14,10:16,11:6,16:P,17:42,20:$,21:20,22:K,25:et,26:ht,27:24,28:25,29:26,30:27,31:28,32:X,33:_t,34:rt,36:at,38:bt,39:Ft,40:[2,41],41:Tt,42:yt,43:Nt,45:xt,47:pt,49:tt,50:[1,137],53:ft,58:q,59:kt,60:W,61:St,69:Lt,79:L},{4:D,5:R,6:41,9:14,10:16,11:6,16:P,17:42,20:$,21:20,22:K,25:et,26:ht,27:24,28:25,29:26,30:27,31:28,32:X,33:_t,34:rt,36:at,38:bt,39:Ft,40:[1,138],41:Tt,42:yt,43:Nt,45:xt,47:pt,49:tt,53:ft,58:q,59:kt,60:W,61:St,69:Lt,79:L},{17:139,69:Lt},{17:140,69:Lt},{55:141,78:Me},{55:142,78:Me},{55:143,78:Me},{63:[1,144],78:[2,56]},{5:[2,49]},{5:[2,71]},{5:[2,50]},{5:[2,51]},{5:[2,52]},{5:[1,145]},{5:[1,146]},{5:[1,147]},d(ge,[2,17]),d(ge,[2,33]),d(ge,[2,34]),d(ge,[2,35]),d(ge,[2,36]),{19:[1,148]},d(ge,[2,37]),{19:[1,149]},d(ge,[2,38]),{19:[1,150]},d(ge,[2,39]),{55:151,78:Me},{55:152,78:Me},{5:[2,61]},{5:[2,47]},{5:[2,48]},{17:153,69:Lt},d(ve,[2,11]),d(ge,[2,12]),d(ge,[2,14]),d(Ee,E,{8:108,44:154}),d(fe,E,{8:110,46:155}),d(xe,E,{8:112,48:156}),{5:[2,59]},{5:[2,60]},{78:[2,55]},{40:[2,46]},{40:[2,44]},{40:[2,42]}],defaultActions:{7:[2,72],8:[2,1],9:[2,2],10:[2,3],51:[2,75],86:[2,57],87:[2,58],94:[2,74],120:[2,49],121:[2,71],122:[2,50],123:[2,51],124:[2,52],141:[2,61],142:[2,47],143:[2,48],151:[2,59],152:[2,60],153:[2,55],154:[2,46],155:[2,44],156:[2,42]},parseError:function(Ot,he){if(!he.recoverable){var Qt=new Error(Ot);throw Qt.hash=he,Qt}this.trace(Ot)},parse:function(Ot){var he=this,Qt=[0],At=[],De=[null],J=[],Ce=this.table,ot="",Te=0,ue=0,Fe=0,fn=2,rn=1,Xe=J.slice.call(arguments,1),ae=Object.create(this.lexer),Be={yy:{}};for(var pe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pe)&&(Be.yy[pe]=this.yy[pe]);ae.setInput(Ot,Be.yy),Be.yy.lexer=ae,Be.yy.parser=this,ae.yylloc===void 0&&(ae.yylloc={});var Pe=ae.yylloc;J.push(Pe);var ye=ae.options&&ae.options.ranges;function Ve(){var Vt;return typeof(Vt=At.pop()||ae.lex()||rn)!="number"&&(Vt instanceof Array&&(Vt=(At=Vt).pop()),Vt=he.symbols_[Vt]||Vt),Vt}typeof Be.yy.parseError=="function"?this.parseError=Be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var kn,ar,cn,hn,Qr,Lr,Cn,In,Le,ie={};;){if(cn=Qt[Qt.length-1],this.defaultActions[cn]?hn=this.defaultActions[cn]:(kn==null&&(kn=Ve()),hn=Ce[cn]&&Ce[cn][kn]),hn===void 0||!hn.length||!hn[0]){var Qe="";for(Lr in Le=[],Ce[cn])this.terminals_[Lr]&&Lr>fn&&Le.push("'"+this.terminals_[Lr]+"'");Qe=ae.showPosition?"Parse error on line "+(Te+1)+`:
|
|
`+ae.showPosition()+`
|
|
Expecting `+Le.join(", ")+", got '"+(this.terminals_[kn]||kn)+"'":"Parse error on line "+(Te+1)+": Unexpected "+(kn==rn?"end of input":"'"+(this.terminals_[kn]||kn)+"'"),this.parseError(Qe,{text:ae.match,token:this.terminals_[kn]||kn,line:ae.yylineno,loc:Pe,expected:Le})}if(hn[0]instanceof Array&&hn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+cn+", token: "+kn);switch(hn[0]){case 1:Qt.push(kn),De.push(ae.yytext),J.push(ae.yylloc),Qt.push(hn[1]),kn=null,ar?(kn=ar,ar=null):(ue=ae.yyleng,ot=ae.yytext,Te=ae.yylineno,Pe=ae.yylloc,Fe>0);break;case 2:if(Cn=this.productions_[hn[1]][1],ie.$=De[De.length-Cn],ie._$={first_line:J[J.length-(Cn||1)].first_line,last_line:J[J.length-1].last_line,first_column:J[J.length-(Cn||1)].first_column,last_column:J[J.length-1].last_column},ye&&(ie._$.range=[J[J.length-(Cn||1)].range[0],J[J.length-1].range[1]]),(Qr=this.performAction.apply(ie,[ot,ue,Te,Be.yy,hn[1],De,J].concat(Xe)))!==void 0)return Qr;Cn&&(Qt=Qt.slice(0,-1*Cn*2),De=De.slice(0,-1*Cn),J=J.slice(0,-1*Cn)),Qt.push(this.productions_[hn[1]][0]),De.push(ie.$),J.push(ie._$),In=Ce[Qt[Qt.length-2]][Qt[Qt.length-1]],Qt.push(In);break;case 3:return!0}}return!0}},_e={EOF:1,parseError:function(Ot,he){if(!this.yy.parser)throw new Error(Ot);this.yy.parser.parseError(Ot,he)},setInput:function(Ot,he){return this.yy=he||this.yy||{},this._input=Ot,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ot=this._input[0];return this.yytext+=Ot,this.yyleng++,this.offset++,this.match+=Ot,this.matched+=Ot,Ot.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),Ot},unput:function(Ot){var he=Ot.length,Qt=Ot.split(/(?:\r\n?|\n)/g);this._input=Ot+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var At=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),Qt.length-1&&(this.yylineno-=Qt.length-1);var De=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:Qt?(Qt.length===At.length?this.yylloc.first_column:0)+At[At.length-Qt.length].length-Qt[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[De[0],De[0]+this.yyleng-he]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Ot){this.unput(this.match.slice(Ot))},pastInput:function(){var Ot=this.matched.substr(0,this.matched.length-this.match.length);return(Ot.length>20?"...":"")+Ot.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ot=this.match;return Ot.length<20&&(Ot+=this._input.substr(0,20-Ot.length)),(Ot.substr(0,20)+(Ot.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ot=this.pastInput(),he=new Array(Ot.length+1).join("-");return Ot+this.upcomingInput()+`
|
|
`+he+"^"},test_match:function(Ot,he){var Qt,At,De;if(this.options.backtrack_lexer&&(De={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&&(De.yylloc.range=this.yylloc.range.slice(0))),(At=Ot[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=At.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:At?At[At.length-1].length-At[At.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ot[0].length},this.yytext+=Ot[0],this.match+=Ot[0],this.matches=Ot,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(Ot[0].length),this.matched+=Ot[0],Qt=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Qt)return Qt;if(this._backtrack){for(var J in De)this[J]=De[J];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ot,he,Qt,At;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var De=this._currentRules(),J=0;J<De.length;J++)if((Qt=this._input.match(this.rules[De[J]]))&&(!he||Qt[0].length>he[0].length)){if(he=Qt,At=J,this.options.backtrack_lexer){if((Ot=this.test_match(Qt,De[J]))!==!1)return Ot;if(this._backtrack){he=!1;continue}return!1}if(!this.options.flex)break}return he?(Ot=this.test_match(he,De[At]))!==!1&&Ot:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Ot){this.conditionStack.push(Ot)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ot){return(Ot=this.conditionStack.length-1-Math.abs(Ot||0))>=0?this.conditionStack[Ot]:"INITIAL"},pushState:function(Ot){this.begin(Ot)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ot,he,Qt,At){switch(Qt){case 0:return this.begin("open_directive"),79;case 1:return this.begin("type_directive"),80;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),82;case 4:return 81;case 5:case 52:case 65:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 23;case 12:return this.begin("ID"),16;case 13:return this.begin("ID"),20;case 14:return he.yytext=he.yytext.trim(),this.begin("ALIAS"),69;case 15:return this.popState(),this.popState(),this.begin("LINE"),18;case 16:return this.popState(),this.popState(),5;case 17:return this.begin("LINE"),39;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),52;case 22:return this.begin("LINE"),45;case 23:return this.begin("LINE"),51;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),50;case 26:return this.begin("LINE"),49;case 27:return this.popState(),19;case 28:return 40;case 29:return 64;case 30:return 65;case 31:return 58;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 56;case 36:return 53;case 37:return this.begin("ID"),25;case 38:return this.begin("ID"),26;case 39:return 32;case 40:return 33;case 41:return this.begin("acc_title"),34;case 42:return this.popState(),"acc_title_value";case 43:return this.begin("acc_descr"),36;case 44:return this.popState(),"acc_descr_value";case 45:this.begin("acc_descr_multiline");break;case 46:this.popState();break;case 47:return"acc_descr_multiline_value";case 48:return 7;case 49:return 22;case 50:return 24;case 51:return 63;case 53:return he.yytext=he.yytext.trim(),69;case 54:return 72;case 55:return 73;case 56:return 70;case 57:return 71;case 58:return 74;case 59:return 75;case 60:return 76;case 61:return 77;case 62:return 78;case 63:return 67;case 64:return 68;case 66:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\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,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[46,47],inclusive:!1},acc_descr:{rules:[44],inclusive:!1},acc_title:{rules:[42],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,14],inclusive:!1},ALIAS:{rules:[7,8,15,16],inclusive:!1},LINE:{rules:[7,8,27],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,45,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66],inclusive:!0}}};function en(){this.yy={}}return An.lexer=_e,en.prototype=An,An.Parser=en,new en}();k.parser=m,k.Parser=m.Parser,k.parse=function(){return m.parse.apply(m,arguments)},k.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var b=h(1993).readFileSync(h(6470).normalize(d[1]),"utf8");return k.parser.parse(b)},h.c[h.s]===f&&k.main(process.argv.slice(1))},3584:(f,k,h)=>{f=h.nmd(f);var m=function(){var d=function(Ee,fe,xe,Ie){for(xe=xe||{},Ie=Ee.length;Ie--;xe[Ee[Ie]]=fe);return xe},b=[1,2],_=[1,3],A=[1,5],L=[1,7],E=[2,5],D=[1,15],R=[1,17],P=[1,19],$=[1,20],K=[1,21],et=[1,22],ht=[1,33],X=[1,23],_t=[1,24],rt=[1,25],at=[1,26],bt=[1,27],Ft=[1,30],Tt=[1,31],yt=[1,32],Nt=[1,35],xt=[1,36],pt=[1,37],tt=[1,38],ft=[1,34],q=[1,41],kt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],W=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],St=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Lt=[4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"-->":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,openDirective:36,typeDirective:37,closeDirective:38,":":39,argDirective:40,direction_tb:41,direction_bt:42,direction_rl:43,direction_lr:44,eol:45,";":46,EDGE_STATE:47,left_of:48,right_of:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"-->",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CHOICE",26:"CONCURRENT",27:"note",29:"NOTE_TEXT",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",39:":",41:"direction_tb",42:"direction_bt",43:"direction_rl",44:"direction_lr",46:";",47:"EDGE_STATE",48:"left_of",49:"right_of",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[45,1],[45,1],[11,1],[11,1],[28,1],[28,1],[36,1],[37,1],[40,1],[38,1]],performAction:function(Ee,fe,xe,Ie,Me,ve,An){var _e=ve.length-1;switch(Me){case 4:return Ie.setRootDoc(ve[_e]),ve[_e];case 5:this.$=[];break;case 6:ve[_e]!="nl"&&(ve[_e-1].push(ve[_e]),this.$=ve[_e-1]);break;case 7:case 8:case 39:case 40:this.$=ve[_e];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:ve[_e],type:"default",description:""};break;case 11:this.$={stmt:"state",id:ve[_e-1],type:"default",description:Ie.trimColon(ve[_e])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:ve[_e-2],type:"default",description:""},state2:{stmt:"state",id:ve[_e],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:ve[_e-3],type:"default",description:""},state2:{stmt:"state",id:ve[_e-1],type:"default",description:""},description:ve[_e].substr(1).trim()};break;case 17:this.$={stmt:"state",id:ve[_e-3],type:"default",description:"",doc:ve[_e-1]};break;case 18:var en=ve[_e],Ot=ve[_e-2].trim();if(ve[_e].match(":")){var he=ve[_e].split(":");en=he[0],Ot=[Ot,he[1]]}this.$={stmt:"state",id:en,type:"default",description:Ot};break;case 19:this.$={stmt:"state",id:ve[_e-3],type:"default",description:ve[_e-5],doc:ve[_e-1]};break;case 20:this.$={stmt:"state",id:ve[_e],type:"fork"};break;case 21:this.$={stmt:"state",id:ve[_e],type:"join"};break;case 22:this.$={stmt:"state",id:ve[_e],type:"choice"};break;case 23:this.$={stmt:"state",id:Ie.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:ve[_e-1].trim(),note:{position:ve[_e-2].trim(),text:ve[_e].trim()}};break;case 28:this.$=ve[_e].trim(),Ie.setAccTitle(this.$);break;case 29:case 30:this.$=ve[_e].trim(),Ie.setAccDescription(this.$);break;case 33:Ie.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 34:Ie.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 35:Ie.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 36:Ie.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 43:Ie.parseDirective("%%{","open_directive");break;case 44:Ie.parseDirective(ve[_e],"type_directive");break;case 45:ve[_e]=ve[_e].trim().replace(/'/g,'"'),Ie.parseDirective(ve[_e],"arg_directive");break;case 46:Ie.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:b,5:_,6:4,7:A,36:6,50:L},{1:[3]},{3:8,4:b,5:_,6:4,7:A,36:6,50:L},{3:9,4:b,5:_,6:4,7:A,36:6,50:L},{3:10,4:b,5:_,6:4,7:A,36:6,50:L},d([1,4,5,14,15,17,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],E,{8:11}),{37:12,51:[1,13]},{51:[2,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:D,5:R,6:28,9:14,10:16,11:18,14:P,15:$,17:K,20:et,22:ht,23:X,24:_t,25:rt,26:at,27:bt,30:29,31:Ft,33:Tt,35:yt,36:6,41:Nt,42:xt,43:pt,44:tt,47:ft,50:L},{38:39,39:[1,40],53:q},d([39,53],[2,44]),d(kt,[2,6]),{6:28,10:42,11:18,14:P,15:$,17:K,20:et,22:ht,23:X,24:_t,25:rt,26:at,27:bt,30:29,31:Ft,33:Tt,35:yt,36:6,41:Nt,42:xt,43:pt,44:tt,47:ft,50:L},d(kt,[2,8]),d(kt,[2,9]),d(kt,[2,10],{12:[1,43],13:[1,44]}),d(kt,[2,14]),{16:[1,45]},d(kt,[2,16],{18:[1,46]}),{21:[1,47]},d(kt,[2,20]),d(kt,[2,21]),d(kt,[2,22]),d(kt,[2,23]),{28:48,29:[1,49],48:[1,50],49:[1,51]},d(kt,[2,26]),d(kt,[2,27]),{32:[1,52]},{34:[1,53]},d(kt,[2,30]),d(W,[2,39]),d(W,[2,40]),d(kt,[2,33]),d(kt,[2,34]),d(kt,[2,35]),d(kt,[2,36]),d(St,[2,31]),{40:54,52:[1,55]},d(St,[2,46]),d(kt,[2,7]),d(kt,[2,11]),{11:56,22:ht,47:ft},d(kt,[2,15]),d(Lt,E,{8:57}),{22:[1,58]},{22:[1,59]},{21:[1,60]},{22:[2,41]},{22:[2,42]},d(kt,[2,28]),d(kt,[2,29]),{38:61,53:q},{53:[2,45]},d(kt,[2,12],{12:[1,62]}),{4:D,5:R,6:28,9:14,10:16,11:18,14:P,15:$,17:K,19:[1,63],20:et,22:ht,23:X,24:_t,25:rt,26:at,27:bt,30:29,31:Ft,33:Tt,35:yt,36:6,41:Nt,42:xt,43:pt,44:tt,47:ft,50:L},d(kt,[2,18],{18:[1,64]}),{29:[1,65]},{22:[1,66]},d(St,[2,32]),d(kt,[2,13]),d(kt,[2,17]),d(Lt,E,{8:67}),d(kt,[2,24]),d(kt,[2,25]),{4:D,5:R,6:28,9:14,10:16,11:18,14:P,15:$,17:K,19:[1,68],20:et,22:ht,23:X,24:_t,25:rt,26:at,27:bt,30:29,31:Ft,33:Tt,35:yt,36:6,41:Nt,42:xt,43:pt,44:tt,47:ft,50:L},d(kt,[2,19])],defaultActions:{7:[2,43],8:[2,1],9:[2,2],10:[2,3],50:[2,41],51:[2,42],55:[2,45]},parseError:function(Ee,fe){if(!fe.recoverable){var xe=new Error(Ee);throw xe.hash=fe,xe}this.trace(Ee)},parse:function(Ee){var fe=this,xe=[0],Ie=[],Me=[null],ve=[],An=this.table,_e="",en=0,Ot=0,he=0,Qt=2,At=1,De=ve.slice.call(arguments,1),J=Object.create(this.lexer),Ce={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(Ce.yy[ot]=this.yy[ot]);J.setInput(Ee,Ce.yy),Ce.yy.lexer=J,Ce.yy.parser=this,J.yylloc===void 0&&(J.yylloc={});var Te=J.yylloc;ve.push(Te);var ue=J.options&&J.options.ranges;function Fe(){var cn;return typeof(cn=Ie.pop()||J.lex()||At)!="number"&&(cn instanceof Array&&(cn=(Ie=cn).pop()),cn=fe.symbols_[cn]||cn),cn}typeof Ce.yy.parseError=="function"?this.parseError=Ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var fn,rn,Xe,ae,Be,pe,Pe,ye,Ve,kn={};;){if(Xe=xe[xe.length-1],this.defaultActions[Xe]?ae=this.defaultActions[Xe]:(fn==null&&(fn=Fe()),ae=An[Xe]&&An[Xe][fn]),ae===void 0||!ae.length||!ae[0]){var ar="";for(pe in Ve=[],An[Xe])this.terminals_[pe]&&pe>Qt&&Ve.push("'"+this.terminals_[pe]+"'");ar=J.showPosition?"Parse error on line "+(en+1)+`:
|
|
`+J.showPosition()+`
|
|
Expecting `+Ve.join(", ")+", got '"+(this.terminals_[fn]||fn)+"'":"Parse error on line "+(en+1)+": Unexpected "+(fn==At?"end of input":"'"+(this.terminals_[fn]||fn)+"'"),this.parseError(ar,{text:J.match,token:this.terminals_[fn]||fn,line:J.yylineno,loc:Te,expected:Ve})}if(ae[0]instanceof Array&&ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xe+", token: "+fn);switch(ae[0]){case 1:xe.push(fn),Me.push(J.yytext),ve.push(J.yylloc),xe.push(ae[1]),fn=null,rn?(fn=rn,rn=null):(Ot=J.yyleng,_e=J.yytext,en=J.yylineno,Te=J.yylloc,he>0);break;case 2:if(Pe=this.productions_[ae[1]][1],kn.$=Me[Me.length-Pe],kn._$={first_line:ve[ve.length-(Pe||1)].first_line,last_line:ve[ve.length-1].last_line,first_column:ve[ve.length-(Pe||1)].first_column,last_column:ve[ve.length-1].last_column},ue&&(kn._$.range=[ve[ve.length-(Pe||1)].range[0],ve[ve.length-1].range[1]]),(Be=this.performAction.apply(kn,[_e,Ot,en,Ce.yy,ae[1],Me,ve].concat(De)))!==void 0)return Be;Pe&&(xe=xe.slice(0,-1*Pe*2),Me=Me.slice(0,-1*Pe),ve=ve.slice(0,-1*Pe)),xe.push(this.productions_[ae[1]][0]),Me.push(kn.$),ve.push(kn._$),ye=An[xe[xe.length-2]][xe[xe.length-1]],xe.push(ye);break;case 3:return!0}}return!0}},ge={EOF:1,parseError:function(Ee,fe){if(!this.yy.parser)throw new Error(Ee);this.yy.parser.parseError(Ee,fe)},setInput:function(Ee,fe){return this.yy=fe||this.yy||{},this._input=Ee,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Ee=this._input[0];return this.yytext+=Ee,this.yyleng++,this.offset++,this.match+=Ee,this.matched+=Ee,Ee.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),Ee},unput:function(Ee){var fe=Ee.length,xe=Ee.split(/(?:\r\n?|\n)/g);this._input=Ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-fe),this.offset-=fe;var Ie=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),xe.length-1&&(this.yylineno-=xe.length-1);var Me=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:xe?(xe.length===Ie.length?this.yylloc.first_column:0)+Ie[Ie.length-xe.length].length-xe[0].length:this.yylloc.first_column-fe},this.options.ranges&&(this.yylloc.range=[Me[0],Me[0]+this.yyleng-fe]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Ee){this.unput(this.match.slice(Ee))},pastInput:function(){var Ee=this.matched.substr(0,this.matched.length-this.match.length);return(Ee.length>20?"...":"")+Ee.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ee=this.match;return Ee.length<20&&(Ee+=this._input.substr(0,20-Ee.length)),(Ee.substr(0,20)+(Ee.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ee=this.pastInput(),fe=new Array(Ee.length+1).join("-");return Ee+this.upcomingInput()+`
|
|
`+fe+"^"},test_match:function(Ee,fe){var xe,Ie,Me;if(this.options.backtrack_lexer&&(Me={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&&(Me.yylloc.range=this.yylloc.range.slice(0))),(Ie=Ee[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ie.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ie?Ie[Ie.length-1].length-Ie[Ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ee[0].length},this.yytext+=Ee[0],this.match+=Ee[0],this.matches=Ee,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(Ee[0].length),this.matched+=Ee[0],xe=this.performAction.call(this,this.yy,this,fe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),xe)return xe;if(this._backtrack){for(var ve in Me)this[ve]=Me[ve];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ee,fe,xe,Ie;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Me=this._currentRules(),ve=0;ve<Me.length;ve++)if((xe=this._input.match(this.rules[Me[ve]]))&&(!fe||xe[0].length>fe[0].length)){if(fe=xe,Ie=ve,this.options.backtrack_lexer){if((Ee=this.test_match(xe,Me[ve]))!==!1)return Ee;if(this._backtrack){fe=!1;continue}return!1}if(!this.options.flex)break}return fe?(Ee=this.test_match(fe,Me[Ie]))!==!1&&Ee:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Ee){this.conditionStack.push(Ee)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ee){return(Ee=this.conditionStack.length-1-Math.abs(Ee||0))>=0?this.conditionStack[Ee]:"INITIAL"},pushState:function(Ee){this.begin(Ee)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ee,fe,xe,Ie){switch(xe){case 0:case 33:return 41;case 1:case 34:return 42;case 2:case 35:return 43;case 3:case 36:return 44;case 4:return this.begin("open_directive"),50;case 5:return this.begin("type_directive"),51;case 6:return this.popState(),this.begin("arg_directive"),39;case 7:return this.popState(),this.popState(),53;case 8:return 52;case 9:case 10:case 12:case 13:case 14:case 15:case 46:case 52:break;case 11:case 66:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 24:case 40:case 43:this.popState();break;case 19:return this.begin("acc_title"),31;case 20:return this.popState(),"acc_title_value";case 21:return this.begin("acc_descr"),33;case 22:return this.popState(),"acc_descr_value";case 23:this.begin("acc_descr_multiline");break;case 25:return"acc_descr_multiline_value";case 26:this.pushState("STATE");break;case 27:case 30:return this.popState(),fe.yytext=fe.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),fe.yytext=fe.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),fe.yytext=fe.yytext.slice(0,-10).trim(),25;case 37:this.begin("STATE_STRING");break;case 38:return this.popState(),this.pushState("STATE_ID"),"AS";case 39:case 54:return this.popState(),"ID";case 41:return"STATE_DESCR";case 42:return 17;case 44:return this.popState(),this.pushState("struct"),18;case 45:return this.popState(),19;case 47:return this.begin("NOTE"),27;case 48:return this.popState(),this.pushState("NOTE_ID"),48;case 49:return this.popState(),this.pushState("NOTE_ID"),49;case 50:this.popState(),this.pushState("FLOATING_NOTE");break;case 51:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 53:return"NOTE_TEXT";case 55:return this.popState(),this.pushState("NOTE_TEXT"),22;case 56:return this.popState(),fe.yytext=fe.yytext.substr(2).trim(),29;case 57:return this.popState(),fe.yytext=fe.yytext.slice(0,-8).trim(),29;case 58:case 59:return 7;case 60:return 14;case 61:return 47;case 62:return 22;case 63:return fe.yytext=fe.yytext.trim(),12;case 64:return 13;case 65:return 26;case 67:return"INVALID"}},rules:[/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\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,/^(?: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]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,26,33,34,35,36,45,46,47,61,62,63,64,65],inclusive:!1},FLOATING_NOTE_ID:{rules:[54],inclusive:!1},FLOATING_NOTE:{rules:[51,52,53],inclusive:!1},NOTE_TEXT:{rules:[56,57],inclusive:!1},NOTE_ID:{rules:[55],inclusive:!1},NOTE:{rules:[48,49,50],inclusive:!1},acc_descr_multiline:{rules:[24,25],inclusive:!1},acc_descr:{rules:[22],inclusive:!1},acc_title:{rules:[20],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[39],inclusive:!1},STATE_STRING:{rules:[40,41],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,27,28,29,30,31,32,37,38,42,43,44],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,21,23,26,44,47,58,59,60,61,62,63,64,66,67],inclusive:!0}}};function We(){this.yy={}}return Ht.lexer=ge,We.prototype=Ht,Ht.Parser=We,new We}();k.parser=m,k.Parser=m.Parser,k.parse=function(){return m.parse.apply(m,arguments)},k.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var b=h(3069).readFileSync(h(6470).normalize(d[1]),"utf8");return k.parser.parse(b)},h.c[h.s]===f&&k.main(process.argv.slice(1))},9763:(f,k,h)=>{f=h.nmd(f);var m=function(){var d=function(rt,at,bt,Ft){for(bt=bt||{},Ft=rt.length;Ft--;bt[rt[Ft]]=at);return bt},b=[1,2],_=[1,5],A=[6,9,11,17,18,20,22,23,24,26],L=[1,15],E=[1,16],D=[1,17],R=[1,18],P=[1,19],$=[1,20],K=[1,24],et=[4,6,9,11,17,18,20,22,23,24,26],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(rt,at,bt,Ft,Tt,yt,Nt){var xt=yt.length-1;switch(Tt){case 1:return yt[xt-1];case 3:case 7:case 8:this.$=[];break;case 4:yt[xt-1].push(yt[xt]),this.$=yt[xt-1];break;case 5:case 6:this.$=yt[xt];break;case 11:Ft.setDiagramTitle(yt[xt].substr(6)),this.$=yt[xt].substr(6);break;case 12:this.$=yt[xt].trim(),Ft.setAccTitle(this.$);break;case 13:case 14:this.$=yt[xt].trim(),Ft.setAccDescription(this.$);break;case 15:Ft.addSection(yt[xt].substr(8)),this.$=yt[xt].substr(8);break;case 16:Ft.addTask(yt[xt-1],yt[xt]),this.$="task";break;case 18:Ft.parseDirective("%%{","open_directive");break;case 19:Ft.parseDirective(yt[xt],"type_directive");break;case 20:yt[xt]=yt[xt].trim().replace(/'/g,'"'),Ft.parseDirective(yt[xt],"arg_directive");break;case 21:Ft.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:b,7:3,12:4,26:_},{1:[3]},d(A,[2,3],{5:6}),{3:7,4:b,7:3,12:4,26:_},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:L,18:E,20:D,22:R,23:P,24:$,26:_},{1:[2,2]},{14:22,15:[1,23],29:K},d([15,29],[2,19]),d(A,[2,8],{1:[2,1]}),d(A,[2,4]),{7:21,10:25,12:4,17:L,18:E,20:D,22:R,23:P,24:$,26:_},d(A,[2,6]),d(A,[2,7]),d(A,[2,11]),{19:[1,26]},{21:[1,27]},d(A,[2,14]),d(A,[2,15]),{25:[1,28]},d(A,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},d(A,[2,5]),d(A,[2,12]),d(A,[2,13]),d(A,[2,16]),d(et,[2,9]),{14:32,29:K},{29:[2,20]},{11:[1,33]},d(et,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(rt,at){if(!at.recoverable){var bt=new Error(rt);throw bt.hash=at,bt}this.trace(rt)},parse:function(rt){var at=this,bt=[0],Ft=[],Tt=[null],yt=[],Nt=this.table,xt="",pt=0,tt=0,ft=0,q=2,kt=1,W=yt.slice.call(arguments,1),St=Object.create(this.lexer),Lt={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(Lt.yy[Ht]=this.yy[Ht]);St.setInput(rt,Lt.yy),Lt.yy.lexer=St,Lt.yy.parser=this,St.yylloc===void 0&&(St.yylloc={});var ge=St.yylloc;yt.push(ge);var We=St.options&&St.options.ranges;function Ee(){var At;return typeof(At=Ft.pop()||St.lex()||kt)!="number"&&(At instanceof Array&&(At=(Ft=At).pop()),At=at.symbols_[At]||At),At}typeof Lt.yy.parseError=="function"?this.parseError=Lt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var fe,xe,Ie,Me,ve,An,_e,en,Ot,he={};;){if(Ie=bt[bt.length-1],this.defaultActions[Ie]?Me=this.defaultActions[Ie]:(fe==null&&(fe=Ee()),Me=Nt[Ie]&&Nt[Ie][fe]),Me===void 0||!Me.length||!Me[0]){var Qt="";for(An in Ot=[],Nt[Ie])this.terminals_[An]&&An>q&&Ot.push("'"+this.terminals_[An]+"'");Qt=St.showPosition?"Parse error on line "+(pt+1)+`:
|
|
`+St.showPosition()+`
|
|
Expecting `+Ot.join(", ")+", got '"+(this.terminals_[fe]||fe)+"'":"Parse error on line "+(pt+1)+": Unexpected "+(fe==kt?"end of input":"'"+(this.terminals_[fe]||fe)+"'"),this.parseError(Qt,{text:St.match,token:this.terminals_[fe]||fe,line:St.yylineno,loc:ge,expected:Ot})}if(Me[0]instanceof Array&&Me.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ie+", token: "+fe);switch(Me[0]){case 1:bt.push(fe),Tt.push(St.yytext),yt.push(St.yylloc),bt.push(Me[1]),fe=null,xe?(fe=xe,xe=null):(tt=St.yyleng,xt=St.yytext,pt=St.yylineno,ge=St.yylloc,ft>0);break;case 2:if(_e=this.productions_[Me[1]][1],he.$=Tt[Tt.length-_e],he._$={first_line:yt[yt.length-(_e||1)].first_line,last_line:yt[yt.length-1].last_line,first_column:yt[yt.length-(_e||1)].first_column,last_column:yt[yt.length-1].last_column},We&&(he._$.range=[yt[yt.length-(_e||1)].range[0],yt[yt.length-1].range[1]]),(ve=this.performAction.apply(he,[xt,tt,pt,Lt.yy,Me[1],Tt,yt].concat(W)))!==void 0)return ve;_e&&(bt=bt.slice(0,-1*_e*2),Tt=Tt.slice(0,-1*_e),yt=yt.slice(0,-1*_e)),bt.push(this.productions_[Me[1]][0]),Tt.push(he.$),yt.push(he._$),en=Nt[bt[bt.length-2]][bt[bt.length-1]],bt.push(en);break;case 3:return!0}}return!0}},X={EOF:1,parseError:function(rt,at){if(!this.yy.parser)throw new Error(rt);this.yy.parser.parseError(rt,at)},setInput:function(rt,at){return this.yy=at||this.yy||{},this._input=rt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var rt=this._input[0];return this.yytext+=rt,this.yyleng++,this.offset++,this.match+=rt,this.matched+=rt,rt.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),rt},unput:function(rt){var at=rt.length,bt=rt.split(/(?:\r\n?|\n)/g);this._input=rt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-at),this.offset-=at;var Ft=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),bt.length-1&&(this.yylineno-=bt.length-1);var Tt=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:bt?(bt.length===Ft.length?this.yylloc.first_column:0)+Ft[Ft.length-bt.length].length-bt[0].length:this.yylloc.first_column-at},this.options.ranges&&(this.yylloc.range=[Tt[0],Tt[0]+this.yyleng-at]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(rt){this.unput(this.match.slice(rt))},pastInput:function(){var rt=this.matched.substr(0,this.matched.length-this.match.length);return(rt.length>20?"...":"")+rt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var rt=this.match;return rt.length<20&&(rt+=this._input.substr(0,20-rt.length)),(rt.substr(0,20)+(rt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var rt=this.pastInput(),at=new Array(rt.length+1).join("-");return rt+this.upcomingInput()+`
|
|
`+at+"^"},test_match:function(rt,at){var bt,Ft,Tt;if(this.options.backtrack_lexer&&(Tt={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&&(Tt.yylloc.range=this.yylloc.range.slice(0))),(Ft=rt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ft.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ft?Ft[Ft.length-1].length-Ft[Ft.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+rt[0].length},this.yytext+=rt[0],this.match+=rt[0],this.matches=rt,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(rt[0].length),this.matched+=rt[0],bt=this.performAction.call(this,this.yy,this,at,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),bt)return bt;if(this._backtrack){for(var yt in Tt)this[yt]=Tt[yt];return!1}return!1},next:function(){if(this.done)return this.EOF;var rt,at,bt,Ft;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Tt=this._currentRules(),yt=0;yt<Tt.length;yt++)if((bt=this._input.match(this.rules[Tt[yt]]))&&(!at||bt[0].length>at[0].length)){if(at=bt,Ft=yt,this.options.backtrack_lexer){if((rt=this.test_match(bt,Tt[yt]))!==!1)return rt;if(this._backtrack){at=!1;continue}return!1}if(!this.options.flex)break}return at?(rt=this.test_match(at,Tt[Ft]))!==!1&&rt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(rt){this.conditionStack.push(rt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(rt){return(rt=this.conditionStack.length-1-Math.abs(rt||0))>=0?this.conditionStack[rt]:"INITIAL"},pushState:function(rt){this.begin(rt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(rt,at,bt,Ft){switch(bt){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\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:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};function _t(){this.yy={}}return ht.lexer=X,_t.prototype=ht,ht.Parser=_t,new _t}();k.parser=m,k.Parser=m.Parser,k.parse=function(){return m.parse.apply(m,arguments)},k.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var b=h(9143).readFileSync(h(6470).normalize(d[1]),"utf8");return k.parser.parse(b)},h.c[h.s]===f&&k.main(process.argv.slice(1))},7967:(f,k)=>{k.N=void 0;var h=/^([^\w]*)(javascript|data|vbscript)/im,m=/&#(\w+)(^\w|;)?/g,d=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,b=/^([^:]+):/gm,_=[".","/"];k.N=function(A){var L,E=(L=A||"",L.replace(m,function(P,$){return String.fromCharCode($)})).replace(d,"").trim();if(!E)return"about:blank";if(function(P){return _.indexOf(P[0])>-1}(E))return E;var D=E.match(b);if(!D)return E;var R=D[0];return h.test(R)?"about:blank":E}},3841:f=>{f.exports=function(k,h){return k.intersect(h)}},4505:(f,k,h)=>{h.d(k,{Z:()=>hi});var m=h(1941),d=h.n(m),b={debug:1,info:2,warn:3,error:4,fatal:5},_={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},A=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(l)&&(l=l.toLowerCase(),b[l]!==void 0&&(l=b[l])),_.trace=function(){},_.debug=function(){},_.info=function(){},_.warn=function(){},_.error=function(){},_.fatal=function(){},l<=b.fatal&&(_.fatal=console.error?console.error.bind(console,L("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",L("FATAL"))),l<=b.error&&(_.error=console.error?console.error.bind(console,L("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",L("ERROR"))),l<=b.warn&&(_.warn=console.warn?console.warn.bind(console,L("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",L("WARN"))),l<=b.info&&(_.info=console.info?console.info.bind(console,L("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",L("INFO"))),l<=b.debug&&(_.debug=console.debug?console.debug.bind(console,L("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",L("DEBUG")))},L=function(l){var s=d()().format("ss.SSS");return"%c".concat(s," : ").concat(l," : ")},E=h(7543),D="comm",R="rule",P="decl",$=Math.abs,K=String.fromCharCode;function et(l){return l.trim()}function ht(l,s,y){return l.replace(s,y)}function X(l,s){return l.indexOf(s)}function _t(l,s){return 0|l.charCodeAt(s)}function rt(l,s,y){return l.slice(s,y)}function at(l){return l.length}function bt(l){return l.length}function Ft(l,s){return s.push(l),l}function Tt(l,s){for(var y="",w=bt(l),S=0;S<w;S++)y+=s(l[S],S,l,s)||"";return y}function yt(l,s,y,w){switch(l.type){case"@import":case P:return l.return=l.return||l.value;case D:return"";case"@keyframes":return l.return=l.value+"{"+Tt(l.children,w)+"}";case R:l.value=l.props.join(",")}return at(y=Tt(l.children,w))?l.return=l.value+"{"+y+"}":""}var Nt=1,xt=1,pt=0,tt=0,ft=0,q="";function kt(l,s,y,w,S,M,N){return{value:l,root:s,parent:y,type:w,props:S,children:M,line:Nt,column:xt,length:N,return:""}}function W(){return ft=tt>0?_t(q,--tt):0,xt--,ft===10&&(xt=1,Nt--),ft}function St(){return ft=tt<pt?_t(q,tt++):0,xt++,ft===10&&(xt=1,Nt++),ft}function Lt(){return _t(q,tt)}function Ht(){return tt}function ge(l,s){return rt(q,l,s)}function We(l){switch(l){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ee(l){return et(ge(tt-1,Ie(l===91?l+2:l===40?l+1:l)))}function fe(l){for(;(ft=Lt())&&ft<33;)St();return We(l)>2||We(ft)>3?"":" "}function xe(l,s){for(;--s&&St()&&!(ft<48||ft>102||ft>57&&ft<65||ft>70&&ft<97););return ge(l,Ht()+(s<6&&Lt()==32&&St()==32))}function Ie(l){for(;St();)switch(ft){case l:return tt;case 34:case 39:l!==34&&l!==39&&Ie(ft);break;case 40:l===41&&Ie(l);break;case 92:St()}return tt}function Me(l,s){for(;St()&&l+ft!==57&&(l+ft!==84||Lt()!==47););return"/*"+ge(s,tt-1)+"*"+K(l===47?l:St())}function ve(l){for(;!We(Lt());)St();return ge(l,tt)}function An(l){return function(s){return q="",s}(_e("",null,null,null,[""],l=function(s){return Nt=xt=1,pt=at(q=s),tt=0,[]}(l),0,[0],l))}function _e(l,s,y,w,S,M,N,B,Y){for(var H=0,it=0,ut=N,gt=0,st=0,Pt=0,Dt=1,Xt=1,Mt=1,It=0,$t="",ee=S,Re=M,Se=w,se=$t;Xt;)switch(Pt=It,It=St()){case 40:if(Pt!=108&&se.charCodeAt(ut-1)==58){X(se+=ht(Ee(It),"&","&\f"),"&\f")!=-1&&(Mt=-1);break}case 34:case 39:case 91:se+=Ee(It);break;case 9:case 10:case 13:case 32:se+=fe(Pt);break;case 92:se+=xe(Ht()-1,7);continue;case 47:switch(Lt()){case 42:case 47:Ft(Ot(Me(St(),Ht()),s,y),Y);break;default:se+="/"}break;case 123*Dt:B[H++]=at(se)*Mt;case 125*Dt:case 59:case 0:switch(It){case 0:case 125:Xt=0;case 59+it:st>0&&at(se)-ut&&Ft(st>32?he(se+";",w,y,ut-1):he(ht(se," ","")+";",w,y,ut-2),Y);break;case 59:se+=";";default:if(Ft(Se=en(se,s,y,H,it,S,B,$t,ee=[],Re=[],ut),M),It===123)if(it===0)_e(se,s,Se,Se,ee,M,ut,B,Re);else switch(gt){case 100:case 109:case 115:_e(l,Se,Se,w&&Ft(en(l,Se,Se,0,0,S,B,$t,S,ee=[],ut),Re),S,Re,ut,B,w?ee:Re);break;default:_e(se,Se,Se,Se,[""],Re,0,B,Re)}}H=it=st=0,Dt=Mt=1,$t=se="",ut=N;break;case 58:ut=1+at(se),st=Pt;default:if(Dt<1){if(It==123)--Dt;else if(It==125&&Dt++==0&&W()==125)continue}switch(se+=K(It),It*Dt){case 38:Mt=it>0?1:(se+="\f",-1);break;case 44:B[H++]=(at(se)-1)*Mt,Mt=1;break;case 64:Lt()===45&&(se+=Ee(St())),gt=Lt(),it=ut=at($t=se+=ve(Ht())),It++;break;case 45:Pt===45&&at(se)==2&&(Dt=0)}}return M}function en(l,s,y,w,S,M,N,B,Y,H,it){for(var ut=S-1,gt=S===0?M:[""],st=bt(gt),Pt=0,Dt=0,Xt=0;Pt<w;++Pt)for(var Mt=0,It=rt(l,ut+1,ut=$(Dt=N[Pt])),$t=l;Mt<st;++Mt)($t=et(Dt>0?gt[Mt]+" "+It:ht(It,/&\f/g,gt[Mt])))&&(Y[Xt++]=$t);return kt(l,s,y,S===0?R:B,Y,H,it)}function Ot(l,s,y){return kt(l,s,y,D,K(ft),rt(l,2,-2),0)}function he(l,s,y,w){return kt(l,s,y,P,rt(l,0,w),rt(l,w+1,-1),w)}const Qt="9.1.3";var At=h(7967),De=h(7856),J=h.n(De),Ce=function(l){var s=l.replace(/\\u[\dA-F]{4}/gi,function(y){return String.fromCharCode(parseInt(y.replace(/\\u/g,""),16))});return s=(s=(s=s.replace(/\\x([0-9a-f]{2})/gi,function(y,w){return String.fromCharCode(parseInt(w,16))})).replace(/\\[\d\d\d]{3}/gi,function(y){return String.fromCharCode(parseInt(y.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(y){return String.fromCharCode(parseInt(y.replace(/\\/g,""),8))})},ot=function(l){for(var s="",y=0;y>=0;){if(!((y=l.indexOf("<script"))>=0)){s+=l,y=-1;break}s+=l.substr(0,y),(y=(l=l.substr(y+1)).indexOf("<\/script>"))>=0&&(y+=9,l=l.substr(y))}var w=Ce(s);return(w=(w=(w=(w=w.replaceAll(/script>/gi,"#")).replaceAll(/javascript:/gi,"#")).replaceAll(/javascript&colon/gi,"#")).replaceAll(/onerror=/gi,"onerror:")).replaceAll(/<iframe/gi,"")},Te=function(l,s){var y=l,w=!0;if(!s.flowchart||s.flowchart.htmlLabels!==!1&&s.flowchart.htmlLabels!=="false"||(w=!1),w){var S=s.securityLevel;S==="antiscript"||S==="strict"?y=ot(y):S!=="loose"&&(y=(y=(y=rn(y)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),y=fn(y))}return y},ue=function(l,s){return l&&(s.dompurifyConfig?J().sanitize(Te(l,s),s.dompurifyConfig):J().sanitize(Te(l,s)))},Fe=/<br\s*\/?>/gi,fn=function(l){return l.replace(/#br#/g,"<br/>")},rn=function(l){return l.replace(Fe,"#br#")},Xe=function(l){return l!=="false"&&l!==!1};const ae={getRows:function(l){if(!l)return 1;var s=rn(l);return(s=s.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:ue,sanitizeTextOrArray:function(l,s){return typeof l=="string"?ue(l,s):l.flat().map(function(y){return ue(y,s)})},hasBreaks:function(l){return Fe.test(l)},splitBreaks:function(l){return l.split(Fe)},lineBreakRegex:Fe,removeScript:ot,getUrl:function(l){var s="";return l&&(s=(s=(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),s},evaluate:Xe,removeEscapes:Ce},Be={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:l=>l>=255?255:l<0?0:l,g:l=>l>=255?255:l<0?0:l,b:l=>l>=255?255:l<0?0:l,h:l=>l%360,s:l=>l>=100?100:l<0?0:l,l:l=>l>=100?100:l<0?0:l,a:l=>l>=1?1:l<0?0:l},toLinear:l=>{const s=l/255;return l>.03928?Math.pow((s+.055)/1.055,2.4):s/12.92},hue2rgb:(l,s,y)=>(y<0&&(y+=1),y>1&&(y-=1),y<1/6?l+6*(s-l)*y:y<.5?s:y<2/3?l+(s-l)*(2/3-y)*6:l),hsl2rgb:({h:l,s,l:y},w)=>{if(!s)return 2.55*y;l/=360,s/=100;const S=(y/=100)<.5?y*(1+s):y+s-y*s,M=2*y-S;switch(w){case"r":return 255*Be.hue2rgb(M,S,l+1/3);case"g":return 255*Be.hue2rgb(M,S,l);case"b":return 255*Be.hue2rgb(M,S,l-1/3)}},rgb2hsl:({r:l,g:s,b:y},w)=>{l/=255,s/=255,y/=255;const S=Math.max(l,s,y),M=Math.min(l,s,y),N=(S+M)/2;if(w==="l")return 100*N;if(S===M)return 0;const B=S-M;if(w==="s")return 100*(N>.5?B/(2-S-M):B/(S+M));switch(S){case l:return 60*((s-y)/B+(s<y?6:0));case s:return 60*((y-l)/B+2);case y:return 60*((l-s)/B+4);default:return-1}}},pe={channel:Be,lang:{clamp:(l,s,y)=>s>y?Math.min(s,Math.max(y,l)):Math.min(y,Math.max(s,l)),round:l=>Math.round(1e10*l)/1e10},unit:{dec2hex:l=>{const s=Math.round(l).toString(16);return s.length>1?s:`0${s}`}}},Pe={};for(let l=0;l<=255;l++)Pe[l]=pe.unit.dec2hex(l);const ye=new class{constructor(l,s){this.color=s,this.changed=!1,this.data=l,this.type=new class{constructor(){this.type=0}get(){return this.type}set(y){if(this.type&&this.type!==y)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=y}reset(){this.type=0}is(y){return this.type===y}}}set(l,s){return this.color=s,this.changed=!1,this.data=l,this.type.type=0,this}_ensureHSL(){const l=this.data,{h:s,s:y,l:w}=l;s===void 0&&(l.h=pe.channel.rgb2hsl(l,"h")),y===void 0&&(l.s=pe.channel.rgb2hsl(l,"s")),w===void 0&&(l.l=pe.channel.rgb2hsl(l,"l"))}_ensureRGB(){const l=this.data,{r:s,g:y,b:w}=l;s===void 0&&(l.r=pe.channel.hsl2rgb(l,"r")),y===void 0&&(l.g=pe.channel.hsl2rgb(l,"g")),w===void 0&&(l.b=pe.channel.hsl2rgb(l,"b"))}get r(){const l=this.data,s=l.r;return this.type.is(2)||s===void 0?(this._ensureHSL(),pe.channel.hsl2rgb(l,"r")):s}get g(){const l=this.data,s=l.g;return this.type.is(2)||s===void 0?(this._ensureHSL(),pe.channel.hsl2rgb(l,"g")):s}get b(){const l=this.data,s=l.b;return this.type.is(2)||s===void 0?(this._ensureHSL(),pe.channel.hsl2rgb(l,"b")):s}get h(){const l=this.data,s=l.h;return this.type.is(1)||s===void 0?(this._ensureRGB(),pe.channel.rgb2hsl(l,"h")):s}get s(){const l=this.data,s=l.s;return this.type.is(1)||s===void 0?(this._ensureRGB(),pe.channel.rgb2hsl(l,"s")):s}get l(){const l=this.data,s=l.l;return this.type.is(1)||s===void 0?(this._ensureRGB(),pe.channel.rgb2hsl(l,"l")):s}get a(){return this.data.a}set r(l){this.type.set(1),this.changed=!0,this.data.r=l}set g(l){this.type.set(1),this.changed=!0,this.data.g=l}set b(l){this.type.set(1),this.changed=!0,this.data.b=l}set h(l){this.type.set(2),this.changed=!0,this.data.h=l}set s(l){this.type.set(2),this.changed=!0,this.data.s=l}set l(l){this.type.set(2),this.changed=!0,this.data.l=l}set a(l){this.changed=!0,this.data.a=l}}({r:0,g:0,b:0,a:0},"transparent"),Ve={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:l=>{if(l.charCodeAt(0)!==35)return;const s=l.match(Ve.re);if(!s)return;const y=s[1],w=parseInt(y,16),S=y.length,M=S%4==0,N=S>4,B=N?1:17,Y=N?8:4,H=M?0:-1,it=N?255:15;return ye.set({r:(w>>Y*(H+3)&it)*B,g:(w>>Y*(H+2)&it)*B,b:(w>>Y*(H+1)&it)*B,a:M?(w&it)*B/255:1},l)},stringify:l=>{const{r:s,g:y,b:w,a:S}=l;return S<1?`#${Pe[Math.round(s)]}${Pe[Math.round(y)]}${Pe[Math.round(w)]}${Pe[Math.round(255*S)]}`:`#${Pe[Math.round(s)]}${Pe[Math.round(y)]}${Pe[Math.round(w)]}`}},kn=Ve,ar={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:l=>{const s=l.match(ar.hueRe);if(s){const[,y,w]=s;switch(w){case"grad":return pe.channel.clamp.h(.9*parseFloat(y));case"rad":return pe.channel.clamp.h(180*parseFloat(y)/Math.PI);case"turn":return pe.channel.clamp.h(360*parseFloat(y))}}return pe.channel.clamp.h(parseFloat(l))},parse:l=>{const s=l.charCodeAt(0);if(s!==104&&s!==72)return;const y=l.match(ar.re);if(!y)return;const[,w,S,M,N,B]=y;return ye.set({h:ar._hue2deg(w),s:pe.channel.clamp.s(parseFloat(S)),l:pe.channel.clamp.l(parseFloat(M)),a:N?pe.channel.clamp.a(B?parseFloat(N)/100:parseFloat(N)):1},l)},stringify:l=>{const{h:s,s:y,l:w,a:S}=l;return S<1?`hsla(${pe.lang.round(s)}, ${pe.lang.round(y)}%, ${pe.lang.round(w)}%, ${S})`:`hsl(${pe.lang.round(s)}, ${pe.lang.round(y)}%, ${pe.lang.round(w)}%)`}},cn=ar,hn={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:l=>{l=l.toLowerCase();const s=hn.colors[l];if(s)return kn.parse(s)},stringify:l=>{const s=kn.stringify(l);for(const y in hn.colors)if(hn.colors[y]===s)return y}},Qr=hn,Lr={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:l=>{const s=l.charCodeAt(0);if(s!==114&&s!==82)return;const y=l.match(Lr.re);if(!y)return;const[,w,S,M,N,B,Y,H,it]=y;return ye.set({r:pe.channel.clamp.r(S?2.55*parseFloat(w):parseFloat(w)),g:pe.channel.clamp.g(N?2.55*parseFloat(M):parseFloat(M)),b:pe.channel.clamp.b(Y?2.55*parseFloat(B):parseFloat(B)),a:H?pe.channel.clamp.a(it?parseFloat(H)/100:parseFloat(H)):1},l)},stringify:l=>{const{r:s,g:y,b:w,a:S}=l;return S<1?`rgba(${pe.lang.round(s)}, ${pe.lang.round(y)}, ${pe.lang.round(w)}, ${pe.lang.round(S)})`:`rgb(${pe.lang.round(s)}, ${pe.lang.round(y)}, ${pe.lang.round(w)})`}},Cn=Lr,In={format:{keyword:Qr,hex:kn,rgb:Cn,rgba:Cn,hsl:cn,hsla:cn},parse:l=>{if(typeof l!="string")return l;const s=kn.parse(l)||Cn.parse(l)||cn.parse(l)||Qr.parse(l);if(s)return s;throw new Error(`Unsupported color format: "${l}"`)},stringify:l=>!l.changed&&l.color?l.color:l.type.is(2)||l.data.r===void 0?cn.stringify(l):l.a<1||!Number.isInteger(l.r)||!Number.isInteger(l.g)||!Number.isInteger(l.b)?Cn.stringify(l):kn.stringify(l)},Le=(l,s)=>{const y=In.parse(l);for(const w in s)y[w]=pe.channel.clamp[w](s[w]);return In.stringify(y)},ie=(l,s)=>{const y=In.parse(l),w={};for(const S in s)s[S]&&(w[S]=y[S]+s[S]);return Le(l,w)},Qe=(l,s,y=0,w=1)=>{if(typeof l!="number")return Le(l,{a:s});const S=ye.set({r:pe.channel.clamp.r(l),g:pe.channel.clamp.g(s),b:pe.channel.clamp.b(y),a:pe.channel.clamp.a(w)});return In.stringify(S)},Vt=(l,s=100)=>{const y=In.parse(l);return y.r=255-y.r,y.g=255-y.g,y.b=255-y.b,((w,S,M=50)=>{const{r:N,g:B,b:Y,a:H}=In.parse(w),{r:it,g:ut,b:gt,a:st}=In.parse(S),Pt=M/100,Dt=2*Pt-1,Xt=H-st,Mt=((Dt*Xt==-1?Dt:(Dt+Xt)/(1+Dt*Xt))+1)/2,It=1-Mt;return Qe(N*Mt+it*It,B*Mt+ut*It,Y*Mt+gt*It,H*Pt+st*(1-Pt))})(y,l,s)},Nn=(l,s,y)=>{const w=In.parse(l),S=w[s],M=pe.channel.clamp[s](S+y);return S!==M&&(w[s]=M),In.stringify(w)},Ct=(l,s)=>Nn(l,"l",-s),vn=(l,s)=>Nn(l,"l",s);var Rt=function(l,s){return ie(l,s?{s:-40,l:10}:{s:-40,l:-10})};function Un(l){return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Un(l)}function Yn(l,s){for(var y=0;y<s.length;y++){var w=s[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}var Xn=function(){function l(){(function(w,S){if(!(w instanceof S))throw new TypeError("Cannot call a class as a function")})(this,l),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var s,y;return s=l,y=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||ie(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ie(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Rt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Rt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Rt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Rt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Vt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Vt(this.tertiaryColor),this.lineColor=this.lineColor||Vt(this.background),this.textColor=this.textColor||this.primaryTextColor,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?Ct(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||"grey",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||Ct(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Vt(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||vn(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||ie(this.primaryColor,{h:64}),this.fillType3=this.fillType3||ie(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||ie(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||ie(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||ie(this.primaryColor,{h:128}),this.fillType7=this.fillType7||ie(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||ie(this.primaryColor,{l:-10}),this.pie5=this.pie5||ie(this.secondaryColor,{l:-10}),this.pie6=this.pie6||ie(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||ie(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||ie(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||ie(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||ie(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||ie(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||ie(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.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ct(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||ie(this.primaryColor,{h:-30}),this.git4=this.git4||ie(this.primaryColor,{h:-60}),this.git5=this.git5||ie(this.primaryColor,{h:-90}),this.git6=this.git6||ie(this.primaryColor,{h:60}),this.git7=this.git7||ie(this.primaryColor,{h:120}),this.darkMode?(this.git0=vn(this.git0,25),this.git1=vn(this.git1,25),this.git2=vn(this.git2,25),this.git3=vn(this.git3,25),this.git4=vn(this.git4,25),this.git5=vn(this.git5,25),this.git6=vn(this.git6,25),this.git7=vn(this.git7,25)):(this.git0=Ct(this.git0,25),this.git1=Ct(this.git1,25),this.git2=Ct(this.git2,25),this.git3=Ct(this.git3,25),this.git4=Ct(this.git4,25),this.git5=Ct(this.git5,25),this.git6=Ct(this.git6,25),this.git7=Ct(this.git7,25)),this.gitInv0=this.gitInv0||Vt(this.git0),this.gitInv1=this.gitInv1||Vt(this.git1),this.gitInv2=this.gitInv2||Vt(this.git2),this.gitInv3=this.gitInv3||Vt(this.git3),this.gitInv4=this.gitInv4||Vt(this.git4),this.gitInv5=this.gitInv5||Vt(this.git5),this.gitInv6=this.gitInv6||Vt(this.git6),this.gitInv7=this.gitInv7||Vt(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"}},{key:"calculate",value:function(w){var S=this;if(Un(w)==="object"){var M=Object.keys(w);M.forEach(function(N){S[N]=w[N]}),this.updateColors(),M.forEach(function(N){S[N]=w[N]})}else this.updateColors()}}],y&&Yn(s.prototype,y),Object.defineProperty(s,"prototype",{writable:!1}),l}();function Hn(l){return Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Hn(l)}function Vn(l,s){for(var y=0;y<s.length;y++){var w=s[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}var Kn=function(){function l(){(function(w,S){if(!(w instanceof S))throw new TypeError("Cannot call a class as a function")})(this,l),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=vn(this.primaryColor,16),this.tertiaryColor=ie(this.primaryColor,{h:-160}),this.primaryBorderColor=Vt(this.background),this.secondaryBorderColor=Rt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Rt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Vt(this.primaryColor),this.secondaryTextColor=Vt(this.secondaryColor),this.tertiaryTextColor=Vt(this.tertiaryColor),this.lineColor=Vt(this.background),this.textColor=Vt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=vn(Vt("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Qe(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.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=Ct("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=Qe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Qe(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var s,y;return s=l,y=[{key:"updateColors",value:function(){this.secondBkg=vn(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=vn(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,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=vn(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.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=ie(this.primaryColor,{h:64}),this.fillType3=ie(this.secondaryColor,{h:64}),this.fillType4=ie(this.primaryColor,{h:-64}),this.fillType5=ie(this.secondaryColor,{h:-64}),this.fillType6=ie(this.primaryColor,{h:128}),this.fillType7=ie(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",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.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ct(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=vn(this.secondaryColor,20),this.git1=vn(this.pie2||this.secondaryColor,20),this.git2=vn(this.pie3||this.tertiaryColor,20),this.git3=vn(this.pie4||ie(this.primaryColor,{h:-30}),20),this.git4=vn(this.pie5||ie(this.primaryColor,{h:-60}),20),this.git5=vn(this.pie6||ie(this.primaryColor,{h:-90}),10),this.git6=vn(this.pie7||ie(this.primaryColor,{h:60}),10),this.git7=vn(this.pie8||ie(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Vt(this.git0),this.gitInv1=this.gitInv1||Vt(this.git1),this.gitInv2=this.gitInv2||Vt(this.git2),this.gitInv3=this.gitInv3||Vt(this.git3),this.gitInv4=this.gitInv4||Vt(this.git4),this.gitInv5=this.gitInv5||Vt(this.git5),this.gitInv6=this.gitInv6||Vt(this.git6),this.gitInv7=this.gitInv7||Vt(this.git7),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"}},{key:"calculate",value:function(w){var S=this;if(Hn(w)==="object"){var M=Object.keys(w);M.forEach(function(N){S[N]=w[N]}),this.updateColors(),M.forEach(function(N){S[N]=w[N]})}else this.updateColors()}}],y&&Vn(s.prototype,y),Object.defineProperty(s,"prototype",{writable:!1}),l}();function Mn(l){return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Mn(l)}function jn(l,s){for(var y=0;y<s.length;y++){var w=s[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}var Gn=function(){function l(){(function(w,S){if(!(w instanceof S))throw new TypeError("Cannot call a class as a function")})(this,l),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=ie(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=ie(this.primaryColor,{h:-160}),this.primaryBorderColor=Rt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Rt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Rt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Vt(this.primaryColor),this.secondaryTextColor=Vt(this.secondaryColor),this.tertiaryTextColor=Vt(this.tertiaryColor),this.lineColor=Vt(this.background),this.textColor=Vt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",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="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Qe(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var s,y;return s=l,y=[{key:"updateColors",value:function(){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=vn(this.border1,23),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.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,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=ie(this.primaryColor,{h:64}),this.fillType3=ie(this.secondaryColor,{h:64}),this.fillType4=ie(this.primaryColor,{h:-64}),this.fillType5=ie(this.secondaryColor,{h:-64}),this.fillType6=ie(this.primaryColor,{h:128}),this.fillType7=ie(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||ie(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||ie(this.primaryColor,{l:-10}),this.pie5=this.pie5||ie(this.secondaryColor,{l:-30}),this.pie6=this.pie6||ie(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||ie(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||ie(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||ie(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||ie(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||ie(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||ie(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.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,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||ie(this.primaryColor,{h:-30}),this.git4=this.git4||ie(this.primaryColor,{h:-60}),this.git5=this.git5||ie(this.primaryColor,{h:-90}),this.git6=this.git6||ie(this.primaryColor,{h:60}),this.git7=this.git7||ie(this.primaryColor,{h:120}),this.darkMode?(this.git0=vn(this.git0,25),this.git1=vn(this.git1,25),this.git2=vn(this.git2,25),this.git3=vn(this.git3,25),this.git4=vn(this.git4,25),this.git5=vn(this.git5,25),this.git6=vn(this.git6,25),this.git7=vn(this.git7,25)):(this.git0=Ct(this.git0,25),this.git1=Ct(this.git1,25),this.git2=Ct(this.git2,25),this.git3=Ct(this.git3,25),this.git4=Ct(this.git4,25),this.git5=Ct(this.git5,25),this.git6=Ct(this.git6,25),this.git7=Ct(this.git7,25)),this.gitInv0=this.gitInv0||Ct(Vt(this.git0),25),this.gitInv1=this.gitInv1||Vt(this.git1),this.gitInv2=this.gitInv2||Vt(this.git2),this.gitInv3=this.gitInv3||Vt(this.git3),this.gitInv4=this.gitInv4||Vt(this.git4),this.gitInv5=this.gitInv5||Vt(this.git5),this.gitInv6=this.gitInv6||Vt(this.git6),this.gitInv7=this.gitInv7||Vt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Vt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Vt(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"}},{key:"calculate",value:function(w){var S=this;if(Mn(w)==="object"){var M=Object.keys(w);M.forEach(function(N){S[N]=w[N]}),this.updateColors(),M.forEach(function(N){S[N]=w[N]})}else this.updateColors()}}],y&&jn(s.prototype,y),Object.defineProperty(s,"prototype",{writable:!1}),l}();function Zn(l){return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Zn(l)}function Ua(l,s){for(var y=0;y<s.length;y++){var w=s[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}var Wr=function(){function l(){(function(w,S){if(!(w instanceof S))throw new TypeError("Cannot call a class as a function")})(this,l),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=vn("#cde498",10),this.primaryBorderColor=Rt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Rt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Rt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Vt(this.primaryColor),this.secondaryTextColor=Vt(this.secondaryColor),this.tertiaryTextColor=Vt(this.primaryColor),this.lineColor=Vt(this.background),this.textColor=Vt(this.background),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="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var s,y;return s=l,y=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=Ct(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.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=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.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=ie(this.primaryColor,{h:64}),this.fillType3=ie(this.secondaryColor,{h:64}),this.fillType4=ie(this.primaryColor,{h:-64}),this.fillType5=ie(this.secondaryColor,{h:-64}),this.fillType6=ie(this.primaryColor,{h:128}),this.fillType7=ie(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||ie(this.primaryColor,{l:-30}),this.pie5=this.pie5||ie(this.secondaryColor,{l:-30}),this.pie6=this.pie6||ie(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||ie(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||ie(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||ie(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||ie(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||ie(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||ie(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.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,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||ie(this.primaryColor,{h:-30}),this.git4=this.git4||ie(this.primaryColor,{h:-60}),this.git5=this.git5||ie(this.primaryColor,{h:-90}),this.git6=this.git6||ie(this.primaryColor,{h:60}),this.git7=this.git7||ie(this.primaryColor,{h:120}),this.darkMode?(this.git0=vn(this.git0,25),this.git1=vn(this.git1,25),this.git2=vn(this.git2,25),this.git3=vn(this.git3,25),this.git4=vn(this.git4,25),this.git5=vn(this.git5,25),this.git6=vn(this.git6,25),this.git7=vn(this.git7,25)):(this.git0=Ct(this.git0,25),this.git1=Ct(this.git1,25),this.git2=Ct(this.git2,25),this.git3=Ct(this.git3,25),this.git4=Ct(this.git4,25),this.git5=Ct(this.git5,25),this.git6=Ct(this.git6,25),this.git7=Ct(this.git7,25)),this.gitInv0=this.gitInv0||Vt(this.git0),this.gitInv1=this.gitInv1||Vt(this.git1),this.gitInv2=this.gitInv2||Vt(this.git2),this.gitInv3=this.gitInv3||Vt(this.git3),this.gitInv4=this.gitInv4||Vt(this.git4),this.gitInv5=this.gitInv5||Vt(this.git5),this.gitInv6=this.gitInv6||Vt(this.git6),this.gitInv7=this.gitInv7||Vt(this.git7),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"}},{key:"calculate",value:function(w){var S=this;if(Zn(w)==="object"){var M=Object.keys(w);M.forEach(function(N){S[N]=w[N]}),this.updateColors(),M.forEach(function(N){S[N]=w[N]})}else this.updateColors()}}],y&&Ua(s.prototype,y),Object.defineProperty(s,"prototype",{writable:!1}),l}();function Pr(l){return Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Pr(l)}function On(l,s){for(var y=0;y<s.length;y++){var w=s[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}var Qi=function(){function l(){(function(w,S){if(!(w instanceof S))throw new TypeError("Cannot call a class as a function")})(this,l),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=vn(this.contrast,55),this.background="#ffffff",this.tertiaryColor=ie(this.primaryColor,{h:-160}),this.primaryBorderColor=Rt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Rt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Rt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Vt(this.primaryColor),this.secondaryTextColor=Vt(this.secondaryColor),this.tertiaryTextColor=Vt(this.tertiaryColor),this.lineColor=Vt(this.background),this.textColor=Vt(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.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="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var s,y;return s=l,y=[{key:"updateColors",value:function(){this.secondBkg=vn(this.contrast,55),this.border2=this.contrast,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.actorBorder=vn(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,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.sectionBkgColor=vn(this.contrast,30),this.sectionBkgColor2=vn(this.contrast,30),this.taskBorderColor=Ct(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=vn(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Ct(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,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=ie(this.primaryColor,{h:64}),this.fillType3=ie(this.secondaryColor,{h:64}),this.fillType4=ie(this.primaryColor,{h:-64}),this.fillType5=ie(this.secondaryColor,{h:-64}),this.fillType6=ie(this.primaryColor,{h:128}),this.fillType7=ie(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",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.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,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=Ct(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||ie(this.primaryColor,{h:-30}),this.git4=this.pie5||ie(this.primaryColor,{h:-60}),this.git5=this.pie6||ie(this.primaryColor,{h:-90}),this.git6=this.pie7||ie(this.primaryColor,{h:60}),this.git7=this.pie8||ie(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Vt(this.git0),this.gitInv1=this.gitInv1||Vt(this.git1),this.gitInv2=this.gitInv2||Vt(this.git2),this.gitInv3=this.gitInv3||Vt(this.git3),this.gitInv4=this.gitInv4||Vt(this.git4),this.gitInv5=this.gitInv5||Vt(this.git5),this.gitInv6=this.gitInv6||Vt(this.git6),this.gitInv7=this.gitInv7||Vt(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"}},{key:"calculate",value:function(w){var S=this;if(Pr(w)==="object"){var M=Object.keys(w);M.forEach(function(N){S[N]=w[N]}),this.updateColors(),M.forEach(function(N){S[N]=w[N]})}else this.updateColors()}}],y&&On(s.prototype,y),Object.defineProperty(s,"prototype",{writable:!1}),l}();const Qn={base:{getThemeVariables:function(l){var s=new Xn;return s.calculate(l),s}},dark:{getThemeVariables:function(l){var s=new Kn;return s.calculate(l),s}},default:{getThemeVariables:function(l){var s=new Gn;return s.calculate(l),s}},forest:{getThemeVariables:function(l){var s=new Wr;return s.calculate(l),s}},neutral:{getThemeVariables:function(l){var s=new Qi;return s.calculate(l),s}}};function Yr(l){return function(s){if(Array.isArray(s))return Gr(s)}(l)||function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}(l)||function(s,y){if(s){if(typeof s=="string")return Gr(s,y);var w=Object.prototype.toString.call(s).slice(8,-1);return w==="Object"&&s.constructor&&(w=s.constructor.name),w==="Map"||w==="Set"?Array.from(s):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?Gr(s,y):void 0}}(l)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Gr(l,s){(s==null||s>l.length)&&(s=l.length);for(var y=0,w=new Array(s);y<s;y++)w[y]=l[y];return w}function Or(l){return Or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Or(l)}var Vr={theme:"default",themeVariables:Qn.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{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,useMaxWidth:!0,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,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{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,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,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},gitGraph:{diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,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,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},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"}};Vr.class.arrowMarkerAbsolute=Vr.arrowMarkerAbsolute,Vr.gitGraph.arrowMarkerAbsolute=Vr.arrowMarkerAbsolute;var Zr=function l(s){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(s).reduce(function(w,S){return Array.isArray(s[S])?w:Or(s[S])==="object"&&s[S]!==null?[].concat(Yr(w),[y+S],Yr(l(s[S],""))):[].concat(Yr(w),[y+S])},[])}(Vr,"");const jr=Vr;var ti=void 0;function or(l,s){for(var y=0;y<s.length;y++){var w=s[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}function pi(l,s){var y=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!y){if(Array.isArray(l)||(y=ki(l))||s&&l&&typeof l.length=="number"){y&&(l=y);var w=0,S=function(){};return{s:S,n:function(){return w>=l.length?{done:!0}:{done:!1,value:l[w++]}},e:function(Y){throw Y},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,N=!0,B=!1;return{s:function(){y=y.call(l)},n:function(){var Y=y.next();return N=Y.done,Y},e:function(Y){B=!0,M=Y},f:function(){try{N||y.return==null||y.return()}finally{if(B)throw M}}}}function Sr(l){return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Sr(l)}function ei(l){return function(s){if(Array.isArray(s))return za(s)}(l)||function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}(l)||ki(l)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ki(l,s){if(l){if(typeof l=="string")return za(l,s);var y=Object.prototype.toString.call(l).slice(8,-1);return y==="Object"&&l.constructor&&(y=l.constructor.name),y==="Map"||y==="Set"?Array.from(l):y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?za(l,s):void 0}}function za(l,s){(s==null||s>l.length)&&(s=l.length);for(var y=0,w=new Array(s);y<s;y++)w[y]=l[y];return w}var Dr,ga={curveBasis:E.curveBasis,curveBasisClosed:E.curveBasisClosed,curveBasisOpen:E.curveBasisOpen,curveLinear:E.curveLinear,curveLinearClosed:E.curveLinearClosed,curveMonotoneX:E.curveMonotoneX,curveMonotoneY:E.curveMonotoneY,curveNatural:E.curveNatural,curveStep:E.curveStep,curveStepAfter:E.curveStepAfter,curveStepBefore:E.curveStepBefore},Fi=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,ta=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Tn=/\s*%%.*\n/gm,wr=function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var y=new RegExp("[%]{2}(?![{]".concat(ta.source,`)(?=[}][%]{2}).*
|
|
`),"ig");l=l.trim().replace(y,"").replace(/'/gm,'"'),_.debug("Detecting diagram directive".concat(s!==null?" type:"+s:""," based on the text:").concat(l));for(var w,S=[];(w=Fi.exec(l))!==null;)if(w.index===Fi.lastIndex&&Fi.lastIndex++,w&&!s||s&&w[1]&&w[1].match(s)||s&&w[2]&&w[2].match(s)){var M=w[1]?w[1]:w[2],N=w[3]?w[3].trim():w[4]?JSON.parse(w[4].trim()):null;S.push({type:M,args:N})}return S.length===0&&S.push({type:l,args:null}),S.length===1?S[0]:S}catch(B){return _.error("ERROR: ".concat(B.message,` - Unable to parse directive
|
|
`).concat(s!==null?" type:"+s:""," based on the text:").concat(l)),{type:null,args:null}}},tr=function(l,s){return(l=l.replace(Fi,"").replace(Tn,`
|
|
`)).match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/)?"c4":l.match(/^\s*sequenceDiagram/)?"sequence":l.match(/^\s*gantt/)?"gantt":l.match(/^\s*classDiagram-v2/)?"classDiagram":l.match(/^\s*classDiagram/)?s&&s.class&&s.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class":l.match(/^\s*stateDiagram-v2/)?"stateDiagram":l.match(/^\s*stateDiagram/)?s&&s.class&&s.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state":l.match(/^\s*gitGraph/)?"gitGraph":l.match(/^\s*flowchart/)?"flowchart-v2":l.match(/^\s*info/)?"info":l.match(/^\s*pie/)?"pie":l.match(/^\s*erDiagram/)?"er":l.match(/^\s*journey/)?"journey":l.match(/^\s*requirement/)||l.match(/^\s*requirementDiagram/)?"requirement":s&&s.flowchart&&s.flowchart.defaultRenderer==="dagre-wrapper"?"flowchart-v2":"flowchart"},on=function(l,s){var y={};return function(){for(var w=arguments.length,S=new Array(w),M=0;M<w;M++)S[M]=arguments[M];var N=s?s.apply(ti,S):S[0];if(N in y)return y[N];var B=l.apply(void 0,S);return y[N]=B,B}},sr=function(l,s){if(!l)return s;var y="curve".concat(l.charAt(0).toUpperCase()+l.slice(1));return ga[y]||s},qt=function(l,s){return l&&s?Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2)):0},gi=function(l){for(var s="",y="",w=0;w<l.length;w++)l[w]!==void 0&&(l[w].startsWith("color:")||l[w].startsWith("text-align:")?y=y+l[w]+";":s=s+l[w]+";");return{style:s,labelStyle:y}},Jt=0,Ti=function(){return Jt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Jt},Ya=function(l){return function(s){for(var y="",w="0123456789abcdef",S=w.length,M=0;M<s;M++)y+=w.charAt(Math.floor(Math.random()*S));return y}(l.length)},$r=function l(s,y,w){var S=Object.assign({depth:2,clobber:!1},w),M=S.depth,N=S.clobber;return Array.isArray(y)&&!Array.isArray(s)?(y.forEach(function(B){return l(s,B,w)}),s):Array.isArray(y)&&Array.isArray(s)?(y.forEach(function(B){s.indexOf(B)===-1&&s.push(B)}),s):s===void 0||M<=0?s!=null&&Sr(s)==="object"&&Sr(y)==="object"?Object.assign(s,y):y:(y!==void 0&&Sr(s)==="object"&&Sr(y)==="object"&&Object.keys(y).forEach(function(B){Sr(y[B])!=="object"||s[B]!==void 0&&Sr(s[B])!=="object"?(N||Sr(s[B])!=="object"&&Sr(y[B])!=="object")&&(s[B]=y[B]):(s[B]===void 0&&(s[B]=Array.isArray(y[B])?[]:{}),s[B]=l(s[B],y[B],{depth:M-1,clobber:N}))}),s)},Co=function(l,s){var y=s.text.replace(ae.lineBreakRegex," "),w=l.append("text");w.attr("x",s.x),w.attr("y",s.y),w.style("text-anchor",s.anchor),w.style("font-family",s.fontFamily),w.style("font-size",s.fontSize),w.style("font-weight",s.fontWeight),w.attr("fill",s.fill),s.class!==void 0&&w.attr("class",s.class);var S=w.append("tspan");return S.attr("x",s.x+2*s.textMargin),S.attr("fill",s.fill),S.text(y),w},ya=on(function(l,s,y){if(!l||(y=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},y),ae.lineBreakRegex.test(l)))return l;var w=l.split(" "),S=[],M="";return w.forEach(function(N,B){var Y=yi("".concat(N," "),y),H=yi(M,y);if(Y>s){var it=Br(N,s,"-",y),ut=it.hyphenatedStrings,gt=it.remainingWord;S.push.apply(S,[M].concat(ei(ut))),M=gt}else H+Y>=s?(S.push(M),M=N):M=[M,N].filter(Boolean).join(" ");B+1===w.length&&S.push(M)}),S.filter(function(N){return N!==""}).join(y.joinWith)},function(l,s,y){return"".concat(l,"-").concat(s,"-").concat(y.fontSize,"-").concat(y.fontWeight,"-").concat(y.fontFamily,"-").concat(y.joinWith)}),Br=on(function(l,s){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",w=arguments.length>3?arguments[3]:void 0;w=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},w);var S=l.split(""),M=[],N="";return S.forEach(function(B,Y){var H="".concat(N).concat(B);if(yi(H,w)>=s){var it=Y+1,ut=S.length===it,gt="".concat(H).concat(y);M.push(ut?H:gt),N=""}else N=H}),{hyphenatedStrings:M,remainingWord:N}},function(l,s){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",w=arguments.length>3?arguments[3]:void 0;return"".concat(l,"-").concat(s,"-").concat(y,"-").concat(w.fontSize,"-").concat(w.fontWeight,"-").concat(w.fontFamily)}),ni=function(l,s){return s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},s),Ca(l,s).height},yi=function(l,s){return s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},s),Ca(l,s).width},Ca=on(function(l,s){var y=s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},s),w=y.fontSize,S=y.fontFamily,M=y.fontWeight;if(!l)return{width:0,height:0};var N=["sans-serif",S],B=l.split(ae.lineBreakRegex),Y=[],H=(0,E.select)("body");if(!H.remove)return{width:0,height:0,lineHeight:0};for(var it=H.append("svg"),ut=0,gt=N;ut<gt.length;ut++){var st,Pt=gt[ut],Dt=0,Xt={width:0,height:0,lineHeight:0},Mt=pi(B);try{for(Mt.s();!(st=Mt.n()).done;){var It=st.value,$t={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};$t.text=It;var ee=Co(it,$t).style("font-size",w).style("font-weight",M).style("font-family",Pt),Re=(ee._groups||ee)[0][0].getBBox();Xt.width=Math.round(Math.max(Xt.width,Re.width)),Dt=Math.round(Re.height),Xt.height+=Dt,Xt.lineHeight=Math.round(Math.max(Xt.lineHeight,Dt))}}catch(Se){Mt.e(Se)}finally{Mt.f()}Y.push(Xt)}return it.remove(),Y[isNaN(Y[1].height)||isNaN(Y[1].width)||isNaN(Y[1].lineHeight)||Y[0].height>Y[1].height&&Y[0].width>Y[1].width&&Y[0].lineHeight>Y[1].lineHeight?0:1]},function(l,s){return"".concat(l,"-").concat(s.fontSize,"-").concat(s.fontWeight,"-").concat(s.fontFamily)}),Vi=function(l,s,y){var w=new Map;return w.set("height",l),y?(w.set("width","100%"),w.set("style","max-width: ".concat(s,"px;"))):w.set("width",s),w},Si=function(l,s,y,w){(function(S,M){var N,B=pi(M);try{for(B.s();!(N=B.n()).done;){var Y=N.value;S.attr(Y[0],Y[1])}}catch(H){B.e(H)}finally{B.f()}})(l,Vi(s,y,w))},ma=function(l,s,y,w){var S=s.node().getBBox(),M=S.width,N=S.height,B=l._label.width,Y=l._label.height,H=0,it=0;M>B?(H=(M-B)/2+y,B=M+2*y):Math.abs(M-B)>=2*y+1&&(B-=y),N>Y&&(it=(N-Y)/2+y,Y=N+2*y),Si(s,Y,B,w);var ut="0 0 ".concat(B," ").concat(Y);_.debug("Graph.label",l._label,"swidth",M,"sheight",N,"width",B,"height",Y,"tx",H,"ty",it,"vBox",ut),s.attr("viewBox",ut),s.select("g").attr("transform","translate(".concat(H,", ").concat(it,")"))},ri=function l(s){if(_.debug("directiveSanitizer called with",s),Sr(s)==="object"&&(s.length?s.forEach(function(N){return l(N)}):Object.keys(s).forEach(function(N){_.debug("Checking key",N),N.indexOf("__")===0&&(_.debug("sanitize deleting __ option",N),delete s[N]),N.indexOf("proto")>=0&&(_.debug("sanitize deleting proto option",N),delete s[N]),N.indexOf("constr")>=0&&(_.debug("sanitize deleting constr option",N),delete s[N]),N.indexOf("themeCSS")>=0&&(_.debug("sanitizing themeCss option"),s[N]=ja(s[N])),N.indexOf("fontFamily")>=0&&(_.debug("sanitizing fontFamily option"),s[N]=ja(s[N])),N.indexOf("altFontFamily")>=0&&(_.debug("sanitizing altFontFamily option"),s[N]=ja(s[N])),Zr.indexOf(N)<0?(_.debug("sanitize deleting option",N),delete s[N]):Sr(s[N])==="object"&&(_.debug("sanitize deleting object",N),l(s[N]))})),s.themeVariables)for(var y=Object.keys(s.themeVariables),w=0;w<y.length;w++){var S=y[w],M=s.themeVariables[S];M&&M.match&&!M.match(/^[a-zA-Z0-9#,";()%. ]+$/)&&(s.themeVariables[S]="")}_.debug("After sanitization",s)},ja=function(l){for(var s=0,y=0,w=0;w<l.length;w++){if(s<y)return"{ /* ERROR: Unbalanced CSS */ }";l[w]==="{"?s++:l[w]==="}"&&y++}return s!==y?"{ /* ERROR: Unbalanced CSS */ }":l};const Bn={assignWithDepth:$r,wrapLabel:ya,calculateTextHeight:ni,calculateTextWidth:yi,calculateTextDimensions:Ca,calculateSvgSizeAttrs:Vi,configureSvgSize:Si,setupGraphViewbox:ma,detectInit:function(l,s){var y=wr(l,/(?:init\b)|(?:initialize\b)/),w={};if(Array.isArray(y)){var S=y.map(function(N){return N.args});ri(S),w=$r(w,ei(S))}else w=y.args;if(w){var M=tr(l,s);["config"].forEach(function(N){w[N]!==void 0&&(M==="flowchart-v2"&&(M="flowchart"),w[M]=w[N],delete w[N])})}return w},detectDirective:wr,detectType:tr,isSubstringInArray:function(l,s){for(var y=0;y<s.length;y++)if(s[y].match(l))return y;return-1},interpolateToCurve:sr,calcLabelPosition:function(l){return l.length===1?l[0]:function(s){var y,w=0;s.forEach(function(N){w+=qt(N,y),y=N});var S=w/2,M=void 0;return y=void 0,s.forEach(function(N){if(y&&!M){var B=qt(N,y);if(B<S)S-=B;else{var Y=S/B;Y<=0&&(M=y),Y>=1&&(M={x:N.x,y:N.y}),Y>0&&Y<1&&(M={x:(1-Y)*y.x+Y*N.x,y:(1-Y)*y.y+Y*N.y})}}y=N}),M}(l)},calcCardinalityPosition:function(l,s,y){var w;_.info("our points",s),s[0]!==y&&(s=s.reverse()),s.forEach(function(H){qt(H,w),w=H});var S,M=25;w=void 0,s.forEach(function(H){if(w&&!S){var it=qt(H,w);if(it<M)M-=it;else{var ut=M/it;ut<=0&&(S=w),ut>=1&&(S={x:H.x,y:H.y}),ut>0&&ut<1&&(S={x:(1-ut)*w.x+ut*H.x,y:(1-ut)*w.y+ut*H.y})}}w=H});var N=l?10:5,B=Math.atan2(s[0].y-S.y,s[0].x-S.x),Y={x:0,y:0};return Y.x=Math.sin(B)*N+(s[0].x+S.x)/2,Y.y=-Math.cos(B)*N+(s[0].y+S.y)/2,Y},calcTerminalLabelPosition:function(l,s,y){var w,S=JSON.parse(JSON.stringify(y));_.info("our points",S),s!=="start_left"&&s!=="start_right"&&(S=S.reverse()),S.forEach(function(it){qt(it,w),w=it});var M,N=25+l;w=void 0,S.forEach(function(it){if(w&&!M){var ut=qt(it,w);if(ut<N)N-=ut;else{var gt=N/ut;gt<=0&&(M=w),gt>=1&&(M={x:it.x,y:it.y}),gt>0&><1&&(M={x:(1-gt)*w.x+gt*it.x,y:(1-gt)*w.y+gt*it.y})}}w=it});var B=10+.5*l,Y=Math.atan2(S[0].y-M.y,S[0].x-M.x),H={x:0,y:0};return H.x=Math.sin(Y)*B+(S[0].x+M.x)/2,H.y=-Math.cos(Y)*B+(S[0].y+M.y)/2,s==="start_left"&&(H.x=Math.sin(Y+Math.PI)*B+(S[0].x+M.x)/2,H.y=-Math.cos(Y+Math.PI)*B+(S[0].y+M.y)/2),s==="end_right"&&(H.x=Math.sin(Y-Math.PI)*B+(S[0].x+M.x)/2-5,H.y=-Math.cos(Y-Math.PI)*B+(S[0].y+M.y)/2-5),s==="end_left"&&(H.x=Math.sin(Y)*B+(S[0].x+M.x)/2-5,H.y=-Math.cos(Y)*B+(S[0].y+M.y)/2-5),H},formatUrl:function(l,s){var y=l.trim();if(y)return s.securityLevel!=="loose"?(0,At.N)(y):y},getStylesFromArray:gi,generateId:Ti,random:Ya,memoize:on,runFunc:function(l){for(var s,y=l.split("."),w=y.length-1,S=y[w],M=window,N=0;N<w;N++)if(!(M=M[y[N]]))return;for(var B=arguments.length,Y=new Array(B>1?B-1:0),H=1;H<B;H++)Y[H-1]=arguments[H];(s=M)[S].apply(s,Y)},entityDecode:function(l){return Dr=Dr||document.createElement("div"),l=escape(l).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Dr.innerHTML=l,unescape(Dr.textContent)},initIdGenerator:function(){function l(w,S){(function(M,N){if(!(M instanceof N))throw new TypeError("Cannot call a class as a function")})(this,l),this.deterministic=w,this.seed=S,this.count=S?S.length:0}var s,y;return s=l,(y=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&or(s.prototype,y),Object.defineProperty(s,"prototype",{writable:!1}),l}(),directiveSanitizer:ri,sanitizeCss:ja};function wi(l){return wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},wi(l)}var Na,$i=Object.freeze(jr),xr=$r({},$i),oa=[],Li=$r({},$i),si=function(l,s){for(var y=$r({},l),w={},S=0;S<s.length;S++){var M=s[S];us(M),w=$r(w,M)}if(y=$r(y,w),w.theme&&Qn[w.theme]){var N=$r({},Na),B=$r(N.themeVariables||{},w.themeVariables);y.themeVariables=Qn[y.theme].getThemeVariables(B)}return Li=y,y},sa=function(){return $r({},xr)},jt=function(){return $r({},Li)},us=function l(s){Object.keys(xr.secure).forEach(function(y){s[xr.secure[y]]!==void 0&&(_.debug("Denied attempt to modify a secure key ".concat(xr.secure[y]),s[xr.secure[y]]),delete s[xr.secure[y]])}),Object.keys(s).forEach(function(y){y.indexOf("__")===0&&delete s[y]}),Object.keys(s).forEach(function(y){typeof s[y]=="string"&&(s[y].indexOf("<")>-1||s[y].indexOf(">")>-1||s[y].indexOf("url(data:")>-1)&&delete s[y],wi(s[y])==="object"&&l(s[y])})},No=function(l){l.fontFamily&&(l.themeVariables&&l.themeVariables.fontFamily||(l.themeVariables={fontFamily:l.fontFamily})),oa.push(l),si(xr,oa)},Zt=function(){si(xr,oa=[])},xn="",un="",gr="",Xr=function(l){return ue(l,jt())},Hr=function(){xn="",gr="",un=""},Cr=function(l){xn=Xr(l).replace(/^\s+/g,"")},ci=function(){return xn||un},li=function(l){gr=Xr(l).replace(/\n\s+/g,`
|
|
`)},ii=function(){return gr},Za=function(l){un=Xr(l)},Io=function(){return un};function er(l,s){return function(y){if(Array.isArray(y))return y}(l)||function(y,w){var S=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(S!=null){var M,N,B=[],Y=!0,H=!1;try{for(S=S.call(y);!(Y=(M=S.next()).done)&&(B.push(M.value),!w||B.length!==w);Y=!0);}catch(it){H=!0,N=it}finally{try{Y||S.return==null||S.return()}finally{if(H)throw N}}return B}}(l,s)||function(y,w){if(y){if(typeof y=="string")return fl(y,w);var S=Object.prototype.toString.call(y).slice(8,-1);return S==="Object"&&y.constructor&&(S=y.constructor.name),S==="Map"||S==="Set"?Array.from(y):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?fl(y,w):void 0}}(l,s)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function fl(l,s){(s==null||s>l.length)&&(s=l.length);for(var y=0,w=new Array(s);y<s;y++)w[y]=l[y];return w}function zn(l){return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},zn(l)}var dl,$a=[],ho=[""],Ze="global",Ia="",kr=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],fo=[],Ls="",hs=!1,La=4,po=2,Sc=function(l){return l==null?$a:$a.filter(function(s){return s.parentBoundary===l})},no=function(){return hs};const fs={addPersonOrSystem:function(l,s,y,w,S,M,N){if(s!==null&&y!==null){var B={},Y=$a.find(function(Re){return Re.alias===s});if(Y&&s===Y.alias?B=Y:(B.alias=s,$a.push(B)),B.label=y==null?{text:""}:{text:y},w==null)B.descr={text:""};else if(zn(w)==="object"){var H=er(Object.entries(w)[0],2),it=H[0],ut=H[1];B[it]={text:ut}}else B.descr={text:w};if(zn(S)==="object"){var gt=er(Object.entries(S)[0],2),st=gt[0],Pt=gt[1];B[st]=Pt}else B.sprite=S;if(zn(M)==="object"){var Dt=er(Object.entries(M)[0],2),Xt=Dt[0],Mt=Dt[1];B[Xt]=Mt}else B.tags=M;if(zn(N)==="object"){var It=er(Object.entries(N)[0],2),$t=It[0],ee=It[1];B[$t]=ee}else B.link=N;B.typeC4Shape={text:l},B.parentBoundary=Ze,B.wrap=no()}},addPersonOrSystemBoundary:function(l,s,y,w,S){if(l!==null&&s!==null){var M={},N=kr.find(function(Xt){return Xt.alias===l});if(N&&l===N.alias?M=N:(M.alias=l,kr.push(M)),M.label=s==null?{text:""}:{text:s},y==null)M.type={text:"system"};else if(zn(y)==="object"){var B=er(Object.entries(y)[0],2),Y=B[0],H=B[1];M[Y]={text:H}}else M.type={text:y};if(zn(w)==="object"){var it=er(Object.entries(w)[0],2),ut=it[0],gt=it[1];M[ut]=gt}else M.tags=w;if(zn(S)==="object"){var st=er(Object.entries(S)[0],2),Pt=st[0],Dt=st[1];M[Pt]=Dt}else M.link=S;M.parentBoundary=Ze,M.wrap=no(),Ia=Ze,Ze=l,ho.push(Ia)}},addContainer:function(l,s,y,w,S,M,N,B){if(s!==null&&y!==null){var Y={},H=$a.find(function(Oe){return Oe.alias===s});if(H&&s===H.alias?Y=H:(Y.alias=s,$a.push(Y)),Y.label=y==null?{text:""}:{text:y},w==null)Y.techn={text:""};else if(zn(w)==="object"){var it=er(Object.entries(w)[0],2),ut=it[0],gt=it[1];Y[ut]={text:gt}}else Y.techn={text:w};if(S==null)Y.descr={text:""};else if(zn(S)==="object"){var st=er(Object.entries(S)[0],2),Pt=st[0],Dt=st[1];Y[Pt]={text:Dt}}else Y.descr={text:S};if(zn(M)==="object"){var Xt=er(Object.entries(M)[0],2),Mt=Xt[0],It=Xt[1];Y[Mt]=It}else Y.sprite=M;if(zn(N)==="object"){var $t=er(Object.entries(N)[0],2),ee=$t[0],Re=$t[1];Y[ee]=Re}else Y.tags=N;if(zn(B)==="object"){var Se=er(Object.entries(B)[0],2),se=Se[0],le=Se[1];Y[se]=le}else Y.link=B;Y.wrap=no(),Y.typeC4Shape={text:l},Y.parentBoundary=Ze}},addContainerBoundary:function(l,s,y,w,S){if(l!==null&&s!==null){var M={},N=kr.find(function(Xt){return Xt.alias===l});if(N&&l===N.alias?M=N:(M.alias=l,kr.push(M)),M.label=s==null?{text:""}:{text:s},y==null)M.type={text:"container"};else if(zn(y)==="object"){var B=er(Object.entries(y)[0],2),Y=B[0],H=B[1];M[Y]={text:H}}else M.type={text:y};if(zn(w)==="object"){var it=er(Object.entries(w)[0],2),ut=it[0],gt=it[1];M[ut]=gt}else M.tags=w;if(zn(S)==="object"){var st=er(Object.entries(S)[0],2),Pt=st[0],Dt=st[1];M[Pt]=Dt}else M.link=S;M.parentBoundary=Ze,M.wrap=no(),Ia=Ze,Ze=l,ho.push(Ia)}},addComponent:function(l,s,y,w,S,M,N,B){if(s!==null&&y!==null){var Y={},H=$a.find(function(Oe){return Oe.alias===s});if(H&&s===H.alias?Y=H:(Y.alias=s,$a.push(Y)),Y.label=y==null?{text:""}:{text:y},w==null)Y.techn={text:""};else if(zn(w)==="object"){var it=er(Object.entries(w)[0],2),ut=it[0],gt=it[1];Y[ut]={text:gt}}else Y.techn={text:w};if(S==null)Y.descr={text:""};else if(zn(S)==="object"){var st=er(Object.entries(S)[0],2),Pt=st[0],Dt=st[1];Y[Pt]={text:Dt}}else Y.descr={text:S};if(zn(M)==="object"){var Xt=er(Object.entries(M)[0],2),Mt=Xt[0],It=Xt[1];Y[Mt]=It}else Y.sprite=M;if(zn(N)==="object"){var $t=er(Object.entries(N)[0],2),ee=$t[0],Re=$t[1];Y[ee]=Re}else Y.tags=N;if(zn(B)==="object"){var Se=er(Object.entries(B)[0],2),se=Se[0],le=Se[1];Y[se]=le}else Y.link=B;Y.wrap=no(),Y.typeC4Shape={text:l},Y.parentBoundary=Ze}},addDeploymentNode:function(l,s,y,w,S,M,N,B){if(s!==null&&y!==null){var Y={},H=kr.find(function(Se){return Se.alias===s});if(H&&s===H.alias?Y=H:(Y.alias=s,kr.push(Y)),Y.label=y==null?{text:""}:{text:y},w==null)Y.type={text:"node"};else if(zn(w)==="object"){var it=er(Object.entries(w)[0],2),ut=it[0],gt=it[1];Y[ut]={text:gt}}else Y.type={text:w};if(S==null)Y.descr={text:""};else if(zn(S)==="object"){var st=er(Object.entries(S)[0],2),Pt=st[0],Dt=st[1];Y[Pt]={text:Dt}}else Y.descr={text:S};if(zn(N)==="object"){var Xt=er(Object.entries(N)[0],2),Mt=Xt[0],It=Xt[1];Y[Mt]=It}else Y.tags=N;if(zn(B)==="object"){var $t=er(Object.entries(B)[0],2),ee=$t[0],Re=$t[1];Y[ee]=Re}else Y.link=B;Y.nodeType=l,Y.parentBoundary=Ze,Y.wrap=no(),Ia=Ze,Ze=s,ho.push(Ia)}},popBoundaryParseStack:function(){Ze=Ia,ho.pop(),Ia=ho.pop(),ho.push(Ia)},addRel:function(l,s,y,w,S,M,N,B,Y){if(l!=null&&s!=null&&y!=null&&w!=null){var H={},it=fo.find(function(ke){return ke.from===s&&ke.to===y});if(it?H=it:fo.push(H),H.type=l,H.from=s,H.to=y,H.label={text:w},S==null)H.techn={text:""};else if(zn(S)==="object"){var ut=er(Object.entries(S)[0],2),gt=ut[0],st=ut[1];H[gt]={text:st}}else H.techn={text:S};if(M==null)H.descr={text:""};else if(zn(M)==="object"){var Pt=er(Object.entries(M)[0],2),Dt=Pt[0],Xt=Pt[1];H[Dt]={text:Xt}}else H.descr={text:M};if(zn(N)==="object"){var Mt=er(Object.entries(N)[0],2),It=Mt[0],$t=Mt[1];H[It]=$t}else H.sprite=N;if(zn(B)==="object"){var ee=er(Object.entries(B)[0],2),Re=ee[0],Se=ee[1];H[Re]=Se}else H.tags=B;if(zn(Y)==="object"){var se=er(Object.entries(Y)[0],2),le=se[0],Oe=se[1];H[le]=Oe}else H.link=Y;H.wrap=no()}},updateElStyle:function(l,s,y,w,S,M,N,B,Y,H,it){var ut=$a.find(function(an){return an.alias===s});if(ut!==void 0||(ut=kr.find(function(an){return an.alias===s}))!==void 0){if(y!=null)if(zn(y)==="object"){var gt=er(Object.entries(y)[0],2),st=gt[0],Pt=gt[1];ut[st]=Pt}else ut.bgColor=y;if(w!=null)if(zn(w)==="object"){var Dt=er(Object.entries(w)[0],2),Xt=Dt[0],Mt=Dt[1];ut[Xt]=Mt}else ut.fontColor=w;if(S!=null)if(zn(S)==="object"){var It=er(Object.entries(S)[0],2),$t=It[0],ee=It[1];ut[$t]=ee}else ut.borderColor=S;if(M!=null)if(zn(M)==="object"){var Re=er(Object.entries(M)[0],2),Se=Re[0],se=Re[1];ut[Se]=se}else ut.shadowing=M;if(N!=null)if(zn(N)==="object"){var le=er(Object.entries(N)[0],2),Oe=le[0],ke=le[1];ut[Oe]=ke}else ut.shape=N;if(B!=null)if(zn(B)==="object"){var re=er(Object.entries(B)[0],2),we=re[0],oe=re[1];ut[we]=oe}else ut.sprite=B;if(Y!=null)if(zn(Y)==="object"){var ce=er(Object.entries(Y)[0],2),Ye=ce[0],Ue=ce[1];ut[Ye]=Ue}else ut.techn=Y;if(H!=null)if(zn(H)==="object"){var je=er(Object.entries(H)[0],2),qe=je[0],be=je[1];ut[qe]=be}else ut.legendText=H;if(it!=null)if(zn(it)==="object"){var Ge=er(Object.entries(it)[0],2),dn=Ge[0],tn=Ge[1];ut[dn]=tn}else ut.legendSprite=it}},updateRelStyle:function(l,s,y,w,S,M,N){var B=fo.find(function(ee){return ee.from===s&&ee.to===y});if(B!==void 0){if(w!=null)if(zn(w)==="object"){var Y=er(Object.entries(w)[0],2),H=Y[0],it=Y[1];B[H]=it}else B.textColor=w;if(S!=null)if(zn(S)==="object"){var ut=er(Object.entries(S)[0],2),gt=ut[0],st=ut[1];B[gt]=st}else B.lineColor=S;if(M!=null)if(zn(M)==="object"){var Pt=er(Object.entries(M)[0],2),Dt=Pt[0],Xt=Pt[1];B[Dt]=parseInt(Xt)}else B.offsetX=parseInt(M);if(N!=null)if(zn(N)==="object"){var Mt=er(Object.entries(N)[0],2),It=Mt[0],$t=Mt[1];B[It]=parseInt($t)}else B.offsetY=parseInt(N)}},updateLayoutConfig:function(l,s,y){var w=La,S=po;if(zn(s)==="object"){var M=er(Object.entries(s)[0],2),N=(M[0],M[1]);w=parseInt(N)}else w=parseInt(s);if(zn(y)==="object"){var B=er(Object.entries(y)[0],2),Y=(B[0],B[1]);S=parseInt(Y)}else S=parseInt(y);w>=1&&(La=w),S>=1&&(po=S)},autoWrap:no,setWrap:function(l){hs=l},getC4ShapeArray:Sc,getC4Shape:function(l){return $a.find(function(s){return s.alias===l})},getC4ShapeKeys:function(l){return Object.keys(Sc(l))},getBoundarys:function(l){return l==null?kr:kr.filter(function(s){return s.parentBoundary===l})},getCurrentBoundaryParse:function(){return Ze},getParentBoundaryParse:function(){return Ia},getRels:function(){return fo},getTitle:function(){return Ls},getC4Type:function(){return dl},getC4ShapeInRow:function(){return La},getC4BoundaryInRow:function(){return po},setAccTitle:Cr,getAccTitle:ci,getAccDescription:ii,setAccDescription:li,parseDirective:function(l,s,y){vi.parseDirective(this,l,s,y)},getConfig:function(){return jt().c4},clear:function(){$a=[],kr=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Ia="",Ze="global",ho=[""],fo=[],ho=[""],Ls="",hs=!1,La=4,po=2},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:function(l){var s=ue(l,jt());Ls=s},setC4Type:function(l){var s=ue(l,jt());dl=s}};function Xa(l,s){(s==null||s>l.length)&&(s=l.length);for(var y=0,w=new Array(s);y<s;y++)w[y]=l[y];return w}var pl=function(l,s){var y=l.append("rect");if(y.attr("x",s.x),y.attr("y",s.y),y.attr("fill",s.fill),y.attr("stroke",s.stroke),y.attr("width",s.width),y.attr("height",s.height),y.attr("rx",s.rx),y.attr("ry",s.ry),s.attrs!=="undefined"&&s.attrs!==null)for(var w in s.attrs)y.attr(w,s.attrs[w]);return s.class!=="undefined"&&y.attr("class",s.class),y},ro=function(){function l(S,M,N,B,Y,H,it){w(M.append("text").attr("x",N+Y/2).attr("y",B+H/2+5).style("text-anchor","middle").text(S),it)}function s(S,M,N,B,Y,H,it,ut){for(var gt=ut.fontSize,st=ut.fontFamily,Pt=ut.fontWeight,Dt=S.split(ae.lineBreakRegex),Xt=0;Xt<Dt.length;Xt++){var Mt=Xt*gt-gt*(Dt.length-1)/2,It=M.append("text").attr("x",N+Y/2).attr("y",B).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",gt).style("font-weight",Pt).style("font-family",st);It.append("tspan").attr("dy",Mt).text(Dt[Xt]).attr("alignment-baseline","mathematical"),w(It,it)}}function y(S,M,N,B,Y,H,it,ut){var gt=M.append("switch"),st=gt.append("foreignObject").attr("x",N).attr("y",B).attr("width",Y).attr("height",H).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");st.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(S),s(S,gt,N,B,Y,0,it,ut),w(st,it)}function w(S,M){for(var N in M)M.hasOwnProperty(N)&&S.attr(N,M[N])}return function(S){return S.textPlacement==="fo"?y:S.textPlacement==="old"?l:s}}();const pu=function(l,s,y){var w=s.bgColor?s.bgColor:y[s.typeC4Shape.text+"_bg_color"],S=s.borderColor?s.borderColor:y[s.typeC4Shape.text+"_border_color"],M=s.fontColor?s.fontColor:"#FFFFFF",N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(s.typeC4Shape.text){case"person":N="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":N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var B=l.append("g");B.attr("class","person-man");var Y={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};switch(s.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":Y.x=s.x,Y.y=s.y,Y.fill=w,Y.width=s.width,Y.height=s.height,Y.style="stroke:"+S+";stroke-width:0.5;",Y.rx=2.5,Y.ry=2.5,pl(B,Y);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":B.append("path").attr("fill",w).attr("stroke-width","0.5").attr("stroke",S).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",s.x).replaceAll("starty",s.y).replaceAll("half",s.width/2).replaceAll("height",s.height)),B.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",S).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",s.x).replaceAll("starty",s.y).replaceAll("half",s.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":B.append("path").attr("fill",w).attr("stroke-width","0.5").attr("stroke",S).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",s.x).replaceAll("starty",s.y).replaceAll("width",s.width).replaceAll("half",s.height/2)),B.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",S).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",s.x+s.width).replaceAll("starty",s.y).replaceAll("half",s.height/2))}var H,it,ut=(H=y,it=s.typeC4Shape.text,{fontFamily:H[it+"FontFamily"],fontSize:H[it+"FontSize"],fontWeight:H[it+"FontWeight"]});switch(B.append("text").attr("fill",M).attr("font-family",ut.fontFamily).attr("font-size",ut.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",s.typeC4Shape.width).attr("x",s.x+s.width/2-s.typeC4Shape.width/2).attr("y",s.y+s.typeC4Shape.Y).text("<<"+s.typeC4Shape.text+">>"),s.typeC4Shape.text){case"person":case"external_person":(function(st,Pt,Dt,Xt,Mt,It){var $t=st.append("image");$t.attr("width",Pt),$t.attr("height",Dt),$t.attr("x",Xt),$t.attr("y",Mt);var ee=It.startsWith("data:image/png;base64")?It:(0,At.N)(It);$t.attr("xlink:href",ee)})(B,48,48,s.x+s.width/2-24,s.y+s.image.Y,N)}var gt=y[s.typeC4Shape.text+"Font"]();return gt.fontWeight="bold",gt.fontSize=gt.fontSize+2,gt.fontColor=M,ro(y)(s.label.text,B,s.x,s.y+s.label.Y,s.width,s.height,{fill:M},gt),(gt=y[s.typeC4Shape.text+"Font"]()).fontColor=M,s.thchn&&s.thchn.text!==""?ro(y)(s.thchn.text,B,s.x,s.y+s.thchn.Y,s.width,s.height,{fill:M,"font-style":"italic"},gt):s.type&&s.type.text!==""&&ro(y)(s.type.text,B,s.x,s.y+s.type.Y,s.width,s.height,{fill:M,"font-style":"italic"},gt),s.descr&&s.descr.text!==""&&((gt=y.personFont()).fontColor=M,ro(y)(s.descr.text,B,s.x,s.y+s.descr.Y,s.width,s.height,{fill:M},gt)),s.height},gl=function(l,s,y){var w,S=l.append("g"),M=0,N=function(Dt,Xt){var Mt=typeof Symbol<"u"&&Dt[Symbol.iterator]||Dt["@@iterator"];if(!Mt){if(Array.isArray(Dt)||(Mt=function(se,le){if(se){if(typeof se=="string")return Xa(se,le);var Oe=Object.prototype.toString.call(se).slice(8,-1);return Oe==="Object"&&se.constructor&&(Oe=se.constructor.name),Oe==="Map"||Oe==="Set"?Array.from(se):Oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Oe)?Xa(se,le):void 0}}(Dt))||Xt&&Dt&&typeof Dt.length=="number"){Mt&&(Dt=Mt);var It=0,$t=function(){};return{s:$t,n:function(){return It>=Dt.length?{done:!0}:{done:!1,value:Dt[It++]}},e:function(se){throw se},f:$t}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ee,Re=!0,Se=!1;return{s:function(){Mt=Mt.call(Dt)},n:function(){var se=Mt.next();return Re=se.done,se},e:function(se){Se=!0,ee=se},f:function(){try{Re||Mt.return==null||Mt.return()}finally{if(Se)throw ee}}}}(s);try{for(N.s();!(w=N.n()).done;){var B=w.value,Y=B.textColor?B.textColor:"#444444",H=B.lineColor?B.lineColor:"#444444",it=B.offsetX?parseInt(B.offsetX):0,ut=B.offsetY?parseInt(B.offsetY):0;if(M===0){var gt=S.append("line");gt.attr("x1",B.startPoint.x),gt.attr("y1",B.startPoint.y),gt.attr("x2",B.endPoint.x),gt.attr("y2",B.endPoint.y),gt.attr("stroke-width","1"),gt.attr("stroke",H),gt.style("fill","none"),B.type!=="rel_b"&>.attr("marker-end","url(#arrowhead)"),B.type!=="birel"&&B.type!=="rel_b"||gt.attr("marker-start","url(#arrowend)"),M=-1}else{var st=S.append("path");st.attr("fill","none").attr("stroke-width","1").attr("stroke",H).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",B.startPoint.x).replaceAll("starty",B.startPoint.y).replaceAll("controlx",B.startPoint.x+(B.endPoint.x-B.startPoint.x)/2-(B.endPoint.x-B.startPoint.x)/4).replaceAll("controly",B.startPoint.y+(B.endPoint.y-B.startPoint.y)/2).replaceAll("stopx",B.endPoint.x).replaceAll("stopy",B.endPoint.y)),B.type!=="rel_b"&&st.attr("marker-end","url(#arrowhead)"),B.type!=="birel"&&B.type!=="rel_b"||st.attr("marker-start","url(#arrowend)")}var Pt=y.messageFont();ro(y)(B.label.text,S,Math.min(B.startPoint.x,B.endPoint.x)+Math.abs(B.endPoint.x-B.startPoint.x)/2+it,Math.min(B.startPoint.y,B.endPoint.y)+Math.abs(B.endPoint.y-B.startPoint.y)/2+ut,B.label.width,B.label.height,{fill:Y},Pt),B.techn&&B.techn.text!==""&&(Pt=y.messageFont(),ro(y)("["+B.techn.text+"]",S,Math.min(B.startPoint.x,B.endPoint.x)+Math.abs(B.endPoint.x-B.startPoint.x)/2+it,Math.min(B.startPoint.y,B.endPoint.y)+Math.abs(B.endPoint.y-B.startPoint.y)/2+y.messageFontSize+5+ut,Math.max(B.label.width,B.techn.width),B.techn.height,{fill:Y,"font-style":"italic"},Pt))}}catch(Dt){N.e(Dt)}finally{N.f()}};At.N;var Pi=h(2536),gu=h.n(Pi);function Zi(l,s,y){if(s.insert!==void 0){var w=l.getAccTitle(),S=l.getAccDescription();s.attr("role","img").attr("aria-labelledby","chart-title-"+y+" chart-desc-"+y),s.insert("desc",":first-child").attr("id","chart-desc-"+y).text(S),s.insert("title",":first-child").attr("id","chart-title-"+y).text(w)}}function Xi(l,s){(s==null||s>l.length)&&(s=l.length);for(var y=0,w=new Array(s);y<s;y++)w[y]=l[y];return w}function Ac(l,s){if(!(l instanceof s))throw new TypeError("Cannot call a class as a function")}function _a(l,s){for(var y=0;y<s.length;y++){var w=s[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}function Hi(l,s,y){return s&&_a(l.prototype,s),y&&_a(l,y),Object.defineProperty(l,"prototype",{writable:!1}),l}var Ms=0,go=0,Os=4,yo=2;Pi.parser.yy=fs;var Ln={},ds=function(){function l(){Ac(this,l),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,ea(Pi.parser.yy.getConfig())}return Hi(l,[{key:"setData",value:function(s,y,w,S){this.nextData.startx=this.data.startx=s,this.nextData.stopx=this.data.stopx=y,this.nextData.starty=this.data.starty=w,this.nextData.stopy=this.data.stopy=S}},{key:"updateVal",value:function(s,y,w,S){s[y]===void 0?s[y]=w:s[y]=S(w,s[y])}},{key:"insert",value:function(s){this.nextData.cnt=this.nextData.cnt+1;var y=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+s.margin:this.nextData.stopx+2*s.margin,w=y+s.width,S=this.nextData.starty+2*s.margin,M=S+s.height;(y>=this.data.widthLimit||w>=this.data.widthLimit||this.nextData.cnt>Os)&&(y=this.nextData.startx+s.margin+Ln.nextLinePaddingX,S=this.nextData.stopy+2*s.margin,this.nextData.stopx=w=y+s.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=M=S+s.height,this.nextData.cnt=1),s.x=y,s.y=S,this.updateVal(this.data,"startx",y,Math.min),this.updateVal(this.data,"starty",S,Math.min),this.updateVal(this.data,"stopx",w,Math.max),this.updateVal(this.data,"stopy",M,Math.max),this.updateVal(this.nextData,"startx",y,Math.min),this.updateVal(this.nextData,"starty",S,Math.min),this.updateVal(this.nextData,"stopx",w,Math.max),this.updateVal(this.nextData,"stopy",M,Math.max)}},{key:"init",value:function(){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},ea(Pi.parser.yy.getConfig())}},{key:"bumpLastMargin",value:function(s){this.data.stopx+=s,this.data.stopy+=s}}]),l}(),ea=function(l){$r(Ln,l),l.fontFamily&&(Ln.personFontFamily=Ln.systemFontFamily=Ln.messageFontFamily=l.fontFamily),l.fontSize&&(Ln.personFontSize=Ln.systemFontSize=Ln.messageFontSize=l.fontSize),l.fontWeight&&(Ln.personFontWeight=Ln.systemFontWeight=Ln.messageFontWeight=l.fontWeight)},Ui=function(l,s){return{fontFamily:l[s+"FontFamily"],fontSize:l[s+"FontSize"],fontWeight:l[s+"FontWeight"]}},ba=function(l){return{fontFamily:l.boundaryFontFamily,fontSize:l.boundaryFontSize,fontWeight:l.boundaryFontWeight}};function mi(l,s,y,w,S){if(!s[l].width)if(y)s[l].text=ya(s[l].text,S,w),s[l].textLines=s[l].text.split(ae.lineBreakRegex).length,s[l].width=S,s[l].height=ni(s[l].text,w);else{var M=s[l].text.split(ae.lineBreakRegex);s[l].textLines=M.length;var N=0;s[l].height=0,s[l].width=0;for(var B=0;B<M.length;B++)s[l].width=Math.max(yi(M[B],w),s[l].width),N=ni(M[B],w),s[l].height=s[l].height+N}}var Ka=function(l,s,y){s.x=y.data.startx,s.y=y.data.starty,s.width=y.data.stopx-y.data.startx,s.height=y.data.stopy-y.data.starty,s.label.y=Ln.c4ShapeMargin-35;var w=s.wrap&&Ln.wrap,S=ba(Ln);S.fontSize=S.fontSize+2,S.fontWeight="bold",mi("label",s,w,S,yi(s.label.text,S)),function(M,N,B){var Y=M.append("g"),H=N.bgColor?N.bgColor:"none",it=N.borderColor?N.borderColor:"#444444",ut=N.fontColor?N.fontColor:"black",gt={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};N.nodeType&&(gt={"stroke-width":1});var st={x:N.x,y:N.y,fill:H,stroke:it,width:N.width,height:N.height,rx:2.5,ry:2.5,attrs:gt};pl(Y,st);var Pt=B.boundaryFont();Pt.fontWeight="bold",Pt.fontSize=Pt.fontSize+2,Pt.fontColor=ut,ro(B)(N.label.text,Y,N.x,N.y+N.label.Y,N.width,N.height,{fill:"#444444"},Pt),N.type&&N.type.text!==""&&((Pt=B.boundaryFont()).fontColor=ut,ro(B)(N.type.text,Y,N.x,N.y+N.type.Y,N.width,N.height,{fill:"#444444"},Pt)),N.descr&&N.descr.text!==""&&((Pt=B.boundaryFont()).fontSize=Pt.fontSize-2,Pt.fontColor=ut,ro(B)(N.descr.text,Y,N.x,N.y+N.descr.Y,N.width,N.height,{fill:"#444444"},Pt))}(l,s,Ln)},dr=function(l,s,y,w){for(var S=0,M=0;M<w.length;M++){S=0;var N=y[w[M]],B=Ui(Ln,N.typeC4Shape.text);switch(B.fontSize=B.fontSize-2,N.typeC4Shape.width=yi("<<"+N.typeC4Shape.text+">>",B),N.typeC4Shape.height=B.fontSize+2,N.typeC4Shape.Y=Ln.c4ShapePadding,S=N.typeC4Shape.Y+N.typeC4Shape.height-4,N.image={width:0,height:0,Y:0},N.typeC4Shape.text){case"person":case"external_person":N.image.width=48,N.image.height=48,N.image.Y=S,S=N.image.Y+N.image.height}N.sprite&&(N.image.width=48,N.image.height=48,N.image.Y=S,S=N.image.Y+N.image.height);var Y=N.wrap&&Ln.wrap,H=Ln.width-2*Ln.c4ShapePadding,it=Ui(Ln,N.typeC4Shape.text);it.fontSize=it.fontSize+2,it.fontWeight="bold",mi("label",N,Y,it,H),N.label.Y=S+8,S=N.label.Y+N.label.height,N.type&&N.type.text!==""?(N.type.text="["+N.type.text+"]",mi("type",N,Y,Ui(Ln,N.typeC4Shape.text),H),N.type.Y=S+5,S=N.type.Y+N.type.height):N.techn&&N.techn.text!==""&&(N.techn.text="["+N.techn.text+"]",mi("techn",N,Y,Ui(Ln,N.techn.text),H),N.techn.Y=S+5,S=N.techn.Y+N.techn.height);var ut=S,gt=N.label.width;N.descr&&N.descr.text!==""&&(mi("descr",N,Y,Ui(Ln,N.typeC4Shape.text),H),N.descr.Y=S+20,S=N.descr.Y+N.descr.height,gt=Math.max(N.label.width,N.descr.width),ut=S-5*N.descr.textLines),gt+=Ln.c4ShapePadding,N.width=Math.max(N.width||Ln.width,gt,Ln.width),N.height=Math.max(N.height||Ln.height,ut,Ln.height),N.margin=N.margin||Ln.c4ShapeMargin,l.insert(N),pu(s,N,Ln)}l.bumpLastMargin(Ln.c4ShapeMargin)},I=Hi(function l(s,y){Ac(this,l),this.x=s,this.y=y}),U=function(l,s){var y=l.x,w=l.y,S=s.x,M=s.y,N=y+l.width/2,B=w+l.height/2,Y=Math.abs(y-S),H=Math.abs(w-M),it=H/Y,ut=l.height/l.width,gt=null;return w==M&&y<S?gt=new I(y+l.width,B):w==M&&y>S?gt=new I(y,B):y==S&&w<M?gt=new I(N,w+l.height):y==S&&w>M&&(gt=new I(N,w)),y>S&&w<M?gt=ut>=it?new I(y,B+it*l.width/2):new I(N-Y/H*l.height/2,w+l.height):y<S&&w<M?gt=ut>=it?new I(y+l.width,B+it*l.width/2):new I(N+Y/H*l.height/2,w+l.height):y<S&&w>M?gt=ut>=it?new I(y+l.width,B-it*l.width/2):new I(N+l.height/2*Y/H,w):y>S&&w>M&&(gt=ut>=it?new I(y,B-l.width/2*it):new I(N-l.height/2*Y/H,w)),gt},Q=function(l,s){var y={x:0,y:0};y.x=s.x+s.width/2,y.y=s.y+s.height/2;var w=U(l,y);return y.x=l.x+l.width/2,y.y=l.y+l.height/2,{startPoint:w,endPoint:U(s,y)}};function mt(l,s,y,w){var S=new ds;S.data.widthLimit=y.data.widthLimit/Math.min(yo,w.length);for(var M=0;M<w.length;M++){var N=w[M],B=0;N.image={width:0,height:0,Y:0},N.sprite&&(N.image.width=48,N.image.height=48,N.image.Y=B,B=N.image.Y+N.image.height);var Y=N.wrap&&Ln.wrap,H=ba(Ln);if(H.fontSize=H.fontSize+2,H.fontWeight="bold",mi("label",N,Y,H,S.data.widthLimit),N.label.Y=B+8,B=N.label.Y+N.label.height,N.type&&N.type.text!==""&&(N.type.text="["+N.type.text+"]",mi("type",N,Y,ba(Ln),S.data.widthLimit),N.type.Y=B+5,B=N.type.Y+N.type.height),N.descr&&N.descr.text!==""){var it=ba(Ln);it.fontSize=it.fontSize-2,mi("descr",N,Y,it,S.data.widthLimit),N.descr.Y=B+20,B=N.descr.Y+N.descr.height}if(M==0||M%yo==0){var ut=y.data.startx+Ln.diagramMarginX,gt=y.data.stopy+Ln.diagramMarginY+B;S.setData(ut,ut,gt,gt)}else{var st=S.data.stopx!==S.data.startx?S.data.stopx+Ln.diagramMarginX:S.data.startx,Pt=S.data.starty;S.setData(st,st,Pt,Pt)}S.name=N.alias;var Dt=Pi.parser.yy.getC4ShapeArray(N.alias),Xt=Pi.parser.yy.getC4ShapeKeys(N.alias);Xt.length>0&&dr(S,l,Dt,Xt),s=N.alias;var Mt=Pi.parser.yy.getBoundarys(s);Mt.length>0&&mt(l,s,S,Mt),N.alias!=="global"&&Ka(l,N,S),y.data.stopy=Math.max(S.data.stopy+Ln.c4ShapeMargin,y.data.stopy),y.data.stopx=Math.max(S.data.stopx+Ln.c4ShapeMargin,y.data.stopx),Ms=Math.max(Ms,y.data.stopx),go=Math.max(go,y.data.stopy)}}const te={drawPersonOrSystemArray:dr,drawBoundary:Ka,setConf:ea,draw:function(l,s){Ln=jt().c4;var y,w=jt().securityLevel;w==="sandbox"&&(y=(0,E.select)("#i"+s));var S=w==="sandbox"?(0,E.select)(y.nodes()[0].contentDocument.body):(0,E.select)("body"),M=(w==="sandbox"&&y.nodes()[0].contentDocument,Pi.parser.yy);Pi.parser.yy.clear(),Pi.parser.yy.setWrap(Ln.wrap),Pi.parser.parse(l+`
|
|
`),Os=M.getC4ShapeInRow(),yo=M.getC4BoundaryInRow(),_.debug("C:".concat(JSON.stringify(Ln,null,2)));var N=w==="sandbox"?S.select('[id="'.concat(s,'"]')):(0,E.select)('[id="'.concat(s,'"]'));N.append("defs").append("symbol").attr("id","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"),function(st){st.append("defs").append("symbol").attr("id","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")}(N),function(st){st.append("defs").append("symbol").attr("id","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")}(N);var B=new ds;B.setData(Ln.diagramMarginX,Ln.diagramMarginX,Ln.diagramMarginY,Ln.diagramMarginY),B.data.widthLimit=screen.availWidth,Ms=Ln.diagramMarginX,go=Ln.diagramMarginY;var Y=Pi.parser.yy.getTitle();Pi.parser.yy.getC4Type(),mt(N,"",B,Pi.parser.yy.getBoundarys("")),function(st){st.append("defs").append("marker").attr("id","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")}(N),function(st){st.append("defs").append("marker").attr("id","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")}(N),function(st){var Pt=st.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);Pt.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"),Pt.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")}(N),function(st){st.append("defs").append("marker").attr("id","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")}(N),function(st,Pt,Dt){var Xt,Mt,It=0,$t=function(re,we){var oe=typeof Symbol<"u"&&re[Symbol.iterator]||re["@@iterator"];if(!oe){if(Array.isArray(re)||(oe=function(be,Ge){if(be){if(typeof be=="string")return Xi(be,Ge);var dn=Object.prototype.toString.call(be).slice(8,-1);return dn==="Object"&&be.constructor&&(dn=be.constructor.name),dn==="Map"||dn==="Set"?Array.from(be):dn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(dn)?Xi(be,Ge):void 0}}(re))||we&&re&&typeof re.length=="number"){oe&&(re=oe);var ce=0,Ye=function(){};return{s:Ye,n:function(){return ce>=re.length?{done:!0}:{done:!1,value:re[ce++]}},e:function(be){throw be},f:Ye}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ue,je=!0,qe=!1;return{s:function(){oe=oe.call(re)},n:function(){var be=oe.next();return je=be.done,be},e:function(be){qe=!0,Ue=be},f:function(){try{je||oe.return==null||oe.return()}finally{if(qe)throw Ue}}}}(Pt);try{for($t.s();!(Xt=$t.n()).done;){var ee=Xt.value;It+=1;var Re=ee.wrap&&Ln.wrap,Se={fontFamily:(Mt=Ln).messageFontFamily,fontSize:Mt.messageFontSize,fontWeight:Mt.messageFontWeight};Pi.parser.yy.getC4Type()==="C4Dynamic"&&(ee.label.text=It+": "+ee.label.text);var se=yi(ee.label.text,Se);mi("label",ee,Re,Se,se),ee.techn&&ee.techn.text!==""&&mi("techn",ee,Re,Se,se=yi(ee.techn.text,Se)),ee.descr&&ee.descr.text!==""&&mi("descr",ee,Re,Se,se=yi(ee.descr.text,Se));var le=Dt(ee.from),Oe=Dt(ee.to),ke=Q(le,Oe);ee.startPoint=ke.startPoint,ee.endPoint=ke.endPoint}}catch(re){$t.e(re)}finally{$t.f()}gl(st,Pt,Ln)}(N,Pi.parser.yy.getRels(),Pi.parser.yy.getC4Shape),B.data.stopx=Ms,B.data.stopy=go;var H=B.data,it=H.stopy-H.starty+2*Ln.diagramMarginY,ut=H.stopx-H.startx+2*Ln.diagramMarginX;Y&&N.append("text").text(Y).attr("x",(H.stopx-H.startx)/2-4*Ln.diagramMarginX).attr("y",H.starty+Ln.diagramMarginY),Si(N,it,ut,Ln.useMaxWidth);var gt=Y?60:0;N.attr("viewBox",H.startx-Ln.diagramMarginX+" -"+(Ln.diagramMarginY+gt)+" "+ut+" "+(it+gt)),Zi(Pi.parser.yy,N,s),_.debug("models:",H)}};function Ne(l,s){(s==null||s>l.length)&&(s=l.length);for(var y=0,w=new Array(s);y<s;y++)w[y]=l[y];return w}var ze="classid-",nn=[],He={},pn=0,_n=[],Pn=function(l){return ae.sanitizeText(l,jt())},Sn=function(l){var s="",y=l;if(l.indexOf("~")>0){var w=l.split("~");y=w[0],s=ae.sanitizeText(w[1],jt())}return{className:y,type:s}},Nr=function(l){var s=Sn(l);He[s.className]===void 0&&(He[s.className]={id:s.className,type:s.type,cssClasses:[],methods:[],members:[],annotations:[],domId:ze+s.className+"-"+pn},pn++)},br=function(l){for(var s=Object.keys(He),y=0;y<s.length;y++)if(He[s[y]].id===l)return He[s[y]].domId},Ai=function(l,s){var y=Sn(l).className,w=He[y];if(typeof s=="string"){var S=s.trim();S.startsWith("<<")&&S.endsWith(">>")?w.annotations.push(Pn(S.substring(2,S.length-2))):S.indexOf(")")>0?w.methods.push(Pn(S)):S&&w.members.push(Pn(S))}},zi=function(l,s){l.split(",").forEach(function(y){var w=y;y[0].match(/\d/)&&(w=ze+w),He[w]!==void 0&&He[w].cssClasses.push(s)})},_i=function(l,s,y){var w=jt(),S=l,M=br(S);if(w.securityLevel==="loose"&&s!==void 0&&He[S]!==void 0){var N=[];if(typeof y=="string"){N=y.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var B=0;B<N.length;B++){var Y=N[B].trim();Y.charAt(0)==='"'&&Y.charAt(Y.length-1)==='"'&&(Y=Y.substr(1,Y.length-2)),N[B]=Y}}N.length===0&&N.push(M),_n.push(function(){var H=document.querySelector('[id="'.concat(M,'"]'));H!==null&&H.addEventListener("click",function(){var it;Bn.runFunc.apply(Bn,[s].concat(function(ut){if(Array.isArray(ut))return Ne(ut)}(it=N)||function(ut){if(typeof Symbol<"u"&&ut[Symbol.iterator]!=null||ut["@@iterator"]!=null)return Array.from(ut)}(it)||function(ut,gt){if(ut){if(typeof ut=="string")return Ne(ut,gt);var st=Object.prototype.toString.call(ut).slice(8,-1);return st==="Object"&&ut.constructor&&(st=ut.constructor.name),st==="Map"||st==="Set"?Array.from(ut):st==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(st)?Ne(ut,gt):void 0}}(it)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)})}},Lo={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},yu=function(l){var s=(0,E.select)(".mermaidTooltip");(s._groups||s)[0][0]===null&&(s=(0,E.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,E.select)(l).select("svg").selectAll("g.node").on("mouseover",function(){var y=(0,E.select)(this);if(y.attr("title")!==null){var w=this.getBoundingClientRect();s.transition().duration(200).style("opacity",".9"),s.text(y.attr("title")).style("left",window.scrollX+w.left+(w.right-w.left)/2+"px").style("top",window.scrollY+w.top-14+document.body.scrollTop+"px"),y.classed("hover",!0)}}).on("mouseout",function(){s.transition().duration(500).style("opacity",0),(0,E.select)(this).classed("hover",!1)})};_n.push(yu);var yl="TB";const io={parseDirective:function(l,s,y){vi.parseDirective(this,l,s,y)},setAccTitle:Cr,getAccTitle:ci,getAccDescription:ii,setAccDescription:li,getConfig:function(){return jt().class},addClass:Nr,bindFunctions:function(l){_n.forEach(function(s){s(l)})},clear:function(){nn=[],He={},(_n=[]).push(yu),Hr()},getClass:function(l){return He[l]},getClasses:function(){return He},addAnnotation:function(l,s){var y=Sn(l).className;He[y].annotations.push(s)},getRelations:function(){return nn},addRelation:function(l){_.debug("Adding relation: "+JSON.stringify(l)),Nr(l.id1),Nr(l.id2),l.id1=Sn(l.id1).className,l.id2=Sn(l.id2).className,l.relationTitle1=ae.sanitizeText(l.relationTitle1.trim(),jt()),l.relationTitle2=ae.sanitizeText(l.relationTitle2.trim(),jt()),nn.push(l)},getDirection:function(){return yl},setDirection:function(l){yl=l},addMember:Ai,addMembers:function(l,s){Array.isArray(s)&&(s.reverse(),s.forEach(function(y){return Ai(l,y)}))},cleanupLabel:function(l){return l.substring(0,1)===":"?ae.sanitizeText(l.substr(1).trim(),jt()):Pn(l.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:Lo,setClickEvent:function(l,s,y){l.split(",").forEach(function(w){_i(w,s,y),He[w].haveCallback=!0}),zi(l,"clickable")},setCssClass:zi,setLink:function(l,s,y){var w=jt();l.split(",").forEach(function(S){var M=S;S[0].match(/\d/)&&(M=ze+M),He[M]!==void 0&&(He[M].link=Bn.formatUrl(s,w),w.securityLevel==="sandbox"?He[M].linkTarget="_top":He[M].linkTarget=typeof y=="string"?Pn(y):"_blank")}),zi(l,"clickable")},setTooltip:function(l,s){var y=jt();l.split(",").forEach(function(w){s!==void 0&&(He[w].tooltip=ae.sanitizeText(s,y))})},lookUpDomId:br};var qh=h(681),Zo=h.n(qh),mo=h(8282),Mi=h.n(mo),Mo=h(1362),Wh=h.n(Mo),mu=0,Ds=function(l){var s=l.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),y=l.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return s&&!y?Gh(s):y?ml(y):Ki(l)},Gh=function(l){var s="",y="";try{var w=l[1]?l[1].trim():"",S=l[2]?l[2].trim():"",M=l[3]?ps(l[3].trim()):"",N=l[4]?l[4].trim():"",B=l[5]?l[5].trim():"";y=w+S+M+" "+N,s=_l(B)}catch{y=l}return{displayText:y,cssStyle:s}},ml=function(l){var s="",y="";try{var w=l[1]?l[1].trim():"",S=l[2]?l[2].trim():"",M=l[3]?ps(l[3].trim()):"",N=l[4]?l[4].trim():"";y=w+S+"("+M+")"+(l[5]?" : "+ps(l[5]).trim():""),s=_l(N)}catch{y=l}return{displayText:y,cssStyle:s}},Ki=function(l){var s="",y="",w="",S=l.indexOf("("),M=l.indexOf(")");if(S>1&&M>S&&M<=l.length){var N="",B="",Y=l.substring(0,1);Y.match(/\w/)?B=l.substring(0,S).trim():(Y.match(/\+|-|~|#/)&&(N=Y),B=l.substring(1,S).trim());var H=l.substring(S+1,M),it=l.substring(M+1,1);y=_l(it),s=N+B+"("+ps(H.trim())+")",M<0&&(w=l.substring(M+2).trim())!==""&&(w=" : "+ps(w))}else s=ps(l);return{displayText:s,cssStyle:y}},Bs=function(l,s,y,w){var S=Ds(s),M=l.append("tspan").attr("x",w.padding).text(S.displayText);S.cssStyle!==""&&M.attr("style",S.cssStyle),y||M.attr("dy",w.textHeight)},ps=function l(s){var y=s;return s.indexOf("~")!=-1?l(y=(y=y.replace("~","<")).replace("~",">")):y},_l=function(l){switch(l){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const of=function(l,s,y){_.info("Rendering class "+s);var w,S=s.id,M={id:S,label:s.id,width:0,height:0},N=l.append("g").attr("id",br(S)).attr("class","classGroup");w=s.link?N.append("svg:a").attr("xlink:href",s.link).attr("target",s.linkTarget).append("text").attr("y",y.textHeight+y.padding).attr("x",0):N.append("text").attr("y",y.textHeight+y.padding).attr("x",0);var B=!0;s.annotations.forEach(function($t){var ee=w.append("tspan").text("\xAB"+$t+"\xBB");B||ee.attr("dy",y.textHeight),B=!1});var Y=s.id;s.type!==void 0&&s.type!==""&&(Y+="<"+s.type+">");var H=w.append("tspan").text(Y).attr("class","title");B||H.attr("dy",y.textHeight);var it=w.node().getBBox().height,ut=N.append("line").attr("x1",0).attr("y1",y.padding+it+y.dividerMargin/2).attr("y2",y.padding+it+y.dividerMargin/2),gt=N.append("text").attr("x",y.padding).attr("y",it+y.dividerMargin+y.textHeight).attr("fill","white").attr("class","classText");B=!0,s.members.forEach(function($t){Bs(gt,$t,B,y),B=!1});var st=gt.node().getBBox(),Pt=N.append("line").attr("x1",0).attr("y1",y.padding+it+y.dividerMargin+st.height).attr("y2",y.padding+it+y.dividerMargin+st.height),Dt=N.append("text").attr("x",y.padding).attr("y",it+2*y.dividerMargin+st.height+y.textHeight).attr("fill","white").attr("class","classText");B=!0,s.methods.forEach(function($t){Bs(Dt,$t,B,y),B=!1});var Xt=N.node().getBBox(),Mt=" ";s.cssClasses.length>0&&(Mt+=s.cssClasses.join(" "));var It=N.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",Xt.width+2*y.padding).attr("height",Xt.height+y.padding+.5*y.dividerMargin).attr("class",Mt).node().getBBox().width;return w.node().childNodes.forEach(function($t){$t.setAttribute("x",(It-$t.getBBox().width)/2)}),s.tooltip&&w.insert("title").text(s.tooltip),ut.attr("x2",It),Pt.attr("x2",It),M.width=It,M.height=Xt.height+y.padding+.5*y.dividerMargin,M};Mo.parser.yy=io;var Cc={},Nc={dividerMargin:10,padding:5,textHeight:10},bl=function(l){var s=Object.entries(Cc).find(function(y){return y[1].label===l});if(s)return s[0]};const _u=function(l){Object.keys(l).forEach(function(s){Nc[s]=l[s]})},Vh=function(l,s){Cc={},Mo.parser.yy.clear(),Mo.parser.parse(l),_.info("Rendering diagram "+l);var y,w=jt().securityLevel;w==="sandbox"&&(y=(0,E.select)("#i"+s));var S,M=w==="sandbox"?(0,E.select)(y.nodes()[0].contentDocument.body):(0,E.select)("body"),N=(w==="sandbox"&&y.nodes()[0].contentDocument,M.select("[id='".concat(s,"']")));N.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(S=N).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),S.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),S.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),S.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),S.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),S.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),S.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),S.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");var B=new(Mi()).Graph({multigraph:!0});B.setGraph({isMultiGraph:!0}),B.setDefaultEdgeLabel(function(){return{}});for(var Y=io.getClasses(),H=Object.keys(Y),it=0;it<H.length;it++){var ut=Y[H[it]],gt=of(N,ut,Nc);Cc[gt.id]=gt,B.setNode(gt.id,gt),_.info("Org height: "+gt.height)}io.getRelations().forEach(function(Mt){_.info("tjoho"+bl(Mt.id1)+bl(Mt.id2)+JSON.stringify(Mt)),B.setEdge(bl(Mt.id1),bl(Mt.id2),{relation:Mt},Mt.title||"DEFAULT")}),Zo().layout(B),B.nodes().forEach(function(Mt){Mt!==void 0&&B.node(Mt)!==void 0&&(_.debug("Node "+Mt+": "+JSON.stringify(B.node(Mt))),M.select("#"+br(Mt)).attr("transform","translate("+(B.node(Mt).x-B.node(Mt).width/2)+","+(B.node(Mt).y-B.node(Mt).height/2)+" )"))}),B.edges().forEach(function(Mt){Mt!==void 0&&B.edge(Mt)!==void 0&&(_.debug("Edge "+Mt.v+" -> "+Mt.w+": "+JSON.stringify(B.edge(Mt))),function(It,$t,ee,Re){var Se=function(gn){switch(gn){case Lo.AGGREGATION:return"aggregation";case Lo.EXTENSION:return"extension";case Lo.COMPOSITION:return"composition";case Lo.DEPENDENCY:return"dependency"}};$t.points=$t.points.filter(function(gn){return!Number.isNaN(gn.y)});var se,le,Oe=$t.points,ke=(0,E.line)().x(function(gn){return gn.x}).y(function(gn){return gn.y}).curve(E.curveBasis),re=It.append("path").attr("d",ke(Oe)).attr("id","edge"+mu).attr("class","relation"),we="";Re.arrowMarkerAbsolute&&(we=(we=(we=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),ee.relation.lineType==1&&re.attr("class","relation dashed-line"),ee.relation.type1!=="none"&&re.attr("marker-start","url("+we+"#"+Se(ee.relation.type1)+"Start)"),ee.relation.type2!=="none"&&re.attr("marker-end","url("+we+"#"+Se(ee.relation.type2)+"End)");var oe,ce,Ye,Ue,je=$t.points.length,qe=Bn.calcLabelPosition($t.points);if(se=qe.x,le=qe.y,je%2!=0&&je>1){var be=Bn.calcCardinalityPosition(ee.relation.type1!=="none",$t.points,$t.points[0]),Ge=Bn.calcCardinalityPosition(ee.relation.type2!=="none",$t.points,$t.points[je-1]);_.debug("cardinality_1_point "+JSON.stringify(be)),_.debug("cardinality_2_point "+JSON.stringify(Ge)),oe=be.x,ce=be.y,Ye=Ge.x,Ue=Ge.y}if(ee.title!==void 0){var dn=It.append("g").attr("class","classLabel"),tn=dn.append("text").attr("class","label").attr("x",se).attr("y",le).attr("fill","red").attr("text-anchor","middle").text(ee.title);window.label=tn;var an=tn.node().getBBox();dn.insert("rect",":first-child").attr("class","box").attr("x",an.x-Re.padding/2).attr("y",an.y-Re.padding/2).attr("width",an.width+Re.padding).attr("height",an.height+Re.padding)}_.info("Rendering relation "+JSON.stringify(ee)),ee.relationTitle1!==void 0&&ee.relationTitle1!=="none"&&It.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",oe).attr("y",ce).attr("fill","black").attr("font-size","6").text(ee.relationTitle1),ee.relationTitle2!==void 0&&ee.relationTitle2!=="none"&&It.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",Ye).attr("y",Ue).attr("fill","black").attr("font-size","6").text(ee.relationTitle2),mu++}(N,B.edge(Mt),B.edge(Mt).relation,Nc))});var st=N.node().getBBox(),Pt=st.width+40,Dt=st.height+40;Si(N,Dt,Pt,Nc.useMaxWidth);var Xt="".concat(st.x-20," ").concat(st.y-20," ").concat(Pt," ").concat(Dt);_.debug("viewBox ".concat(Xt)),N.attr("viewBox",Xt),Zi(Mo.parser.yy,N,s)};var Ja={extension:function(l,s,y){_.trace("Making markers for ",y),l.append("defs").append("marker").attr("id",s+"-extensionStart").attr("class","marker extension "+s).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),l.append("defs").append("marker").attr("id",s+"-extensionEnd").attr("class","marker extension "+s).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(l,s){l.append("defs").append("marker").attr("id",s+"-compositionStart").attr("class","marker composition "+s).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),l.append("defs").append("marker").attr("id",s+"-compositionEnd").attr("class","marker composition "+s).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(l,s){l.append("defs").append("marker").attr("id",s+"-aggregationStart").attr("class","marker aggregation "+s).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),l.append("defs").append("marker").attr("id",s+"-aggregationEnd").attr("class","marker aggregation "+s).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(l,s){l.append("defs").append("marker").attr("id",s+"-dependencyStart").attr("class","marker dependency "+s).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),l.append("defs").append("marker").attr("id",s+"-dependencyEnd").attr("class","marker dependency "+s).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},point:function(l,s){l.append("marker").attr("id",s+"-pointEnd").attr("class","marker "+s).attr("viewBox","0 0 10 10").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").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),l.append("marker").attr("id",s+"-pointStart").attr("class","marker "+s).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(l,s){l.append("marker").attr("id",s+"-circleEnd").attr("class","marker "+s).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"),l.append("marker").attr("id",s+"-circleStart").attr("class","marker "+s).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(l,s){l.append("marker").attr("id",s+"-crossEnd").attr("class","marker cross "+s).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"),l.append("marker").attr("id",s+"-crossStart").attr("class","marker cross "+s).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(l,s){l.append("defs").append("marker").attr("id",s+"-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")}};const Zh=function(l,s,y,w){s.forEach(function(S){Ja[S](l,y,w)})};function Ic(l){return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ic(l)}const ca=function(l,s,y,w){var S=l||"";if(Ic(S)==="object"&&(S=S[0]),Xe(jt().flowchart.htmlLabels)){S=S.replace(/\\n|\n/g,"<br />"),_.info("vertexText"+S);var M=function(it){var ut,gt=(0,E.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),st=gt.append("xhtml:div"),Pt=it.label,Dt=it.isNode?"nodeLabel":"edgeLabel";return st.html('<span class="'+Dt+'" '+(it.labelStyle?'style="'+it.labelStyle+'"':"")+">"+Pt+"</span>"),(ut=it.labelStyle)&&st.attr("style",ut),st.style("display","inline-block"),st.style("white-space","nowrap"),st.attr("xmlns","http://www.w3.org/1999/xhtml"),gt.node()}({isNode:w,label:S.replace(/fa[lrsb]?:fa-[\w-]+/g,function(it){return"<i class='".concat(it.replace(":"," "),"'></i>")}),labelStyle:s.replace("fill:","color:")});return M}var N=document.createElementNS("http://www.w3.org/2000/svg","text");N.setAttribute("style",s.replace("color:","fill:"));var B=[];B=typeof S=="string"?S.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(S)?S:[];for(var Y=0;Y<B.length;Y++){var H=document.createElementNS("http://www.w3.org/2000/svg","tspan");H.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),H.setAttribute("dy","1em"),H.setAttribute("x","0"),y?H.setAttribute("class","title-row"):H.setAttribute("class","row"),H.textContent=B[Y].trim(),N.appendChild(H)}return N};var Ji=function(l,s,y,w){var S;S=y||"node default";var M=l.insert("g").attr("class",S).attr("id",s.domId||s.id),N=M.insert("g").attr("class","label").attr("style",s.labelStyle),B=typeof s.labelText=="string"?s.labelText:s.labelText[0],Y=N.node().appendChild(ca(ue(hh(B),jt()),s.labelStyle,!1,w)),H=Y.getBBox();if(Xe(jt().flowchart.htmlLabels)){var it=Y.children[0],ut=(0,E.select)(Y);H=it.getBoundingClientRect(),ut.attr("width",H.width),ut.attr("height",H.height)}var gt=s.padding/2;return N.attr("transform","translate("+-H.width/2+", "+-H.height/2+")"),{shapeSvg:M,bbox:H,halfPadding:gt,label:N}},Kr=function(l,s){var y=s.node().getBBox();l.width=y.width,l.height=y.height};function _o(l,s,y,w){return l.insert("polygon",":first-child").attr("points",w.map(function(S){return S.x+","+S.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-s/2+","+y/2+")")}var Jn={},Ma={},Rs={},Oo=function(l,s){return _.trace("In isDecendant",s," ",l," = ",Ma[s].indexOf(l)>=0),Ma[s].indexOf(l)>=0},Lc=function l(s,y,w,S){_.warn("Copying children of ",s,"root",S,"data",y.node(s),S);var M=y.children(s)||[];s!==S&&M.push(s),_.warn("Copying (nodes) clusterId",s,"nodes",M),M.forEach(function(N){if(y.children(N).length>0)l(N,y,w,S);else{var B=y.node(N);_.info("cp ",N," to ",S," with parent ",s),w.setNode(N,B),S!==y.parent(N)&&(_.warn("Setting parent",N,y.parent(N)),w.setParent(N,y.parent(N))),s!==S&&N!==s?(_.debug("Setting parent",N,s),w.setParent(N,s)):(_.info("In copy ",s,"root",S,"data",y.node(s),S),_.debug("Not Setting parent for node=",N,"cluster!==rootId",s!==S,"node!==clusterId",N!==s));var Y=y.edges(N);_.debug("Copying Edges",Y),Y.forEach(function(H){_.info("Edge",H);var it=y.edge(H.v,H.w,H.name);_.info("Edge data",it,S);try{(function(ut,gt){return _.info("Decendants of ",gt," is ",Ma[gt]),_.info("Edge is ",ut),ut.v!==gt&&ut.w!==gt&&(Ma[gt]?(_.info("Here "),Ma[gt].indexOf(ut.v)>=0||!!Oo(ut.v,gt)||!!Oo(ut.w,gt)||Ma[gt].indexOf(ut.w)>=0):(_.debug("Tilt, ",gt,",not in decendants"),!1))})(H,S)?(_.info("Copying as ",H.v,H.w,it,H.name),w.setEdge(H.v,H.w,it,H.name),_.info("newGraph edges ",w.edges(),w.edge(w.edges()[0]))):_.info("Skipping copy of edge ",H.v,"-->",H.w," rootId: ",S," clusterId:",s)}catch(ut){_.error(ut)}})}_.debug("Removing node",N),y.removeNode(N)})},Mc=function l(s,y){for(var w=y.children(s),S=[].concat(w),M=0;M<w.length;M++)Rs[w[M]]=s,S=S.concat(l(w[M],y));return S},gs=function l(s,y){_.trace("Searching",s);var w=y.children(s);if(_.trace("Searching children of id ",s,w),w.length<1)return _.trace("This is a valid node",s),s;for(var S=0;S<w.length;S++){var M=l(w[S],y);if(M)return _.trace("Found replacement for",s," => ",M),M}},bo=function(l){return Jn[l]&&Jn[l].externalConnections&&Jn[l]?Jn[l].id:l},vl=function(l,s){!l||s>10?_.debug("Opting out, no graph "):(_.debug("Opting in, graph "),l.nodes().forEach(function(y){l.children(y).length>0&&(_.warn("Cluster identified",y," Replacement id in edges: ",gs(y,l)),Ma[y]=Mc(y,l),Jn[y]={id:gs(y,l),clusterData:l.node(y)})}),l.nodes().forEach(function(y){var w=l.children(y),S=l.edges();w.length>0?(_.debug("Cluster identified",y,Ma),S.forEach(function(M){M.v!==y&&M.w!==y&&Oo(M.v,y)^Oo(M.w,y)&&(_.warn("Edge: ",M," leaves cluster ",y),_.warn("Decendants of XXX ",y,": ",Ma[y]),Jn[y].externalConnections=!0)})):_.debug("Not a cluster ",y,Ma)}),l.edges().forEach(function(y){var w=l.edge(y);_.warn("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(y)),_.warn("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(l.edge(y)));var S=y.v,M=y.w;if(_.warn("Fix XXX",Jn,"ids:",y.v,y.w,"Translateing: ",Jn[y.v]," --- ",Jn[y.w]),Jn[y.v]&&Jn[y.w]&&Jn[y.v]===Jn[y.w]){_.warn("Fixing and trixing link to self - removing XXX",y.v,y.w,y.name),_.warn("Fixing and trixing - removing XXX",y.v,y.w,y.name),S=bo(y.v),M=bo(y.w),l.removeEdge(y.v,y.w,y.name);var N=y.w+"---"+y.v;l.setNode(N,{domId:N,id:N,labelStyle:"",labelText:w.label,padding:0,shape:"labelRect",style:""});var B=JSON.parse(JSON.stringify(w)),Y=JSON.parse(JSON.stringify(w));B.label="",B.arrowTypeEnd="none",Y.label="",B.fromCluster=y.v,Y.toCluster=y.v,l.setEdge(S,N,B,y.name+"-cyclic-special"),l.setEdge(N,M,Y,y.name+"-cyclic-special")}else(Jn[y.v]||Jn[y.w])&&(_.warn("Fixing and trixing - removing XXX",y.v,y.w,y.name),S=bo(y.v),M=bo(y.w),l.removeEdge(y.v,y.w,y.name),S!==y.v&&(w.fromCluster=y.v),M!==y.w&&(w.toCluster=y.w),_.warn("Fix Replacing with XXX",S,M,y.name),l.setEdge(S,M,w,y.name))}),_.warn("Adjusted Graph",Mi().json.write(l)),Oc(l,0),_.trace(Jn))},Oc=function l(s,y){if(_.warn("extractor - ",y,Mi().json.write(s),s.children("D")),y>10)_.error("Bailing out");else{for(var w=s.nodes(),S=!1,M=0;M<w.length;M++){var N=w[M],B=s.children(N);S=S||B.length>0}if(S){_.debug("Nodes = ",w,y);for(var Y=0;Y<w.length;Y++){var H=w[Y];if(_.debug("Extracting node",H,Jn,Jn[H]&&!Jn[H].externalConnections,!s.parent(H),s.node(H),s.children("D")," Depth ",y),Jn[H])if(!Jn[H].externalConnections&&s.children(H)&&s.children(H).length>0){_.warn("Cluster without external connections, without a parent and with children",H,y);var it=s.graph().rankdir==="TB"?"LR":"TB";Jn[H]&&Jn[H].clusterData&&Jn[H].clusterData.dir&&(it=Jn[H].clusterData.dir,_.warn("Fixing dir",Jn[H].clusterData.dir,it));var ut=new(Mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:it,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});_.warn("Old graph before copy",Mi().json.write(s)),Lc(H,s,ut,H),s.setNode(H,{clusterNode:!0,id:H,clusterData:Jn[H].clusterData,labelText:Jn[H].labelText,graph:ut}),_.warn("New graph after copy node: (",H,")",Mi().json.write(ut)),_.debug("Old graph after copy",Mi().json.write(s))}else _.warn("Cluster ** ",H," **not meeting the criteria !externalConnections:",!Jn[H].externalConnections," no parent: ",!s.parent(H)," children ",s.children(H)&&s.children(H).length>0,s.children("D"),y),_.debug(Jn);else _.debug("Not a cluster",H,y)}w=s.nodes(),_.warn("New list of nodes",w);for(var gt=0;gt<w.length;gt++){var st=w[gt],Pt=s.node(st);_.warn(" Now next level",st,Pt),Pt.clusterNode&&l(Pt.graph,y+1)}}else _.debug("Done, no node has children",s.nodes())}},Xh=function l(s,y){if(y.length===0)return[];var w=Object.assign(y);return y.forEach(function(S){var M=s.children(S),N=l(s,M);w=w.concat(N)}),w},Dc=function(l){return Xh(l,l.children())},sf=h(3841);const Bc=function(l,s,y,w){var S=l.x,M=l.y,N=S-w.x,B=M-w.y,Y=Math.sqrt(s*s*B*B+y*y*N*N),H=Math.abs(s*y*N/Y);w.x<S&&(H=-H);var it=Math.abs(s*y*B/Y);return w.y<M&&(it=-it),{x:S+H,y:M+it}};function Rc(l,s){return l*s>0}const Kh=function(l,s,y,w){var S,M,N,B,Y,H,it,ut,gt,st,Pt,Dt,Xt;if(S=s.y-l.y,N=l.x-s.x,Y=s.x*l.y-l.x*s.y,gt=S*y.x+N*y.y+Y,st=S*w.x+N*w.y+Y,!(gt!==0&&st!==0&&Rc(gt,st)||(M=w.y-y.y,B=y.x-w.x,H=w.x*y.y-y.x*w.y,it=M*l.x+B*l.y+H,ut=M*s.x+B*s.y+H,it!==0&&ut!==0&&Rc(it,ut)||(Pt=S*B-M*N)==0)))return Dt=Math.abs(Pt/2),{x:(Xt=N*H-B*Y)<0?(Xt-Dt)/Pt:(Xt+Dt)/Pt,y:(Xt=M*Y-S*H)<0?(Xt-Dt)/Pt:(Xt+Dt)/Pt}},Fs=function(l,s){var y,w,S=l.x,M=l.y,N=s.x-S,B=s.y-M,Y=l.width/2,H=l.height/2;return Math.abs(B)*Y>Math.abs(N)*H?(B<0&&(H=-H),y=B===0?0:H*N/B,w=H):(N<0&&(Y=-Y),y=Y,w=N===0?0:Y*B/N),{x:S+y,y:M+w}},Fc=(h.n(sf)(),function(l,s,y){return Bc(l,s,s,y)}),ao=function(l,s,y){var w=l.x,S=l.y,M=[],N=Number.POSITIVE_INFINITY,B=Number.POSITIVE_INFINITY;typeof s.forEach=="function"?s.forEach(function(Pt){N=Math.min(N,Pt.x),B=Math.min(B,Pt.y)}):(N=Math.min(N,s.x),B=Math.min(B,s.y));for(var Y=w-l.width/2-N,H=S-l.height/2-B,it=0;it<s.length;it++){var ut=s[it],gt=s[it<s.length-1?it+1:0],st=Kh(l,y,{x:Y+ut.x,y:H+ut.y},{x:Y+gt.x,y:H+gt.y});st&&M.push(st)}return M.length?(M.length>1&&M.sort(function(Pt,Dt){var Xt=Pt.x-y.x,Mt=Pt.y-y.y,It=Math.sqrt(Xt*Xt+Mt*Mt),$t=Dt.x-y.x,ee=Dt.y-y.y,Re=Math.sqrt($t*$t+ee*ee);return It<Re?-1:It===Re?0:1}),M[0]):l},vo=Fs;function xl(l){return xl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},xl(l)}function Jh(l,s,y,w){var S=[],M=function(B){S.push(B),S.push(0)},N=function(B){S.push(0),S.push(B)};s.includes("t")?(_.debug("add top border"),M(y)):N(y),s.includes("r")?(_.debug("add right border"),M(w)):N(w),s.includes("b")?(_.debug("add bottom border"),M(y)):N(y),s.includes("l")?(_.debug("add left border"),M(w)):N(w),l.attr("stroke-dasharray",S.join(" "))}var Pc=function(l,s,y){var w=l.insert("g").attr("class","node default").attr("id",s.domId||s.id),S=70,M=10;y==="LR"&&(S=10,M=70);var N=w.append("rect").attr("x",-1*S/2).attr("y",-1*M/2).attr("width",S).attr("height",M).attr("class","fork-join");return Kr(s,N),s.height=s.height+s.padding/2,s.width=s.width+s.padding/2,s.intersect=function(B){return vo(s,B)},w},kl={question:function(l,s){var y=Ji(l,s,void 0,!0),w=y.shapeSvg,S=y.bbox,M=S.width+s.padding+(S.height+s.padding),N=[{x:M/2,y:0},{x:M,y:-M/2},{x:M/2,y:-M},{x:0,y:-M/2}];_.info("Question main (Circle)");var B=_o(w,M,M,N);return B.attr("style",s.style),Kr(s,B),s.intersect=function(Y){return _.warn("Intersect called"),ao(s,N,Y)},w},rect:function(l,s){var y=Ji(l,s,"node "+s.classes,!0),w=y.shapeSvg,S=y.bbox,M=y.halfPadding;_.trace("Classes = ",s.classes);var N=w.insert("rect",":first-child"),B=S.width+s.padding,Y=S.height+s.padding;if(N.attr("class","basic label-container").attr("style",s.style).attr("rx",s.rx).attr("ry",s.ry).attr("x",-S.width/2-M).attr("y",-S.height/2-M).attr("width",B).attr("height",Y),s.props){var H=new Set(Object.keys(s.props));s.props.borders&&(Jh(N,s.props.borders,B,Y),H.delete("borders")),H.forEach(function(it){_.warn("Unknown node property ".concat(it))})}return Kr(s,N),s.intersect=function(it){return vo(s,it)},w},labelRect:function(l,s){var y=Ji(l,s,"label",!0),w=y.shapeSvg;_.trace("Classes = ",s.classes);var S=w.insert("rect",":first-child");if(S.attr("width",0).attr("height",0),w.attr("class","label edgeLabel"),s.props){var M=new Set(Object.keys(s.props));s.props.borders&&(Jh(S,s.props.borders,0,0),M.delete("borders")),M.forEach(function(N){_.warn("Unknown node property ".concat(N))})}return Kr(s,S),s.intersect=function(N){return vo(s,N)},w},rectWithTitle:function(l,s){var y;y=s.classes?"node "+s.classes:"node default";var w,S=l.insert("g").attr("class",y).attr("id",s.domId||s.id),M=S.insert("rect",":first-child"),N=S.insert("line"),B=S.insert("g").attr("class","label"),Y=s.labelText.flat?s.labelText.flat():s.labelText;w=xl(Y)==="object"?Y[0]:Y,_.info("Label text abc79",w,Y,xl(Y)==="object");var H=B.node().appendChild(ca(w,s.labelStyle,!0,!0)),it={width:0,height:0};if(Xe(jt().flowchart.htmlLabels)){var ut=H.children[0],gt=(0,E.select)(H);it=ut.getBoundingClientRect(),gt.attr("width",it.width),gt.attr("height",it.height)}_.info("Text 2",Y);var st=Y.slice(1,Y.length),Pt=H.getBBox(),Dt=B.node().appendChild(ca(st.join?st.join("<br/>"):st,s.labelStyle,!0,!0));if(Xe(jt().flowchart.htmlLabels)){var Xt=Dt.children[0],Mt=(0,E.select)(Dt);it=Xt.getBoundingClientRect(),Mt.attr("width",it.width),Mt.attr("height",it.height)}var It=s.padding/2;return(0,E.select)(Dt).attr("transform","translate( "+(it.width>Pt.width?0:(Pt.width-it.width)/2)+", "+(Pt.height+It+5)+")"),(0,E.select)(H).attr("transform","translate( "+(it.width<Pt.width?0:-(Pt.width-it.width)/2)+", 0)"),it=B.node().getBBox(),B.attr("transform","translate("+-it.width/2+", "+(-it.height/2-It+3)+")"),M.attr("class","outer title-state").attr("x",-it.width/2-It).attr("y",-it.height/2-It).attr("width",it.width+s.padding).attr("height",it.height+s.padding),N.attr("class","divider").attr("x1",-it.width/2-It).attr("x2",it.width/2+It).attr("y1",-it.height/2-It+Pt.height+It).attr("y2",-it.height/2-It+Pt.height+It),Kr(s,M),s.intersect=function($t){return vo(s,$t)},S},choice:function(l,s){var y=l.insert("g").attr("class","node default").attr("id",s.domId||s.id);return y.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(w){return w.x+","+w.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),s.width=28,s.height=28,s.intersect=function(w){return Fc(s,14,w)},y},circle:function(l,s){var y=Ji(l,s,void 0,!0),w=y.shapeSvg,S=y.bbox,M=y.halfPadding,N=w.insert("circle",":first-child");return N.attr("style",s.style).attr("rx",s.rx).attr("ry",s.ry).attr("r",S.width/2+M).attr("width",S.width+s.padding).attr("height",S.height+s.padding),_.info("Circle main"),Kr(s,N),s.intersect=function(B){return _.info("Circle intersect",s,S.width/2+M,B),Fc(s,S.width/2+M,B)},w},doublecircle:function(l,s){var y=Ji(l,s,void 0,!0),w=y.shapeSvg,S=y.bbox,M=y.halfPadding,N=w.insert("g",":first-child"),B=N.insert("circle"),Y=N.insert("circle");return B.attr("style",s.style).attr("rx",s.rx).attr("ry",s.ry).attr("r",S.width/2+M+5).attr("width",S.width+s.padding+10).attr("height",S.height+s.padding+10),Y.attr("style",s.style).attr("rx",s.rx).attr("ry",s.ry).attr("r",S.width/2+M).attr("width",S.width+s.padding).attr("height",S.height+s.padding),_.info("DoubleCircle main"),Kr(s,B),s.intersect=function(H){return _.info("DoubleCircle intersect",s,S.width/2+M+5,H),Fc(s,S.width/2+M+5,H)},w},stadium:function(l,s){var y=Ji(l,s,void 0,!0),w=y.shapeSvg,S=y.bbox,M=S.height+s.padding,N=S.width+M/4+s.padding,B=w.insert("rect",":first-child").attr("style",s.style).attr("rx",M/2).attr("ry",M/2).attr("x",-N/2).attr("y",-M/2).attr("width",N).attr("height",M);return Kr(s,B),s.intersect=function(Y){return vo(s,Y)},w},hexagon:function(l,s){var y=Ji(l,s,void 0,!0),w=y.shapeSvg,S=y.bbox,M=S.height+s.padding,N=M/4,B=S.width+2*N+s.padding,Y=[{x:N,y:0},{x:B-N,y:0},{x:B,y:-M/2},{x:B-N,y:-M},{x:N,y:-M},{x:0,y:-M/2}],H=_o(w,B,M,Y);return H.attr("style",s.style),Kr(s,H),s.intersect=function(it){return ao(s,Y,it)},w},rect_left_inv_arrow:function(l,s){var y=Ji(l,s,void 0,!0),w=y.shapeSvg,S=y.bbox,M=S.width+s.padding,N=S.height+s.padding,B=[{x:-N/2,y:0},{x:M,y:0},{x:M,y:-N},{x:-N/2,y:-N},{x:0,y:-N/2}];return _o(w,M,N,B).attr("style",s.style),s.width=M+N,s.height=N,s.intersect=function(Y){return ao(s,B,Y)},w},lean_right:function(l,s){var y=Ji(l,s,void 0,!0),w=y.shapeSvg,S=y.bbox,M=S.width+s.padding,N=S.height+s.padding,B=[{x:-2*N/6,y:0},{x:M-N/6,y:0},{x:M+2*N/6,y:-N},{x:N/6,y:-N}],Y=_o(w,M,N,B);return Y.attr("style",s.style),Kr(s,Y),s.intersect=function(H){return ao(s,B,H)},w},lean_left:function(l,s){var y=Ji(l,s,void 0,!0),w=y.shapeSvg,S=y.bbox,M=S.width+s.padding,N=S.height+s.padding,B=[{x:2*N/6,y:0},{x:M+N/6,y:0},{x:M-2*N/6,y:-N},{x:-N/6,y:-N}],Y=_o(w,M,N,B);return Y.attr("style",s.style),Kr(s,Y),s.intersect=function(H){return ao(s,B,H)},w},trapezoid:function(l,s){var y=Ji(l,s,void 0,!0),w=y.shapeSvg,S=y.bbox,M=S.width+s.padding,N=S.height+s.padding,B=[{x:-2*N/6,y:0},{x:M+2*N/6,y:0},{x:M-N/6,y:-N},{x:N/6,y:-N}],Y=_o(w,M,N,B);return Y.attr("style",s.style),Kr(s,Y),s.intersect=function(H){return ao(s,B,H)},w},inv_trapezoid:function(l,s){var y=Ji(l,s,void 0,!0),w=y.shapeSvg,S=y.bbox,M=S.width+s.padding,N=S.height+s.padding,B=[{x:N/6,y:0},{x:M-N/6,y:0},{x:M+2*N/6,y:-N},{x:-2*N/6,y:-N}],Y=_o(w,M,N,B);return Y.attr("style",s.style),Kr(s,Y),s.intersect=function(H){return ao(s,B,H)},w},rect_right_inv_arrow:function(l,s){var y=Ji(l,s,void 0,!0),w=y.shapeSvg,S=y.bbox,M=S.width+s.padding,N=S.height+s.padding,B=[{x:0,y:0},{x:M+N/2,y:0},{x:M,y:-N/2},{x:M+N/2,y:-N},{x:0,y:-N}],Y=_o(w,M,N,B);return Y.attr("style",s.style),Kr(s,Y),s.intersect=function(H){return ao(s,B,H)},w},cylinder:function(l,s){var y=Ji(l,s,void 0,!0),w=y.shapeSvg,S=y.bbox,M=S.width+s.padding,N=M/2,B=N/(2.5+M/50),Y=S.height+B+s.padding,H="M 0,"+B+" a "+N+","+B+" 0,0,0 "+M+" 0 a "+N+","+B+" 0,0,0 "+-M+" 0 l 0,"+Y+" a "+N+","+B+" 0,0,0 "+M+" 0 l 0,"+-Y,it=w.attr("label-offset-y",B).insert("path",":first-child").attr("style",s.style).attr("d",H).attr("transform","translate("+-M/2+","+-(Y/2+B)+")");return Kr(s,it),s.intersect=function(ut){var gt=vo(s,ut),st=gt.x-s.x;if(N!=0&&(Math.abs(st)<s.width/2||Math.abs(st)==s.width/2&&Math.abs(gt.y-s.y)>s.height/2-B)){var Pt=B*B*(1-st*st/(N*N));Pt!=0&&(Pt=Math.sqrt(Pt)),Pt=B-Pt,ut.y-s.y>0&&(Pt=-Pt),gt.y+=Pt}return gt},w},start:function(l,s){var y=l.insert("g").attr("class","node default").attr("id",s.domId||s.id),w=y.insert("circle",":first-child");return w.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Kr(s,w),s.intersect=function(S){return Fc(s,7,S)},y},end:function(l,s){var y=l.insert("g").attr("class","node default").attr("id",s.domId||s.id),w=y.insert("circle",":first-child"),S=y.insert("circle",":first-child");return S.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),w.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Kr(s,S),s.intersect=function(M){return Fc(s,7,M)},y},note:function(l,s){var y=Ji(l,s,"node "+s.classes,!0),w=y.shapeSvg,S=y.bbox,M=y.halfPadding;_.info("Classes = ",s.classes);var N=w.insert("rect",":first-child");return N.attr("rx",s.rx).attr("ry",s.ry).attr("x",-S.width/2-M).attr("y",-S.height/2-M).attr("width",S.width+s.padding).attr("height",S.height+s.padding),Kr(s,N),s.intersect=function(B){return vo(s,B)},w},subroutine:function(l,s){var y=Ji(l,s,void 0,!0),w=y.shapeSvg,S=y.bbox,M=S.width+s.padding,N=S.height+s.padding,B=[{x:0,y:0},{x:M,y:0},{x:M,y:-N},{x:0,y:-N},{x:0,y:0},{x:-8,y:0},{x:M+8,y:0},{x:M+8,y:-N},{x:-8,y:-N},{x:-8,y:0}],Y=_o(w,M,N,B);return Y.attr("style",s.style),Kr(s,Y),s.intersect=function(H){return ao(s,B,H)},w},fork:Pc,join:Pc,class_box:function(l,s){var y,w=s.padding/2;y=s.classes?"node "+s.classes:"node default";var S=l.insert("g").attr("class",y).attr("id",s.domId||s.id),M=S.insert("rect",":first-child"),N=S.insert("line"),B=S.insert("line"),Y=0,H=4,it=S.insert("g").attr("class","label"),ut=0,gt=s.classData.annotations&&s.classData.annotations[0],st=s.classData.annotations[0]?"\xAB"+s.classData.annotations[0]+"\xBB":"",Pt=it.node().appendChild(ca(st,s.labelStyle,!0,!0)),Dt=Pt.getBBox();if(Xe(jt().flowchart.htmlLabels)){var Xt=Pt.children[0],Mt=(0,E.select)(Pt);Dt=Xt.getBoundingClientRect(),Mt.attr("width",Dt.width),Mt.attr("height",Dt.height)}s.classData.annotations[0]&&(H+=Dt.height+4,Y+=Dt.width);var It=s.classData.id;s.classData.type!==void 0&&s.classData.type!==""&&(jt().flowchart.htmlLabels?It+="<"+s.classData.type+">":It+="<"+s.classData.type+">");var $t=it.node().appendChild(ca(It,s.labelStyle,!0,!0));(0,E.select)($t).attr("class","classTitle");var ee=$t.getBBox();if(Xe(jt().flowchart.htmlLabels)){var Re=$t.children[0],Se=(0,E.select)($t);ee=Re.getBoundingClientRect(),Se.attr("width",ee.width),Se.attr("height",ee.height)}H+=ee.height+4,ee.width>Y&&(Y=ee.width);var se=[];s.classData.members.forEach(function(re){var we=Ds(re),oe=we.displayText;jt().flowchart.htmlLabels&&(oe=oe.replace(/</g,"<").replace(/>/g,">"));var ce=it.node().appendChild(ca(oe,we.cssStyle?we.cssStyle:s.labelStyle,!0,!0)),Ye=ce.getBBox();if(Xe(jt().flowchart.htmlLabels)){var Ue=ce.children[0],je=(0,E.select)(ce);Ye=Ue.getBoundingClientRect(),je.attr("width",Ye.width),je.attr("height",Ye.height)}Ye.width>Y&&(Y=Ye.width),H+=Ye.height+4,se.push(ce)}),H+=8;var le=[];if(s.classData.methods.forEach(function(re){var we=Ds(re),oe=we.displayText;jt().flowchart.htmlLabels&&(oe=oe.replace(/</g,"<").replace(/>/g,">"));var ce=it.node().appendChild(ca(oe,we.cssStyle?we.cssStyle:s.labelStyle,!0,!0)),Ye=ce.getBBox();if(Xe(jt().flowchart.htmlLabels)){var Ue=ce.children[0],je=(0,E.select)(ce);Ye=Ue.getBoundingClientRect(),je.attr("width",Ye.width),je.attr("height",Ye.height)}Ye.width>Y&&(Y=Ye.width),H+=Ye.height+4,le.push(ce)}),H+=8,gt){var Oe=(Y-Dt.width)/2;(0,E.select)(Pt).attr("transform","translate( "+(-1*Y/2+Oe)+", "+-1*H/2+")"),ut=Dt.height+4}var ke=(Y-ee.width)/2;return(0,E.select)($t).attr("transform","translate( "+(-1*Y/2+ke)+", "+(-1*H/2+ut)+")"),ut+=ee.height+4,N.attr("class","divider").attr("x1",-Y/2-w).attr("x2",Y/2+w).attr("y1",-H/2-w+8+ut).attr("y2",-H/2-w+8+ut),ut+=8,se.forEach(function(re){(0,E.select)(re).attr("transform","translate( "+-Y/2+", "+(-1*H/2+ut+4)+")"),ut+=ee.height+4}),ut+=8,B.attr("class","divider").attr("x1",-Y/2-w).attr("x2",Y/2+w).attr("y1",-H/2-w+8+ut).attr("y2",-H/2-w+8+ut),ut+=8,le.forEach(function(re){(0,E.select)(re).attr("transform","translate( "+-Y/2+", "+(-1*H/2+ut)+")"),ut+=ee.height+4}),M.attr("class","outer title-state").attr("x",-Y/2-w).attr("y",-H/2-w).attr("width",Y+s.padding).attr("height",H+s.padding),Kr(s,M),s.intersect=function(re){return vo(s,re)},S}},va={},Qa=function(l){var s=va[l.id];_.trace("Transforming node",l.diff,l,"translate("+(l.x-l.width/2-5)+", "+l.width/2+")");var y=l.diff||0;return l.clusterNode?s.attr("transform","translate("+(l.x+y-l.width/2)+", "+(l.y-l.height/2-8)+")"):s.attr("transform","translate("+l.x+", "+l.y+")"),y},ys={rect:function(l,s){_.trace("Creating subgraph rect for ",s.id,s);var y=l.insert("g").attr("class","cluster"+(s.class?" "+s.class:"")).attr("id",s.id),w=y.insert("rect",":first-child"),S=y.insert("g").attr("class","cluster-label"),M=S.node().appendChild(ca(s.labelText,s.labelStyle,void 0,!0)),N=M.getBBox();if(Xe(jt().flowchart.htmlLabels)){var B=M.children[0],Y=(0,E.select)(M);N=B.getBoundingClientRect(),Y.attr("width",N.width),Y.attr("height",N.height)}var H=0*s.padding,it=H/2,ut=s.width<=N.width+H?N.width+H:s.width;s.width<=N.width+H?s.diff=(N.width-s.width)/2-s.padding/2:s.diff=-s.padding/2,_.trace("Data ",s,JSON.stringify(s)),w.attr("style",s.style).attr("rx",s.rx).attr("ry",s.ry).attr("x",s.x-ut/2).attr("y",s.y-s.height/2-it).attr("width",ut).attr("height",s.height+H),S.attr("transform","translate("+(s.x-N.width/2)+", "+(s.y-s.height/2+s.padding/3)+")");var gt=w.node().getBBox();return s.width=gt.width,s.height=gt.height,s.intersect=function(st){return Fs(s,st)},y},roundedWithTitle:function(l,s){var y=l.insert("g").attr("class",s.classes).attr("id",s.id),w=y.insert("rect",":first-child"),S=y.insert("g").attr("class","cluster-label"),M=y.append("rect"),N=S.node().appendChild(ca(s.labelText,s.labelStyle,void 0,!0)),B=N.getBBox();if(Xe(jt().flowchart.htmlLabels)){var Y=N.children[0],H=(0,E.select)(N);B=Y.getBoundingClientRect(),H.attr("width",B.width),H.attr("height",B.height)}B=N.getBBox();var it=0*s.padding,ut=it/2,gt=s.width<=B.width+s.padding?B.width+s.padding:s.width;s.width<=B.width+s.padding?s.diff=(B.width+0*s.padding-s.width)/2:s.diff=-s.padding/2,w.attr("class","outer").attr("x",s.x-gt/2-ut).attr("y",s.y-s.height/2-ut).attr("width",gt+it).attr("height",s.height+it),M.attr("class","inner").attr("x",s.x-gt/2-ut).attr("y",s.y-s.height/2-ut+B.height-1).attr("width",gt+it).attr("height",s.height+it-B.height-3),S.attr("transform","translate("+(s.x-B.width/2)+", "+(s.y-s.height/2-s.padding/3+(Xe(jt().flowchart.htmlLabels)?5:3))+")");var st=w.node().getBBox();return s.height=st.height,s.intersect=function(Pt){return Fs(s,Pt)},y},noteGroup:function(l,s){var y=l.insert("g").attr("class","note-cluster").attr("id",s.id),w=y.insert("rect",":first-child"),S=0*s.padding,M=S/2;w.attr("rx",s.rx).attr("ry",s.ry).attr("x",s.x-s.width/2-M).attr("y",s.y-s.height/2-M).attr("width",s.width+S).attr("height",s.height+S).attr("fill","none");var N=w.node().getBBox();return s.width=N.width,s.height=N.height,s.intersect=function(B){return Fs(s,B)},y},divider:function(l,s){var y=l.insert("g").attr("class",s.classes).attr("id",s.id),w=y.insert("rect",":first-child"),S=0*s.padding,M=S/2;w.attr("class","divider").attr("x",s.x-s.width/2-M).attr("y",s.y-s.height/2).attr("width",s.width+S).attr("height",s.height+S);var N=w.node().getBBox();return s.width=N.width,s.height=N.height,s.diff=-s.padding/2,s.intersect=function(B){return Fs(s,B)},y}},Uc={},zc={},qi={},Qh=function(l,s){var y=ca(s.label,s.labelStyle),w=l.insert("g").attr("class","edgeLabel"),S=w.insert("g").attr("class","label");S.node().appendChild(y);var M,N=y.getBBox();if(Xe(jt().flowchart.htmlLabels)){var B=y.children[0],Y=(0,E.select)(y);N=B.getBoundingClientRect(),Y.attr("width",N.width),Y.attr("height",N.height)}if(S.attr("transform","translate("+-N.width/2+", "+-N.height/2+")"),zc[s.id]=w,s.width=N.width,s.height=N.height,s.startLabelLeft){var H=ca(s.startLabelLeft,s.labelStyle),it=l.insert("g").attr("class","edgeTerminals"),ut=it.insert("g").attr("class","inner");M=ut.node().appendChild(H);var gt=H.getBBox();ut.attr("transform","translate("+-gt.width/2+", "+-gt.height/2+")"),qi[s.id]||(qi[s.id]={}),qi[s.id].startLeft=it,Yc(M,s.startLabelLeft)}if(s.startLabelRight){var st=ca(s.startLabelRight,s.labelStyle),Pt=l.insert("g").attr("class","edgeTerminals"),Dt=Pt.insert("g").attr("class","inner");M=Pt.node().appendChild(st),Dt.node().appendChild(st);var Xt=st.getBBox();Dt.attr("transform","translate("+-Xt.width/2+", "+-Xt.height/2+")"),qi[s.id]||(qi[s.id]={}),qi[s.id].startRight=Pt,Yc(M,s.startLabelRight)}if(s.endLabelLeft){var Mt=ca(s.endLabelLeft,s.labelStyle),It=l.insert("g").attr("class","edgeTerminals"),$t=It.insert("g").attr("class","inner");M=$t.node().appendChild(Mt);var ee=Mt.getBBox();$t.attr("transform","translate("+-ee.width/2+", "+-ee.height/2+")"),It.node().appendChild(Mt),qi[s.id]||(qi[s.id]={}),qi[s.id].endLeft=It,Yc(M,s.endLabelLeft)}if(s.endLabelRight){var Re=ca(s.endLabelRight,s.labelStyle),Se=l.insert("g").attr("class","edgeTerminals"),se=Se.insert("g").attr("class","inner");M=se.node().appendChild(Re);var le=Re.getBBox();se.attr("transform","translate("+-le.width/2+", "+-le.height/2+")"),Se.node().appendChild(Re),qi[s.id]||(qi[s.id]={}),qi[s.id].endRight=Se,Yc(M,s.endLabelRight)}};function Yc(l,s){jt().flowchart.htmlLabels&&l&&(l.style.width=9*s.length+"px",l.style.height="12px")}var t1=function(l,s){_.info("Moving label abc78 ",l.id,l.label,zc[l.id]);var y=s.updatedPath?s.updatedPath:s.originalPath;if(l.label){var w=zc[l.id],S=l.x,M=l.y;if(y){var N=Bn.calcLabelPosition(y);_.info("Moving label from (",S,",",M,") to (",N.x,",",N.y,") abc78")}w.attr("transform","translate("+S+", "+M+")")}if(l.startLabelLeft){var B=qi[l.id].startLeft,Y=l.x,H=l.y;if(y){var it=Bn.calcTerminalLabelPosition(l.arrowTypeStart?10:0,"start_left",y);Y=it.x,H=it.y}B.attr("transform","translate("+Y+", "+H+")")}if(l.startLabelRight){var ut=qi[l.id].startRight,gt=l.x,st=l.y;if(y){var Pt=Bn.calcTerminalLabelPosition(l.arrowTypeStart?10:0,"start_right",y);gt=Pt.x,st=Pt.y}ut.attr("transform","translate("+gt+", "+st+")")}if(l.endLabelLeft){var Dt=qi[l.id].endLeft,Xt=l.x,Mt=l.y;if(y){var It=Bn.calcTerminalLabelPosition(l.arrowTypeEnd?10:0,"end_left",y);Xt=It.x,Mt=It.y}Dt.attr("transform","translate("+Xt+", "+Mt+")")}if(l.endLabelRight){var $t=qi[l.id].endRight,ee=l.x,Re=l.y;if(y){var Se=Bn.calcTerminalLabelPosition(l.arrowTypeEnd?10:0,"end_right",y);ee=Se.x,Re=Se.y}$t.attr("transform","translate("+ee+", "+Re+")")}},bu=function(l,s){_.warn("abc88 cutPathAtIntersect",l,s);var y=[],w=l[0],S=!1;return l.forEach(function(M){if(_.info("abc88 checking point",M,s),function(Y,H){var it=Y.x,ut=Y.y,gt=Math.abs(H.x-it),st=Math.abs(H.y-ut),Pt=Y.width/2,Dt=Y.height/2;return gt>=Pt||st>=Dt}(s,M)||S)_.warn("abc88 outside",M,w),w=M,S||y.push(M);else{var N=function(Y,H,it){_.warn(`intersection calc abc89:
|
|
outsidePoint: `.concat(JSON.stringify(H),`
|
|
insidePoint : `).concat(JSON.stringify(it),`
|
|
node : x:`).concat(Y.x," y:").concat(Y.y," w:").concat(Y.width," h:").concat(Y.height));var ut=Y.x,gt=Y.y,st=Math.abs(ut-it.x),Pt=Y.width/2,Dt=it.x<H.x?Pt-st:Pt+st,Xt=Y.height/2,Mt=Math.abs(H.y-it.y),It=Math.abs(H.x-it.x);if(Math.abs(gt-H.y)*Pt>Math.abs(ut-H.x)*Xt){var $t=it.y<H.y?H.y-Xt-gt:gt-Xt-H.y;Dt=It*$t/Mt;var ee={x:it.x<H.x?it.x+Dt:it.x-It+Dt,y:it.y<H.y?it.y+Mt-$t:it.y-Mt+$t};return Dt===0&&(ee.x=H.x,ee.y=H.y),It===0&&(ee.x=H.x),Mt===0&&(ee.y=H.y),_.warn("abc89 topp/bott calc, Q ".concat(Mt,", q ").concat($t,", R ").concat(It,", r ").concat(Dt),ee),ee}var Re=Mt*(Dt=it.x<H.x?H.x-Pt-ut:ut-Pt-H.x)/It,Se=it.x<H.x?it.x+It-Dt:it.x-It+Dt,se=it.y<H.y?it.y+Re:it.y-Re;return _.warn("sides calc abc89, Q ".concat(Mt,", q ").concat(Re,", R ").concat(It,", r ").concat(Dt),{_x:Se,_y:se}),Dt===0&&(Se=H.x,se=H.y),It===0&&(Se=H.x),Mt===0&&(se=H.y),{x:Se,y:se}}(s,w,M);_.warn("abc88 inside",M,w,N),_.warn("abc88 intersection",N);var B=!1;y.forEach(function(Y){B=B||Y.x===N.x&&Y.y===N.y}),y.find(function(Y){return Y.x===N.x&&Y.y===N.y})?_.warn("abc88 no intersect",N,y):y.push(N),S=!0}}),_.warn("abc88 returning points",y),y},cf=function l(s,y,w,S){_.info("Graph in recursive render: XXX",Mi().json.write(y),S);var M=y.graph().rankdir;_.trace("Dir in recursive render - dir:",M);var N=s.insert("g").attr("class","root");y.nodes()?_.info("Recursive render XXX",y.nodes()):_.info("No nodes found for",y),y.edges().length>0&&_.trace("Recursive edges",y.edge(y.edges()[0]));var B=N.insert("g").attr("class","clusters"),Y=N.insert("g").attr("class","edgePaths"),H=N.insert("g").attr("class","edgeLabels"),it=N.insert("g").attr("class","nodes");y.nodes().forEach(function(gt){var st=y.node(gt);if(S!==void 0){var Pt=JSON.parse(JSON.stringify(S.clusterData));_.info("Setting data for cluster XXX (",gt,") ",Pt,S),y.setNode(S.id,Pt),y.parent(gt)||(_.trace("Setting parent",gt,S.id),y.setParent(gt,S.id,Pt))}if(_.info("(Insert) Node XXX"+gt+": "+JSON.stringify(y.node(gt))),st&&st.clusterNode){_.info("Cluster identified",gt,st.width,y.node(gt));var Dt=l(it,st.graph,w,y.node(gt)),Xt=Dt.elem;Kr(st,Xt),st.diff=Dt.diff||0,_.info("Node bounds (abc123)",gt,st,st.width,st.x,st.y),function(Mt,It){va[It.id]=Mt}(Xt,st),_.warn("Recursive render complete ",Xt,st)}else y.children(gt).length>0?(_.info("Cluster - the non recursive path XXX",gt,st.id,st,y),_.info(gs(st.id,y)),Jn[st.id]={id:gs(st.id,y),node:st}):(_.info("Node - the non recursive path",gt,st.id,st),function(Mt,It,$t){var ee,Re,Se;It.link?(jt().securityLevel==="sandbox"?Se="_top":It.linkTarget&&(Se=It.linkTarget||"_blank"),ee=Mt.insert("svg:a").attr("xlink:href",It.link).attr("target",Se),Re=kl[It.shape](ee,It,$t)):ee=Re=kl[It.shape](Mt,It,$t),It.tooltip&&Re.attr("title",It.tooltip),It.class&&Re.attr("class","node default "+It.class),va[It.id]=ee,It.haveCallback&&va[It.id].attr("class",va[It.id].attr("class")+" clickable")}(it,y.node(gt),M))}),y.edges().forEach(function(gt){var st=y.edge(gt.v,gt.w,gt.name);_.info("Edge "+gt.v+" -> "+gt.w+": "+JSON.stringify(gt)),_.info("Edge "+gt.v+" -> "+gt.w+": ",gt," ",JSON.stringify(y.edge(gt))),_.info("Fix",Jn,"ids:",gt.v,gt.w,"Translateing: ",Jn[gt.v],Jn[gt.w]),Qh(H,st)}),y.edges().forEach(function(gt){_.info("Edge "+gt.v+" -> "+gt.w+": "+JSON.stringify(gt))}),_.info("#############################################"),_.info("### Layout ###"),_.info("#############################################"),_.info(y),Zo().layout(y),_.info("Graph after layout:",Mi().json.write(y));var ut=0;return Dc(y).forEach(function(gt){var st=y.node(gt);_.info("Position "+gt+": "+JSON.stringify(y.node(gt))),_.info("Position "+gt+": ("+st.x,","+st.y,") width: ",st.width," height: ",st.height),st&&st.clusterNode?Qa(st):y.children(gt).length>0?(function(Pt,Dt){_.trace("Inserting cluster");var Xt=Dt.shape||"rect";Uc[Dt.id]=ys[Xt](Pt,Dt)}(B,st),Jn[st.id].node=st):Qa(st)}),y.edges().forEach(function(gt){var st=y.edge(gt);_.info("Edge "+gt.v+" -> "+gt.w+": "+JSON.stringify(st),st);var Pt=function(Dt,Xt,Mt,It,$t,ee){var Re=Mt.points,Se=!1,se=ee.node(Xt.v),le=ee.node(Xt.w);_.info("abc88 InsertEdge: ",Mt),le.intersect&&se.intersect&&((Re=Re.slice(1,Mt.points.length-1)).unshift(se.intersect(Re[0])),_.info("Last point",Re[Re.length-1],le,le.intersect(Re[Re.length-1])),Re.push(le.intersect(Re[Re.length-1]))),Mt.toCluster&&(_.info("to cluster abc88",It[Mt.toCluster]),Re=bu(Mt.points,It[Mt.toCluster].node),Se=!0),Mt.fromCluster&&(_.info("from cluster abc88",It[Mt.fromCluster]),Re=bu(Re.reverse(),It[Mt.fromCluster].node).reverse(),Se=!0);var Oe,ke=Re.filter(function(Ue){return!Number.isNaN(Ue.y)});Oe=($t==="graph"||$t==="flowchart")&&Mt.curve||E.curveBasis;var re,we=(0,E.line)().x(function(Ue){return Ue.x}).y(function(Ue){return Ue.y}).curve(Oe);switch(Mt.thickness){case"normal":re="edge-thickness-normal";break;case"thick":re="edge-thickness-thick";break;default:re=""}switch(Mt.pattern){case"solid":re+=" edge-pattern-solid";break;case"dotted":re+=" edge-pattern-dotted";break;case"dashed":re+=" edge-pattern-dashed"}var oe=Dt.append("path").attr("d",we(ke)).attr("id",Mt.id).attr("class"," "+re+(Mt.classes?" "+Mt.classes:"")).attr("style",Mt.style),ce="";switch(jt().state.arrowMarkerAbsolute&&(ce=(ce=(ce=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),_.info("arrowTypeStart",Mt.arrowTypeStart),_.info("arrowTypeEnd",Mt.arrowTypeEnd),Mt.arrowTypeStart){case"arrow_cross":oe.attr("marker-start","url("+ce+"#"+$t+"-crossStart)");break;case"arrow_point":oe.attr("marker-start","url("+ce+"#"+$t+"-pointStart)");break;case"arrow_barb":oe.attr("marker-start","url("+ce+"#"+$t+"-barbStart)");break;case"arrow_circle":oe.attr("marker-start","url("+ce+"#"+$t+"-circleStart)");break;case"aggregation":oe.attr("marker-start","url("+ce+"#"+$t+"-aggregationStart)");break;case"extension":oe.attr("marker-start","url("+ce+"#"+$t+"-extensionStart)");break;case"composition":oe.attr("marker-start","url("+ce+"#"+$t+"-compositionStart)");break;case"dependency":oe.attr("marker-start","url("+ce+"#"+$t+"-dependencyStart)")}switch(Mt.arrowTypeEnd){case"arrow_cross":oe.attr("marker-end","url("+ce+"#"+$t+"-crossEnd)");break;case"arrow_point":oe.attr("marker-end","url("+ce+"#"+$t+"-pointEnd)");break;case"arrow_barb":oe.attr("marker-end","url("+ce+"#"+$t+"-barbEnd)");break;case"arrow_circle":oe.attr("marker-end","url("+ce+"#"+$t+"-circleEnd)");break;case"aggregation":oe.attr("marker-end","url("+ce+"#"+$t+"-aggregationEnd)");break;case"extension":oe.attr("marker-end","url("+ce+"#"+$t+"-extensionEnd)");break;case"composition":oe.attr("marker-end","url("+ce+"#"+$t+"-compositionEnd)");break;case"dependency":oe.attr("marker-end","url("+ce+"#"+$t+"-dependencyEnd)")}var Ye={};return Se&&(Ye.updatedPath=Re),Ye.originalPath=Mt.points,Ye}(Y,gt,st,Jn,w,y);t1(st,Pt)}),y.nodes().forEach(function(gt){var st=y.node(gt);_.info(gt,st.type,st.diff),st.type==="group"&&(ut=st.diff)}),{elem:N,diff:ut}},vu=function(l,s,y,w,S){Zh(l,y,w,S),va={},zc={},qi={},Uc={},Ma={},Rs={},Jn={},_.warn("Graph at first:",Mi().json.write(s)),vl(s),_.warn("Graph after:",Mi().json.write(s)),cf(l,s,w)};Mo.parser.yy=io;var wl={dividerMargin:10,padding:5,textHeight:10};function xu(l){var s;switch(l){case 0:s="aggregation";break;case 1:s="extension";break;case 2:s="composition";break;case 3:s="dependency";break;default:s="none"}return s}var jc={},ku=[],e1=function(l){return jc[l]===void 0&&(jc[l]={attributes:[]},_.info("Added new entity :",l)),jc[l]};const Oa={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(l,s,y){vi.parseDirective(this,l,s,y)},getConfig:function(){return jt().er},addEntity:e1,addAttributes:function(l,s){var y,w=e1(l);for(y=s.length-1;y>=0;y--)w.attributes.push(s[y]),_.debug("Added attribute ",s[y].attributeName)},getEntities:function(){return jc},addRelationship:function(l,s,y,w){var S={entityA:l,roleA:s,entityB:y,relSpec:w};ku.push(S),_.debug("Added new relationship :",S)},getRelationships:function(){return ku},clear:function(){jc={},ku=[],Hr()},setAccTitle:Cr,getAccTitle:ci,setAccDescription:li,getAccDescription:ii};var lf=h(5890),n1=h.n(lf),Do={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};const Xo=Do;var ai={},r1=function(l){return(l.entityA+l.roleA+l.entityB).replace(/\s/g,"")},i1=0;const a1=function(l){for(var s=Object.keys(l),y=0;y<s.length;y++)ai[s[y]]=l[s[y]]},uf=function(l,s){_.info("Drawing ER diagram"),Oa.clear();var y=n1().parser;y.yy=Oa;var w,S=jt().securityLevel;S==="sandbox"&&(w=(0,E.select)("#i"+s));var M=S==="sandbox"?(0,E.select)(w.nodes()[0].contentDocument.body):(0,E.select)("body");S==="sandbox"&&w.nodes()[0].contentDocument;try{y.parse(l)}catch{_.debug("Parsing failed")}var N,B=M.select("[id='".concat(s,"']"));(function(Xt,Mt){var It;Xt.append("defs").append("marker").attr("id",Do.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",Mt.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),Xt.append("defs").append("marker").attr("id",Do.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",Mt.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(It=Xt.append("defs").append("marker").attr("id",Do.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",Mt.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),It.append("path").attr("stroke",Mt.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(It=Xt.append("defs").append("marker").attr("id",Do.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",Mt.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),It.append("path").attr("stroke",Mt.stroke).attr("fill","none").attr("d","M21,0 L21,18"),Xt.append("defs").append("marker").attr("id",Do.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",Mt.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),Xt.append("defs").append("marker").attr("id",Do.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",Mt.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(It=Xt.append("defs").append("marker").attr("id",Do.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",Mt.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),It.append("path").attr("stroke",Mt.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(It=Xt.append("defs").append("marker").attr("id",Do.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",Mt.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),It.append("path").attr("stroke",Mt.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(B,ai),N=new(Mi()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:ai.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var Y,H,it=function(Xt,Mt,It){var $t;return Object.keys(Mt).forEach(function(ee){var Re=Xt.append("g").attr("id",ee);$t=$t===void 0?ee:$t;var Se="entity-"+ee,se=Re.append("text").attr("class","er entityLabel").attr("id",Se).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+jt().fontFamily+"; font-size: "+ai.fontSize+"px").text(ee),le=function(we,oe,ce){var Ye=ai.entityPadding/3,Ue=ai.entityPadding/3,je=.85*ai.fontSize,qe=oe.node().getBBox(),be=[],Ge=!1,dn=!1,tn=0,an=0,gn=0,Rn=0,rr=qe.height+2*Ye,cr=1;ce.forEach(function(En){En.attributeKeyType!==void 0&&(Ge=!0),En.attributeComment!==void 0&&(dn=!0)}),ce.forEach(function(En){var bn="".concat(oe.node().id,"-attr-").concat(cr),hr=0,ir=we.append("text").attr("class","er entityLabel").attr("id","".concat(bn,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+jt().fontFamily+"; font-size: "+je+"px").text(En.attributeType),fr=we.append("text").attr("class","er entityLabel").attr("id","".concat(bn,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+jt().fontFamily+"; font-size: "+je+"px").text(En.attributeName),Ur={};Ur.tn=ir,Ur.nn=fr;var Ei=ir.node().getBBox(),fi=fr.node().getBBox();if(tn=Math.max(tn,Ei.width),an=Math.max(an,fi.width),hr=Math.max(Ei.height,fi.height),Ge){var qr=we.append("text").attr("class","er entityLabel").attr("id","".concat(bn,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+jt().fontFamily+"; font-size: "+je+"px").text(En.attributeKeyType||"");Ur.kn=qr;var Ri=qr.node().getBBox();gn=Math.max(gn,Ri.width),hr=Math.max(hr,Ri.height)}if(dn){var Sa=we.append("text").attr("class","er entityLabel").attr("id","".concat(bn,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+jt().fontFamily+"; font-size: "+je+"px").text(En.attributeComment||"");Ur.cn=Sa;var mn=Sa.node().getBBox();Rn=Math.max(Rn,mn.width),hr=Math.max(hr,mn.height)}Ur.height=hr,be.push(Ur),rr+=hr+2*Ye,cr+=1});var wn=4;Ge&&(wn+=2),dn&&(wn+=2);var ur=tn+an+gn+Rn,Er={width:Math.max(ai.minEntityWidth,Math.max(qe.width+2*ai.entityPadding,ur+Ue*wn)),height:ce.length>0?rr:Math.max(ai.minEntityHeight,qe.height+2*ai.entityPadding)};if(ce.length>0){var Ir=Math.max(0,(Er.width-ur-Ue*wn)/(wn/2));oe.attr("transform","translate("+Er.width/2+","+(Ye+qe.height/2)+")");var Tr=qe.height+2*Ye,oi="attributeBoxOdd";be.forEach(function(En){var bn=Tr+Ye+En.height/2;En.tn.attr("transform","translate("+Ue+","+bn+")");var hr=we.insert("rect","#"+En.tn.node().id).attr("class","er ".concat(oi)).attr("fill",ai.fill).attr("fill-opacity","100%").attr("stroke",ai.stroke).attr("x",0).attr("y",Tr).attr("width",tn+2*Ue+Ir).attr("height",En.height+2*Ye),ir=parseFloat(hr.attr("x"))+parseFloat(hr.attr("width"));En.nn.attr("transform","translate("+(ir+Ue)+","+bn+")");var fr=we.insert("rect","#"+En.nn.node().id).attr("class","er ".concat(oi)).attr("fill",ai.fill).attr("fill-opacity","100%").attr("stroke",ai.stroke).attr("x",ir).attr("y",Tr).attr("width",an+2*Ue+Ir).attr("height",En.height+2*Ye),Ur=parseFloat(fr.attr("x"))+parseFloat(fr.attr("width"));if(Ge){En.kn.attr("transform","translate("+(Ur+Ue)+","+bn+")");var Ei=we.insert("rect","#"+En.kn.node().id).attr("class","er ".concat(oi)).attr("fill",ai.fill).attr("fill-opacity","100%").attr("stroke",ai.stroke).attr("x",Ur).attr("y",Tr).attr("width",gn+2*Ue+Ir).attr("height",En.height+2*Ye);Ur=parseFloat(Ei.attr("x"))+parseFloat(Ei.attr("width"))}dn&&(En.cn.attr("transform","translate("+(Ur+Ue)+","+bn+")"),we.insert("rect","#"+En.cn.node().id).attr("class","er ".concat(oi)).attr("fill",ai.fill).attr("fill-opacity","100%").attr("stroke",ai.stroke).attr("x",Ur).attr("y",Tr).attr("width",Rn+2*Ue+Ir).attr("height",En.height+2*Ye)),Tr+=En.height+2*Ye,oi=oi=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else Er.height=Math.max(ai.minEntityHeight,rr),oe.attr("transform","translate("+Er.width/2+","+Er.height/2+")");return Er}(Re,se,Mt[ee].attributes),Oe=le.width,ke=le.height,re=Re.insert("rect","#"+Se).attr("class","er entityBox").attr("fill",ai.fill).attr("fill-opacity","100%").attr("stroke",ai.stroke).attr("x",0).attr("y",0).attr("width",Oe).attr("height",ke).node().getBBox();It.setNode(ee,{width:re.width,height:re.height,shape:"rect",id:ee})}),$t}(B,Oa.getEntities(),N),ut=function(Xt,Mt){return Xt.forEach(function(It){Mt.setEdge(It.entityA,It.entityB,{relationship:It},r1(It))}),Xt}(Oa.getRelationships(),N);Zo().layout(N),Y=B,(H=N).nodes().forEach(function(Xt){Xt!==void 0&&H.node(Xt)!==void 0&&Y.select("#"+Xt).attr("transform","translate("+(H.node(Xt).x-H.node(Xt).width/2)+","+(H.node(Xt).y-H.node(Xt).height/2)+" )")}),ut.forEach(function(Xt){(function(Mt,It,$t,ee){i1++;var Re=$t.edge(It.entityA,It.entityB,r1(It)),Se=(0,E.line)().x(function(oe){return oe.x}).y(function(oe){return oe.y}).curve(E.curveBasis),se=Mt.insert("path","#"+ee).attr("class","er relationshipLine").attr("d",Se(Re.points)).attr("stroke",ai.stroke).attr("fill","none");It.relSpec.relType===Oa.Identification.NON_IDENTIFYING&&se.attr("stroke-dasharray","8,8");var le="";switch(ai.arrowMarkerAbsolute&&(le=(le=(le=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),It.relSpec.cardA){case Oa.Cardinality.ZERO_OR_ONE:se.attr("marker-end","url("+le+"#"+Xo.ZERO_OR_ONE_END+")");break;case Oa.Cardinality.ZERO_OR_MORE:se.attr("marker-end","url("+le+"#"+Xo.ZERO_OR_MORE_END+")");break;case Oa.Cardinality.ONE_OR_MORE:se.attr("marker-end","url("+le+"#"+Xo.ONE_OR_MORE_END+")");break;case Oa.Cardinality.ONLY_ONE:se.attr("marker-end","url("+le+"#"+Xo.ONLY_ONE_END+")")}switch(It.relSpec.cardB){case Oa.Cardinality.ZERO_OR_ONE:se.attr("marker-start","url("+le+"#"+Xo.ZERO_OR_ONE_START+")");break;case Oa.Cardinality.ZERO_OR_MORE:se.attr("marker-start","url("+le+"#"+Xo.ZERO_OR_MORE_START+")");break;case Oa.Cardinality.ONE_OR_MORE:se.attr("marker-start","url("+le+"#"+Xo.ONE_OR_MORE_START+")");break;case Oa.Cardinality.ONLY_ONE:se.attr("marker-start","url("+le+"#"+Xo.ONLY_ONE_START+")")}var Oe=se.node().getTotalLength(),ke=se.node().getPointAtLength(.5*Oe),re="rel"+i1,we=Mt.append("text").attr("class","er relationshipLabel").attr("id",re).attr("x",ke.x).attr("y",ke.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+jt().fontFamily+"; font-size: "+ai.fontSize+"px").text(It.roleA).node().getBBox();Mt.insert("rect","#"+re).attr("class","er relationshipLabelBox").attr("x",ke.x-we.width/2).attr("y",ke.y-we.height/2).attr("width",we.width).attr("height",we.height).attr("fill","white").attr("fill-opacity","85%")})(B,Xt,N,it)});var gt=ai.diagramPadding,st=B.node().getBBox(),Pt=st.width+2*gt,Dt=st.height+2*gt;Si(B,Dt,Pt,ai.useMaxWidth),B.attr("viewBox","".concat(st.x-gt," ").concat(st.y-gt," ").concat(Pt," ").concat(Dt)),Zi(y.yy,B,s)};function wu(l){return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},wu(l)}function Eu(l,s){(s==null||s>l.length)&&(s=l.length);for(var y=0,w=new Array(s);y<s;y++)w[y]=l[y];return w}var Bo,El,o1="flowchart-",s1=0,Tu=jt(),Ci={},ms=[],Ps=[],Wi=[],$c={},Tl={},oo=0,Su=!0,Sl=[],Us=function(l){return ae.sanitizeText(l,Tu)},Al=function(l){for(var s=Object.keys(Ci),y=0;y<s.length;y++)if(Ci[s[y]].id===l)return Ci[s[y]].domId;return l},hf=function(l,s,y,w){var S={start:l,end:s,type:void 0,text:""};(w=y.text)!==void 0&&(S.text=Us(w.trim()),S.text[0]==='"'&&S.text[S.text.length-1]==='"'&&(S.text=S.text.substring(1,S.text.length-1))),y!==void 0&&(S.type=y.type,S.stroke=y.stroke,S.length=y.length),ms.push(S)},Au=function(l,s){l.split(",").forEach(function(y){var w=y;Ci[w]!==void 0&&Ci[w].classes.push(s),$c[w]!==void 0&&$c[w].classes.push(s)})},c1=function(l){var s=(0,E.select)(".mermaidTooltip");(s._groups||s)[0][0]===null&&(s=(0,E.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,E.select)(l).select("svg").selectAll("g.node").on("mouseover",function(){var y=(0,E.select)(this);if(y.attr("title")!==null){var w=this.getBoundingClientRect();s.transition().duration(200).style("opacity",".9"),s.text(y.attr("title")).style("left",window.scrollX+w.left+(w.right-w.left)/2+"px").style("top",window.scrollY+w.top-14+document.body.scrollTop+"px"),y.classed("hover",!0)}}).on("mouseout",function(){s.transition().duration(500).style("opacity",0),(0,E.select)(this).classed("hover",!1)})};Sl.push(c1);var Cu=function(l){for(var s=0;s<Wi.length;s++)if(Wi[s].id===l)return s;return-1},Nu=-1,l1=[],Iu=function l(s,y){var w=Wi[y].nodes;if(!((Nu+=1)>2e3)){if(l1[Nu]=y,Wi[y].id===s)return{result:!0,count:0};for(var S=0,M=1;S<w.length;){var N=Cu(w[S]);if(N>=0){var B=l(s,N);if(B.result)return{result:!0,count:M+B.count};M+=B.count}S+=1}return{result:!1,count:M}}},Lu=function(l,s){var y=!1;return l.forEach(function(w){w.nodes.indexOf(s)>=0&&(y=!0)}),y},Cl=function(l,s){var y=[];return l.nodes.forEach(function(w,S){Lu(s,w)||y.push(l.nodes[S])}),{nodes:y}};const lr={parseDirective:function(l,s,y){vi.parseDirective(this,l,s,y)},defaultConfig:function(){return $i.flowchart},setAccTitle:Cr,getAccTitle:ci,getAccDescription:ii,setAccDescription:li,addVertex:function(l,s,y,w,S,M){var N,B=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},Y=l;Y!==void 0&&Y.trim().length!==0&&(Ci[Y]===void 0&&(Ci[Y]={id:Y,domId:o1+Y+"-"+s1,styles:[],classes:[]}),s1++,s!==void 0?(Tu=jt(),(N=Us(s.trim()))[0]==='"'&&N[N.length-1]==='"'&&(N=N.substring(1,N.length-1)),Ci[Y].text=N):Ci[Y].text===void 0&&(Ci[Y].text=l),y!==void 0&&(Ci[Y].type=y),w!=null&&w.forEach(function(H){Ci[Y].styles.push(H)}),S!=null&&S.forEach(function(H){Ci[Y].classes.push(H)}),M!==void 0&&(Ci[Y].dir=M),Ci[Y].props=B)},lookUpDomId:Al,addLink:function(l,s,y,w){var S,M;for(S=0;S<l.length;S++)for(M=0;M<s.length;M++)hf(l[S],s[M],y,w)},updateLinkInterpolate:function(l,s){l.forEach(function(y){y==="default"?ms.defaultInterpolate=s:ms[y].interpolate=s})},updateLink:function(l,s){l.forEach(function(y){y==="default"?ms.defaultStyle=s:(Bn.isSubstringInArray("fill",s)===-1&&s.push("fill:none"),ms[y].style=s)})},addClass:function(l,s){Ps[l]===void 0&&(Ps[l]={id:l,styles:[],textStyles:[]}),s!=null&&s.forEach(function(y){if(y.match("color")){var w=y.replace("fill","bgFill").replace("color","fill");Ps[l].textStyles.push(w)}Ps[l].styles.push(y)})},setDirection:function(l){(Bo=l).match(/.*</)&&(Bo="RL"),Bo.match(/.*\^/)&&(Bo="BT"),Bo.match(/.*>/)&&(Bo="LR"),Bo.match(/.*v/)&&(Bo="TB")},setClass:Au,setTooltip:function(l,s){l.split(",").forEach(function(y){s!==void 0&&(Tl[El==="gen-1"?Al(y):y]=Us(s))})},getTooltip:function(l){return Tl[l]},setClickEvent:function(l,s,y){l.split(",").forEach(function(w){(function(S,M,N){var B=Al(S);if(jt().securityLevel==="loose"&&M!==void 0){var Y=[];if(typeof N=="string"){Y=N.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var H=0;H<Y.length;H++){var it=Y[H].trim();it.charAt(0)==='"'&&it.charAt(it.length-1)==='"'&&(it=it.substr(1,it.length-2)),Y[H]=it}}Y.length===0&&Y.push(S),Ci[S]!==void 0&&(Ci[S].haveCallback=!0,Sl.push(function(){var ut=document.querySelector('[id="'.concat(B,'"]'));ut!==null&&ut.addEventListener("click",function(){var gt;Bn.runFunc.apply(Bn,[M].concat(function(st){if(Array.isArray(st))return Eu(st)}(gt=Y)||function(st){if(typeof Symbol<"u"&&st[Symbol.iterator]!=null||st["@@iterator"]!=null)return Array.from(st)}(gt)||function(st,Pt){if(st){if(typeof st=="string")return Eu(st,Pt);var Dt=Object.prototype.toString.call(st).slice(8,-1);return Dt==="Object"&&st.constructor&&(Dt=st.constructor.name),Dt==="Map"||Dt==="Set"?Array.from(st):Dt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Dt)?Eu(st,Pt):void 0}}(gt)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)}))}})(w,s,y)}),Au(l,"clickable")},setLink:function(l,s,y){l.split(",").forEach(function(w){Ci[w]!==void 0&&(Ci[w].link=Bn.formatUrl(s,Tu),Ci[w].linkTarget=y)}),Au(l,"clickable")},bindFunctions:function(l){Sl.forEach(function(s){s(l)})},getDirection:function(){return Bo.trim()},getVertices:function(){return Ci},getEdges:function(){return ms},getClasses:function(){return Ps},clear:function(l){Ci={},Ps={},ms=[],(Sl=[]).push(c1),Wi=[],$c={},oo=0,Tl=[],Su=!0,El=l||"gen-1",Hr()},setGen:function(l){El=l||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(l,s,y){var w=l.trim(),S=y;l===y&&y.match(/\s/)&&(w=void 0);var M=[],N=function(ut){var gt,st={boolean:{},number:{},string:{}},Pt=[],Dt=ut.filter(function(Xt){var Mt=wu(Xt);return Xt.stmt&&Xt.stmt==="dir"?(gt=Xt.value,!1):Xt.trim()!==""&&(Mt in st?!st[Mt].hasOwnProperty(Xt)&&(st[Mt][Xt]=!0):!(Pt.indexOf(Xt)>=0)&&Pt.push(Xt))});return{nodeList:Dt,dir:gt}}(M.concat.apply(M,s)),B=N.nodeList,Y=N.dir;if(M=B,El==="gen-1"){_.warn("LOOKING UP");for(var H=0;H<M.length;H++)M[H]=Al(M[H])}w=w||"subGraph"+oo,S=Us(S=S||""),oo+=1;var it={id:w,nodes:M,title:S.trim(),classes:[],dir:Y};return _.info("Adding",it.id,it.nodes,it.dir),it.nodes=Cl(it,Wi).nodes,Wi.push(it),$c[w]=it,w},getDepthFirstPos:function(l){return l1[l]},indexNodes:function(){Nu=-1,Wi.length>0&&Iu("none",Wi.length-1)},getSubGraphs:function(){return Wi},destructLink:function(l,s){var y,w=function(S){var M=S.trim(),N=M.slice(0,-1),B="arrow_open";switch(M.slice(-1)){case"x":B="arrow_cross",M[0]==="x"&&(B="double_"+B,N=N.slice(1));break;case">":B="arrow_point",M[0]==="<"&&(B="double_"+B,N=N.slice(1));break;case"o":B="arrow_circle",M[0]==="o"&&(B="double_"+B,N=N.slice(1))}var Y="normal",H=N.length-1;N[0]==="="&&(Y="thick");var it=function(ut,gt){for(var st=gt.length,Pt=0,Dt=0;Dt<st;++Dt)gt[Dt]==="."&&++Pt;return Pt}(0,N);return it&&(Y="dotted",H=it),{type:B,stroke:Y,length:H}}(l);if(s){if(y=function(S){var M=S.trim(),N="arrow_open";switch(M[0]){case"<":N="arrow_point",M=M.slice(1);break;case"x":N="arrow_cross",M=M.slice(1);break;case"o":N="arrow_circle",M=M.slice(1)}var B="normal";return M.indexOf("=")!==-1&&(B="thick"),M.indexOf(".")!==-1&&(B="dotted"),{type:N,stroke:B}}(s),y.stroke!==w.stroke)return{type:"INVALID",stroke:"INVALID"};if(y.type==="arrow_open")y.type=w.type;else{if(y.type!==w.type)return{type:"INVALID",stroke:"INVALID"};y.type="double_"+y.type}return y.type==="double_arrow"&&(y.type="double_arrow_point"),y.length=w.length,y}return w},lex:{firstGraph:function(){return!!Su&&(Su=!1,!0)}},exists:Lu,makeUniq:Cl};var zs=h(3602),Hc=h.n(zs),la=h(4949),Jr=h.n(la),u1=h(8284),Nl=h.n(u1);function Il(l,s,y){var w=.9*(s.width+s.height),S=[{x:w/2,y:0},{x:w,y:-w/2},{x:w/2,y:-w},{x:0,y:-w/2}],M=Fo(l,w,w,S);return y.intersect=function(N){return Jr().intersect.polygon(y,S,N)},M}function Ll(l,s,y){var w=s.height,S=w/4,M=s.width+2*S,N=[{x:S,y:0},{x:M-S,y:0},{x:M,y:-w/2},{x:M-S,y:-w},{x:S,y:-w},{x:0,y:-w/2}],B=Fo(l,M,w,N);return y.intersect=function(Y){return Jr().intersect.polygon(y,N,Y)},B}function ff(l,s,y){var w=s.width,S=s.height,M=[{x:-S/2,y:0},{x:w,y:0},{x:w,y:-S},{x:-S/2,y:-S},{x:0,y:-S/2}],N=Fo(l,w,S,M);return y.intersect=function(B){return Jr().intersect.polygon(y,M,B)},N}function Ro(l,s,y){var w=s.width,S=s.height,M=[{x:-2*S/6,y:0},{x:w-S/6,y:0},{x:w+2*S/6,y:-S},{x:S/6,y:-S}],N=Fo(l,w,S,M);return y.intersect=function(B){return Jr().intersect.polygon(y,M,B)},N}function h1(l,s,y){var w=s.width,S=s.height,M=[{x:2*S/6,y:0},{x:w+S/6,y:0},{x:w-2*S/6,y:-S},{x:-S/6,y:-S}],N=Fo(l,w,S,M);return y.intersect=function(B){return Jr().intersect.polygon(y,M,B)},N}function f1(l,s,y){var w=s.width,S=s.height,M=[{x:-2*S/6,y:0},{x:w+2*S/6,y:0},{x:w-S/6,y:-S},{x:S/6,y:-S}],N=Fo(l,w,S,M);return y.intersect=function(B){return Jr().intersect.polygon(y,M,B)},N}function df(l,s,y){var w=s.width,S=s.height,M=[{x:S/6,y:0},{x:w-S/6,y:0},{x:w+2*S/6,y:-S},{x:-2*S/6,y:-S}],N=Fo(l,w,S,M);return y.intersect=function(B){return Jr().intersect.polygon(y,M,B)},N}function pf(l,s,y){var w=s.width,S=s.height,M=[{x:0,y:0},{x:w+S/2,y:0},{x:w,y:-S/2},{x:w+S/2,y:-S},{x:0,y:-S}],N=Fo(l,w,S,M);return y.intersect=function(B){return Jr().intersect.polygon(y,M,B)},N}function qc(l,s,y){var w=s.height,S=s.width+w/4,M=l.insert("rect",":first-child").attr("rx",w/2).attr("ry",w/2).attr("x",-S/2).attr("y",-w/2).attr("width",S).attr("height",w);return y.intersect=function(N){return Jr().intersect.rect(y,N)},M}function gf(l,s,y){var w=s.width,S=s.height,M=[{x:0,y:0},{x:w,y:0},{x:w,y:-S},{x:0,y:-S},{x:0,y:0},{x:-8,y:0},{x:w+8,y:0},{x:w+8,y:-S},{x:-8,y:-S},{x:-8,y:0}],N=Fo(l,w,S,M);return y.intersect=function(B){return Jr().intersect.polygon(y,M,B)},N}function yf(l,s,y){var w=s.width,S=w/2,M=S/(2.5+w/50),N=s.height+M,B="M 0,"+M+" a "+S+","+M+" 0,0,0 "+w+" 0 a "+S+","+M+" 0,0,0 "+-w+" 0 l 0,"+N+" a "+S+","+M+" 0,0,0 "+w+" 0 l 0,"+-N,Y=l.attr("label-offset-y",M).insert("path",":first-child").attr("d",B).attr("transform","translate("+-w/2+","+-(N/2+M)+")");return y.intersect=function(H){var it=Jr().intersect.rect(y,H),ut=it.x-y.x;if(S!=0&&(Math.abs(ut)<y.width/2||Math.abs(ut)==y.width/2&&Math.abs(it.y-y.y)>y.height/2-M)){var gt=M*M*(1-ut*ut/(S*S));gt!=0&&(gt=Math.sqrt(gt)),gt=M-gt,H.y-y.y>0&&(gt=-gt),it.y+=gt}return it},Y}function Fo(l,s,y,w){return l.insert("polygon",":first-child").attr("points",w.map(function(S){return S.x+","+S.y}).join(" ")).attr("transform","translate("+-s/2+","+y/2+")")}const Mu=function(l){l.shapes().question=Il,l.shapes().hexagon=Ll,l.shapes().stadium=qc,l.shapes().subroutine=gf,l.shapes().cylinder=yf,l.shapes().rect_left_inv_arrow=ff,l.shapes().lean_right=Ro,l.shapes().lean_left=h1,l.shapes().trapezoid=f1,l.shapes().inv_trapezoid=df,l.shapes().rect_right_inv_arrow=pf};var d1={};const p1=function(l){for(var s=Object.keys(l),y=0;y<s.length;y++)d1[s[y]]=l[s[y]]},mf=function(l,s){_.info("Drawing flowchart"),lr.clear(),lr.setGen("gen-1");var y=Hc().parser;y.yy=lr;var w,S=jt().securityLevel;S==="sandbox"&&(w=(0,E.select)("#i"+s));var M=S==="sandbox"?(0,E.select)(w.nodes()[0].contentDocument.body):(0,E.select)("body"),N=S==="sandbox"?w.nodes()[0].contentDocument:document;y.parse(l);var B=lr.getDirection();B===void 0&&(B="TD");for(var Y,H=jt().flowchart,it=H.nodeSpacing||50,ut=H.rankSpacing||50,gt=new(Mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:B,nodesep:it,ranksep:ut,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),st=lr.getSubGraphs(),Pt=st.length-1;Pt>=0;Pt--)Y=st[Pt],lr.addVertex(Y.id,Y.title,"group",void 0,Y.classes);var Dt=lr.getVertices();_.warn("Get vertices",Dt);var Xt=lr.getEdges(),Mt=0;for(Mt=st.length-1;Mt>=0;Mt--){Y=st[Mt],(0,E.selectAll)("cluster").append("text");for(var It=0;It<Y.nodes.length;It++)_.warn("Setting subgraph",Y.nodes[It],lr.lookUpDomId(Y.nodes[It]),lr.lookUpDomId(Y.id)),gt.setParent(lr.lookUpDomId(Y.nodes[It]),lr.lookUpDomId(Y.id))}(function(qe,be,Ge,dn,tn){jt().securityLevel;var an=dn?dn.select('[id="'.concat(Ge,'"]')):(0,E.select)('[id="'.concat(Ge,'"]')),gn=tn||document;Object.keys(qe).forEach(function(Rn){var rr=qe[Rn],cr="default";rr.classes.length>0&&(cr=rr.classes.join(" "));var wn,ur=gi(rr.styles),Er=rr.text!==void 0?rr.text:rr.id;if(Xe(jt().flowchart.htmlLabels)){var Ir={label:Er.replace(/fa[lrsb]?:fa-[\w-]+/g,function(fr){return"<i class='".concat(fr.replace(":"," "),"'></i>")})};(wn=Nl()(an,Ir).node()).parentNode.removeChild(wn)}else{var Tr=gn.createElementNS("http://www.w3.org/2000/svg","text");Tr.setAttribute("style",ur.labelStyle.replace("color:","fill:"));for(var oi=Er.split(ae.lineBreakRegex),En=0;En<oi.length;En++){var bn=gn.createElementNS("http://www.w3.org/2000/svg","tspan");bn.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),bn.setAttribute("dy","1em"),bn.setAttribute("x","1"),bn.textContent=oi[En],Tr.appendChild(bn)}wn=Tr}var hr=0,ir="";switch(rr.type){case"round":hr=5,ir="rect";break;case"square":case"group":default:ir="rect";break;case"diamond":ir="question";break;case"hexagon":ir="hexagon";break;case"odd":case"odd_right":ir="rect_left_inv_arrow";break;case"lean_right":ir="lean_right";break;case"lean_left":ir="lean_left";break;case"trapezoid":ir="trapezoid";break;case"inv_trapezoid":ir="inv_trapezoid";break;case"circle":ir="circle";break;case"ellipse":ir="ellipse";break;case"stadium":ir="stadium";break;case"subroutine":ir="subroutine";break;case"cylinder":ir="cylinder"}_.warn("Adding node",rr.id,rr.domId),be.setNode(lr.lookUpDomId(rr.id),{labelType:"svg",labelStyle:ur.labelStyle,shape:ir,label:wn,rx:hr,ry:hr,class:cr,style:ur.style,id:lr.lookUpDomId(rr.id)})})})(Dt,gt,s,M,N),function(qe,be){var Ge,dn,tn=0;if(qe.defaultStyle!==void 0){var an=gi(qe.defaultStyle);Ge=an.style,dn=an.labelStyle}qe.forEach(function(gn){tn++;var Rn="L-"+gn.start+"-"+gn.end,rr="LS-"+gn.start,cr="LE-"+gn.end,wn={};gn.type==="arrow_open"?wn.arrowhead="none":wn.arrowhead="normal";var ur="",Er="";if(gn.style!==void 0){var Ir=gi(gn.style);ur=Ir.style,Er=Ir.labelStyle}else switch(gn.stroke){case"normal":ur="fill:none",Ge!==void 0&&(ur=Ge),dn!==void 0&&(Er=dn);break;case"dotted":ur="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":ur=" stroke-width: 3.5px;fill:none"}wn.style=ur,wn.labelStyle=Er,gn.interpolate!==void 0?wn.curve=sr(gn.interpolate,E.curveLinear):qe.defaultInterpolate!==void 0?wn.curve=sr(qe.defaultInterpolate,E.curveLinear):wn.curve=sr(d1.curve,E.curveLinear),gn.text===void 0?gn.style!==void 0&&(wn.arrowheadStyle="fill: #333"):(wn.arrowheadStyle="fill: #333",wn.labelpos="c",Xe(jt().flowchart.htmlLabels)?(wn.labelType="html",wn.label='<span id="L-'.concat(Rn,'" class="edgeLabel L-').concat(rr,"' L-").concat(cr,'" style="').concat(wn.labelStyle,'">').concat(gn.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Tr){return"<i class='".concat(Tr.replace(":"," "),"'></i>")}),"</span>")):(wn.labelType="text",wn.label=gn.text.replace(ae.lineBreakRegex,`
|
|
`),gn.style===void 0&&(wn.style=wn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),wn.labelStyle=wn.labelStyle.replace("color:","fill:"))),wn.id=Rn,wn.class=rr+" "+cr,wn.minlen=gn.length||1,be.setEdge(lr.lookUpDomId(gn.start),lr.lookUpDomId(gn.end),wn,tn)})}(Xt,gt);var $t=new(Jr()).render;Mu($t),$t.arrows().none=function(qe,be,Ge,dn){var tn=qe.append("marker").attr("id",be).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");Jr().util.applyStyle(tn,Ge[dn+"Style"])},$t.arrows().normal=function(qe,be){qe.append("marker").attr("id",be).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};var ee=M.select('[id="'.concat(s,'"]'));ee.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),Zi(y.yy,ee,s);var Re=M.select("#"+s+" g");for($t(Re,gt),Re.selectAll("g.node").attr("title",function(){return lr.getTooltip(this.id)}),lr.indexNodes("subGraph"+Mt),Mt=0;Mt<st.length;Mt++)if((Y=st[Mt]).title!=="undefined"){var Se=N.querySelectorAll("#"+s+' [id="'+lr.lookUpDomId(Y.id)+'"] rect'),se=N.querySelectorAll("#"+s+' [id="'+lr.lookUpDomId(Y.id)+'"]'),le=Se[0].x.baseVal.value,Oe=Se[0].y.baseVal.value,ke=Se[0].width.baseVal.value,re=(0,E.select)(se[0]).select(".label");re.attr("transform","translate(".concat(le+ke/2,", ").concat(Oe+14,")")),re.attr("id",s+"Text");for(var we=0;we<Y.classes.length;we++)se[0].classList.add(Y.classes[we])}Xe(H.htmlLabels);for(var oe=N.querySelectorAll('[id="'+s+'"] .edgeLabel .label'),ce=0;ce<oe.length;ce++){var Ye=oe[ce],Ue=Ye.getBBox(),je=N.createElementNS("http://www.w3.org/2000/svg","rect");je.setAttribute("rx",0),je.setAttribute("ry",0),je.setAttribute("width",Ue.width),je.setAttribute("height",Ue.height),Ye.insertBefore(je,Ye.firstChild)}ma(gt,ee,H.diagramPadding,H.useMaxWidth),Object.keys(Dt).forEach(function(qe){var be=Dt[qe];if(be.link){var Ge=M.select("#"+s+' [id="'+lr.lookUpDomId(qe)+'"]');if(Ge){var dn=N.createElementNS("http://www.w3.org/2000/svg","a");dn.setAttributeNS("http://www.w3.org/2000/svg","class",be.classes.join(" ")),dn.setAttributeNS("http://www.w3.org/2000/svg","href",be.link),dn.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),S==="sandbox"?dn.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):be.linkTarget&&dn.setAttributeNS("http://www.w3.org/2000/svg","target",be.linkTarget);var tn=Ge.insert(function(){return dn},":first-child"),an=Ge.select(".label-container");an&&tn.append(function(){return an.node()});var gn=Ge.select(".label");gn&&tn.append(function(){return gn.node()})}}})};var g1={};const y1=function(l){for(var s=Object.keys(l),y=0;y<s.length;y++)g1[s[y]]=l[s[y]]},Ou=function(l,s){_.info("Drawing flowchart"),lr.clear(),lr.setGen("gen-2");var y=Hc().parser;y.yy=lr,y.parse(l);var w=lr.getDirection();w===void 0&&(w="TD");var S,M=jt().flowchart,N=M.nodeSpacing||50,B=M.rankSpacing||50,Y=jt().securityLevel;Y==="sandbox"&&(S=(0,E.select)("#i"+s));var H,it=Y==="sandbox"?(0,E.select)(S.nodes()[0].contentDocument.body):(0,E.select)("body"),ut=Y==="sandbox"?S.nodes()[0].contentDocument:document,gt=new(Mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:w,nodesep:N,ranksep:B,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),st=lr.getSubGraphs();_.info("Subgraphs - ",st);for(var Pt=st.length-1;Pt>=0;Pt--)H=st[Pt],_.info("Subgraph - ",H),lr.addVertex(H.id,H.title,"group",void 0,H.classes,H.dir);var Dt=lr.getVertices(),Xt=lr.getEdges();_.info(Xt);var Mt=0;for(Mt=st.length-1;Mt>=0;Mt--){H=st[Mt],(0,E.selectAll)("cluster").append("text");for(var It=0;It<H.nodes.length;It++)_.info("Setting up subgraphs",H.nodes[It],H.id),gt.setParent(H.nodes[It],H.id)}(function(ke,re,we,oe,ce){var Ye=oe.select('[id="'.concat(we,'"]'));Object.keys(ke).forEach(function(Ue){var je=ke[Ue],qe="default";je.classes.length>0&&(qe=je.classes.join(" "));var be,Ge=gi(je.styles),dn=je.text!==void 0?je.text:je.id;if(Xe(jt().flowchart.htmlLabels)){var tn={label:dn.replace(/fa[lrsb]?:fa-[\w-]+/g,function(ur){return"<i class='".concat(ur.replace(":"," "),"'></i>")})};(be=Nl()(Ye,tn).node()).parentNode.removeChild(be)}else{var an=ce.createElementNS("http://www.w3.org/2000/svg","text");an.setAttribute("style",Ge.labelStyle.replace("color:","fill:"));for(var gn=dn.split(ae.lineBreakRegex),Rn=0;Rn<gn.length;Rn++){var rr=ce.createElementNS("http://www.w3.org/2000/svg","tspan");rr.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),rr.setAttribute("dy","1em"),rr.setAttribute("x","1"),rr.textContent=gn[Rn],an.appendChild(rr)}be=an}var cr=0,wn="";switch(je.type){case"round":cr=5,wn="rect";break;case"square":case"group":default:wn="rect";break;case"diamond":wn="question";break;case"hexagon":wn="hexagon";break;case"odd":case"odd_right":wn="rect_left_inv_arrow";break;case"lean_right":wn="lean_right";break;case"lean_left":wn="lean_left";break;case"trapezoid":wn="trapezoid";break;case"inv_trapezoid":wn="inv_trapezoid";break;case"circle":wn="circle";break;case"ellipse":wn="ellipse";break;case"stadium":wn="stadium";break;case"subroutine":wn="subroutine";break;case"cylinder":wn="cylinder";break;case"doublecircle":wn="doublecircle"}re.setNode(je.id,{labelStyle:Ge.labelStyle,shape:wn,labelText:dn,rx:cr,ry:cr,class:qe,style:Ge.style,id:je.id,link:je.link,linkTarget:je.linkTarget,tooltip:lr.getTooltip(je.id)||"",domId:lr.lookUpDomId(je.id),haveCallback:je.haveCallback,width:je.type==="group"?500:void 0,dir:je.dir,type:je.type,props:je.props,padding:jt().flowchart.padding}),_.info("setNode",{labelStyle:Ge.labelStyle,shape:wn,labelText:dn,rx:cr,ry:cr,class:qe,style:Ge.style,id:je.id,domId:lr.lookUpDomId(je.id),width:je.type==="group"?500:void 0,type:je.type,dir:je.dir,props:je.props,padding:jt().flowchart.padding})})})(Dt,gt,s,it,ut),function(ke,re){_.info("abc78 edges = ",ke);var we,oe,ce=0,Ye={};if(ke.defaultStyle!==void 0){var Ue=gi(ke.defaultStyle);we=Ue.style,oe=Ue.labelStyle}ke.forEach(function(je){ce++;var qe="L-"+je.start+"-"+je.end;Ye[qe]===void 0?(Ye[qe]=0,_.info("abc78 new entry",qe,Ye[qe])):(Ye[qe]++,_.info("abc78 new entry",qe,Ye[qe]));var be=qe+"-"+Ye[qe];_.info("abc78 new link id to be used is",qe,be,Ye[qe]);var Ge="LS-"+je.start,dn="LE-"+je.end,tn={style:"",labelStyle:""};switch(tn.minlen=je.length||1,je.type==="arrow_open"?tn.arrowhead="none":tn.arrowhead="normal",tn.arrowTypeStart="arrow_open",tn.arrowTypeEnd="arrow_open",je.type){case"double_arrow_cross":tn.arrowTypeStart="arrow_cross";case"arrow_cross":tn.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":tn.arrowTypeStart="arrow_point";case"arrow_point":tn.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":tn.arrowTypeStart="arrow_circle";case"arrow_circle":tn.arrowTypeEnd="arrow_circle"}var an="",gn="";switch(je.stroke){case"normal":an="fill:none;",we!==void 0&&(an=we),oe!==void 0&&(gn=oe),tn.thickness="normal",tn.pattern="solid";break;case"dotted":tn.thickness="normal",tn.pattern="dotted",tn.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":tn.thickness="thick",tn.pattern="solid",tn.style="stroke-width: 3.5px;fill:none;"}if(je.style!==void 0){var Rn=gi(je.style);an=Rn.style,gn=Rn.labelStyle}tn.style=tn.style+=an,tn.labelStyle=tn.labelStyle+=gn,je.interpolate!==void 0?tn.curve=sr(je.interpolate,E.curveLinear):ke.defaultInterpolate!==void 0?tn.curve=sr(ke.defaultInterpolate,E.curveLinear):tn.curve=sr(g1.curve,E.curveLinear),je.text===void 0?je.style!==void 0&&(tn.arrowheadStyle="fill: #333"):(tn.arrowheadStyle="fill: #333",tn.labelpos="c"),tn.labelType="text",tn.label=je.text.replace(ae.lineBreakRegex,`
|
|
`),je.style===void 0&&(tn.style=tn.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),tn.labelStyle=tn.labelStyle.replace("color:","fill:"),tn.id=be,tn.classes="flowchart-link "+Ge+" "+dn,re.setEdge(je.start,je.end,tn,ce)})}(Xt,gt);var $t=it.select('[id="'.concat(s,'"]'));$t.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),Zi(y.yy,$t,s);var ee=it.select("#"+s+" g");if(vu(ee,gt,["point","circle","cross"],"flowchart",s),ma(gt,$t,M.diagramPadding,M.useMaxWidth),lr.indexNodes("subGraph"+Mt),!M.htmlLabels)for(var Re=ut.querySelectorAll('[id="'+s+'"] .edgeLabel .label'),Se=0;Se<Re.length;Se++){var se=Re[Se],le=se.getBBox(),Oe=ut.createElementNS("http://www.w3.org/2000/svg","rect");Oe.setAttribute("rx",0),Oe.setAttribute("ry",0),Oe.setAttribute("width",le.width),Oe.setAttribute("height",le.height),se.insertBefore(Oe,se.firstChild)}Object.keys(Dt).forEach(function(ke){var re=Dt[ke];if(re.link){var we=(0,E.select)("#"+s+' [id="'+ke+'"]');if(we){var oe=ut.createElementNS("http://www.w3.org/2000/svg","a");oe.setAttributeNS("http://www.w3.org/2000/svg","class",re.classes.join(" ")),oe.setAttributeNS("http://www.w3.org/2000/svg","href",re.link),oe.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),Y==="sandbox"?oe.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):re.linkTarget&&oe.setAttributeNS("http://www.w3.org/2000/svg","target",re.linkTarget);var ce=we.insert(function(){return oe},":first-child"),Ye=we.select(".label-container");Ye&&ce.append(function(){return Ye.node()});var Ue=we.select(".label");Ue&&ce.append(function(){return Ue.node()})}}})};function Ml(l,s){(s==null||s>l.length)&&(s=l.length);for(var y=0,w=new Array(s);y<s;y++)w[y]=l[y];return w}var Ko,Po,so="",Ys="",Ol="",js=[],_s=[],Wc={},Du=[],Bu=[],$s="",m1=["active","done","crit","milestone"],Hs=[],bs=!1,Gc=!1,Uo=0,_1=function(l,s,y,w){return!(w.indexOf(l.format(s.trim()))>=0)&&(l.isoWeekday()>=6&&y.indexOf("weekends")>=0||y.indexOf(l.format("dddd").toLowerCase())>=0||y.indexOf(l.format(s.trim()))>=0)},Dl=function(l,s,y,w){if(y.length&&!l.manualEndTime){var S=d()(l.startTime,s,!0);S.add(1,"d");var M=d()(l.endTime,s,!0),N=b1(S,M,s,y,w);l.endTime=M.toDate(),l.renderEndTime=N}},b1=function(l,s,y,w,S){for(var M=!1,N=null;l<=s;)M||(N=s.toDate()),(M=_1(l,y,w,S))&&s.add(1,"d"),l.add(1,"d");return N},zo=function(l,s,y){y=y.trim();var w=/^after\s+([\d\w- ]+)/.exec(y.trim());if(w!==null){var S=null;if(w[1].split(" ").forEach(function(B){var Y=Ws(B);Y!==void 0&&(S?Y.endTime>S.endTime&&(S=Y):S=Y)}),S)return S.endTime;var M=new Date;return M.setHours(0,0,0,0),M}var N=d()(y,s.trim(),!0);return N.isValid()?N.toDate():(_.debug("Invalid date:"+y),_.debug("With date format:"+s.trim()),new Date)},v1=function(l,s){if(l!==null)switch(l[2]){case"s":s.add(l[1],"seconds");break;case"m":s.add(l[1],"minutes");break;case"h":s.add(l[1],"hours");break;case"d":s.add(l[1],"days");break;case"w":s.add(l[1],"weeks")}return s.toDate()},Jo=function(l,s,y,w){w=w||!1,y=y.trim();var S=d()(y,s.trim(),!0);return S.isValid()?(w&&S.add(1,"d"),S.toDate()):v1(/^([\d]+)([wdhms])/.exec(y.trim()),d()(l))},x1=0,qs=function(l){return l===void 0?"task"+(x1+=1):l},Oi=[],k1={},Ws=function(l){var s=k1[l];return Oi[s]},w1=function(){for(var l=function(w){var S=Oi[w],M="";switch(Oi[w].raw.startTime.type){case"prevTaskEnd":var N=Ws(S.prevTaskId);S.startTime=N.endTime;break;case"getStartDate":(M=zo(0,so,Oi[w].raw.startTime.startData))&&(Oi[w].startTime=M)}return Oi[w].startTime&&(Oi[w].endTime=Jo(Oi[w].startTime,so,Oi[w].raw.endTime.data,bs),Oi[w].endTime&&(Oi[w].processed=!0,Oi[w].manualEndTime=d()(Oi[w].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Dl(Oi[w],so,_s,js))),Oi[w].processed},s=!0,y=0;y<Oi.length;y++)l(y),s=s&&Oi[y].processed;return s},E1=function(l,s){l.split(",").forEach(function(y){var w=Ws(y);w!==void 0&&w.classes.push(s)})},Ru=function(l,s){Hs.push(function(){var y=document.querySelector('[id="'.concat(l,'"]'));y!==null&&y.addEventListener("click",function(){s()})}),Hs.push(function(){var y=document.querySelector('[id="'.concat(l,'-text"]'));y!==null&&y.addEventListener("click",function(){s()})})};const Gs={parseDirective:function(l,s,y){vi.parseDirective(this,l,s,y)},getConfig:function(){return jt().gantt},clear:function(){Du=[],Bu=[],$s="",Hs=[],x1=0,Ko=void 0,Po=void 0,Oi=[],so="",Ys="",Ol="",js=[],_s=[],bs=!1,Gc=!1,Uo=0,Wc={},Hr()},setDateFormat:function(l){so=l},getDateFormat:function(){return so},enableInclusiveEndDates:function(){bs=!0},endDatesAreInclusive:function(){return bs},enableTopAxis:function(){Gc=!0},topAxisEnabled:function(){return Gc},setAxisFormat:function(l){Ys=l},getAxisFormat:function(){return Ys},setTodayMarker:function(l){Ol=l},getTodayMarker:function(){return Ol},setAccTitle:Cr,getAccTitle:ci,setDiagramTitle:Za,getDiagramTitle:Io,setAccDescription:li,getAccDescription:ii,addSection:function(l){$s=l,Du.push(l)},getSections:function(){return Du},getTasks:function(){for(var l=w1(),s=0;!l&&s<10;)l=w1(),s++;return Bu=Oi},addTask:function(l,s){var y={section:$s,type:$s,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:s},task:l,classes:[]},w=function(M,N){var B=(N.substr(0,1)===":"?N.substr(1,N.length):N).split(","),Y={};T1(B,Y,m1);for(var H=0;H<B.length;H++)B[H]=B[H].trim();switch(B.length){case 1:Y.id=qs(),Y.startTime={type:"prevTaskEnd",id:M},Y.endTime={data:B[0]};break;case 2:Y.id=qs(),Y.startTime={type:"getStartDate",startData:B[0]},Y.endTime={data:B[1]};break;case 3:Y.id=qs(B[0]),Y.startTime={type:"getStartDate",startData:B[1]},Y.endTime={data:B[2]}}return Y}(Po,s);y.raw.startTime=w.startTime,y.raw.endTime=w.endTime,y.id=w.id,y.prevTaskId=Po,y.active=w.active,y.done=w.done,y.crit=w.crit,y.milestone=w.milestone,y.order=Uo,Uo++;var S=Oi.push(y);Po=y.id,k1[y.id]=S-1},findTaskById:Ws,addTaskOrg:function(l,s){var y={section:$s,type:$s,description:l,task:l,classes:[]},w=function(S,M){var N=(M.substr(0,1)===":"?M.substr(1,M.length):M).split(","),B={};T1(N,B,m1);for(var Y=0;Y<N.length;Y++)N[Y]=N[Y].trim();var H="";switch(N.length){case 1:B.id=qs(),B.startTime=S.endTime,H=N[0];break;case 2:B.id=qs(),B.startTime=zo(0,so,N[0]),H=N[1];break;case 3:B.id=qs(N[0]),B.startTime=zo(0,so,N[1]),H=N[2]}return H&&(B.endTime=Jo(B.startTime,so,H,bs),B.manualEndTime=d()(H,"YYYY-MM-DD",!0).isValid(),Dl(B,so,_s,js)),B}(Ko,s);y.startTime=w.startTime,y.endTime=w.endTime,y.id=w.id,y.active=w.active,y.done=w.done,y.crit=w.crit,y.milestone=w.milestone,Ko=y,Bu.push(y)},setIncludes:function(l){js=l.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return js},setExcludes:function(l){_s=l.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return _s},setClickEvent:function(l,s,y){l.split(",").forEach(function(w){(function(S,M,N){if(jt().securityLevel==="loose"&&M!==void 0){var B=[];if(typeof N=="string"){B=N.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var Y=0;Y<B.length;Y++){var H=B[Y].trim();H.charAt(0)==='"'&&H.charAt(H.length-1)==='"'&&(H=H.substr(1,H.length-2)),B[Y]=H}}B.length===0&&B.push(S),Ws(S)!==void 0&&Ru(S,function(){var it;Bn.runFunc.apply(Bn,[M].concat(function(ut){if(Array.isArray(ut))return Ml(ut)}(it=B)||function(ut){if(typeof Symbol<"u"&&ut[Symbol.iterator]!=null||ut["@@iterator"]!=null)return Array.from(ut)}(it)||function(ut,gt){if(ut){if(typeof ut=="string")return Ml(ut,gt);var st=Object.prototype.toString.call(ut).slice(8,-1);return st==="Object"&&ut.constructor&&(st=ut.constructor.name),st==="Map"||st==="Set"?Array.from(ut):st==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(st)?Ml(ut,gt):void 0}}(it)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))})}})(w,s,y)}),E1(l,"clickable")},setLink:function(l,s){var y=s;jt().securityLevel!=="loose"&&(y=(0,At.N)(s)),l.split(",").forEach(function(w){Ws(w)!==void 0&&(Ru(w,function(){window.open(y,"_self")}),Wc[w]=y)}),E1(l,"clickable")},getLinks:function(){return Wc},bindFunctions:function(l){Hs.forEach(function(s){s(l)})},durationToDate:v1,isInvalidDate:_1};function T1(l,s,y){for(var w=!0;w;)w=!1,y.forEach(function(S){var M=new RegExp("^\\s*"+S+"\\s*$");l[0].match(M)&&(s[S]=!0,l.shift(1),w=!0)})}var Yo,Da=h(9959),S1=h.n(Da);Da.parser.yy=Gs;const Fu=function(){_.debug("Something is calling, setConf, remove the call")};function Pu(l,s){var y=Object.keys(l);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(l);s&&(w=w.filter(function(S){return Object.getOwnPropertyDescriptor(l,S).enumerable})),y.push.apply(y,w)}return y}function Bl(l){for(var s=1;s<arguments.length;s++){var y=arguments[s]!=null?arguments[s]:{};s%2?Pu(Object(y),!0).forEach(function(w){A1(l,w,y[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(y)):Pu(Object(y)).forEach(function(w){Object.defineProperty(l,w,Object.getOwnPropertyDescriptor(y,w))})}return l}function A1(l,s,y){return s in l?Object.defineProperty(l,s,{value:y,enumerable:!0,configurable:!0,writable:!0}):l[s]=y,l}var Vc=jt().gitGraph.mainBranchName,_f=jt().gitGraph.mainBranchOrder,Di={},ui=null,Vs={};Vs[Vc]={name:Vc,order:_f};var Bi={};Bi[Vc]=ui;var Gi=Vc,Rl="LR",Qo=0;function Uu(){return Ya({length:7})}var Zc={},co=function(l){if(l=ae.sanitizeText(l,jt()),Bi[l]===void 0){var s=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+l+'")');throw s.hash={text:"checkout "+l,token:"checkout "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+l+'"']},s}var y=Bi[Gi=l];ui=Di[y]};function zu(l,s,y){var w=l.indexOf(s);w===-1?l.push(y):l.splice(w,1,y)}function Yu(l){var s=l.reduce(function(it,ut){return it.seq>ut.seq?it:ut},l[0]),y="";l.forEach(function(it){y+=it===s?" *":" |"});var w,S,M,N=[y,s.id,s.seq];for(var B in Bi)Bi[B]===s.id&&N.push(B);if(_.debug(N.join(" ")),s.parents&&s.parents.length==2){var Y=Di[s.parents[0]];zu(l,s,Y),l.push(Di[s.parents[1]])}else{if(s.parents.length==0)return;var H=Di[s.parents];zu(l,s,H)}w=l,S=function(it){return it.id},M=Object.create(null),Yu(l=w.reduce(function(it,ut){var gt=S(ut);return M[gt]||(M[gt]=!0,it.push(ut)),it},[]))}var Fl=function(){var l=Object.keys(Di).map(function(s){return Di[s]});return l.forEach(function(s){_.debug(s.id)}),l.sort(function(s,y){return s.seq-y.seq}),l},vs={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};const jo={parseDirective:function(l,s,y){vi.parseDirective(this,l,s,y)},getConfig:function(){return jt().gitGraph},setDirection:function(l){Rl=l},setOptions:function(l){_.debug("options str",l),l=(l=l&&l.trim())||"{}";try{Zc=JSON.parse(l)}catch(s){_.error("error while parsing gitGraph options",s.message)}},getOptions:function(){return Zc},commit:function(l,s,y,w){_.debug("Entering commit:",l,s,y,w),s=ae.sanitizeText(s,jt()),l=ae.sanitizeText(l,jt()),w=ae.sanitizeText(w,jt());var S={id:s||Qo+"-"+Uu(),message:l,seq:Qo++,type:y||vs.NORMAL,tag:w||"",parents:ui==null?[]:[ui.id],branch:Gi};ui=S,Di[S.id]=S,Bi[Gi]=S.id,_.debug("in pushCommit "+S.id)},branch:function(l,s){if(l=ae.sanitizeText(l,jt()),Bi[l]!==void 0){var y=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 '+l+'")');throw y.hash={text:"branch "+l,token:"branch "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+l+'"']},y}Bi[l]=ui!=null?ui.id:null,Vs[l]={name:l,order:s?parseInt(s,10):null},co(l),_.debug("in createBranch")},merge:function(l,s){l=ae.sanitizeText(l,jt());var y=Di[Bi[Gi]],w=Di[Bi[l]];if(Gi===l){var S=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw S.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},S}if(y===void 0||!y){var M=new Error('Incorrect usage of "merge". Current branch ('+Gi+")has no commits");throw M.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},M}if(Bi[l]===void 0){var N=new Error('Incorrect usage of "merge". Branch to be merged ('+l+") does not exist");throw N.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+l]},N}if(w===void 0||!w){var B=new Error('Incorrect usage of "merge". Branch to be merged ('+l+") has no commits");throw B.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},B}if(y===w){var Y=new Error('Incorrect usage of "merge". Both branches have same head');throw Y.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},Y}var H={id:Qo+"-"+Uu(),message:"merged branch "+l+" into "+Gi,seq:Qo++,parents:[ui==null?null:ui.id,Bi[l]],branch:Gi,type:vs.MERGE,tag:s||""};ui=H,Di[H.id]=H,Bi[Gi]=H.id,_.debug(Bi),_.debug("in mergeBranch")},cherryPick:function(l,s){if(l=ae.sanitizeText(l,jt()),s=ae.sanitizeText(s,jt()),!l||Di[l]===void 0){var y=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw y.hash={text:"cherryPick "+l+" "+s,token:"cherryPick "+l+" "+s,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}var w=Di[l],S=w.branch;if(w.type===vs.MERGE){var M=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw M.hash={text:"cherryPick "+l+" "+s,token:"cherryPick "+l+" "+s,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},M}if(!s||Di[s]===void 0){if(S===Gi){var N=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw N.hash={text:"cherryPick "+l+" "+s,token:"cherryPick "+l+" "+s,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},N}var B=Di[Bi[Gi]];if(B===void 0||!B){var Y=new Error('Incorrect usage of "cherry-pick". Current branch ('+Gi+")has no commits");throw Y.hash={text:"cherryPick "+l+" "+s,token:"cherryPick "+l+" "+s,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},Y}var H={id:Qo+"-"+Uu(),message:"cherry-picked "+w+" into "+Gi,seq:Qo++,parents:[ui==null?null:ui.id,w.id],branch:Gi,type:vs.CHERRY_PICK,tag:"cherry-pick:"+w.id};ui=H,Di[H.id]=H,Bi[Gi]=H.id,_.debug(Bi),_.debug("in cheeryPick")}},checkout:co,prettyPrint:function(){_.debug(Di),Yu([Fl()[0]])},clear:function(){Di={},ui=null;var l=jt().gitGraph.mainBranchName,s=jt().gitGraph.mainBranchOrder;(Bi={})[l]=null,(Vs={})[l]={name:l,order:s},Gi=l,Qo=0,Hr()},getBranchesAsObjArray:function(){return Object.values(Vs).map(function(l,s){return l.order!==null?l:Bl(Bl({},l),{},{order:parseFloat("0.".concat(s),10)})}).sort(function(l,s){return l.order-s.order}).map(function(l){return{name:l.name}})},getBranches:function(){return Bi},getCommits:function(){return Di},getCommitsArray:Fl,getCurrentBranch:function(){return Gi},getDirection:function(){return Rl},getHead:function(){return ui},setAccTitle:Cr,getAccTitle:ci,getAccDescription:ii,setAccDescription:li,commitType:vs};var Xc=h(2553),ju=h.n(Xc),Zs={},xa={},Xs={},ka=[],xo=0,$u=function(l,s,y){var w=jt().gitGraph,S=l.append("g").attr("class","commit-bullets"),M=l.append("g").attr("class","commit-labels"),N=0;Object.keys(s).sort(function(B,Y){return s[B].seq-s[Y].seq}).forEach(function(B,Y){var H=s[B],it=xa[H.branch].pos,ut=N+10;if(y){var gt;switch(H.type){case 0:default:gt="commit-normal";break;case 1:gt="commit-reverse";break;case 2:gt="commit-highlight";break;case 3:gt="commit-merge";break;case 4:gt="commit-cherry-pick"}if(H.type===2){var st=S.append("rect");st.attr("x",ut-10),st.attr("y",it-10),st.attr("height",20),st.attr("width",20),st.attr("class","commit "+H.id+" commit-highlight"+xa[H.branch].index+" "+gt+"-outer"),S.append("rect").attr("x",ut-6).attr("y",it-6).attr("height",12).attr("width",12).attr("class","commit "+H.id+" commit"+xa[H.branch].index+" "+gt+"-inner")}else if(H.type===4)S.append("circle").attr("cx",ut).attr("cy",it).attr("r",10).attr("class","commit "+H.id+" "+gt),S.append("circle").attr("cx",ut-3).attr("cy",it+2).attr("r",2.75).attr("fill","#fff").attr("class","commit "+H.id+" "+gt),S.append("circle").attr("cx",ut+3).attr("cy",it+2).attr("r",2.75).attr("fill","#fff").attr("class","commit "+H.id+" "+gt),S.append("line").attr("x1",ut+3).attr("y1",it+1).attr("x2",ut).attr("y2",it-5).attr("stroke","#fff").attr("class","commit "+H.id+" "+gt),S.append("line").attr("x1",ut-3).attr("y1",it+1).attr("x2",ut).attr("y2",it-5).attr("stroke","#fff").attr("class","commit "+H.id+" "+gt);else{var Pt=S.append("circle");if(Pt.attr("cx",ut),Pt.attr("cy",it),Pt.attr("r",H.type===3?9:10),Pt.attr("class","commit "+H.id+" commit"+xa[H.branch].index),H.type===3){var Dt=S.append("circle");Dt.attr("cx",ut),Dt.attr("cy",it),Dt.attr("r",6),Dt.attr("class","commit "+gt+" "+H.id+" commit"+xa[H.branch].index)}H.type===1&&S.append("path").attr("d","M ".concat(ut-5,",").concat(it-5,"L").concat(ut+5,",").concat(it+5,"M").concat(ut-5,",").concat(it+5,"L").concat(ut+5,",").concat(it-5)).attr("class","commit "+gt+" "+H.id+" commit"+xa[H.branch].index)}}if(Xs[H.id]={x:N+10,y:it},y){if(H.type!==4&&H.type!==3&&w.showCommitLabel){var Xt=M.append("g"),Mt=Xt.insert("rect").attr("class","commit-label-bkg"),It=Xt.append("text").attr("x",N).attr("y",it+25).attr("class","commit-label").text(H.id),$t=It.node().getBBox();if(Mt.attr("x",N+10-$t.width/2-2).attr("y",it+13.5).attr("width",$t.width+4).attr("height",$t.height+4),It.attr("x",N+10-$t.width/2),w.rotateCommitLabel){var ee=-7.5-($t.width+10)/25*9.5,Re=10+$t.width/25*8.5;Xt.attr("transform","translate("+ee+", "+Re+") rotate(-45, "+N+", "+it+")")}}if(H.tag){var Se=M.insert("polygon"),se=M.append("circle"),le=M.append("text").attr("y",it-16).attr("class","tag-label").text(H.tag),Oe=le.node().getBBox();le.attr("x",N+10-Oe.width/2);var ke=Oe.height/2,re=it-19.2;Se.attr("class","tag-label-bkg").attr("points",`
|
|
`.concat(N-Oe.width/2-2,",").concat(re+2,`
|
|
`).concat(N-Oe.width/2-2,",").concat(re-2,`
|
|
`).concat(N+10-Oe.width/2-4,",").concat(re-ke-2,`
|
|
`).concat(N+10+Oe.width/2+4,",").concat(re-ke-2,`
|
|
`).concat(N+10+Oe.width/2+4,",").concat(re+ke+2,`
|
|
`).concat(N+10-Oe.width/2-4,",").concat(re+ke+2)),se.attr("cx",N-Oe.width/2+2).attr("cy",re).attr("r",1.5).attr("class","tag-hole")}}(N+=50)>xo&&(xo=N)})},C1=function l(s,y,w){var S=w||0,M=s+Math.abs(s-y)/2;if(S>5)return M;for(var N=!0,B=0;B<ka.length;B++)Math.abs(ka[B]-M)<10&&(N=!1);return N?(ka.push(M),M):l(s,y-Math.abs(s-y)/5,S)};const ts=function(l,s,y){xa={},Xs={},Zs={},xo=0,ka=[];var w=jt(),S=jt().gitGraph,M=ju().parser;M.yy=jo,M.yy.clear(),_.debug("in gitgraph renderer",l+`
|
|
`,"id:",s,y),M.parse(l+`
|
|
`),jo.getDirection(),Zs=jo.getCommits();var N=jo.getBranchesAsObjArray(),B=0;N.forEach(function(Pt,Dt){xa[Pt.name]={pos:B,index:Dt},B+=50+(S.rotateCommitLabel?40:0)});var Y=(0,E.select)('[id="'.concat(s,'"]'));Zi(M.yy,Y,s),$u(Y,Zs,!1),S.showBranches&&function(Pt,Dt){var Xt=jt().gitGraph,Mt=Pt.append("g");Dt.forEach(function(It,$t){var ee=$t>=8?$t-8:$t,Re=xa[It.name].pos,Se=Mt.append("line");Se.attr("x1",0),Se.attr("y1",Re),Se.attr("x2",xo),Se.attr("y2",Re),Se.attr("class","branch branch"+ee),ka.push(Re);var se=function(re){var we=document.createElementNS("http://www.w3.org/2000/svg","text"),oe=[];oe=typeof re=="string"?re.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(re)?re:[];for(var ce=0;ce<oe.length;ce++){var Ye=document.createElementNS("http://www.w3.org/2000/svg","tspan");Ye.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Ye.setAttribute("dy","1em"),Ye.setAttribute("x","0"),Ye.setAttribute("class","row"),Ye.textContent=oe[ce].trim(),we.appendChild(Ye)}return we}(It.name),le=Mt.insert("rect"),Oe=Mt.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+ee);Oe.node().appendChild(se);var ke=se.getBBox();le.attr("class","branchLabelBkg label"+ee).attr("rx",4).attr("ry",4).attr("x",-ke.width-4-(Xt.rotateCommitLabel===!0?30:0)).attr("y",-ke.height/2+8).attr("width",ke.width+18).attr("height",ke.height+4),Oe.attr("transform","translate("+(-ke.width-14-(Xt.rotateCommitLabel===!0?30:0))+", "+(Re-ke.height/2-1)+")"),le.attr("transform","translate(-19, "+(Re-ke.height/2)+")")})}(Y,N),function(Pt,Dt){var Xt=Pt.append("g").attr("class","commit-arrows");Object.keys(Dt).forEach(function(Mt,It){var $t=Dt[Mt];$t.parents&&$t.parents.length>0&&$t.parents.forEach(function(ee){(function(Re,Se,se,le){var Oe=jt(),ke=Xs[Se.id],re=Xs[se.id],we=function(Ge,dn,tn){return Xs[dn.id],Xs[Ge.id],Object.keys(tn).filter(function(an){return tn[an].branch===dn.branch&&tn[an].seq>Ge.seq&&tn[an].seq<dn.seq}).length>0}(Se,se,le);Oe.arrowMarkerAbsolute&&(window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)");var oe,ce="",Ye="",Ue=0,je=0,qe=xa[se.branch].index;if(we){ce="A 10 10, 0, 0, 0,",Ye="A 10 10, 0, 0, 1,",Ue=10,je=10,qe=xa[se.branch].index;var be=ke.y<re.y?C1(ke.y,re.y):C1(re.y,ke.y);oe=ke.y<re.y?"M ".concat(ke.x," ").concat(ke.y," L ").concat(ke.x," ").concat(be-Ue," ").concat(ce," ").concat(ke.x+je," ").concat(be," L ").concat(re.x-Ue," ").concat(be," ").concat(Ye," ").concat(re.x," ").concat(be+je," L ").concat(re.x," ").concat(re.y):"M ".concat(ke.x," ").concat(ke.y," L ").concat(ke.x," ").concat(be+Ue," ").concat(Ye," ").concat(ke.x+je," ").concat(be," L ").concat(re.x-Ue," ").concat(be," ").concat(ce," ").concat(re.x," ").concat(be-je," L ").concat(re.x," ").concat(re.y)}else ke.y<re.y&&(ce="A 20 20, 0, 0, 0,",Ue=20,je=20,qe=xa[se.branch].index,oe="M ".concat(ke.x," ").concat(ke.y," L ").concat(ke.x," ").concat(re.y-Ue," ").concat(ce," ").concat(ke.x+je," ").concat(re.y," L ").concat(re.x," ").concat(re.y)),ke.y>re.y&&(ce="A 20 20, 0, 0, 0,",Ue=20,je=20,qe=xa[Se.branch].index,oe="M ".concat(ke.x," ").concat(ke.y," L ").concat(re.x-Ue," ").concat(ke.y," ").concat(ce," ").concat(re.x," ").concat(ke.y-je," L ").concat(re.x," ").concat(re.y)),ke.y===re.y&&(qe=xa[Se.branch].index,oe="M ".concat(ke.x," ").concat(ke.y," L ").concat(ke.x," ").concat(re.y-Ue," ").concat(ce," ").concat(ke.x+je," ").concat(re.y," L ").concat(re.x," ").concat(re.y));Re.append("path").attr("d",oe).attr("class","arrow arrow"+qe)})(Xt,Dt[ee],$t,Dt)})})}(Y,Zs),$u(Y,Zs,!0);var H=S.diagramPadding,it=Y.node().getBBox(),ut=it.width+2*H,gt=it.height+2*H;Si(Y,gt,ut,w.useMaxWidth);var st="".concat(it.x-H-(S.showBranches&&S.rotateCommitLabel===!0?30:0)," ").concat(it.y-H," ").concat(ut," ").concat(gt);Y.attr("viewBox",st)};var N1="",I1=!1;const L1={setMessage:function(l){_.debug("Setting message to: "+l),N1=l},getMessage:function(){return N1},setInfo:function(l){I1=l},getInfo:function(){return I1}};var bf=h(6765),ko=h.n(bf);const Hu=function(l){Object.keys(l).forEach(function(s){l[s]})};var qu=h(7062),Pl=h.n(qu),Ul={},Wu=!1;const Gu={parseDirective:function(l,s,y){vi.parseDirective(this,l,s,y)},getConfig:function(){return jt().pie},addSection:function(l,s){l=ae.sanitizeText(l,jt()),Ul[l]===void 0&&(Ul[l]=s,_.debug("Added new section :",l))},getSections:function(){return Ul},cleanupValue:function(l){return l.substring(0,1)===":"&&(l=l.substring(1).trim()),Number(l.trim())},clear:function(){Ul={},Wu=!1,Hr()},setAccTitle:Cr,getAccTitle:ci,setDiagramTitle:Za,getDiagramTitle:Io,setShowData:function(l){Wu=l},getShowData:function(){return Wu},getAccDescription:ii,setAccDescription:li};var es,bi=jt();const Vu=function(l,s){try{bi=jt();var y=Pl().parser;y.yy=Gu,_.debug(`Rendering info diagram
|
|
`+l);var w,S=jt().securityLevel;S==="sandbox"&&(w=(0,E.select)("#i"+s));var M=S==="sandbox"?(0,E.select)(w.nodes()[0].contentDocument.body):(0,E.select)("body"),N=S==="sandbox"?w.nodes()[0].contentDocument:document;y.yy.clear(),y.parse(l),_.debug("Parsed info diagram");var B=N.getElementById(s);(es=B.parentElement.offsetWidth)===void 0&&(es=1200),bi.useWidth!==void 0&&(es=bi.useWidth),bi.pie.useWidth!==void 0&&(es=bi.pie.useWidth);var Y=M.select("#"+s);Si(Y,450,es,bi.pie.useMaxWidth),Zi(y.yy,Y,s),B.setAttribute("viewBox","0 0 "+es+" 450");var H=Math.min(es,450)/2-40,it=Y.append("g").attr("transform","translate("+es/2+",225)"),ut=Gu.getSections(),gt=0;Object.keys(ut).forEach(function($t){gt+=ut[$t]});var st=bi.themeVariables,Pt=[st.pie1,st.pie2,st.pie3,st.pie4,st.pie5,st.pie6,st.pie7,st.pie8,st.pie9,st.pie10,st.pie11,st.pie12],Dt=(0,E.scaleOrdinal)().range(Pt),Xt=(0,E.pie)().value(function($t){return $t[1]})(Object.entries(ut)),Mt=(0,E.arc)().innerRadius(0).outerRadius(H);it.selectAll("mySlices").data(Xt).enter().append("path").attr("d",Mt).attr("fill",function($t){return Dt($t.data[0])}).attr("class","pieCircle"),it.selectAll("mySlices").data(Xt).enter().append("text").text(function($t){return($t.data[1]/gt*100).toFixed(0)+"%"}).attr("transform",function($t){return"translate("+Mt.centroid($t)+")"}).style("text-anchor","middle").attr("class","slice"),it.append("text").text(y.yy.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var It=it.selectAll(".legend").data(Dt.domain()).enter().append("g").attr("class","legend").attr("transform",function($t,ee){return"translate(216,"+(22*ee-22*Dt.domain().length/2)+")"});It.append("rect").attr("width",18).attr("height",18).style("fill",Dt).style("stroke",Dt),It.data(Xt).append("text").attr("x",22).attr("y",14).text(function($t){return y.yy.getShowData()||bi.showData||bi.pie.showData?$t.data[0]+" ["+$t.data[1]+"]":$t.data[0]})}catch($t){_.error("Error while rendering info diagram"),_.error($t)}};var $o=h(3176),Ks=h.n($o),zl=[],wa={},Js={},Ni={},ns={};const xs={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(l,s,y){vi.parseDirective(this,l,s,y)},getConfig:function(){return jt().req},addRequirement:function(l,s){return Js[l]===void 0&&(Js[l]={name:l,type:s,id:wa.id,text:wa.text,risk:wa.risk,verifyMethod:wa.verifyMethod}),wa={},Js[l]},getRequirements:function(){return Js},setNewReqId:function(l){wa!==void 0&&(wa.id=l)},setNewReqText:function(l){wa!==void 0&&(wa.text=l)},setNewReqRisk:function(l){wa!==void 0&&(wa.risk=l)},setNewReqVerifyMethod:function(l){wa!==void 0&&(wa.verifyMethod=l)},setAccTitle:Cr,getAccTitle:ci,setAccDescription:li,getAccDescription:ii,addElement:function(l){return ns[l]===void 0&&(ns[l]={name:l,type:Ni.type,docRef:Ni.docRef},_.info("Added new requirement: ",l)),Ni={},ns[l]},getElements:function(){return ns},setNewElementType:function(l){Ni!==void 0&&(Ni.type=l)},setNewElementDocRef:function(l){Ni!==void 0&&(Ni.docRef=l)},addRelationship:function(l,s,y){zl.push({type:l,src:s,dst:y})},getRelationships:function(){return zl},clear:function(){zl=[],wa={},Js={},Ni={},ns={},Hr()}};var Qs={CONTAINS:"contains",ARROW:"arrow"};const Yl=Qs;var Ii={},M1=0,O1=function(l,s){return l.insert("rect","#"+s).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Ii.rect_min_width+"px").attr("height",Ii.rect_min_height+"px")},ks=function(l,s,y){var w=Ii.rect_min_width/2,S=l.append("text").attr("class","req reqLabel reqTitle").attr("id",s).attr("x",w).attr("y",Ii.rect_padding).attr("dominant-baseline","hanging"),M=0;y.forEach(function(B){M==0?S.append("tspan").attr("text-anchor","middle").attr("x",Ii.rect_min_width/2).attr("dy",0).text(B):S.append("tspan").attr("text-anchor","middle").attr("x",Ii.rect_min_width/2).attr("dy",.75*Ii.line_height).text(B),M++});var N=1.5*Ii.rect_padding+M*Ii.line_height*.75;return l.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Ii.rect_min_width).attr("y1",N).attr("y2",N),{titleNode:S,y:N}},tc=function(l,s,y,w){var S=l.append("text").attr("class","req reqLabel").attr("id",s).attr("x",Ii.rect_padding).attr("y",w).attr("dominant-baseline","hanging"),M=0,N=[];return y.forEach(function(B){for(var Y=B.length;Y>30&&M<3;){var H=B.substring(0,30);Y=(B=B.substring(30,B.length)).length,N[N.length]=H,M++}if(M==3){var it=N[N.length-1];N[N.length-1]=it.substring(0,it.length-4)+"..."}else N[N.length]=B;M=0}),N.forEach(function(B){S.append("tspan").attr("x",Ii.rect_padding).attr("dy",Ii.line_height).text(B)}),S},ec=function(l){return l.replace(/\s/g,"").replace(/\./g,"_")};const D1=function(l){if(l!==void 0)for(var s=Object.keys(l),y=0;y<s.length;y++)Ii[s[y]]=l[s[y]]},B1=function(l,s){$o.parser.yy=xs,$o.parser.yy.clear(),$o.parser.parse(l);var y,w=jt().securityLevel;w==="sandbox"&&(y=(0,E.select)("#i"+s));var S=w==="sandbox"?(0,E.select)(y.nodes()[0].contentDocument.body):(0,E.select)("body"),M=(w==="sandbox"&&y.nodes()[0].contentDocument,S.select("[id='".concat(s,"']")));(function(Mt,It){var $t=Mt.append("defs").append("marker").attr("id",Qs.CONTAINS+"_line_ending").attr("refX",0).attr("refY",It.line_height/2).attr("markerWidth",It.line_height).attr("markerHeight",It.line_height).attr("orient","auto").append("g");$t.append("circle").attr("cx",It.line_height/2).attr("cy",It.line_height/2).attr("r",It.line_height/2).attr("fill","none"),$t.append("line").attr("x1",0).attr("x2",It.line_height).attr("y1",It.line_height/2).attr("y2",It.line_height/2).attr("stroke-width",1),$t.append("line").attr("y1",0).attr("y2",It.line_height).attr("x1",It.line_height/2).attr("x2",It.line_height/2).attr("stroke-width",1),Mt.append("defs").append("marker").attr("id",Qs.ARROW+"_line_ending").attr("refX",It.line_height).attr("refY",.5*It.line_height).attr("markerWidth",It.line_height).attr("markerHeight",It.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|
L`.concat(It.line_height,",").concat(It.line_height/2,`
|
|
M`).concat(It.line_height,",").concat(It.line_height/2,`
|
|
L0,`).concat(It.line_height)).attr("stroke-width",1)})(M,Ii);var N,B,Y,H=new(Mi()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Ii.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),it=xs.getRequirements(),ut=xs.getElements(),gt=xs.getRelationships();N=it,B=H,Y=M,Object.keys(N).forEach(function(Mt){var It=N[Mt];Mt=ec(Mt),_.info("Added new requirement: ",Mt);var $t=Y.append("g").attr("id",Mt),ee=O1($t,"req-"+Mt),Re=ks($t,Mt+"_title",["<<".concat(It.type,">>"),"".concat(It.name)]);tc($t,Mt+"_body",["Id: ".concat(It.id),"Text: ".concat(It.text),"Risk: ".concat(It.risk),"Verification: ".concat(It.verifyMethod)],Re.y);var Se=ee.node().getBBox();B.setNode(Mt,{width:Se.width,height:Se.height,shape:"rect",id:Mt})}),function(Mt,It,$t){Object.keys(Mt).forEach(function(ee){var Re=Mt[ee],Se=ec(ee),se=$t.append("g").attr("id",Se),le="element-"+Se,Oe=O1(se,le),ke=ks(se,le+"_title",["<<Element>>","".concat(ee)]);tc(se,le+"_body",["Type: ".concat(Re.type||"Not Specified"),"Doc Ref: ".concat(Re.docRef||"None")],ke.y);var re=Oe.node().getBBox();It.setNode(Se,{width:re.width,height:re.height,shape:"rect",id:Se})})}(ut,H,M),function(Mt,It){Mt.forEach(function($t){var ee=ec($t.src),Re=ec($t.dst);It.setEdge(ee,Re,{relationship:$t})})}(gt,H),Zo().layout(H),function(Mt,It){It.nodes().forEach(function($t){$t!==void 0&&It.node($t)!==void 0&&(Mt.select("#"+$t),Mt.select("#"+$t).attr("transform","translate("+(It.node($t).x-It.node($t).width/2)+","+(It.node($t).y-It.node($t).height/2)+" )"))})}(M,H),gt.forEach(function(Mt){(function(It,$t,ee,Re){var Se=ee.edge(ec($t.src),ec($t.dst)),se=(0,E.line)().x(function(Oe){return Oe.x}).y(function(Oe){return Oe.y}),le=It.insert("path","#"+Re).attr("class","er relationshipLine").attr("d",se(Se.points)).attr("fill","none");$t.type==xs.Relationships.CONTAINS?le.attr("marker-start","url("+ae.getUrl(Ii.arrowMarkerAbsolute)+"#"+$t.type+"_line_ending)"):(le.attr("stroke-dasharray","10,7"),le.attr("marker-end","url("+ae.getUrl(Ii.arrowMarkerAbsolute)+"#"+Yl.ARROW+"_line_ending)")),function(Oe,ke,re,we){var oe=ke.node().getTotalLength(),ce=ke.node().getPointAtLength(.5*oe),Ye="rel"+M1;M1++;var Ue=Oe.append("text").attr("class","req relationshipLabel").attr("id",Ye).attr("x",ce.x).attr("y",ce.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(we).node().getBBox();Oe.insert("rect","#"+Ye).attr("class","req reqLabelBox").attr("x",ce.x-Ue.width/2).attr("y",ce.y-Ue.height/2).attr("width",Ue.width).attr("height",Ue.height).attr("fill","white").attr("fill-opacity","85%")}(It,le,0,"<<".concat($t.type,">>"))})(M,Mt,H,s)});var st=Ii.rect_padding,Pt=M.node().getBBox(),Dt=Pt.width+2*st,Xt=Pt.height+2*st;Si(M,Xt,Dt,Ii.useMaxWidth),M.attr("viewBox","".concat(Pt.x-st," ").concat(Pt.y-st," ").concat(Dt," ").concat(Xt)),Zi($o.parser.yy,M,s)};var ln=h(6876),Zu=h.n(ln),nc=void 0,rs={},ua=[],jl=!1,R1=!1,Xu=function(l,s,y,w){var S=rs[l];S&&s===S.name&&y==null||(y!=null&&y.text!=null||(y={text:s,wrap:null,type:w}),w!=null&&y.text!=null||(y={text:s,wrap:null,type:w}),rs[l]={name:s,description:y.text,wrap:y.wrap===void 0&&rc()||!!y.wrap,prevActor:nc,links:{},properties:{},actorCnt:null,rectData:null,type:w||"participant"},nc&&rs[nc]&&(rs[nc].nextActor=l),nc=l)},Ku=function(l){var s,y=0;for(s=0;s<ua.length;s++)ua[s].type===Kc.ACTIVE_START&&ua[s].from.actor===l&&y++,ua[s].type===Kc.ACTIVE_END&&ua[s].from.actor===l&&y--;return y},Ea=function(l,s){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},w=arguments.length>3?arguments[3]:void 0;if(w===Kc.ACTIVE_END){var S=Ku(l.actor);if(S<1){var M=new Error("Trying to inactivate an inactive participant ("+l.actor+")");throw M.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},M}}return ua.push({from:l,to:s,message:y.text,wrap:y.wrap===void 0&&rc()||!!y.wrap,type:w}),!0},ws=function(l){return rs[l]},rc=function(){return R1},Kc={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},F1=function(l,s,y){y.text,y.wrap===void 0&&rc()||y.wrap;var w=[].concat(l,l);ua.push({from:w[0],to:w[1],message:y.text,wrap:y.wrap===void 0&&rc()||!!y.wrap,type:Kc.NOTE,placement:s})},P1=function(l,s){var y=ws(l);try{var w=ue(s.text,jt());w=(w=w.replace(/&/g,"&")).replace(/=/g,"="),Ju(y,JSON.parse(w))}catch(S){_.error("error while parsing actor link text",S)}};function Ju(l,s){if(l.links==null)l.links=s;else for(var y in s)l.links[y]=s[y]}var Qu=function(l,s){var y=ws(l);try{var w=ue(s.text,jt());$l(y,JSON.parse(w))}catch(S){_.error("error while parsing actor properties text",S)}};function $l(l,s){if(l.properties==null)l.properties=s;else for(var y in s)l.properties[y]=s[y]}var th=function(l,s){var y=ws(l),w=document.getElementById(s.text);try{var S=w.innerHTML,M=JSON.parse(S);M.properties&&$l(y,M.properties),M.links&&Ju(y,M.links)}catch(N){_.error("error while parsing actor details text",N)}};const Hl={addActor:Xu,addMessage:function(l,s,y,w){ua.push({from:l,to:s,message:y.text,wrap:y.wrap===void 0&&rc()||!!y.wrap,answer:w})},addSignal:Ea,addLinks:P1,addDetails:th,addProperties:Qu,autoWrap:rc,setWrap:function(l){R1=l},enableSequenceNumbers:function(){jl=!0},disableSequenceNumbers:function(){jl=!1},showSequenceNumbers:function(){return jl},getMessages:function(){return ua},getActors:function(){return rs},getActor:ws,getActorKeys:function(){return Object.keys(rs)},getActorProperty:function(l,s){if(l!==void 0&&l.properties!==void 0)return l.properties[s]},getAccTitle:ci,getDiagramTitle:Io,setDiagramTitle:Za,parseDirective:function(l,s,y){vi.parseDirective(this,l,s,y)},getConfig:function(){return jt().sequence},clear:function(){rs={},ua=[],jl=!1,Hr()},parseMessage:function(l){var s=l.trim(),y={text:s.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:s.match(/^[:]?wrap:/)!==null||s.match(/^[:]?nowrap:/)===null&&void 0};return _.debug("parseMessage:",y),y},LINETYPE:Kc,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:F1,setAccTitle:Cr,apply:function l(s){if(s instanceof Array)s.forEach(function(y){l(y)});else switch(s.type){case"sequenceIndex":ua.push({from:void 0,to:void 0,message:{start:s.sequenceIndex,step:s.sequenceIndexStep,visible:s.sequenceVisible},wrap:!1,type:s.signalType});break;case"addParticipant":Xu(s.actor,s.actor,s.description,"participant");break;case"addActor":Xu(s.actor,s.actor,s.description,"actor");break;case"activeStart":case"activeEnd":Ea(s.actor,void 0,void 0,s.signalType);break;case"addNote":F1(s.actor,s.placement,s.text);break;case"addLinks":P1(s.actor,s.text);break;case"addALink":(function(y,w){var S=ws(y);try{var M={},N=ue(w.text,jt()),B=N.indexOf("@"),Y=(N=(N=N.replace(/&/g,"&")).replace(/=/g,"=")).slice(0,B-1).trim(),H=N.slice(B+1).trim();M[Y]=H,Ju(S,M)}catch(it){_.error("error while parsing actor link text",it)}})(s.actor,s.text);break;case"addProperties":Qu(s.actor,s.text);break;case"addDetails":th(s.actor,s.text);break;case"addMessage":Ea(s.from,s.to,s.msg,s.signalType);break;case"loopStart":Ea(void 0,void 0,s.loopText,s.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":Ea(void 0,void 0,void 0,s.signalType);break;case"rectStart":Ea(void 0,void 0,s.color,s.signalType);break;case"optStart":Ea(void 0,void 0,s.optText,s.signalType);break;case"altStart":case"else":Ea(void 0,void 0,s.altText,s.signalType);break;case"setAccTitle":Cr(s.text);break;case"parStart":case"and":Ea(void 0,void 0,s.parText,s.signalType);break;case"criticalStart":Ea(void 0,void 0,s.criticalText,s.signalType);break;case"option":Ea(void 0,void 0,s.optionText,s.signalType);break;case"breakStart":Ea(void 0,void 0,s.breakText,s.signalType)}},setAccDescription:li,getAccDescription:ii};var ha=[],Es=function(l,s){var y=l.append("rect");return y.attr("x",s.x),y.attr("y",s.y),y.attr("fill",s.fill),y.attr("stroke",s.stroke),y.attr("width",s.width),y.attr("height",s.height),y.attr("rx",s.rx),y.attr("ry",s.ry),s.class!==void 0&&y.attr("class",s.class),y},is=function(l,s){var y;y=function(){var w=document.querySelectorAll(l);w.length!==0&&(w[0].addEventListener("mouseover",function(){xf("actor"+s+"_popup")}),w[0].addEventListener("mouseout",function(){kf("actor"+s+"_popup")}))},ha.push(y)},U1=function(l,s,y,w){var S=l.append("image");S.attr("x",s),S.attr("y",y);var M=(0,At.N)(w);S.attr("xlink:href",M)},vf=function(l,s,y,w){var S=l.append("use");S.attr("x",s),S.attr("y",y);var M=(0,At.N)(w);S.attr("xlink:href","#"+M)},xf=function(l){var s=document.getElementById(l);s!=null&&(s.style.display="block")},kf=function(l){var s=document.getElementById(l);s!=null&&(s.style.display="none")},Jc=function(l,s){var y=0,w=0,S=s.text.split(ae.lineBreakRegex),M=[],N=0,B=function(){return s.y};if(s.valign!==void 0&&s.textMargin!==void 0&&s.textMargin>0)switch(s.valign){case"top":case"start":B=function(){return Math.round(s.y+s.textMargin)};break;case"middle":case"center":B=function(){return Math.round(s.y+(y+w+s.textMargin)/2)};break;case"bottom":case"end":B=function(){return Math.round(s.y+(y+w+2*s.textMargin)-s.textMargin)}}if(s.anchor!==void 0&&s.textMargin!==void 0&&s.width!==void 0)switch(s.anchor){case"left":case"start":s.x=Math.round(s.x+s.textMargin),s.anchor="start",s.dominantBaseline="text-after-edge",s.alignmentBaseline="middle";break;case"middle":case"center":s.x=Math.round(s.x+s.width/2),s.anchor="middle",s.dominantBaseline="middle",s.alignmentBaseline="middle";break;case"right":case"end":s.x=Math.round(s.x+s.width-s.textMargin),s.anchor="end",s.dominantBaseline="text-before-edge",s.alignmentBaseline="middle"}for(var Y=0;Y<S.length;Y++){var H=S[Y];s.textMargin!==void 0&&s.textMargin===0&&s.fontSize!==void 0&&(N=Y*s.fontSize);var it=l.append("text");if(it.attr("x",s.x),it.attr("y",B()),s.anchor!==void 0&&it.attr("text-anchor",s.anchor).attr("dominant-baseline",s.dominantBaseline).attr("alignment-baseline",s.alignmentBaseline),s.fontFamily!==void 0&&it.style("font-family",s.fontFamily),s.fontSize!==void 0&&it.style("font-size",s.fontSize),s.fontWeight!==void 0&&it.style("font-weight",s.fontWeight),s.fill!==void 0&&it.attr("fill",s.fill),s.class!==void 0&&it.attr("class",s.class),s.dy!==void 0?it.attr("dy",s.dy):N!==0&&it.attr("dy",N),s.tspan){var ut=it.append("tspan");ut.attr("x",s.x),s.fill!==void 0&&ut.attr("fill",s.fill),ut.text(H)}else it.text(H);s.valign!==void 0&&s.textMargin!==void 0&&s.textMargin>0&&(w+=(it._groups||it)[0][0].getBBox().height,y=w),M.push(it)}return M},wf=function(l,s){var y=l.append("polygon");return y.attr("points",function(w,S,M,N,B){return w+","+S+" "+(w+M)+","+S+" "+(w+M)+","+(S+N-7)+" "+(w+M-8.4)+","+(S+N)+" "+w+","+(S+N)}(s.x,s.y,s.width,s.height)),y.attr("class","labelBox"),s.y=s.y+s.height/2,Jc(l,s),y},wo=-1,Ts=function(l,s){l.selectAll&&l.selectAll(".actor-line").attr("class","200").attr("y2",s-55)},z1=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}},Ef=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Y1=function(){function l(S,M,N,B,Y,H,it){w(M.append("text").attr("x",N+Y/2).attr("y",B+H/2+5).style("text-anchor","middle").text(S),it)}function s(S,M,N,B,Y,H,it,ut){for(var gt=ut.actorFontSize,st=ut.actorFontFamily,Pt=ut.actorFontWeight,Dt=S.split(ae.lineBreakRegex),Xt=0;Xt<Dt.length;Xt++){var Mt=Xt*gt-gt*(Dt.length-1)/2,It=M.append("text").attr("x",N+Y/2).attr("y",B).style("text-anchor","middle").style("font-size",gt).style("font-weight",Pt).style("font-family",st);It.append("tspan").attr("x",N+Y/2).attr("dy",Mt).text(Dt[Xt]),It.attr("y",B+H/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),w(It,it)}}function y(S,M,N,B,Y,H,it,ut){var gt=M.append("switch"),st=gt.append("foreignObject").attr("x",N).attr("y",B).attr("width",Y).attr("height",H).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");st.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(S),s(S,gt,N,B,Y,H,it,ut),w(st,it)}function w(S,M){for(var N in M)M.hasOwnProperty(N)&&S.attr(N,M[N])}return function(S){return S.textPlacement==="fo"?y:S.textPlacement==="old"?l:s}}(),Tf=function(){function l(S,M,N,B,Y,H,it){w(M.append("text").attr("x",N).attr("y",B).style("text-anchor","start").text(S),it)}function s(S,M,N,B,Y,H,it,ut){for(var gt=ut.actorFontSize,st=ut.actorFontFamily,Pt=ut.actorFontWeight,Dt=S.split(ae.lineBreakRegex),Xt=0;Xt<Dt.length;Xt++){var Mt=Xt*gt-gt*(Dt.length-1)/2,It=M.append("text").attr("x",N).attr("y",B).style("text-anchor","start").style("font-size",gt).style("font-weight",Pt).style("font-family",st);It.append("tspan").attr("x",N).attr("dy",Mt).text(Dt[Xt]),It.attr("y",B+H/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),w(It,it)}}function y(S,M,N,B,Y,H,it,ut){var gt=M.append("switch"),st=gt.append("foreignObject").attr("x",N).attr("y",B).attr("width",Y).attr("height",H).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");st.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(S),s(S,gt,N,B,0,H,it,ut),w(st,it)}function w(S,M){for(var N in M)M.hasOwnProperty(N)&&S.attr(N,M[N])}return function(S){return S.textPlacement==="fo"?y:S.textPlacement==="old"?l:s}}();const Sf=Es,Af=function(l,s,y){switch(s.type){case"actor":return function(w,S,M){var N=S.x+S.width/2;S.y===0&&(wo++,w.append("line").attr("id","actor"+wo).attr("x1",N).attr("y1",80).attr("x2",N).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var B=w.append("g");B.attr("class","actor-man");var Y={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};Y.x=S.x,Y.y=S.y,Y.fill="#eaeaea",Y.width=S.width,Y.height=S.height,Y.class="actor",Y.rx=3,Y.ry=3,B.append("line").attr("id","actor-man-torso"+wo).attr("x1",N).attr("y1",S.y+25).attr("x2",N).attr("y2",S.y+45),B.append("line").attr("id","actor-man-arms"+wo).attr("x1",N-18).attr("y1",S.y+33).attr("x2",N+18).attr("y2",S.y+33),B.append("line").attr("x1",N-18).attr("y1",S.y+60).attr("x2",N).attr("y2",S.y+45),B.append("line").attr("x1",N).attr("y1",S.y+45).attr("x2",N+16).attr("y2",S.y+60);var H=B.append("circle");H.attr("cx",S.x+S.width/2),H.attr("cy",S.y+10),H.attr("r",15),H.attr("width",S.width),H.attr("height",S.height);var it=B.node().getBBox();return S.height=it.height,Y1(M)(S.description,B,Y.x,Y.y+35,Y.width,Y.height,{class:"actor"},M),S.height}(l,s,y);case"participant":return function(w,S,M){var N=S.x+S.width/2,B=w.append("g"),Y=B;S.y===0&&(wo++,Y.append("line").attr("id","actor"+wo).attr("x1",N).attr("y1",5).attr("x2",N).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),Y=B.append("g"),S.actorCnt=wo,S.links!=null&&(Y.attr("id","root-"+wo),is("#root-"+wo,wo)));var H={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},it="actor";S.properties!=null&&S.properties.class?it=S.properties.class:H.fill="#eaeaea",H.x=S.x,H.y=S.y,H.width=S.width,H.height=S.height,H.class=it,H.rx=3,H.ry=3;var ut=Es(Y,H);if(S.rectData=H,S.properties!=null&&S.properties.icon){var gt=S.properties.icon.trim();gt.charAt(0)==="@"?vf(Y,H.x+H.width-20,H.y+10,gt.substr(1)):U1(Y,H.x+H.width-20,H.y+10,gt)}Y1(M)(S.description,Y,H.x,H.y,H.width,H.height,{class:"actor"},M);var st=S.height;if(ut.node){var Pt=ut.node().getBBox();S.height=Pt.height,st=Pt.height}return st}(l,s,y)}},Cf=function(l,s,y,w,S){if(s.links===void 0||s.links===null||Object.keys(s.links).length===0)return{height:0,width:0};var M=s.links,N=s.actorCnt,B=s.rectData,Y="none";S&&(Y="block !important");var H=l.append("g");H.attr("id","actor"+N+"_popup"),H.attr("class","actorPopupMenu"),H.attr("display",Y),is("#actor"+N+"_popup",N);var it="";B.class!==void 0&&(it=" "+B.class);var ut=B.width>y?B.width:y,gt=H.append("rect");if(gt.attr("class","actorPopupMenuPanel"+it),gt.attr("x",B.x),gt.attr("y",B.height),gt.attr("fill",B.fill),gt.attr("stroke",B.stroke),gt.attr("width",ut),gt.attr("height",B.height),gt.attr("rx",B.rx),gt.attr("ry",B.ry),M!=null){var st=20;for(var Pt in M){var Dt=H.append("a"),Xt=(0,At.N)(M[Pt]);Dt.attr("xlink:href",Xt),Dt.attr("target","_blank"),Tf(w)(Pt,Dt,B.x+10,B.height+st,ut,20,{class:"actor"},w),st+=30}}return gt.attr("height",st),{height:B.height+st,width:ut}},Nf=function(l){return l.append("g")},If=function(l,s,y,w,S){var M={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},N=s.anchored;M.x=s.startx,M.y=s.starty,M.class="activation"+S%3,M.width=s.stopx-s.startx,M.height=y-s.starty,Es(N,M)},ic=function(l,s,y,w){var S=w.boxMargin,M=w.boxTextMargin,N=w.labelBoxHeight,B=w.labelBoxWidth,Y=w.messageFontFamily,H=w.messageFontSize,it=w.messageFontWeight,ut=l.append("g"),gt=function(Dt,Xt,Mt,It){return ut.append("line").attr("x1",Dt).attr("y1",Xt).attr("x2",Mt).attr("y2",It).attr("class","loopLine")};gt(s.startx,s.starty,s.stopx,s.starty),gt(s.stopx,s.starty,s.stopx,s.stopy),gt(s.startx,s.stopy,s.stopx,s.stopy),gt(s.startx,s.starty,s.startx,s.stopy),s.sections!==void 0&&s.sections.forEach(function(Dt){gt(s.startx,Dt.y,s.stopx,Dt.y).style("stroke-dasharray","3, 3")});var st={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};st.text=y,st.x=s.startx,st.y=s.starty,st.fontFamily=Y,st.fontSize=H,st.fontWeight=it,st.anchor="middle",st.valign="middle",st.tspan=!1,st.width=B||50,st.height=N||20,st.textMargin=M,st.class="labelText",wf(ut,st),(st={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}).text=s.title,st.x=s.startx+B/2+(s.stopx-s.startx)/2,st.y=s.starty+S+M,st.anchor="middle",st.valign="middle",st.textMargin=M,st.class="loopText",st.fontFamily=Y,st.fontSize=H,st.fontWeight=it,st.wrap=!0;var Pt=Jc(ut,st);return s.sectionTitles!==void 0&&s.sectionTitles.forEach(function(Dt,Xt){if(Dt.message){st.text=Dt.message,st.x=s.startx+(s.stopx-s.startx)/2,st.y=s.sections[Xt].y+S+M,st.class="loopText",st.anchor="middle",st.valign="middle",st.tspan=!1,st.fontFamily=Y,st.fontSize=H,st.fontWeight=it,st.wrap=s.wrap,Pt=Jc(ut,st);var Mt=Math.round(Pt.map(function(It){return(It._groups||It)[0][0].getBBox().height}).reduce(function(It,$t){return It+$t}));s.sections[Xt].height+=Mt-(S+M)}}),s.height=Math.round(s.stopy-s.starty),ut},Lf=function(l,s){Es(l,{x:s.startx,y:s.starty,width:s.stopx-s.startx,height:s.stopy-s.starty,fill:s.fill,class:"rect"}).lower()},Mf=function(l){l.append("defs").append("marker").attr("id","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")},j1=function(l){l.append("defs").append("marker").attr("id","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")},Of=function(l){l.append("defs").append("marker").attr("id","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)},Df=function(l){var s=l.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);s.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"),s.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")},$1=function(l){l.append("defs").append("symbol").attr("id","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")},H1=function(l){l.append("defs").append("symbol").attr("id","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")},q1=function(l){l.append("defs").append("symbol").attr("id","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")},W1=z1,Bf=Ef;At.N,ln.parser.yy=Hl;var de={},sn={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(function(l){return l.height||0}))+(this.loops.length===0?0:this.loops.map(function(l){return l.height||0}).reduce(function(l,s){return l+s}))+(this.messages.length===0?0:this.messages.map(function(l){return l.height||0}).reduce(function(l,s){return l+s}))+(this.notes.length===0?0:this.notes.map(function(l){return l.height||0}).reduce(function(l,s){return l+s}))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(l){this.actors.push(l)},addLoop:function(l){this.loops.push(l)},addMessage:function(l){this.messages.push(l)},addNote:function(l){this.notes.push(l)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init: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,nh(ln.parser.yy.getConfig())},updateVal:function(l,s,y,w){l[s]===void 0?l[s]=y:l[s]=w(y,l[s])},updateBounds:function(l,s,y,w){var S=this,M=0;function N(B){return function(Y){M++;var H=S.sequenceItems.length-M+1;S.updateVal(Y,"starty",s-H*de.boxMargin,Math.min),S.updateVal(Y,"stopy",w+H*de.boxMargin,Math.max),S.updateVal(sn.data,"startx",l-H*de.boxMargin,Math.min),S.updateVal(sn.data,"stopx",y+H*de.boxMargin,Math.max),B!=="activation"&&(S.updateVal(Y,"startx",l-H*de.boxMargin,Math.min),S.updateVal(Y,"stopx",y+H*de.boxMargin,Math.max),S.updateVal(sn.data,"starty",s-H*de.boxMargin,Math.min),S.updateVal(sn.data,"stopy",w+H*de.boxMargin,Math.max))}}this.sequenceItems.forEach(N()),this.activations.forEach(N("activation"))},insert:function(l,s,y,w){var S=Math.min(l,y),M=Math.max(l,y),N=Math.min(s,w),B=Math.max(s,w);this.updateVal(sn.data,"startx",S,Math.min),this.updateVal(sn.data,"starty",N,Math.min),this.updateVal(sn.data,"stopx",M,Math.max),this.updateVal(sn.data,"stopy",B,Math.max),this.updateBounds(S,N,M,B)},newActivation:function(l,s,y){var w=y[l.from.actor],S=Ss(l.from.actor).length||0,M=w.x+w.width/2+(S-1)*de.activationWidth/2;this.activations.push({startx:M,starty:this.verticalPos+2,stopx:M+de.activationWidth,stopy:void 0,actor:l.from.actor,anchored:Nf(s)})},endActivation:function(l){var s=this.activations.map(function(y){return y.actor}).lastIndexOf(l.from.actor);return this.activations.splice(s,1)[0]},createLoop:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},s=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:l.message,wrap:l.wrap,width:l.width,height:0,fill:s}},newLoop:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},s=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(l,s))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(l){var s=this.sequenceItems.pop();s.sections=s.sections||[],s.sectionTitles=s.sectionTitles||[],s.sections.push({y:sn.getVerticalPos(),height:0}),s.sectionTitles.push(l),this.sequenceItems.push(s)},bumpVerticalPos:function(l){this.verticalPos=this.verticalPos+l,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},ac=function(l){return{fontFamily:l.messageFontFamily,fontSize:l.messageFontSize,fontWeight:l.messageFontWeight}},oc=function(l){return{fontFamily:l.noteFontFamily,fontSize:l.noteFontSize,fontWeight:l.noteFontWeight}},ql=function(l){return{fontFamily:l.actorFontFamily,fontSize:l.actorFontSize,fontWeight:l.actorFontWeight}},eh=function(l,s,y,w,S,M){if(S.hideUnusedParticipants===!0){var N=new Set;M.forEach(function(st){N.add(st.from),N.add(st.to)}),y=y.filter(function(st){return N.has(st)})}for(var B=0,Y=0,H=0,it=0;it<y.length;it++){var ut=s[y[it]];ut.width=ut.width||de.width,ut.height=Math.max(ut.height||de.height,de.height),ut.margin=ut.margin||de.actorMargin,ut.x=B+Y,ut.y=w;var gt=Af(l,ut,de);H=Math.max(H,gt),sn.insert(ut.x,w,ut.x+ut.width,ut.height),B+=ut.width,Y+=ut.margin,sn.models.addActor(ut)}sn.bumpVerticalPos(H)},G1=function(l,s,y,w){for(var S=0,M=0,N=0;N<y.length;N++){var B=s[y[N]],Y=Rf(B),H=Cf(l,B,Y,de,de.forceMenus);H.height>S&&(S=H.height),H.width+B.x>M&&(M=H.width+B.x)}return{maxHeight:S,maxWidth:M}},nh=function(l){$r(de,l),l.fontFamily&&(de.actorFontFamily=de.noteFontFamily=de.messageFontFamily=l.fontFamily),l.fontSize&&(de.actorFontSize=de.noteFontSize=de.messageFontSize=l.fontSize),l.fontWeight&&(de.actorFontWeight=de.noteFontWeight=de.messageFontWeight=l.fontWeight)},Ss=function(l){return sn.activations.filter(function(s){return s.actor===l})},V1=function(l,s){var y=s[l],w=Ss(l);return[w.reduce(function(S,M){return Math.min(S,M.startx)},y.x+y.width/2),w.reduce(function(S,M){return Math.max(S,M.stopx)},y.x+y.width/2)]};function Ba(l,s,y,w,S){sn.bumpVerticalPos(y);var M=w;if(s.id&&s.message&&l[s.id]){var N=l[s.id].width,B=ac(de);s.message=Bn.wrapLabel("[".concat(s.message,"]"),N-2*de.wrapPadding,B),s.width=N,s.wrap=!0;var Y=Bn.calculateTextDimensions(s.message,B),H=Math.max(Y.height,de.labelBoxHeight);M=w+H,_.debug("".concat(H," - ").concat(s.message))}S(s),sn.bumpVerticalPos(M)}var Rf=function(l){var s=0,y=ql(de);for(var w in l.links){var S=Bn.calculateTextDimensions(w,y).width+2*de.wrapPadding+2*de.boxMargin;s<S&&(s=S)}return s};const As={bounds:sn,drawActors:eh,drawActorsPopup:G1,setConf:nh,draw:function(l,s){de=jt().sequence;var y,w=jt().securityLevel;w==="sandbox"&&(y=(0,E.select)("#i"+s));var S=w==="sandbox"?(0,E.select)(y.nodes()[0].contentDocument.body):(0,E.select)("body");w==="sandbox"&&y.nodes()[0].contentDocument,ln.parser.yy.clear(),ln.parser.yy.setWrap(de.wrap),ln.parser.parse(l+`
|
|
`),sn.init(),_.debug("C:".concat(JSON.stringify(de,null,2)));var M=w==="sandbox"?S.select('[id="'.concat(s,'"]')):(0,E.select)('[id="'.concat(s,'"]')),N=ln.parser.yy.getActors(),B=ln.parser.yy.getActorKeys(),Y=ln.parser.yy.getMessages(),H=ln.parser.yy.getDiagramTitle(),it=function(Se,se){var le={};return se.forEach(function(Oe){if(Se[Oe.to]&&Se[Oe.from]){var ke=Se[Oe.to];if(Oe.placement===ln.parser.yy.PLACEMENT.LEFTOF&&!ke.prevActor||Oe.placement===ln.parser.yy.PLACEMENT.RIGHTOF&&!ke.nextActor)return;var re=Oe.placement!==void 0,we=!re,oe=re?oc(de):ac(de),ce=Oe.wrap?Bn.wrapLabel(Oe.message,de.width-2*de.wrapPadding,oe):Oe.message,Ye=Bn.calculateTextDimensions(ce,oe).width+2*de.wrapPadding;we&&Oe.from===ke.nextActor?le[Oe.to]=Math.max(le[Oe.to]||0,Ye):we&&Oe.from===ke.prevActor?le[Oe.from]=Math.max(le[Oe.from]||0,Ye):we&&Oe.from===Oe.to?(le[Oe.from]=Math.max(le[Oe.from]||0,Ye/2),le[Oe.to]=Math.max(le[Oe.to]||0,Ye/2)):Oe.placement===ln.parser.yy.PLACEMENT.RIGHTOF?le[Oe.from]=Math.max(le[Oe.from]||0,Ye):Oe.placement===ln.parser.yy.PLACEMENT.LEFTOF?le[ke.prevActor]=Math.max(le[ke.prevActor]||0,Ye):Oe.placement===ln.parser.yy.PLACEMENT.OVER&&(ke.prevActor&&(le[ke.prevActor]=Math.max(le[ke.prevActor]||0,Ye/2)),ke.nextActor&&(le[Oe.from]=Math.max(le[Oe.from]||0,Ye/2)))}}),_.debug("maxMessageWidthPerActor:",le),le}(N,Y);de.height=function(Se,se){var le=0;for(var Oe in Object.keys(Se).forEach(function(oe){var ce=Se[oe];ce.wrap&&(ce.description=Bn.wrapLabel(ce.description,de.width-2*de.wrapPadding,ql(de)));var Ye=Bn.calculateTextDimensions(ce.description,ql(de));ce.width=ce.wrap?de.width:Math.max(de.width,Ye.width+2*de.wrapPadding),ce.height=ce.wrap?Math.max(Ye.height,de.height):de.height,le=Math.max(le,ce.height)}),se){var ke=Se[Oe];if(ke){var re=Se[ke.nextActor];if(re){var we=se[Oe]+de.actorMargin-ke.width/2-re.width/2;ke.margin=Math.max(we,de.actorMargin)}}}return Math.max(le,de.height)}(N,it),H1(M),$1(M),q1(M),eh(M,N,B,0,de,Y);var ut=function(Se,se){var le,Oe,ke,re={},we=[];return Se.forEach(function(oe){switch(oe.id=Bn.random({length:10}),oe.type){case ln.parser.yy.LINETYPE.LOOP_START:case ln.parser.yy.LINETYPE.ALT_START:case ln.parser.yy.LINETYPE.OPT_START:case ln.parser.yy.LINETYPE.PAR_START:case ln.parser.yy.LINETYPE.CRITICAL_START:case ln.parser.yy.LINETYPE.BREAK_START:we.push({id:oe.id,msg:oe.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case ln.parser.yy.LINETYPE.ALT_ELSE:case ln.parser.yy.LINETYPE.PAR_AND:case ln.parser.yy.LINETYPE.CRITICAL_OPTION:oe.message&&(le=we.pop(),re[le.id]=le,re[oe.id]=le,we.push(le));break;case ln.parser.yy.LINETYPE.LOOP_END:case ln.parser.yy.LINETYPE.ALT_END:case ln.parser.yy.LINETYPE.OPT_END:case ln.parser.yy.LINETYPE.PAR_END:case ln.parser.yy.LINETYPE.CRITICAL_END:case ln.parser.yy.LINETYPE.BREAK_END:le=we.pop(),re[le.id]=le;break;case ln.parser.yy.LINETYPE.ACTIVE_START:var ce=se[oe.from?oe.from.actor:oe.to.actor],Ye=Ss(oe.from?oe.from.actor:oe.to.actor).length,Ue=ce.x+ce.width/2+(Ye-1)*de.activationWidth/2,je={startx:Ue,stopx:Ue+de.activationWidth,actor:oe.from.actor,enabled:!0};sn.activations.push(je);break;case ln.parser.yy.LINETYPE.ACTIVE_END:var qe=sn.activations.map(function(be){return be.actor}).lastIndexOf(oe.from.actor);delete sn.activations.splice(qe,1)[0]}oe.placement!==void 0?(Oe=function(be,Ge){var dn=Ge[be.from].x,tn=Ge[be.to].x,an=be.wrap&&be.message,gn=Bn.calculateTextDimensions(an?Bn.wrapLabel(be.message,de.width,oc(de)):be.message,oc(de)),Rn={width:an?de.width:Math.max(de.width,gn.width+2*de.noteMargin),height:0,startx:Ge[be.from].x,stopx:0,starty:0,stopy:0,message:be.message};return be.placement===ln.parser.yy.PLACEMENT.RIGHTOF?(Rn.width=an?Math.max(de.width,gn.width):Math.max(Ge[be.from].width/2+Ge[be.to].width/2,gn.width+2*de.noteMargin),Rn.startx=dn+(Ge[be.from].width+de.actorMargin)/2):be.placement===ln.parser.yy.PLACEMENT.LEFTOF?(Rn.width=Math.max(an?de.width:Ge[be.from].width/2+Ge[be.to].width/2,gn.width+2*de.noteMargin),Rn.startx=dn-Rn.width+(Ge[be.from].width-de.actorMargin)/2):be.to===be.from?(gn=Bn.calculateTextDimensions(an?Bn.wrapLabel(be.message,Math.max(de.width,Ge[be.from].width),oc(de)):be.message,oc(de)),Rn.width=an?Math.max(de.width,Ge[be.from].width):Math.max(Ge[be.from].width,de.width,gn.width+2*de.noteMargin),Rn.startx=dn+(Ge[be.from].width-Rn.width)/2):(Rn.width=Math.abs(dn+Ge[be.from].width/2-(tn+Ge[be.to].width/2))+de.actorMargin,Rn.startx=dn<tn?dn+Ge[be.from].width/2-de.actorMargin/2:tn+Ge[be.to].width/2-de.actorMargin/2),an&&(Rn.message=Bn.wrapLabel(be.message,Rn.width-2*de.wrapPadding,oc(de))),_.debug("NM:[".concat(Rn.startx,",").concat(Rn.stopx,",").concat(Rn.starty,",").concat(Rn.stopy,":").concat(Rn.width,",").concat(Rn.height,"=").concat(be.message,"]")),Rn}(oe,se),oe.noteModel=Oe,we.forEach(function(be){(le=be).from=Math.min(le.from,Oe.startx),le.to=Math.max(le.to,Oe.startx+Oe.width),le.width=Math.max(le.width,Math.abs(le.from-le.to))-de.labelBoxWidth})):(ke=function(be,Ge){var dn=!1;if([ln.parser.yy.LINETYPE.SOLID_OPEN,ln.parser.yy.LINETYPE.DOTTED_OPEN,ln.parser.yy.LINETYPE.SOLID,ln.parser.yy.LINETYPE.DOTTED,ln.parser.yy.LINETYPE.SOLID_CROSS,ln.parser.yy.LINETYPE.DOTTED_CROSS,ln.parser.yy.LINETYPE.SOLID_POINT,ln.parser.yy.LINETYPE.DOTTED_POINT].includes(be.type)&&(dn=!0),!dn)return{};var tn=V1(be.from,Ge),an=V1(be.to,Ge),gn=tn[0]<=an[0]?1:0,Rn=tn[0]<an[0]?0:1,rr=tn.concat(an),cr=Math.abs(an[Rn]-tn[gn]);be.wrap&&be.message&&(be.message=Bn.wrapLabel(be.message,Math.max(cr+2*de.wrapPadding,de.width),ac(de)));var wn=Bn.calculateTextDimensions(be.message,ac(de));return{width:Math.max(be.wrap?0:wn.width+2*de.wrapPadding,cr+2*de.wrapPadding,de.width),height:0,startx:tn[gn],stopx:an[Rn],starty:0,stopy:0,message:be.message,type:be.type,wrap:be.wrap,fromBounds:Math.min.apply(null,rr),toBounds:Math.max.apply(null,rr)}}(oe,se),oe.msgModel=ke,ke.startx&&ke.stopx&&we.length>0&&we.forEach(function(be){if(le=be,ke.startx===ke.stopx){var Ge=se[oe.from],dn=se[oe.to];le.from=Math.min(Ge.x-ke.width/2,Ge.x-Ge.width/2,le.from),le.to=Math.max(dn.x+ke.width/2,dn.x+Ge.width/2,le.to),le.width=Math.max(le.width,Math.abs(le.to-le.from))-de.labelBoxWidth}else le.from=Math.min(ke.startx,le.from),le.to=Math.max(ke.stopx,le.to),le.width=Math.max(le.width,ke.width)-de.labelBoxWidth}))}),sn.activations=[],_.debug("Loop type widths:",re),re}(Y,N);Mf(M),Df(M),j1(M),Of(M);var gt=1,st=1,Pt=Array();Y.forEach(function(Se){var se,le,Oe;switch(Se.type){case ln.parser.yy.LINETYPE.NOTE:le=Se.noteModel,function(re,we){sn.bumpVerticalPos(de.boxMargin),we.height=de.boxMargin,we.starty=sn.getVerticalPos();var oe=Bf();oe.x=we.startx,oe.y=we.starty,oe.width=we.width||de.width,oe.class="note";var ce=re.append("g"),Ye=Sf(ce,oe),Ue=W1();Ue.x=we.startx,Ue.y=we.starty,Ue.width=oe.width,Ue.dy="1em",Ue.text=we.message,Ue.class="noteText",Ue.fontFamily=de.noteFontFamily,Ue.fontSize=de.noteFontSize,Ue.fontWeight=de.noteFontWeight,Ue.anchor=de.noteAlign,Ue.textMargin=de.noteMargin,Ue.valign=de.noteAlign;var je=Jc(ce,Ue),qe=Math.round(je.map(function(be){return(be._groups||be)[0][0].getBBox().height}).reduce(function(be,Ge){return be+Ge}));Ye.attr("height",qe+2*de.noteMargin),we.height+=qe+2*de.noteMargin,sn.bumpVerticalPos(qe+2*de.noteMargin),we.stopy=we.starty+qe+2*de.noteMargin,we.stopx=we.startx+oe.width,sn.insert(we.startx,we.starty,we.stopx,we.stopy),sn.models.addNote(we)}(M,le);break;case ln.parser.yy.LINETYPE.ACTIVE_START:sn.newActivation(Se,M,N);break;case ln.parser.yy.LINETYPE.ACTIVE_END:(function(re,we){var oe=sn.endActivation(re);oe.starty+18>we&&(oe.starty=we-6,we+=12),If(M,oe,we,de,Ss(re.from.actor).length),sn.insert(oe.startx,we-10,oe.stopx,we)})(Se,sn.getVerticalPos());break;case ln.parser.yy.LINETYPE.LOOP_START:Ba(ut,Se,de.boxMargin,de.boxMargin+de.boxTextMargin,function(re){return sn.newLoop(re)});break;case ln.parser.yy.LINETYPE.LOOP_END:se=sn.endLoop(),ic(M,se,"loop",de),sn.bumpVerticalPos(se.stopy-sn.getVerticalPos()),sn.models.addLoop(se);break;case ln.parser.yy.LINETYPE.RECT_START:Ba(ut,Se,de.boxMargin,de.boxMargin,function(re){return sn.newLoop(void 0,re.message)});break;case ln.parser.yy.LINETYPE.RECT_END:se=sn.endLoop(),Lf(M,se),sn.models.addLoop(se),sn.bumpVerticalPos(se.stopy-sn.getVerticalPos());break;case ln.parser.yy.LINETYPE.OPT_START:Ba(ut,Se,de.boxMargin,de.boxMargin+de.boxTextMargin,function(re){return sn.newLoop(re)});break;case ln.parser.yy.LINETYPE.OPT_END:se=sn.endLoop(),ic(M,se,"opt",de),sn.bumpVerticalPos(se.stopy-sn.getVerticalPos()),sn.models.addLoop(se);break;case ln.parser.yy.LINETYPE.ALT_START:Ba(ut,Se,de.boxMargin,de.boxMargin+de.boxTextMargin,function(re){return sn.newLoop(re)});break;case ln.parser.yy.LINETYPE.ALT_ELSE:Ba(ut,Se,de.boxMargin+de.boxTextMargin,de.boxMargin,function(re){return sn.addSectionToLoop(re)});break;case ln.parser.yy.LINETYPE.ALT_END:se=sn.endLoop(),ic(M,se,"alt",de),sn.bumpVerticalPos(se.stopy-sn.getVerticalPos()),sn.models.addLoop(se);break;case ln.parser.yy.LINETYPE.PAR_START:Ba(ut,Se,de.boxMargin,de.boxMargin+de.boxTextMargin,function(re){return sn.newLoop(re)});break;case ln.parser.yy.LINETYPE.PAR_AND:Ba(ut,Se,de.boxMargin+de.boxTextMargin,de.boxMargin,function(re){return sn.addSectionToLoop(re)});break;case ln.parser.yy.LINETYPE.PAR_END:se=sn.endLoop(),ic(M,se,"par",de),sn.bumpVerticalPos(se.stopy-sn.getVerticalPos()),sn.models.addLoop(se);break;case ln.parser.yy.LINETYPE.AUTONUMBER:gt=Se.message.start||gt,st=Se.message.step||st,Se.message.visible?ln.parser.yy.enableSequenceNumbers():ln.parser.yy.disableSequenceNumbers();break;case ln.parser.yy.LINETYPE.CRITICAL_START:Ba(ut,Se,de.boxMargin,de.boxMargin+de.boxTextMargin,function(re){return sn.newLoop(re)});break;case ln.parser.yy.LINETYPE.CRITICAL_OPTION:Ba(ut,Se,de.boxMargin+de.boxTextMargin,de.boxMargin,function(re){return sn.addSectionToLoop(re)});break;case ln.parser.yy.LINETYPE.CRITICAL_END:se=sn.endLoop(),ic(M,se,"critical",de),sn.bumpVerticalPos(se.stopy-sn.getVerticalPos()),sn.models.addLoop(se);break;case ln.parser.yy.LINETYPE.BREAK_START:Ba(ut,Se,de.boxMargin,de.boxMargin+de.boxTextMargin,function(re){return sn.newLoop(re)});break;case ln.parser.yy.LINETYPE.BREAK_END:se=sn.endLoop(),ic(M,se,"break",de),sn.bumpVerticalPos(se.stopy-sn.getVerticalPos()),sn.models.addLoop(se);break;default:try{(Oe=Se.msgModel).starty=sn.getVerticalPos(),Oe.sequenceIndex=gt,Oe.sequenceVisible=ln.parser.yy.showSequenceNumbers();var ke=function(re,we){sn.bumpVerticalPos(10);var oe,ce=we.startx,Ye=we.stopx,Ue=we.message,je=ae.splitBreaks(Ue).length,qe=Bn.calculateTextDimensions(Ue,ac(de)),be=qe.height/je;we.height+=be,sn.bumpVerticalPos(be);var Ge=qe.height-10,dn=qe.width;if(ce===Ye){oe=sn.getVerticalPos()+Ge,de.rightAngles||(Ge+=de.boxMargin,oe=sn.getVerticalPos()+Ge),Ge+=30;var tn=Math.max(dn/2,de.width/2);sn.insert(ce-tn,sn.getVerticalPos()-10+Ge,Ye+tn,sn.getVerticalPos()+30+Ge)}else Ge+=de.boxMargin,oe=sn.getVerticalPos()+Ge,sn.insert(ce,oe-10,Ye,oe);return sn.bumpVerticalPos(Ge),we.height+=Ge,we.stopy=we.starty+we.height,sn.insert(we.fromBounds,we.starty,we.toBounds,we.stopy),oe}(0,Oe);Pt.push({messageModel:Oe,lineStarty:ke}),sn.models.addMessage(Oe)}catch(re){_.error("error while drawing message",re)}}[ln.parser.yy.LINETYPE.SOLID_OPEN,ln.parser.yy.LINETYPE.DOTTED_OPEN,ln.parser.yy.LINETYPE.SOLID,ln.parser.yy.LINETYPE.DOTTED,ln.parser.yy.LINETYPE.SOLID_CROSS,ln.parser.yy.LINETYPE.DOTTED_CROSS,ln.parser.yy.LINETYPE.SOLID_POINT,ln.parser.yy.LINETYPE.DOTTED_POINT].includes(Se.type)&&(gt+=st)}),Pt.forEach(function(Se){return function(se,le,Oe){var ke=le.startx,re=le.stopx,we=le.starty,oe=le.message,ce=le.type,Ye=le.sequenceIndex,Ue=le.sequenceVisible,je=Bn.calculateTextDimensions(oe,ac(de)),qe=W1();qe.x=ke,qe.y=we+10,qe.width=re-ke,qe.class="messageText",qe.dy="1em",qe.text=oe,qe.fontFamily=de.messageFontFamily,qe.fontSize=de.messageFontSize,qe.fontWeight=de.messageFontWeight,qe.anchor=de.messageAlign,qe.valign=de.messageAlign,qe.textMargin=de.wrapPadding,qe.tspan=!1,Jc(se,qe);var be,Ge=je.width;ke===re?be=de.rightAngles?se.append("path").attr("d","M ".concat(ke,",").concat(Oe," H ").concat(ke+Math.max(de.width/2,Ge/2)," V ").concat(Oe+25," H ").concat(ke)):se.append("path").attr("d","M "+ke+","+Oe+" C "+(ke+60)+","+(Oe-10)+" "+(ke+60)+","+(Oe+30)+" "+ke+","+(Oe+20)):((be=se.append("line")).attr("x1",ke),be.attr("y1",Oe),be.attr("x2",re),be.attr("y2",Oe)),ce===ln.parser.yy.LINETYPE.DOTTED||ce===ln.parser.yy.LINETYPE.DOTTED_CROSS||ce===ln.parser.yy.LINETYPE.DOTTED_POINT||ce===ln.parser.yy.LINETYPE.DOTTED_OPEN?(be.style("stroke-dasharray","3, 3"),be.attr("class","messageLine1")):be.attr("class","messageLine0");var dn="";de.arrowMarkerAbsolute&&(dn=(dn=(dn=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),be.attr("stroke-width",2),be.attr("stroke","none"),be.style("fill","none"),ce!==ln.parser.yy.LINETYPE.SOLID&&ce!==ln.parser.yy.LINETYPE.DOTTED||be.attr("marker-end","url("+dn+"#arrowhead)"),ce!==ln.parser.yy.LINETYPE.SOLID_POINT&&ce!==ln.parser.yy.LINETYPE.DOTTED_POINT||be.attr("marker-end","url("+dn+"#filled-head)"),ce!==ln.parser.yy.LINETYPE.SOLID_CROSS&&ce!==ln.parser.yy.LINETYPE.DOTTED_CROSS||be.attr("marker-end","url("+dn+"#crosshead)"),(Ue||de.showSequenceNumbers)&&(be.attr("marker-start","url("+dn+"#sequencenumber)"),se.append("text").attr("x",ke).attr("y",Oe+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(Ye))}(M,Se.messageModel,Se.lineStarty)}),de.mirrorActors&&(sn.bumpVerticalPos(2*de.boxMargin),eh(M,N,B,sn.getVerticalPos(),de,Y),sn.bumpVerticalPos(de.boxMargin),Ts(M,sn.getVerticalPos()));var Dt=G1(M,N,B),Xt=sn.getBounds().bounds;_.debug("For line height fix Querying: #"+s+" .actor-line"),(0,E.selectAll)("#"+s+" .actor-line").attr("y2",Xt.stopy);var Mt=Xt.stopy-Xt.starty;Mt<Dt.maxHeight&&(Mt=Dt.maxHeight);var It=Mt+2*de.diagramMarginY;de.mirrorActors&&(It=It-de.boxMargin+de.bottomMarginAdj);var $t=Xt.stopx-Xt.startx;$t<Dt.maxWidth&&($t=Dt.maxWidth);var ee=$t+2*de.diagramMarginX;H&&M.append("text").text(H).attr("x",(Xt.stopx-Xt.startx)/2-2*de.diagramMarginX).attr("y",-25),Si(M,It,ee,de.useMaxWidth);var Re=H?40:0;M.attr("viewBox",Xt.startx-de.diagramMarginX+" -"+(de.diagramMarginY+Re)+" "+ee+" "+(It+Re)),Zi(ln.parser.yy,M,s),_.debug("models:",sn.models)}};var Qc=h(3584),Z1=h.n(Qc);function Wl(l){return Wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Wl(l)}var Ho=function(l){return JSON.parse(JSON.stringify(l))},Gl=[],X1=function l(s,y,w){if(y.stmt==="relation")l(s,y.state1,!0),l(s,y.state2,!1);else if(y.stmt==="state"&&y.id==="[*]"&&(y.id=w?s.id+"_start":s.id+"_end",y.start=w),y.doc){var S=[],M=0,N=[];for(M=0;M<y.doc.length;M++)if(y.doc[M].type==="divider"){var B=Ho(y.doc[M]);B.doc=Ho(N),S.push(B),N=[]}else N.push(y.doc[M]);if(S.length>0&&N.length>0){var Y={stmt:"state",id:Ti(),type:"divider",doc:Ho(N)};S.push(Ho(Y)),y.doc=S}y.doc.forEach(function(H){return l(y,H,!0)})}},Vl={root:{relations:[],states:{},documents:{}}},fa=Vl.root,rh=0,Zl=function(l,s,y,w,S){fa.states[l]===void 0?fa.states[l]={id:l,descriptions:[],type:s,doc:y,note:S}:(fa.states[l].doc||(fa.states[l].doc=y),fa.states[l].type||(fa.states[l].type=s)),w&&(_.info("Adding state ",l,w),typeof w=="string"&&tl(l,w.trim()),Wl(w)==="object"&&w.forEach(function(M){return tl(l,M.trim())})),S&&(fa.states[l].note=S,fa.states[l].note.text=ae.sanitizeText(fa.states[l].note.text,jt()))},K1=function(l){fa=(Vl={root:{relations:[],states:{},documents:{}}}).root,fa=Vl.root,rh=0,t0=[],l||Hr()},J1=function(l,s,y){var w=l,S=s,M="default",N="default";l==="[*]"&&(w="start"+ ++rh,M="start"),s==="[*]"&&(S="end"+rh,N="end"),Zl(w,M),Zl(S,N),fa.relations.push({id1:w,id2:S,title:ae.sanitizeText(y,jt())})},tl=function(l,s){var y=fa.states[l],w=s;w[0]===":"&&(w=w.substr(1).trim()),y.descriptions.push(ae.sanitizeText(w,jt()))},Q1=0,t0=[],e0="TB";const Yi={parseDirective:function(l,s,y){vi.parseDirective(this,l,s,y)},getConfig:function(){return jt().state},addState:Zl,clear:K1,getState:function(l){return fa.states[l]},getStates:function(){return fa.states},getRelations:function(){return fa.relations},getClasses:function(){return t0},getDirection:function(){return e0},addRelation:J1,getDividerId:function(){return"divider-id-"+ ++Q1},setDirection:function(l){e0=l},cleanupLabel:function(l){return l.substring(0,1)===":"?l.substr(2).trim():l.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){_.info("Documents = ",Vl)},getRootDoc:function(){return Gl},setRootDoc:function(l){_.info("Setting root doc",l),Gl=l},getRootDocV2:function(){return X1({id:"root"},{id:"root",doc:Gl},!0),{id:"root",doc:Gl}},extract:function(l){var s;s=l.doc?l.doc:l,_.info(s),K1(!0),_.info("Extract",s),s.forEach(function(y){y.stmt==="state"&&Zl(y.id,y.type,y.doc,y.description,y.note),y.stmt==="relation"&&J1(y.state1.id,y.state2.id,y.description)})},trimColon:function(l){return l&&l[0]===":"?l.substr(1).trim():l.trim()},getAccTitle:ci,setAccTitle:Cr,getAccDescription:ii,setAccDescription:li};function n0(l,s){(s==null||s>l.length)&&(s=l.length);for(var y=0,w=new Array(s);y<s;y++)w[y]=l[y];return w}var Ha,Ff=function(l,s,y){var w,S=jt().state.padding,M=2*jt().state.padding,N=l.node().getBBox(),B=N.width,Y=N.x,H=l.append("text").attr("x",0).attr("y",jt().state.titleShift).attr("font-size",jt().state.fontSize).attr("class","state-title").text(s.id),it=H.node().getBBox().width+M,ut=Math.max(it,B);ut===B&&(ut+=M);var gt=l.node().getBBox();s.doc,w=Y-S,it>B&&(w=(B-ut)/2+S),Math.abs(Y-gt.x)<S&&it>B&&(w=Y-(it-B)/2);var st=1-jt().state.textHeight;return l.insert("rect",":first-child").attr("x",w).attr("y",st).attr("class",y?"alt-composit":"composit").attr("width",ut).attr("height",gt.height+jt().state.textHeight+jt().state.titleShift+1).attr("rx","0"),H.attr("x",w+S),it<=B&&H.attr("x",Y+(ut-M)/2-it/2+S),l.insert("rect",":first-child").attr("x",w).attr("y",jt().state.titleShift-jt().state.textHeight-jt().state.padding).attr("width",ut).attr("height",3*jt().state.textHeight).attr("rx",jt().state.radius),l.insert("rect",":first-child").attr("x",w).attr("y",jt().state.titleShift-jt().state.textHeight-jt().state.padding).attr("width",ut).attr("height",gt.height+3+2*jt().state.textHeight).attr("rx",jt().state.radius),l},ih=function(l,s){s.attr("class","state-note");var y=s.append("rect").attr("x",0).attr("y",jt().state.padding),w=function(N,B,Y,H){var it=0,ut=H.append("text");ut.style("text-anchor","start"),ut.attr("class","noteText");var gt,st=N.replace(/\r\n/g,"<br/>"),Pt=(st=st.replace(/\n/g,"<br/>")).split(ae.lineBreakRegex),Dt=1.25*jt().state.noteMargin,Xt=function($t,ee){var Re=typeof Symbol<"u"&&$t[Symbol.iterator]||$t["@@iterator"];if(!Re){if(Array.isArray($t)||(Re=function(re,we){if(re){if(typeof re=="string")return n0(re,we);var oe=Object.prototype.toString.call(re).slice(8,-1);return oe==="Object"&&re.constructor&&(oe=re.constructor.name),oe==="Map"||oe==="Set"?Array.from(re):oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(oe)?n0(re,we):void 0}}($t))||ee&&$t&&typeof $t.length=="number"){Re&&($t=Re);var Se=0,se=function(){};return{s:se,n:function(){return Se>=$t.length?{done:!0}:{done:!1,value:$t[Se++]}},e:function(re){throw re},f:se}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var le,Oe=!0,ke=!1;return{s:function(){Re=Re.call($t)},n:function(){var re=Re.next();return Oe=re.done,re},e:function(re){ke=!0,le=re},f:function(){try{Oe||Re.return==null||Re.return()}finally{if(ke)throw le}}}}(Pt);try{for(Xt.s();!(gt=Xt.n()).done;){var Mt=gt.value.trim();if(Mt.length>0){var It=ut.append("tspan");It.text(Mt),Dt===0&&(Dt+=It.node().getBBox().height),it+=Dt,It.attr("x",0+jt().state.noteMargin),It.attr("y",0+it+1.25*jt().state.noteMargin)}}}catch($t){Xt.e($t)}finally{Xt.f()}return{textWidth:ut.node().getBBox().width,textHeight:it}}(l,0,0,s.append("g")),S=w.textWidth,M=w.textHeight;return y.attr("height",M+2*jt().state.noteMargin),y.attr("width",S+2*jt().state.noteMargin),y},r0=function(l,s){var y=s.id,w={id:y,label:s.id,width:0,height:0},S=l.append("g").attr("id",y).attr("class","stateGroup");s.type==="start"&&function(N){N.append("circle").attr("class","start-state").attr("r",jt().state.sizeUnit).attr("cx",jt().state.padding+jt().state.sizeUnit).attr("cy",jt().state.padding+jt().state.sizeUnit)}(S),s.type==="end"&&function(N){N.append("circle").attr("class","end-state-outer").attr("r",jt().state.sizeUnit+jt().state.miniPadding).attr("cx",jt().state.padding+jt().state.sizeUnit+jt().state.miniPadding).attr("cy",jt().state.padding+jt().state.sizeUnit+jt().state.miniPadding),N.append("circle").attr("class","end-state-inner").attr("r",jt().state.sizeUnit).attr("cx",jt().state.padding+jt().state.sizeUnit+2).attr("cy",jt().state.padding+jt().state.sizeUnit+2)}(S),s.type!=="fork"&&s.type!=="join"||function(N,B){var Y=jt().state.forkWidth,H=jt().state.forkHeight;if(B.parentId){var it=Y;Y=H,H=it}N.append("rect").style("stroke","black").style("fill","black").attr("width",Y).attr("height",H).attr("x",jt().state.padding).attr("y",jt().state.padding)}(S,s),s.type==="note"&&ih(s.note.text,S),s.type==="divider"&&function(N){N.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",jt().state.textHeight).attr("class","divider").attr("x2",2*jt().state.textHeight).attr("y1",0).attr("y2",0)}(S),s.type==="default"&&s.descriptions.length===0&&function(N,B){var Y=N.append("text").attr("x",2*jt().state.padding).attr("y",jt().state.textHeight+2*jt().state.padding).attr("font-size",jt().state.fontSize).attr("class","state-title").text(B.id).node().getBBox();N.insert("rect",":first-child").attr("x",jt().state.padding).attr("y",jt().state.padding).attr("width",Y.width+2*jt().state.padding).attr("height",Y.height+2*jt().state.padding).attr("rx",jt().state.radius)}(S,s),s.type==="default"&&s.descriptions.length>0&&function(N,B){var Y=N.append("text").attr("x",2*jt().state.padding).attr("y",jt().state.textHeight+1.3*jt().state.padding).attr("font-size",jt().state.fontSize).attr("class","state-title").text(B.descriptions[0]).node().getBBox(),H=Y.height,it=N.append("text").attr("x",jt().state.padding).attr("y",H+.4*jt().state.padding+jt().state.dividerMargin+jt().state.textHeight).attr("class","state-description"),ut=!0,gt=!0;B.descriptions.forEach(function(Xt){ut||(function(Mt,It,$t){var ee=Mt.append("tspan").attr("x",2*jt().state.padding).text(It);$t||ee.attr("dy",jt().state.textHeight)}(it,Xt,gt),gt=!1),ut=!1});var st=N.append("line").attr("x1",jt().state.padding).attr("y1",jt().state.padding+H+jt().state.dividerMargin/2).attr("y2",jt().state.padding+H+jt().state.dividerMargin/2).attr("class","descr-divider"),Pt=it.node().getBBox(),Dt=Math.max(Pt.width,Y.width);st.attr("x2",Dt+3*jt().state.padding),N.insert("rect",":first-child").attr("x",jt().state.padding).attr("y",jt().state.padding).attr("width",Dt+2*jt().state.padding).attr("height",Pt.height+H+2*jt().state.padding).attr("rx",jt().state.radius)}(S,s);var M=S.node().getBBox();return w.width=M.width+2*jt().state.padding,w.height=M.height+2*jt().state.padding,w},i0=0;Qc.parser.yy=Yi;var ah={},Pf=function l(s,y,w,S,M,N){var B,Y=new(Mi()).Graph({compound:!0,multigraph:!0}),H=!0;for(B=0;B<s.length;B++)if(s[B].stmt==="relation"){H=!1;break}w?Y.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:H?1:Ha.edgeLengthFactor,nodeSep:H?1:50,isMultiGraph:!0}):Y.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:H?1:Ha.edgeLengthFactor,nodeSep:H?1:50,ranker:"tight-tree",isMultiGraph:!0}),Y.setDefaultEdgeLabel(function(){return{}}),Yi.extract(s);for(var it=Yi.getStates(),ut=Yi.getRelations(),gt=Object.keys(it),st=0;st<gt.length;st++){var Pt=it[gt[st]];w&&(Pt.parentId=w);var Dt=void 0;if(Pt.doc){var Xt=y.append("g").attr("id",Pt.id).attr("class","stateGroup");Dt=l(Pt.doc,Xt,Pt.id,!S,M,N);var Mt=(Xt=Ff(Xt,Pt,S)).node().getBBox();Dt.width=Mt.width,Dt.height=Mt.height+Ha.padding/2,ah[Pt.id]={y:Ha.compositTitleSize}}else Dt=r0(y,Pt);if(Pt.note){var It={descriptions:[],id:Pt.id+"-note",note:Pt.note,type:"note"},$t=r0(y,It);Pt.note.position==="left of"?(Y.setNode(Dt.id+"-note",$t),Y.setNode(Dt.id,Dt)):(Y.setNode(Dt.id,Dt),Y.setNode(Dt.id+"-note",$t)),Y.setParent(Dt.id,Dt.id+"-group"),Y.setParent(Dt.id+"-note",Dt.id+"-group")}else Y.setNode(Dt.id,Dt)}_.debug("Count=",Y.nodeCount(),Y);var ee=0;ut.forEach(function(le){var Oe;ee++,_.debug("Setting edge",le),Y.setEdge(le.id1,le.id2,{relation:le,width:(Oe=le.title,Oe?Oe.length*Ha.fontSizeFactor:1),height:Ha.labelHeight*ae.getRows(le.title).length,labelpos:"c"},"id"+ee)}),Zo().layout(Y),_.debug("Graph after layout",Y.nodes());var Re=y.node();Y.nodes().forEach(function(le){le!==void 0&&Y.node(le)!==void 0?(_.warn("Node "+le+": "+JSON.stringify(Y.node(le))),M.select("#"+Re.id+" #"+le).attr("transform","translate("+(Y.node(le).x-Y.node(le).width/2)+","+(Y.node(le).y+(ah[le]?ah[le].y:0)-Y.node(le).height/2)+" )"),M.select("#"+Re.id+" #"+le).attr("data-x-shift",Y.node(le).x-Y.node(le).width/2),N.querySelectorAll("#"+Re.id+" #"+le+" .divider").forEach(function(Oe){var ke=Oe.parentElement,re=0,we=0;ke&&(ke.parentElement&&(re=ke.parentElement.getBBox().width),we=parseInt(ke.getAttribute("data-x-shift"),10),Number.isNaN(we)&&(we=0)),Oe.setAttribute("x1",0-we+8),Oe.setAttribute("x2",re-we-8)})):_.debug("No Node "+le+": "+JSON.stringify(Y.node(le)))});var Se=Re.getBBox();Y.edges().forEach(function(le){le!==void 0&&Y.edge(le)!==void 0&&(_.debug("Edge "+le.v+" -> "+le.w+": "+JSON.stringify(Y.edge(le))),function(Oe,ke,re){ke.points=ke.points.filter(function(Tr){return!Number.isNaN(Tr.y)});var we=ke.points,oe=(0,E.line)().x(function(Tr){return Tr.x}).y(function(Tr){return Tr.y}).curve(E.curveBasis),ce=Oe.append("path").attr("d",oe(we)).attr("id","edge"+i0).attr("class","transition"),Ye="";if(jt().state.arrowMarkerAbsolute&&(Ye=(Ye=(Ye=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),ce.attr("marker-end","url("+Ye+"#"+function(Tr){switch(Tr){case Yi.relationType.AGGREGATION:return"aggregation";case Yi.relationType.EXTENSION:return"extension";case Yi.relationType.COMPOSITION:return"composition";case Yi.relationType.DEPENDENCY:return"dependency"}}(Yi.relationType.DEPENDENCY)+"End)"),re.title!==void 0){for(var Ue=Oe.append("g").attr("class","stateLabel"),je=Bn.calcLabelPosition(ke.points),qe=je.x,be=je.y,Ge=ae.getRows(re.title),dn=0,tn=[],an=0,gn=0,Rn=0;Rn<=Ge.length;Rn++){var rr=Ue.append("text").attr("text-anchor","middle").text(Ge[Rn]).attr("x",qe).attr("y",be+dn),cr=rr.node().getBBox();if(an=Math.max(an,cr.width),gn=Math.min(gn,cr.x),_.info(cr.x,qe,be+dn),dn===0){var wn=rr.node().getBBox();dn=wn.height,_.info("Title height",dn,be)}tn.push(rr)}var ur=dn*Ge.length;if(Ge.length>1){var Er=(Ge.length-1)*dn*.5;tn.forEach(function(Tr,oi){return Tr.attr("y",be+oi*dn-Er)}),ur=dn*Ge.length}var Ir=Ue.node().getBBox();Ue.insert("rect",":first-child").attr("class","box").attr("x",qe-an/2-jt().state.padding/2).attr("y",be-ur/2-jt().state.padding/2-3.5).attr("width",an+jt().state.padding).attr("height",ur+jt().state.padding),_.info(Ir)}i0++}(y,Y.edge(le),Y.edge(le).relation))}),Se=Re.getBBox();var se={id:w||"root",label:w||"root",width:0,height:0};return se.width=Se.width+2*Ha.padding,se.height=Se.height+2*Ha.padding,_.debug("Doc rendered",se,Y),se};const a0=function(l,s){Ha=jt().state;var y,w=jt().securityLevel;w==="sandbox"&&(y=(0,E.select)("#i"+s));var S=w==="sandbox"?(0,E.select)(y.nodes()[0].contentDocument.body):(0,E.select)("body"),M=w==="sandbox"?y.nodes()[0].contentDocument:document;Qc.parser.yy.clear(),Qc.parser.parse(l),_.debug("Rendering diagram "+l);var N=S.select("[id='".concat(s,"']"));N.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"),new(Mi()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var B=Yi.getRootDoc();Pf(B,N,void 0,!1,S,M);var Y=Ha.padding,H=N.node().getBBox(),it=H.width+2*Y,ut=H.height+2*Y;Si(N,ut,1.75*it,Ha.useMaxWidth),N.attr("viewBox","".concat(H.x-Ha.padding," ").concat(H.y-Ha.padding," ")+it+" "+ut),Zi(Qc.parser.yy,N,s)};var Ta={},Mr={},Xl=function(l,s,y,w){if(y.id!=="root"){var S="rect";y.start===!0&&(S="start"),y.start===!1&&(S="end"),y.type!=="default"&&(S=y.type),Mr[y.id]||(Mr[y.id]={id:y.id,shape:S,description:ae.sanitizeText(y.id,jt()),classes:"statediagram-state"}),y.description&&(Array.isArray(Mr[y.id].description)?(Mr[y.id].shape="rectWithTitle",Mr[y.id].description.push(y.description)):Mr[y.id].description.length>0?(Mr[y.id].shape="rectWithTitle",Mr[y.id].description===y.id?Mr[y.id].description=[y.description]:Mr[y.id].description=[Mr[y.id].description,y.description]):(Mr[y.id].shape="rect",Mr[y.id].description=y.description),Mr[y.id].description=ae.sanitizeTextOrArray(Mr[y.id].description,jt())),Mr[y.id].description.length===1&&Mr[y.id].shape==="rectWithTitle"&&(Mr[y.id].shape="rect"),!Mr[y.id].type&&y.doc&&(_.info("Setting cluster for ",y.id,Kl(y)),Mr[y.id].type="group",Mr[y.id].dir=Kl(y),Mr[y.id].shape=y.type==="divider"?"divider":"roundedWithTitle",Mr[y.id].classes=Mr[y.id].classes+" "+(w?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var M={labelStyle:"",shape:Mr[y.id].shape,labelText:Mr[y.id].description,classes:Mr[y.id].classes,style:"",id:y.id,dir:Mr[y.id].dir,domId:"state-"+y.id+"-"+lo,type:Mr[y.id].type,padding:15};if(y.note){var N={labelStyle:"",shape:"note",labelText:y.note.text,classes:"statediagram-note",style:"",id:y.id+"----note-"+lo,domId:"state-"+y.id+"----note-"+lo,type:Mr[y.id].type,padding:15},B={labelStyle:"",shape:"noteGroup",labelText:y.note.text,classes:Mr[y.id].classes,style:"",id:y.id+"----parent",domId:"state-"+y.id+"----parent-"+lo,type:"group",padding:0};lo++,l.setNode(y.id+"----parent",B),l.setNode(N.id,N),l.setNode(y.id,M),l.setParent(y.id,y.id+"----parent"),l.setParent(N.id,y.id+"----parent");var Y=y.id,H=N.id;y.note.position==="left of"&&(Y=N.id,H=y.id),l.setEdge(Y,H,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else l.setNode(y.id,M)}s&&s.id!=="root"&&(_.trace("Setting node ",y.id," to be child of its parent ",s.id),l.setParent(y.id,s.id)),y.doc&&(_.trace("Adding nodes children "),oh(l,y,y.doc,!w))},lo=0,oh=function(l,s,y,w){_.trace("items",y),y.forEach(function(S){if(S.stmt==="state"||S.stmt==="default")Xl(l,s,S,w);else if(S.stmt==="relation"){Xl(l,s,S.state1,w),Xl(l,s,S.state2,w);var M={id:"edge"+lo,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:ae.sanitizeText(S.description,jt()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},N=S.state1.id,B=S.state2.id;l.setEdge(N,B,M,lo),lo++}})},Kl=function(l,s){var y=s||"TB";if(l.doc)for(var w=0;w<l.doc.length;w++){var S=l.doc[w];S.stmt==="dir"&&(y=S.value)}return y};const da=function(l){for(var s=Object.keys(l),y=0;y<s.length;y++)Ta[s[y]]=l[s[y]]};function ji(l){return function(s){if(Array.isArray(s))return Eo(s)}(l)||function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}(l)||function(s,y){if(s){if(typeof s=="string")return Eo(s,y);var w=Object.prototype.toString.call(s).slice(8,-1);return w==="Object"&&s.constructor&&(w=s.constructor.name),w==="Map"||w==="Set"?Array.from(s):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?Eo(s,y):void 0}}(l)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Eo(l,s){(s==null||s>l.length)&&(s=l.length);for(var y=0,w=new Array(s);y<s;y++)w[y]=l[y];return w}var sc="",sh=[],cc=[],lc=[],ch=function(){for(var l=!0,s=0;s<lc.length;s++)lc[s].processed,l=l&&lc[s].processed;return l};const o0={parseDirective:function(l,s,y){vi.parseDirective(this,l,s,y)},getConfig:function(){return jt().journey},clear:function(){sh.length=0,cc.length=0,sc="",lc.length=0,Hr()},setDiagramTitle:Za,getDiagramTitle:Io,setAccTitle:Cr,getAccTitle:ci,setAccDescription:li,getAccDescription:ii,addSection:function(l){sc=l,sh.push(l)},getSections:function(){return sh},getTasks:function(){for(var l=ch(),s=0;!l&&s<100;)l=ch(),s++;return cc.push.apply(cc,lc),cc},addTask:function(l,s){var y=s.substr(1).split(":"),w=0,S=[];y.length===1?(w=Number(y[0]),S=[]):(w=Number(y[0]),S=y[1].split(","));var M=S.map(function(B){return B.trim()}),N={section:sc,type:sc,people:M,task:l,score:w};lc.push(N)},addTaskOrg:function(l){var s={section:sc,type:sc,description:l,task:l,classes:[]};cc.push(s)},getActors:function(){return l=[],cc.forEach(function(s){s.people&&l.push.apply(l,ji(s.people))}),ji(new Set(l)).sort();var l}};var qo=h(9763),Uf=h.n(qo),s0=function(l,s){var y=l.append("rect");return y.attr("x",s.x),y.attr("y",s.y),y.attr("fill",s.fill),y.attr("stroke",s.stroke),y.attr("width",s.width),y.attr("height",s.height),y.attr("rx",s.rx),y.attr("ry",s.ry),s.class!==void 0&&y.attr("class",s.class),y},c0=function(l,s){var y=l.append("circle");return y.attr("cx",s.cx),y.attr("cy",s.cy),y.attr("class","actor-"+s.pos),y.attr("fill",s.fill),y.attr("stroke",s.stroke),y.attr("r",s.r),y.class!==void 0&&y.attr("class",y.class),s.title!==void 0&&y.append("title").text(s.title),y},l0=-1,u0=function(){function l(S,M,N,B,Y,H,it,ut){w(M.append("text").attr("x",N+Y/2).attr("y",B+H/2+5).style("font-color",ut).style("text-anchor","middle").text(S),it)}function s(S,M,N,B,Y,H,it,ut,gt){for(var st=ut.taskFontSize,Pt=ut.taskFontFamily,Dt=S.split(/<br\s*\/?>/gi),Xt=0;Xt<Dt.length;Xt++){var Mt=Xt*st-st*(Dt.length-1)/2,It=M.append("text").attr("x",N+Y/2).attr("y",B).attr("fill",gt).style("text-anchor","middle").style("font-size",st).style("font-family",Pt);It.append("tspan").attr("x",N+Y/2).attr("dy",Mt).text(Dt[Xt]),It.attr("y",B+H/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),w(It,it)}}function y(S,M,N,B,Y,H,it,ut){var gt=M.append("switch"),st=gt.append("foreignObject").attr("x",N).attr("y",B).attr("width",Y).attr("height",H).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");st.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(S),s(S,gt,N,B,Y,H,it,ut),w(st,it)}function w(S,M){for(var N in M)N in M&&S.attr(N,M[N])}return function(S){return S.textPlacement==="fo"?y:S.textPlacement==="old"?l:s}}();const zf=c0,Yf=function(l,s,y){var w=l.append("g"),S={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};S.x=s.x,S.y=s.y,S.fill=s.fill,S.width=y.width,S.height=y.height,S.class="journey-section section-type-"+s.num,S.rx=3,S.ry=3,s0(w,S),u0(y)(s.text,w,S.x,S.y,S.width,S.height,{class:"journey-section section-type-"+s.num},y,s.colour)},jf=function(l,s){var y=s.text.replace(/<br\s*\/?>/gi," "),w=l.append("text");w.attr("x",s.x),w.attr("y",s.y),w.attr("class","legend"),w.style("text-anchor",s.anchor),s.class!==void 0&&w.attr("class",s.class);var S=w.append("tspan");return S.attr("x",s.x+2*s.textMargin),S.text(y),w},Jl=function(l,s,y){var w,S,M,N=s.x+y.width/2,B=l.append("g");l0++,B.append("line").attr("id","task"+l0).attr("x1",N).attr("y1",s.y).attr("x2",N).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),w=B,S={cx:N,cy:300+30*(5-s.score),score:s.score},w.append("circle").attr("cx",S.cx).attr("cy",S.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(M=w.append("g")).append("circle").attr("cx",S.cx-5).attr("cy",S.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),M.append("circle").attr("cx",S.cx+5).attr("cy",S.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),S.score>3?function(it){var ut=(0,E.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);it.append("path").attr("class","mouth").attr("d",ut).attr("transform","translate("+S.cx+","+(S.cy+2)+")")}(M):S.score<3?function(it){var ut=(0,E.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);it.append("path").attr("class","mouth").attr("d",ut).attr("transform","translate("+S.cx+","+(S.cy+7)+")")}(M):function(it){it.append("line").attr("class","mouth").attr("stroke",2).attr("x1",S.cx-5).attr("y1",S.cy+7).attr("x2",S.cx+5).attr("y2",S.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(M);var Y={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};Y.x=s.x,Y.y=s.y,Y.fill=s.fill,Y.width=y.width,Y.height=y.height,Y.class="task task-type-"+s.num,Y.rx=3,Y.ry=3,s0(B,Y);var H=s.x+14;s.people.forEach(function(it){var ut=s.actors[it].color,gt={cx:H,cy:s.y,r:7,fill:ut,stroke:"#000",title:it,pos:s.actors[it].position};c0(B,gt),H+=10}),u0(y)(s.task,B,Y.x,Y.y,Y.width,Y.height,{class:"task"},y,s.colour)};qo.parser.yy=o0;var Ra={},Ql=jt().journey,Cs=jt().journey.leftMargin,na={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(l,s,y,w){l[s]===void 0?l[s]=y:l[s]=w(y,l[s])},updateBounds:function(l,s,y,w){var S=jt().journey,M=this,N=0;this.sequenceItems.forEach(function(B){N++;var Y=M.sequenceItems.length-N+1;M.updateVal(B,"starty",s-Y*S.boxMargin,Math.min),M.updateVal(B,"stopy",w+Y*S.boxMargin,Math.max),M.updateVal(na.data,"startx",l-Y*S.boxMargin,Math.min),M.updateVal(na.data,"stopx",y+Y*S.boxMargin,Math.max),M.updateVal(B,"startx",l-Y*S.boxMargin,Math.min),M.updateVal(B,"stopx",y+Y*S.boxMargin,Math.max),M.updateVal(na.data,"starty",s-Y*S.boxMargin,Math.min),M.updateVal(na.data,"stopy",w+Y*S.boxMargin,Math.max)})},insert:function(l,s,y,w){var S=Math.min(l,y),M=Math.max(l,y),N=Math.min(s,w),B=Math.max(s,w);this.updateVal(na.data,"startx",S,Math.min),this.updateVal(na.data,"starty",N,Math.min),this.updateVal(na.data,"stopx",M,Math.max),this.updateVal(na.data,"stopy",B,Math.max),this.updateBounds(S,N,M,B)},bumpVerticalPos:function(l){this.verticalPos=this.verticalPos+l,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},uc=Ql.sectionFills,lh=Ql.sectionColours;const uh=function(l){Object.keys(l).forEach(function(s){Ql[s]=l[s]})},h0=function(l,s){var y=jt().journey;qo.parser.yy.clear(),qo.parser.parse(l+`
|
|
`);var w,S=jt().securityLevel;S==="sandbox"&&(w=(0,E.select)("#i"+s));var M=S==="sandbox"?(0,E.select)(w.nodes()[0].contentDocument.body):(0,E.select)("body");S==="sandbox"&&w.nodes()[0].contentDocument,na.init();var N=M.select("#"+s);N.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),N.append("defs").append("marker").attr("id","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");var B=qo.parser.yy.getTasks(),Y=qo.parser.yy.getDiagramTitle(),H=qo.parser.yy.getActors();for(var it in Ra)delete Ra[it];var ut=0;H.forEach(function(Xt){Ra[Xt]={color:y.actorColours[ut%y.actorColours.length],position:ut},ut++}),function(Xt){var Mt=jt().journey,It=60;Object.keys(Ra).forEach(function($t){var ee=Ra[$t].color,Re={cx:20,cy:It,r:7,fill:ee,stroke:"#000",pos:Ra[$t].position};zf(Xt,Re);var Se={x:40,y:It+7,fill:"#666",text:$t,textMargin:5|Mt.boxTextMargin};jf(Xt,Se),It+=20})}(N),na.insert(0,0,Cs,50*Object.keys(Ra).length),function(Xt,Mt,It){for(var $t=jt().journey,ee="",Re=It+(2*$t.height+$t.diagramMarginY),Se=0,se="#CCC",le="black",Oe=0,ke=0;ke<Mt.length;ke++){var re=Mt[ke];if(ee!==re.section){se=uc[Se%uc.length],Oe=Se%uc.length,le=lh[Se%lh.length];var we={x:ke*$t.taskMargin+ke*$t.width+Cs,y:50,text:re.section,fill:se,num:Oe,colour:le};Yf(Xt,we,$t),ee=re.section,Se++}var oe=re.people.reduce(function(ce,Ye){return Ra[Ye]&&(ce[Ye]=Ra[Ye]),ce},{});re.x=ke*$t.taskMargin+ke*$t.width+Cs,re.y=Re,re.width=$t.diagramMarginX,re.height=$t.diagramMarginY,re.colour=le,re.fill=se,re.num=Oe,re.actors=oe,Jl(Xt,re,$t),na.insert(re.x,re.y,re.x+re.width+$t.taskMargin,450)}}(N,B,0);var gt=na.getBounds();Y&&N.append("text").text(Y).attr("x",Cs).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var st=gt.stopy-gt.starty+2*y.diagramMarginY,Pt=Cs+gt.stopx+2*y.diagramMarginX;Si(N,st,Pt,y.useMaxWidth),N.append("line").attr("x1",Cs).attr("y1",4*y.height).attr("x2",Pt-Cs-4).attr("y2",4*y.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var Dt=Y?70:0;N.attr("viewBox","".concat(gt.startx," -25 ").concat(Pt," ").concat(st+Dt)),N.attr("preserveAspectRatio","xMinYMin meet"),N.attr("height",st+Dt+25),Zi(qo.parser.yy,N,s)},hc=function(l){return`g.classGroup text {
|
|
fill: `.concat(l.nodeBorder,`;
|
|
fill: `).concat(l.classText,`;
|
|
stroke: none;
|
|
font-family: `).concat(l.fontFamily,`;
|
|
font-size: 10px;
|
|
|
|
.title {
|
|
font-weight: bolder;
|
|
}
|
|
|
|
}
|
|
|
|
.nodeLabel, .edgeLabel {
|
|
color: `).concat(l.classText,`;
|
|
}
|
|
.edgeLabel .label rect {
|
|
fill: `).concat(l.mainBkg,`;
|
|
}
|
|
.label text {
|
|
fill: `).concat(l.classText,`;
|
|
}
|
|
.edgeLabel .label span {
|
|
background: `).concat(l.mainBkg,`;
|
|
}
|
|
|
|
.classTitle {
|
|
font-weight: bolder;
|
|
}
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(l.mainBkg,`;
|
|
stroke: `).concat(l.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
|
|
.divider {
|
|
stroke: `).concat(l.nodeBorder,`;
|
|
stroke: 1;
|
|
}
|
|
|
|
g.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
g.classGroup rect {
|
|
fill: `).concat(l.mainBkg,`;
|
|
stroke: `).concat(l.nodeBorder,`;
|
|
}
|
|
|
|
g.classGroup line {
|
|
stroke: `).concat(l.nodeBorder,`;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.classLabel .box {
|
|
stroke: none;
|
|
stroke-width: 0;
|
|
fill: `).concat(l.mainBkg,`;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.classLabel .label {
|
|
fill: `).concat(l.nodeBorder,`;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.relation {
|
|
stroke: `).concat(l.lineColor,`;
|
|
stroke-width: 1;
|
|
fill: none;
|
|
}
|
|
|
|
.dashed-line{
|
|
stroke-dasharray: 3;
|
|
}
|
|
|
|
#compositionStart, .composition {
|
|
fill: `).concat(l.lineColor,` !important;
|
|
stroke: `).concat(l.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#compositionEnd, .composition {
|
|
fill: `).concat(l.lineColor,` !important;
|
|
stroke: `).concat(l.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#dependencyStart, .dependency {
|
|
fill: `).concat(l.lineColor,` !important;
|
|
stroke: `).concat(l.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#dependencyStart, .dependency {
|
|
fill: `).concat(l.lineColor,` !important;
|
|
stroke: `).concat(l.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#extensionStart, .extension {
|
|
fill: `).concat(l.lineColor,` !important;
|
|
stroke: `).concat(l.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#extensionEnd, .extension {
|
|
fill: `).concat(l.lineColor,` !important;
|
|
stroke: `).concat(l.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#aggregationStart, .aggregation {
|
|
fill: `).concat(l.mainBkg,` !important;
|
|
stroke: `).concat(l.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
#aggregationEnd, .aggregation {
|
|
fill: `).concat(l.mainBkg,` !important;
|
|
stroke: `).concat(l.lineColor,` !important;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.edgeTerminals {
|
|
font-size: 11px;
|
|
}
|
|
|
|
`)},el=function(l){return`.label {
|
|
font-family: `.concat(l.fontFamily,`;
|
|
color: `).concat(l.nodeTextColor||l.textColor,`;
|
|
}
|
|
.cluster-label text {
|
|
fill: `).concat(l.titleColor,`;
|
|
}
|
|
.cluster-label span {
|
|
color: `).concat(l.titleColor,`;
|
|
}
|
|
|
|
.label text,span {
|
|
fill: `).concat(l.nodeTextColor||l.textColor,`;
|
|
color: `).concat(l.nodeTextColor||l.textColor,`;
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(l.mainBkg,`;
|
|
stroke: `).concat(l.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.node .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: `).concat(l.arrowheadColor,`;
|
|
}
|
|
|
|
.edgePath .path {
|
|
stroke: `).concat(l.lineColor,`;
|
|
stroke-width: 2.0px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: `).concat(l.lineColor,`;
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: `).concat(l.edgeLabelBackground,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
background-color: `).concat(l.edgeLabelBackground,`;
|
|
fill: `).concat(l.edgeLabelBackground,`;
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
.cluster rect {
|
|
fill: `).concat(l.clusterBkg,`;
|
|
stroke: `).concat(l.clusterBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster text {
|
|
fill: `).concat(l.titleColor,`;
|
|
}
|
|
|
|
.cluster span {
|
|
color: `).concat(l.titleColor,`;
|
|
}
|
|
/* .cluster div {
|
|
color: `).concat(l.titleColor,`;
|
|
} */
|
|
|
|
div.mermaidTooltip {
|
|
position: absolute;
|
|
text-align: center;
|
|
max-width: 200px;
|
|
padding: 2px;
|
|
font-family: `).concat(l.fontFamily,`;
|
|
font-size: 12px;
|
|
background: `).concat(l.tertiaryColor,`;
|
|
border: 1px solid `).concat(l.border2,`;
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
`)},tu=function(l){return`
|
|
defs #statediagram-barbEnd {
|
|
fill: `.concat(l.transitionColor,`;
|
|
stroke: `).concat(l.transitionColor,`;
|
|
}
|
|
g.stateGroup text {
|
|
fill: `).concat(l.nodeBorder,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
}
|
|
g.stateGroup text {
|
|
fill: `).concat(l.textColor,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
|
|
}
|
|
g.stateGroup .state-title {
|
|
font-weight: bolder;
|
|
fill: `).concat(l.stateLabelColor,`;
|
|
}
|
|
|
|
g.stateGroup rect {
|
|
fill: `).concat(l.mainBkg,`;
|
|
stroke: `).concat(l.nodeBorder,`;
|
|
}
|
|
|
|
g.stateGroup line {
|
|
stroke: `).concat(l.lineColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.transition {
|
|
stroke: `).concat(l.transitionColor,`;
|
|
stroke-width: 1;
|
|
fill: none;
|
|
}
|
|
|
|
.stateGroup .composit {
|
|
fill: `).concat(l.background,`;
|
|
border-bottom: 1px
|
|
}
|
|
|
|
.stateGroup .alt-composit {
|
|
fill: #e0e0e0;
|
|
border-bottom: 1px
|
|
}
|
|
|
|
.state-note {
|
|
stroke: `).concat(l.noteBorderColor,`;
|
|
fill: `).concat(l.noteBkgColor,`;
|
|
|
|
text {
|
|
fill: `).concat(l.noteTextColor,`;
|
|
stroke: none;
|
|
font-size: 10px;
|
|
}
|
|
}
|
|
|
|
.stateLabel .box {
|
|
stroke: none;
|
|
stroke-width: 0;
|
|
fill: `).concat(l.mainBkg,`;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.edgeLabel .label rect {
|
|
fill: `).concat(l.labelBackgroundColor,`;
|
|
opacity: 0.5;
|
|
}
|
|
.edgeLabel .label text {
|
|
fill: `).concat(l.transitionLabelColor||l.tertiaryTextColor,`;
|
|
}
|
|
.label div .edgeLabel {
|
|
color: `).concat(l.transitionLabelColor||l.tertiaryTextColor,`;
|
|
}
|
|
|
|
.stateLabel text {
|
|
fill: `).concat(l.stateLabelColor,`;
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.node circle.state-start {
|
|
fill: `).concat(l.specialStateColor,`;
|
|
stroke: `).concat(l.specialStateColor,`;
|
|
}
|
|
|
|
.node .fork-join {
|
|
fill: `).concat(l.specialStateColor,`;
|
|
stroke: `).concat(l.specialStateColor,`;
|
|
}
|
|
|
|
.node circle.state-end {
|
|
fill: `).concat(l.innerEndBackground,`;
|
|
stroke: `).concat(l.background,`;
|
|
stroke-width: 1.5
|
|
}
|
|
.end-state-inner {
|
|
fill: `).concat(l.compositeBackground||l.background,`;
|
|
// stroke: `).concat(l.background,`;
|
|
stroke-width: 1.5
|
|
}
|
|
|
|
.node rect {
|
|
fill: `).concat(l.stateBkg||l.mainBkg,`;
|
|
stroke: `).concat(l.stateBorder||l.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
.node polygon {
|
|
fill: `).concat(l.mainBkg,`;
|
|
stroke: `).concat(l.stateBorder||l.nodeBorder,`;;
|
|
stroke-width: 1px;
|
|
}
|
|
#statediagram-barbEnd {
|
|
fill: `).concat(l.lineColor,`;
|
|
}
|
|
|
|
.statediagram-cluster rect {
|
|
fill: `).concat(l.compositeTitleBackground,`;
|
|
stroke: `).concat(l.stateBorder||l.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.cluster-label, .nodeLabel {
|
|
color: `).concat(l.stateLabelColor,`;
|
|
}
|
|
|
|
.statediagram-cluster rect.outer {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-state .divider {
|
|
stroke: `).concat(l.stateBorder||l.nodeBorder,`;
|
|
}
|
|
|
|
.statediagram-state .title-state {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-cluster.statediagram-cluster .inner {
|
|
fill: `).concat(l.compositeBackground||l.background,`;
|
|
}
|
|
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
fill: `).concat(l.altBackground?l.altBackground:"#efefef",`;
|
|
}
|
|
|
|
.statediagram-cluster .inner {
|
|
rx:0;
|
|
ry:0;
|
|
}
|
|
|
|
.statediagram-state rect.basic {
|
|
rx: 5px;
|
|
ry: 5px;
|
|
}
|
|
.statediagram-state rect.divider {
|
|
stroke-dasharray: 10,10;
|
|
fill: `).concat(l.altBackground?l.altBackground:"#efefef",`;
|
|
}
|
|
|
|
.note-edge {
|
|
stroke-dasharray: 5;
|
|
}
|
|
|
|
.statediagram-note rect {
|
|
fill: `).concat(l.noteBkgColor,`;
|
|
stroke: `).concat(l.noteBorderColor,`;
|
|
stroke-width: 1px;
|
|
rx: 0;
|
|
ry: 0;
|
|
}
|
|
.statediagram-note rect {
|
|
fill: `).concat(l.noteBkgColor,`;
|
|
stroke: `).concat(l.noteBorderColor,`;
|
|
stroke-width: 1px;
|
|
rx: 0;
|
|
ry: 0;
|
|
}
|
|
|
|
.statediagram-note text {
|
|
fill: `).concat(l.noteTextColor,`;
|
|
}
|
|
|
|
.statediagram-note .nodeLabel {
|
|
color: `).concat(l.noteTextColor,`;
|
|
}
|
|
.statediagram .edgeLabel {
|
|
color: red; // `).concat(l.noteTextColor,`;
|
|
}
|
|
|
|
#dependencyStart, #dependencyEnd {
|
|
fill: `).concat(l.lineColor,`;
|
|
stroke: `).concat(l.lineColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
`)};var f0={flowchart:el,"flowchart-v2":el,sequence:function(l){return`.actor {
|
|
stroke: `.concat(l.actorBorder,`;
|
|
fill: `).concat(l.actorBkg,`;
|
|
}
|
|
|
|
text.actor > tspan {
|
|
fill: `).concat(l.actorTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.actor-line {
|
|
stroke: `).concat(l.actorLineColor,`;
|
|
}
|
|
|
|
.messageLine0 {
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: none;
|
|
stroke: `).concat(l.signalColor,`;
|
|
}
|
|
|
|
.messageLine1 {
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: 2, 2;
|
|
stroke: `).concat(l.signalColor,`;
|
|
}
|
|
|
|
#arrowhead path {
|
|
fill: `).concat(l.signalColor,`;
|
|
stroke: `).concat(l.signalColor,`;
|
|
}
|
|
|
|
.sequenceNumber {
|
|
fill: `).concat(l.sequenceNumberColor,`;
|
|
}
|
|
|
|
#sequencenumber {
|
|
fill: `).concat(l.signalColor,`;
|
|
}
|
|
|
|
#crosshead path {
|
|
fill: `).concat(l.signalColor,`;
|
|
stroke: `).concat(l.signalColor,`;
|
|
}
|
|
|
|
.messageText {
|
|
fill: `).concat(l.signalTextColor,`;
|
|
stroke: `).concat(l.signalTextColor,`;
|
|
}
|
|
|
|
.labelBox {
|
|
stroke: `).concat(l.labelBoxBorderColor,`;
|
|
fill: `).concat(l.labelBoxBkgColor,`;
|
|
}
|
|
|
|
.labelText, .labelText > tspan {
|
|
fill: `).concat(l.labelTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.loopText, .loopText > tspan {
|
|
fill: `).concat(l.loopTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.loopLine {
|
|
stroke-width: 2px;
|
|
stroke-dasharray: 2, 2;
|
|
stroke: `).concat(l.labelBoxBorderColor,`;
|
|
fill: `).concat(l.labelBoxBorderColor,`;
|
|
}
|
|
|
|
.note {
|
|
//stroke: #decc93;
|
|
stroke: `).concat(l.noteBorderColor,`;
|
|
fill: `).concat(l.noteBkgColor,`;
|
|
}
|
|
|
|
.noteText, .noteText > tspan {
|
|
fill: `).concat(l.noteTextColor,`;
|
|
stroke: none;
|
|
}
|
|
|
|
.activation0 {
|
|
fill: `).concat(l.activationBkgColor,`;
|
|
stroke: `).concat(l.activationBorderColor,`;
|
|
}
|
|
|
|
.activation1 {
|
|
fill: `).concat(l.activationBkgColor,`;
|
|
stroke: `).concat(l.activationBorderColor,`;
|
|
}
|
|
|
|
.activation2 {
|
|
fill: `).concat(l.activationBkgColor,`;
|
|
stroke: `).concat(l.activationBorderColor,`;
|
|
}
|
|
|
|
.actorPopupMenu {
|
|
position: absolute;
|
|
}
|
|
|
|
.actorPopupMenuPanel {
|
|
position: absolute;
|
|
fill: `).concat(l.actorBkg,`;
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|
}
|
|
.actor-man line {
|
|
stroke: `).concat(l.actorBorder,`;
|
|
fill: `).concat(l.actorBkg,`;
|
|
}
|
|
.actor-man circle, line {
|
|
stroke: `).concat(l.actorBorder,`;
|
|
fill: `).concat(l.actorBkg,`;
|
|
stroke-width: 2px;
|
|
}
|
|
`)},gantt:function(l){return`
|
|
.mermaid-main-font {
|
|
font-family: "trebuchet ms", verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
.exclude-range {
|
|
fill: `.concat(l.excludeBkgColor,`;
|
|
}
|
|
|
|
.section {
|
|
stroke: none;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.section0 {
|
|
fill: `).concat(l.sectionBkgColor,`;
|
|
}
|
|
|
|
.section2 {
|
|
fill: `).concat(l.sectionBkgColor2,`;
|
|
}
|
|
|
|
.section1,
|
|
.section3 {
|
|
fill: `).concat(l.altSectionBkgColor,`;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.sectionTitle0 {
|
|
fill: `).concat(l.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle1 {
|
|
fill: `).concat(l.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle2 {
|
|
fill: `).concat(l.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle3 {
|
|
fill: `).concat(l.titleColor,`;
|
|
}
|
|
|
|
.sectionTitle {
|
|
text-anchor: start;
|
|
// font-size: `).concat(l.ganttFontSize,`;
|
|
// text-height: 14px;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
|
|
}
|
|
|
|
|
|
/* Grid and axis */
|
|
|
|
.grid .tick {
|
|
stroke: `).concat(l.gridColor,`;
|
|
opacity: 0.8;
|
|
shape-rendering: crispEdges;
|
|
text {
|
|
font-family: `).concat(l.fontFamily,`;
|
|
fill: `).concat(l.textColor,`;
|
|
}
|
|
}
|
|
|
|
.grid path {
|
|
stroke-width: 0;
|
|
}
|
|
|
|
|
|
/* Today line */
|
|
|
|
.today {
|
|
fill: none;
|
|
stroke: `).concat(l.todayLineColor,`;
|
|
stroke-width: 2px;
|
|
}
|
|
|
|
|
|
/* Task styling */
|
|
|
|
/* Default task */
|
|
|
|
.task {
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.taskText {
|
|
text-anchor: middle;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
|
|
// .taskText:not([font-size]) {
|
|
// font-size: `).concat(l.ganttFontSize,`;
|
|
// }
|
|
|
|
.taskTextOutsideRight {
|
|
fill: `).concat(l.taskTextDarkColor,`;
|
|
text-anchor: start;
|
|
// font-size: `).concat(l.ganttFontSize,`;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
|
|
}
|
|
|
|
.taskTextOutsideLeft {
|
|
fill: `).concat(l.taskTextDarkColor,`;
|
|
text-anchor: end;
|
|
// font-size: `).concat(l.ganttFontSize,`;
|
|
}
|
|
|
|
/* Special case clickable */
|
|
.task.clickable {
|
|
cursor: pointer;
|
|
}
|
|
.taskText.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(l.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideLeft.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(l.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideRight.clickable {
|
|
cursor: pointer;
|
|
fill: `).concat(l.taskTextClickableColor,` !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Specific task settings for the sections*/
|
|
|
|
.taskText0,
|
|
.taskText1,
|
|
.taskText2,
|
|
.taskText3 {
|
|
fill: `).concat(l.taskTextColor,`;
|
|
}
|
|
|
|
.task0,
|
|
.task1,
|
|
.task2,
|
|
.task3 {
|
|
fill: `).concat(l.taskBkgColor,`;
|
|
stroke: `).concat(l.taskBorderColor,`;
|
|
}
|
|
|
|
.taskTextOutside0,
|
|
.taskTextOutside2
|
|
{
|
|
fill: `).concat(l.taskTextOutsideColor,`;
|
|
}
|
|
|
|
.taskTextOutside1,
|
|
.taskTextOutside3 {
|
|
fill: `).concat(l.taskTextOutsideColor,`;
|
|
}
|
|
|
|
|
|
/* Active task */
|
|
|
|
.active0,
|
|
.active1,
|
|
.active2,
|
|
.active3 {
|
|
fill: `).concat(l.activeTaskBkgColor,`;
|
|
stroke: `).concat(l.activeTaskBorderColor,`;
|
|
}
|
|
|
|
.activeText0,
|
|
.activeText1,
|
|
.activeText2,
|
|
.activeText3 {
|
|
fill: `).concat(l.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
|
|
/* Completed task */
|
|
|
|
.done0,
|
|
.done1,
|
|
.done2,
|
|
.done3 {
|
|
stroke: `).concat(l.doneTaskBorderColor,`;
|
|
fill: `).concat(l.doneTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneText0,
|
|
.doneText1,
|
|
.doneText2,
|
|
.doneText3 {
|
|
fill: `).concat(l.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
|
|
/* Tasks on the critical line */
|
|
|
|
.crit0,
|
|
.crit1,
|
|
.crit2,
|
|
.crit3 {
|
|
stroke: `).concat(l.critBorderColor,`;
|
|
fill: `).concat(l.critBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.activeCrit0,
|
|
.activeCrit1,
|
|
.activeCrit2,
|
|
.activeCrit3 {
|
|
stroke: `).concat(l.critBorderColor,`;
|
|
fill: `).concat(l.activeTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneCrit0,
|
|
.doneCrit1,
|
|
.doneCrit2,
|
|
.doneCrit3 {
|
|
stroke: `).concat(l.critBorderColor,`;
|
|
fill: `).concat(l.doneTaskBkgColor,`;
|
|
stroke-width: 2;
|
|
cursor: pointer;
|
|
shape-rendering: crispEdges;
|
|
}
|
|
|
|
.milestone {
|
|
transform: rotate(45deg) scale(0.8,0.8);
|
|
}
|
|
|
|
.milestoneText {
|
|
font-style: italic;
|
|
}
|
|
.doneCritText0,
|
|
.doneCritText1,
|
|
.doneCritText2,
|
|
.doneCritText3 {
|
|
fill: `).concat(l.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
.activeCritText0,
|
|
.activeCritText1,
|
|
.activeCritText2,
|
|
.activeCritText3 {
|
|
fill: `).concat(l.taskTextDarkColor,` !important;
|
|
}
|
|
|
|
.titleText {
|
|
text-anchor: middle;
|
|
font-size: 18px;
|
|
fill: `).concat(l.textColor,` ;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
`)},classDiagram:hc,"classDiagram-v2":hc,class:hc,stateDiagram:tu,state:tu,gitGraph:function(l){return`
|
|
.commit-id,
|
|
.commit-msg,
|
|
.branch-label {
|
|
fill: lightgrey;
|
|
color: lightgrey;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
}
|
|
`.concat([0,1,2,3,4,5,6,7].map(function(s){return`
|
|
.branch-label`.concat(s," { fill: ").concat(l["gitBranchLabel"+s],`; }
|
|
.commit`).concat(s," { stroke: ").concat(l["git"+s],"; fill: ").concat(l["git"+s],`; }
|
|
.commit-highlight`).concat(s," { stroke: ").concat(l["gitInv"+s],"; fill: ").concat(l["gitInv"+s],`; }
|
|
.label`).concat(s," { fill: ").concat(l["git"+s],`; }
|
|
.arrow`).concat(s," { stroke: ").concat(l["git"+s],`; }
|
|
`)}).join(`
|
|
`),`
|
|
|
|
.branch {
|
|
stroke-width: 1;
|
|
stroke: `).concat(l.lineColor,`;
|
|
stroke-dasharray: 2;
|
|
}
|
|
.commit-label { font-size: `).concat(l.commitLabelFontSize,"; fill: ").concat(l.commitLabelColor,`;}
|
|
.commit-label-bkg { font-size: `).concat(l.commitLabelFontSize,"; fill: ").concat(l.commitLabelBackground,`; opacity: 0.5; }
|
|
.tag-label { font-size: `).concat(l.tagLabelFontSize,"; fill: ").concat(l.tagLabelColor,`;}
|
|
.tag-label-bkg { fill: `).concat(l.tagLabelBackground,"; stroke: ").concat(l.tagLabelBorder,`; }
|
|
.tag-hole { fill: `).concat(l.textColor,`; }
|
|
|
|
.commit-merge {
|
|
stroke: `).concat(l.primaryColor,`;
|
|
fill: `).concat(l.primaryColor,`;
|
|
}
|
|
.commit-reverse {
|
|
stroke: `).concat(l.primaryColor,`;
|
|
fill: `).concat(l.primaryColor,`;
|
|
stroke-width: 3;
|
|
}
|
|
.commit-highlight-outer {
|
|
}
|
|
.commit-highlight-inner {
|
|
stroke: `).concat(l.primaryColor,`;
|
|
fill: `).concat(l.primaryColor,`;
|
|
}
|
|
|
|
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
}
|
|
`)},info:function(){return""},pie:function(l){return`
|
|
.pieCircle{
|
|
stroke: `.concat(l.pieStrokeColor,`;
|
|
stroke-width : `).concat(l.pieStrokeWidth,`;
|
|
opacity : `).concat(l.pieOpacity,`;
|
|
}
|
|
.pieTitleText {
|
|
text-anchor: middle;
|
|
font-size: `).concat(l.pieTitleTextSize,`;
|
|
fill: `).concat(l.pieTitleTextColor,`;
|
|
font-family: `).concat(l.fontFamily,`;
|
|
}
|
|
.slice {
|
|
font-family: `).concat(l.fontFamily,`;
|
|
fill: `).concat(l.pieSectionTextColor,`;
|
|
font-size:`).concat(l.pieSectionTextSize,`;
|
|
// fill: white;
|
|
}
|
|
.legend text {
|
|
fill: `).concat(l.pieLegendTextColor,`;
|
|
font-family: `).concat(l.fontFamily,`;
|
|
font-size: `).concat(l.pieLegendTextSize,`;
|
|
}
|
|
`)},er:function(l){return`
|
|
.entityBox {
|
|
fill: `.concat(l.mainBkg,`;
|
|
stroke: `).concat(l.nodeBorder,`;
|
|
}
|
|
|
|
.attributeBoxOdd {
|
|
fill: #ffffff;
|
|
stroke: `).concat(l.nodeBorder,`;
|
|
}
|
|
|
|
.attributeBoxEven {
|
|
fill: #f2f2f2;
|
|
stroke: `).concat(l.nodeBorder,`;
|
|
}
|
|
|
|
.relationshipLabelBox {
|
|
fill: `).concat(l.tertiaryColor,`;
|
|
opacity: 0.7;
|
|
background-color: `).concat(l.tertiaryColor,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.relationshipLine {
|
|
stroke: `).concat(l.lineColor,`;
|
|
}
|
|
`)},journey:function(l){return`.label {
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
color: `.concat(l.textColor,`;
|
|
}
|
|
.mouth {
|
|
stroke: #666;
|
|
}
|
|
|
|
line {
|
|
stroke: `).concat(l.textColor,`
|
|
}
|
|
|
|
.legend {
|
|
fill: `).concat(l.textColor,`;
|
|
}
|
|
|
|
.label text {
|
|
fill: #333;
|
|
}
|
|
.label {
|
|
color: `).concat(l.textColor,`
|
|
}
|
|
|
|
.face {
|
|
`).concat(l.faceColor?"fill: ".concat(l.faceColor):"fill: #FFF8DC",`;
|
|
stroke: #999;
|
|
}
|
|
|
|
.node rect,
|
|
.node circle,
|
|
.node ellipse,
|
|
.node polygon,
|
|
.node path {
|
|
fill: `).concat(l.mainBkg,`;
|
|
stroke: `).concat(l.nodeBorder,`;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.node .label {
|
|
text-align: center;
|
|
}
|
|
.node.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.arrowheadPath {
|
|
fill: `).concat(l.arrowheadColor,`;
|
|
}
|
|
|
|
.edgePath .path {
|
|
stroke: `).concat(l.lineColor,`;
|
|
stroke-width: 1.5px;
|
|
}
|
|
|
|
.flowchart-link {
|
|
stroke: `).concat(l.lineColor,`;
|
|
fill: none;
|
|
}
|
|
|
|
.edgeLabel {
|
|
background-color: `).concat(l.edgeLabelBackground,`;
|
|
rect {
|
|
opacity: 0.5;
|
|
}
|
|
text-align: center;
|
|
}
|
|
|
|
.cluster rect {
|
|
}
|
|
|
|
.cluster text {
|
|
fill: `).concat(l.titleColor,`;
|
|
}
|
|
|
|
div.mermaidTooltip {
|
|
position: absolute;
|
|
text-align: center;
|
|
max-width: 200px;
|
|
padding: 2px;
|
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
font-family: var(--mermaid-font-family);
|
|
font-size: 12px;
|
|
background: `).concat(l.tertiaryColor,`;
|
|
border: 1px solid `).concat(l.border2,`;
|
|
border-radius: 2px;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
}
|
|
|
|
.task-type-0, .section-type-0 {
|
|
`).concat(l.fillType0?"fill: ".concat(l.fillType0):"",`;
|
|
}
|
|
.task-type-1, .section-type-1 {
|
|
`).concat(l.fillType0?"fill: ".concat(l.fillType1):"",`;
|
|
}
|
|
.task-type-2, .section-type-2 {
|
|
`).concat(l.fillType0?"fill: ".concat(l.fillType2):"",`;
|
|
}
|
|
.task-type-3, .section-type-3 {
|
|
`).concat(l.fillType0?"fill: ".concat(l.fillType3):"",`;
|
|
}
|
|
.task-type-4, .section-type-4 {
|
|
`).concat(l.fillType0?"fill: ".concat(l.fillType4):"",`;
|
|
}
|
|
.task-type-5, .section-type-5 {
|
|
`).concat(l.fillType0?"fill: ".concat(l.fillType5):"",`;
|
|
}
|
|
.task-type-6, .section-type-6 {
|
|
`).concat(l.fillType0?"fill: ".concat(l.fillType6):"",`;
|
|
}
|
|
.task-type-7, .section-type-7 {
|
|
`).concat(l.fillType0?"fill: ".concat(l.fillType7):"",`;
|
|
}
|
|
|
|
.actor-0 {
|
|
`).concat(l.actor0?"fill: ".concat(l.actor0):"",`;
|
|
}
|
|
.actor-1 {
|
|
`).concat(l.actor1?"fill: ".concat(l.actor1):"",`;
|
|
}
|
|
.actor-2 {
|
|
`).concat(l.actor2?"fill: ".concat(l.actor2):"",`;
|
|
}
|
|
.actor-3 {
|
|
`).concat(l.actor3?"fill: ".concat(l.actor3):"",`;
|
|
}
|
|
.actor-4 {
|
|
`).concat(l.actor4?"fill: ".concat(l.actor4):"",`;
|
|
}
|
|
.actor-5 {
|
|
`).concat(l.actor5?"fill: ".concat(l.actor5):"",`;
|
|
}
|
|
|
|
}
|
|
`)},requirement:function(l){return`
|
|
|
|
marker {
|
|
fill: `.concat(l.relationColor,`;
|
|
stroke: `).concat(l.relationColor,`;
|
|
}
|
|
|
|
marker.cross {
|
|
stroke: `).concat(l.lineColor,`;
|
|
}
|
|
|
|
svg {
|
|
font-family: `).concat(l.fontFamily,`;
|
|
font-size: `).concat(l.fontSize,`;
|
|
}
|
|
|
|
.reqBox {
|
|
fill: `).concat(l.requirementBackground,`;
|
|
fill-opacity: 100%;
|
|
stroke: `).concat(l.requirementBorderColor,`;
|
|
stroke-width: `).concat(l.requirementBorderSize,`;
|
|
}
|
|
|
|
.reqTitle, .reqLabel{
|
|
fill: `).concat(l.requirementTextColor,`;
|
|
}
|
|
.reqLabelBox {
|
|
fill: `).concat(l.relationLabelBackground,`;
|
|
fill-opacity: 100%;
|
|
}
|
|
|
|
.req-title-line {
|
|
stroke: `).concat(l.requirementBorderColor,`;
|
|
stroke-width: `).concat(l.requirementBorderSize,`;
|
|
}
|
|
.relationshipLine {
|
|
stroke: `).concat(l.relationColor,`;
|
|
stroke-width: 1;
|
|
}
|
|
.relationshipLabel {
|
|
fill: `).concat(l.relationLabelColor,`;
|
|
}
|
|
|
|
`)},c4:function(l){return`.person {
|
|
stroke: `.concat(l.personBorder,`;
|
|
fill: `).concat(l.personBkg,`;
|
|
}
|
|
`)}};function eu(l){return eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},eu(l)}var hh=function(l){var s=l;return(s=(s=s.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},fc={};function fh(l){var s;p1(l.flowchart),y1(l.flowchart),l.sequenceDiagram!==void 0&&As.setConf($r(l.sequence,l.sequenceDiagram)),As.setConf(l.sequence),Fu(l.gantt),_u(l.class),l.state,da(l.state),Hu(l.class),a1(l.er),uh(l.journey),D1(l.requirement),s=l.class,Object.keys(s).forEach(function(y){s[y]})}var d0=Object.freeze({render:function(l,s,y,w){Zt();var S=s.replace(/\r\n?/g,`
|
|
`),M=Bn.detectInit(S);M&&(ri(M),No(M));var N=jt();_.debug(N),s.length>N.maxTextSize&&(S="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var B=(0,E.select)("body");if(w!==void 0){if(N.securityLevel==="sandbox"){var Y=(0,E.select)("body").append("iframe").attr("id","i"+l).attr("style","width: 100%; height: 100%;").attr("sandbox","");(B=(0,E.select)(Y.nodes()[0].contentDocument.body)).node().style.margin=0}if(w.innerHTML="",N.securityLevel==="sandbox"){var H=(0,E.select)(w).append("iframe").attr("id","i"+l).attr("style","width: 100%; height: 100%;").attr("sandbox","");(B=(0,E.select)(H.nodes()[0].contentDocument.body)).node().style.margin=0}else B=(0,E.select)(w);B.append("div").attr("id","d"+l).attr("style","font-family: "+N.fontFamily).append("svg").attr("id",l).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}else{var it,ut=document.getElementById(l);if(ut&&ut.remove(),(it=N.securityLevel!=="sandbox"?document.querySelector("#d"+l):document.querySelector("#i"+l))&&it.remove(),N.securityLevel==="sandbox"){var gt=(0,E.select)("body").append("iframe").attr("id","i"+l).attr("style","width: 100%; height: 100%;").attr("sandbox","");(B=(0,E.select)(gt.nodes()[0].contentDocument.body)).node().style.margin=0}else B=(0,E.select)("body");B.append("div").attr("id","d"+l).append("svg").attr("id",l).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}S=S.replace(/style.*:\S*#.*;/g,function(we){return we.substring(0,we.length-1)}).replace(/classDef.*:\S*#.*;/g,function(we){return we.substring(0,we.length-1)}).replace(/#\w+;/g,function(we){var oe=we.substring(1,we.length-1);return/^\+?\d+$/.test(oe)?"\uFB02\xB0\xB0"+oe+"\xB6\xDF":"\uFB02\xB0"+oe+"\xB6\xDF"});var st=B.select("#d"+l).node(),Pt=Bn.detectType(S,N),Dt=st.firstChild,Xt=Dt.firstChild,Mt="";if(N.themeCSS!==void 0&&(Mt+=`
|
|
`.concat(N.themeCSS)),N.fontFamily!==void 0&&(Mt+=`
|
|
:root { --mermaid-font-family: `.concat(N.fontFamily,"}")),N.altFontFamily!==void 0&&(Mt+=`
|
|
:root { --mermaid-alt-font-family: `.concat(N.altFontFamily,"}")),Pt==="flowchart"||Pt==="flowchart-v2"||Pt==="graph"){var It=function(we){_.info("Extracting classes"),lr.clear();try{var oe=Hc().parser;return oe.yy=lr,oe.parse(we),lr.getClasses()}catch{return}}(S),$t=N.htmlLabels||N.flowchart.htmlLabels;for(var ee in It)$t?(Mt+=`
|
|
.`.concat(ee," > * { ").concat(It[ee].styles.join(" !important; ")," !important; }"),Mt+=`
|
|
.`.concat(ee," span { ").concat(It[ee].styles.join(" !important; ")," !important; }")):(Mt+=`
|
|
.`.concat(ee," path { ").concat(It[ee].styles.join(" !important; ")," !important; }"),Mt+=`
|
|
.`.concat(ee," rect { ").concat(It[ee].styles.join(" !important; ")," !important; }"),Mt+=`
|
|
.`.concat(ee," polygon { ").concat(It[ee].styles.join(" !important; ")," !important; }"),Mt+=`
|
|
.`.concat(ee," ellipse { ").concat(It[ee].styles.join(" !important; ")," !important; }"),Mt+=`
|
|
.`.concat(ee," circle { ").concat(It[ee].styles.join(" !important; ")," !important; }"),It[ee].textStyles&&(Mt+=`
|
|
.`.concat(ee," tspan { ").concat(It[ee].textStyles.join(" !important; ")," !important; }")))}var Re=function(we,oe){return Tt(An("".concat(we,"{").concat(oe,"}")),yt)}("#".concat(l),function(we,oe,ce){return` {
|
|
font-family: `.concat(ce.fontFamily,`;
|
|
font-size: `).concat(ce.fontSize,`;
|
|
fill: `).concat(ce.textColor,`
|
|
}
|
|
|
|
/* Classes common for multiple diagrams */
|
|
|
|
.error-icon {
|
|
fill: `).concat(ce.errorBkgColor,`;
|
|
}
|
|
.error-text {
|
|
fill: `).concat(ce.errorTextColor,`;
|
|
stroke: `).concat(ce.errorTextColor,`;
|
|
}
|
|
|
|
.edge-thickness-normal {
|
|
stroke-width: 2px;
|
|
}
|
|
.edge-thickness-thick {
|
|
stroke-width: 3.5px
|
|
}
|
|
.edge-pattern-solid {
|
|
stroke-dasharray: 0;
|
|
}
|
|
|
|
.edge-pattern-dashed{
|
|
stroke-dasharray: 3;
|
|
}
|
|
.edge-pattern-dotted {
|
|
stroke-dasharray: 2;
|
|
}
|
|
|
|
.marker {
|
|
fill: `).concat(ce.lineColor,`;
|
|
stroke: `).concat(ce.lineColor,`;
|
|
}
|
|
.marker.cross {
|
|
stroke: `).concat(ce.lineColor,`;
|
|
}
|
|
|
|
svg {
|
|
font-family: `).concat(ce.fontFamily,`;
|
|
font-size: `).concat(ce.fontSize,`;
|
|
}
|
|
|
|
`).concat(f0[we](ce),`
|
|
|
|
`).concat(oe,`
|
|
`)}(Pt,Mt,N.themeVariables)),Se=document.createElement("style");Se.innerHTML="#".concat(l," ")+Re,Dt.insertBefore(Se,Xt);try{switch(Pt){case"c4":te.setConf(N.c4),te.draw(S,l);break;case"gitGraph":ts(S,l,!1);break;case"flowchart":N.flowchart.arrowMarkerAbsolute=N.arrowMarkerAbsolute,p1(N.flowchart),mf(S,l);break;case"flowchart-v2":N.flowchart.arrowMarkerAbsolute=N.arrowMarkerAbsolute,y1(N.flowchart),Ou(S,l);break;case"sequence":N.sequence.arrowMarkerAbsolute=N.arrowMarkerAbsolute,N.sequenceDiagram?(As.setConf(Object.assign(N.sequence,N.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):As.setConf(N.sequence),As.draw(S,l);break;case"gantt":N.gantt.arrowMarkerAbsolute=N.arrowMarkerAbsolute,Fu(N.gantt),function(we,oe){var ce=jt().gantt;Da.parser.yy.clear(),Da.parser.parse(we);var Ye,Ue=jt().securityLevel;Ue==="sandbox"&&(Ye=(0,E.select)("#i"+oe));var je=Ue==="sandbox"?(0,E.select)(Ye.nodes()[0].contentDocument.body):(0,E.select)("body"),qe=Ue==="sandbox"?Ye.nodes()[0].contentDocument:document,be=qe.getElementById(oe);(Yo=be.parentElement.offsetWidth)===void 0&&(Yo=1200),ce.useWidth!==void 0&&(Yo=ce.useWidth);var Ge=Da.parser.yy.getTasks(),dn=Ge.length*(ce.barHeight+ce.barGap)+2*ce.topPadding;be.setAttribute("viewBox","0 0 "+Yo+" "+dn);for(var tn=je.select('[id="'.concat(oe,'"]')),an=(0,E.scaleTime)().domain([(0,E.min)(Ge,function(cr){return cr.startTime}),(0,E.max)(Ge,function(cr){return cr.endTime})]).rangeRound([0,Yo-ce.leftPadding-ce.rightPadding]),gn=[],Rn=0;Rn<Ge.length;Rn++)gn.push(Ge[Rn].type);var rr=gn;gn=function(cr){for(var wn={},ur=[],Er=0,Ir=cr.length;Er<Ir;++Er)Object.prototype.hasOwnProperty.call(wn,cr[Er])||(wn[cr[Er]]=!0,ur.push(cr[Er]));return ur}(gn),Ge.sort(function(cr,wn){var ur=cr.startTime,Er=wn.startTime,Ir=0;return ur>Er?Ir=1:ur<Er&&(Ir=-1),Ir}),function(cr,wn,ur){var Er=ce.barHeight,Ir=Er+ce.barGap,Tr=ce.topPadding,oi=ce.leftPadding;(0,E.scaleLinear)().domain([0,gn.length]).range(["#00B9FA","#F95002"]).interpolate(E.interpolateHcl),function(En,bn,hr,ir,fr,Ur,Ei,fi){var qr=Ur.reduce(function(Ar,Rr){var ra=Rr.startTime;return Ar?Math.min(Ar,ra):ra},0),Ri=Ur.reduce(function(Ar,Rr){var ra=Rr.endTime;return Ar?Math.max(Ar,ra):ra},0),Sa=Da.parser.yy.getDateFormat();if(qr&&Ri){for(var mn=[],pr=null,xi=d()(qr);xi.valueOf()<=Ri;)Da.parser.yy.isInvalidDate(xi,Sa,Ei,fi)?pr?pr.end=xi.clone():pr={start:xi.clone(),end:xi.clone()}:pr&&(mn.push(pr),pr=null),xi.add(1,"d");tn.append("g").selectAll("rect").data(mn).enter().append("rect").attr("id",function(Ar){return"exclude-"+Ar.start.format("YYYY-MM-DD")}).attr("x",function(Ar){return an(Ar.start)+hr}).attr("y",ce.gridLineStartPadding).attr("width",function(Ar){var Rr=Ar.end.clone().add(1,"day");return an(Rr)-an(Ar.start)}).attr("height",fr-bn-ce.gridLineStartPadding).attr("transform-origin",function(Ar,Rr){return(an(Ar.start)+hr+.5*(an(Ar.end)-an(Ar.start))).toString()+"px "+(Rr*En+.5*fr).toString()+"px"}).attr("class","exclude-range")}}(Ir,Tr,oi,0,ur,cr,Da.parser.yy.getExcludes(),Da.parser.yy.getIncludes()),function(En,bn,hr,ir){var fr=(0,E.axisBottom)(an).tickSize(-ir+bn+ce.gridLineStartPadding).tickFormat((0,E.timeFormat)(Da.parser.yy.getAxisFormat()||ce.axisFormat||"%Y-%m-%d"));if(tn.append("g").attr("class","grid").attr("transform","translate("+En+", "+(ir-50)+")").call(fr).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),Gs.topAxisEnabled()||ce.topAxis){var Ur=(0,E.axisTop)(an).tickSize(-ir+bn+ce.gridLineStartPadding).tickFormat((0,E.timeFormat)(Da.parser.yy.getAxisFormat()||ce.axisFormat||"%Y-%m-%d"));tn.append("g").attr("class","grid").attr("transform","translate("+En+", "+bn+")").call(Ur).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(oi,Tr,0,ur),function(En,bn,hr,ir,fr,Ur,Ei){tn.append("g").selectAll("rect").data(En).enter().append("rect").attr("x",0).attr("y",function(mn,pr){return mn.order*bn+hr-2}).attr("width",function(){return Ei-ce.rightPadding/2}).attr("height",bn).attr("class",function(mn){for(var pr=0;pr<gn.length;pr++)if(mn.type===gn[pr])return"section section"+pr%ce.numberSectionStyles;return"section section0"});var fi=tn.append("g").selectAll("rect").data(En).enter(),qr=Gs.getLinks();if(fi.append("rect").attr("id",function(mn){return mn.id}).attr("rx",3).attr("ry",3).attr("x",function(mn){return mn.milestone?an(mn.startTime)+ir+.5*(an(mn.endTime)-an(mn.startTime))-.5*fr:an(mn.startTime)+ir}).attr("y",function(mn,pr){return mn.order*bn+hr}).attr("width",function(mn){return mn.milestone?fr:an(mn.renderEndTime||mn.endTime)-an(mn.startTime)}).attr("height",fr).attr("transform-origin",function(mn,pr){return pr=mn.order,(an(mn.startTime)+ir+.5*(an(mn.endTime)-an(mn.startTime))).toString()+"px "+(pr*bn+hr+.5*fr).toString()+"px"}).attr("class",function(mn){var pr="";mn.classes.length>0&&(pr=mn.classes.join(" "));for(var xi=0,Ar=0;Ar<gn.length;Ar++)mn.type===gn[Ar]&&(xi=Ar%ce.numberSectionStyles);var Rr="";return mn.active?mn.crit?Rr+=" activeCrit":Rr=" active":mn.done?Rr=mn.crit?" doneCrit":" done":mn.crit&&(Rr+=" crit"),Rr.length===0&&(Rr=" task"),mn.milestone&&(Rr=" milestone "+Rr),"task"+(Rr+=xi)+" "+pr}),fi.append("text").attr("id",function(mn){return mn.id+"-text"}).text(function(mn){return mn.task}).attr("font-size",ce.fontSize).attr("x",function(mn){var pr=an(mn.startTime),xi=an(mn.renderEndTime||mn.endTime);mn.milestone&&(pr+=.5*(an(mn.endTime)-an(mn.startTime))-.5*fr),mn.milestone&&(xi=pr+fr);var Ar=this.getBBox().width;return Ar>xi-pr?xi+Ar+1.5*ce.leftPadding>Ei?pr+ir-5:xi+ir+5:(xi-pr)/2+pr+ir}).attr("y",function(mn,pr){return mn.order*bn+ce.barHeight/2+(ce.fontSize/2-2)+hr}).attr("text-height",fr).attr("class",function(mn){var pr=an(mn.startTime),xi=an(mn.endTime);mn.milestone&&(xi=pr+fr);var Ar=this.getBBox().width,Rr="";mn.classes.length>0&&(Rr=mn.classes.join(" "));for(var ra=0,dc=0;dc<gn.length;dc++)mn.type===gn[dc]&&(ra=dc%ce.numberSectionStyles);var to="";return mn.active&&(to=mn.crit?"activeCritText"+ra:"activeText"+ra),mn.done?to=mn.crit?to+" doneCritText"+ra:to+" doneText"+ra:mn.crit&&(to=to+" critText"+ra),mn.milestone&&(to+=" milestoneText"),Ar>xi-pr?xi+Ar+1.5*ce.leftPadding>Ei?Rr+" taskTextOutsideLeft taskTextOutside"+ra+" "+to:Rr+" taskTextOutsideRight taskTextOutside"+ra+" "+to+" width-"+Ar:Rr+" taskText taskText"+ra+" "+to+" width-"+Ar}),jt().securityLevel==="sandbox"){var Ri;Ri=(0,E.select)("#i"+oe),(0,E.select)(Ri.nodes()[0].contentDocument.body);var Sa=Ri.nodes()[0].contentDocument;fi.filter(function(mn){return qr[mn.id]!==void 0}).each(function(mn){var pr=Sa.querySelector("#"+mn.id),xi=Sa.querySelector("#"+mn.id+"-text"),Ar=pr.parentNode,Rr=Sa.createElement("a");Rr.setAttribute("xlink:href",qr[mn.id]),Rr.setAttribute("target","_top"),Ar.appendChild(Rr),Rr.appendChild(pr),Rr.appendChild(xi)})}}(cr,Ir,Tr,oi,Er,0,wn),function(En,bn){for(var hr=[],ir=0,fr=0;fr<gn.length;fr++)hr[fr]=[gn[fr],(Ur=gn[fr],Ei=rr,function(fi){for(var qr=fi.length,Ri={};qr;)Ri[fi[--qr]]=(Ri[fi[qr]]||0)+1;return Ri}(Ei)[Ur]||0)];var Ur,Ei;tn.append("g").selectAll("text").data(hr).enter().append(function(fi){var qr=fi[0].split(ae.lineBreakRegex),Ri=-(qr.length-1)/2,Sa=qe.createElementNS("http://www.w3.org/2000/svg","text");Sa.setAttribute("dy",Ri+"em");for(var mn=0;mn<qr.length;mn++){var pr=qe.createElementNS("http://www.w3.org/2000/svg","tspan");pr.setAttribute("alignment-baseline","central"),pr.setAttribute("x","10"),mn>0&&pr.setAttribute("dy","1em"),pr.textContent=qr[mn],Sa.appendChild(pr)}return Sa}).attr("x",10).attr("y",function(fi,qr){if(!(qr>0))return fi[1]*En/2+bn;for(var Ri=0;Ri<qr;Ri++)return ir+=hr[qr-1][1],fi[1]*En/2+ir*En+bn}).attr("font-size",ce.sectionFontSize).attr("font-size",ce.sectionFontSize).attr("class",function(fi){for(var qr=0;qr<gn.length;qr++)if(fi[0]===gn[qr])return"sectionTitle sectionTitle"+qr%ce.numberSectionStyles;return"sectionTitle"})}(Ir,Tr),function(En,bn,hr,ir){var fr=Gs.getTodayMarker();if(fr!=="off"){var Ur=tn.append("g").attr("class","today"),Ei=new Date,fi=Ur.append("line");fi.attr("x1",an(Ei)+En).attr("x2",an(Ei)+En).attr("y1",ce.titleTopMargin).attr("y2",ir-ce.titleTopMargin).attr("class","today"),fr!==""&&fi.attr("style",fr.replace(/,/g,";"))}}(oi,0,0,ur)}(Ge,Yo,dn),Si(tn,dn,Yo,ce.useMaxWidth),tn.append("text").text(Da.parser.yy.getDiagramTitle()).attr("x",Yo/2).attr("y",ce.titleTopMargin).attr("class","titleText"),Zi(Da.parser.yy,tn,oe)}(S,l);break;case"class":N.class.arrowMarkerAbsolute=N.arrowMarkerAbsolute,_u(N.class),Vh(S,l);break;case"classDiagram":N.class.arrowMarkerAbsolute=N.arrowMarkerAbsolute,function(we){Object.keys(we).forEach(function(oe){wl[oe]=we[oe]})}(N.class),function(we,oe){_.info("Drawing class - ",oe),io.clear(),Mo.parser.parse(we);var ce=jt().flowchart,Ye=jt().securityLevel;_.info("config:",ce);var Ue,je=ce.nodeSpacing||50,qe=ce.rankSpacing||50,be=new(Mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:io.getDirection(),nodesep:je,ranksep:qe,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),Ge=io.getClasses(),dn=io.getRelations();_.info(dn),function(Ir,Tr){var oi=Object.keys(Ir);_.info("keys:",oi),_.info(Ir),oi.forEach(function(En){var bn=Ir[En],hr="";bn.cssClasses.length>0&&(hr=hr+" "+bn.cssClasses.join(" "));var ir,fr,Ur={labelStyle:""},Ei=bn.text!==void 0?bn.text:bn.id;bn.type,fr="class_box",Tr.setNode(bn.id,{labelStyle:Ur.labelStyle,shape:fr,labelText:(ir=Ei,ae.sanitizeText(ir,jt())),classData:bn,rx:0,ry:0,class:hr,style:Ur.style,id:bn.id,domId:bn.domId,haveCallback:bn.haveCallback,link:bn.link,width:bn.type==="group"?500:void 0,type:bn.type,padding:jt().flowchart.padding}),_.info("setNode",{labelStyle:Ur.labelStyle,shape:fr,labelText:Ei,rx:0,ry:0,class:hr,style:Ur.style,id:bn.id,width:bn.type==="group"?500:void 0,type:bn.type,padding:jt().flowchart.padding})})}(Ge,be),function(Ir,Tr){var oi=0;Ir.forEach(function(En){oi++;var bn={classes:"relation"};bn.pattern=En.relation.lineType==1?"dashed":"solid",bn.id="id"+oi,En.type==="arrow_open"?bn.arrowhead="none":bn.arrowhead="normal",_.info(bn,En),bn.startLabelRight=En.relationTitle1==="none"?"":En.relationTitle1,bn.endLabelLeft=En.relationTitle2==="none"?"":En.relationTitle2,bn.arrowTypeStart=xu(En.relation.type1),bn.arrowTypeEnd=xu(En.relation.type2);var hr="",ir="";if(En.style!==void 0){var fr=gi(En.style);hr=fr.style,ir=fr.labelStyle}else hr="fill:none";bn.style=hr,bn.labelStyle=ir,En.interpolate!==void 0?bn.curve=sr(En.interpolate,E.curveLinear):Ir.defaultInterpolate!==void 0?bn.curve=sr(Ir.defaultInterpolate,E.curveLinear):bn.curve=sr(wl.curve,E.curveLinear),En.text=En.title,En.text===void 0?En.style!==void 0&&(bn.arrowheadStyle="fill: #333"):(bn.arrowheadStyle="fill: #333",bn.labelpos="c",jt().flowchart.htmlLabels?(bn.labelType="html",bn.label='<span class="edgeLabel">'+En.text+"</span>"):(bn.labelType="text",bn.label=En.text.replace(ae.lineBreakRegex,`
|
|
`),En.style===void 0&&(bn.style=bn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),bn.labelStyle=bn.labelStyle.replace("color:","fill:"))),Tr.setEdge(En.id1,En.id2,bn,oi)})}(dn,be),Ye==="sandbox"&&(Ue=(0,E.select)("#i"+oe));var tn=Ye==="sandbox"?(0,E.select)(Ue.nodes()[0].contentDocument.body):(0,E.select)("body"),an=tn.select('[id="'.concat(oe,'"]'));an.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var gn=tn.select("#"+oe+" g");if(vu(gn,be,["aggregation","extension","composition","dependency"],"classDiagram",oe),ma(be,an,ce.diagramPadding,ce.useMaxWidth),!ce.htmlLabels)for(var Rn=Ye==="sandbox"?Ue.nodes()[0].contentDocument:document,rr=Rn.querySelectorAll('[id="'+oe+'"] .edgeLabel .label'),cr=0;cr<rr.length;cr++){var wn=rr[cr],ur=wn.getBBox(),Er=Rn.createElementNS("http://www.w3.org/2000/svg","rect");Er.setAttribute("rx",0),Er.setAttribute("ry",0),Er.setAttribute("width",ur.width),Er.setAttribute("height",ur.height),wn.insertBefore(Er,wn.firstChild)}Zi(Mo.parser.yy,an,oe)}(S,l);break;case"state":N.class.arrowMarkerAbsolute=N.arrowMarkerAbsolute,N.state,a0(S,l);break;case"stateDiagram":N.class.arrowMarkerAbsolute=N.arrowMarkerAbsolute,da(N.state),function(we,oe){_.info("Drawing state diagram (v2)",oe),Yi.clear(),Mr={};var ce=Z1().parser;ce.yy=Yi,ce.parse(we);var Ye=Yi.getDirection();Ye===void 0&&(Ye="LR");var Ue=jt().state,je=Ue.nodeSpacing||50,qe=Ue.rankSpacing||50,be=jt().securityLevel;_.info(Yi.getRootDocV2()),Yi.extract(Yi.getRootDocV2()),_.info(Yi.getRootDocV2());var Ge,dn=new(Mi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:Kl(Yi.getRootDocV2()),nodesep:je,ranksep:qe,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Xl(dn,void 0,Yi.getRootDocV2(),!0),be==="sandbox"&&(Ge=(0,E.select)("#i"+oe));var tn=be==="sandbox"?(0,E.select)(Ge.nodes()[0].contentDocument.body):(0,E.select)("body"),an=(be==="sandbox"&&Ge.nodes()[0].contentDocument,tn.select('[id="'.concat(oe,'"]'))),gn=tn.select("#"+oe+" g");vu(gn,dn,["barb"],"statediagram",oe);var Rn=an.node().getBBox(),rr=Rn.width+16,cr=Rn.height+16;an.attr("class","statediagram");var wn=an.node().getBBox();Si(an,cr,1.75*rr,Ue.useMaxWidth);var ur="".concat(wn.x-8," ").concat(wn.y-8," ").concat(rr," ").concat(cr);_.debug("viewBox ".concat(ur)),an.attr("viewBox",ur);for(var Er=document.querySelectorAll('[id="'+oe+'"] .edgeLabel .label'),Ir=0;Ir<Er.length;Ir++){var Tr=Er[Ir],oi=Tr.getBBox(),En=document.createElementNS("http://www.w3.org/2000/svg","rect");En.setAttribute("rx",0),En.setAttribute("ry",0),En.setAttribute("width",oi.width),En.setAttribute("height",oi.height),Tr.insertBefore(En,Tr.firstChild)}Zi(ce.yy,an,oe)}(S,l);break;case"info":N.class.arrowMarkerAbsolute=N.arrowMarkerAbsolute,Hu(N.class),function(we,oe,ce){try{var Ye=ko().parser;Ye.yy=L1,_.debug(`Renering info diagram
|
|
`+we);var Ue,je=jt().securityLevel;je==="sandbox"&&(Ue=(0,E.select)("#i"+oe));var qe=je==="sandbox"?(0,E.select)(Ue.nodes()[0].contentDocument.body):(0,E.select)("body");je==="sandbox"&&Ue.nodes()[0].contentDocument,Ye.parse(we),_.debug("Parsed info diagram");var be=qe.select("#"+oe);be.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+ce),be.attr("height",100),be.attr("width",400)}catch(Ge){_.error("Error while rendering info diagram"),_.error(Ge.message)}}(S,l,Qt);break;case"pie":Vu(S,l);break;case"er":a1(N.er),uf(S,l);break;case"journey":uh(N.journey),h0(S,l);break;case"requirement":D1(N.requirement),B1(S,l)}}catch(we){throw function(oe,ce){try{_.debug(`Renering svg for syntax error
|
|
`);var Ye=(0,E.select)("#"+oe),Ue=Ye.append("g");Ue.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"),Ue.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"),Ue.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"),Ue.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"),Ue.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"),Ue.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"),Ue.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),Ue.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+ce),Ye.attr("height",100),Ye.attr("width",400),Ye.attr("viewBox","768 0 512 512")}catch(je){_.error("Error while rendering info diagram"),_.error(je.message)}}(l,Qt),we}B.select('[id="'.concat(l,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var se=B.select("#d"+l).node().innerHTML;if(_.debug("cnf.arrowMarkerAbsolute",N.arrowMarkerAbsolute),N.arrowMarkerAbsolute&&N.arrowMarkerAbsolute!=="false"||N.arrowMarkerAbsolute==="sandbox"||(se=se.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),se=(se=hh(se)).replace(/<br>/g,"<br/>"),N.securityLevel==="sandbox"){var le=B.select("#d"+l+" svg").node(),Oe="100%";le&&(Oe=le.viewBox.baseVal.height+"px"),se='<iframe style="width:'.concat("100%",";height:").concat(Oe,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+se+"</body>"),`" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
The \u201Ciframe\u201D tag is not supported by your browser.
|
|
</iframe>`)}else N.securityLevel!=="loose"&&(se=J().sanitize(se,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(y!==void 0)switch(Pt){case"flowchart":case"flowchart-v2":y(se,lr.bindFunctions);break;case"gantt":y(se,Gs.bindFunctions);break;case"class":case"classDiagram":y(se,io.bindFunctions);break;default:y(se)}else _.debug("CB = undefined!");ha.forEach(function(we){we()}),ha=[];var ke=N.securityLevel==="sandbox"?"#i"+l:"#d"+l,re=(0,E.select)(ke).node();return re!==null&&typeof re.remove=="function"&&(0,E.select)(ke).node().remove(),se},parse:function(l){var s=!1;try{l+=`
|
|
`;var y=jt(),w=Bn.detectInit(l,y);w&&_.info("reinit ",w);var S,M=Bn.detectType(l,y);switch(_.debug("Type "+M),M){case"c4":fs.clear(),(S=gu()).parser.yy=fs;break;case"gitGraph":jo.clear(),(S=ju()).parser.yy=jo;break;case"flowchart":case"flowchart-v2":lr.clear(),(S=Hc()).parser.yy=lr;break;case"sequence":Hl.clear(),(S=Zu()).parser.yy=Hl;break;case"gantt":(S=S1()).parser.yy=Gs;break;case"class":case"classDiagram":(S=Wh()).parser.yy=io;break;case"state":case"stateDiagram":(S=Z1()).parser.yy=Yi;break;case"info":_.debug("info info info"),(S=ko()).parser.yy=L1;break;case"pie":_.debug("pie"),(S=Pl()).parser.yy=Gu;break;case"er":_.debug("er"),(S=n1()).parser.yy=Oa;break;case"journey":_.debug("Journey"),(S=Uf()).parser.yy=o0;break;case"requirement":case"requirementDiagram":_.debug("RequirementDiagram"),(S=Ks()).parser.yy=xs}S.parser.yy.graphType=M,S.parser.yy.parseError=function(N,B){throw{str:N,hash:B}},S.parse(l)}catch(N){if(s=!0,!hi.parseError)throw N;N.str!=null?hi.parseError(N.str,N.hash):hi.parseError(N)}return!s},parseDirective:function(l,s,y,w){try{if(s!==void 0)switch(s=s.trim(),y){case"open_directive":fc={};break;case"type_directive":fc.type=s.toLowerCase();break;case"arg_directive":fc.args=JSON.parse(s);break;case"close_directive":(function(S,M,N){switch(_.debug("Directive type=".concat(M.type," with args:"),M.args),M.type){case"init":case"initialize":["config"].forEach(function(B){M.args[B]!==void 0&&(N==="flowchart-v2"&&(N="flowchart"),M.args[N]=M.args[B],delete M.args[B])}),_.debug("sanitize in handleDirective",M.args),ri(M.args),_.debug("sanitize in handleDirective (done)",M.args),M.args,No(M.args);break;case"wrap":case"nowrap":S&&S.setWrap&&S.setWrap(M.type==="wrap");break;case"themeCss":_.warn("themeCss encountered");break;default:_.warn("Unhandled directive: source: '%%{".concat(M.type,": ").concat(JSON.stringify(M.args?M.args:{}),"}%%"),M)}})(l,fc,w),fc=null}}catch(S){_.error("Error while rendering sequenceDiagram directive: ".concat(s," jison context: ").concat(y)),_.error(S.message)}},initialize:function(l){l&&l.fontFamily&&(l.themeVariables&&l.themeVariables.fontFamily||(l.themeVariables={fontFamily:l.fontFamily})),function(y){Na=$r({},y)}(l),l&&l.theme&&Qn[l.theme]?l.themeVariables=Qn[l.theme].getThemeVariables(l.themeVariables):l&&(l.themeVariables=Qn.default.getThemeVariables(l.themeVariables));var s=eu(l)==="object"?function(y){return xr=$r({},$i),xr=$r(xr,y),y.theme&&Qn[y.theme]&&(xr.themeVariables=Qn[y.theme].getThemeVariables(y.themeVariables)),Li=si(xr,oa),xr}(l):sa();fh(s),A(s.logLevel)},reinitialize:function(){},getConfig:jt,setConfig:function(l){return $r(Li,l),jt()},getSiteConfig:sa,updateSiteConfig:function(l){return xr=$r(xr,l),si(xr,oa),xr},reset:function(){Zt()},globalReset:function(){Zt(),fh(jt())},defaultConfig:$i});A(jt().logLevel),Zt(jt());const vi=d0;var nr=function(){var l,s,y=vi.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(qn.sequenceConfig=arguments[0]),l=arguments[1]):l=arguments[0],typeof arguments[arguments.length-1]=="function"?(s=arguments[arguments.length-1],_.debug("Callback function found")):y.mermaid!==void 0&&(typeof y.mermaid.callback=="function"?(s=y.mermaid.callback,_.debug("Callback function found")):_.debug("No Callback function found")),l=l===void 0?document.querySelectorAll(".mermaid"):typeof l=="string"?document.querySelectorAll(l):l instanceof window.Node?[l]:l,_.debug("Start On Load before: "+qn.startOnLoad),qn.startOnLoad!==void 0&&(_.debug("Start On Load inner: "+qn.startOnLoad),vi.updateSiteConfig({startOnLoad:qn.startOnLoad})),qn.ganttConfig!==void 0&&vi.updateSiteConfig({gantt:qn.ganttConfig});for(var w,S=new Bn.initIdGenerator(y.deterministicIds,y.deterministicIDSeed),M=function(B){var Y=l[B];if(Y.getAttribute("data-processed"))return"continue";Y.setAttribute("data-processed",!0);var H="mermaid-".concat(S.next());w=Y.innerHTML,w=Bn.entityDecode(w).trim().replace(/<br\s*\/?>/gi,"<br/>");var it=Bn.detectInit(w);it&&_.debug("Detected early reinit: ",it),vi.render(H,w,function(ut,gt){Y.innerHTML=ut,s!==void 0&&s(H),gt&>(Y)},Y)},N=0;N<l.length;N++)M(N)},nl=function(){qn.startOnLoad?vi.getConfig().startOnLoad&&qn.init():qn.startOnLoad===void 0&&(_.debug("In start, no config"),vi.getConfig().startOnLoad&&qn.init())};typeof document<"u"&&window.addEventListener("load",function(){nl()},!1);var qn={startOnLoad:!0,htmlLabels:!0,mermaidAPI:vi,parse:vi!=null?vi.parse:null,render:vi!=null?vi.render:null,init:function(){try{nr.apply(void 0,arguments)}catch(l){_.warn("Syntax Error rendering"),_.warn(l),this.parseError&&this.parseError(l)}},initThrowsErrors:nr,initialize:function(l){l.mermaid!==void 0&&(l.mermaid.startOnLoad!==void 0&&(qn.startOnLoad=l.mermaid.startOnLoad),l.mermaid.htmlLabels!==void 0&&(qn.htmlLabels=l.mermaid.htmlLabels!=="false"&&l.mermaid.htmlLabels!==!1)),vi.initialize(l)},contentLoaded:nl,setParseErrorHandler:function(l){qn.parseError=l}};const hi=qn},4949:(f,k,h)=>{f.exports={graphlib:h(6614),dagre:h(1463),intersect:h(8114),render:h(5787),util:h(8355),version:h(5689)}},9144:(f,k,h)=>{var m=h(8355);function d(b,_,A,L){var E=b.append("marker").attr("id",_).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");m.applyStyle(E,A[L+"Style"]),A[L+"Class"]&&E.attr("class",A[L+"Class"])}f.exports={default:d,normal:d,vee:function(b,_,A,L){var E=b.append("marker").attr("id",_).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");m.applyStyle(E,A[L+"Style"]),A[L+"Class"]&&E.attr("class",A[L+"Class"])},undirected:function(b,_,A,L){var E=b.append("marker").attr("id",_).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");m.applyStyle(E,A[L+"Style"]),A[L+"Class"]&&E.attr("class",A[L+"Class"])}}},5632:(f,k,h)=>{var m=h(8355),d=h(4322),b=h(1322);f.exports=function(_,A){var L,E=A.nodes().filter(function(R){return m.isSubgraph(A,R)}),D=_.selectAll("g.cluster").data(E,function(R){return R});return D.selectAll("*").remove(),D.enter().append("g").attr("class","cluster").attr("id",function(R){return A.node(R).id}).style("opacity",0),D=_.selectAll("g.cluster"),m.applyTransition(D,A).style("opacity",1),D.each(function(R){var P=A.node(R),$=d.select(this);d.select(this).append("rect");var K=$.append("g").attr("class","label");b(K,P,P.clusterLabelPos)}),D.selectAll("rect").each(function(R){var P=A.node(R),$=d.select(this);m.applyStyle($,P.style)}),L=D.exit?D.exit():D.selectAll(null),m.applyTransition(L,A).style("opacity",0).remove(),D}},6315:(f,k,h)=>{var m=h(1034),d=h(1322),b=h(8355),_=h(4322);f.exports=function(A,L){var E,D=A.selectAll("g.edgeLabel").data(L.edges(),function(R){return b.edgeToId(R)}).classed("update",!0);return D.exit().remove(),D.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(D=A.selectAll("g.edgeLabel")).each(function(R){var P=_.select(this);P.select(".label").remove();var $=L.edge(R),K=d(P,L.edge(R),0,0).classed("label",!0),et=K.node().getBBox();$.labelId&&K.attr("id",$.labelId),m.has($,"width")||($.width=et.width),m.has($,"height")||($.height=et.height)}),E=D.exit?D.exit():D.selectAll(null),b.applyTransition(E,L).style("opacity",0).remove(),D}},940:(f,k,h)=>{var m=h(1034),d=h(3042),b=h(8355),_=h(4322);function A(L,E){var D=(_.line||_.svg.line)().x(function(R){return R.x}).y(function(R){return R.y});return(D.curve||D.interpolate)(L.curve),D(E)}f.exports=function(L,E,D){var R=L.selectAll("g.edgePath").data(E.edges(),function(K){return b.edgeToId(K)}).classed("update",!0),P=function(K,et){var ht=K.enter().append("g").attr("class","edgePath").style("opacity",0);return ht.append("path").attr("class","path").attr("d",function(X){var _t=et.edge(X),rt=et.node(X.v).elem;return A(_t,m.range(_t.points.length).map(function(){return bt=(at=rt).getBBox(),{x:(Ft=at.ownerSVGElement.getScreenCTM().inverse().multiply(at.getScreenCTM()).translate(bt.width/2,bt.height/2)).e,y:Ft.f};var at,bt,Ft}))}),ht.append("defs"),ht}(R,E);(function(K,et){var ht=K.exit();b.applyTransition(ht,et).style("opacity",0).remove()})(R,E);var $=R.merge!==void 0?R.merge(P):R;return b.applyTransition($,E).style("opacity",1),$.each(function(K){var et=_.select(this),ht=E.edge(K);ht.elem=this,ht.id&&et.attr("id",ht.id),b.applyClass(et,ht.class,(et.classed("update")?"update ":"")+"edgePath")}),$.selectAll("path.path").each(function(K){var et=E.edge(K);et.arrowheadId=m.uniqueId("arrowhead");var ht=_.select(this).attr("marker-end",function(){return"url("+(X=location.href,_t=et.arrowheadId,X.split("#")[0]+"#"+_t+")");var X,_t}).style("fill","none");b.applyTransition(ht,E).attr("d",function(X){return function(_t,rt){var at=_t.edge(rt),bt=_t.node(rt.v),Ft=_t.node(rt.w),Tt=at.points.slice(1,at.points.length-1);return Tt.unshift(d(bt,Tt[0])),Tt.push(d(Ft,Tt[Tt.length-1])),A(at,Tt)}(E,X)}),b.applyStyle(ht,et.style)}),$.selectAll("defs *").remove(),$.selectAll("defs").each(function(K){var et=E.edge(K);(0,D[et.arrowhead])(_.select(this),et.arrowheadId,et,"arrowhead")}),$}},607:(f,k,h)=>{var m=h(1034),d=h(1322),b=h(8355),_=h(4322);f.exports=function(A,L,E){var D,R=L.nodes().filter(function($){return!b.isSubgraph(L,$)}),P=A.selectAll("g.node").data(R,function($){return $}).classed("update",!0);return P.exit().remove(),P.enter().append("g").attr("class","node").style("opacity",0),(P=A.selectAll("g.node")).each(function($){var K=L.node($),et=_.select(this);b.applyClass(et,K.class,(et.classed("update")?"update ":"")+"node"),et.select("g.label").remove();var ht=et.append("g").attr("class","label"),X=d(ht,K),_t=E[K.shape],rt=m.pick(X.node().getBBox(),"width","height");K.elem=this,K.id&&et.attr("id",K.id),K.labelId&&ht.attr("id",K.labelId),m.has(K,"width")&&(rt.width=K.width),m.has(K,"height")&&(rt.height=K.height),rt.width+=K.paddingLeft+K.paddingRight,rt.height+=K.paddingTop+K.paddingBottom,ht.attr("transform","translate("+(K.paddingLeft-K.paddingRight)/2+","+(K.paddingTop-K.paddingBottom)/2+")");var at=_.select(this);at.select(".label-container").remove();var bt=_t(at,rt,K).classed("label-container",!0);b.applyStyle(bt,K.style);var Ft=bt.node().getBBox();K.width=Ft.width,K.height=Ft.height}),D=P.exit?P.exit():P.selectAll(null),b.applyTransition(D,L).style("opacity",0).remove(),P}},4322:(f,k,h)=>{var m;if(!m)try{m=h(7543)}catch{}m||(m=window.d3),f.exports=m},1463:(f,k,h)=>{var m;try{m=h(681)}catch{}m||(m=window.dagre),f.exports=m},6614:(f,k,h)=>{var m;try{m=h(8282)}catch{}m||(m=window.graphlib),f.exports=m},8114:(f,k,h)=>{f.exports={node:h(3042),circle:h(6587),ellipse:h(3260),polygon:h(5337),rect:h(8049)}},6587:(f,k,h)=>{var m=h(3260);f.exports=function(d,b,_){return m(d,b,b,_)}},3260:f=>{f.exports=function(k,h,m,d){var b=k.x,_=k.y,A=b-d.x,L=_-d.y,E=Math.sqrt(h*h*L*L+m*m*A*A),D=Math.abs(h*m*A/E);d.x<b&&(D=-D);var R=Math.abs(h*m*L/E);return d.y<_&&(R=-R),{x:b+D,y:_+R}}},6808:f=>{function k(h,m){return h*m>0}f.exports=function(h,m,d,b){var _,A,L,E,D,R,P,$,K,et,ht,X,_t;if(_=m.y-h.y,L=h.x-m.x,D=m.x*h.y-h.x*m.y,K=_*d.x+L*d.y+D,et=_*b.x+L*b.y+D,!(K!==0&&et!==0&&k(K,et)||(A=b.y-d.y,E=d.x-b.x,R=b.x*d.y-d.x*b.y,P=A*h.x+E*h.y+R,$=A*m.x+E*m.y+R,P!==0&&$!==0&&k(P,$)||(ht=_*E-A*L)==0)))return X=Math.abs(ht/2),{x:(_t=L*R-E*D)<0?(_t-X)/ht:(_t+X)/ht,y:(_t=A*D-_*R)<0?(_t-X)/ht:(_t+X)/ht}}},3042:f=>{f.exports=function(k,h){return k.intersect(h)}},5337:(f,k,h)=>{var m=h(6808);f.exports=function(d,b,_){var A=d.x,L=d.y,E=[],D=Number.POSITIVE_INFINITY,R=Number.POSITIVE_INFINITY;b.forEach(function(_t){D=Math.min(D,_t.x),R=Math.min(R,_t.y)});for(var P=A-d.width/2-D,$=L-d.height/2-R,K=0;K<b.length;K++){var et=b[K],ht=b[K<b.length-1?K+1:0],X=m(d,_,{x:P+et.x,y:$+et.y},{x:P+ht.x,y:$+ht.y});X&&E.push(X)}return E.length?(E.length>1&&E.sort(function(_t,rt){var at=_t.x-_.x,bt=_t.y-_.y,Ft=Math.sqrt(at*at+bt*bt),Tt=rt.x-_.x,yt=rt.y-_.y,Nt=Math.sqrt(Tt*Tt+yt*yt);return Ft<Nt?-1:Ft===Nt?0:1}),E[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",d),d)}},8049:f=>{f.exports=function(k,h){var m,d,b=k.x,_=k.y,A=h.x-b,L=h.y-_,E=k.width/2,D=k.height/2;return Math.abs(L)*E>Math.abs(A)*D?(L<0&&(D=-D),m=L===0?0:D*A/L,d=D):(A<0&&(E=-E),m=E,d=A===0?0:E*L/A),{x:b+m,y:_+d}}},8284:(f,k,h)=>{var m=h(8355);f.exports=function(d,b){var _=d.append("foreignObject").attr("width","100000"),A=_.append("xhtml:div");A.attr("xmlns","http://www.w3.org/1999/xhtml");var L=b.label;switch(typeof L){case"function":A.insert(L);break;case"object":A.insert(function(){return L});break;default:A.html(L)}m.applyStyle(A,b.labelStyle),A.style("display","inline-block"),A.style("white-space","nowrap");var E=A.node().getBoundingClientRect();return _.attr("width",E.width).attr("height",E.height),_}},1322:(f,k,h)=>{var m=h(7318),d=h(8284),b=h(8287);f.exports=function(_,A,L){var E=A.label,D=_.append("g");A.labelType==="svg"?b(D,A):typeof E!="string"||A.labelType==="html"?d(D,A):m(D,A);var R,P=D.node().getBBox();switch(L){case"top":R=-A.height/2;break;case"bottom":R=A.height/2-P.height;break;default:R=-P.height/2}return D.attr("transform","translate("+-P.width/2+","+R+")"),D}},8287:(f,k,h)=>{var m=h(8355);f.exports=function(d,b){var _=d;return _.node().appendChild(b.label),m.applyStyle(_,b.labelStyle),_}},7318:(f,k,h)=>{var m=h(8355);f.exports=function(d,b){for(var _=d.append("text"),A=function(E){for(var D,R="",P=!1,$=0;$<E.length;++$)D=E[$],P?(R+=D==="n"?`
|
|
`:D,P=!1):D==="\\"?P=!0:R+=D;return R}(b.label).split(`
|
|
`),L=0;L<A.length;L++)_.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(A[L]);return m.applyStyle(_,b.labelStyle),_}},1034:(f,k,h)=>{var m;try{m={defaults:h(1747),each:h(6073),isFunction:h(3560),isPlainObject:h(8630),pick:h(9722),has:h(8721),range:h(6026),uniqueId:h(3955)}}catch{}m||(m=window._),f.exports=m},6381:(f,k,h)=>{var m=h(8355),d=h(4322);f.exports=function(b,_){var A=b.filter(function(){return!d.select(this).classed("update")});function L(E){var D=_.node(E);return"translate("+D.x+","+D.y+")"}A.attr("transform",L),m.applyTransition(b,_).style("opacity",1).attr("transform",L),m.applyTransition(A.selectAll("rect"),_).attr("width",function(E){return _.node(E).width}).attr("height",function(E){return _.node(E).height}).attr("x",function(E){return-_.node(E).width/2}).attr("y",function(E){return-_.node(E).height/2})}},4577:(f,k,h)=>{var m=h(8355),d=h(4322),b=h(1034);f.exports=function(_,A){function L(E){var D=A.edge(E);return b.has(D,"x")?"translate("+D.x+","+D.y+")":""}_.filter(function(){return!d.select(this).classed("update")}).attr("transform",L),m.applyTransition(_,A).style("opacity",1).attr("transform",L)}},4849:(f,k,h)=>{var m=h(8355),d=h(4322);f.exports=function(b,_){function A(L){var E=_.node(L);return"translate("+E.x+","+E.y+")"}b.filter(function(){return!d.select(this).classed("update")}).attr("transform",A),m.applyTransition(b,_).style("opacity",1).attr("transform",A)}},5787:(f,k,h)=>{var m=h(1034),d=h(4322),b=h(1463).layout;f.exports=function(){var E=h(607),D=h(5632),R=h(6315),P=h(940),$=h(4849),K=h(4577),et=h(6381),ht=h(4418),X=h(9144),_t=function(rt,at){(function(pt){pt.nodes().forEach(function(tt){var ft=pt.node(tt);m.has(ft,"label")||pt.children(tt).length||(ft.label=tt),m.has(ft,"paddingX")&&m.defaults(ft,{paddingLeft:ft.paddingX,paddingRight:ft.paddingX}),m.has(ft,"paddingY")&&m.defaults(ft,{paddingTop:ft.paddingY,paddingBottom:ft.paddingY}),m.has(ft,"padding")&&m.defaults(ft,{paddingLeft:ft.padding,paddingRight:ft.padding,paddingTop:ft.padding,paddingBottom:ft.padding}),m.defaults(ft,_),m.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(q){ft[q]=Number(ft[q])}),m.has(ft,"width")&&(ft._prevWidth=ft.width),m.has(ft,"height")&&(ft._prevHeight=ft.height)}),pt.edges().forEach(function(tt){var ft=pt.edge(tt);m.has(ft,"label")||(ft.label=""),m.defaults(ft,A)})})(at);var bt=L(rt,"output"),Ft=L(bt,"clusters"),Tt=L(bt,"edgePaths"),yt=R(L(bt,"edgeLabels"),at),Nt=E(L(bt,"nodes"),at,ht);b(at),$(Nt,at),K(yt,at),P(Tt,at,X);var xt=D(Ft,at);et(xt,at),function(pt){m.each(pt.nodes(),function(tt){var ft=pt.node(tt);m.has(ft,"_prevWidth")?ft.width=ft._prevWidth:delete ft.width,m.has(ft,"_prevHeight")?ft.height=ft._prevHeight:delete ft.height,delete ft._prevWidth,delete ft._prevHeight})}(at)};return _t.createNodes=function(rt){return arguments.length?(E=rt,_t):E},_t.createClusters=function(rt){return arguments.length?(D=rt,_t):D},_t.createEdgeLabels=function(rt){return arguments.length?(R=rt,_t):R},_t.createEdgePaths=function(rt){return arguments.length?(P=rt,_t):P},_t.shapes=function(rt){return arguments.length?(ht=rt,_t):ht},_t.arrows=function(rt){return arguments.length?(X=rt,_t):X},_t};var _={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},A={arrowhead:"normal",curve:d.curveLinear};function L(E,D){var R=E.select("g."+D);return R.empty()&&(R=E.append("g").attr("class",D)),R}},4418:(f,k,h)=>{var m=h(8049),d=h(3260),b=h(6587),_=h(5337);f.exports={rect:function(A,L,E){var D=A.insert("rect",":first-child").attr("rx",E.rx).attr("ry",E.ry).attr("x",-L.width/2).attr("y",-L.height/2).attr("width",L.width).attr("height",L.height);return E.intersect=function(R){return m(E,R)},D},ellipse:function(A,L,E){var D=L.width/2,R=L.height/2,P=A.insert("ellipse",":first-child").attr("x",-L.width/2).attr("y",-L.height/2).attr("rx",D).attr("ry",R);return E.intersect=function($){return d(E,D,R,$)},P},circle:function(A,L,E){var D=Math.max(L.width,L.height)/2,R=A.insert("circle",":first-child").attr("x",-L.width/2).attr("y",-L.height/2).attr("r",D);return E.intersect=function(P){return b(E,D,P)},R},diamond:function(A,L,E){var D=L.width*Math.SQRT2/2,R=L.height*Math.SQRT2/2,P=[{x:0,y:-R},{x:-D,y:0},{x:0,y:R},{x:D,y:0}],$=A.insert("polygon",":first-child").attr("points",P.map(function(K){return K.x+","+K.y}).join(" "));return E.intersect=function(K){return _(E,P,K)},$}}},8355:(f,k,h)=>{var m=h(1034);f.exports={isSubgraph:function(_,A){return!!_.children(A).length},edgeToId:function(_){return b(_.v)+":"+b(_.w)+":"+b(_.name)},applyStyle:function(_,A){A&&_.attr("style",A)},applyClass:function(_,A,L){A&&_.attr("class",A).attr("class",L+" "+_.attr("class"))},applyTransition:function(_,A){var L=A.graph();if(m.isPlainObject(L)){var E=L.transition;if(m.isFunction(E))return E(_)}return _}};var d=/:/g;function b(_){return _?String(_).replace(d,"\\:"):""}},5689:f=>{f.exports="0.6.4"},681:(f,k,h)=>{f.exports={graphlib:h(574),layout:h(8123),debug:h(7570),util:{time:h(1138).time,notime:h(1138).notime},version:h(8177)}},2188:(f,k,h)=>{var m=h(8436),d=h(4079);f.exports={run:function(b){var _=b.graph().acyclicer==="greedy"?d(b,function(A){return function(L){return A.edge(L).weight}}(b)):function(A){var L=[],E={},D={};return m.forEach(A.nodes(),function R(P){m.has(D,P)||(D[P]=!0,E[P]=!0,m.forEach(A.outEdges(P),function($){m.has(E,$.w)?L.push($):R($.w)}),delete E[P])}),L}(b);m.forEach(_,function(A){var L=b.edge(A);b.removeEdge(A),L.forwardName=A.name,L.reversed=!0,b.setEdge(A.w,A.v,L,m.uniqueId("rev"))})},undo:function(b){m.forEach(b.edges(),function(_){var A=b.edge(_);if(A.reversed){b.removeEdge(_);var L=A.forwardName;delete A.reversed,delete A.forwardName,b.setEdge(_.w,_.v,A,L)}})}}},1133:(f,k,h)=>{var m=h(8436),d=h(1138);function b(_,A,L,E,D,R){var P={width:0,height:0,rank:R,borderType:A},$=D[A][R-1],K=d.addDummyNode(_,"border",P,L);D[A][R]=K,_.setParent(K,E),$&&_.setEdge($,K,{weight:1})}f.exports=function(_){m.forEach(_.children(),function A(L){var E=_.children(L),D=_.node(L);if(E.length&&m.forEach(E,A),m.has(D,"minRank")){D.borderLeft=[],D.borderRight=[];for(var R=D.minRank,P=D.maxRank+1;R<P;++R)b(_,"borderLeft","_bl",L,D,R),b(_,"borderRight","_br",L,D,R)}})}},3258:(f,k,h)=>{var m=h(8436);function d(L){m.forEach(L.nodes(),function(E){b(L.node(E))}),m.forEach(L.edges(),function(E){b(L.edge(E))})}function b(L){var E=L.width;L.width=L.height,L.height=E}function _(L){L.y=-L.y}function A(L){var E=L.x;L.x=L.y,L.y=E}f.exports={adjust:function(L){var E=L.graph().rankdir.toLowerCase();E!=="lr"&&E!=="rl"||d(L)},undo:function(L){var E=L.graph().rankdir.toLowerCase();E!=="bt"&&E!=="rl"||function(D){m.forEach(D.nodes(),function(R){_(D.node(R))}),m.forEach(D.edges(),function(R){var P=D.edge(R);m.forEach(P.points,_),m.has(P,"y")&&_(P)})}(L),E!=="lr"&&E!=="rl"||(function(D){m.forEach(D.nodes(),function(R){A(D.node(R))}),m.forEach(D.edges(),function(R){var P=D.edge(R);m.forEach(P.points,A),m.has(P,"x")&&A(P)})}(L),d(L))}}},7822:f=>{function k(){var d={};d._next=d._prev=d,this._sentinel=d}function h(d){d._prev._next=d._next,d._next._prev=d._prev,delete d._next,delete d._prev}function m(d,b){if(d!=="_next"&&d!=="_prev")return b}f.exports=k,k.prototype.dequeue=function(){var d=this._sentinel,b=d._prev;if(b!==d)return h(b),b},k.prototype.enqueue=function(d){var b=this._sentinel;d._prev&&d._next&&h(d),d._next=b._next,b._next._prev=d,b._next=d,d._prev=b},k.prototype.toString=function(){for(var d=[],b=this._sentinel,_=b._prev;_!==b;)d.push(JSON.stringify(_,m)),_=_._prev;return"["+d.join(", ")+"]"}},7570:(f,k,h)=>{var m=h(8436),d=h(1138),b=h(574).Graph;f.exports={debugOrdering:function(_){var A=d.buildLayerMatrix(_),L=new b({compound:!0,multigraph:!0}).setGraph({});return m.forEach(_.nodes(),function(E){L.setNode(E,{label:E}),L.setParent(E,"layer"+_.node(E).rank)}),m.forEach(_.edges(),function(E){L.setEdge(E.v,E.w,{},E.name)}),m.forEach(A,function(E,D){var R="layer"+D;L.setNode(R,{rank:"same"}),m.reduce(E,function(P,$){return L.setEdge(P,$,{style:"invis"}),$})}),L}}},574:(f,k,h)=>{var m;try{m=h(8282)}catch{}m||(m=window.graphlib),f.exports=m},4079:(f,k,h)=>{var m=h(8436),d=h(574).Graph,b=h(7822);f.exports=function(E,D){if(E.nodeCount()<=1)return[];var R=function($,K){var et=new d,ht=0,X=0;m.forEach($.nodes(),function(at){et.setNode(at,{v:at,in:0,out:0})}),m.forEach($.edges(),function(at){var bt=et.edge(at.v,at.w)||0,Ft=K(at),Tt=bt+Ft;et.setEdge(at.v,at.w,Tt),X=Math.max(X,et.node(at.v).out+=Ft),ht=Math.max(ht,et.node(at.w).in+=Ft)});var _t=m.range(X+ht+3).map(function(){return new b}),rt=ht+1;return m.forEach(et.nodes(),function(at){L(_t,rt,et.node(at))}),{graph:et,buckets:_t,zeroIdx:rt}}(E,D||_),P=function($,K,et){for(var ht,X=[],_t=K[K.length-1],rt=K[0];$.nodeCount();){for(;ht=rt.dequeue();)A($,K,et,ht);for(;ht=_t.dequeue();)A($,K,et,ht);if($.nodeCount()){for(var at=K.length-2;at>0;--at)if(ht=K[at].dequeue()){X=X.concat(A($,K,et,ht,!0));break}}}return X}(R.graph,R.buckets,R.zeroIdx);return m.flatten(m.map(P,function($){return E.outEdges($.v,$.w)}),!0)};var _=m.constant(1);function A(E,D,R,P,$){var K=$?[]:void 0;return m.forEach(E.inEdges(P.v),function(et){var ht=E.edge(et),X=E.node(et.v);$&&K.push({v:et.v,w:et.w}),X.out-=ht,L(D,R,X)}),m.forEach(E.outEdges(P.v),function(et){var ht=E.edge(et),X=et.w,_t=E.node(X);_t.in-=ht,L(D,R,_t)}),E.removeNode(P.v),K}function L(E,D,R){R.out?R.in?E[R.out-R.in+D].enqueue(R):E[E.length-1].enqueue(R):E[0].enqueue(R)}},8123:(f,k,h)=>{var m=h(8436),d=h(2188),b=h(5995),_=h(8093),A=h(1138).normalizeRanks,L=h(4219),E=h(1138).removeEmptyRanks,D=h(2981),R=h(1133),P=h(3258),$=h(3408),K=h(7873),et=h(1138),ht=h(574).Graph;f.exports=function(pt,tt){var ft=tt&&tt.debugTiming?et.time:et.notime;ft("layout",function(){var q=ft(" buildLayoutGraph",function(){return function(kt){var W=new ht({multigraph:!0,compound:!0}),St=xt(kt.graph());return W.setGraph(m.merge({},_t,Nt(St,X),m.pick(St,rt))),m.forEach(kt.nodes(),function(Lt){var Ht=xt(kt.node(Lt));W.setNode(Lt,m.defaults(Nt(Ht,at),bt)),W.setParent(Lt,kt.parent(Lt))}),m.forEach(kt.edges(),function(Lt){var Ht=xt(kt.edge(Lt));W.setEdge(Lt,m.merge({},Tt,Nt(Ht,Ft),m.pick(Ht,yt)))}),W}(pt)});ft(" runLayout",function(){(function(kt,W){W(" makeSpaceForEdgeLabels",function(){(function(St){var Lt=St.graph();Lt.ranksep/=2,m.forEach(St.edges(),function(Ht){var ge=St.edge(Ht);ge.minlen*=2,ge.labelpos.toLowerCase()!=="c"&&(Lt.rankdir==="TB"||Lt.rankdir==="BT"?ge.width+=ge.labeloffset:ge.height+=ge.labeloffset)})})(kt)}),W(" removeSelfEdges",function(){(function(St){m.forEach(St.edges(),function(Lt){if(Lt.v===Lt.w){var Ht=St.node(Lt.v);Ht.selfEdges||(Ht.selfEdges=[]),Ht.selfEdges.push({e:Lt,label:St.edge(Lt)}),St.removeEdge(Lt)}})})(kt)}),W(" acyclic",function(){d.run(kt)}),W(" nestingGraph.run",function(){D.run(kt)}),W(" rank",function(){_(et.asNonCompoundGraph(kt))}),W(" injectEdgeLabelProxies",function(){(function(St){m.forEach(St.edges(),function(Lt){var Ht=St.edge(Lt);if(Ht.width&&Ht.height){var ge=St.node(Lt.v),We={rank:(St.node(Lt.w).rank-ge.rank)/2+ge.rank,e:Lt};et.addDummyNode(St,"edge-proxy",We,"_ep")}})})(kt)}),W(" removeEmptyRanks",function(){E(kt)}),W(" nestingGraph.cleanup",function(){D.cleanup(kt)}),W(" normalizeRanks",function(){A(kt)}),W(" assignRankMinMax",function(){(function(St){var Lt=0;m.forEach(St.nodes(),function(Ht){var ge=St.node(Ht);ge.borderTop&&(ge.minRank=St.node(ge.borderTop).rank,ge.maxRank=St.node(ge.borderBottom).rank,Lt=m.max(Lt,ge.maxRank))}),St.graph().maxRank=Lt})(kt)}),W(" removeEdgeLabelProxies",function(){(function(St){m.forEach(St.nodes(),function(Lt){var Ht=St.node(Lt);Ht.dummy==="edge-proxy"&&(St.edge(Ht.e).labelRank=Ht.rank,St.removeNode(Lt))})})(kt)}),W(" normalize.run",function(){b.run(kt)}),W(" parentDummyChains",function(){L(kt)}),W(" addBorderSegments",function(){R(kt)}),W(" order",function(){$(kt)}),W(" insertSelfEdges",function(){(function(St){var Lt=et.buildLayerMatrix(St);m.forEach(Lt,function(Ht){var ge=0;m.forEach(Ht,function(We,Ee){var fe=St.node(We);fe.order=Ee+ge,m.forEach(fe.selfEdges,function(xe){et.addDummyNode(St,"selfedge",{width:xe.label.width,height:xe.label.height,rank:fe.rank,order:Ee+ ++ge,e:xe.e,label:xe.label},"_se")}),delete fe.selfEdges})})})(kt)}),W(" adjustCoordinateSystem",function(){P.adjust(kt)}),W(" position",function(){K(kt)}),W(" positionSelfEdges",function(){(function(St){m.forEach(St.nodes(),function(Lt){var Ht=St.node(Lt);if(Ht.dummy==="selfedge"){var ge=St.node(Ht.e.v),We=ge.x+ge.width/2,Ee=ge.y,fe=Ht.x-We,xe=ge.height/2;St.setEdge(Ht.e,Ht.label),St.removeNode(Lt),Ht.label.points=[{x:We+2*fe/3,y:Ee-xe},{x:We+5*fe/6,y:Ee-xe},{x:We+fe,y:Ee},{x:We+5*fe/6,y:Ee+xe},{x:We+2*fe/3,y:Ee+xe}],Ht.label.x=Ht.x,Ht.label.y=Ht.y}})})(kt)}),W(" removeBorderNodes",function(){(function(St){m.forEach(St.nodes(),function(Lt){if(St.children(Lt).length){var Ht=St.node(Lt),ge=St.node(Ht.borderTop),We=St.node(Ht.borderBottom),Ee=St.node(m.last(Ht.borderLeft)),fe=St.node(m.last(Ht.borderRight));Ht.width=Math.abs(fe.x-Ee.x),Ht.height=Math.abs(We.y-ge.y),Ht.x=Ee.x+Ht.width/2,Ht.y=ge.y+Ht.height/2}}),m.forEach(St.nodes(),function(Lt){St.node(Lt).dummy==="border"&&St.removeNode(Lt)})})(kt)}),W(" normalize.undo",function(){b.undo(kt)}),W(" fixupEdgeLabelCoords",function(){(function(St){m.forEach(St.edges(),function(Lt){var Ht=St.edge(Lt);if(m.has(Ht,"x"))switch(Ht.labelpos!=="l"&&Ht.labelpos!=="r"||(Ht.width-=Ht.labeloffset),Ht.labelpos){case"l":Ht.x-=Ht.width/2+Ht.labeloffset;break;case"r":Ht.x+=Ht.width/2+Ht.labeloffset}})})(kt)}),W(" undoCoordinateSystem",function(){P.undo(kt)}),W(" translateGraph",function(){(function(St){var Lt=Number.POSITIVE_INFINITY,Ht=0,ge=Number.POSITIVE_INFINITY,We=0,Ee=St.graph(),fe=Ee.marginx||0,xe=Ee.marginy||0;function Ie(Me){var ve=Me.x,An=Me.y,_e=Me.width,en=Me.height;Lt=Math.min(Lt,ve-_e/2),Ht=Math.max(Ht,ve+_e/2),ge=Math.min(ge,An-en/2),We=Math.max(We,An+en/2)}m.forEach(St.nodes(),function(Me){Ie(St.node(Me))}),m.forEach(St.edges(),function(Me){var ve=St.edge(Me);m.has(ve,"x")&&Ie(ve)}),Lt-=fe,ge-=xe,m.forEach(St.nodes(),function(Me){var ve=St.node(Me);ve.x-=Lt,ve.y-=ge}),m.forEach(St.edges(),function(Me){var ve=St.edge(Me);m.forEach(ve.points,function(An){An.x-=Lt,An.y-=ge}),m.has(ve,"x")&&(ve.x-=Lt),m.has(ve,"y")&&(ve.y-=ge)}),Ee.width=Ht-Lt+fe,Ee.height=We-ge+xe})(kt)}),W(" assignNodeIntersects",function(){(function(St){m.forEach(St.edges(),function(Lt){var Ht,ge,We=St.edge(Lt),Ee=St.node(Lt.v),fe=St.node(Lt.w);We.points?(Ht=We.points[0],ge=We.points[We.points.length-1]):(We.points=[],Ht=fe,ge=Ee),We.points.unshift(et.intersectRect(Ee,Ht)),We.points.push(et.intersectRect(fe,ge))})})(kt)}),W(" reversePoints",function(){(function(St){m.forEach(St.edges(),function(Lt){var Ht=St.edge(Lt);Ht.reversed&&Ht.points.reverse()})})(kt)}),W(" acyclic.undo",function(){d.undo(kt)})})(q,ft)}),ft(" updateInputGraph",function(){(function(kt,W){m.forEach(kt.nodes(),function(St){var Lt=kt.node(St),Ht=W.node(St);Lt&&(Lt.x=Ht.x,Lt.y=Ht.y,W.children(St).length&&(Lt.width=Ht.width,Lt.height=Ht.height))}),m.forEach(kt.edges(),function(St){var Lt=kt.edge(St),Ht=W.edge(St);Lt.points=Ht.points,m.has(Ht,"x")&&(Lt.x=Ht.x,Lt.y=Ht.y)}),kt.graph().width=W.graph().width,kt.graph().height=W.graph().height})(pt,q)})})};var X=["nodesep","edgesep","ranksep","marginx","marginy"],_t={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},rt=["acyclicer","ranker","rankdir","align"],at=["width","height"],bt={width:0,height:0},Ft=["minlen","weight","width","height","labeloffset"],Tt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},yt=["labelpos"];function Nt(pt,tt){return m.mapValues(m.pick(pt,tt),Number)}function xt(pt){var tt={};return m.forEach(pt,function(ft,q){tt[q.toLowerCase()]=ft}),tt}},8436:(f,k,h)=>{var m;try{m={cloneDeep:h(361),constant:h(5703),defaults:h(1747),each:h(6073),filter:h(3105),find:h(3311),flatten:h(5564),forEach:h(4486),forIn:h(2620),has:h(8721),isUndefined:h(2353),last:h(928),map:h(5161),mapValues:h(6604),max:h(6162),merge:h(3857),min:h(3632),minBy:h(2762),now:h(7771),pick:h(9722),range:h(6026),reduce:h(4061),sortBy:h(9734),uniqueId:h(3955),values:h(2628),zipObject:h(7287)}}catch{}m||(m=window._),f.exports=m},2981:(f,k,h)=>{var m=h(8436),d=h(1138);function b(_,A,L,E,D,R,P){var $=_.children(P);if($.length){var K=d.addBorderNode(_,"_bt"),et=d.addBorderNode(_,"_bb"),ht=_.node(P);_.setParent(K,P),ht.borderTop=K,_.setParent(et,P),ht.borderBottom=et,m.forEach($,function(X){b(_,A,L,E,D,R,X);var _t=_.node(X),rt=_t.borderTop?_t.borderTop:X,at=_t.borderBottom?_t.borderBottom:X,bt=_t.borderTop?E:2*E,Ft=rt!==at?1:D-R[P]+1;_.setEdge(K,rt,{weight:bt,minlen:Ft,nestingEdge:!0}),_.setEdge(at,et,{weight:bt,minlen:Ft,nestingEdge:!0})}),_.parent(P)||_.setEdge(A,K,{weight:0,minlen:D+R[P]})}else P!==A&&_.setEdge(A,P,{weight:0,minlen:L})}f.exports={run:function(_){var A=d.addDummyNode(_,"root",{},"_root"),L=function(P){var $={};function K(et,ht){var X=P.children(et);X&&X.length&&m.forEach(X,function(_t){K(_t,ht+1)}),$[et]=ht}return m.forEach(P.children(),function(et){K(et,1)}),$}(_),E=m.max(m.values(L))-1,D=2*E+1;_.graph().nestingRoot=A,m.forEach(_.edges(),function(P){_.edge(P).minlen*=D});var R=function(P){return m.reduce(P.edges(),function($,K){return $+P.edge(K).weight},0)}(_)+1;m.forEach(_.children(),function(P){b(_,A,D,R,E,L,P)}),_.graph().nodeRankFactor=D},cleanup:function(_){var A=_.graph();_.removeNode(A.nestingRoot),delete A.nestingRoot,m.forEach(_.edges(),function(L){_.edge(L).nestingEdge&&_.removeEdge(L)})}}},5995:(f,k,h)=>{var m=h(8436),d=h(1138);f.exports={run:function(b){b.graph().dummyChains=[],m.forEach(b.edges(),function(_){(function(A,L){var E,D,R,P=L.v,$=A.node(P).rank,K=L.w,et=A.node(K).rank,ht=L.name,X=A.edge(L),_t=X.labelRank;if(et!==$+1){for(A.removeEdge(L),R=0,++$;$<et;++R,++$)X.points=[],D={width:0,height:0,edgeLabel:X,edgeObj:L,rank:$},E=d.addDummyNode(A,"edge",D,"_d"),$===_t&&(D.width=X.width,D.height=X.height,D.dummy="edge-label",D.labelpos=X.labelpos),A.setEdge(P,E,{weight:X.weight},ht),R===0&&A.graph().dummyChains.push(E),P=E;A.setEdge(P,K,{weight:X.weight},ht)}})(b,_)})},undo:function(b){m.forEach(b.graph().dummyChains,function(_){var A,L=b.node(_),E=L.edgeLabel;for(b.setEdge(L.edgeObj,E);L.dummy;)A=b.successors(_)[0],b.removeNode(_),E.points.push({x:L.x,y:L.y}),L.dummy==="edge-label"&&(E.x=L.x,E.y=L.y,E.width=L.width,E.height=L.height),_=A,L=b.node(_)})}}},5093:(f,k,h)=>{var m=h(8436);f.exports=function(d,b,_){var A,L={};m.forEach(_,function(E){for(var D,R,P=d.parent(E);P;){if((D=d.parent(P))?(R=L[D],L[D]=P):(R=A,A=P),R&&R!==P)return void b.setEdge(R,P);P=D}})}},5439:(f,k,h)=>{var m=h(8436);f.exports=function(d,b){return m.map(b,function(_){var A=d.inEdges(_);if(A.length){var L=m.reduce(A,function(E,D){var R=d.edge(D),P=d.node(D.v);return{sum:E.sum+R.weight*P.order,weight:E.weight+R.weight}},{sum:0,weight:0});return{v:_,barycenter:L.sum/L.weight,weight:L.weight}}return{v:_}})}},3128:(f,k,h)=>{var m=h(8436),d=h(574).Graph;f.exports=function(b,_,A){var L=function(D){for(var R;D.hasNode(R=m.uniqueId("_root")););return R}(b),E=new d({compound:!0}).setGraph({root:L}).setDefaultNodeLabel(function(D){return b.node(D)});return m.forEach(b.nodes(),function(D){var R=b.node(D),P=b.parent(D);(R.rank===_||R.minRank<=_&&_<=R.maxRank)&&(E.setNode(D),E.setParent(D,P||L),m.forEach(b[A](D),function($){var K=$.v===D?$.w:$.v,et=E.edge(K,D),ht=m.isUndefined(et)?0:et.weight;E.setEdge(K,D,{weight:b.edge($).weight+ht})}),m.has(R,"minRank")&&E.setNode(D,{borderLeft:R.borderLeft[_],borderRight:R.borderRight[_]}))}),E}},6630:(f,k,h)=>{var m=h(8436);function d(b,_,A){for(var L=m.zipObject(A,m.map(A,function(K,et){return et})),E=m.flatten(m.map(_,function(K){return m.sortBy(m.map(b.outEdges(K),function(et){return{pos:L[et.w],weight:b.edge(et).weight}}),"pos")}),!0),D=1;D<A.length;)D<<=1;var R=2*D-1;D-=1;var P=m.map(new Array(R),function(){return 0}),$=0;return m.forEach(E.forEach(function(K){var et=K.pos+D;P[et]+=K.weight;for(var ht=0;et>0;)et%2&&(ht+=P[et+1]),P[et=et-1>>1]+=K.weight;$+=K.weight*ht})),$}f.exports=function(b,_){for(var A=0,L=1;L<_.length;++L)A+=d(b,_[L-1],_[L]);return A}},3408:(f,k,h)=>{var m=h(8436),d=h(2588),b=h(6630),_=h(1026),A=h(3128),L=h(5093),E=h(574).Graph,D=h(1138);function R(K,et,ht){return m.map(et,function(X){return A(K,X,ht)})}function P(K,et){var ht=new E;m.forEach(K,function(X){var _t=X.graph().root,rt=_(X,_t,ht,et);m.forEach(rt.vs,function(at,bt){X.node(at).order=bt}),L(X,ht,rt.vs)})}function $(K,et){m.forEach(et,function(ht){m.forEach(ht,function(X,_t){K.node(X).order=_t})})}f.exports=function(K){var et=D.maxRank(K),ht=R(K,m.range(1,et+1),"inEdges"),X=R(K,m.range(et-1,-1,-1),"outEdges"),_t=d(K);$(K,_t);for(var rt,at=Number.POSITIVE_INFINITY,bt=0,Ft=0;Ft<4;++bt,++Ft){P(bt%2?ht:X,bt%4>=2),_t=D.buildLayerMatrix(K);var Tt=b(K,_t);Tt<at&&(Ft=0,rt=m.cloneDeep(_t),at=Tt)}$(K,rt)}},2588:(f,k,h)=>{var m=h(8436);f.exports=function(d){var b={},_=m.filter(d.nodes(),function(D){return!d.children(D).length}),A=m.max(m.map(_,function(D){return d.node(D).rank})),L=m.map(m.range(A+1),function(){return[]}),E=m.sortBy(_,function(D){return d.node(D).rank});return m.forEach(E,function D(R){if(!m.has(b,R)){b[R]=!0;var P=d.node(R);L[P.rank].push(R),m.forEach(d.successors(R),D)}}),L}},9567:(f,k,h)=>{var m=h(8436);f.exports=function(d,b){var _={};return m.forEach(d,function(A,L){var E=_[A.v]={indegree:0,in:[],out:[],vs:[A.v],i:L};m.isUndefined(A.barycenter)||(E.barycenter=A.barycenter,E.weight=A.weight)}),m.forEach(b.edges(),function(A){var L=_[A.v],E=_[A.w];m.isUndefined(L)||m.isUndefined(E)||(E.indegree++,L.out.push(_[A.w]))}),function(A){var L=[];function E(P){return function($){var K,et,ht,X;$.merged||(m.isUndefined($.barycenter)||m.isUndefined(P.barycenter)||$.barycenter>=P.barycenter)&&(et=$,ht=0,X=0,(K=P).weight&&(ht+=K.barycenter*K.weight,X+=K.weight),et.weight&&(ht+=et.barycenter*et.weight,X+=et.weight),K.vs=et.vs.concat(K.vs),K.barycenter=ht/X,K.weight=X,K.i=Math.min(et.i,K.i),et.merged=!0)}}function D(P){return function($){$.in.push(P),--$.indegree==0&&A.push($)}}for(;A.length;){var R=A.pop();L.push(R),m.forEach(R.in.reverse(),E(R)),m.forEach(R.out,D(R))}return m.map(m.filter(L,function(P){return!P.merged}),function(P){return m.pick(P,["vs","i","barycenter","weight"])})}(m.filter(_,function(A){return!A.indegree}))}},1026:(f,k,h)=>{var m=h(8436),d=h(5439),b=h(9567),_=h(7304);f.exports=function A(L,E,D,R){var P=L.children(E),$=L.node(E),K=$?$.borderLeft:void 0,et=$?$.borderRight:void 0,ht={};K&&(P=m.filter(P,function(Ft){return Ft!==K&&Ft!==et}));var X=d(L,P);m.forEach(X,function(Ft){if(L.children(Ft.v).length){var Tt=A(L,Ft.v,D,R);ht[Ft.v]=Tt,m.has(Tt,"barycenter")&&(yt=Ft,Nt=Tt,m.isUndefined(yt.barycenter)?(yt.barycenter=Nt.barycenter,yt.weight=Nt.weight):(yt.barycenter=(yt.barycenter*yt.weight+Nt.barycenter*Nt.weight)/(yt.weight+Nt.weight),yt.weight+=Nt.weight))}var yt,Nt});var _t=b(X,D);(function(Ft,Tt){m.forEach(Ft,function(yt){yt.vs=m.flatten(yt.vs.map(function(Nt){return Tt[Nt]?Tt[Nt].vs:Nt}),!0)})})(_t,ht);var rt=_(_t,R);if(K&&(rt.vs=m.flatten([K,rt.vs,et],!0),L.predecessors(K).length)){var at=L.node(L.predecessors(K)[0]),bt=L.node(L.predecessors(et)[0]);m.has(rt,"barycenter")||(rt.barycenter=0,rt.weight=0),rt.barycenter=(rt.barycenter*rt.weight+at.order+bt.order)/(rt.weight+2),rt.weight+=2}return rt}},7304:(f,k,h)=>{var m=h(8436),d=h(1138);function b(_,A,L){for(var E;A.length&&(E=m.last(A)).i<=L;)A.pop(),_.push(E.vs),L++;return L}f.exports=function(_,A){var L,E=d.partition(_,function(X){return m.has(X,"barycenter")}),D=E.lhs,R=m.sortBy(E.rhs,function(X){return-X.i}),P=[],$=0,K=0,et=0;D.sort((L=!!A,function(X,_t){return X.barycenter<_t.barycenter?-1:X.barycenter>_t.barycenter?1:L?_t.i-X.i:X.i-_t.i})),et=b(P,R,et),m.forEach(D,function(X){et+=X.vs.length,P.push(X.vs),$+=X.barycenter*X.weight,K+=X.weight,et=b(P,R,et)});var ht={vs:m.flatten(P,!0)};return K&&(ht.barycenter=$/K,ht.weight=K),ht}},4219:(f,k,h)=>{var m=h(8436);f.exports=function(d){var b=function(_){var A={},L=0;return m.forEach(_.children(),function E(D){var R=L;m.forEach(_.children(D),E),A[D]={low:R,lim:L++}}),A}(d);m.forEach(d.graph().dummyChains,function(_){for(var A=d.node(_),L=A.edgeObj,E=function(et,ht,X,_t){var rt,at,bt=[],Ft=[],Tt=Math.min(ht[X].low,ht[_t].low),yt=Math.max(ht[X].lim,ht[_t].lim);rt=X;do rt=et.parent(rt),bt.push(rt);while(rt&&(ht[rt].low>Tt||yt>ht[rt].lim));for(at=rt,rt=_t;(rt=et.parent(rt))!==at;)Ft.push(rt);return{path:bt.concat(Ft.reverse()),lca:at}}(d,b,L.v,L.w),D=E.path,R=E.lca,P=0,$=D[P],K=!0;_!==L.w;){if(A=d.node(_),K){for(;($=D[P])!==R&&d.node($).maxRank<A.rank;)P++;$===R&&(K=!1)}if(!K){for(;P<D.length-1&&d.node($=D[P+1]).minRank<=A.rank;)P++;$=D[P]}d.setParent(_,$),_=d.successors(_)[0]}})}},3573:(f,k,h)=>{var m=h(8436),d=h(574).Graph,b=h(1138);function _(et,ht){var X={};return m.reduce(ht,function(_t,rt){var at=0,bt=0,Ft=_t.length,Tt=m.last(rt);return m.forEach(rt,function(yt,Nt){var xt=function(tt,ft){if(tt.node(ft).dummy)return m.find(tt.predecessors(ft),function(q){return tt.node(q).dummy})}(et,yt),pt=xt?et.node(xt).order:Ft;(xt||yt===Tt)&&(m.forEach(rt.slice(bt,Nt+1),function(tt){m.forEach(et.predecessors(tt),function(ft){var q=et.node(ft),kt=q.order;!(kt<at||pt<kt)||q.dummy&&et.node(tt).dummy||L(X,ft,tt)})}),bt=Nt+1,at=pt)}),rt}),X}function A(et,ht){var X={};function _t(rt,at,bt,Ft,Tt){var yt;m.forEach(m.range(at,bt),function(Nt){yt=rt[Nt],et.node(yt).dummy&&m.forEach(et.predecessors(yt),function(xt){var pt=et.node(xt);pt.dummy&&(pt.order<Ft||pt.order>Tt)&&L(X,xt,yt)})})}return m.reduce(ht,function(rt,at){var bt,Ft=-1,Tt=0;return m.forEach(at,function(yt,Nt){if(et.node(yt).dummy==="border"){var xt=et.predecessors(yt);xt.length&&(bt=et.node(xt[0]).order,_t(at,Tt,Nt,Ft,bt),Tt=Nt,Ft=bt)}_t(at,Tt,at.length,bt,rt.length)}),at}),X}function L(et,ht,X){if(ht>X){var _t=ht;ht=X,X=_t}var rt=et[ht];rt||(et[ht]=rt={}),rt[X]=!0}function E(et,ht,X){if(ht>X){var _t=ht;ht=X,X=_t}return m.has(et[ht],X)}function D(et,ht,X,_t){var rt={},at={},bt={};return m.forEach(ht,function(Ft){m.forEach(Ft,function(Tt,yt){rt[Tt]=Tt,at[Tt]=Tt,bt[Tt]=yt})}),m.forEach(ht,function(Ft){var Tt=-1;m.forEach(Ft,function(yt){var Nt=_t(yt);if(Nt.length){Nt=m.sortBy(Nt,function(q){return bt[q]});for(var xt=(Nt.length-1)/2,pt=Math.floor(xt),tt=Math.ceil(xt);pt<=tt;++pt){var ft=Nt[pt];at[yt]===yt&&Tt<bt[ft]&&!E(X,yt,ft)&&(at[ft]=yt,at[yt]=rt[yt]=rt[ft],Tt=bt[ft])}}})}),{root:rt,align:at}}function R(et,ht,X,_t,rt){var at={},bt=function(yt,Nt,xt,pt){var tt=new d,ft=yt.graph(),q=function(kt,W,St){return function(Lt,Ht,ge){var We,Ee=Lt.node(Ht),fe=Lt.node(ge),xe=0;if(xe+=Ee.width/2,m.has(Ee,"labelpos"))switch(Ee.labelpos.toLowerCase()){case"l":We=-Ee.width/2;break;case"r":We=Ee.width/2}if(We&&(xe+=St?We:-We),We=0,xe+=(Ee.dummy?W:kt)/2,xe+=(fe.dummy?W:kt)/2,xe+=fe.width/2,m.has(fe,"labelpos"))switch(fe.labelpos.toLowerCase()){case"l":We=fe.width/2;break;case"r":We=-fe.width/2}return We&&(xe+=St?We:-We),We=0,xe}}(ft.nodesep,ft.edgesep,pt);return m.forEach(Nt,function(kt){var W;m.forEach(kt,function(St){var Lt=xt[St];if(tt.setNode(Lt),W){var Ht=xt[W],ge=tt.edge(Ht,Lt);tt.setEdge(Ht,Lt,Math.max(q(yt,St,W),ge||0))}W=St})}),tt}(et,ht,X,rt),Ft=rt?"borderLeft":"borderRight";function Tt(yt,Nt){for(var xt=bt.nodes(),pt=xt.pop(),tt={};pt;)tt[pt]?yt(pt):(tt[pt]=!0,xt.push(pt),xt=xt.concat(Nt(pt))),pt=xt.pop()}return Tt(function(yt){at[yt]=bt.inEdges(yt).reduce(function(Nt,xt){return Math.max(Nt,at[xt.v]+bt.edge(xt))},0)},bt.predecessors.bind(bt)),Tt(function(yt){var Nt=bt.outEdges(yt).reduce(function(pt,tt){return Math.min(pt,at[tt.w]-bt.edge(tt))},Number.POSITIVE_INFINITY),xt=et.node(yt);Nt!==Number.POSITIVE_INFINITY&&xt.borderType!==Ft&&(at[yt]=Math.max(at[yt],Nt))},bt.successors.bind(bt)),m.forEach(_t,function(yt){at[yt]=at[X[yt]]}),at}function P(et,ht){return m.minBy(m.values(ht),function(X){var _t=Number.NEGATIVE_INFINITY,rt=Number.POSITIVE_INFINITY;return m.forIn(X,function(at,bt){var Ft=function(Tt,yt){return Tt.node(yt).width}(et,bt)/2;_t=Math.max(at+Ft,_t),rt=Math.min(at-Ft,rt)}),_t-rt})}function $(et,ht){var X=m.values(ht),_t=m.min(X),rt=m.max(X);m.forEach(["u","d"],function(at){m.forEach(["l","r"],function(bt){var Ft,Tt=at+bt,yt=et[Tt];if(yt!==ht){var Nt=m.values(yt);(Ft=bt==="l"?_t-m.min(Nt):rt-m.max(Nt))&&(et[Tt]=m.mapValues(yt,function(xt){return xt+Ft}))}})})}function K(et,ht){return m.mapValues(et.ul,function(X,_t){if(ht)return et[ht.toLowerCase()][_t];var rt=m.sortBy(m.map(et,_t));return(rt[1]+rt[2])/2})}f.exports={positionX:function(et){var ht,X=b.buildLayerMatrix(et),_t=m.merge(_(et,X),A(et,X)),rt={};m.forEach(["u","d"],function(bt){ht=bt==="u"?X:m.values(X).reverse(),m.forEach(["l","r"],function(Ft){Ft==="r"&&(ht=m.map(ht,function(xt){return m.values(xt).reverse()}));var Tt=(bt==="u"?et.predecessors:et.successors).bind(et),yt=D(0,ht,_t,Tt),Nt=R(et,ht,yt.root,yt.align,Ft==="r");Ft==="r"&&(Nt=m.mapValues(Nt,function(xt){return-xt})),rt[bt+Ft]=Nt})});var at=P(et,rt);return $(rt,at),K(rt,et.graph().align)},findType1Conflicts:_,findType2Conflicts:A,addConflict:L,hasConflict:E,verticalAlignment:D,horizontalCompaction:R,alignCoordinates:$,findSmallestWidthAlignment:P,balance:K}},7873:(f,k,h)=>{var m=h(8436),d=h(1138),b=h(3573).positionX;f.exports=function(_){(function(A){var L=d.buildLayerMatrix(A),E=A.graph().ranksep,D=0;m.forEach(L,function(R){var P=m.max(m.map(R,function($){return A.node($).height}));m.forEach(R,function($){A.node($).y=D+P/2}),D+=P+E})})(_=d.asNonCompoundGraph(_)),m.forEach(b(_),function(A,L){_.node(L).x=A})}},300:(f,k,h)=>{var m=h(8436),d=h(574).Graph,b=h(6681).slack;function _(E,D){return m.forEach(E.nodes(),function R(P){m.forEach(D.nodeEdges(P),function($){var K=$.v,et=P===K?$.w:K;E.hasNode(et)||b(D,$)||(E.setNode(et,{}),E.setEdge(P,et,{}),R(et))})}),E.nodeCount()}function A(E,D){return m.minBy(D.edges(),function(R){if(E.hasNode(R.v)!==E.hasNode(R.w))return b(D,R)})}function L(E,D,R){m.forEach(E.nodes(),function(P){D.node(P).rank+=R})}f.exports=function(E){var D,R,P=new d({directed:!1}),$=E.nodes()[0],K=E.nodeCount();for(P.setNode($,{});_(P,E)<K;)D=A(P,E),R=P.hasNode(D.v)?b(E,D):-b(E,D),L(P,E,R);return P}},8093:(f,k,h)=>{var m=h(6681).longestPath,d=h(300),b=h(2472);f.exports=function(A){switch(A.graph().ranker){case"network-simplex":default:(function(L){b(L)})(A);break;case"tight-tree":(function(L){m(L),d(L)})(A);break;case"longest-path":_(A)}};var _=m},2472:(f,k,h)=>{var m=h(8436),d=h(300),b=h(6681).slack,_=h(6681).longestPath,A=h(574).alg.preorder,L=h(574).alg.postorder,E=h(1138).simplify;function D(rt){rt=E(rt),_(rt);var at,bt=d(rt);for($(bt),R(bt,rt);at=et(bt);)X(bt,rt,at,ht(bt,rt,at))}function R(rt,at){var bt=L(rt,rt.nodes());bt=bt.slice(0,bt.length-1),m.forEach(bt,function(Ft){(function(Tt,yt,Nt){var xt=Tt.node(Nt).parent;Tt.edge(Nt,xt).cutvalue=P(Tt,yt,Nt)})(rt,at,Ft)})}function P(rt,at,bt){var Ft=rt.node(bt).parent,Tt=!0,yt=at.edge(bt,Ft),Nt=0;return yt||(Tt=!1,yt=at.edge(Ft,bt)),Nt=yt.weight,m.forEach(at.nodeEdges(bt),function(xt){var pt,tt,ft=xt.v===bt,q=ft?xt.w:xt.v;if(q!==Ft){var kt=ft===Tt,W=at.edge(xt).weight;if(Nt+=kt?W:-W,pt=bt,tt=q,rt.hasEdge(pt,tt)){var St=rt.edge(bt,q).cutvalue;Nt+=kt?-St:St}}}),Nt}function $(rt,at){arguments.length<2&&(at=rt.nodes()[0]),K(rt,{},1,at)}function K(rt,at,bt,Ft,Tt){var yt=bt,Nt=rt.node(Ft);return at[Ft]=!0,m.forEach(rt.neighbors(Ft),function(xt){m.has(at,xt)||(bt=K(rt,at,bt,xt,Ft))}),Nt.low=yt,Nt.lim=bt++,Tt?Nt.parent=Tt:delete Nt.parent,bt}function et(rt){return m.find(rt.edges(),function(at){return rt.edge(at).cutvalue<0})}function ht(rt,at,bt){var Ft=bt.v,Tt=bt.w;at.hasEdge(Ft,Tt)||(Ft=bt.w,Tt=bt.v);var yt=rt.node(Ft),Nt=rt.node(Tt),xt=yt,pt=!1;yt.lim>Nt.lim&&(xt=Nt,pt=!0);var tt=m.filter(at.edges(),function(ft){return pt===_t(0,rt.node(ft.v),xt)&&pt!==_t(0,rt.node(ft.w),xt)});return m.minBy(tt,function(ft){return b(at,ft)})}function X(rt,at,bt,Ft){var Tt=bt.v,yt=bt.w;rt.removeEdge(Tt,yt),rt.setEdge(Ft.v,Ft.w,{}),$(rt),R(rt,at),function(Nt,xt){var pt=m.find(Nt.nodes(),function(ft){return!xt.node(ft).parent}),tt=A(Nt,pt);tt=tt.slice(1),m.forEach(tt,function(ft){var q=Nt.node(ft).parent,kt=xt.edge(ft,q),W=!1;kt||(kt=xt.edge(q,ft),W=!0),xt.node(ft).rank=xt.node(q).rank+(W?kt.minlen:-kt.minlen)})}(rt,at)}function _t(rt,at,bt){return bt.low<=at.lim&&at.lim<=bt.lim}f.exports=D,D.initLowLimValues=$,D.initCutValues=R,D.calcCutValue=P,D.leaveEdge=et,D.enterEdge=ht,D.exchangeEdges=X},6681:(f,k,h)=>{var m=h(8436);f.exports={longestPath:function(d){var b={};m.forEach(d.sources(),function _(A){var L=d.node(A);if(m.has(b,A))return L.rank;b[A]=!0;var E=m.min(m.map(d.outEdges(A),function(D){return _(D.w)-d.edge(D).minlen}));return E!==Number.POSITIVE_INFINITY&&E!=null||(E=0),L.rank=E})},slack:function(d,b){return d.node(b.w).rank-d.node(b.v).rank-d.edge(b).minlen}}},1138:(f,k,h)=>{var m=h(8436),d=h(574).Graph;function b(A,L,E,D){var R;do R=m.uniqueId(D);while(A.hasNode(R));return E.dummy=L,A.setNode(R,E),R}function _(A){return m.max(m.map(A.nodes(),function(L){var E=A.node(L).rank;if(!m.isUndefined(E))return E}))}f.exports={addDummyNode:b,simplify:function(A){var L=new d().setGraph(A.graph());return m.forEach(A.nodes(),function(E){L.setNode(E,A.node(E))}),m.forEach(A.edges(),function(E){var D=L.edge(E.v,E.w)||{weight:0,minlen:1},R=A.edge(E);L.setEdge(E.v,E.w,{weight:D.weight+R.weight,minlen:Math.max(D.minlen,R.minlen)})}),L},asNonCompoundGraph:function(A){var L=new d({multigraph:A.isMultigraph()}).setGraph(A.graph());return m.forEach(A.nodes(),function(E){A.children(E).length||L.setNode(E,A.node(E))}),m.forEach(A.edges(),function(E){L.setEdge(E,A.edge(E))}),L},successorWeights:function(A){var L=m.map(A.nodes(),function(E){var D={};return m.forEach(A.outEdges(E),function(R){D[R.w]=(D[R.w]||0)+A.edge(R).weight}),D});return m.zipObject(A.nodes(),L)},predecessorWeights:function(A){var L=m.map(A.nodes(),function(E){var D={};return m.forEach(A.inEdges(E),function(R){D[R.v]=(D[R.v]||0)+A.edge(R).weight}),D});return m.zipObject(A.nodes(),L)},intersectRect:function(A,L){var E,D,R=A.x,P=A.y,$=L.x-R,K=L.y-P,et=A.width/2,ht=A.height/2;if(!$&&!K)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(K)*et>Math.abs($)*ht?(K<0&&(ht=-ht),E=ht*$/K,D=ht):($<0&&(et=-et),E=et,D=et*K/$),{x:R+E,y:P+D}},buildLayerMatrix:function(A){var L=m.map(m.range(_(A)+1),function(){return[]});return m.forEach(A.nodes(),function(E){var D=A.node(E),R=D.rank;m.isUndefined(R)||(L[R][D.order]=E)}),L},normalizeRanks:function(A){var L=m.min(m.map(A.nodes(),function(E){return A.node(E).rank}));m.forEach(A.nodes(),function(E){var D=A.node(E);m.has(D,"rank")&&(D.rank-=L)})},removeEmptyRanks:function(A){var L=m.min(m.map(A.nodes(),function(P){return A.node(P).rank})),E=[];m.forEach(A.nodes(),function(P){var $=A.node(P).rank-L;E[$]||(E[$]=[]),E[$].push(P)});var D=0,R=A.graph().nodeRankFactor;m.forEach(E,function(P,$){m.isUndefined(P)&&$%R!=0?--D:D&&m.forEach(P,function(K){A.node(K).rank+=D})})},addBorderNode:function(A,L,E,D){var R={width:0,height:0};return arguments.length>=4&&(R.rank=E,R.order=D),b(A,"border",R,L)},maxRank:_,partition:function(A,L){var E={lhs:[],rhs:[]};return m.forEach(A,function(D){L(D)?E.lhs.push(D):E.rhs.push(D)}),E},time:function(A,L){var E=m.now();try{return L()}finally{console.log(A+" time: "+(m.now()-E)+"ms")}},notime:function(A,L){return L()}}},8177:f=>{f.exports="0.8.5"},7856:function(f){f.exports=function(){function k(ot){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Te){return typeof Te}:function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},k(ot)}function h(ot,Te){return h=Object.setPrototypeOf||function(ue,Fe){return ue.__proto__=Fe,ue},h(ot,Te)}function m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function d(ot,Te,ue){return d=m()?Reflect.construct:function(Fe,fn,rn){var Xe=[null];Xe.push.apply(Xe,fn);var ae=new(Function.bind.apply(Fe,Xe));return rn&&h(ae,rn.prototype),ae},d.apply(null,arguments)}function b(ot){return function(Te){if(Array.isArray(Te))return _(Te)}(ot)||function(Te){if(typeof Symbol<"u"&&Te[Symbol.iterator]!=null||Te["@@iterator"]!=null)return Array.from(Te)}(ot)||function(Te,ue){if(Te){if(typeof Te=="string")return _(Te,ue);var Fe=Object.prototype.toString.call(Te).slice(8,-1);return Fe==="Object"&&Te.constructor&&(Fe=Te.constructor.name),Fe==="Map"||Fe==="Set"?Array.from(Te):Fe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Fe)?_(Te,ue):void 0}}(ot)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _(ot,Te){(Te==null||Te>ot.length)&&(Te=ot.length);for(var ue=0,Fe=new Array(Te);ue<Te;ue++)Fe[ue]=ot[ue];return Fe}var A=Object.hasOwnProperty,L=Object.setPrototypeOf,E=Object.isFrozen,D=Object.getPrototypeOf,R=Object.getOwnPropertyDescriptor,P=Object.freeze,$=Object.seal,K=Object.create,et=typeof Reflect<"u"&&Reflect,ht=et.apply,X=et.construct;ht||(ht=function(ot,Te,ue){return ot.apply(Te,ue)}),P||(P=function(ot){return ot}),$||($=function(ot){return ot}),X||(X=function(ot,Te){return d(ot,b(Te))});var _t,rt=ft(Array.prototype.forEach),at=ft(Array.prototype.pop),bt=ft(Array.prototype.push),Ft=ft(String.prototype.toLowerCase),Tt=ft(String.prototype.match),yt=ft(String.prototype.replace),Nt=ft(String.prototype.indexOf),xt=ft(String.prototype.trim),pt=ft(RegExp.prototype.test),tt=(_t=TypeError,function(){for(var ot=arguments.length,Te=new Array(ot),ue=0;ue<ot;ue++)Te[ue]=arguments[ue];return X(_t,Te)});function ft(ot){return function(Te){for(var ue=arguments.length,Fe=new Array(ue>1?ue-1:0),fn=1;fn<ue;fn++)Fe[fn-1]=arguments[fn];return ht(ot,Te,Fe)}}function q(ot,Te){L&&L(ot,null);for(var ue=Te.length;ue--;){var Fe=Te[ue];if(typeof Fe=="string"){var fn=Ft(Fe);fn!==Fe&&(E(Te)||(Te[ue]=fn),Fe=fn)}ot[Fe]=!0}return ot}function kt(ot){var Te,ue=K(null);for(Te in ot)ht(A,ot,[Te])&&(ue[Te]=ot[Te]);return ue}function W(ot,Te){for(;ot!==null;){var ue=R(ot,Te);if(ue){if(ue.get)return ft(ue.get);if(typeof ue.value=="function")return ft(ue.value)}ot=D(ot)}return function(Fe){return console.warn("fallback value for",Fe),null}}var St=P(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Lt=P(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ht=P(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ge=P(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),We=P(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Ee=P(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fe=P(["#text"]),xe=P(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Ie=P(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Me=P(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ve=P(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),An=$(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_e=$(/<%[\w\W]*|[\w\W]*%>/gm),en=$(/^data-[\-\w.\u00B7-\uFFFF]/),Ot=$(/^aria-[\-\w]+$/),he=$(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Qt=$(/^(?:\w+script|data):/i),At=$(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),De=$(/^html$/i),J=function(){return typeof window>"u"?null:window},Ce=function(ot,Te){if(k(ot)!=="object"||typeof ot.createPolicy!="function")return null;var ue=null,Fe="data-tt-policy-suffix";Te.currentScript&&Te.currentScript.hasAttribute(Fe)&&(ue=Te.currentScript.getAttribute(Fe));var fn="dompurify"+(ue?"#"+ue:"");try{return ot.createPolicy(fn,{createHTML:function(rn){return rn}})}catch{return console.warn("TrustedTypes policy "+fn+" could not be created."),null}};return function ot(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J(),ue=function(Zt){return ot(Zt)};if(ue.version="2.3.8",ue.removed=[],!Te||!Te.document||Te.document.nodeType!==9)return ue.isSupported=!1,ue;var Fe=Te.document,fn=Te.document,rn=Te.DocumentFragment,Xe=Te.HTMLTemplateElement,ae=Te.Node,Be=Te.Element,pe=Te.NodeFilter,Pe=Te.NamedNodeMap,ye=Pe===void 0?Te.NamedNodeMap||Te.MozNamedAttrMap:Pe,Ve=Te.HTMLFormElement,kn=Te.DOMParser,ar=Te.trustedTypes,cn=Be.prototype,hn=W(cn,"cloneNode"),Qr=W(cn,"nextSibling"),Lr=W(cn,"childNodes"),Cn=W(cn,"parentNode");if(typeof Xe=="function"){var In=fn.createElement("template");In.content&&In.content.ownerDocument&&(fn=In.content.ownerDocument)}var Le=Ce(ar,Fe),ie=Le?Le.createHTML(""):"",Qe=fn,Vt=Qe.implementation,Nn=Qe.createNodeIterator,Ct=Qe.createDocumentFragment,vn=Qe.getElementsByTagName,Rt=Fe.importNode,Un={};try{Un=kt(fn).documentMode?fn.documentMode:{}}catch{}var Yn={};ue.isSupported=typeof Cn=="function"&&Vt&&Vt.createHTMLDocument!==void 0&&Un!==9;var Xn,Hn,Vn=An,Kn=_e,Mn=en,jn=Ot,Gn=Qt,Zn=At,Ua=he,Wr=null,Pr=q({},[].concat(b(St),b(Lt),b(Ht),b(We),b(fe))),On=null,Qi=q({},[].concat(b(xe),b(Ie),b(Me),b(ve))),Qn=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Yr=null,Gr=null,Or=!0,Vr=!0,Zr=!1,jr=!1,ti=!1,or=!1,pi=!1,Sr=!1,ei=!1,ki=!1,za=!0,Dr=!0,ga=!1,Fi={},ta=null,Tn=q({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),wr=null,tr=q({},["audio","video","img","source","image","track"]),on=null,sr=q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qt="http://www.w3.org/1998/Math/MathML",gi="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1999/xhtml",Ti=Jt,Ya=!1,$r=["application/xhtml+xml","text/html"],Co="text/html",ya=null,Br=fn.createElement("form"),ni=function(Zt){return Zt instanceof RegExp||Zt instanceof Function},yi=function(Zt){ya&&ya===Zt||(Zt&&k(Zt)==="object"||(Zt={}),Zt=kt(Zt),Wr="ALLOWED_TAGS"in Zt?q({},Zt.ALLOWED_TAGS):Pr,On="ALLOWED_ATTR"in Zt?q({},Zt.ALLOWED_ATTR):Qi,on="ADD_URI_SAFE_ATTR"in Zt?q(kt(sr),Zt.ADD_URI_SAFE_ATTR):sr,wr="ADD_DATA_URI_TAGS"in Zt?q(kt(tr),Zt.ADD_DATA_URI_TAGS):tr,ta="FORBID_CONTENTS"in Zt?q({},Zt.FORBID_CONTENTS):Tn,Yr="FORBID_TAGS"in Zt?q({},Zt.FORBID_TAGS):{},Gr="FORBID_ATTR"in Zt?q({},Zt.FORBID_ATTR):{},Fi="USE_PROFILES"in Zt&&Zt.USE_PROFILES,Or=Zt.ALLOW_ARIA_ATTR!==!1,Vr=Zt.ALLOW_DATA_ATTR!==!1,Zr=Zt.ALLOW_UNKNOWN_PROTOCOLS||!1,jr=Zt.SAFE_FOR_TEMPLATES||!1,ti=Zt.WHOLE_DOCUMENT||!1,Sr=Zt.RETURN_DOM||!1,ei=Zt.RETURN_DOM_FRAGMENT||!1,ki=Zt.RETURN_TRUSTED_TYPE||!1,pi=Zt.FORCE_BODY||!1,za=Zt.SANITIZE_DOM!==!1,Dr=Zt.KEEP_CONTENT!==!1,ga=Zt.IN_PLACE||!1,Ua=Zt.ALLOWED_URI_REGEXP||Ua,Ti=Zt.NAMESPACE||Jt,Zt.CUSTOM_ELEMENT_HANDLING&&ni(Zt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Qn.tagNameCheck=Zt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Zt.CUSTOM_ELEMENT_HANDLING&&ni(Zt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Qn.attributeNameCheck=Zt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Zt.CUSTOM_ELEMENT_HANDLING&&typeof Zt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Qn.allowCustomizedBuiltInElements=Zt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Xn=Xn=$r.indexOf(Zt.PARSER_MEDIA_TYPE)===-1?Co:Zt.PARSER_MEDIA_TYPE,Hn=Xn==="application/xhtml+xml"?function(xn){return xn}:Ft,jr&&(Vr=!1),ei&&(Sr=!0),Fi&&(Wr=q({},b(fe)),On=[],Fi.html===!0&&(q(Wr,St),q(On,xe)),Fi.svg===!0&&(q(Wr,Lt),q(On,Ie),q(On,ve)),Fi.svgFilters===!0&&(q(Wr,Ht),q(On,Ie),q(On,ve)),Fi.mathMl===!0&&(q(Wr,We),q(On,Me),q(On,ve))),Zt.ADD_TAGS&&(Wr===Pr&&(Wr=kt(Wr)),q(Wr,Zt.ADD_TAGS)),Zt.ADD_ATTR&&(On===Qi&&(On=kt(On)),q(On,Zt.ADD_ATTR)),Zt.ADD_URI_SAFE_ATTR&&q(on,Zt.ADD_URI_SAFE_ATTR),Zt.FORBID_CONTENTS&&(ta===Tn&&(ta=kt(ta)),q(ta,Zt.FORBID_CONTENTS)),Dr&&(Wr["#text"]=!0),ti&&q(Wr,["html","head","body"]),Wr.table&&(q(Wr,["tbody"]),delete Yr.tbody),P&&P(Zt),ya=Zt)},Ca=q({},["mi","mo","mn","ms","mtext"]),Vi=q({},["foreignobject","desc","title","annotation-xml"]),Si=q({},["title","style","font","a","script"]),ma=q({},Lt);q(ma,Ht),q(ma,ge);var ri=q({},We);q(ri,Ee);var ja=function(Zt){var xn=Cn(Zt);xn&&xn.tagName||(xn={namespaceURI:Jt,tagName:"template"});var un=Ft(Zt.tagName),gr=Ft(xn.tagName);return Zt.namespaceURI===gi?xn.namespaceURI===Jt?un==="svg":xn.namespaceURI===qt?un==="svg"&&(gr==="annotation-xml"||Ca[gr]):Boolean(ma[un]):Zt.namespaceURI===qt?xn.namespaceURI===Jt?un==="math":xn.namespaceURI===gi?un==="math"&&Vi[gr]:Boolean(ri[un]):Zt.namespaceURI===Jt&&!(xn.namespaceURI===gi&&!Vi[gr])&&!(xn.namespaceURI===qt&&!Ca[gr])&&!ri[un]&&(Si[un]||!ma[un])},Bn=function(Zt){bt(ue.removed,{element:Zt});try{Zt.parentNode.removeChild(Zt)}catch{try{Zt.outerHTML=ie}catch{Zt.remove()}}},wi=function(Zt,xn){try{bt(ue.removed,{attribute:xn.getAttributeNode(Zt),from:xn})}catch{bt(ue.removed,{attribute:null,from:xn})}if(xn.removeAttribute(Zt),Zt==="is"&&!On[Zt])if(Sr||ei)try{Bn(xn)}catch{}else try{xn.setAttribute(Zt,"")}catch{}},Na=function(Zt){var xn,un;if(pi)Zt="<remove></remove>"+Zt;else{var gr=Tt(Zt,/^[\r\n\t ]+/);un=gr&&gr[0]}Xn==="application/xhtml+xml"&&(Zt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Zt+"</body></html>");var Xr=Le?Le.createHTML(Zt):Zt;if(Ti===Jt)try{xn=new kn().parseFromString(Xr,Xn)}catch{}if(!xn||!xn.documentElement){xn=Vt.createDocument(Ti,"template",null);try{xn.documentElement.innerHTML=Ya?"":Xr}catch{}}var Hr=xn.body||xn.documentElement;return Zt&&un&&Hr.insertBefore(fn.createTextNode(un),Hr.childNodes[0]||null),Ti===Jt?vn.call(xn,ti?"html":"body")[0]:ti?xn.documentElement:Hr},$i=function(Zt){return Nn.call(Zt.ownerDocument||Zt,Zt,pe.SHOW_ELEMENT|pe.SHOW_COMMENT|pe.SHOW_TEXT,null,!1)},xr=function(Zt){return Zt instanceof Ve&&(typeof Zt.nodeName!="string"||typeof Zt.textContent!="string"||typeof Zt.removeChild!="function"||!(Zt.attributes instanceof ye)||typeof Zt.removeAttribute!="function"||typeof Zt.setAttribute!="function"||typeof Zt.namespaceURI!="string"||typeof Zt.insertBefore!="function")},oa=function(Zt){return k(ae)==="object"?Zt instanceof ae:Zt&&k(Zt)==="object"&&typeof Zt.nodeType=="number"&&typeof Zt.nodeName=="string"},Li=function(Zt,xn,un){Yn[Zt]&&rt(Yn[Zt],function(gr){gr.call(ue,xn,un,ya)})},si=function(Zt){var xn;if(Li("beforeSanitizeElements",Zt,null),xr(Zt)||pt(/[\u0080-\uFFFF]/,Zt.nodeName))return Bn(Zt),!0;var un=Hn(Zt.nodeName);if(Li("uponSanitizeElement",Zt,{tagName:un,allowedTags:Wr}),Zt.hasChildNodes()&&!oa(Zt.firstElementChild)&&(!oa(Zt.content)||!oa(Zt.content.firstElementChild))&&pt(/<[/\w]/g,Zt.innerHTML)&&pt(/<[/\w]/g,Zt.textContent)||un==="select"&&pt(/<template/i,Zt.innerHTML))return Bn(Zt),!0;if(!Wr[un]||Yr[un]){if(!Yr[un]&&jt(un)&&(Qn.tagNameCheck instanceof RegExp&&pt(Qn.tagNameCheck,un)||Qn.tagNameCheck instanceof Function&&Qn.tagNameCheck(un)))return!1;if(Dr&&!ta[un]){var gr=Cn(Zt)||Zt.parentNode,Xr=Lr(Zt)||Zt.childNodes;if(Xr&&gr)for(var Hr=Xr.length-1;Hr>=0;--Hr)gr.insertBefore(hn(Xr[Hr],!0),Qr(Zt))}return Bn(Zt),!0}return Zt instanceof Be&&!ja(Zt)?(Bn(Zt),!0):un!=="noscript"&&un!=="noembed"||!pt(/<\/no(script|embed)/i,Zt.innerHTML)?(jr&&Zt.nodeType===3&&(xn=Zt.textContent,xn=yt(xn,Vn," "),xn=yt(xn,Kn," "),Zt.textContent!==xn&&(bt(ue.removed,{element:Zt.cloneNode()}),Zt.textContent=xn)),Li("afterSanitizeElements",Zt,null),!1):(Bn(Zt),!0)},sa=function(Zt,xn,un){if(za&&(xn==="id"||xn==="name")&&(un in fn||un in Br))return!1;if(!(Vr&&!Gr[xn]&&pt(Mn,xn))){if(!(Or&&pt(jn,xn))){if(!On[xn]||Gr[xn]){if(!(jt(Zt)&&(Qn.tagNameCheck instanceof RegExp&&pt(Qn.tagNameCheck,Zt)||Qn.tagNameCheck instanceof Function&&Qn.tagNameCheck(Zt))&&(Qn.attributeNameCheck instanceof RegExp&&pt(Qn.attributeNameCheck,xn)||Qn.attributeNameCheck instanceof Function&&Qn.attributeNameCheck(xn))||xn==="is"&&Qn.allowCustomizedBuiltInElements&&(Qn.tagNameCheck instanceof RegExp&&pt(Qn.tagNameCheck,un)||Qn.tagNameCheck instanceof Function&&Qn.tagNameCheck(un))))return!1}else if(!on[xn]){if(!pt(Ua,yt(un,Zn,""))){if((xn!=="src"&&xn!=="xlink:href"&&xn!=="href"||Zt==="script"||Nt(un,"data:")!==0||!wr[Zt])&&!(Zr&&!pt(Gn,yt(un,Zn,"")))){if(un)return!1}}}}}return!0},jt=function(Zt){return Zt.indexOf("-")>0},us=function(Zt){var xn,un,gr,Xr;Li("beforeSanitizeAttributes",Zt,null);var Hr=Zt.attributes;if(Hr){var Cr={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:On};for(Xr=Hr.length;Xr--;){var ci=xn=Hr[Xr],li=ci.name,ii=ci.namespaceURI;if(un=li==="value"?xn.value:xt(xn.value),gr=Hn(li),Cr.attrName=gr,Cr.attrValue=un,Cr.keepAttr=!0,Cr.forceKeepAttr=void 0,Li("uponSanitizeAttribute",Zt,Cr),un=Cr.attrValue,!Cr.forceKeepAttr&&(wi(li,Zt),Cr.keepAttr))if(pt(/\/>/i,un))wi(li,Zt);else{jr&&(un=yt(un,Vn," "),un=yt(un,Kn," "));var Za=Hn(Zt.nodeName);if(sa(Za,gr,un))try{ii?Zt.setAttributeNS(ii,li,un):Zt.setAttribute(li,un),at(ue.removed)}catch{}}}Li("afterSanitizeAttributes",Zt,null)}},No=function Zt(xn){var un,gr=$i(xn);for(Li("beforeSanitizeShadowDOM",xn,null);un=gr.nextNode();)Li("uponSanitizeShadowNode",un,null),si(un)||(un.content instanceof rn&&Zt(un.content),us(un));Li("afterSanitizeShadowDOM",xn,null)};return ue.sanitize=function(Zt,xn){var un,gr,Xr,Hr,Cr;if((Ya=!Zt)&&(Zt="<!-->"),typeof Zt!="string"&&!oa(Zt)){if(typeof Zt.toString!="function")throw tt("toString is not a function");if(typeof(Zt=Zt.toString())!="string")throw tt("dirty is not a string, aborting")}if(!ue.isSupported){if(k(Te.toStaticHTML)==="object"||typeof Te.toStaticHTML=="function"){if(typeof Zt=="string")return Te.toStaticHTML(Zt);if(oa(Zt))return Te.toStaticHTML(Zt.outerHTML)}return Zt}if(or||yi(xn),ue.removed=[],typeof Zt=="string"&&(ga=!1),ga){if(Zt.nodeName){var ci=Hn(Zt.nodeName);if(!Wr[ci]||Yr[ci])throw tt("root node is forbidden and cannot be sanitized in-place")}}else if(Zt instanceof ae)(gr=(un=Na("<!---->")).ownerDocument.importNode(Zt,!0)).nodeType===1&&gr.nodeName==="BODY"||gr.nodeName==="HTML"?un=gr:un.appendChild(gr);else{if(!Sr&&!jr&&!ti&&Zt.indexOf("<")===-1)return Le&&ki?Le.createHTML(Zt):Zt;if(!(un=Na(Zt)))return Sr?null:ki?ie:""}un&&pi&&Bn(un.firstChild);for(var li=$i(ga?Zt:un);Xr=li.nextNode();)Xr.nodeType===3&&Xr===Hr||si(Xr)||(Xr.content instanceof rn&&No(Xr.content),us(Xr),Hr=Xr);if(Hr=null,ga)return Zt;if(Sr){if(ei)for(Cr=Ct.call(un.ownerDocument);un.firstChild;)Cr.appendChild(un.firstChild);else Cr=un;return On.shadowroot&&(Cr=Rt.call(Fe,Cr,!0)),Cr}var ii=ti?un.outerHTML:un.innerHTML;return ti&&Wr["!doctype"]&&un.ownerDocument&&un.ownerDocument.doctype&&un.ownerDocument.doctype.name&&pt(De,un.ownerDocument.doctype.name)&&(ii="<!DOCTYPE "+un.ownerDocument.doctype.name+`>
|
|
`+ii),jr&&(ii=yt(ii,Vn," "),ii=yt(ii,Kn," ")),Le&&ki?Le.createHTML(ii):ii},ue.setConfig=function(Zt){yi(Zt),or=!0},ue.clearConfig=function(){ya=null,or=!1},ue.isValidAttribute=function(Zt,xn,un){ya||yi({});var gr=Hn(Zt),Xr=Hn(xn);return sa(gr,Xr,un)},ue.addHook=function(Zt,xn){typeof xn=="function"&&(Yn[Zt]=Yn[Zt]||[],bt(Yn[Zt],xn))},ue.removeHook=function(Zt){if(Yn[Zt])return at(Yn[Zt])},ue.removeHooks=function(Zt){Yn[Zt]&&(Yn[Zt]=[])},ue.removeAllHooks=function(){Yn={}},ue}()}()},8282:(f,k,h)=>{var m=h(2354);f.exports={Graph:m.Graph,json:h(8974),alg:h(2440),version:m.version}},2842:(f,k,h)=>{var m=h(9126);f.exports=function(d){var b,_={},A=[];function L(E){m.has(_,E)||(_[E]=!0,b.push(E),m.each(d.successors(E),L),m.each(d.predecessors(E),L))}return m.each(d.nodes(),function(E){b=[],L(E),b.length&&A.push(b)}),A}},3984:(f,k,h)=>{var m=h(9126);function d(b,_,A,L,E,D){m.has(L,_)||(L[_]=!0,A||D.push(_),m.each(E(_),function(R){d(b,R,A,L,E,D)}),A&&D.push(_))}f.exports=function(b,_,A){m.isArray(_)||(_=[_]);var L=(b.isDirected()?b.successors:b.neighbors).bind(b),E=[],D={};return m.each(_,function(R){if(!b.hasNode(R))throw new Error("Graph does not have node: "+R);d(b,R,A==="post",D,L,E)}),E}},4847:(f,k,h)=>{var m=h(3763),d=h(9126);f.exports=function(b,_,A){return d.transform(b.nodes(),function(L,E){L[E]=m(b,E,_,A)},{})}},3763:(f,k,h)=>{var m=h(9126),d=h(9675);f.exports=function(_,A,L,E){return function(D,R,P,$){var K,et,ht={},X=new d,_t=function(rt){var at=rt.v!==K?rt.v:rt.w,bt=ht[at],Ft=P(rt),Tt=et.distance+Ft;if(Ft<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+rt+" Weight: "+Ft);Tt<bt.distance&&(bt.distance=Tt,bt.predecessor=K,X.decrease(at,Tt))};for(D.nodes().forEach(function(rt){var at=rt===R?0:Number.POSITIVE_INFINITY;ht[rt]={distance:at},X.add(rt,at)});X.size()>0&&(K=X.removeMin(),(et=ht[K]).distance!==Number.POSITIVE_INFINITY);)$(K).forEach(_t);return ht}(_,String(A),L||b,E||function(D){return _.outEdges(D)})};var b=m.constant(1)},9096:(f,k,h)=>{var m=h(9126),d=h(5023);f.exports=function(b){return m.filter(d(b),function(_){return _.length>1||_.length===1&&b.hasEdge(_[0],_[0])})}},8924:(f,k,h)=>{var m=h(9126);f.exports=function(b,_,A){return function(L,E,D){var R={},P=L.nodes();return P.forEach(function($){R[$]={},R[$][$]={distance:0},P.forEach(function(K){$!==K&&(R[$][K]={distance:Number.POSITIVE_INFINITY})}),D($).forEach(function(K){var et=K.v===$?K.w:K.v,ht=E(K);R[$][et]={distance:ht,predecessor:$}})}),P.forEach(function($){var K=R[$];P.forEach(function(et){var ht=R[et];P.forEach(function(X){var _t=ht[$],rt=K[X],at=ht[X],bt=_t.distance+rt.distance;bt<at.distance&&(at.distance=bt,at.predecessor=rt.predecessor)})})}),R}(b,_||d,A||function(L){return b.outEdges(L)})};var d=m.constant(1)},2440:(f,k,h)=>{f.exports={components:h(2842),dijkstra:h(3763),dijkstraAll:h(4847),findCycles:h(9096),floydWarshall:h(8924),isAcyclic:h(2707),postorder:h(8828),preorder:h(2648),prim:h(514),tarjan:h(5023),topsort:h(2166)}},2707:(f,k,h)=>{var m=h(2166);f.exports=function(d){try{m(d)}catch(b){if(b instanceof m.CycleException)return!1;throw b}return!0}},8828:(f,k,h)=>{var m=h(3984);f.exports=function(d,b){return m(d,b,"post")}},2648:(f,k,h)=>{var m=h(3984);f.exports=function(d,b){return m(d,b,"pre")}},514:(f,k,h)=>{var m=h(9126),d=h(771),b=h(9675);f.exports=function(_,A){var L,E=new d,D={},R=new b;function P(K){var et=K.v===L?K.w:K.v,ht=R.priority(et);if(ht!==void 0){var X=A(K);X<ht&&(D[et]=L,R.decrease(et,X))}}if(_.nodeCount()===0)return E;m.each(_.nodes(),function(K){R.add(K,Number.POSITIVE_INFINITY),E.setNode(K)}),R.decrease(_.nodes()[0],0);for(var $=!1;R.size()>0;){if(L=R.removeMin(),m.has(D,L))E.setEdge(L,D[L]);else{if($)throw new Error("Input graph is not connected: "+_);$=!0}_.nodeEdges(L).forEach(P)}return E}},5023:(f,k,h)=>{var m=h(9126);f.exports=function(d){var b=0,_=[],A={},L=[];function E(D){var R=A[D]={onStack:!0,lowlink:b,index:b++};if(_.push(D),d.successors(D).forEach(function(K){m.has(A,K)?A[K].onStack&&(R.lowlink=Math.min(R.lowlink,A[K].index)):(E(K),R.lowlink=Math.min(R.lowlink,A[K].lowlink))}),R.lowlink===R.index){var P,$=[];do P=_.pop(),A[P].onStack=!1,$.push(P);while(D!==P);L.push($)}}return d.nodes().forEach(function(D){m.has(A,D)||E(D)}),L}},2166:(f,k,h)=>{var m=h(9126);function d(_){var A={},L={},E=[];if(m.each(_.sinks(),function D(R){if(m.has(L,R))throw new b;m.has(A,R)||(L[R]=!0,A[R]=!0,m.each(_.predecessors(R),D),delete L[R],E.push(R))}),m.size(A)!==_.nodeCount())throw new b;return E}function b(){}f.exports=d,d.CycleException=b,b.prototype=new Error},9675:(f,k,h)=>{var m=h(9126);function d(){this._arr=[],this._keyIndices={}}f.exports=d,d.prototype.size=function(){return this._arr.length},d.prototype.keys=function(){return this._arr.map(function(b){return b.key})},d.prototype.has=function(b){return m.has(this._keyIndices,b)},d.prototype.priority=function(b){var _=this._keyIndices[b];if(_!==void 0)return this._arr[_].priority},d.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},d.prototype.add=function(b,_){var A=this._keyIndices;if(b=String(b),!m.has(A,b)){var L=this._arr,E=L.length;return A[b]=E,L.push({key:b,priority:_}),this._decrease(E),!0}return!1},d.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var b=this._arr.pop();return delete this._keyIndices[b.key],this._heapify(0),b.key},d.prototype.decrease=function(b,_){var A=this._keyIndices[b];if(_>this._arr[A].priority)throw new Error("New priority is greater than current priority. Key: "+b+" Old: "+this._arr[A].priority+" New: "+_);this._arr[A].priority=_,this._decrease(A)},d.prototype._heapify=function(b){var _=this._arr,A=2*b,L=A+1,E=b;A<_.length&&(E=_[A].priority<_[E].priority?A:E,L<_.length&&(E=_[L].priority<_[E].priority?L:E),E!==b&&(this._swap(b,E),this._heapify(E)))},d.prototype._decrease=function(b){for(var _,A=this._arr,L=A[b].priority;b!==0&&!(A[_=b>>1].priority<L);)this._swap(b,_),b=_},d.prototype._swap=function(b,_){var A=this._arr,L=this._keyIndices,E=A[b],D=A[_];A[b]=D,A[_]=E,L[D.key]=b,L[E.key]=_}},771:(f,k,h)=>{var m=h(9126);f.exports=b;var d="\0";function b(R){this._isDirected=!m.has(R,"directed")||R.directed,this._isMultigraph=!!m.has(R,"multigraph")&&R.multigraph,this._isCompound=!!m.has(R,"compound")&&R.compound,this._label=void 0,this._defaultNodeLabelFn=m.constant(void 0),this._defaultEdgeLabelFn=m.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function _(R,P){R[P]?R[P]++:R[P]=1}function A(R,P){--R[P]||delete R[P]}function L(R,P,$,K){var et=""+P,ht=""+$;if(!R&&et>ht){var X=et;et=ht,ht=X}return et+""+ht+""+(m.isUndefined(K)?"\0":K)}function E(R,P,$,K){var et=""+P,ht=""+$;if(!R&&et>ht){var X=et;et=ht,ht=X}var _t={v:et,w:ht};return K&&(_t.name=K),_t}function D(R,P){return L(R,P.v,P.w,P.name)}b.prototype._nodeCount=0,b.prototype._edgeCount=0,b.prototype.isDirected=function(){return this._isDirected},b.prototype.isMultigraph=function(){return this._isMultigraph},b.prototype.isCompound=function(){return this._isCompound},b.prototype.setGraph=function(R){return this._label=R,this},b.prototype.graph=function(){return this._label},b.prototype.setDefaultNodeLabel=function(R){return m.isFunction(R)||(R=m.constant(R)),this._defaultNodeLabelFn=R,this},b.prototype.nodeCount=function(){return this._nodeCount},b.prototype.nodes=function(){return m.keys(this._nodes)},b.prototype.sources=function(){var R=this;return m.filter(this.nodes(),function(P){return m.isEmpty(R._in[P])})},b.prototype.sinks=function(){var R=this;return m.filter(this.nodes(),function(P){return m.isEmpty(R._out[P])})},b.prototype.setNodes=function(R,P){var $=arguments,K=this;return m.each(R,function(et){$.length>1?K.setNode(et,P):K.setNode(et)}),this},b.prototype.setNode=function(R,P){return m.has(this._nodes,R)?(arguments.length>1&&(this._nodes[R]=P),this):(this._nodes[R]=arguments.length>1?P:this._defaultNodeLabelFn(R),this._isCompound&&(this._parent[R]=d,this._children[R]={},this._children["\0"][R]=!0),this._in[R]={},this._preds[R]={},this._out[R]={},this._sucs[R]={},++this._nodeCount,this)},b.prototype.node=function(R){return this._nodes[R]},b.prototype.hasNode=function(R){return m.has(this._nodes,R)},b.prototype.removeNode=function(R){var P=this;if(m.has(this._nodes,R)){var $=function(K){P.removeEdge(P._edgeObjs[K])};delete this._nodes[R],this._isCompound&&(this._removeFromParentsChildList(R),delete this._parent[R],m.each(this.children(R),function(K){P.setParent(K)}),delete this._children[R]),m.each(m.keys(this._in[R]),$),delete this._in[R],delete this._preds[R],m.each(m.keys(this._out[R]),$),delete this._out[R],delete this._sucs[R],--this._nodeCount}return this},b.prototype.setParent=function(R,P){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(m.isUndefined(P))P=d;else{for(var $=P+="";!m.isUndefined($);$=this.parent($))if($===R)throw new Error("Setting "+P+" as parent of "+R+" would create a cycle");this.setNode(P)}return this.setNode(R),this._removeFromParentsChildList(R),this._parent[R]=P,this._children[P][R]=!0,this},b.prototype._removeFromParentsChildList=function(R){delete this._children[this._parent[R]][R]},b.prototype.parent=function(R){if(this._isCompound){var P=this._parent[R];if(P!==d)return P}},b.prototype.children=function(R){if(m.isUndefined(R)&&(R=d),this._isCompound){var P=this._children[R];if(P)return m.keys(P)}else{if(R===d)return this.nodes();if(this.hasNode(R))return[]}},b.prototype.predecessors=function(R){var P=this._preds[R];if(P)return m.keys(P)},b.prototype.successors=function(R){var P=this._sucs[R];if(P)return m.keys(P)},b.prototype.neighbors=function(R){var P=this.predecessors(R);if(P)return m.union(P,this.successors(R))},b.prototype.isLeaf=function(R){return(this.isDirected()?this.successors(R):this.neighbors(R)).length===0},b.prototype.filterNodes=function(R){var P=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});P.setGraph(this.graph());var $=this;m.each(this._nodes,function(ht,X){R(X)&&P.setNode(X,ht)}),m.each(this._edgeObjs,function(ht){P.hasNode(ht.v)&&P.hasNode(ht.w)&&P.setEdge(ht,$.edge(ht))});var K={};function et(ht){var X=$.parent(ht);return X===void 0||P.hasNode(X)?(K[ht]=X,X):X in K?K[X]:et(X)}return this._isCompound&&m.each(P.nodes(),function(ht){P.setParent(ht,et(ht))}),P},b.prototype.setDefaultEdgeLabel=function(R){return m.isFunction(R)||(R=m.constant(R)),this._defaultEdgeLabelFn=R,this},b.prototype.edgeCount=function(){return this._edgeCount},b.prototype.edges=function(){return m.values(this._edgeObjs)},b.prototype.setPath=function(R,P){var $=this,K=arguments;return m.reduce(R,function(et,ht){return K.length>1?$.setEdge(et,ht,P):$.setEdge(et,ht),ht}),this},b.prototype.setEdge=function(){var R,P,$,K,et=!1,ht=arguments[0];typeof ht=="object"&&ht!==null&&"v"in ht?(R=ht.v,P=ht.w,$=ht.name,arguments.length===2&&(K=arguments[1],et=!0)):(R=ht,P=arguments[1],$=arguments[3],arguments.length>2&&(K=arguments[2],et=!0)),R=""+R,P=""+P,m.isUndefined($)||($=""+$);var X=L(this._isDirected,R,P,$);if(m.has(this._edgeLabels,X))return et&&(this._edgeLabels[X]=K),this;if(!m.isUndefined($)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(R),this.setNode(P),this._edgeLabels[X]=et?K:this._defaultEdgeLabelFn(R,P,$);var _t=E(this._isDirected,R,P,$);return R=_t.v,P=_t.w,Object.freeze(_t),this._edgeObjs[X]=_t,_(this._preds[P],R),_(this._sucs[R],P),this._in[P][X]=_t,this._out[R][X]=_t,this._edgeCount++,this},b.prototype.edge=function(R,P,$){var K=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,R,P,$);return this._edgeLabels[K]},b.prototype.hasEdge=function(R,P,$){var K=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,R,P,$);return m.has(this._edgeLabels,K)},b.prototype.removeEdge=function(R,P,$){var K=arguments.length===1?D(this._isDirected,arguments[0]):L(this._isDirected,R,P,$),et=this._edgeObjs[K];return et&&(R=et.v,P=et.w,delete this._edgeLabels[K],delete this._edgeObjs[K],A(this._preds[P],R),A(this._sucs[R],P),delete this._in[P][K],delete this._out[R][K],this._edgeCount--),this},b.prototype.inEdges=function(R,P){var $=this._in[R];if($){var K=m.values($);return P?m.filter(K,function(et){return et.v===P}):K}},b.prototype.outEdges=function(R,P){var $=this._out[R];if($){var K=m.values($);return P?m.filter(K,function(et){return et.w===P}):K}},b.prototype.nodeEdges=function(R,P){var $=this.inEdges(R,P);if($)return $.concat(this.outEdges(R,P))}},2354:(f,k,h)=>{f.exports={Graph:h(771),version:h(9631)}},8974:(f,k,h)=>{var m=h(9126),d=h(771);function b(A){return m.map(A.nodes(),function(L){var E=A.node(L),D=A.parent(L),R={v:L};return m.isUndefined(E)||(R.value=E),m.isUndefined(D)||(R.parent=D),R})}function _(A){return m.map(A.edges(),function(L){var E=A.edge(L),D={v:L.v,w:L.w};return m.isUndefined(L.name)||(D.name=L.name),m.isUndefined(E)||(D.value=E),D})}f.exports={write:function(A){var L={options:{directed:A.isDirected(),multigraph:A.isMultigraph(),compound:A.isCompound()},nodes:b(A),edges:_(A)};return m.isUndefined(A.graph())||(L.value=m.clone(A.graph())),L},read:function(A){var L=new d(A.options).setGraph(A.value);return m.each(A.nodes,function(E){L.setNode(E.v,E.value),E.parent&&L.setParent(E.v,E.parent)}),m.each(A.edges,function(E){L.setEdge({v:E.v,w:E.w,name:E.name},E.value)}),L}}},9126:(f,k,h)=>{var m;try{m={clone:h(6678),constant:h(5703),each:h(6073),filter:h(3105),has:h(8721),isArray:h(1469),isEmpty:h(1609),isFunction:h(3560),isUndefined:h(2353),keys:h(3674),map:h(5161),reduce:h(4061),size:h(4238),transform:h(8718),union:h(3386),values:h(2628)}}catch{}m||(m=window._),f.exports=m},9631:f=>{f.exports="2.1.8"},8552:(f,k,h)=>{var m=h(852)(h(5639),"DataView");f.exports=m},1989:(f,k,h)=>{var m=h(1789),d=h(401),b=h(7667),_=h(1327),A=h(1866);function L(E){var D=-1,R=E==null?0:E.length;for(this.clear();++D<R;){var P=E[D];this.set(P[0],P[1])}}L.prototype.clear=m,L.prototype.delete=d,L.prototype.get=b,L.prototype.has=_,L.prototype.set=A,f.exports=L},8407:(f,k,h)=>{var m=h(7040),d=h(4125),b=h(2117),_=h(7518),A=h(4705);function L(E){var D=-1,R=E==null?0:E.length;for(this.clear();++D<R;){var P=E[D];this.set(P[0],P[1])}}L.prototype.clear=m,L.prototype.delete=d,L.prototype.get=b,L.prototype.has=_,L.prototype.set=A,f.exports=L},7071:(f,k,h)=>{var m=h(852)(h(5639),"Map");f.exports=m},3369:(f,k,h)=>{var m=h(4785),d=h(1285),b=h(6e3),_=h(9916),A=h(5265);function L(E){var D=-1,R=E==null?0:E.length;for(this.clear();++D<R;){var P=E[D];this.set(P[0],P[1])}}L.prototype.clear=m,L.prototype.delete=d,L.prototype.get=b,L.prototype.has=_,L.prototype.set=A,f.exports=L},3818:(f,k,h)=>{var m=h(852)(h(5639),"Promise");f.exports=m},8525:(f,k,h)=>{var m=h(852)(h(5639),"Set");f.exports=m},8668:(f,k,h)=>{var m=h(3369),d=h(619),b=h(2385);function _(A){var L=-1,E=A==null?0:A.length;for(this.__data__=new m;++L<E;)this.add(A[L])}_.prototype.add=_.prototype.push=d,_.prototype.has=b,f.exports=_},6384:(f,k,h)=>{var m=h(8407),d=h(7465),b=h(3779),_=h(7599),A=h(4758),L=h(4309);function E(D){var R=this.__data__=new m(D);this.size=R.size}E.prototype.clear=d,E.prototype.delete=b,E.prototype.get=_,E.prototype.has=A,E.prototype.set=L,f.exports=E},2705:(f,k,h)=>{var m=h(5639).Symbol;f.exports=m},1149:(f,k,h)=>{var m=h(5639).Uint8Array;f.exports=m},577:(f,k,h)=>{var m=h(852)(h(5639),"WeakMap");f.exports=m},6874:f=>{f.exports=function(k,h,m){switch(m.length){case 0:return k.call(h);case 1:return k.call(h,m[0]);case 2:return k.call(h,m[0],m[1]);case 3:return k.call(h,m[0],m[1],m[2])}return k.apply(h,m)}},7412:f=>{f.exports=function(k,h){for(var m=-1,d=k==null?0:k.length;++m<d&&h(k[m],m,k)!==!1;);return k}},4963:f=>{f.exports=function(k,h){for(var m=-1,d=k==null?0:k.length,b=0,_=[];++m<d;){var A=k[m];h(A,m,k)&&(_[b++]=A)}return _}},7443:(f,k,h)=>{var m=h(2118);f.exports=function(d,b){return!(d==null||!d.length)&&m(d,b,0)>-1}},1196:f=>{f.exports=function(k,h,m){for(var d=-1,b=k==null?0:k.length;++d<b;)if(m(h,k[d]))return!0;return!1}},4636:(f,k,h)=>{var m=h(2545),d=h(5694),b=h(1469),_=h(4144),A=h(5776),L=h(6719),E=Object.prototype.hasOwnProperty;f.exports=function(D,R){var P=b(D),$=!P&&d(D),K=!P&&!$&&_(D),et=!P&&!$&&!K&&L(D),ht=P||$||K||et,X=ht?m(D.length,String):[],_t=X.length;for(var rt in D)!R&&!E.call(D,rt)||ht&&(rt=="length"||K&&(rt=="offset"||rt=="parent")||et&&(rt=="buffer"||rt=="byteLength"||rt=="byteOffset")||A(rt,_t))||X.push(rt);return X}},9932:f=>{f.exports=function(k,h){for(var m=-1,d=k==null?0:k.length,b=Array(d);++m<d;)b[m]=h(k[m],m,k);return b}},2488:f=>{f.exports=function(k,h){for(var m=-1,d=h.length,b=k.length;++m<d;)k[b+m]=h[m];return k}},2663:f=>{f.exports=function(k,h,m,d){var b=-1,_=k==null?0:k.length;for(d&&_&&(m=k[++b]);++b<_;)m=h(m,k[b],b,k);return m}},2908:f=>{f.exports=function(k,h){for(var m=-1,d=k==null?0:k.length;++m<d;)if(h(k[m],m,k))return!0;return!1}},8983:(f,k,h)=>{var m=h(371)("length");f.exports=m},6556:(f,k,h)=>{var m=h(9465),d=h(7813);f.exports=function(b,_,A){(A!==void 0&&!d(b[_],A)||A===void 0&&!(_ in b))&&m(b,_,A)}},4865:(f,k,h)=>{var m=h(9465),d=h(7813),b=Object.prototype.hasOwnProperty;f.exports=function(_,A,L){var E=_[A];b.call(_,A)&&d(E,L)&&(L!==void 0||A in _)||m(_,A,L)}},8470:(f,k,h)=>{var m=h(7813);f.exports=function(d,b){for(var _=d.length;_--;)if(m(d[_][0],b))return _;return-1}},4037:(f,k,h)=>{var m=h(8363),d=h(3674);f.exports=function(b,_){return b&&m(_,d(_),b)}},3886:(f,k,h)=>{var m=h(8363),d=h(1704);f.exports=function(b,_){return b&&m(_,d(_),b)}},9465:(f,k,h)=>{var m=h(8777);f.exports=function(d,b,_){b=="__proto__"&&m?m(d,b,{configurable:!0,enumerable:!0,value:_,writable:!0}):d[b]=_}},5990:(f,k,h)=>{var m=h(6384),d=h(7412),b=h(4865),_=h(4037),A=h(3886),L=h(4626),E=h(278),D=h(8805),R=h(1911),P=h(8234),$=h(6904),K=h(4160),et=h(3824),ht=h(9148),X=h(8517),_t=h(1469),rt=h(4144),at=h(6688),bt=h(3218),Ft=h(2928),Tt=h(3674),yt=h(1704),Nt="[object Arguments]",xt="[object Function]",pt="[object Object]",tt={};tt[Nt]=tt["[object Array]"]=tt["[object ArrayBuffer]"]=tt["[object DataView]"]=tt["[object Boolean]"]=tt["[object Date]"]=tt["[object Float32Array]"]=tt["[object Float64Array]"]=tt["[object Int8Array]"]=tt["[object Int16Array]"]=tt["[object Int32Array]"]=tt["[object Map]"]=tt["[object Number]"]=tt[pt]=tt["[object RegExp]"]=tt["[object Set]"]=tt["[object String]"]=tt["[object Symbol]"]=tt["[object Uint8Array]"]=tt["[object Uint8ClampedArray]"]=tt["[object Uint16Array]"]=tt["[object Uint32Array]"]=!0,tt["[object Error]"]=tt[xt]=tt["[object WeakMap]"]=!1,f.exports=function ft(q,kt,W,St,Lt,Ht){var ge,We=1&kt,Ee=2&kt,fe=4&kt;if(W&&(ge=Lt?W(q,St,Lt,Ht):W(q)),ge!==void 0)return ge;if(!bt(q))return q;var xe=_t(q);if(xe){if(ge=et(q),!We)return E(q,ge)}else{var Ie=K(q),Me=Ie==xt||Ie=="[object GeneratorFunction]";if(rt(q))return L(q,We);if(Ie==pt||Ie==Nt||Me&&!Lt){if(ge=Ee||Me?{}:X(q),!We)return Ee?R(q,A(ge,q)):D(q,_(ge,q))}else{if(!tt[Ie])return Lt?q:{};ge=ht(q,Ie,We)}}Ht||(Ht=new m);var ve=Ht.get(q);if(ve)return ve;Ht.set(q,ge),Ft(q)?q.forEach(function(_e){ge.add(ft(_e,kt,W,_e,q,Ht))}):at(q)&&q.forEach(function(_e,en){ge.set(en,ft(_e,kt,W,en,q,Ht))});var An=xe?void 0:(fe?Ee?$:P:Ee?yt:Tt)(q);return d(An||q,function(_e,en){An&&(_e=q[en=_e]),b(ge,en,ft(_e,kt,W,en,q,Ht))}),ge}},3118:(f,k,h)=>{var m=h(3218),d=Object.create,b=function(){function _(){}return function(A){if(!m(A))return{};if(d)return d(A);_.prototype=A;var L=new _;return _.prototype=void 0,L}}();f.exports=b},9881:(f,k,h)=>{var m=h(7816),d=h(9291)(m);f.exports=d},6029:(f,k,h)=>{var m=h(3448);f.exports=function(d,b,_){for(var A=-1,L=d.length;++A<L;){var E=d[A],D=b(E);if(D!=null&&(R===void 0?D==D&&!m(D):_(D,R)))var R=D,P=E}return P}},760:(f,k,h)=>{var m=h(9881);f.exports=function(d,b){var _=[];return m(d,function(A,L,E){b(A,L,E)&&_.push(A)}),_}},1848:f=>{f.exports=function(k,h,m,d){for(var b=k.length,_=m+(d?1:-1);d?_--:++_<b;)if(h(k[_],_,k))return _;return-1}},1078:(f,k,h)=>{var m=h(2488),d=h(7285);f.exports=function b(_,A,L,E,D){var R=-1,P=_.length;for(L||(L=d),D||(D=[]);++R<P;){var $=_[R];A>0&&L($)?A>1?b($,A-1,L,E,D):m(D,$):E||(D[D.length]=$)}return D}},8483:(f,k,h)=>{var m=h(5063)();f.exports=m},7816:(f,k,h)=>{var m=h(8483),d=h(3674);f.exports=function(b,_){return b&&m(b,_,d)}},7786:(f,k,h)=>{var m=h(1811),d=h(327);f.exports=function(b,_){for(var A=0,L=(_=m(_,b)).length;b!=null&&A<L;)b=b[d(_[A++])];return A&&A==L?b:void 0}},8866:(f,k,h)=>{var m=h(2488),d=h(1469);f.exports=function(b,_,A){var L=_(b);return d(b)?L:m(L,A(b))}},4239:(f,k,h)=>{var m=h(2705),d=h(9607),b=h(2333),_=m?m.toStringTag:void 0;f.exports=function(A){return A==null?A===void 0?"[object Undefined]":"[object Null]":_&&_ in Object(A)?d(A):b(A)}},3325:f=>{f.exports=function(k,h){return k>h}},8565:f=>{var k=Object.prototype.hasOwnProperty;f.exports=function(h,m){return h!=null&&k.call(h,m)}},13:f=>{f.exports=function(k,h){return k!=null&&h in Object(k)}},2118:(f,k,h)=>{var m=h(1848),d=h(2722),b=h(2351);f.exports=function(_,A,L){return A==A?b(_,A,L):m(_,d,L)}},9454:(f,k,h)=>{var m=h(4239),d=h(7005);f.exports=function(b){return d(b)&&m(b)=="[object Arguments]"}},939:(f,k,h)=>{var m=h(2492),d=h(7005);f.exports=function b(_,A,L,E,D){return _===A||(_==null||A==null||!d(_)&&!d(A)?_!=_&&A!=A:m(_,A,L,E,b,D))}},2492:(f,k,h)=>{var m=h(6384),d=h(7114),b=h(8351),_=h(6096),A=h(4160),L=h(1469),E=h(4144),D=h(6719),R="[object Arguments]",P="[object Array]",$="[object Object]",K=Object.prototype.hasOwnProperty;f.exports=function(et,ht,X,_t,rt,at){var bt=L(et),Ft=L(ht),Tt=bt?P:A(et),yt=Ft?P:A(ht),Nt=(Tt=Tt==R?$:Tt)==$,xt=(yt=yt==R?$:yt)==$,pt=Tt==yt;if(pt&&E(et)){if(!E(ht))return!1;bt=!0,Nt=!1}if(pt&&!Nt)return at||(at=new m),bt||D(et)?d(et,ht,X,_t,rt,at):b(et,ht,Tt,X,_t,rt,at);if(!(1&X)){var tt=Nt&&K.call(et,"__wrapped__"),ft=xt&&K.call(ht,"__wrapped__");if(tt||ft){var q=tt?et.value():et,kt=ft?ht.value():ht;return at||(at=new m),rt(q,kt,X,_t,at)}}return!!pt&&(at||(at=new m),_(et,ht,X,_t,rt,at))}},5588:(f,k,h)=>{var m=h(4160),d=h(7005);f.exports=function(b){return d(b)&&m(b)=="[object Map]"}},2958:(f,k,h)=>{var m=h(6384),d=h(939);f.exports=function(b,_,A,L){var E=A.length,D=E,R=!L;if(b==null)return!D;for(b=Object(b);E--;){var P=A[E];if(R&&P[2]?P[1]!==b[P[0]]:!(P[0]in b))return!1}for(;++E<D;){var $=(P=A[E])[0],K=b[$],et=P[1];if(R&&P[2]){if(K===void 0&&!($ in b))return!1}else{var ht=new m;if(L)var X=L(K,et,$,b,_,ht);if(!(X===void 0?d(et,K,3,L,ht):X))return!1}}return!0}},2722:f=>{f.exports=function(k){return k!=k}},8458:(f,k,h)=>{var m=h(3560),d=h(5346),b=h(3218),_=h(346),A=/^\[object .+?Constructor\]$/,L=Function.prototype,E=Object.prototype,D=L.toString,R=E.hasOwnProperty,P=RegExp("^"+D.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");f.exports=function($){return!(!b($)||d($))&&(m($)?P:A).test(_($))}},9221:(f,k,h)=>{var m=h(4160),d=h(7005);f.exports=function(b){return d(b)&&m(b)=="[object Set]"}},8749:(f,k,h)=>{var m=h(4239),d=h(1780),b=h(7005),_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_["[object Arguments]"]=_["[object Array]"]=_["[object ArrayBuffer]"]=_["[object Boolean]"]=_["[object DataView]"]=_["[object Date]"]=_["[object Error]"]=_["[object Function]"]=_["[object Map]"]=_["[object Number]"]=_["[object Object]"]=_["[object RegExp]"]=_["[object Set]"]=_["[object String]"]=_["[object WeakMap]"]=!1,f.exports=function(A){return b(A)&&d(A.length)&&!!_[m(A)]}},7206:(f,k,h)=>{var m=h(1573),d=h(6432),b=h(6557),_=h(1469),A=h(9601);f.exports=function(L){return typeof L=="function"?L:L==null?b:typeof L=="object"?_(L)?d(L[0],L[1]):m(L):A(L)}},280:(f,k,h)=>{var m=h(5726),d=h(6916),b=Object.prototype.hasOwnProperty;f.exports=function(_){if(!m(_))return d(_);var A=[];for(var L in Object(_))b.call(_,L)&&L!="constructor"&&A.push(L);return A}},313:(f,k,h)=>{var m=h(3218),d=h(5726),b=h(3498),_=Object.prototype.hasOwnProperty;f.exports=function(A){if(!m(A))return b(A);var L=d(A),E=[];for(var D in A)(D!="constructor"||!L&&_.call(A,D))&&E.push(D);return E}},433:f=>{f.exports=function(k,h){return k<h}},9199:(f,k,h)=>{var m=h(9881),d=h(8612);f.exports=function(b,_){var A=-1,L=d(b)?Array(b.length):[];return m(b,function(E,D,R){L[++A]=_(E,D,R)}),L}},1573:(f,k,h)=>{var m=h(2958),d=h(1499),b=h(2634);f.exports=function(_){var A=d(_);return A.length==1&&A[0][2]?b(A[0][0],A[0][1]):function(L){return L===_||m(L,_,A)}}},6432:(f,k,h)=>{var m=h(939),d=h(7361),b=h(9095),_=h(5403),A=h(9162),L=h(2634),E=h(327);f.exports=function(D,R){return _(D)&&A(R)?L(E(D),R):function(P){var $=d(P,D);return $===void 0&&$===R?b(P,D):m(R,$,3)}}},2980:(f,k,h)=>{var m=h(6384),d=h(6556),b=h(8483),_=h(9783),A=h(3218),L=h(1704),E=h(6390);f.exports=function D(R,P,$,K,et){R!==P&&b(P,function(ht,X){if(et||(et=new m),A(ht))_(R,P,X,$,D,K,et);else{var _t=K?K(E(R,X),ht,X+"",R,P,et):void 0;_t===void 0&&(_t=ht),d(R,X,_t)}},L)}},9783:(f,k,h)=>{var m=h(6556),d=h(4626),b=h(7133),_=h(278),A=h(8517),L=h(5694),E=h(1469),D=h(9246),R=h(4144),P=h(3560),$=h(3218),K=h(8630),et=h(6719),ht=h(6390),X=h(3678);f.exports=function(_t,rt,at,bt,Ft,Tt,yt){var Nt=ht(_t,at),xt=ht(rt,at),pt=yt.get(xt);if(pt)m(_t,at,pt);else{var tt=Tt?Tt(Nt,xt,at+"",_t,rt,yt):void 0,ft=tt===void 0;if(ft){var q=E(xt),kt=!q&&R(xt),W=!q&&!kt&&et(xt);tt=xt,q||kt||W?E(Nt)?tt=Nt:D(Nt)?tt=_(Nt):kt?(ft=!1,tt=d(xt,!0)):W?(ft=!1,tt=b(xt,!0)):tt=[]:K(xt)||L(xt)?(tt=Nt,L(Nt)?tt=X(Nt):$(Nt)&&!P(Nt)||(tt=A(xt))):ft=!1}ft&&(yt.set(xt,tt),Ft(tt,xt,bt,Tt,yt),yt.delete(xt)),m(_t,at,tt)}}},9556:(f,k,h)=>{var m=h(9932),d=h(7786),b=h(7206),_=h(9199),A=h(1131),L=h(1717),E=h(5022),D=h(6557),R=h(1469);f.exports=function(P,$,K){$=$.length?m($,function(X){return R(X)?function(_t){return d(_t,X.length===1?X[0]:X)}:X}):[D];var et=-1;$=m($,L(b));var ht=_(P,function(X,_t,rt){return{criteria:m($,function(at){return at(X)}),index:++et,value:X}});return A(ht,function(X,_t){return E(X,_t,K)})}},5970:(f,k,h)=>{var m=h(3012),d=h(9095);f.exports=function(b,_){return m(b,_,function(A,L){return d(b,L)})}},3012:(f,k,h)=>{var m=h(7786),d=h(611),b=h(1811);f.exports=function(_,A,L){for(var E=-1,D=A.length,R={};++E<D;){var P=A[E],$=m(_,P);L($,P)&&d(R,b(P,_),$)}return R}},371:f=>{f.exports=function(k){return function(h){return h==null?void 0:h[k]}}},9152:(f,k,h)=>{var m=h(7786);f.exports=function(d){return function(b){return m(b,d)}}},98:f=>{var k=Math.ceil,h=Math.max;f.exports=function(m,d,b,_){for(var A=-1,L=h(k((d-m)/(b||1)),0),E=Array(L);L--;)E[_?L:++A]=m,m+=b;return E}},107:f=>{f.exports=function(k,h,m,d,b){return b(k,function(_,A,L){m=d?(d=!1,_):h(m,_,A,L)}),m}},5976:(f,k,h)=>{var m=h(6557),d=h(5357),b=h(61);f.exports=function(_,A){return b(d(_,A,m),_+"")}},611:(f,k,h)=>{var m=h(4865),d=h(1811),b=h(5776),_=h(3218),A=h(327);f.exports=function(L,E,D,R){if(!_(L))return L;for(var P=-1,$=(E=d(E,L)).length,K=$-1,et=L;et!=null&&++P<$;){var ht=A(E[P]),X=D;if(ht==="__proto__"||ht==="constructor"||ht==="prototype")return L;if(P!=K){var _t=et[ht];(X=R?R(_t,ht,et):void 0)===void 0&&(X=_(_t)?_t:b(E[P+1])?[]:{})}m(et,ht,X),et=et[ht]}return L}},6560:(f,k,h)=>{var m=h(5703),d=h(8777),b=h(6557),_=d?function(A,L){return d(A,"toString",{configurable:!0,enumerable:!1,value:m(L),writable:!0})}:b;f.exports=_},1131:f=>{f.exports=function(k,h){var m=k.length;for(k.sort(h);m--;)k[m]=k[m].value;return k}},2545:f=>{f.exports=function(k,h){for(var m=-1,d=Array(k);++m<k;)d[m]=h(m);return d}},531:(f,k,h)=>{var m=h(2705),d=h(9932),b=h(1469),_=h(3448),A=m?m.prototype:void 0,L=A?A.toString:void 0;f.exports=function E(D){if(typeof D=="string")return D;if(b(D))return d(D,E)+"";if(_(D))return L?L.call(D):"";var R=D+"";return R=="0"&&1/D==-1/0?"-0":R}},7561:(f,k,h)=>{var m=h(7990),d=/^\s+/;f.exports=function(b){return b&&b.slice(0,m(b)+1).replace(d,"")}},1717:f=>{f.exports=function(k){return function(h){return k(h)}}},5652:(f,k,h)=>{var m=h(8668),d=h(7443),b=h(1196),_=h(4757),A=h(3593),L=h(1814);f.exports=function(E,D,R){var P=-1,$=d,K=E.length,et=!0,ht=[],X=ht;if(R)et=!1,$=b;else if(K>=200){var _t=D?null:A(E);if(_t)return L(_t);et=!1,$=_,X=new m}else X=D?[]:ht;t:for(;++P<K;){var rt=E[P],at=D?D(rt):rt;if(rt=R||rt!==0?rt:0,et&&at==at){for(var bt=X.length;bt--;)if(X[bt]===at)continue t;D&&X.push(at),ht.push(rt)}else $(X,at,R)||(X!==ht&&X.push(at),ht.push(rt))}return ht}},7415:(f,k,h)=>{var m=h(9932);f.exports=function(d,b){return m(b,function(_){return d[_]})}},1757:f=>{f.exports=function(k,h,m){for(var d=-1,b=k.length,_=h.length,A={};++d<b;){var L=d<_?h[d]:void 0;m(A,k[d],L)}return A}},4757:f=>{f.exports=function(k,h){return k.has(h)}},4290:(f,k,h)=>{var m=h(6557);f.exports=function(d){return typeof d=="function"?d:m}},1811:(f,k,h)=>{var m=h(1469),d=h(5403),b=h(5514),_=h(9833);f.exports=function(A,L){return m(A)?A:d(A,L)?[A]:b(_(A))}},4318:(f,k,h)=>{var m=h(1149);f.exports=function(d){var b=new d.constructor(d.byteLength);return new m(b).set(new m(d)),b}},4626:(f,k,h)=>{f=h.nmd(f);var m=h(5639),d=k&&!k.nodeType&&k,b=d&&f&&!f.nodeType&&f,_=b&&b.exports===d?m.Buffer:void 0,A=_?_.allocUnsafe:void 0;f.exports=function(L,E){if(E)return L.slice();var D=L.length,R=A?A(D):new L.constructor(D);return L.copy(R),R}},7157:(f,k,h)=>{var m=h(4318);f.exports=function(d,b){var _=b?m(d.buffer):d.buffer;return new d.constructor(_,d.byteOffset,d.byteLength)}},3147:f=>{var k=/\w*$/;f.exports=function(h){var m=new h.constructor(h.source,k.exec(h));return m.lastIndex=h.lastIndex,m}},419:(f,k,h)=>{var m=h(2705),d=m?m.prototype:void 0,b=d?d.valueOf:void 0;f.exports=function(_){return b?Object(b.call(_)):{}}},7133:(f,k,h)=>{var m=h(4318);f.exports=function(d,b){var _=b?m(d.buffer):d.buffer;return new d.constructor(_,d.byteOffset,d.length)}},6393:(f,k,h)=>{var m=h(3448);f.exports=function(d,b){if(d!==b){var _=d!==void 0,A=d===null,L=d==d,E=m(d),D=b!==void 0,R=b===null,P=b==b,$=m(b);if(!R&&!$&&!E&&d>b||E&&D&&P&&!R&&!$||A&&D&&P||!_&&P||!L)return 1;if(!A&&!E&&!$&&d<b||$&&_&&L&&!A&&!E||R&&_&&L||!D&&L||!P)return-1}return 0}},5022:(f,k,h)=>{var m=h(6393);f.exports=function(d,b,_){for(var A=-1,L=d.criteria,E=b.criteria,D=L.length,R=_.length;++A<D;){var P=m(L[A],E[A]);if(P)return A>=R?P:P*(_[A]=="desc"?-1:1)}return d.index-b.index}},278:f=>{f.exports=function(k,h){var m=-1,d=k.length;for(h||(h=Array(d));++m<d;)h[m]=k[m];return h}},8363:(f,k,h)=>{var m=h(4865),d=h(9465);f.exports=function(b,_,A,L){var E=!A;A||(A={});for(var D=-1,R=_.length;++D<R;){var P=_[D],$=L?L(A[P],b[P],P,A,b):void 0;$===void 0&&($=b[P]),E?d(A,P,$):m(A,P,$)}return A}},8805:(f,k,h)=>{var m=h(8363),d=h(9551);f.exports=function(b,_){return m(b,d(b),_)}},1911:(f,k,h)=>{var m=h(8363),d=h(1442);f.exports=function(b,_){return m(b,d(b),_)}},4429:(f,k,h)=>{var m=h(5639)["__core-js_shared__"];f.exports=m},1750:(f,k,h)=>{var m=h(5976),d=h(6612);f.exports=function(b){return m(function(_,A){var L=-1,E=A.length,D=E>1?A[E-1]:void 0,R=E>2?A[2]:void 0;for(D=b.length>3&&typeof D=="function"?(E--,D):void 0,R&&d(A[0],A[1],R)&&(D=E<3?void 0:D,E=1),_=Object(_);++L<E;){var P=A[L];P&&b(_,P,L,D)}return _})}},9291:(f,k,h)=>{var m=h(8612);f.exports=function(d,b){return function(_,A){if(_==null)return _;if(!m(_))return d(_,A);for(var L=_.length,E=b?L:-1,D=Object(_);(b?E--:++E<L)&&A(D[E],E,D)!==!1;);return _}}},5063:f=>{f.exports=function(k){return function(h,m,d){for(var b=-1,_=Object(h),A=d(h),L=A.length;L--;){var E=A[k?L:++b];if(m(_[E],E,_)===!1)break}return h}}},7740:(f,k,h)=>{var m=h(7206),d=h(8612),b=h(3674);f.exports=function(_){return function(A,L,E){var D=Object(A);if(!d(A)){var R=m(L,3);A=b(A),L=function($){return R(D[$],$,D)}}var P=_(A,L,E);return P>-1?D[R?A[P]:P]:void 0}}},7445:(f,k,h)=>{var m=h(98),d=h(6612),b=h(8601);f.exports=function(_){return function(A,L,E){return E&&typeof E!="number"&&d(A,L,E)&&(L=E=void 0),A=b(A),L===void 0?(L=A,A=0):L=b(L),E=E===void 0?A<L?1:-1:b(E),m(A,L,E,_)}}},3593:(f,k,h)=>{var m=h(8525),d=h(308),b=h(1814),_=m&&1/b(new m([,-0]))[1]==1/0?function(A){return new m(A)}:d;f.exports=_},8777:(f,k,h)=>{var m=h(852),d=function(){try{var b=m(Object,"defineProperty");return b({},"",{}),b}catch{}}();f.exports=d},7114:(f,k,h)=>{var m=h(8668),d=h(2908),b=h(4757);f.exports=function(_,A,L,E,D,R){var P=1&L,$=_.length,K=A.length;if($!=K&&!(P&&K>$))return!1;var et=R.get(_),ht=R.get(A);if(et&&ht)return et==A&&ht==_;var X=-1,_t=!0,rt=2&L?new m:void 0;for(R.set(_,A),R.set(A,_);++X<$;){var at=_[X],bt=A[X];if(E)var Ft=P?E(bt,at,X,A,_,R):E(at,bt,X,_,A,R);if(Ft!==void 0){if(Ft)continue;_t=!1;break}if(rt){if(!d(A,function(Tt,yt){if(!b(rt,yt)&&(at===Tt||D(at,Tt,L,E,R)))return rt.push(yt)})){_t=!1;break}}else if(at!==bt&&!D(at,bt,L,E,R)){_t=!1;break}}return R.delete(_),R.delete(A),_t}},8351:(f,k,h)=>{var m=h(2705),d=h(1149),b=h(7813),_=h(7114),A=h(8776),L=h(1814),E=m?m.prototype:void 0,D=E?E.valueOf:void 0;f.exports=function(R,P,$,K,et,ht,X){switch($){case"[object DataView]":if(R.byteLength!=P.byteLength||R.byteOffset!=P.byteOffset)return!1;R=R.buffer,P=P.buffer;case"[object ArrayBuffer]":return!(R.byteLength!=P.byteLength||!ht(new d(R),new d(P)));case"[object Boolean]":case"[object Date]":case"[object Number]":return b(+R,+P);case"[object Error]":return R.name==P.name&&R.message==P.message;case"[object RegExp]":case"[object String]":return R==P+"";case"[object Map]":var _t=A;case"[object Set]":var rt=1&K;if(_t||(_t=L),R.size!=P.size&&!rt)return!1;var at=X.get(R);if(at)return at==P;K|=2,X.set(R,P);var bt=_(_t(R),_t(P),K,et,ht,X);return X.delete(R),bt;case"[object Symbol]":if(D)return D.call(R)==D.call(P)}return!1}},6096:(f,k,h)=>{var m=h(8234),d=Object.prototype.hasOwnProperty;f.exports=function(b,_,A,L,E,D){var R=1&A,P=m(b),$=P.length;if($!=m(_).length&&!R)return!1;for(var K=$;K--;){var et=P[K];if(!(R?et in _:d.call(_,et)))return!1}var ht=D.get(b),X=D.get(_);if(ht&&X)return ht==_&&X==b;var _t=!0;D.set(b,_),D.set(_,b);for(var rt=R;++K<$;){var at=b[et=P[K]],bt=_[et];if(L)var Ft=R?L(bt,at,et,_,b,D):L(at,bt,et,b,_,D);if(!(Ft===void 0?at===bt||E(at,bt,A,L,D):Ft)){_t=!1;break}rt||(rt=et=="constructor")}if(_t&&!rt){var Tt=b.constructor,yt=_.constructor;Tt==yt||!("constructor"in b)||!("constructor"in _)||typeof Tt=="function"&&Tt instanceof Tt&&typeof yt=="function"&&yt instanceof yt||(_t=!1)}return D.delete(b),D.delete(_),_t}},9021:(f,k,h)=>{var m=h(5564),d=h(5357),b=h(61);f.exports=function(_){return b(d(_,void 0,m),_+"")}},1957:(f,k,h)=>{var m=typeof h.g=="object"&&h.g&&h.g.Object===Object&&h.g;f.exports=m},8234:(f,k,h)=>{var m=h(8866),d=h(9551),b=h(3674);f.exports=function(_){return m(_,b,d)}},6904:(f,k,h)=>{var m=h(8866),d=h(1442),b=h(1704);f.exports=function(_){return m(_,b,d)}},5050:(f,k,h)=>{var m=h(7019);f.exports=function(d,b){var _=d.__data__;return m(b)?_[typeof b=="string"?"string":"hash"]:_.map}},1499:(f,k,h)=>{var m=h(9162),d=h(3674);f.exports=function(b){for(var _=d(b),A=_.length;A--;){var L=_[A],E=b[L];_[A]=[L,E,m(E)]}return _}},852:(f,k,h)=>{var m=h(8458),d=h(7801);f.exports=function(b,_){var A=d(b,_);return m(A)?A:void 0}},5924:(f,k,h)=>{var m=h(5569)(Object.getPrototypeOf,Object);f.exports=m},9607:(f,k,h)=>{var m=h(2705),d=Object.prototype,b=d.hasOwnProperty,_=d.toString,A=m?m.toStringTag:void 0;f.exports=function(L){var E=b.call(L,A),D=L[A];try{L[A]=void 0;var R=!0}catch{}var P=_.call(L);return R&&(E?L[A]=D:delete L[A]),P}},9551:(f,k,h)=>{var m=h(4963),d=h(479),b=Object.prototype.propertyIsEnumerable,_=Object.getOwnPropertySymbols,A=_?function(L){return L==null?[]:(L=Object(L),m(_(L),function(E){return b.call(L,E)}))}:d;f.exports=A},1442:(f,k,h)=>{var m=h(2488),d=h(5924),b=h(9551),_=h(479),A=Object.getOwnPropertySymbols?function(L){for(var E=[];L;)m(E,b(L)),L=d(L);return E}:_;f.exports=A},4160:(f,k,h)=>{var m=h(8552),d=h(7071),b=h(3818),_=h(8525),A=h(577),L=h(4239),E=h(346),D="[object Map]",R="[object Promise]",P="[object Set]",$="[object WeakMap]",K="[object DataView]",et=E(m),ht=E(d),X=E(b),_t=E(_),rt=E(A),at=L;(m&&at(new m(new ArrayBuffer(1)))!=K||d&&at(new d)!=D||b&&at(b.resolve())!=R||_&&at(new _)!=P||A&&at(new A)!=$)&&(at=function(bt){var Ft=L(bt),Tt=Ft=="[object Object]"?bt.constructor:void 0,yt=Tt?E(Tt):"";if(yt)switch(yt){case et:return K;case ht:return D;case X:return R;case _t:return P;case rt:return $}return Ft}),f.exports=at},7801:f=>{f.exports=function(k,h){return k==null?void 0:k[h]}},222:(f,k,h)=>{var m=h(1811),d=h(5694),b=h(1469),_=h(5776),A=h(1780),L=h(327);f.exports=function(E,D,R){for(var P=-1,$=(D=m(D,E)).length,K=!1;++P<$;){var et=L(D[P]);if(!(K=E!=null&&R(E,et)))break;E=E[et]}return K||++P!=$?K:!!($=E==null?0:E.length)&&A($)&&_(et,$)&&(b(E)||d(E))}},2689:f=>{var k=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");f.exports=function(h){return k.test(h)}},1789:(f,k,h)=>{var m=h(4536);f.exports=function(){this.__data__=m?m(null):{},this.size=0}},401:f=>{f.exports=function(k){var h=this.has(k)&&delete this.__data__[k];return this.size-=h?1:0,h}},7667:(f,k,h)=>{var m=h(4536),d=Object.prototype.hasOwnProperty;f.exports=function(b){var _=this.__data__;if(m){var A=_[b];return A==="__lodash_hash_undefined__"?void 0:A}return d.call(_,b)?_[b]:void 0}},1327:(f,k,h)=>{var m=h(4536),d=Object.prototype.hasOwnProperty;f.exports=function(b){var _=this.__data__;return m?_[b]!==void 0:d.call(_,b)}},1866:(f,k,h)=>{var m=h(4536);f.exports=function(d,b){var _=this.__data__;return this.size+=this.has(d)?0:1,_[d]=m&&b===void 0?"__lodash_hash_undefined__":b,this}},3824:f=>{var k=Object.prototype.hasOwnProperty;f.exports=function(h){var m=h.length,d=new h.constructor(m);return m&&typeof h[0]=="string"&&k.call(h,"index")&&(d.index=h.index,d.input=h.input),d}},9148:(f,k,h)=>{var m=h(4318),d=h(7157),b=h(3147),_=h(419),A=h(7133);f.exports=function(L,E,D){var R=L.constructor;switch(E){case"[object ArrayBuffer]":return m(L);case"[object Boolean]":case"[object Date]":return new R(+L);case"[object DataView]":return d(L,D);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return A(L,D);case"[object Map]":case"[object Set]":return new R;case"[object Number]":case"[object String]":return new R(L);case"[object RegExp]":return b(L);case"[object Symbol]":return _(L)}}},8517:(f,k,h)=>{var m=h(3118),d=h(5924),b=h(5726);f.exports=function(_){return typeof _.constructor!="function"||b(_)?{}:m(d(_))}},7285:(f,k,h)=>{var m=h(2705),d=h(5694),b=h(1469),_=m?m.isConcatSpreadable:void 0;f.exports=function(A){return b(A)||d(A)||!!(_&&A&&A[_])}},5776:f=>{var k=/^(?:0|[1-9]\d*)$/;f.exports=function(h,m){var d=typeof h;return!!(m=m==null?9007199254740991:m)&&(d=="number"||d!="symbol"&&k.test(h))&&h>-1&&h%1==0&&h<m}},6612:(f,k,h)=>{var m=h(7813),d=h(8612),b=h(5776),_=h(3218);f.exports=function(A,L,E){if(!_(E))return!1;var D=typeof L;return!!(D=="number"?d(E)&&b(L,E.length):D=="string"&&L in E)&&m(E[L],A)}},5403:(f,k,h)=>{var m=h(1469),d=h(3448),b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/;f.exports=function(A,L){if(m(A))return!1;var E=typeof A;return!(E!="number"&&E!="symbol"&&E!="boolean"&&A!=null&&!d(A))||_.test(A)||!b.test(A)||L!=null&&A in Object(L)}},7019:f=>{f.exports=function(k){var h=typeof k;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?k!=="__proto__":k===null}},5346:(f,k,h)=>{var m,d=h(4429),b=(m=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";f.exports=function(_){return!!b&&b in _}},5726:f=>{var k=Object.prototype;f.exports=function(h){var m=h&&h.constructor;return h===(typeof m=="function"&&m.prototype||k)}},9162:(f,k,h)=>{var m=h(3218);f.exports=function(d){return d==d&&!m(d)}},7040:f=>{f.exports=function(){this.__data__=[],this.size=0}},4125:(f,k,h)=>{var m=h(8470),d=Array.prototype.splice;f.exports=function(b){var _=this.__data__,A=m(_,b);return!(A<0||(A==_.length-1?_.pop():d.call(_,A,1),--this.size,0))}},2117:(f,k,h)=>{var m=h(8470);f.exports=function(d){var b=this.__data__,_=m(b,d);return _<0?void 0:b[_][1]}},7518:(f,k,h)=>{var m=h(8470);f.exports=function(d){return m(this.__data__,d)>-1}},4705:(f,k,h)=>{var m=h(8470);f.exports=function(d,b){var _=this.__data__,A=m(_,d);return A<0?(++this.size,_.push([d,b])):_[A][1]=b,this}},4785:(f,k,h)=>{var m=h(1989),d=h(8407),b=h(7071);f.exports=function(){this.size=0,this.__data__={hash:new m,map:new(b||d),string:new m}}},1285:(f,k,h)=>{var m=h(5050);f.exports=function(d){var b=m(this,d).delete(d);return this.size-=b?1:0,b}},6e3:(f,k,h)=>{var m=h(5050);f.exports=function(d){return m(this,d).get(d)}},9916:(f,k,h)=>{var m=h(5050);f.exports=function(d){return m(this,d).has(d)}},5265:(f,k,h)=>{var m=h(5050);f.exports=function(d,b){var _=m(this,d),A=_.size;return _.set(d,b),this.size+=_.size==A?0:1,this}},8776:f=>{f.exports=function(k){var h=-1,m=Array(k.size);return k.forEach(function(d,b){m[++h]=[b,d]}),m}},2634:f=>{f.exports=function(k,h){return function(m){return m!=null&&m[k]===h&&(h!==void 0||k in Object(m))}}},4523:(f,k,h)=>{var m=h(8306);f.exports=function(d){var b=m(d,function(A){return _.size===500&&_.clear(),A}),_=b.cache;return b}},4536:(f,k,h)=>{var m=h(852)(Object,"create");f.exports=m},6916:(f,k,h)=>{var m=h(5569)(Object.keys,Object);f.exports=m},3498:f=>{f.exports=function(k){var h=[];if(k!=null)for(var m in Object(k))h.push(m);return h}},1167:(f,k,h)=>{f=h.nmd(f);var m=h(1957),d=k&&!k.nodeType&&k,b=d&&f&&!f.nodeType&&f,_=b&&b.exports===d&&m.process,A=function(){try{return b&&b.require&&b.require("util").types||_&&_.binding&&_.binding("util")}catch{}}();f.exports=A},2333:f=>{var k=Object.prototype.toString;f.exports=function(h){return k.call(h)}},5569:f=>{f.exports=function(k,h){return function(m){return k(h(m))}}},5357:(f,k,h)=>{var m=h(6874),d=Math.max;f.exports=function(b,_,A){return _=d(_===void 0?b.length-1:_,0),function(){for(var L=arguments,E=-1,D=d(L.length-_,0),R=Array(D);++E<D;)R[E]=L[_+E];E=-1;for(var P=Array(_+1);++E<_;)P[E]=L[E];return P[_]=A(R),m(b,this,P)}}},5639:(f,k,h)=>{var m=h(1957),d=typeof self=="object"&&self&&self.Object===Object&&self,b=m||d||Function("return this")();f.exports=b},6390:f=>{f.exports=function(k,h){if((h!=="constructor"||typeof k[h]!="function")&&h!="__proto__")return k[h]}},619:f=>{f.exports=function(k){return this.__data__.set(k,"__lodash_hash_undefined__"),this}},2385:f=>{f.exports=function(k){return this.__data__.has(k)}},1814:f=>{f.exports=function(k){var h=-1,m=Array(k.size);return k.forEach(function(d){m[++h]=d}),m}},61:(f,k,h)=>{var m=h(6560),d=h(1275)(m);f.exports=d},1275:f=>{var k=Date.now;f.exports=function(h){var m=0,d=0;return function(){var b=k(),_=16-(b-d);if(d=b,_>0){if(++m>=800)return arguments[0]}else m=0;return h.apply(void 0,arguments)}}},7465:(f,k,h)=>{var m=h(8407);f.exports=function(){this.__data__=new m,this.size=0}},3779:f=>{f.exports=function(k){var h=this.__data__,m=h.delete(k);return this.size=h.size,m}},7599:f=>{f.exports=function(k){return this.__data__.get(k)}},4758:f=>{f.exports=function(k){return this.__data__.has(k)}},4309:(f,k,h)=>{var m=h(8407),d=h(7071),b=h(3369);f.exports=function(_,A){var L=this.__data__;if(L instanceof m){var E=L.__data__;if(!d||E.length<199)return E.push([_,A]),this.size=++L.size,this;L=this.__data__=new b(E)}return L.set(_,A),this.size=L.size,this}},2351:f=>{f.exports=function(k,h,m){for(var d=m-1,b=k.length;++d<b;)if(k[d]===h)return d;return-1}},8016:(f,k,h)=>{var m=h(8983),d=h(2689),b=h(1903);f.exports=function(_){return d(_)?b(_):m(_)}},5514:(f,k,h)=>{var m=h(4523),d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,b=/\\(\\)?/g,_=m(function(A){var L=[];return A.charCodeAt(0)===46&&L.push(""),A.replace(d,function(E,D,R,P){L.push(R?P.replace(b,"$1"):D||E)}),L});f.exports=_},327:(f,k,h)=>{var m=h(3448);f.exports=function(d){if(typeof d=="string"||m(d))return d;var b=d+"";return b=="0"&&1/d==-1/0?"-0":b}},346:f=>{var k=Function.prototype.toString;f.exports=function(h){if(h!=null){try{return k.call(h)}catch{}try{return h+""}catch{}}return""}},7990:f=>{var k=/\s/;f.exports=function(h){for(var m=h.length;m--&&k.test(h.charAt(m)););return m}},1903:f=>{var k="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",h="\\ud83c[\\udffb-\\udfff]",m="[^\\ud800-\\udfff]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",_="(?:"+k+"|"+h+")?",A="[\\ufe0e\\ufe0f]?",L=A+_+"(?:\\u200d(?:"+[m,d,b].join("|")+")"+A+_+")*",E="(?:"+[m+k+"?",k,d,b,"[\\ud800-\\udfff]"].join("|")+")",D=RegExp(h+"(?="+h+")|"+E+L,"g");f.exports=function(R){for(var P=D.lastIndex=0;D.test(R);)++P;return P}},6678:(f,k,h)=>{var m=h(5990);f.exports=function(d){return m(d,4)}},361:(f,k,h)=>{var m=h(5990);f.exports=function(d){return m(d,5)}},5703:f=>{f.exports=function(k){return function(){return k}}},1747:(f,k,h)=>{var m=h(5976),d=h(7813),b=h(6612),_=h(1704),A=Object.prototype,L=A.hasOwnProperty,E=m(function(D,R){D=Object(D);var P=-1,$=R.length,K=$>2?R[2]:void 0;for(K&&b(R[0],R[1],K)&&($=1);++P<$;)for(var et=R[P],ht=_(et),X=-1,_t=ht.length;++X<_t;){var rt=ht[X],at=D[rt];(at===void 0||d(at,A[rt])&&!L.call(D,rt))&&(D[rt]=et[rt])}return D});f.exports=E},6073:(f,k,h)=>{f.exports=h(4486)},7813:f=>{f.exports=function(k,h){return k===h||k!=k&&h!=h}},3105:(f,k,h)=>{var m=h(4963),d=h(760),b=h(7206),_=h(1469);f.exports=function(A,L){return(_(A)?m:d)(A,b(L,3))}},3311:(f,k,h)=>{var m=h(7740)(h(998));f.exports=m},998:(f,k,h)=>{var m=h(1848),d=h(7206),b=h(554),_=Math.max;f.exports=function(A,L,E){var D=A==null?0:A.length;if(!D)return-1;var R=E==null?0:b(E);return R<0&&(R=_(D+R,0)),m(A,d(L,3),R)}},5564:(f,k,h)=>{var m=h(1078);f.exports=function(d){return d!=null&&d.length?m(d,1):[]}},4486:(f,k,h)=>{var m=h(7412),d=h(9881),b=h(4290),_=h(1469);f.exports=function(A,L){return(_(A)?m:d)(A,b(L))}},2620:(f,k,h)=>{var m=h(8483),d=h(4290),b=h(1704);f.exports=function(_,A){return _==null?_:m(_,d(A),b)}},7361:(f,k,h)=>{var m=h(7786);f.exports=function(d,b,_){var A=d==null?void 0:m(d,b);return A===void 0?_:A}},8721:(f,k,h)=>{var m=h(8565),d=h(222);f.exports=function(b,_){return b!=null&&d(b,_,m)}},9095:(f,k,h)=>{var m=h(13),d=h(222);f.exports=function(b,_){return b!=null&&d(b,_,m)}},6557:f=>{f.exports=function(k){return k}},5694:(f,k,h)=>{var m=h(9454),d=h(7005),b=Object.prototype,_=b.hasOwnProperty,A=b.propertyIsEnumerable,L=m(function(){return arguments}())?m:function(E){return d(E)&&_.call(E,"callee")&&!A.call(E,"callee")};f.exports=L},1469:f=>{var k=Array.isArray;f.exports=k},8612:(f,k,h)=>{var m=h(3560),d=h(1780);f.exports=function(b){return b!=null&&d(b.length)&&!m(b)}},9246:(f,k,h)=>{var m=h(8612),d=h(7005);f.exports=function(b){return d(b)&&m(b)}},4144:(f,k,h)=>{f=h.nmd(f);var m=h(5639),d=h(5062),b=k&&!k.nodeType&&k,_=b&&f&&!f.nodeType&&f,A=_&&_.exports===b?m.Buffer:void 0,L=(A?A.isBuffer:void 0)||d;f.exports=L},1609:(f,k,h)=>{var m=h(280),d=h(4160),b=h(5694),_=h(1469),A=h(8612),L=h(4144),E=h(5726),D=h(6719),R=Object.prototype.hasOwnProperty;f.exports=function(P){if(P==null)return!0;if(A(P)&&(_(P)||typeof P=="string"||typeof P.splice=="function"||L(P)||D(P)||b(P)))return!P.length;var $=d(P);if($=="[object Map]"||$=="[object Set]")return!P.size;if(E(P))return!m(P).length;for(var K in P)if(R.call(P,K))return!1;return!0}},3560:(f,k,h)=>{var m=h(4239),d=h(3218);f.exports=function(b){if(!d(b))return!1;var _=m(b);return _=="[object Function]"||_=="[object GeneratorFunction]"||_=="[object AsyncFunction]"||_=="[object Proxy]"}},1780:f=>{f.exports=function(k){return typeof k=="number"&&k>-1&&k%1==0&&k<=9007199254740991}},6688:(f,k,h)=>{var m=h(5588),d=h(1717),b=h(1167),_=b&&b.isMap,A=_?d(_):m;f.exports=A},3218:f=>{f.exports=function(k){var h=typeof k;return k!=null&&(h=="object"||h=="function")}},7005:f=>{f.exports=function(k){return k!=null&&typeof k=="object"}},8630:(f,k,h)=>{var m=h(4239),d=h(5924),b=h(7005),_=Function.prototype,A=Object.prototype,L=_.toString,E=A.hasOwnProperty,D=L.call(Object);f.exports=function(R){if(!b(R)||m(R)!="[object Object]")return!1;var P=d(R);if(P===null)return!0;var $=E.call(P,"constructor")&&P.constructor;return typeof $=="function"&&$ instanceof $&&L.call($)==D}},2928:(f,k,h)=>{var m=h(9221),d=h(1717),b=h(1167),_=b&&b.isSet,A=_?d(_):m;f.exports=A},7037:(f,k,h)=>{var m=h(4239),d=h(1469),b=h(7005);f.exports=function(_){return typeof _=="string"||!d(_)&&b(_)&&m(_)=="[object String]"}},3448:(f,k,h)=>{var m=h(4239),d=h(7005);f.exports=function(b){return typeof b=="symbol"||d(b)&&m(b)=="[object Symbol]"}},6719:(f,k,h)=>{var m=h(8749),d=h(1717),b=h(1167),_=b&&b.isTypedArray,A=_?d(_):m;f.exports=A},2353:f=>{f.exports=function(k){return k===void 0}},3674:(f,k,h)=>{var m=h(4636),d=h(280),b=h(8612);f.exports=function(_){return b(_)?m(_):d(_)}},1704:(f,k,h)=>{var m=h(4636),d=h(313),b=h(8612);f.exports=function(_){return b(_)?m(_,!0):d(_)}},928:f=>{f.exports=function(k){var h=k==null?0:k.length;return h?k[h-1]:void 0}},5161:(f,k,h)=>{var m=h(9932),d=h(7206),b=h(9199),_=h(1469);f.exports=function(A,L){return(_(A)?m:b)(A,d(L,3))}},6604:(f,k,h)=>{var m=h(9465),d=h(7816),b=h(7206);f.exports=function(_,A){var L={};return A=b(A,3),d(_,function(E,D,R){m(L,D,A(E,D,R))}),L}},6162:(f,k,h)=>{var m=h(6029),d=h(3325),b=h(6557);f.exports=function(_){return _&&_.length?m(_,b,d):void 0}},8306:(f,k,h)=>{var m=h(3369);function d(b,_){if(typeof b!="function"||_!=null&&typeof _!="function")throw new TypeError("Expected a function");var A=function(){var L=arguments,E=_?_.apply(this,L):L[0],D=A.cache;if(D.has(E))return D.get(E);var R=b.apply(this,L);return A.cache=D.set(E,R)||D,R};return A.cache=new(d.Cache||m),A}d.Cache=m,f.exports=d},3857:(f,k,h)=>{var m=h(2980),d=h(1750)(function(b,_,A){m(b,_,A)});f.exports=d},3632:(f,k,h)=>{var m=h(6029),d=h(433),b=h(6557);f.exports=function(_){return _&&_.length?m(_,b,d):void 0}},2762:(f,k,h)=>{var m=h(6029),d=h(7206),b=h(433);f.exports=function(_,A){return _&&_.length?m(_,d(A,2),b):void 0}},308:f=>{f.exports=function(){}},7771:(f,k,h)=>{var m=h(5639);f.exports=function(){return m.Date.now()}},9722:(f,k,h)=>{var m=h(5970),d=h(9021)(function(b,_){return b==null?{}:m(b,_)});f.exports=d},9601:(f,k,h)=>{var m=h(371),d=h(9152),b=h(5403),_=h(327);f.exports=function(A){return b(A)?m(_(A)):d(A)}},6026:(f,k,h)=>{var m=h(7445)();f.exports=m},4061:(f,k,h)=>{var m=h(2663),d=h(9881),b=h(7206),_=h(107),A=h(1469);f.exports=function(L,E,D){var R=A(L)?m:_,P=arguments.length<3;return R(L,b(E,4),D,P,d)}},4238:(f,k,h)=>{var m=h(280),d=h(4160),b=h(8612),_=h(7037),A=h(8016);f.exports=function(L){if(L==null)return 0;if(b(L))return _(L)?A(L):L.length;var E=d(L);return E=="[object Map]"||E=="[object Set]"?L.size:m(L).length}},9734:(f,k,h)=>{var m=h(1078),d=h(9556),b=h(5976),_=h(6612),A=b(function(L,E){if(L==null)return[];var D=E.length;return D>1&&_(L,E[0],E[1])?E=[]:D>2&&_(E[0],E[1],E[2])&&(E=[E[0]]),d(L,m(E,1),[])});f.exports=A},479:f=>{f.exports=function(){return[]}},5062:f=>{f.exports=function(){return!1}},8601:(f,k,h)=>{var m=h(4841);f.exports=function(d){return d?(d=m(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}},554:(f,k,h)=>{var m=h(8601);f.exports=function(d){var b=m(d),_=b%1;return b==b?_?b-_:b:0}},4841:(f,k,h)=>{var m=h(7561),d=h(3218),b=h(3448),_=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,L=/^0o[0-7]+$/i,E=parseInt;f.exports=function(D){if(typeof D=="number")return D;if(b(D))return NaN;if(d(D)){var R=typeof D.valueOf=="function"?D.valueOf():D;D=d(R)?R+"":R}if(typeof D!="string")return D===0?D:+D;D=m(D);var P=A.test(D);return P||L.test(D)?E(D.slice(2),P?2:8):_.test(D)?NaN:+D}},3678:(f,k,h)=>{var m=h(8363),d=h(1704);f.exports=function(b){return m(b,d(b))}},9833:(f,k,h)=>{var m=h(531);f.exports=function(d){return d==null?"":m(d)}},8718:(f,k,h)=>{var m=h(7412),d=h(3118),b=h(7816),_=h(7206),A=h(5924),L=h(1469),E=h(4144),D=h(3560),R=h(3218),P=h(6719);f.exports=function($,K,et){var ht=L($),X=ht||E($)||P($);if(K=_(K,4),et==null){var _t=$&&$.constructor;et=X?ht?new _t:[]:R($)&&D(_t)?d(A($)):{}}return(X?m:b)($,function(rt,at,bt){return K(et,rt,at,bt)}),et}},3386:(f,k,h)=>{var m=h(1078),d=h(5976),b=h(5652),_=h(9246),A=d(function(L){return b(m(L,1,_,!0))});f.exports=A},3955:(f,k,h)=>{var m=h(9833),d=0;f.exports=function(b){var _=++d;return m(b)+_}},2628:(f,k,h)=>{var m=h(7415),d=h(3674);f.exports=function(b){return b==null?[]:m(b,d(b))}},7287:(f,k,h)=>{var m=h(4865),d=h(1757);f.exports=function(b,_){return d(b||[],_||[],m)}},9234:()=>{},1748:(f,k,h)=>{var m={"./locale":9234,"./locale.js":9234};function d(_){var A=b(_);return h(A)}function b(_){if(!h.o(m,_)){var A=new Error("Cannot find module '"+_+"'");throw A.code="MODULE_NOT_FOUND",A}return m[_]}d.keys=function(){return Object.keys(m)},d.resolve=b,f.exports=d,d.id=1748},1941:function(f,k,h){(f=h.nmd(f)).exports=function(){var m,d;function b(){return m.apply(null,arguments)}function _(I){return I instanceof Array||Object.prototype.toString.call(I)==="[object Array]"}function A(I){return I!=null&&Object.prototype.toString.call(I)==="[object Object]"}function L(I){return I===void 0}function E(I){return typeof I=="number"||Object.prototype.toString.call(I)==="[object Number]"}function D(I){return I instanceof Date||Object.prototype.toString.call(I)==="[object Date]"}function R(I,U){var Q,mt=[];for(Q=0;Q<I.length;++Q)mt.push(U(I[Q],Q));return mt}function P(I,U){return Object.prototype.hasOwnProperty.call(I,U)}function $(I,U){for(var Q in U)P(U,Q)&&(I[Q]=U[Q]);return P(U,"toString")&&(I.toString=U.toString),P(U,"valueOf")&&(I.valueOf=U.valueOf),I}function K(I,U,Q,mt){return ya(I,U,Q,mt,!0).utc()}function et(I){return I._pf==null&&(I._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),I._pf}function ht(I){if(I._isValid==null){var U=et(I),Q=d.call(U.parsedDateParts,function(te){return te!=null}),mt=!isNaN(I._d.getTime())&&U.overflow<0&&!U.empty&&!U.invalidMonth&&!U.invalidWeekday&&!U.weekdayMismatch&&!U.nullInput&&!U.invalidFormat&&!U.userInvalidated&&(!U.meridiem||U.meridiem&&Q);if(I._strict&&(mt=mt&&U.charsLeftOver===0&&U.unusedTokens.length===0&&U.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(I))return mt;I._isValid=mt}return I._isValid}function X(I){var U=K(NaN);return I!=null?$(et(U),I):et(U).userInvalidated=!0,U}d=Array.prototype.some?Array.prototype.some:function(I){for(var U=Object(this),Q=U.length>>>0,mt=0;mt<Q;mt++)if(mt in U&&I.call(this,U[mt],mt,U))return!0;return!1};var _t=b.momentProperties=[];function rt(I,U){var Q,mt,te;if(L(U._isAMomentObject)||(I._isAMomentObject=U._isAMomentObject),L(U._i)||(I._i=U._i),L(U._f)||(I._f=U._f),L(U._l)||(I._l=U._l),L(U._strict)||(I._strict=U._strict),L(U._tzm)||(I._tzm=U._tzm),L(U._isUTC)||(I._isUTC=U._isUTC),L(U._offset)||(I._offset=U._offset),L(U._pf)||(I._pf=et(U)),L(U._locale)||(I._locale=U._locale),0<_t.length)for(Q=0;Q<_t.length;Q++)L(te=U[mt=_t[Q]])||(I[mt]=te);return I}var at=!1;function bt(I){rt(this,I),this._d=new Date(I._d!=null?I._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),at===!1&&(at=!0,b.updateOffset(this),at=!1)}function Ft(I){return I instanceof bt||I!=null&&I._isAMomentObject!=null}function Tt(I){return I<0?Math.ceil(I)||0:Math.floor(I)}function yt(I){var U=+I,Q=0;return U!==0&&isFinite(U)&&(Q=Tt(U)),Q}function Nt(I,U,Q){var mt,te=Math.min(I.length,U.length),Ne=Math.abs(I.length-U.length),ze=0;for(mt=0;mt<te;mt++)(Q&&I[mt]!==U[mt]||!Q&&yt(I[mt])!==yt(U[mt]))&&ze++;return ze+Ne}function xt(I){b.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+I)}function pt(I,U){var Q=!0;return $(function(){if(b.deprecationHandler!=null&&b.deprecationHandler(null,I),Q){for(var mt,te=[],Ne=0;Ne<arguments.length;Ne++){if(mt="",typeof arguments[Ne]=="object"){for(var ze in mt+=`
|
|
[`+Ne+"] ",arguments[0])mt+=ze+": "+arguments[0][ze]+", ";mt=mt.slice(0,-2)}else mt=arguments[Ne];te.push(mt)}xt(I+`
|
|
Arguments: `+Array.prototype.slice.call(te).join("")+`
|
|
`+new Error().stack),Q=!1}return U.apply(this,arguments)},U)}var tt,ft={};function q(I,U){b.deprecationHandler!=null&&b.deprecationHandler(I,U),ft[I]||(xt(U),ft[I]=!0)}function kt(I){return I instanceof Function||Object.prototype.toString.call(I)==="[object Function]"}function W(I,U){var Q,mt=$({},I);for(Q in U)P(U,Q)&&(A(I[Q])&&A(U[Q])?(mt[Q]={},$(mt[Q],I[Q]),$(mt[Q],U[Q])):U[Q]!=null?mt[Q]=U[Q]:delete mt[Q]);for(Q in I)P(I,Q)&&!P(U,Q)&&A(I[Q])&&(mt[Q]=$({},mt[Q]));return mt}function St(I){I!=null&&this.set(I)}b.suppressDeprecationWarnings=!1,b.deprecationHandler=null,tt=Object.keys?Object.keys:function(I){var U,Q=[];for(U in I)P(I,U)&&Q.push(U);return Q};var Lt={};function Ht(I,U){var Q=I.toLowerCase();Lt[Q]=Lt[Q+"s"]=Lt[U]=I}function ge(I){return typeof I=="string"?Lt[I]||Lt[I.toLowerCase()]:void 0}function We(I){var U,Q,mt={};for(Q in I)P(I,Q)&&(U=ge(Q))&&(mt[U]=I[Q]);return mt}var Ee={};function fe(I,U){Ee[I]=U}function xe(I,U,Q){var mt=""+Math.abs(I),te=U-mt.length;return(0<=I?Q?"+":"":"-")+Math.pow(10,Math.max(0,te)).toString().substr(1)+mt}var Ie=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Me=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ve={},An={};function _e(I,U,Q,mt){var te=mt;typeof mt=="string"&&(te=function(){return this[mt]()}),I&&(An[I]=te),U&&(An[U[0]]=function(){return xe(te.apply(this,arguments),U[1],U[2])}),Q&&(An[Q]=function(){return this.localeData().ordinal(te.apply(this,arguments),I)})}function en(I,U){return I.isValid()?(U=Ot(U,I.localeData()),ve[U]=ve[U]||function(Q){var mt,te,Ne,ze=Q.match(Ie);for(mt=0,te=ze.length;mt<te;mt++)An[ze[mt]]?ze[mt]=An[ze[mt]]:ze[mt]=(Ne=ze[mt]).match(/\[[\s\S]/)?Ne.replace(/^\[|\]$/g,""):Ne.replace(/\\/g,"");return function(nn){var He,pn="";for(He=0;He<te;He++)pn+=kt(ze[He])?ze[He].call(nn,Q):ze[He];return pn}}(U),ve[U](I)):I.localeData().invalidDate()}function Ot(I,U){var Q=5;function mt(te){return U.longDateFormat(te)||te}for(Me.lastIndex=0;0<=Q&&Me.test(I);)I=I.replace(Me,mt),Me.lastIndex=0,Q-=1;return I}var he=/\d/,Qt=/\d\d/,At=/\d{3}/,De=/\d{4}/,J=/[+-]?\d{6}/,Ce=/\d\d?/,ot=/\d\d\d\d?/,Te=/\d\d\d\d\d\d?/,ue=/\d{1,3}/,Fe=/\d{1,4}/,fn=/[+-]?\d{1,6}/,rn=/\d+/,Xe=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,Be=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Pe={};function ye(I,U,Q){Pe[I]=kt(U)?U:function(mt,te){return mt&&Q?Q:U}}function Ve(I,U){return P(Pe,I)?Pe[I](U._strict,U._locale):new RegExp(kn(I.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(Q,mt,te,Ne,ze){return mt||te||Ne||ze})))}function kn(I){return I.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ar={};function cn(I,U){var Q,mt=U;for(typeof I=="string"&&(I=[I]),E(U)&&(mt=function(te,Ne){Ne[U]=yt(te)}),Q=0;Q<I.length;Q++)ar[I[Q]]=mt}function hn(I,U){cn(I,function(Q,mt,te,Ne){te._w=te._w||{},U(Q,te._w,te,Ne)})}function Qr(I){return Lr(I)?366:365}function Lr(I){return I%4==0&&I%100!=0||I%400==0}_e("Y",0,0,function(){var I=this.year();return I<=9999?""+I:"+"+I}),_e(0,["YY",2],0,function(){return this.year()%100}),_e(0,["YYYY",4],0,"year"),_e(0,["YYYYY",5],0,"year"),_e(0,["YYYYYY",6,!0],0,"year"),Ht("year","y"),fe("year",1),ye("Y",Xe),ye("YY",Ce,Qt),ye("YYYY",Fe,De),ye("YYYYY",fn,J),ye("YYYYYY",fn,J),cn(["YYYYY","YYYYYY"],0),cn("YYYY",function(I,U){U[0]=I.length===2?b.parseTwoDigitYear(I):yt(I)}),cn("YY",function(I,U){U[0]=b.parseTwoDigitYear(I)}),cn("Y",function(I,U){U[0]=parseInt(I,10)}),b.parseTwoDigitYear=function(I){return yt(I)+(68<yt(I)?1900:2e3)};var Cn,In=Le("FullYear",!0);function Le(I,U){return function(Q){return Q!=null?(Qe(this,I,Q),b.updateOffset(this,U),this):ie(this,I)}}function ie(I,U){return I.isValid()?I._d["get"+(I._isUTC?"UTC":"")+U]():NaN}function Qe(I,U,Q){I.isValid()&&!isNaN(Q)&&(U==="FullYear"&&Lr(I.year())&&I.month()===1&&I.date()===29?I._d["set"+(I._isUTC?"UTC":"")+U](Q,I.month(),Vt(Q,I.month())):I._d["set"+(I._isUTC?"UTC":"")+U](Q))}function Vt(I,U){if(isNaN(I)||isNaN(U))return NaN;var Q=(U%12+12)%12;return I+=(U-Q)/12,Q===1?Lr(I)?29:28:31-Q%7%2}Cn=Array.prototype.indexOf?Array.prototype.indexOf:function(I){var U;for(U=0;U<this.length;++U)if(this[U]===I)return U;return-1},_e("M",["MM",2],"Mo",function(){return this.month()+1}),_e("MMM",0,0,function(I){return this.localeData().monthsShort(this,I)}),_e("MMMM",0,0,function(I){return this.localeData().months(this,I)}),Ht("month","M"),fe("month",8),ye("M",Ce),ye("MM",Ce,Qt),ye("MMM",function(I,U){return U.monthsShortRegex(I)}),ye("MMMM",function(I,U){return U.monthsRegex(I)}),cn(["M","MM"],function(I,U){U[1]=yt(I)-1}),cn(["MMM","MMMM"],function(I,U,Q,mt){var te=Q._locale.monthsParse(I,mt,Q._strict);te!=null?U[1]=te:et(Q).invalidMonth=I});var Nn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ct="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),vn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Rt(I,U){var Q;if(!I.isValid())return I;if(typeof U=="string"){if(/^\d+$/.test(U))U=yt(U);else if(!E(U=I.localeData().monthsParse(U)))return I}return Q=Math.min(I.date(),Vt(I.year(),U)),I._d["set"+(I._isUTC?"UTC":"")+"Month"](U,Q),I}function Un(I){return I!=null?(Rt(this,I),b.updateOffset(this,!0),this):ie(this,"Month")}var Yn=pe,Xn=pe;function Hn(){function I(ze,nn){return nn.length-ze.length}var U,Q,mt=[],te=[],Ne=[];for(U=0;U<12;U++)Q=K([2e3,U]),mt.push(this.monthsShort(Q,"")),te.push(this.months(Q,"")),Ne.push(this.months(Q,"")),Ne.push(this.monthsShort(Q,""));for(mt.sort(I),te.sort(I),Ne.sort(I),U=0;U<12;U++)mt[U]=kn(mt[U]),te[U]=kn(te[U]);for(U=0;U<24;U++)Ne[U]=kn(Ne[U]);this._monthsRegex=new RegExp("^("+Ne.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+te.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+mt.join("|")+")","i")}function Vn(I){var U;if(I<100&&0<=I){var Q=Array.prototype.slice.call(arguments);Q[0]=I+400,U=new Date(Date.UTC.apply(null,Q)),isFinite(U.getUTCFullYear())&&U.setUTCFullYear(I)}else U=new Date(Date.UTC.apply(null,arguments));return U}function Kn(I,U,Q){var mt=7+U-Q;return-(7+Vn(I,0,mt).getUTCDay()-U)%7+mt-1}function Mn(I,U,Q,mt,te){var Ne,ze,nn=1+7*(U-1)+(7+Q-mt)%7+Kn(I,mt,te);return ze=nn<=0?Qr(Ne=I-1)+nn:nn>Qr(I)?(Ne=I+1,nn-Qr(I)):(Ne=I,nn),{year:Ne,dayOfYear:ze}}function jn(I,U,Q){var mt,te,Ne=Kn(I.year(),U,Q),ze=Math.floor((I.dayOfYear()-Ne-1)/7)+1;return ze<1?mt=ze+Gn(te=I.year()-1,U,Q):ze>Gn(I.year(),U,Q)?(mt=ze-Gn(I.year(),U,Q),te=I.year()+1):(te=I.year(),mt=ze),{week:mt,year:te}}function Gn(I,U,Q){var mt=Kn(I,U,Q),te=Kn(I+1,U,Q);return(Qr(I)-mt+te)/7}function Zn(I,U){return I.slice(U,7).concat(I.slice(0,U))}_e("w",["ww",2],"wo","week"),_e("W",["WW",2],"Wo","isoWeek"),Ht("week","w"),Ht("isoWeek","W"),fe("week",5),fe("isoWeek",5),ye("w",Ce),ye("ww",Ce,Qt),ye("W",Ce),ye("WW",Ce,Qt),hn(["w","ww","W","WW"],function(I,U,Q,mt){U[mt.substr(0,1)]=yt(I)}),_e("d",0,"do","day"),_e("dd",0,0,function(I){return this.localeData().weekdaysMin(this,I)}),_e("ddd",0,0,function(I){return this.localeData().weekdaysShort(this,I)}),_e("dddd",0,0,function(I){return this.localeData().weekdays(this,I)}),_e("e",0,0,"weekday"),_e("E",0,0,"isoWeekday"),Ht("day","d"),Ht("weekday","e"),Ht("isoWeekday","E"),fe("day",11),fe("weekday",11),fe("isoWeekday",11),ye("d",Ce),ye("e",Ce),ye("E",Ce),ye("dd",function(I,U){return U.weekdaysMinRegex(I)}),ye("ddd",function(I,U){return U.weekdaysShortRegex(I)}),ye("dddd",function(I,U){return U.weekdaysRegex(I)}),hn(["dd","ddd","dddd"],function(I,U,Q,mt){var te=Q._locale.weekdaysParse(I,mt,Q._strict);te!=null?U.d=te:et(Q).invalidWeekday=I}),hn(["d","e","E"],function(I,U,Q,mt){U[mt]=yt(I)});var Ua="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Wr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),On=pe,Qi=pe,Qn=pe;function Yr(){function I(_n,Pn){return Pn.length-_n.length}var U,Q,mt,te,Ne,ze=[],nn=[],He=[],pn=[];for(U=0;U<7;U++)Q=K([2e3,1]).day(U),mt=this.weekdaysMin(Q,""),te=this.weekdaysShort(Q,""),Ne=this.weekdays(Q,""),ze.push(mt),nn.push(te),He.push(Ne),pn.push(mt),pn.push(te),pn.push(Ne);for(ze.sort(I),nn.sort(I),He.sort(I),pn.sort(I),U=0;U<7;U++)nn[U]=kn(nn[U]),He[U]=kn(He[U]),pn[U]=kn(pn[U]);this._weekdaysRegex=new RegExp("^("+pn.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+He.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+nn.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+ze.join("|")+")","i")}function Gr(){return this.hours()%12||12}function Or(I,U){_e(I,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),U)})}function Vr(I,U){return U._meridiemParse}_e("H",["HH",2],0,"hour"),_e("h",["hh",2],0,Gr),_e("k",["kk",2],0,function(){return this.hours()||24}),_e("hmm",0,0,function(){return""+Gr.apply(this)+xe(this.minutes(),2)}),_e("hmmss",0,0,function(){return""+Gr.apply(this)+xe(this.minutes(),2)+xe(this.seconds(),2)}),_e("Hmm",0,0,function(){return""+this.hours()+xe(this.minutes(),2)}),_e("Hmmss",0,0,function(){return""+this.hours()+xe(this.minutes(),2)+xe(this.seconds(),2)}),Or("a",!0),Or("A",!1),Ht("hour","h"),fe("hour",13),ye("a",Vr),ye("A",Vr),ye("H",Ce),ye("h",Ce),ye("k",Ce),ye("HH",Ce,Qt),ye("hh",Ce,Qt),ye("kk",Ce,Qt),ye("hmm",ot),ye("hmmss",Te),ye("Hmm",ot),ye("Hmmss",Te),cn(["H","HH"],3),cn(["k","kk"],function(I,U,Q){var mt=yt(I);U[3]=mt===24?0:mt}),cn(["a","A"],function(I,U,Q){Q._isPm=Q._locale.isPM(I),Q._meridiem=I}),cn(["h","hh"],function(I,U,Q){U[3]=yt(I),et(Q).bigHour=!0}),cn("hmm",function(I,U,Q){var mt=I.length-2;U[3]=yt(I.substr(0,mt)),U[4]=yt(I.substr(mt)),et(Q).bigHour=!0}),cn("hmmss",function(I,U,Q){var mt=I.length-4,te=I.length-2;U[3]=yt(I.substr(0,mt)),U[4]=yt(I.substr(mt,2)),U[5]=yt(I.substr(te)),et(Q).bigHour=!0}),cn("Hmm",function(I,U,Q){var mt=I.length-2;U[3]=yt(I.substr(0,mt)),U[4]=yt(I.substr(mt))}),cn("Hmmss",function(I,U,Q){var mt=I.length-4,te=I.length-2;U[3]=yt(I.substr(0,mt)),U[4]=yt(I.substr(mt,2)),U[5]=yt(I.substr(te))});var Zr,jr=Le("Hours",!0),ti={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ct,monthsShort:vn,week:{dow:0,doy:6},weekdays:Ua,weekdaysMin:Pr,weekdaysShort:Wr,meridiemParse:/[ap]\.?m?\.?/i},or={},pi={};function Sr(I){return I&&I.toLowerCase().replace("_","-")}function ei(I){var U=null;if(!or[I]&&f&&f.exports)try{U=Zr._abbr,h(1748)("./"+I),ki(U)}catch{}return or[I]}function ki(I,U){var Q;return I&&((Q=L(U)?Dr(I):za(I,U))?Zr=Q:typeof console<"u"&&console.warn&&console.warn("Locale "+I+" not found. Did you forget to load it?")),Zr._abbr}function za(I,U){if(U===null)return delete or[I],null;var Q,mt=ti;if(U.abbr=I,or[I]!=null)q("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),mt=or[I]._config;else if(U.parentLocale!=null)if(or[U.parentLocale]!=null)mt=or[U.parentLocale]._config;else{if((Q=ei(U.parentLocale))==null)return pi[U.parentLocale]||(pi[U.parentLocale]=[]),pi[U.parentLocale].push({name:I,config:U}),null;mt=Q._config}return or[I]=new St(W(mt,U)),pi[I]&&pi[I].forEach(function(te){za(te.name,te.config)}),ki(I),or[I]}function Dr(I){var U;if(I&&I._locale&&I._locale._abbr&&(I=I._locale._abbr),!I)return Zr;if(!_(I)){if(U=ei(I))return U;I=[I]}return function(Q){for(var mt,te,Ne,ze,nn=0;nn<Q.length;){for(mt=(ze=Sr(Q[nn]).split("-")).length,te=(te=Sr(Q[nn+1]))?te.split("-"):null;0<mt;){if(Ne=ei(ze.slice(0,mt).join("-")))return Ne;if(te&&te.length>=mt&&Nt(ze,te,!0)>=mt-1)break;mt--}nn++}return Zr}(I)}function ga(I){var U,Q=I._a;return Q&&et(I).overflow===-2&&(U=Q[1]<0||11<Q[1]?1:Q[2]<1||Q[2]>Vt(Q[0],Q[1])?2:Q[3]<0||24<Q[3]||Q[3]===24&&(Q[4]!==0||Q[5]!==0||Q[6]!==0)?3:Q[4]<0||59<Q[4]?4:Q[5]<0||59<Q[5]?5:Q[6]<0||999<Q[6]?6:-1,et(I)._overflowDayOfYear&&(U<0||2<U)&&(U=2),et(I)._overflowWeeks&&U===-1&&(U=7),et(I)._overflowWeekday&&U===-1&&(U=8),et(I).overflow=U),I}function Fi(I,U,Q){return I!=null?I:U!=null?U:Q}function ta(I){var U,Q,mt,te,Ne,ze=[];if(!I._d){var nn,He;for(nn=I,He=new Date(b.now()),mt=nn._useUTC?[He.getUTCFullYear(),He.getUTCMonth(),He.getUTCDate()]:[He.getFullYear(),He.getMonth(),He.getDate()],I._w&&I._a[2]==null&&I._a[1]==null&&function(pn){var _n,Pn,Sn,Nr,br,Ai,zi,_i;if((_n=pn._w).GG!=null||_n.W!=null||_n.E!=null)br=1,Ai=4,Pn=Fi(_n.GG,pn._a[0],jn(Br(),1,4).year),Sn=Fi(_n.W,1),((Nr=Fi(_n.E,1))<1||7<Nr)&&(_i=!0);else{br=pn._locale._week.dow,Ai=pn._locale._week.doy;var Lo=jn(Br(),br,Ai);Pn=Fi(_n.gg,pn._a[0],Lo.year),Sn=Fi(_n.w,Lo.week),_n.d!=null?((Nr=_n.d)<0||6<Nr)&&(_i=!0):_n.e!=null?(Nr=_n.e+br,(_n.e<0||6<_n.e)&&(_i=!0)):Nr=br}Sn<1||Sn>Gn(Pn,br,Ai)?et(pn)._overflowWeeks=!0:_i!=null?et(pn)._overflowWeekday=!0:(zi=Mn(Pn,Sn,Nr,br,Ai),pn._a[0]=zi.year,pn._dayOfYear=zi.dayOfYear)}(I),I._dayOfYear!=null&&(Ne=Fi(I._a[0],mt[0]),(I._dayOfYear>Qr(Ne)||I._dayOfYear===0)&&(et(I)._overflowDayOfYear=!0),Q=Vn(Ne,0,I._dayOfYear),I._a[1]=Q.getUTCMonth(),I._a[2]=Q.getUTCDate()),U=0;U<3&&I._a[U]==null;++U)I._a[U]=ze[U]=mt[U];for(;U<7;U++)I._a[U]=ze[U]=I._a[U]==null?U===2?1:0:I._a[U];I._a[3]===24&&I._a[4]===0&&I._a[5]===0&&I._a[6]===0&&(I._nextDay=!0,I._a[3]=0),I._d=(I._useUTC?Vn:function(pn,_n,Pn,Sn,Nr,br,Ai){var zi;return pn<100&&0<=pn?(zi=new Date(pn+400,_n,Pn,Sn,Nr,br,Ai),isFinite(zi.getFullYear())&&zi.setFullYear(pn)):zi=new Date(pn,_n,Pn,Sn,Nr,br,Ai),zi}).apply(null,ze),te=I._useUTC?I._d.getUTCDay():I._d.getDay(),I._tzm!=null&&I._d.setUTCMinutes(I._d.getUTCMinutes()-I._tzm),I._nextDay&&(I._a[3]=24),I._w&&I._w.d!==void 0&&I._w.d!==te&&(et(I).weekdayMismatch=!0)}}var Tn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tr=/Z|[+-]\d\d(?::?\d\d)?/,on=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],sr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],qt=/^\/?Date\((\-?\d+)/i;function gi(I){var U,Q,mt,te,Ne,ze,nn=I._i,He=Tn.exec(nn)||wr.exec(nn);if(He){for(et(I).iso=!0,U=0,Q=on.length;U<Q;U++)if(on[U][1].exec(He[1])){te=on[U][0],mt=on[U][2]!==!1;break}if(te==null)return void(I._isValid=!1);if(He[3]){for(U=0,Q=sr.length;U<Q;U++)if(sr[U][1].exec(He[3])){Ne=(He[2]||" ")+sr[U][0];break}if(Ne==null)return void(I._isValid=!1)}if(!mt&&Ne!=null)return void(I._isValid=!1);if(He[4]){if(!tr.exec(He[4]))return void(I._isValid=!1);ze="Z"}I._f=te+(Ne||"")+(ze||""),$r(I)}else I._isValid=!1}var Jt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ti={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ya(I){var U,Q,mt,te=Jt.exec(I._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(te){var Ne=function(ze,nn,He,pn,_n,Pn){var Sn=[function(Nr){var br=parseInt(Nr,10);return br<=49?2e3+br:br<=999?1900+br:br}(ze),vn.indexOf(nn),parseInt(He,10),parseInt(pn,10),parseInt(_n,10)];return Pn&&Sn.push(parseInt(Pn,10)),Sn}(te[4],te[3],te[2],te[5],te[6],te[7]);if(Q=Ne,mt=I,(U=te[1])&&Wr.indexOf(U)!==new Date(Q[0],Q[1],Q[2]).getDay()&&(et(mt).weekdayMismatch=!0,!(mt._isValid=!1)))return;I._a=Ne,I._tzm=function(ze,nn,He){if(ze)return Ti[ze];if(nn)return 0;var pn=parseInt(He,10),_n=pn%100;return(pn-_n)/100*60+_n}(te[8],te[9],te[10]),I._d=Vn.apply(null,I._a),I._d.setUTCMinutes(I._d.getUTCMinutes()-I._tzm),et(I).rfc2822=!0}else I._isValid=!1}function $r(I){if(I._f!==b.ISO_8601)if(I._f!==b.RFC_2822){I._a=[],et(I).empty=!0;var U,Q,mt,te,Ne,ze,nn,He,pn=""+I._i,_n=pn.length,Pn=0;for(mt=Ot(I._f,I._locale).match(Ie)||[],U=0;U<mt.length;U++)te=mt[U],(Q=(pn.match(Ve(te,I))||[])[0])&&(0<(Ne=pn.substr(0,pn.indexOf(Q))).length&&et(I).unusedInput.push(Ne),pn=pn.slice(pn.indexOf(Q)+Q.length),Pn+=Q.length),An[te]?(Q?et(I).empty=!1:et(I).unusedTokens.push(te),ze=te,He=I,(nn=Q)!=null&&P(ar,ze)&&ar[ze](nn,He._a,He,ze)):I._strict&&!Q&&et(I).unusedTokens.push(te);et(I).charsLeftOver=_n-Pn,0<pn.length&&et(I).unusedInput.push(pn),I._a[3]<=12&&et(I).bigHour===!0&&0<I._a[3]&&(et(I).bigHour=void 0),et(I).parsedDateParts=I._a.slice(0),et(I).meridiem=I._meridiem,I._a[3]=function(Sn,Nr,br){var Ai;return br==null?Nr:Sn.meridiemHour!=null?Sn.meridiemHour(Nr,br):(Sn.isPM!=null&&((Ai=Sn.isPM(br))&&Nr<12&&(Nr+=12),Ai||Nr!==12||(Nr=0)),Nr)}(I._locale,I._a[3],I._meridiem),ta(I),ga(I)}else Ya(I);else gi(I)}function Co(I){var U,Q,mt,te,Ne=I._i,ze=I._f;return I._locale=I._locale||Dr(I._l),Ne===null||ze===void 0&&Ne===""?X({nullInput:!0}):(typeof Ne=="string"&&(I._i=Ne=I._locale.preparse(Ne)),Ft(Ne)?new bt(ga(Ne)):(D(Ne)?I._d=Ne:_(ze)?function(nn){var He,pn,_n,Pn,Sn;if(nn._f.length===0)return et(nn).invalidFormat=!0,nn._d=new Date(NaN);for(Pn=0;Pn<nn._f.length;Pn++)Sn=0,He=rt({},nn),nn._useUTC!=null&&(He._useUTC=nn._useUTC),He._f=nn._f[Pn],$r(He),ht(He)&&(Sn+=et(He).charsLeftOver,Sn+=10*et(He).unusedTokens.length,et(He).score=Sn,(_n==null||Sn<_n)&&(_n=Sn,pn=He));$(nn,pn||He)}(I):ze?$r(I):L(Q=(U=I)._i)?U._d=new Date(b.now()):D(Q)?U._d=new Date(Q.valueOf()):typeof Q=="string"?(mt=U,(te=qt.exec(mt._i))===null?(gi(mt),mt._isValid===!1&&(delete mt._isValid,Ya(mt),mt._isValid===!1&&(delete mt._isValid,b.createFromInputFallback(mt)))):mt._d=new Date(+te[1])):_(Q)?(U._a=R(Q.slice(0),function(nn){return parseInt(nn,10)}),ta(U)):A(Q)?function(nn){if(!nn._d){var He=We(nn._i);nn._a=R([He.year,He.month,He.day||He.date,He.hour,He.minute,He.second,He.millisecond],function(pn){return pn&&parseInt(pn,10)}),ta(nn)}}(U):E(Q)?U._d=new Date(Q):b.createFromInputFallback(U),ht(I)||(I._d=null),I))}function ya(I,U,Q,mt,te){var Ne,ze={};return Q!==!0&&Q!==!1||(mt=Q,Q=void 0),(A(I)&&function(nn){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(nn).length===0;var He;for(He in nn)if(nn.hasOwnProperty(He))return!1;return!0}(I)||_(I)&&I.length===0)&&(I=void 0),ze._isAMomentObject=!0,ze._useUTC=ze._isUTC=te,ze._l=Q,ze._i=I,ze._f=U,ze._strict=mt,(Ne=new bt(ga(Co(ze))))._nextDay&&(Ne.add(1,"d"),Ne._nextDay=void 0),Ne}function Br(I,U,Q,mt){return ya(I,U,Q,mt,!1)}b.createFromInputFallback=pt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(I){I._d=new Date(I._i+(I._useUTC?" UTC":""))}),b.ISO_8601=function(){},b.RFC_2822=function(){};var ni=pt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var I=Br.apply(null,arguments);return this.isValid()&&I.isValid()?I<this?this:I:X()}),yi=pt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var I=Br.apply(null,arguments);return this.isValid()&&I.isValid()?this<I?this:I:X()});function Ca(I,U){var Q,mt;if(U.length===1&&_(U[0])&&(U=U[0]),!U.length)return Br();for(Q=U[0],mt=1;mt<U.length;++mt)U[mt].isValid()&&!U[mt][I](Q)||(Q=U[mt]);return Q}var Vi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Si(I){var U=We(I),Q=U.year||0,mt=U.quarter||0,te=U.month||0,Ne=U.week||U.isoWeek||0,ze=U.day||0,nn=U.hour||0,He=U.minute||0,pn=U.second||0,_n=U.millisecond||0;this._isValid=function(Pn){for(var Sn in Pn)if(Cn.call(Vi,Sn)===-1||Pn[Sn]!=null&&isNaN(Pn[Sn]))return!1;for(var Nr=!1,br=0;br<Vi.length;++br)if(Pn[Vi[br]]){if(Nr)return!1;parseFloat(Pn[Vi[br]])!==yt(Pn[Vi[br]])&&(Nr=!0)}return!0}(U),this._milliseconds=+_n+1e3*pn+6e4*He+1e3*nn*60*60,this._days=+ze+7*Ne,this._months=+te+3*mt+12*Q,this._data={},this._locale=Dr(),this._bubble()}function ma(I){return I instanceof Si}function ri(I){return I<0?-1*Math.round(-1*I):Math.round(I)}function ja(I,U){_e(I,0,0,function(){var Q=this.utcOffset(),mt="+";return Q<0&&(Q=-Q,mt="-"),mt+xe(~~(Q/60),2)+U+xe(~~Q%60,2)})}ja("Z",":"),ja("ZZ",""),ye("Z",Be),ye("ZZ",Be),cn(["Z","ZZ"],function(I,U,Q){Q._useUTC=!0,Q._tzm=wi(Be,I)});var Bn=/([\+\-]|\d\d)/gi;function wi(I,U){var Q=(U||"").match(I);if(Q===null)return null;var mt=((Q[Q.length-1]||[])+"").match(Bn)||["-",0,0],te=60*mt[1]+yt(mt[2]);return te===0?0:mt[0]==="+"?te:-te}function Na(I,U){var Q,mt;return U._isUTC?(Q=U.clone(),mt=(Ft(I)||D(I)?I.valueOf():Br(I).valueOf())-Q.valueOf(),Q._d.setTime(Q._d.valueOf()+mt),b.updateOffset(Q,!1),Q):Br(I).local()}function $i(I){return 15*-Math.round(I._d.getTimezoneOffset()/15)}function xr(){return!!this.isValid()&&this._isUTC&&this._offset===0}b.updateOffset=function(){};var oa=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Li=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function si(I,U){var Q,mt,te,Ne=I,ze=null;return ma(I)?Ne={ms:I._milliseconds,d:I._days,M:I._months}:E(I)?(Ne={},U?Ne[U]=I:Ne.milliseconds=I):(ze=oa.exec(I))?(Q=ze[1]==="-"?-1:1,Ne={y:0,d:yt(ze[2])*Q,h:yt(ze[3])*Q,m:yt(ze[4])*Q,s:yt(ze[5])*Q,ms:yt(ri(1e3*ze[6]))*Q}):(ze=Li.exec(I))?(Q=ze[1]==="-"?-1:1,Ne={y:sa(ze[2],Q),M:sa(ze[3],Q),w:sa(ze[4],Q),d:sa(ze[5],Q),h:sa(ze[6],Q),m:sa(ze[7],Q),s:sa(ze[8],Q)}):Ne==null?Ne={}:typeof Ne=="object"&&("from"in Ne||"to"in Ne)&&(te=function(nn,He){var pn;return nn.isValid()&&He.isValid()?(He=Na(He,nn),nn.isBefore(He)?pn=jt(nn,He):((pn=jt(He,nn)).milliseconds=-pn.milliseconds,pn.months=-pn.months),pn):{milliseconds:0,months:0}}(Br(Ne.from),Br(Ne.to)),(Ne={}).ms=te.milliseconds,Ne.M=te.months),mt=new Si(Ne),ma(I)&&P(I,"_locale")&&(mt._locale=I._locale),mt}function sa(I,U){var Q=I&&parseFloat(I.replace(",","."));return(isNaN(Q)?0:Q)*U}function jt(I,U){var Q={};return Q.months=U.month()-I.month()+12*(U.year()-I.year()),I.clone().add(Q.months,"M").isAfter(U)&&--Q.months,Q.milliseconds=+U-+I.clone().add(Q.months,"M"),Q}function us(I,U){return function(Q,mt){var te;return mt===null||isNaN(+mt)||(q(U,"moment()."+U+"(period, number) is deprecated. Please use moment()."+U+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),te=Q,Q=mt,mt=te),No(this,si(Q=typeof Q=="string"?+Q:Q,mt),I),this}}function No(I,U,Q,mt){var te=U._milliseconds,Ne=ri(U._days),ze=ri(U._months);I.isValid()&&(mt=mt==null||mt,ze&&Rt(I,ie(I,"Month")+ze*Q),Ne&&Qe(I,"Date",ie(I,"Date")+Ne*Q),te&&I._d.setTime(I._d.valueOf()+te*Q),mt&&b.updateOffset(I,Ne||ze))}si.fn=Si.prototype,si.invalid=function(){return si(NaN)};var Zt=us(1,"add"),xn=us(-1,"subtract");function un(I,U){var Q=12*(U.year()-I.year())+(U.month()-I.month()),mt=I.clone().add(Q,"months");return-(Q+(U-mt<0?(U-mt)/(mt-I.clone().add(Q-1,"months")):(U-mt)/(I.clone().add(Q+1,"months")-mt)))||0}function gr(I){var U;return I===void 0?this._locale._abbr:((U=Dr(I))!=null&&(this._locale=U),this)}b.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",b.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xr=pt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(I){return I===void 0?this.localeData():this.locale(I)});function Hr(){return this._locale}var Cr=126227808e5;function ci(I,U){return(I%U+U)%U}function li(I,U,Q){return I<100&&0<=I?new Date(I+400,U,Q)-Cr:new Date(I,U,Q).valueOf()}function ii(I,U,Q){return I<100&&0<=I?Date.UTC(I+400,U,Q)-Cr:Date.UTC(I,U,Q)}function Za(I,U){_e(0,[I,I.length],0,U)}function Io(I,U,Q,mt,te){var Ne;return I==null?jn(this,mt,te).year:((Ne=Gn(I,mt,te))<U&&(U=Ne),function(ze,nn,He,pn,_n){var Pn=Mn(ze,nn,He,pn,_n),Sn=Vn(Pn.year,0,Pn.dayOfYear);return this.year(Sn.getUTCFullYear()),this.month(Sn.getUTCMonth()),this.date(Sn.getUTCDate()),this}.call(this,I,U,Q,mt,te))}_e(0,["gg",2],0,function(){return this.weekYear()%100}),_e(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Za("gggg","weekYear"),Za("ggggg","weekYear"),Za("GGGG","isoWeekYear"),Za("GGGGG","isoWeekYear"),Ht("weekYear","gg"),Ht("isoWeekYear","GG"),fe("weekYear",1),fe("isoWeekYear",1),ye("G",Xe),ye("g",Xe),ye("GG",Ce,Qt),ye("gg",Ce,Qt),ye("GGGG",Fe,De),ye("gggg",Fe,De),ye("GGGGG",fn,J),ye("ggggg",fn,J),hn(["gggg","ggggg","GGGG","GGGGG"],function(I,U,Q,mt){U[mt.substr(0,2)]=yt(I)}),hn(["gg","GG"],function(I,U,Q,mt){U[mt]=b.parseTwoDigitYear(I)}),_e("Q",0,"Qo","quarter"),Ht("quarter","Q"),fe("quarter",7),ye("Q",he),cn("Q",function(I,U){U[1]=3*(yt(I)-1)}),_e("D",["DD",2],"Do","date"),Ht("date","D"),fe("date",9),ye("D",Ce),ye("DD",Ce,Qt),ye("Do",function(I,U){return I?U._dayOfMonthOrdinalParse||U._ordinalParse:U._dayOfMonthOrdinalParseLenient}),cn(["D","DD"],2),cn("Do",function(I,U){U[2]=yt(I.match(Ce)[0])});var er=Le("Date",!0);_e("DDD",["DDDD",3],"DDDo","dayOfYear"),Ht("dayOfYear","DDD"),fe("dayOfYear",4),ye("DDD",ue),ye("DDDD",At),cn(["DDD","DDDD"],function(I,U,Q){Q._dayOfYear=yt(I)}),_e("m",["mm",2],0,"minute"),Ht("minute","m"),fe("minute",14),ye("m",Ce),ye("mm",Ce,Qt),cn(["m","mm"],4);var fl=Le("Minutes",!1);_e("s",["ss",2],0,"second"),Ht("second","s"),fe("second",15),ye("s",Ce),ye("ss",Ce,Qt),cn(["s","ss"],5);var zn,dl=Le("Seconds",!1);for(_e("S",0,0,function(){return~~(this.millisecond()/100)}),_e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_e(0,["SSS",3],0,"millisecond"),_e(0,["SSSS",4],0,function(){return 10*this.millisecond()}),_e(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),_e(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),_e(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),_e(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),_e(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ht("millisecond","ms"),fe("millisecond",16),ye("S",ue,he),ye("SS",ue,Qt),ye("SSS",ue,At),zn="SSSS";zn.length<=9;zn+="S")ye(zn,rn);function $a(I,U){U[6]=yt(1e3*("0."+I))}for(zn="S";zn.length<=9;zn+="S")cn(zn,$a);var ho=Le("Milliseconds",!1);_e("z",0,0,"zoneAbbr"),_e("zz",0,0,"zoneName");var Ze=bt.prototype;function Ia(I){return I}Ze.add=Zt,Ze.calendar=function(I,U){var Q=I||Br(),mt=Na(Q,this).startOf("day"),te=b.calendarFormat(this,mt)||"sameElse",Ne=U&&(kt(U[te])?U[te].call(this,Q):U[te]);return this.format(Ne||this.localeData().calendar(te,this,Br(Q)))},Ze.clone=function(){return new bt(this)},Ze.diff=function(I,U,Q){var mt,te,Ne;if(!this.isValid())return NaN;if(!(mt=Na(I,this)).isValid())return NaN;switch(te=6e4*(mt.utcOffset()-this.utcOffset()),U=ge(U)){case"year":Ne=un(this,mt)/12;break;case"month":Ne=un(this,mt);break;case"quarter":Ne=un(this,mt)/3;break;case"second":Ne=(this-mt)/1e3;break;case"minute":Ne=(this-mt)/6e4;break;case"hour":Ne=(this-mt)/36e5;break;case"day":Ne=(this-mt-te)/864e5;break;case"week":Ne=(this-mt-te)/6048e5;break;default:Ne=this-mt}return Q?Ne:Tt(Ne)},Ze.endOf=function(I){var U;if((I=ge(I))===void 0||I==="millisecond"||!this.isValid())return this;var Q=this._isUTC?ii:li;switch(I){case"year":U=Q(this.year()+1,0,1)-1;break;case"quarter":U=Q(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":U=Q(this.year(),this.month()+1,1)-1;break;case"week":U=Q(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":U=Q(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":U=Q(this.year(),this.month(),this.date()+1)-1;break;case"hour":U=this._d.valueOf(),U+=36e5-ci(U+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":U=this._d.valueOf(),U+=6e4-ci(U,6e4)-1;break;case"second":U=this._d.valueOf(),U+=1e3-ci(U,1e3)-1}return this._d.setTime(U),b.updateOffset(this,!0),this},Ze.format=function(I){I||(I=this.isUtc()?b.defaultFormatUtc:b.defaultFormat);var U=en(this,I);return this.localeData().postformat(U)},Ze.from=function(I,U){return this.isValid()&&(Ft(I)&&I.isValid()||Br(I).isValid())?si({to:this,from:I}).locale(this.locale()).humanize(!U):this.localeData().invalidDate()},Ze.fromNow=function(I){return this.from(Br(),I)},Ze.to=function(I,U){return this.isValid()&&(Ft(I)&&I.isValid()||Br(I).isValid())?si({from:this,to:I}).locale(this.locale()).humanize(!U):this.localeData().invalidDate()},Ze.toNow=function(I){return this.to(Br(),I)},Ze.get=function(I){return kt(this[I=ge(I)])?this[I]():this},Ze.invalidAt=function(){return et(this).overflow},Ze.isAfter=function(I,U){var Q=Ft(I)?I:Br(I);return!(!this.isValid()||!Q.isValid())&&((U=ge(U)||"millisecond")==="millisecond"?this.valueOf()>Q.valueOf():Q.valueOf()<this.clone().startOf(U).valueOf())},Ze.isBefore=function(I,U){var Q=Ft(I)?I:Br(I);return!(!this.isValid()||!Q.isValid())&&((U=ge(U)||"millisecond")==="millisecond"?this.valueOf()<Q.valueOf():this.clone().endOf(U).valueOf()<Q.valueOf())},Ze.isBetween=function(I,U,Q,mt){var te=Ft(I)?I:Br(I),Ne=Ft(U)?U:Br(U);return!!(this.isValid()&&te.isValid()&&Ne.isValid())&&((mt=mt||"()")[0]==="("?this.isAfter(te,Q):!this.isBefore(te,Q))&&(mt[1]===")"?this.isBefore(Ne,Q):!this.isAfter(Ne,Q))},Ze.isSame=function(I,U){var Q,mt=Ft(I)?I:Br(I);return!(!this.isValid()||!mt.isValid())&&((U=ge(U)||"millisecond")==="millisecond"?this.valueOf()===mt.valueOf():(Q=mt.valueOf(),this.clone().startOf(U).valueOf()<=Q&&Q<=this.clone().endOf(U).valueOf()))},Ze.isSameOrAfter=function(I,U){return this.isSame(I,U)||this.isAfter(I,U)},Ze.isSameOrBefore=function(I,U){return this.isSame(I,U)||this.isBefore(I,U)},Ze.isValid=function(){return ht(this)},Ze.lang=Xr,Ze.locale=gr,Ze.localeData=Hr,Ze.max=yi,Ze.min=ni,Ze.parsingFlags=function(){return $({},et(this))},Ze.set=function(I,U){if(typeof I=="object")for(var Q=function(te){var Ne=[];for(var ze in te)Ne.push({unit:ze,priority:Ee[ze]});return Ne.sort(function(nn,He){return nn.priority-He.priority}),Ne}(I=We(I)),mt=0;mt<Q.length;mt++)this[Q[mt].unit](I[Q[mt].unit]);else if(kt(this[I=ge(I)]))return this[I](U);return this},Ze.startOf=function(I){var U;if((I=ge(I))===void 0||I==="millisecond"||!this.isValid())return this;var Q=this._isUTC?ii:li;switch(I){case"year":U=Q(this.year(),0,1);break;case"quarter":U=Q(this.year(),this.month()-this.month()%3,1);break;case"month":U=Q(this.year(),this.month(),1);break;case"week":U=Q(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":U=Q(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":U=Q(this.year(),this.month(),this.date());break;case"hour":U=this._d.valueOf(),U-=ci(U+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":U=this._d.valueOf(),U-=ci(U,6e4);break;case"second":U=this._d.valueOf(),U-=ci(U,1e3)}return this._d.setTime(U),b.updateOffset(this,!0),this},Ze.subtract=xn,Ze.toArray=function(){var I=this;return[I.year(),I.month(),I.date(),I.hour(),I.minute(),I.second(),I.millisecond()]},Ze.toObject=function(){var I=this;return{years:I.year(),months:I.month(),date:I.date(),hours:I.hours(),minutes:I.minutes(),seconds:I.seconds(),milliseconds:I.milliseconds()}},Ze.toDate=function(){return new Date(this.valueOf())},Ze.toISOString=function(I){if(!this.isValid())return null;var U=I!==!0,Q=U?this.clone().utc():this;return Q.year()<0||9999<Q.year()?en(Q,U?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):kt(Date.prototype.toISOString)?U?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",en(Q,"Z")):en(Q,U?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ze.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I="moment",U="";this.isLocal()||(I=this.utcOffset()===0?"moment.utc":"moment.parseZone",U="Z");var Q="["+I+'("]',mt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",te=U+'[")]';return this.format(Q+mt+"-MM-DD[T]HH:mm:ss.SSS"+te)},Ze.toJSON=function(){return this.isValid()?this.toISOString():null},Ze.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ze.unix=function(){return Math.floor(this.valueOf()/1e3)},Ze.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ze.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ze.year=In,Ze.isLeapYear=function(){return Lr(this.year())},Ze.weekYear=function(I){return Io.call(this,I,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ze.isoWeekYear=function(I){return Io.call(this,I,this.isoWeek(),this.isoWeekday(),1,4)},Ze.quarter=Ze.quarters=function(I){return I==null?Math.ceil((this.month()+1)/3):this.month(3*(I-1)+this.month()%3)},Ze.month=Un,Ze.daysInMonth=function(){return Vt(this.year(),this.month())},Ze.week=Ze.weeks=function(I){var U=this.localeData().week(this);return I==null?U:this.add(7*(I-U),"d")},Ze.isoWeek=Ze.isoWeeks=function(I){var U=jn(this,1,4).week;return I==null?U:this.add(7*(I-U),"d")},Ze.weeksInYear=function(){var I=this.localeData()._week;return Gn(this.year(),I.dow,I.doy)},Ze.isoWeeksInYear=function(){return Gn(this.year(),1,4)},Ze.date=er,Ze.day=Ze.days=function(I){if(!this.isValid())return I!=null?this:NaN;var U,Q,mt=this._isUTC?this._d.getUTCDay():this._d.getDay();return I!=null?(U=I,Q=this.localeData(),I=typeof U!="string"?U:isNaN(U)?typeof(U=Q.weekdaysParse(U))=="number"?U:null:parseInt(U,10),this.add(I-mt,"d")):mt},Ze.weekday=function(I){if(!this.isValid())return I!=null?this:NaN;var U=(this.day()+7-this.localeData()._week.dow)%7;return I==null?U:this.add(I-U,"d")},Ze.isoWeekday=function(I){if(!this.isValid())return I!=null?this:NaN;if(I==null)return this.day()||7;var U,Q,mt=(U=I,Q=this.localeData(),typeof U=="string"?Q.weekdaysParse(U)%7||7:isNaN(U)?null:U);return this.day(this.day()%7?mt:mt-7)},Ze.dayOfYear=function(I){var U=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return I==null?U:this.add(I-U,"d")},Ze.hour=Ze.hours=jr,Ze.minute=Ze.minutes=fl,Ze.second=Ze.seconds=dl,Ze.millisecond=Ze.milliseconds=ho,Ze.utcOffset=function(I,U,Q){var mt,te=this._offset||0;if(!this.isValid())return I!=null?this:NaN;if(I==null)return this._isUTC?te:$i(this);if(typeof I=="string"){if((I=wi(Be,I))===null)return this}else Math.abs(I)<16&&!Q&&(I*=60);return!this._isUTC&&U&&(mt=$i(this)),this._offset=I,this._isUTC=!0,mt!=null&&this.add(mt,"m"),te!==I&&(!U||this._changeInProgress?No(this,si(I-te,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,b.updateOffset(this,!0),this._changeInProgress=null)),this},Ze.utc=function(I){return this.utcOffset(0,I)},Ze.local=function(I){return this._isUTC&&(this.utcOffset(0,I),this._isUTC=!1,I&&this.subtract($i(this),"m")),this},Ze.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var I=wi(ae,this._i);I!=null?this.utcOffset(I):this.utcOffset(0,!0)}return this},Ze.hasAlignedHourOffset=function(I){return!!this.isValid()&&(I=I?Br(I).utcOffset():0,(this.utcOffset()-I)%60==0)},Ze.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ze.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ze.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ze.isUtc=xr,Ze.isUTC=xr,Ze.zoneAbbr=function(){return this._isUTC?"UTC":""},Ze.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ze.dates=pt("dates accessor is deprecated. Use date instead.",er),Ze.months=pt("months accessor is deprecated. Use month instead",Un),Ze.years=pt("years accessor is deprecated. Use year instead",In),Ze.zone=pt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(I,U){return I!=null?(typeof I!="string"&&(I=-I),this.utcOffset(I,U),this):-this.utcOffset()}),Ze.isDSTShifted=pt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!L(this._isDSTShifted))return this._isDSTShifted;var I={};if(rt(I,this),(I=Co(I))._a){var U=I._isUTC?K(I._a):Br(I._a);this._isDSTShifted=this.isValid()&&0<Nt(I._a,U.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var kr=St.prototype;function fo(I,U,Q,mt){var te=Dr(),Ne=K().set(mt,U);return te[Q](Ne,I)}function Ls(I,U,Q){if(E(I)&&(U=I,I=void 0),I=I||"",U!=null)return fo(I,U,Q,"month");var mt,te=[];for(mt=0;mt<12;mt++)te[mt]=fo(I,mt,Q,"month");return te}function hs(I,U,Q,mt){typeof I=="boolean"?E(U)&&(Q=U,U=void 0):(U=I,I=!1,E(Q=U)&&(Q=U,U=void 0)),U=U||"";var te,Ne=Dr(),ze=I?Ne._week.dow:0;if(Q!=null)return fo(U,(Q+ze)%7,mt,"day");var nn=[];for(te=0;te<7;te++)nn[te]=fo(U,(te+ze)%7,mt,"day");return nn}kr.calendar=function(I,U,Q){var mt=this._calendar[I]||this._calendar.sameElse;return kt(mt)?mt.call(U,Q):mt},kr.longDateFormat=function(I){var U=this._longDateFormat[I],Q=this._longDateFormat[I.toUpperCase()];return U||!Q?U:(this._longDateFormat[I]=Q.replace(/MMMM|MM|DD|dddd/g,function(mt){return mt.slice(1)}),this._longDateFormat[I])},kr.invalidDate=function(){return this._invalidDate},kr.ordinal=function(I){return this._ordinal.replace("%d",I)},kr.preparse=Ia,kr.postformat=Ia,kr.relativeTime=function(I,U,Q,mt){var te=this._relativeTime[Q];return kt(te)?te(I,U,Q,mt):te.replace(/%d/i,I)},kr.pastFuture=function(I,U){var Q=this._relativeTime[0<I?"future":"past"];return kt(Q)?Q(U):Q.replace(/%s/i,U)},kr.set=function(I){var U,Q;for(Q in I)kt(U=I[Q])?this[Q]=U:this["_"+Q]=U;this._config=I,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},kr.months=function(I,U){return I?_(this._months)?this._months[I.month()]:this._months[(this._months.isFormat||Nn).test(U)?"format":"standalone"][I.month()]:_(this._months)?this._months:this._months.standalone},kr.monthsShort=function(I,U){return I?_(this._monthsShort)?this._monthsShort[I.month()]:this._monthsShort[Nn.test(U)?"format":"standalone"][I.month()]:_(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},kr.monthsParse=function(I,U,Q){var mt,te,Ne;if(this._monthsParseExact)return function(ze,nn,He){var pn,_n,Pn,Sn=ze.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],pn=0;pn<12;++pn)Pn=K([2e3,pn]),this._shortMonthsParse[pn]=this.monthsShort(Pn,"").toLocaleLowerCase(),this._longMonthsParse[pn]=this.months(Pn,"").toLocaleLowerCase();return He?nn==="MMM"?(_n=Cn.call(this._shortMonthsParse,Sn))!==-1?_n:null:(_n=Cn.call(this._longMonthsParse,Sn))!==-1?_n:null:nn==="MMM"?(_n=Cn.call(this._shortMonthsParse,Sn))!==-1||(_n=Cn.call(this._longMonthsParse,Sn))!==-1?_n:null:(_n=Cn.call(this._longMonthsParse,Sn))!==-1||(_n=Cn.call(this._shortMonthsParse,Sn))!==-1?_n:null}.call(this,I,U,Q);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),mt=0;mt<12;mt++)if(te=K([2e3,mt]),Q&&!this._longMonthsParse[mt]&&(this._longMonthsParse[mt]=new RegExp("^"+this.months(te,"").replace(".","")+"$","i"),this._shortMonthsParse[mt]=new RegExp("^"+this.monthsShort(te,"").replace(".","")+"$","i")),Q||this._monthsParse[mt]||(Ne="^"+this.months(te,"")+"|^"+this.monthsShort(te,""),this._monthsParse[mt]=new RegExp(Ne.replace(".",""),"i")),Q&&U==="MMMM"&&this._longMonthsParse[mt].test(I)||Q&&U==="MMM"&&this._shortMonthsParse[mt].test(I)||!Q&&this._monthsParse[mt].test(I))return mt},kr.monthsRegex=function(I){return this._monthsParseExact?(P(this,"_monthsRegex")||Hn.call(this),I?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=Xn),this._monthsStrictRegex&&I?this._monthsStrictRegex:this._monthsRegex)},kr.monthsShortRegex=function(I){return this._monthsParseExact?(P(this,"_monthsRegex")||Hn.call(this),I?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=Yn),this._monthsShortStrictRegex&&I?this._monthsShortStrictRegex:this._monthsShortRegex)},kr.week=function(I){return jn(I,this._week.dow,this._week.doy).week},kr.firstDayOfYear=function(){return this._week.doy},kr.firstDayOfWeek=function(){return this._week.dow},kr.weekdays=function(I,U){var Q=_(this._weekdays)?this._weekdays:this._weekdays[I&&I!==!0&&this._weekdays.isFormat.test(U)?"format":"standalone"];return I===!0?Zn(Q,this._week.dow):I?Q[I.day()]:Q},kr.weekdaysMin=function(I){return I===!0?Zn(this._weekdaysMin,this._week.dow):I?this._weekdaysMin[I.day()]:this._weekdaysMin},kr.weekdaysShort=function(I){return I===!0?Zn(this._weekdaysShort,this._week.dow):I?this._weekdaysShort[I.day()]:this._weekdaysShort},kr.weekdaysParse=function(I,U,Q){var mt,te,Ne;if(this._weekdaysParseExact)return function(ze,nn,He){var pn,_n,Pn,Sn=ze.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],pn=0;pn<7;++pn)Pn=K([2e3,1]).day(pn),this._minWeekdaysParse[pn]=this.weekdaysMin(Pn,"").toLocaleLowerCase(),this._shortWeekdaysParse[pn]=this.weekdaysShort(Pn,"").toLocaleLowerCase(),this._weekdaysParse[pn]=this.weekdays(Pn,"").toLocaleLowerCase();return He?nn==="dddd"?(_n=Cn.call(this._weekdaysParse,Sn))!==-1?_n:null:nn==="ddd"?(_n=Cn.call(this._shortWeekdaysParse,Sn))!==-1?_n:null:(_n=Cn.call(this._minWeekdaysParse,Sn))!==-1?_n:null:nn==="dddd"?(_n=Cn.call(this._weekdaysParse,Sn))!==-1||(_n=Cn.call(this._shortWeekdaysParse,Sn))!==-1||(_n=Cn.call(this._minWeekdaysParse,Sn))!==-1?_n:null:nn==="ddd"?(_n=Cn.call(this._shortWeekdaysParse,Sn))!==-1||(_n=Cn.call(this._weekdaysParse,Sn))!==-1||(_n=Cn.call(this._minWeekdaysParse,Sn))!==-1?_n:null:(_n=Cn.call(this._minWeekdaysParse,Sn))!==-1||(_n=Cn.call(this._weekdaysParse,Sn))!==-1||(_n=Cn.call(this._shortWeekdaysParse,Sn))!==-1?_n:null}.call(this,I,U,Q);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),mt=0;mt<7;mt++)if(te=K([2e3,1]).day(mt),Q&&!this._fullWeekdaysParse[mt]&&(this._fullWeekdaysParse[mt]=new RegExp("^"+this.weekdays(te,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[mt]=new RegExp("^"+this.weekdaysShort(te,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[mt]=new RegExp("^"+this.weekdaysMin(te,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[mt]||(Ne="^"+this.weekdays(te,"")+"|^"+this.weekdaysShort(te,"")+"|^"+this.weekdaysMin(te,""),this._weekdaysParse[mt]=new RegExp(Ne.replace(".",""),"i")),Q&&U==="dddd"&&this._fullWeekdaysParse[mt].test(I)||Q&&U==="ddd"&&this._shortWeekdaysParse[mt].test(I)||Q&&U==="dd"&&this._minWeekdaysParse[mt].test(I)||!Q&&this._weekdaysParse[mt].test(I))return mt},kr.weekdaysRegex=function(I){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Yr.call(this),I?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=On),this._weekdaysStrictRegex&&I?this._weekdaysStrictRegex:this._weekdaysRegex)},kr.weekdaysShortRegex=function(I){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Yr.call(this),I?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qi),this._weekdaysShortStrictRegex&&I?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},kr.weekdaysMinRegex=function(I){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Yr.call(this),I?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qn),this._weekdaysMinStrictRegex&&I?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},kr.isPM=function(I){return(I+"").toLowerCase().charAt(0)==="p"},kr.meridiem=function(I,U,Q){return 11<I?Q?"pm":"PM":Q?"am":"AM"},ki("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(I){var U=I%10;return I+(yt(I%100/10)===1?"th":U===1?"st":U===2?"nd":U===3?"rd":"th")}}),b.lang=pt("moment.lang is deprecated. Use moment.locale instead.",ki),b.langData=pt("moment.langData is deprecated. Use moment.localeData instead.",Dr);var La=Math.abs;function po(I,U,Q,mt){var te=si(U,Q);return I._milliseconds+=mt*te._milliseconds,I._days+=mt*te._days,I._months+=mt*te._months,I._bubble()}function Sc(I){return I<0?Math.floor(I):Math.ceil(I)}function no(I){return 4800*I/146097}function fs(I){return 146097*I/4800}function Xa(I){return function(){return this.as(I)}}var pl=Xa("ms"),ro=Xa("s"),pu=Xa("m"),gl=Xa("h"),Pi=Xa("d"),gu=Xa("w"),Zi=Xa("M"),Xi=Xa("Q"),Ac=Xa("y");function _a(I){return function(){return this.isValid()?this._data[I]:NaN}}var Hi=_a("milliseconds"),Ms=_a("seconds"),go=_a("minutes"),Os=_a("hours"),yo=_a("days"),Ln=_a("months"),ds=_a("years"),ea=Math.round,Ui={ss:44,s:45,m:45,h:22,d:26,M:11},ba=Math.abs;function mi(I){return(0<I)-(I<0)||+I}function Ka(){if(!this.isValid())return this.localeData().invalidDate();var I,U,Q=ba(this._milliseconds)/1e3,mt=ba(this._days),te=ba(this._months);U=Tt((I=Tt(Q/60))/60),Q%=60,I%=60;var Ne=Tt(te/12),ze=te%=12,nn=mt,He=U,pn=I,_n=Q?Q.toFixed(3).replace(/\.?0+$/,""):"",Pn=this.asSeconds();if(!Pn)return"P0D";var Sn=Pn<0?"-":"",Nr=mi(this._months)!==mi(Pn)?"-":"",br=mi(this._days)!==mi(Pn)?"-":"",Ai=mi(this._milliseconds)!==mi(Pn)?"-":"";return Sn+"P"+(Ne?Nr+Ne+"Y":"")+(ze?Nr+ze+"M":"")+(nn?br+nn+"D":"")+(He||pn||_n?"T":"")+(He?Ai+He+"H":"")+(pn?Ai+pn+"M":"")+(_n?Ai+_n+"S":"")}var dr=Si.prototype;return dr.isValid=function(){return this._isValid},dr.abs=function(){var I=this._data;return this._milliseconds=La(this._milliseconds),this._days=La(this._days),this._months=La(this._months),I.milliseconds=La(I.milliseconds),I.seconds=La(I.seconds),I.minutes=La(I.minutes),I.hours=La(I.hours),I.months=La(I.months),I.years=La(I.years),this},dr.add=function(I,U){return po(this,I,U,1)},dr.subtract=function(I,U){return po(this,I,U,-1)},dr.as=function(I){if(!this.isValid())return NaN;var U,Q,mt=this._milliseconds;if((I=ge(I))==="month"||I==="quarter"||I==="year")switch(U=this._days+mt/864e5,Q=this._months+no(U),I){case"month":return Q;case"quarter":return Q/3;case"year":return Q/12}else switch(U=this._days+Math.round(fs(this._months)),I){case"week":return U/7+mt/6048e5;case"day":return U+mt/864e5;case"hour":return 24*U+mt/36e5;case"minute":return 1440*U+mt/6e4;case"second":return 86400*U+mt/1e3;case"millisecond":return Math.floor(864e5*U)+mt;default:throw new Error("Unknown unit "+I)}},dr.asMilliseconds=pl,dr.asSeconds=ro,dr.asMinutes=pu,dr.asHours=gl,dr.asDays=Pi,dr.asWeeks=gu,dr.asMonths=Zi,dr.asQuarters=Xi,dr.asYears=Ac,dr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*yt(this._months/12):NaN},dr._bubble=function(){var I,U,Q,mt,te,Ne=this._milliseconds,ze=this._days,nn=this._months,He=this._data;return 0<=Ne&&0<=ze&&0<=nn||Ne<=0&&ze<=0&&nn<=0||(Ne+=864e5*Sc(fs(nn)+ze),nn=ze=0),He.milliseconds=Ne%1e3,I=Tt(Ne/1e3),He.seconds=I%60,U=Tt(I/60),He.minutes=U%60,Q=Tt(U/60),He.hours=Q%24,nn+=te=Tt(no(ze+=Tt(Q/24))),ze-=Sc(fs(te)),mt=Tt(nn/12),nn%=12,He.days=ze,He.months=nn,He.years=mt,this},dr.clone=function(){return si(this)},dr.get=function(I){return I=ge(I),this.isValid()?this[I+"s"]():NaN},dr.milliseconds=Hi,dr.seconds=Ms,dr.minutes=go,dr.hours=Os,dr.days=yo,dr.weeks=function(){return Tt(this.days()/7)},dr.months=Ln,dr.years=ds,dr.humanize=function(I){if(!this.isValid())return this.localeData().invalidDate();var U,Q,mt,te,Ne,ze,nn,He,pn,_n,Pn=this.localeData(),Sn=(U=!I,Q=Pn,mt=si(this).abs(),te=ea(mt.as("s")),Ne=ea(mt.as("m")),ze=ea(mt.as("h")),nn=ea(mt.as("d")),He=ea(mt.as("M")),pn=ea(mt.as("y")),(_n=te<=Ui.ss&&["s",te]||te<Ui.s&&["ss",te]||Ne<=1&&["m"]||Ne<Ui.m&&["mm",Ne]||ze<=1&&["h"]||ze<Ui.h&&["hh",ze]||nn<=1&&["d"]||nn<Ui.d&&["dd",nn]||He<=1&&["M"]||He<Ui.M&&["MM",He]||pn<=1&&["y"]||["yy",pn])[2]=U,_n[3]=0<+this,_n[4]=Q,function(Nr,br,Ai,zi,_i){return _i.relativeTime(br||1,!!Ai,Nr,zi)}.apply(null,_n));return I&&(Sn=Pn.pastFuture(+this,Sn)),Pn.postformat(Sn)},dr.toISOString=Ka,dr.toString=Ka,dr.toJSON=Ka,dr.locale=gr,dr.localeData=Hr,dr.toIsoString=pt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ka),dr.lang=Xr,_e("X",0,0,"unix"),_e("x",0,0,"valueOf"),ye("x",Xe),ye("X",/[+-]?\d+(\.\d{1,3})?/),cn("X",function(I,U,Q){Q._d=new Date(1e3*parseFloat(I,10))}),cn("x",function(I,U,Q){Q._d=new Date(yt(I))}),b.version="2.24.0",m=Br,b.fn=Ze,b.min=function(){return Ca("isBefore",[].slice.call(arguments,0))},b.max=function(){return Ca("isAfter",[].slice.call(arguments,0))},b.now=function(){return Date.now?Date.now():+new Date},b.utc=K,b.unix=function(I){return Br(1e3*I)},b.months=function(I,U){return Ls(I,U,"months")},b.isDate=D,b.locale=ki,b.invalid=X,b.duration=si,b.isMoment=Ft,b.weekdays=function(I,U,Q){return hs(I,U,Q,"weekdays")},b.parseZone=function(){return Br.apply(null,arguments).parseZone()},b.localeData=Dr,b.isDuration=ma,b.monthsShort=function(I,U){return Ls(I,U,"monthsShort")},b.weekdaysMin=function(I,U,Q){return hs(I,U,Q,"weekdaysMin")},b.defineLocale=za,b.updateLocale=function(I,U){if(U!=null){var Q,mt,te=ti;(mt=ei(I))!=null&&(te=mt._config),(Q=new St(U=W(te,U))).parentLocale=or[I],or[I]=Q,ki(I)}else or[I]!=null&&(or[I].parentLocale!=null?or[I]=or[I].parentLocale:or[I]!=null&&delete or[I]);return or[I]},b.locales=function(){return tt(or)},b.weekdaysShort=function(I,U,Q){return hs(I,U,Q,"weekdaysShort")},b.normalizeUnits=ge,b.relativeTimeRounding=function(I){return I===void 0?ea:typeof I=="function"&&(ea=I,!0)},b.relativeTimeThreshold=function(I,U){return Ui[I]!==void 0&&(U===void 0?Ui[I]:(Ui[I]=U,I==="s"&&(Ui.ss=U-1),!0))},b.calendarFormat=function(I,U){var Q=I.diff(U,"days",!0);return Q<-6?"sameElse":Q<-1?"lastWeek":Q<0?"lastDay":Q<1?"sameDay":Q<2?"nextDay":Q<7?"nextWeek":"sameElse"},b.prototype=Ze,b.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},b}()},6470:f=>{function k(d){if(typeof d!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(d))}function h(d,b){for(var _,A="",L=0,E=-1,D=0,R=0;R<=d.length;++R){if(R<d.length)_=d.charCodeAt(R);else{if(_===47)break;_=47}if(_===47){if(!(E===R-1||D===1))if(E!==R-1&&D===2){if(A.length<2||L!==2||A.charCodeAt(A.length-1)!==46||A.charCodeAt(A.length-2)!==46){if(A.length>2){var P=A.lastIndexOf("/");if(P!==A.length-1){P===-1?(A="",L=0):L=(A=A.slice(0,P)).length-1-A.lastIndexOf("/"),E=R,D=0;continue}}else if(A.length===2||A.length===1){A="",L=0,E=R,D=0;continue}}b&&(A.length>0?A+="/..":A="..",L=2)}else A.length>0?A+="/"+d.slice(E+1,R):A=d.slice(E+1,R),L=R-E-1;E=R,D=0}else _===46&&D!==-1?++D:D=-1}return A}var m={resolve:function(){for(var d,b="",_=!1,A=arguments.length-1;A>=-1&&!_;A--){var L;A>=0?L=arguments[A]:(d===void 0&&(d=process.cwd()),L=d),k(L),L.length!==0&&(b=L+"/"+b,_=L.charCodeAt(0)===47)}return b=h(b,!_),_?b.length>0?"/"+b:"/":b.length>0?b:"."},normalize:function(d){if(k(d),d.length===0)return".";var b=d.charCodeAt(0)===47,_=d.charCodeAt(d.length-1)===47;return(d=h(d,!b)).length!==0||b||(d="."),d.length>0&&_&&(d+="/"),b?"/"+d:d},isAbsolute:function(d){return k(d),d.length>0&&d.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var d,b=0;b<arguments.length;++b){var _=arguments[b];k(_),_.length>0&&(d===void 0?d=_:d+="/"+_)}return d===void 0?".":m.normalize(d)},relative:function(d,b){if(k(d),k(b),d===b||(d=m.resolve(d))===(b=m.resolve(b)))return"";for(var _=1;_<d.length&&d.charCodeAt(_)===47;++_);for(var A=d.length,L=A-_,E=1;E<b.length&&b.charCodeAt(E)===47;++E);for(var D=b.length-E,R=L<D?L:D,P=-1,$=0;$<=R;++$){if($===R){if(D>R){if(b.charCodeAt(E+$)===47)return b.slice(E+$+1);if($===0)return b.slice(E+$)}else L>R&&(d.charCodeAt(_+$)===47?P=$:$===0&&(P=0));break}var K=d.charCodeAt(_+$);if(K!==b.charCodeAt(E+$))break;K===47&&(P=$)}var et="";for($=_+P+1;$<=A;++$)$!==A&&d.charCodeAt($)!==47||(et.length===0?et+="..":et+="/..");return et.length>0?et+b.slice(E+P):(E+=P,b.charCodeAt(E)===47&&++E,b.slice(E))},_makeLong:function(d){return d},dirname:function(d){if(k(d),d.length===0)return".";for(var b=d.charCodeAt(0),_=b===47,A=-1,L=!0,E=d.length-1;E>=1;--E)if((b=d.charCodeAt(E))===47){if(!L){A=E;break}}else L=!1;return A===-1?_?"/":".":_&&A===1?"//":d.slice(0,A)},basename:function(d,b){if(b!==void 0&&typeof b!="string")throw new TypeError('"ext" argument must be a string');k(d);var _,A=0,L=-1,E=!0;if(b!==void 0&&b.length>0&&b.length<=d.length){if(b.length===d.length&&b===d)return"";var D=b.length-1,R=-1;for(_=d.length-1;_>=0;--_){var P=d.charCodeAt(_);if(P===47){if(!E){A=_+1;break}}else R===-1&&(E=!1,R=_+1),D>=0&&(P===b.charCodeAt(D)?--D==-1&&(L=_):(D=-1,L=R))}return A===L?L=R:L===-1&&(L=d.length),d.slice(A,L)}for(_=d.length-1;_>=0;--_)if(d.charCodeAt(_)===47){if(!E){A=_+1;break}}else L===-1&&(E=!1,L=_+1);return L===-1?"":d.slice(A,L)},extname:function(d){k(d);for(var b=-1,_=0,A=-1,L=!0,E=0,D=d.length-1;D>=0;--D){var R=d.charCodeAt(D);if(R!==47)A===-1&&(L=!1,A=D+1),R===46?b===-1?b=D:E!==1&&(E=1):b!==-1&&(E=-1);else if(!L){_=D+1;break}}return b===-1||A===-1||E===0||E===1&&b===A-1&&b===_+1?"":d.slice(b,A)},format:function(d){if(d===null||typeof d!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof d);return function(b,_){var A=_.dir||_.root,L=_.base||(_.name||"")+(_.ext||"");return A?A===_.root?A+L:A+"/"+L:L}(0,d)},parse:function(d){k(d);var b={root:"",dir:"",base:"",ext:"",name:""};if(d.length===0)return b;var _,A=d.charCodeAt(0),L=A===47;L?(b.root="/",_=1):_=0;for(var E=-1,D=0,R=-1,P=!0,$=d.length-1,K=0;$>=_;--$)if((A=d.charCodeAt($))!==47)R===-1&&(P=!1,R=$+1),A===46?E===-1?E=$:K!==1&&(K=1):E!==-1&&(K=-1);else if(!P){D=$+1;break}return E===-1||R===-1||K===0||K===1&&E===R-1&&E===D+1?R!==-1&&(b.base=b.name=D===0&&L?d.slice(1,R):d.slice(D,R)):(D===0&&L?(b.name=d.slice(1,E),b.base=d.slice(1,R)):(b.name=d.slice(D,E),b.base=d.slice(D,R)),b.ext=d.slice(E,R)),D>0?b.dir=d.slice(0,D-1):L&&(b.dir="/"),b},sep:"/",delimiter:":",win32:null,posix:null};m.posix=m,f.exports=m},555:()=>{},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{},7543:(f,k,h)=>{function m(i,a){return i==null||a==null?NaN:i<a?-1:i>a?1:i>=a?0:NaN}function d(i){let a=i,o=i,u=i;function p(g,v,x=0,T=g.length){if(x<T){if(o(v,v)!==0)return T;do{const C=x+T>>>1;u(g[C],v)<0?x=C+1:T=C}while(x<T)}return x}return i.length!==2&&(a=(g,v)=>i(g)-v,o=m,u=(g,v)=>m(i(g),v)),{left:p,center:function(g,v,x=0,T=g.length){const C=p(g,v,x,T-1);return C>x&&a(g[C-1],v)>-a(g[C],v)?C-1:C},right:function(g,v,x=0,T=g.length){if(x<T){if(o(v,v)!==0)return T;do{const C=x+T>>>1;u(g[C],v)<=0?x=C+1:T=C}while(x<T)}return x}}}function b(i){return i===null?NaN:+i}h.r(k),h.d(k,{Adder:()=>bt,Delaunay:()=>Ku,FormatSpecifier:()=>uc,InternMap:()=>yt,InternSet:()=>Nt,Node:()=>il,Voronoi:()=>nc,ZoomTransform:()=>ls,active:()=>c1,arc:()=>_v,area:()=>Zy,areaRadial:()=>Qy,ascending:()=>m,autoType:()=>Nf,axisBottom:()=>Dr,axisLeft:()=>ga,axisRight:()=>za,axisTop:()=>ki,bin:()=>fn,bisect:()=>D,bisectCenter:()=>E,bisectLeft:()=>L,bisectRight:()=>A,bisector:()=>d,blob:()=>rh,brush:()=>y1,brushSelection:()=>p1,brushX:()=>mf,brushY:()=>g1,buffer:()=>K1,chord:()=>Bu,chordDirected:()=>m1,chordTranspose:()=>$s,cluster:()=>I_,color:()=>Sn,contourDensity:()=>es,contours:()=>Hu,count:()=>R,create:()=>ov,creator:()=>po,cross:()=>et,csv:()=>e0,csvFormat:()=>xf,csvFormatBody:()=>kf,csvFormatRow:()=>wf,csvFormatRows:()=>Jc,csvFormatValue:()=>wo,csvParse:()=>U1,csvParseRows:()=>vf,cubehelix:()=>ka,cumsum:()=>ht,curveBasis:()=>Fv,curveBasisClosed:()=>Pv,curveBasisOpen:()=>Uv,curveBumpX:()=>zv,curveBumpY:()=>Yv,curveBundle:()=>jv,curveCardinal:()=>$v,curveCardinalClosed:()=>Hv,curveCardinalOpen:()=>qv,curveCatmullRom:()=>Wv,curveCatmullRomClosed:()=>Gv,curveCatmullRomOpen:()=>Vv,curveLinear:()=>K0,curveLinearClosed:()=>Zv,curveMonotoneX:()=>Xv,curveMonotoneY:()=>Kv,curveNatural:()=>Jv,curveStep:()=>Qv,curveStepAfter:()=>e5,curveStepBefore:()=>t5,descending:()=>X,deviation:()=>rt,difference:()=>Wr,disjoint:()=>Pr,dispatch:()=>sr,drag:()=>Ju,dragDisable:()=>Ln,dragEnable:()=>ds,dsv:()=>t0,dsvFormat:()=>Es,easeBack:()=>Wl,easeBackIn:()=>Qc,easeBackInOut:()=>Wl,easeBackOut:()=>Z1,easeBounce:()=>Ba,easeBounceIn:()=>V1,easeBounceInOut:()=>Rf,easeBounceOut:()=>Ba,easeCircle:()=>nh,easeCircleIn:()=>eh,easeCircleInOut:()=>nh,easeCircleOut:()=>G1,easeCubic:()=>Us,easeCubicIn:()=>Su,easeCubicInOut:()=>Us,easeCubicOut:()=>Sl,easeElastic:()=>X1,easeElasticIn:()=>Gl,easeElasticInOut:()=>Vl,easeElasticOut:()=>X1,easeExp:()=>ql,easeExpIn:()=>ac,easeExpInOut:()=>ql,easeExpOut:()=>oc,easeLinear:()=>ic,easePoly:()=>$1,easePolyIn:()=>Of,easePolyInOut:()=>$1,easePolyOut:()=>Df,easeQuad:()=>j1,easeQuadIn:()=>Lf,easeQuadInOut:()=>j1,easeQuadOut:()=>Mf,easeSin:()=>de,easeSinIn:()=>W1,easeSinInOut:()=>de,easeSinOut:()=>Bf,every:()=>Kn,extent:()=>at,fcumsum:()=>Tt,filter:()=>jn,flatGroup:()=>Lt,flatRollup:()=>Ht,forceCenter:()=>Pf,forceCollide:()=>cc,forceLink:()=>o0,forceManyBody:()=>u0,forceRadial:()=>zf,forceSimulation:()=>l0,forceX:()=>Yf,forceY:()=>jf,format:()=>el,formatDefaultLocale:()=>fc,formatLocale:()=>hh,formatPrefix:()=>tu,formatSpecifier:()=>na,fsum:()=>Ft,geoAlbers:()=>wp,geoAlbersUsa:()=>d_,geoArea:()=>En,geoAzimuthalEqualArea:()=>p_,geoAzimuthalEqualAreaRaw:()=>yd,geoAzimuthalEquidistant:()=>g_,geoAzimuthalEquidistantRaw:()=>md,geoBounds:()=>Dm,geoCentroid:()=>zm,geoCircle:()=>Ym,geoClipAntimeridian:()=>Zf,geoClipCircle:()=>W2,geoClipExtent:()=>Hm,geoClipRectangle:()=>b0,geoConicConformal:()=>m_,geoConicConformalRaw:()=>Sp,geoConicEqualArea:()=>N0,geoConicEqualAreaRaw:()=>kp,geoConicEquidistant:()=>b_,geoConicEquidistantRaw:()=>Ap,geoContains:()=>Xm,geoDistance:()=>v0,geoEqualEarth:()=>v_,geoEqualEarthRaw:()=>_d,geoEquirectangular:()=>__,geoEquirectangularRaw:()=>Eh,geoGnomonic:()=>x_,geoGnomonicRaw:()=>bd,geoGraticule:()=>np,geoGraticule10:()=>Km,geoIdentity:()=>k_,geoInterpolate:()=>Jm,geoLength:()=>G2,geoMercator:()=>y_,geoMercatorRaw:()=>wh,geoNaturalEarth1:()=>w_,geoNaturalEarth1Raw:()=>vd,geoOrthographic:()=>E_,geoOrthographicRaw:()=>xd,geoPath:()=>l_,geoProjection:()=>ss,geoProjectionMutator:()=>pd,geoRotation:()=>P2,geoStereographic:()=>T_,geoStereographicRaw:()=>kd,geoStream:()=>ke,geoTransform:()=>u_,geoTransverseMercator:()=>S_,geoTransverseMercatorRaw:()=>wd,gray:()=>_f,greatest:()=>Nn,greatestIndex:()=>Ct,group:()=>kt,groupSort:()=>en,groups:()=>W,hcl:()=>Zc,hierarchy:()=>Ed,histogram:()=>fn,hsl:()=>Zo,html:()=>i0,image:()=>n0,index:()=>Ee,indexes:()=>fe,interpolate:()=>Kr,interpolateArray:()=>bl,interpolateBasis:()=>Wh,interpolateBasisClosed:()=>mu,interpolateBlues:()=>Yb,interpolateBrBG:()=>vb,interpolateBuGn:()=>Nb,interpolateBuPu:()=>Ib,interpolateCividis:()=>Gb,interpolateCool:()=>Xb,interpolateCubehelix:()=>o3,interpolateCubehelixDefault:()=>Vb,interpolateCubehelixLong:()=>P0,interpolateDate:()=>Vh,interpolateDiscrete:()=>Q_,interpolateGnBu:()=>Lb,interpolateGreens:()=>jb,interpolateGreys:()=>$b,interpolateHcl:()=>i3,interpolateHclLong:()=>a3,interpolateHsl:()=>e3,interpolateHslLong:()=>n3,interpolateHue:()=>t3,interpolateInferno:()=>iv,interpolateLab:()=>r3,interpolateMagma:()=>rv,interpolateNumber:()=>Ja,interpolateNumberArray:()=>Cc,interpolateObject:()=>Zh,interpolateOrRd:()=>Mb,interpolateOranges:()=>Wb,interpolatePRGn:()=>xb,interpolatePiYG:()=>kb,interpolatePlasma:()=>av,interpolatePuBu:()=>Db,interpolatePuBuGn:()=>Ob,interpolatePuOr:()=>wb,interpolatePuRd:()=>Bb,interpolatePurples:()=>Hb,interpolateRainbow:()=>Kb,interpolateRdBu:()=>Eb,interpolateRdGy:()=>Tb,interpolateRdPu:()=>Rb,interpolateRdYlBu:()=>Sb,interpolateRdYlGn:()=>Ab,interpolateReds:()=>qb,interpolateRgb:()=>Bs,interpolateRgbBasis:()=>_l,interpolateRgbBasisClosed:()=>of,interpolateRound:()=>F0,interpolateSinebow:()=>tv,interpolateSpectral:()=>Cb,interpolateString:()=>Ji,interpolateTransformCss:()=>t1,interpolateTransformSvg:()=>bu,interpolateTurbo:()=>ev,interpolateViridis:()=>nv,interpolateWarm:()=>Zb,interpolateYlGn:()=>Pb,interpolateYlGnBu:()=>Fb,interpolateYlOrBr:()=>Ub,interpolateYlOrRd:()=>zb,interpolateZoom:()=>Wp,interrupt:()=>ys,intersection:()=>On,interval:()=>m5,isoFormat:()=>p5,isoParse:()=>y5,json:()=>Ff,lab:()=>Di,lch:()=>Uu,least:()=>Qe,leastIndex:()=>Vt,line:()=>d2,lineRadial:()=>Jy,linkHorizontal:()=>Cv,linkRadial:()=>Iv,linkVertical:()=>Nv,local:()=>qy,map:()=>Gn,matcher:()=>$r,max:()=>rn,maxIndex:()=>kn,mean:()=>ar,median:()=>cn,merge:()=>hn,min:()=>Xe,minIndex:()=>Qr,mode:()=>Lr,namespace:()=>xr,namespaces:()=>$i,nice:()=>ue,now:()=>Dc,pack:()=>U_,packEnclose:()=>Np,packSiblings:()=>F_,pairs:()=>Cn,partition:()=>z_,path:()=>zo,permute:()=>Me,pie:()=>kv,piecewise:()=>Xp,pointRadial:()=>jh,pointer:()=>Jn,pointers:()=>cv,polygonArea:()=>c3,polygonCentroid:()=>l3,polygonContains:()=>d3,polygonHull:()=>f3,polygonLength:()=>p3,precisionFixed:()=>fh,precisionPrefix:()=>d0,precisionRound:()=>vi,quadtree:()=>lo,quantile:()=>pe,quantileSorted:()=>Pe,quantize:()=>s3,quickselect:()=>ae,radialArea:()=>Qy,radialLine:()=>Jy,randomBates:()=>_3,randomBernoulli:()=>x3,randomBeta:()=>tg,randomBinomial:()=>eg,randomCauchy:()=>w3,randomExponential:()=>b3,randomGamma:()=>Md,randomGeometric:()=>Qp,randomInt:()=>y3,randomIrwinHall:()=>Jp,randomLcg:()=>S3,randomLogNormal:()=>m3,randomLogistic:()=>E3,randomNormal:()=>Ld,randomPareto:()=>v3,randomPoisson:()=>T3,randomUniform:()=>g3,randomWeibull:()=>k3,range:()=>Le,rank:()=>ie,reduce:()=>Zn,reverse:()=>Ua,rgb:()=>zi,ribbon:()=>Gs,ribbonArrow:()=>T1,rollup:()=>ge,rollups:()=>We,scaleBand:()=>Bd,scaleDiverging:()=>gy,scaleDivergingLog:()=>yy,scaleDivergingPow:()=>c2,scaleDivergingSqrt:()=>lb,scaleDivergingSymlog:()=>my,scaleIdentity:()=>sg,scaleImplicit:()=>Od,scaleLinear:()=>og,scaleLog:()=>fg,scaleOrdinal:()=>Dd,scalePoint:()=>A3,scalePow:()=>Yd,scaleQuantile:()=>bg,scaleQuantize:()=>vg,scaleRadial:()=>_g,scaleSequential:()=>hy,scaleSequentialLog:()=>fy,scaleSequentialPow:()=>s2,scaleSequentialQuantile:()=>py,scaleSequentialSqrt:()=>cb,scaleSequentialSymlog:()=>dy,scaleSqrt:()=>B3,scaleSymlog:()=>gg,scaleThreshold:()=>xg,scaleTime:()=>ob,scaleUtc:()=>sb,scan:()=>vn,schemeAccent:()=>hb,schemeBlues:()=>Uy,schemeBrBG:()=>_y,schemeBuGn:()=>Ay,schemeBuPu:()=>Cy,schemeCategory10:()=>ub,schemeDark2:()=>fb,schemeGnBu:()=>Ny,schemeGreens:()=>zy,schemeGreys:()=>Yy,schemeOrRd:()=>Iy,schemeOranges:()=>Hy,schemePRGn:()=>by,schemePaired:()=>db,schemePastel1:()=>pb,schemePastel2:()=>gb,schemePiYG:()=>vy,schemePuBu:()=>My,schemePuBuGn:()=>Ly,schemePuOr:()=>xy,schemePuRd:()=>Oy,schemePurples:()=>jy,schemeRdBu:()=>ky,schemeRdGy:()=>wy,schemeRdPu:()=>Dy,schemeRdYlBu:()=>Ey,schemeRdYlGn:()=>Ty,schemeReds:()=>$y,schemeSet1:()=>yb,schemeSet2:()=>mb,schemeSet3:()=>_b,schemeSpectral:()=>Sy,schemeTableau10:()=>bb,schemeYlGn:()=>Ry,schemeYlGnBu:()=>By,schemeYlOrBr:()=>Fy,schemeYlOrRd:()=>Py,select:()=>Hi,selectAll:()=>lv,selection:()=>_a,selector:()=>gi,selectorAll:()=>Ya,shuffle:()=>Rt,shuffler:()=>Un,some:()=>Mn,sort:()=>ve,stack:()=>i5,stackOffsetDiverging:()=>o5,stackOffsetExpand:()=>a5,stackOffsetNone:()=>hu,stackOffsetSilhouette:()=>s5,stackOffsetWiggle:()=>c5,stackOrderAppearance:()=>wm,stackOrderAscending:()=>Em,stackOrderDescending:()=>u5,stackOrderInsideOut:()=>h5,stackOrderNone:()=>fu,stackOrderReverse:()=>f5,stratify:()=>H_,style:()=>gr,subset:()=>Gr,sum:()=>Yn,superset:()=>Qn,svg:()=>ah,symbol:()=>Rv,symbolCircle:()=>y2,symbolCross:()=>tm,symbolDiamond:()=>nm,symbolSquare:()=>am,symbolStar:()=>im,symbolTriangle:()=>om,symbolWye:()=>sm,symbols:()=>Bv,text:()=>tl,thresholdFreedmanDiaconis:()=>ye,thresholdScott:()=>Ve,thresholdSturges:()=>Fe,tickFormat:()=>ag,tickIncrement:()=>ot,tickStep:()=>Te,ticks:()=>Ce,timeDay:()=>Dh,timeDays:()=>U3,timeFormat:()=>i2,timeFormatDefaultLocale:()=>uy,timeFormatLocale:()=>Vg,timeFriday:()=>Ig,timeFridays:()=>H3,timeHour:()=>Zd,timeHours:()=>P3,timeInterval:()=>ia,timeMillisecond:()=>Gd,timeMilliseconds:()=>kg,timeMinute:()=>Vd,timeMinutes:()=>F3,timeMonday:()=>Bh,timeMondays:()=>z3,timeMonth:()=>Xd,timeMonths:()=>W3,timeParse:()=>Zg,timeSaturday:()=>Lg,timeSaturdays:()=>q3,timeSecond:()=>mc,timeSeconds:()=>Eg,timeSunday:()=>su,timeSundays:()=>Mg,timeThursday:()=>sl,timeThursdays:()=>$3,timeTickInterval:()=>Gg,timeTicks:()=>Wg,timeTuesday:()=>Cg,timeTuesdays:()=>Y3,timeWednesday:()=>Ng,timeWednesdays:()=>j3,timeWeek:()=>su,timeWeeks:()=>Mg,timeYear:()=>_c,timeYears:()=>G3,timeout:()=>vo,timer:()=>Rc,timerFlush:()=>Kh,transition:()=>$c,transpose:()=>Xn,tree:()=>V_,treemap:()=>Z_,treemapBinary:()=>X_,treemapDice:()=>Ih,treemapResquarify:()=>J_,treemapSlice:()=>R0,treemapSliceDice:()=>K_,treemapSquarify:()=>Hp,tsv:()=>Yi,tsvFormat:()=>Y1,tsvFormatBody:()=>Tf,tsvFormatRow:()=>Af,tsvFormatRows:()=>Sf,tsvFormatValue:()=>Cf,tsvParse:()=>z1,tsvParseRows:()=>Ef,union:()=>Or,utcDay:()=>Rh,utcDays:()=>X3,utcFormat:()=>j0,utcFriday:()=>Ug,utcFridays:()=>e4,utcHour:()=>Qd,utcHours:()=>Z3,utcMillisecond:()=>Gd,utcMilliseconds:()=>kg,utcMinute:()=>Jd,utcMinutes:()=>V3,utcMonday:()=>Fh,utcMondays:()=>K3,utcMonth:()=>t2,utcMonths:()=>r4,utcParse:()=>a2,utcSaturday:()=>zg,utcSaturdays:()=>n4,utcSecond:()=>mc,utcSeconds:()=>Eg,utcSunday:()=>cu,utcSundays:()=>Yg,utcThursday:()=>ll,utcThursdays:()=>t4,utcTickInterval:()=>qg,utcTicks:()=>Hg,utcTuesday:()=>Fg,utcTuesdays:()=>J3,utcWednesday:()=>Pg,utcWednesdays:()=>Q3,utcWeek:()=>cu,utcWeeks:()=>Yg,utcYear:()=>bc,utcYears:()=>i4,variance:()=>_t,window:()=>No,xml:()=>r0,zip:()=>Vn,zoom:()=>E5,zoomIdentity:()=>af,zoomTransform:()=>Am});const _=d(m),A=_.right,L=_.left,E=d(b).center,D=A;function R(i,a){let o=0;if(a===void 0)for(let u of i)u!=null&&(u=+u)>=u&&++o;else{let u=-1;for(let p of i)(p=a(p,++u,i))!=null&&(p=+p)>=p&&++o}return o}function P(i){return 0|i.length}function $(i){return!(i>0)}function K(i){return typeof i!="object"||"length"in i?i:Array.from(i)}function et(...i){const a=typeof i[i.length-1]=="function"&&function(v){return x=>v(...x)}(i.pop()),o=(i=i.map(K)).map(P),u=i.length-1,p=new Array(u+1).fill(0),g=[];if(u<0||o.some($))return g;for(;;){g.push(p.map((x,T)=>i[T][x]));let v=u;for(;++p[v]===o[v];){if(v===0)return a?g.map(a):g;p[v--]=0}}}function ht(i,a){var o=0,u=0;return Float64Array.from(i,a===void 0?p=>o+=+p||0:p=>o+=+a(p,u++,i)||0)}function X(i,a){return i==null||a==null?NaN:a<i?-1:a>i?1:a>=i?0:NaN}function _t(i,a){let o,u=0,p=0,g=0;if(a===void 0)for(let v of i)v!=null&&(v=+v)>=v&&(o=v-p,p+=o/++u,g+=o*(v-p));else{let v=-1;for(let x of i)(x=a(x,++v,i))!=null&&(x=+x)>=x&&(o=x-p,p+=o/++u,g+=o*(x-p))}if(u>1)return g/(u-1)}function rt(i,a){const o=_t(i,a);return o&&Math.sqrt(o)}function at(i,a){let o,u;if(a===void 0)for(const p of i)p!=null&&(o===void 0?p>=p&&(o=u=p):(o>p&&(o=p),u<p&&(u=p)));else{let p=-1;for(let g of i)(g=a(g,++p,i))!=null&&(o===void 0?g>=g&&(o=u=g):(o>g&&(o=g),u<g&&(u=g)))}return[o,u]}class bt{constructor(){this._partials=new Float64Array(32),this._n=0}add(a){const o=this._partials;let u=0;for(let p=0;p<this._n&&p<32;p++){const g=o[p],v=a+g,x=Math.abs(a)<Math.abs(g)?a-(v-g):g-(v-a);x&&(o[u++]=x),a=v}return o[u]=a,this._n=u+1,this}valueOf(){const a=this._partials;let o,u,p,g=this._n,v=0;if(g>0){for(v=a[--g];g>0&&(o=v,u=a[--g],v=o+u,p=u-(v-o),!p););g>0&&(p<0&&a[g-1]<0||p>0&&a[g-1]>0)&&(u=2*p,o=v+u,u==o-v&&(v=o))}return v}}function Ft(i,a){const o=new bt;if(a===void 0)for(let u of i)(u=+u)&&o.add(u);else{let u=-1;for(let p of i)(p=+a(p,++u,i))&&o.add(p)}return+o}function Tt(i,a){const o=new bt;let u=-1;return Float64Array.from(i,a===void 0?p=>o.add(+p||0):p=>o.add(+a(p,++u,i)||0))}class yt extends Map{constructor(a,o=ft){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:o}}),a!=null)for(const[u,p]of a)this.set(u,p)}get(a){return super.get(xt(this,a))}has(a){return super.has(xt(this,a))}set(a,o){return super.set(pt(this,a),o)}delete(a){return super.delete(tt(this,a))}}class Nt extends Set{constructor(a,o=ft){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:o}}),a!=null)for(const u of a)this.add(u)}has(a){return super.has(xt(this,a))}add(a){return super.add(pt(this,a))}delete(a){return super.delete(tt(this,a))}}function xt({_intern:i,_key:a},o){const u=a(o);return i.has(u)?i.get(u):o}function pt({_intern:i,_key:a},o){const u=a(o);return i.has(u)?i.get(u):(i.set(u,o),o)}function tt({_intern:i,_key:a},o){const u=a(o);return i.has(u)&&(o=i.get(u),i.delete(u)),o}function ft(i){return i!==null&&typeof i=="object"?i.valueOf():i}function q(i){return i}function kt(i,...a){return Ie(i,q,q,a)}function W(i,...a){return Ie(i,Array.from,q,a)}function St(i,a){for(let o=1,u=a.length;o<u;++o)i=i.flatMap(p=>p.pop().map(([g,v])=>[...p,g,v]));return i}function Lt(i,...a){return St(W(i,...a),a)}function Ht(i,a,...o){return St(We(i,a,...o),o)}function ge(i,a,...o){return Ie(i,q,a,o)}function We(i,a,...o){return Ie(i,Array.from,a,o)}function Ee(i,...a){return Ie(i,q,xe,a)}function fe(i,...a){return Ie(i,Array.from,xe,a)}function xe(i){if(i.length!==1)throw new Error("duplicate key");return i[0]}function Ie(i,a,o,u){return function p(g,v){if(v>=u.length)return o(g);const x=new yt,T=u[v++];let C=-1;for(const O of g){const z=T(O,++C,g),F=x.get(z);F?F.push(O):x.set(z,[O])}for(const[O,z]of x)x.set(O,p(z,v));return a(x)}(i,0)}function Me(i,a){return Array.from(a,o=>i[o])}function ve(i,...a){if(typeof i[Symbol.iterator]!="function")throw new TypeError("values is not iterable");i=Array.from(i);let[o]=a;if(o&&o.length!==2||a.length>1){const u=Uint32Array.from(i,(p,g)=>g);return a.length>1?(a=a.map(p=>i.map(p)),u.sort((p,g)=>{for(const v of a){const x=_e(v[p],v[g]);if(x)return x}})):(o=i.map(o),u.sort((p,g)=>_e(o[p],o[g]))),Me(i,u)}return i.sort(An(o))}function An(i=m){if(i===m)return _e;if(typeof i!="function")throw new TypeError("compare is not a function");return(a,o)=>{const u=i(a,o);return u||u===0?u:(i(o,o)===0)-(i(a,a)===0)}}function _e(i,a){return(i==null||!(i>=i))-(a==null||!(a>=a))||(i<a?-1:i>a?1:0)}function en(i,a,o){return(a.length!==2?ve(ge(i,a,o),([u,p],[g,v])=>m(p,v)||m(u,g)):ve(kt(i,o),([u,p],[g,v])=>a(p,v)||m(u,g))).map(([u])=>u)}var Ot=Array.prototype,he=Ot.slice;function Qt(i){return()=>i}var At=Math.sqrt(50),De=Math.sqrt(10),J=Math.sqrt(2);function Ce(i,a,o){var u,p,g,v,x=-1;if(o=+o,(i=+i)==(a=+a)&&o>0)return[i];if((u=a<i)&&(p=i,i=a,a=p),(v=ot(i,a,o))===0||!isFinite(v))return[];if(v>0){let T=Math.round(i/v),C=Math.round(a/v);for(T*v<i&&++T,C*v>a&&--C,g=new Array(p=C-T+1);++x<p;)g[x]=(T+x)*v}else{v=-v;let T=Math.round(i*v),C=Math.round(a*v);for(T/v<i&&++T,C/v>a&&--C,g=new Array(p=C-T+1);++x<p;)g[x]=(T+x)/v}return u&&g.reverse(),g}function ot(i,a,o){var u=(a-i)/Math.max(0,o),p=Math.floor(Math.log(u)/Math.LN10),g=u/Math.pow(10,p);return p>=0?(g>=At?10:g>=De?5:g>=J?2:1)*Math.pow(10,p):-Math.pow(10,-p)/(g>=At?10:g>=De?5:g>=J?2:1)}function Te(i,a,o){var u=Math.abs(a-i)/Math.max(0,o),p=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),g=u/p;return g>=At?p*=10:g>=De?p*=5:g>=J&&(p*=2),a<i?-p:p}function ue(i,a,o){let u;for(;;){const p=ot(i,a,o);if(p===u||p===0||!isFinite(p))return[i,a];p>0?(i=Math.floor(i/p)*p,a=Math.ceil(a/p)*p):p<0&&(i=Math.ceil(i*p)/p,a=Math.floor(a*p)/p),u=p}}function Fe(i){return Math.ceil(Math.log(R(i))/Math.LN2)+1}function fn(){var i=q,a=at,o=Fe;function u(p){Array.isArray(p)||(p=Array.from(p));var g,v,x=p.length,T=new Array(x);for(g=0;g<x;++g)T[g]=i(p[g],g,p);var C=a(T),O=C[0],z=C[1],F=o(T,O,z);if(!Array.isArray(F)){const V=z,Z=+F;if(a===at&&([O,z]=ue(O,z,Z)),(F=Ce(O,z,Z))[F.length-1]>=z)if(V>=z&&a===at){const dt=ot(O,z,Z);isFinite(dt)&&(dt>0?z=(Math.floor(z/dt)+1)*dt:dt<0&&(z=(Math.ceil(z*-dt)+1)/-dt))}else F.pop()}for(var j=F.length;F[0]<=O;)F.shift(),--j;for(;F[j-1]>z;)F.pop(),--j;var nt,G=new Array(j+1);for(g=0;g<=j;++g)(nt=G[g]=[]).x0=g>0?F[g-1]:O,nt.x1=g<j?F[g]:z;for(g=0;g<x;++g)(v=T[g])!=null&&O<=v&&v<=z&&G[D(F,v,0,j)].push(p[g]);return G}return u.value=function(p){return arguments.length?(i=typeof p=="function"?p:Qt(p),u):i},u.domain=function(p){return arguments.length?(a=typeof p=="function"?p:Qt([p[0],p[1]]),u):a},u.thresholds=function(p){return arguments.length?(o=typeof p=="function"?p:Array.isArray(p)?Qt(he.call(p)):Qt(p),u):o},u}function rn(i,a){let o;if(a===void 0)for(const u of i)u!=null&&(o<u||o===void 0&&u>=u)&&(o=u);else{let u=-1;for(let p of i)(p=a(p,++u,i))!=null&&(o<p||o===void 0&&p>=p)&&(o=p)}return o}function Xe(i,a){let o;if(a===void 0)for(const u of i)u!=null&&(o>u||o===void 0&&u>=u)&&(o=u);else{let u=-1;for(let p of i)(p=a(p,++u,i))!=null&&(o>p||o===void 0&&p>=p)&&(o=p)}return o}function ae(i,a,o=0,u=i.length-1,p){for(p=p===void 0?_e:An(p);u>o;){if(u-o>600){const T=u-o+1,C=a-o+1,O=Math.log(T),z=.5*Math.exp(2*O/3),F=.5*Math.sqrt(O*z*(T-z)/T)*(C-T/2<0?-1:1);ae(i,a,Math.max(o,Math.floor(a-C*z/T+F)),Math.min(u,Math.floor(a+(T-C)*z/T+F)),p)}const g=i[a];let v=o,x=u;for(Be(i,o,a),p(i[u],g)>0&&Be(i,o,u);v<x;){for(Be(i,v,x),++v,--x;p(i[v],g)<0;)++v;for(;p(i[x],g)>0;)--x}p(i[o],g)===0?Be(i,o,x):(++x,Be(i,x,u)),x<=a&&(o=x+1),a<=x&&(u=x-1)}return i}function Be(i,a,o){const u=i[a];i[a]=i[o],i[o]=u}function pe(i,a,o){if(i=Float64Array.from(function*(x,T){if(T===void 0)for(let C of x)C!=null&&(C=+C)>=C&&(yield C);else{let C=-1;for(let O of x)(O=T(O,++C,x))!=null&&(O=+O)>=O&&(yield O)}}(i,o)),u=i.length){if((a=+a)<=0||u<2)return Xe(i);if(a>=1)return rn(i);var u,p=(u-1)*a,g=Math.floor(p),v=rn(ae(i,g).subarray(0,g+1));return v+(Xe(i.subarray(g+1))-v)*(p-g)}}function Pe(i,a,o=b){if(u=i.length){if((a=+a)<=0||u<2)return+o(i[0],0,i);if(a>=1)return+o(i[u-1],u-1,i);var u,p=(u-1)*a,g=Math.floor(p),v=+o(i[g],g,i);return v+(+o(i[g+1],g+1,i)-v)*(p-g)}}function ye(i,a,o){return Math.ceil((o-a)/(2*(pe(i,.75)-pe(i,.25))*Math.pow(R(i),-1/3)))}function Ve(i,a,o){return Math.ceil((o-a)/(3.5*rt(i)*Math.pow(R(i),-1/3)))}function kn(i,a){let o,u=-1,p=-1;if(a===void 0)for(const g of i)++p,g!=null&&(o<g||o===void 0&&g>=g)&&(o=g,u=p);else for(let g of i)(g=a(g,++p,i))!=null&&(o<g||o===void 0&&g>=g)&&(o=g,u=p);return u}function ar(i,a){let o=0,u=0;if(a===void 0)for(let p of i)p!=null&&(p=+p)>=p&&(++o,u+=p);else{let p=-1;for(let g of i)(g=a(g,++p,i))!=null&&(g=+g)>=g&&(++o,u+=g)}if(o)return u/o}function cn(i,a){return pe(i,.5,a)}function hn(i){return Array.from(function*(a){for(const o of a)yield*o}(i))}function Qr(i,a){let o,u=-1,p=-1;if(a===void 0)for(const g of i)++p,g!=null&&(o>g||o===void 0&&g>=g)&&(o=g,u=p);else for(let g of i)(g=a(g,++p,i))!=null&&(o>g||o===void 0&&g>=g)&&(o=g,u=p);return u}function Lr(i,a){const o=new yt;if(a===void 0)for(let g of i)g!=null&&g>=g&&o.set(g,(o.get(g)||0)+1);else{let g=-1;for(let v of i)(v=a(v,++g,i))!=null&&v>=v&&o.set(v,(o.get(v)||0)+1)}let u,p=0;for(const[g,v]of o)v>p&&(p=v,u=g);return u}function Cn(i,a=In){const o=[];let u,p=!1;for(const g of i)p&&o.push(a(u,g)),u=g,p=!0;return o}function In(i,a){return[i,a]}function Le(i,a,o){i=+i,a=+a,o=(p=arguments.length)<2?(a=i,i=0,1):p<3?1:+o;for(var u=-1,p=0|Math.max(0,Math.ceil((a-i)/o)),g=new Array(p);++u<p;)g[u]=i+u*o;return g}function ie(i,a=m){if(typeof i[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let o=Array.from(i);const u=new Float64Array(o.length);a.length!==2&&(o=o.map(a),a=m);const p=(x,T)=>a(o[x],o[T]);let g,v;return Uint32Array.from(o,(x,T)=>T).sort(a===m?(x,T)=>_e(o[x],o[T]):An(p)).forEach((x,T)=>{const C=p(x,g===void 0?x:g);C>=0?((g===void 0||C>0)&&(g=x,v=T),u[x]=v):u[x]=NaN}),u}function Qe(i,a=m){let o,u=!1;if(a.length===1){let p;for(const g of i){const v=a(g);(u?m(v,p)<0:m(v,v)===0)&&(o=g,p=v,u=!0)}}else for(const p of i)(u?a(p,o)<0:a(p,p)===0)&&(o=p,u=!0);return o}function Vt(i,a=m){if(a.length===1)return Qr(i,a);let o,u=-1,p=-1;for(const g of i)++p,(u<0?a(g,g)===0:a(g,o)<0)&&(o=g,u=p);return u}function Nn(i,a=m){let o,u=!1;if(a.length===1){let p;for(const g of i){const v=a(g);(u?m(v,p)>0:m(v,v)===0)&&(o=g,p=v,u=!0)}}else for(const p of i)(u?a(p,o)>0:a(p,p)===0)&&(o=p,u=!0);return o}function Ct(i,a=m){if(a.length===1)return kn(i,a);let o,u=-1,p=-1;for(const g of i)++p,(u<0?a(g,g)===0:a(g,o)>0)&&(o=g,u=p);return u}function vn(i,a){const o=Vt(i,a);return o<0?void 0:o}const Rt=Un(Math.random);function Un(i){return function(a,o=0,u=a.length){let p=u-(o=+o);for(;p;){const g=i()*p--|0,v=a[p+o];a[p+o]=a[g+o],a[g+o]=v}return a}}function Yn(i,a){let o=0;if(a===void 0)for(let u of i)(u=+u)&&(o+=u);else{let u=-1;for(let p of i)(p=+a(p,++u,i))&&(o+=p)}return o}function Xn(i){if(!(p=i.length))return[];for(var a=-1,o=Xe(i,Hn),u=new Array(o);++a<o;)for(var p,g=-1,v=u[a]=new Array(p);++g<p;)v[g]=i[g][a];return u}function Hn(i){return i.length}function Vn(){return Xn(arguments)}function Kn(i,a){if(typeof a!="function")throw new TypeError("test is not a function");let o=-1;for(const u of i)if(!a(u,++o,i))return!1;return!0}function Mn(i,a){if(typeof a!="function")throw new TypeError("test is not a function");let o=-1;for(const u of i)if(a(u,++o,i))return!0;return!1}function jn(i,a){if(typeof a!="function")throw new TypeError("test is not a function");const o=[];let u=-1;for(const p of i)a(p,++u,i)&&o.push(p);return o}function Gn(i,a){if(typeof i[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof a!="function")throw new TypeError("mapper is not a function");return Array.from(i,(o,u)=>a(o,u,i))}function Zn(i,a,o){if(typeof a!="function")throw new TypeError("reducer is not a function");const u=i[Symbol.iterator]();let p,g,v=-1;if(arguments.length<3){if({done:p,value:o}=u.next(),p)return;++v}for(;{done:p,value:g}=u.next(),!p;)o=a(o,g,++v,i);return o}function Ua(i){if(typeof i[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(i).reverse()}function Wr(i,...a){i=new Nt(i);for(const o of a)for(const u of o)i.delete(u);return i}function Pr(i,a){const o=a[Symbol.iterator](),u=new Nt;for(const p of i){if(u.has(p))return!1;let g,v;for(;({value:g,done:v}=o.next())&&!v;){if(Object.is(p,g))return!1;u.add(g)}}return!0}function On(i,...a){i=new Nt(i),a=a.map(Qi);t:for(const o of i)for(const u of a)if(!u.has(o)){i.delete(o);continue t}return i}function Qi(i){return i instanceof Nt?i:new Nt(i)}function Qn(i,a){const o=i[Symbol.iterator](),u=new Set;for(const p of a){const g=Yr(p);if(u.has(g))continue;let v,x;for(;{value:v,done:x}=o.next();){if(x)return!1;const T=Yr(v);if(u.add(T),Object.is(g,T))break}}return!0}function Yr(i){return i!==null&&typeof i=="object"?i.valueOf():i}function Gr(i,a){return Qn(a,i)}function Or(...i){const a=new Nt;for(const o of i)for(const u of o)a.add(u);return a}function Vr(i){return i}var Zr=1e-6;function jr(i){return"translate("+i+",0)"}function ti(i){return"translate(0,"+i+")"}function or(i){return a=>+i(a)}function pi(i,a){return a=Math.max(0,i.bandwidth()-2*a)/2,i.round()&&(a=Math.round(a)),o=>+i(o)+a}function Sr(){return!this.__axis}function ei(i,a){var o=[],u=null,p=null,g=6,v=6,x=3,T=typeof window<"u"&&window.devicePixelRatio>1?0:.5,C=i===1||i===4?-1:1,O=i===4||i===2?"x":"y",z=i===1||i===3?jr:ti;function F(j){var nt=u==null?a.ticks?a.ticks.apply(a,o):a.domain():u,G=p==null?a.tickFormat?a.tickFormat.apply(a,o):Vr:p,V=Math.max(g,0)+x,Z=a.range(),dt=+Z[0]+T,ct=+Z[Z.length-1]+T,lt=(a.bandwidth?pi:or)(a.copy(),T),vt=j.selection?j.selection():j,wt=vt.selectAll(".domain").data([null]),Kt=vt.selectAll(".tick").data(nt,a).order(),me=Kt.exit(),Wt=Kt.enter().append("g").attr("class","tick"),Ut=Kt.select("line"),zt=Kt.select("text");wt=wt.merge(wt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Kt=Kt.merge(Wt),Ut=Ut.merge(Wt.append("line").attr("stroke","currentColor").attr(O+"2",C*g)),zt=zt.merge(Wt.append("text").attr("fill","currentColor").attr(O,C*V).attr("dy",i===1?"0em":i===3?"0.71em":"0.32em")),j!==vt&&(wt=wt.transition(j),Kt=Kt.transition(j),Ut=Ut.transition(j),zt=zt.transition(j),me=me.transition(j).attr("opacity",Zr).attr("transform",function(Yt){return isFinite(Yt=lt(Yt))?z(Yt+T):this.getAttribute("transform")}),Wt.attr("opacity",Zr).attr("transform",function(Yt){var Et=this.parentNode.__axis;return z((Et&&isFinite(Et=Et(Yt))?Et:lt(Yt))+T)})),me.remove(),wt.attr("d",i===4||i===2?v?"M"+C*v+","+dt+"H"+T+"V"+ct+"H"+C*v:"M"+T+","+dt+"V"+ct:v?"M"+dt+","+C*v+"V"+T+"H"+ct+"V"+C*v:"M"+dt+","+T+"H"+ct),Kt.attr("opacity",1).attr("transform",function(Yt){return z(lt(Yt)+T)}),Ut.attr(O+"2",C*g),zt.attr(O,C*V).text(G),vt.filter(Sr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",i===2?"start":i===4?"end":"middle"),vt.each(function(){this.__axis=lt})}return F.scale=function(j){return arguments.length?(a=j,F):a},F.ticks=function(){return o=Array.from(arguments),F},F.tickArguments=function(j){return arguments.length?(o=j==null?[]:Array.from(j),F):o.slice()},F.tickValues=function(j){return arguments.length?(u=j==null?null:Array.from(j),F):u&&u.slice()},F.tickFormat=function(j){return arguments.length?(p=j,F):p},F.tickSize=function(j){return arguments.length?(g=v=+j,F):g},F.tickSizeInner=function(j){return arguments.length?(g=+j,F):g},F.tickSizeOuter=function(j){return arguments.length?(v=+j,F):v},F.tickPadding=function(j){return arguments.length?(x=+j,F):x},F.offset=function(j){return arguments.length?(T=+j,F):T},F}function ki(i){return ei(1,i)}function za(i){return ei(2,i)}function Dr(i){return ei(3,i)}function ga(i){return ei(4,i)}var Fi={value:()=>{}};function ta(){for(var i,a=0,o=arguments.length,u={};a<o;++a){if(!(i=arguments[a]+"")||i in u||/[\s.]/.test(i))throw new Error("illegal type: "+i);u[i]=[]}return new Tn(u)}function Tn(i){this._=i}function wr(i,a){return i.trim().split(/^|\s+/).map(function(o){var u="",p=o.indexOf(".");if(p>=0&&(u=o.slice(p+1),o=o.slice(0,p)),o&&!a.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:u}})}function tr(i,a){for(var o,u=0,p=i.length;u<p;++u)if((o=i[u]).name===a)return o.value}function on(i,a,o){for(var u=0,p=i.length;u<p;++u)if(i[u].name===a){i[u]=Fi,i=i.slice(0,u).concat(i.slice(u+1));break}return o!=null&&i.push({name:a,value:o}),i}Tn.prototype=ta.prototype={constructor:Tn,on:function(i,a){var o,u=this._,p=wr(i+"",u),g=-1,v=p.length;if(!(arguments.length<2)){if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++g<v;)if(o=(i=p[g]).type)u[o]=on(u[o],i.name,a);else if(a==null)for(o in u)u[o]=on(u[o],i.name,null);return this}for(;++g<v;)if((o=(i=p[g]).type)&&(o=tr(u[o],i.name)))return o},copy:function(){var i={},a=this._;for(var o in a)i[o]=a[o].slice();return new Tn(i)},call:function(i,a){if((o=arguments.length-2)>0)for(var o,u,p=new Array(o),g=0;g<o;++g)p[g]=arguments[g+2];if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(g=0,o=(u=this._[i]).length;g<o;++g)u[g].value.apply(a,p)},apply:function(i,a,o){if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(var u=this._[i],p=0,g=u.length;p<g;++p)u[p].value.apply(a,o)}};const sr=ta;function qt(){}function gi(i){return i==null?qt:function(){return this.querySelector(i)}}function Jt(i){return i==null?[]:Array.isArray(i)?i:Array.from(i)}function Ti(){return[]}function Ya(i){return i==null?Ti:function(){return this.querySelectorAll(i)}}function $r(i){return function(){return this.matches(i)}}function Co(i){return function(a){return a.matches(i)}}var ya=Array.prototype.find;function Br(){return this.firstElementChild}var ni=Array.prototype.filter;function yi(){return Array.from(this.children)}function Ca(i){return new Array(i.length)}function Vi(i,a){this.ownerDocument=i.ownerDocument,this.namespaceURI=i.namespaceURI,this._next=null,this._parent=i,this.__data__=a}function Si(i){return function(){return i}}function ma(i,a,o,u,p,g){for(var v,x=0,T=a.length,C=g.length;x<C;++x)(v=a[x])?(v.__data__=g[x],u[x]=v):o[x]=new Vi(i,g[x]);for(;x<T;++x)(v=a[x])&&(p[x]=v)}function ri(i,a,o,u,p,g,v){var x,T,C,O=new Map,z=a.length,F=g.length,j=new Array(z);for(x=0;x<z;++x)(T=a[x])&&(j[x]=C=v.call(T,T.__data__,x,a)+"",O.has(C)?p[x]=T:O.set(C,T));for(x=0;x<F;++x)C=v.call(i,g[x],x,g)+"",(T=O.get(C))?(u[x]=T,T.__data__=g[x],O.delete(C)):o[x]=new Vi(i,g[x]);for(x=0;x<z;++x)(T=a[x])&&O.get(j[x])===T&&(p[x]=T)}function ja(i){return i.__data__}function Bn(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function wi(i,a){return i<a?-1:i>a?1:i>=a?0:NaN}Vi.prototype={constructor:Vi,appendChild:function(i){return this._parent.insertBefore(i,this._next)},insertBefore:function(i,a){return this._parent.insertBefore(i,a)},querySelector:function(i){return this._parent.querySelector(i)},querySelectorAll:function(i){return this._parent.querySelectorAll(i)}};var Na="http://www.w3.org/1999/xhtml";const $i={svg:"http://www.w3.org/2000/svg",xhtml:Na,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xr(i){var a=i+="",o=a.indexOf(":");return o>=0&&(a=i.slice(0,o))!=="xmlns"&&(i=i.slice(o+1)),$i.hasOwnProperty(a)?{space:$i[a],local:i}:i}function oa(i){return function(){this.removeAttribute(i)}}function Li(i){return function(){this.removeAttributeNS(i.space,i.local)}}function si(i,a){return function(){this.setAttribute(i,a)}}function sa(i,a){return function(){this.setAttributeNS(i.space,i.local,a)}}function jt(i,a){return function(){var o=a.apply(this,arguments);o==null?this.removeAttribute(i):this.setAttribute(i,o)}}function us(i,a){return function(){var o=a.apply(this,arguments);o==null?this.removeAttributeNS(i.space,i.local):this.setAttributeNS(i.space,i.local,o)}}function No(i){return i.ownerDocument&&i.ownerDocument.defaultView||i.document&&i||i.defaultView}function Zt(i){return function(){this.style.removeProperty(i)}}function xn(i,a,o){return function(){this.style.setProperty(i,a,o)}}function un(i,a,o){return function(){var u=a.apply(this,arguments);u==null?this.style.removeProperty(i):this.style.setProperty(i,u,o)}}function gr(i,a){return i.style.getPropertyValue(a)||No(i).getComputedStyle(i,null).getPropertyValue(a)}function Xr(i){return function(){delete this[i]}}function Hr(i,a){return function(){this[i]=a}}function Cr(i,a){return function(){var o=a.apply(this,arguments);o==null?delete this[i]:this[i]=o}}function ci(i){return i.trim().split(/^|\s+/)}function li(i){return i.classList||new ii(i)}function ii(i){this._node=i,this._names=ci(i.getAttribute("class")||"")}function Za(i,a){for(var o=li(i),u=-1,p=a.length;++u<p;)o.add(a[u])}function Io(i,a){for(var o=li(i),u=-1,p=a.length;++u<p;)o.remove(a[u])}function er(i){return function(){Za(this,i)}}function fl(i){return function(){Io(this,i)}}function zn(i,a){return function(){(a.apply(this,arguments)?Za:Io)(this,i)}}function dl(){this.textContent=""}function $a(i){return function(){this.textContent=i}}function ho(i){return function(){var a=i.apply(this,arguments);this.textContent=a==null?"":a}}function Ze(){this.innerHTML=""}function Ia(i){return function(){this.innerHTML=i}}function kr(i){return function(){var a=i.apply(this,arguments);this.innerHTML=a==null?"":a}}function fo(){this.nextSibling&&this.parentNode.appendChild(this)}function Ls(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hs(i){return function(){var a=this.ownerDocument,o=this.namespaceURI;return o===Na&&a.documentElement.namespaceURI===Na?a.createElement(i):a.createElementNS(o,i)}}function La(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function po(i){var a=xr(i);return(a.local?La:hs)(a)}function Sc(){return null}function no(){var i=this.parentNode;i&&i.removeChild(this)}function fs(){var i=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function Xa(){var i=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function pl(i){return i.trim().split(/^|\s+/).map(function(a){var o="",u=a.indexOf(".");return u>=0&&(o=a.slice(u+1),a=a.slice(0,u)),{type:a,name:o}})}function ro(i){return function(){var a=this.__on;if(a){for(var o,u=0,p=-1,g=a.length;u<g;++u)o=a[u],i.type&&o.type!==i.type||o.name!==i.name?a[++p]=o:this.removeEventListener(o.type,o.listener,o.options);++p?a.length=p:delete this.__on}}}function pu(i,a,o){return function(){var u,p=this.__on,g=function(T){return function(C){T.call(this,C,this.__data__)}}(a);if(p){for(var v=0,x=p.length;v<x;++v)if((u=p[v]).type===i.type&&u.name===i.name)return this.removeEventListener(u.type,u.listener,u.options),this.addEventListener(u.type,u.listener=g,u.options=o),void(u.value=a)}this.addEventListener(i.type,g,o),u={type:i.type,name:i.name,value:a,listener:g,options:o},p?p.push(u):this.__on=[u]}}function gl(i,a,o){var u=No(i),p=u.CustomEvent;typeof p=="function"?p=new p(a,o):(p=u.document.createEvent("Event"),o?(p.initEvent(a,o.bubbles,o.cancelable),p.detail=o.detail):p.initEvent(a,!1,!1)),i.dispatchEvent(p)}function Pi(i,a){return function(){return gl(this,i,a)}}function gu(i,a){return function(){return gl(this,i,a.apply(this,arguments))}}ii.prototype={add:function(i){this._names.indexOf(i)<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var a=this._names.indexOf(i);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};var Zi=[null];function Xi(i,a){this._groups=i,this._parents=a}function Ac(){return new Xi([[document.documentElement]],Zi)}Xi.prototype=Ac.prototype={constructor:Xi,select:function(i){typeof i!="function"&&(i=gi(i));for(var a=this._groups,o=a.length,u=new Array(o),p=0;p<o;++p)for(var g,v,x=a[p],T=x.length,C=u[p]=new Array(T),O=0;O<T;++O)(g=x[O])&&(v=i.call(g,g.__data__,O,x))&&("__data__"in g&&(v.__data__=g.__data__),C[O]=v);return new Xi(u,this._parents)},selectAll:function(i){i=typeof i=="function"?function(O){return function(){return Jt(O.apply(this,arguments))}}(i):Ya(i);for(var a=this._groups,o=a.length,u=[],p=[],g=0;g<o;++g)for(var v,x=a[g],T=x.length,C=0;C<T;++C)(v=x[C])&&(u.push(i.call(v,v.__data__,C,x)),p.push(v));return new Xi(u,p)},selectChild:function(i){return this.select(i==null?Br:function(a){return function(){return ya.call(this.children,a)}}(typeof i=="function"?i:Co(i)))},selectChildren:function(i){return this.selectAll(i==null?yi:function(a){return function(){return ni.call(this.children,a)}}(typeof i=="function"?i:Co(i)))},filter:function(i){typeof i!="function"&&(i=$r(i));for(var a=this._groups,o=a.length,u=new Array(o),p=0;p<o;++p)for(var g,v=a[p],x=v.length,T=u[p]=[],C=0;C<x;++C)(g=v[C])&&i.call(g,g.__data__,C,v)&&T.push(g);return new Xi(u,this._parents)},data:function(i,a){if(!arguments.length)return Array.from(this,ja);var o=a?ri:ma,u=this._parents,p=this._groups;typeof i!="function"&&(i=Si(i));for(var g=p.length,v=new Array(g),x=new Array(g),T=new Array(g),C=0;C<g;++C){var O=u[C],z=p[C],F=z.length,j=Bn(i.call(O,O&&O.__data__,C,u)),nt=j.length,G=x[C]=new Array(nt),V=v[C]=new Array(nt),Z=T[C]=new Array(F);o(O,z,G,V,Z,j,a);for(var dt,ct,lt=0,vt=0;lt<nt;++lt)if(dt=G[lt]){for(lt>=vt&&(vt=lt+1);!(ct=V[vt])&&++vt<nt;);dt._next=ct||null}}return(v=new Xi(v,u))._enter=x,v._exit=T,v},enter:function(){return new Xi(this._enter||this._groups.map(Ca),this._parents)},exit:function(){return new Xi(this._exit||this._groups.map(Ca),this._parents)},join:function(i,a,o){var u=this.enter(),p=this,g=this.exit();return typeof i=="function"?(u=i(u))&&(u=u.selection()):u=u.append(i+""),a!=null&&(p=a(p))&&(p=p.selection()),o==null?g.remove():o(g),u&&p?u.merge(p).order():p},merge:function(i){for(var a=i.selection?i.selection():i,o=this._groups,u=a._groups,p=o.length,g=u.length,v=Math.min(p,g),x=new Array(p),T=0;T<v;++T)for(var C,O=o[T],z=u[T],F=O.length,j=x[T]=new Array(F),nt=0;nt<F;++nt)(C=O[nt]||z[nt])&&(j[nt]=C);for(;T<p;++T)x[T]=o[T];return new Xi(x,this._parents)},selection:function(){return this},order:function(){for(var i=this._groups,a=-1,o=i.length;++a<o;)for(var u,p=i[a],g=p.length-1,v=p[g];--g>=0;)(u=p[g])&&(v&&4^u.compareDocumentPosition(v)&&v.parentNode.insertBefore(u,v),v=u);return this},sort:function(i){function a(z,F){return z&&F?i(z.__data__,F.__data__):!z-!F}i||(i=wi);for(var o=this._groups,u=o.length,p=new Array(u),g=0;g<u;++g){for(var v,x=o[g],T=x.length,C=p[g]=new Array(T),O=0;O<T;++O)(v=x[O])&&(C[O]=v);C.sort(a)}return new Xi(p,this._parents).order()},call:function(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var i=this._groups,a=0,o=i.length;a<o;++a)for(var u=i[a],p=0,g=u.length;p<g;++p){var v=u[p];if(v)return v}return null},size:function(){let i=0;for(const a of this)++i;return i},empty:function(){return!this.node()},each:function(i){for(var a=this._groups,o=0,u=a.length;o<u;++o)for(var p,g=a[o],v=0,x=g.length;v<x;++v)(p=g[v])&&i.call(p,p.__data__,v,g);return this},attr:function(i,a){var o=xr(i);if(arguments.length<2){var u=this.node();return o.local?u.getAttributeNS(o.space,o.local):u.getAttribute(o)}return this.each((a==null?o.local?Li:oa:typeof a=="function"?o.local?us:jt:o.local?sa:si)(o,a))},style:function(i,a,o){return arguments.length>1?this.each((a==null?Zt:typeof a=="function"?un:xn)(i,a,o==null?"":o)):gr(this.node(),i)},property:function(i,a){return arguments.length>1?this.each((a==null?Xr:typeof a=="function"?Cr:Hr)(i,a)):this.node()[i]},classed:function(i,a){var o=ci(i+"");if(arguments.length<2){for(var u=li(this.node()),p=-1,g=o.length;++p<g;)if(!u.contains(o[p]))return!1;return!0}return this.each((typeof a=="function"?zn:a?er:fl)(o,a))},text:function(i){return arguments.length?this.each(i==null?dl:(typeof i=="function"?ho:$a)(i)):this.node().textContent},html:function(i){return arguments.length?this.each(i==null?Ze:(typeof i=="function"?kr:Ia)(i)):this.node().innerHTML},raise:function(){return this.each(fo)},lower:function(){return this.each(Ls)},append:function(i){var a=typeof i=="function"?i:po(i);return this.select(function(){return this.appendChild(a.apply(this,arguments))})},insert:function(i,a){var o=typeof i=="function"?i:po(i),u=a==null?Sc:typeof a=="function"?a:gi(a);return this.select(function(){return this.insertBefore(o.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(no)},clone:function(i){return this.select(i?Xa:fs)},datum:function(i){return arguments.length?this.property("__data__",i):this.node().__data__},on:function(i,a,o){var u,p,g=pl(i+""),v=g.length;if(!(arguments.length<2)){for(x=a?pu:ro,u=0;u<v;++u)this.each(x(g[u],a,o));return this}var x=this.node().__on;if(x){for(var T,C=0,O=x.length;C<O;++C)for(u=0,T=x[C];u<v;++u)if((p=g[u]).type===T.type&&p.name===T.name)return T.value}},dispatch:function(i,a){return this.each((typeof a=="function"?gu:Pi)(i,a))},[Symbol.iterator]:function*(){for(var i=this._groups,a=0,o=i.length;a<o;++a)for(var u,p=i[a],g=0,v=p.length;g<v;++g)(u=p[g])&&(yield u)}};const _a=Ac;function Hi(i){return typeof i=="string"?new Xi([[document.querySelector(i)]],[document.documentElement]):new Xi([[i]],Zi)}const Ms={passive:!1},go={capture:!0,passive:!1};function Os(i){i.stopImmediatePropagation()}function yo(i){i.preventDefault(),i.stopImmediatePropagation()}function Ln(i){var a=i.document.documentElement,o=Hi(i).on("dragstart.drag",yo,go);"onselectstart"in a?o.on("selectstart.drag",yo,go):(a.__noselect=a.style.MozUserSelect,a.style.MozUserSelect="none")}function ds(i,a){var o=i.document.documentElement,u=Hi(i).on("dragstart.drag",null);a&&(u.on("click.drag",yo,go),setTimeout(function(){u.on("click.drag",null)},0)),"onselectstart"in o?u.on("selectstart.drag",null):(o.style.MozUserSelect=o.__noselect,delete o.__noselect)}function ea(i,a,o){i.prototype=a.prototype=o,o.constructor=i}function Ui(i,a){var o=Object.create(i.prototype);for(var u in a)o[u]=a[u];return o}function ba(){}var mi=.7,Ka=1/mi,dr="\\s*([+-]?\\d+)\\s*",I="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",U="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q=/^#([0-9a-f]{3,8})$/,mt=new RegExp("^rgb\\("+[dr,dr,dr]+"\\)$"),te=new RegExp("^rgb\\("+[U,U,U]+"\\)$"),Ne=new RegExp("^rgba\\("+[dr,dr,dr,I]+"\\)$"),ze=new RegExp("^rgba\\("+[U,U,U,I]+"\\)$"),nn=new RegExp("^hsl\\("+[I,U,U]+"\\)$"),He=new RegExp("^hsla\\("+[I,U,U,I]+"\\)$"),pn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _n(){return this.rgb().formatHex()}function Pn(){return this.rgb().formatRgb()}function Sn(i){var a,o;return i=(i+"").trim().toLowerCase(),(a=Q.exec(i))?(o=a[1].length,a=parseInt(a[1],16),o===6?Nr(a):o===3?new _i(a>>8&15|a>>4&240,a>>4&15|240&a,(15&a)<<4|15&a,1):o===8?br(a>>24&255,a>>16&255,a>>8&255,(255&a)/255):o===4?br(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|240&a,((15&a)<<4|15&a)/255):null):(a=mt.exec(i))?new _i(a[1],a[2],a[3],1):(a=te.exec(i))?new _i(255*a[1]/100,255*a[2]/100,255*a[3]/100,1):(a=Ne.exec(i))?br(a[1],a[2],a[3],a[4]):(a=ze.exec(i))?br(255*a[1]/100,255*a[2]/100,255*a[3]/100,a[4]):(a=nn.exec(i))?io(a[1],a[2]/100,a[3]/100,1):(a=He.exec(i))?io(a[1],a[2]/100,a[3]/100,a[4]):pn.hasOwnProperty(i)?Nr(pn[i]):i==="transparent"?new _i(NaN,NaN,NaN,0):null}function Nr(i){return new _i(i>>16&255,i>>8&255,255&i,1)}function br(i,a,o,u){return u<=0&&(i=a=o=NaN),new _i(i,a,o,u)}function Ai(i){return i instanceof ba||(i=Sn(i)),i?new _i((i=i.rgb()).r,i.g,i.b,i.opacity):new _i}function zi(i,a,o,u){return arguments.length===1?Ai(i):new _i(i,a,o,u==null?1:u)}function _i(i,a,o,u){this.r=+i,this.g=+a,this.b=+o,this.opacity=+u}function Lo(){return"#"+yl(this.r)+yl(this.g)+yl(this.b)}function yu(){var i=this.opacity;return((i=isNaN(i)?1:Math.max(0,Math.min(1,i)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(i===1?")":", "+i+")")}function yl(i){return((i=Math.max(0,Math.min(255,Math.round(i)||0)))<16?"0":"")+i.toString(16)}function io(i,a,o,u){return u<=0?i=a=o=NaN:o<=0||o>=1?i=a=NaN:a<=0&&(i=NaN),new mo(i,a,o,u)}function qh(i){if(i instanceof mo)return new mo(i.h,i.s,i.l,i.opacity);if(i instanceof ba||(i=Sn(i)),!i)return new mo;if(i instanceof mo)return i;var a=(i=i.rgb()).r/255,o=i.g/255,u=i.b/255,p=Math.min(a,o,u),g=Math.max(a,o,u),v=NaN,x=g-p,T=(g+p)/2;return x?(v=a===g?(o-u)/x+6*(o<u):o===g?(u-a)/x+2:(a-o)/x+4,x/=T<.5?g+p:2-g-p,v*=60):x=T>0&&T<1?0:v,new mo(v,x,T,i.opacity)}function Zo(i,a,o,u){return arguments.length===1?qh(i):new mo(i,a,o,u==null?1:u)}function mo(i,a,o,u){this.h=+i,this.s=+a,this.l=+o,this.opacity=+u}function Mi(i,a,o){return 255*(i<60?a+(o-a)*i/60:i<180?o:i<240?a+(o-a)*(240-i)/60:a)}function Mo(i,a,o,u,p){var g=i*i,v=g*i;return((1-3*i+3*g-v)*a+(4-6*g+3*v)*o+(1+3*i+3*g-3*v)*u+v*p)/6}function Wh(i){var a=i.length-1;return function(o){var u=o<=0?o=0:o>=1?(o=1,a-1):Math.floor(o*a),p=i[u],g=i[u+1],v=u>0?i[u-1]:2*p-g,x=u<a-1?i[u+2]:2*g-p;return Mo((o-u/a)*a,v,p,g,x)}}function mu(i){var a=i.length;return function(o){var u=Math.floor(((o%=1)<0?++o:o)*a),p=i[(u+a-1)%a],g=i[u%a],v=i[(u+1)%a],x=i[(u+2)%a];return Mo((o-u/a)*a,p,g,v,x)}}ea(ba,Sn,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:_n,formatHex:_n,formatHsl:function(){return qh(this).formatHsl()},formatRgb:Pn,toString:Pn}),ea(_i,zi,Ui(ba,{brighter:function(i){return i=i==null?Ka:Math.pow(Ka,i),new _i(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=i==null?mi:Math.pow(mi,i),new _i(this.r*i,this.g*i,this.b*i,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Lo,formatHex:Lo,formatRgb:yu,toString:yu})),ea(mo,Zo,Ui(ba,{brighter:function(i){return i=i==null?Ka:Math.pow(Ka,i),new mo(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?mi:Math.pow(mi,i),new mo(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+360*(this.h<0),a=isNaN(i)||isNaN(this.s)?0:this.s,o=this.l,u=o+(o<.5?o:1-o)*a,p=2*o-u;return new _i(Mi(i>=240?i-240:i+120,p,u),Mi(i,p,u),Mi(i<120?i+240:i-120,p,u),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var i=this.opacity;return((i=isNaN(i)?1:Math.max(0,Math.min(1,i)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(i===1?")":", "+i+")")}}));const Ds=i=>()=>i;function Gh(i,a){return function(o){return i+o*a}}function ml(i,a){var o=a-i;return o?Gh(i,o>180||o<-180?o-360*Math.round(o/360):o):Ds(isNaN(i)?a:i)}function Ki(i,a){var o=a-i;return o?Gh(i,o):Ds(isNaN(i)?a:i)}const Bs=function i(a){var o=function(p){return(p=+p)==1?Ki:function(g,v){return v-g?function(x,T,C){return x=Math.pow(x,C),T=Math.pow(T,C)-x,C=1/C,function(O){return Math.pow(x+O*T,C)}}(g,v,p):Ds(isNaN(g)?v:g)}}(a);function u(p,g){var v=o((p=zi(p)).r,(g=zi(g)).r),x=o(p.g,g.g),T=o(p.b,g.b),C=Ki(p.opacity,g.opacity);return function(O){return p.r=v(O),p.g=x(O),p.b=T(O),p.opacity=C(O),p+""}}return u.gamma=i,u}(1);function ps(i){return function(a){var o,u,p=a.length,g=new Array(p),v=new Array(p),x=new Array(p);for(o=0;o<p;++o)u=zi(a[o]),g[o]=u.r||0,v[o]=u.g||0,x[o]=u.b||0;return g=i(g),v=i(v),x=i(x),u.opacity=1,function(T){return u.r=g(T),u.g=v(T),u.b=x(T),u+""}}}var _l=ps(Wh),of=ps(mu);function Cc(i,a){a||(a=[]);var o,u=i?Math.min(a.length,i.length):0,p=a.slice();return function(g){for(o=0;o<u;++o)p[o]=i[o]*(1-g)+a[o]*g;return p}}function Nc(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}function bl(i,a){return(Nc(a)?Cc:_u)(i,a)}function _u(i,a){var o,u=a?a.length:0,p=i?Math.min(u,i.length):0,g=new Array(p),v=new Array(u);for(o=0;o<p;++o)g[o]=Kr(i[o],a[o]);for(;o<u;++o)v[o]=a[o];return function(x){for(o=0;o<p;++o)v[o]=g[o](x);return v}}function Vh(i,a){var o=new Date;return i=+i,a=+a,function(u){return o.setTime(i*(1-u)+a*u),o}}function Ja(i,a){return i=+i,a=+a,function(o){return i*(1-o)+a*o}}function Zh(i,a){var o,u={},p={};for(o in i!==null&&typeof i=="object"||(i={}),a!==null&&typeof a=="object"||(a={}),a)o in i?u[o]=Kr(i[o],a[o]):p[o]=a[o];return function(g){for(o in u)p[o]=u[o](g);return p}}var Ic=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ca=new RegExp(Ic.source,"g");function Ji(i,a){var o,u,p,g=Ic.lastIndex=ca.lastIndex=0,v=-1,x=[],T=[];for(i+="",a+="";(o=Ic.exec(i))&&(u=ca.exec(a));)(p=u.index)>g&&(p=a.slice(g,p),x[v]?x[v]+=p:x[++v]=p),(o=o[0])===(u=u[0])?x[v]?x[v]+=u:x[++v]=u:(x[++v]=null,T.push({i:v,x:Ja(o,u)})),g=ca.lastIndex;return g<a.length&&(p=a.slice(g),x[v]?x[v]+=p:x[++v]=p),x.length<2?T[0]?function(C){return function(O){return C(O)+""}}(T[0].x):function(C){return function(){return C}}(a):(a=T.length,function(C){for(var O,z=0;z<a;++z)x[(O=T[z]).i]=O.x(C);return x.join("")})}function Kr(i,a){var o,u=typeof a;return a==null||u==="boolean"?Ds(a):(u==="number"?Ja:u==="string"?(o=Sn(a))?(a=o,Bs):Ji:a instanceof Sn?Bs:a instanceof Date?Vh:Nc(a)?Cc:Array.isArray(a)?_u:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?Zh:Ja)(i,a)}function _o(i){let a;for(;a=i.sourceEvent;)i=a;return i}function Jn(i,a){if(i=_o(i),a===void 0&&(a=i.currentTarget),a){var o=a.ownerSVGElement||a;if(o.createSVGPoint){var u=o.createSVGPoint();return u.x=i.clientX,u.y=i.clientY,[(u=u.matrixTransform(a.getScreenCTM().inverse())).x,u.y]}if(a.getBoundingClientRect){var p=a.getBoundingClientRect();return[i.clientX-p.left-a.clientLeft,i.clientY-p.top-a.clientTop]}}return[i.pageX,i.pageY]}var Ma,Rs,Oo=0,Lc=0,Mc=0,gs=0,bo=0,vl=0,Oc=typeof performance=="object"&&performance.now?performance:Date,Xh=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(i){setTimeout(i,17)};function Dc(){return bo||(Xh(sf),bo=Oc.now()+vl)}function sf(){bo=0}function Bc(){this._call=this._time=this._next=null}function Rc(i,a,o){var u=new Bc;return u.restart(i,a,o),u}function Kh(){Dc(),++Oo;for(var i,a=Ma;a;)(i=bo-a._time)>=0&&a._call.call(void 0,i),a=a._next;--Oo}function Fs(){bo=(gs=Oc.now())+vl,Oo=Lc=0;try{Kh()}finally{Oo=0,function(){for(var i,a,o=Ma,u=1/0;o;)o._call?(u>o._time&&(u=o._time),i=o,o=o._next):(a=o._next,o._next=null,o=i?i._next=a:Ma=a);Rs=i,ao(u)}(),bo=0}}function Fc(){var i=Oc.now(),a=i-gs;a>1e3&&(vl-=a,gs=i)}function ao(i){Oo||(Lc&&(Lc=clearTimeout(Lc)),i-bo>24?(i<1/0&&(Lc=setTimeout(Fs,i-Oc.now()-vl)),Mc&&(Mc=clearInterval(Mc))):(Mc||(gs=Oc.now(),Mc=setInterval(Fc,1e3)),Oo=1,Xh(Fs)))}function vo(i,a,o){var u=new Bc;return a=a==null?0:+a,u.restart(p=>{u.stop(),i(p+a)},a,o),u}Bc.prototype=Rc.prototype={constructor:Bc,restart:function(i,a,o){if(typeof i!="function")throw new TypeError("callback is not a function");o=(o==null?Dc():+o)+(a==null?0:+a),this._next||Rs===this||(Rs?Rs._next=this:Ma=this,Rs=this),this._call=i,this._time=o,ao()},stop:function(){this._call&&(this._call=null,this._time=1/0,ao())}};var xl=sr("start","end","cancel","interrupt"),Jh=[];function Pc(i,a,o,u,p,g){var v=i.__transition;if(v){if(o in v)return}else i.__transition={};(function(x,T,C){var O,z=x.__transition;function F(G){var V,Z,dt,ct;if(C.state!==1)return nt();for(V in z)if((ct=z[V]).name===C.name){if(ct.state===3)return vo(F);ct.state===4?(ct.state=6,ct.timer.stop(),ct.on.call("interrupt",x,x.__data__,ct.index,ct.group),delete z[V]):+V<T&&(ct.state=6,ct.timer.stop(),ct.on.call("cancel",x,x.__data__,ct.index,ct.group),delete z[V])}if(vo(function(){C.state===3&&(C.state=4,C.timer.restart(j,C.delay,C.time),j(G))}),C.state=2,C.on.call("start",x,x.__data__,C.index,C.group),C.state===2){for(C.state=3,O=new Array(dt=C.tween.length),V=0,Z=-1;V<dt;++V)(ct=C.tween[V].value.call(x,x.__data__,C.index,C.group))&&(O[++Z]=ct);O.length=Z+1}}function j(G){for(var V=G<C.duration?C.ease.call(null,G/C.duration):(C.timer.restart(nt),C.state=5,1),Z=-1,dt=O.length;++Z<dt;)O[Z].call(x,V);C.state===5&&(C.on.call("end",x,x.__data__,C.index,C.group),nt())}function nt(){for(var G in C.state=6,C.timer.stop(),delete z[T],z)return;delete x.__transition}z[T]=C,C.timer=Rc(function(G){C.state=1,C.timer.restart(F,C.delay,C.time),C.delay<=G&&F(G-C.delay)},0,C.time)})(i,o,{name:a,index:u,group:p,on:xl,tween:Jh,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:0})}function kl(i,a){var o=Qa(i,a);if(o.state>0)throw new Error("too late; already scheduled");return o}function va(i,a){var o=Qa(i,a);if(o.state>3)throw new Error("too late; already running");return o}function Qa(i,a){var o=i.__transition;if(!o||!(o=o[a]))throw new Error("transition not found");return o}function ys(i,a){var o,u,p,g=i.__transition,v=!0;if(g){for(p in a=a==null?null:a+"",g)(o=g[p]).name===a?(u=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(u?"interrupt":"cancel",i,i.__data__,o.index,o.group),delete g[p]):v=!1;v&&delete i.__transition}}var Uc,zc=180/Math.PI,qi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Qh(i,a,o,u,p,g){var v,x,T;return(v=Math.sqrt(i*i+a*a))&&(i/=v,a/=v),(T=i*o+a*u)&&(o-=i*T,u-=a*T),(x=Math.sqrt(o*o+u*u))&&(o/=x,u/=x,T/=x),i*u<a*o&&(i=-i,a=-a,T=-T,v=-v),{translateX:p,translateY:g,rotate:Math.atan2(a,i)*zc,skewX:Math.atan(T)*zc,scaleX:v,scaleY:x}}function Yc(i,a,o,u){function p(g){return g.length?g.pop()+" ":""}return function(g,v){var x=[],T=[];return g=i(g),v=i(v),function(C,O,z,F,j,nt){if(C!==z||O!==F){var G=j.push("translate(",null,a,null,o);nt.push({i:G-4,x:Ja(C,z)},{i:G-2,x:Ja(O,F)})}else(z||F)&&j.push("translate("+z+a+F+o)}(g.translateX,g.translateY,v.translateX,v.translateY,x,T),function(C,O,z,F){C!==O?(C-O>180?O+=360:O-C>180&&(C+=360),F.push({i:z.push(p(z)+"rotate(",null,u)-2,x:Ja(C,O)})):O&&z.push(p(z)+"rotate("+O+u)}(g.rotate,v.rotate,x,T),function(C,O,z,F){C!==O?F.push({i:z.push(p(z)+"skewX(",null,u)-2,x:Ja(C,O)}):O&&z.push(p(z)+"skewX("+O+u)}(g.skewX,v.skewX,x,T),function(C,O,z,F,j,nt){if(C!==z||O!==F){var G=j.push(p(j)+"scale(",null,",",null,")");nt.push({i:G-4,x:Ja(C,z)},{i:G-2,x:Ja(O,F)})}else z===1&&F===1||j.push(p(j)+"scale("+z+","+F+")")}(g.scaleX,g.scaleY,v.scaleX,v.scaleY,x,T),g=v=null,function(C){for(var O,z=-1,F=T.length;++z<F;)x[(O=T[z]).i]=O.x(C);return x.join("")}}}var t1=Yc(function(i){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(i+"");return a.isIdentity?qi:Qh(a.a,a.b,a.c,a.d,a.e,a.f)},"px, ","px)","deg)"),bu=Yc(function(i){return i==null?qi:(Uc||(Uc=document.createElementNS("http://www.w3.org/2000/svg","g")),Uc.setAttribute("transform",i),(i=Uc.transform.baseVal.consolidate())?Qh((i=i.matrix).a,i.b,i.c,i.d,i.e,i.f):qi)},", ",")",")");function cf(i,a){var o,u;return function(){var p=va(this,i),g=p.tween;if(g!==o){for(var v=0,x=(u=o=g).length;v<x;++v)if(u[v].name===a){(u=u.slice()).splice(v,1);break}}p.tween=u}}function vu(i,a,o){var u,p;if(typeof o!="function")throw new Error;return function(){var g=va(this,i),v=g.tween;if(v!==u){p=(u=v).slice();for(var x={name:a,value:o},T=0,C=p.length;T<C;++T)if(p[T].name===a){p[T]=x;break}T===C&&p.push(x)}g.tween=p}}function wl(i,a,o){var u=i._id;return i.each(function(){var p=va(this,u);(p.value||(p.value={}))[a]=o.apply(this,arguments)}),function(p){return Qa(p,u).value[a]}}function xu(i,a){var o;return(typeof a=="number"?Ja:a instanceof Sn?Bs:(o=Sn(a))?(a=o,Bs):Ji)(i,a)}function jc(i){return function(){this.removeAttribute(i)}}function ku(i){return function(){this.removeAttributeNS(i.space,i.local)}}function e1(i,a,o){var u,p,g=o+"";return function(){var v=this.getAttribute(i);return v===g?null:v===u?p:p=a(u=v,o)}}function Oa(i,a,o){var u,p,g=o+"";return function(){var v=this.getAttributeNS(i.space,i.local);return v===g?null:v===u?p:p=a(u=v,o)}}function lf(i,a,o){var u,p,g;return function(){var v,x,T=o(this);if(T!=null)return(v=this.getAttribute(i))===(x=T+"")?null:v===u&&x===p?g:(p=x,g=a(u=v,T));this.removeAttribute(i)}}function n1(i,a,o){var u,p,g;return function(){var v,x,T=o(this);if(T!=null)return(v=this.getAttributeNS(i.space,i.local))===(x=T+"")?null:v===u&&x===p?g:(p=x,g=a(u=v,T));this.removeAttributeNS(i.space,i.local)}}function Do(i,a){return function(o){this.setAttribute(i,a.call(this,o))}}function Xo(i,a){return function(o){this.setAttributeNS(i.space,i.local,a.call(this,o))}}function ai(i,a){var o,u;function p(){var g=a.apply(this,arguments);return g!==u&&(o=(u=g)&&Xo(i,g)),o}return p._value=a,p}function r1(i,a){var o,u;function p(){var g=a.apply(this,arguments);return g!==u&&(o=(u=g)&&Do(i,g)),o}return p._value=a,p}function i1(i,a){return function(){kl(this,i).delay=+a.apply(this,arguments)}}function a1(i,a){return a=+a,function(){kl(this,i).delay=a}}function uf(i,a){return function(){va(this,i).duration=+a.apply(this,arguments)}}function wu(i,a){return a=+a,function(){va(this,i).duration=a}}function Eu(i,a){if(typeof a!="function")throw new Error;return function(){va(this,i).ease=a}}function Bo(i,a,o){var u,p,g=function(v){return(v+"").trim().split(/^|\s+/).every(function(x){var T=x.indexOf(".");return T>=0&&(x=x.slice(0,T)),!x||x==="start"})}(a)?kl:va;return function(){var v=g(this,i),x=v.on;x!==u&&(p=(u=x).copy()).on(a,o),v.on=p}}var El=_a.prototype.constructor;function o1(i){return function(){this.style.removeProperty(i)}}function s1(i,a,o){return function(u){this.style.setProperty(i,a.call(this,u),o)}}function Tu(i,a,o){var u,p;function g(){var v=a.apply(this,arguments);return v!==p&&(u=(p=v)&&s1(i,v,o)),u}return g._value=a,g}function Ci(i){return function(a){this.textContent=i.call(this,a)}}function ms(i){var a,o;function u(){var p=i.apply(this,arguments);return p!==o&&(a=(o=p)&&Ci(p)),a}return u._value=i,u}var Ps=0;function Wi(i,a,o,u){this._groups=i,this._parents=a,this._name=o,this._id=u}function $c(i){return _a().transition(i)}function Tl(){return++Ps}var oo=_a.prototype;function Su(i){return i*i*i}function Sl(i){return--i*i*i+1}function Us(i){return((i*=2)<=1?i*i*i:(i-=2)*i*i+2)/2}Wi.prototype=$c.prototype={constructor:Wi,select:function(i){var a=this._name,o=this._id;typeof i!="function"&&(i=gi(i));for(var u=this._groups,p=u.length,g=new Array(p),v=0;v<p;++v)for(var x,T,C=u[v],O=C.length,z=g[v]=new Array(O),F=0;F<O;++F)(x=C[F])&&(T=i.call(x,x.__data__,F,C))&&("__data__"in x&&(T.__data__=x.__data__),z[F]=T,Pc(z[F],a,o,F,z,Qa(x,o)));return new Wi(g,this._parents,a,o)},selectAll:function(i){var a=this._name,o=this._id;typeof i!="function"&&(i=Ya(i));for(var u=this._groups,p=u.length,g=[],v=[],x=0;x<p;++x)for(var T,C=u[x],O=C.length,z=0;z<O;++z)if(T=C[z]){for(var F,j=i.call(T,T.__data__,z,C),nt=Qa(T,o),G=0,V=j.length;G<V;++G)(F=j[G])&&Pc(F,a,o,G,j,nt);g.push(j),v.push(T)}return new Wi(g,v,a,o)},selectChild:oo.selectChild,selectChildren:oo.selectChildren,filter:function(i){typeof i!="function"&&(i=$r(i));for(var a=this._groups,o=a.length,u=new Array(o),p=0;p<o;++p)for(var g,v=a[p],x=v.length,T=u[p]=[],C=0;C<x;++C)(g=v[C])&&i.call(g,g.__data__,C,v)&&T.push(g);return new Wi(u,this._parents,this._name,this._id)},merge:function(i){if(i._id!==this._id)throw new Error;for(var a=this._groups,o=i._groups,u=a.length,p=o.length,g=Math.min(u,p),v=new Array(u),x=0;x<g;++x)for(var T,C=a[x],O=o[x],z=C.length,F=v[x]=new Array(z),j=0;j<z;++j)(T=C[j]||O[j])&&(F[j]=T);for(;x<u;++x)v[x]=a[x];return new Wi(v,this._parents,this._name,this._id)},selection:function(){return new El(this._groups,this._parents)},transition:function(){for(var i=this._name,a=this._id,o=Tl(),u=this._groups,p=u.length,g=0;g<p;++g)for(var v,x=u[g],T=x.length,C=0;C<T;++C)if(v=x[C]){var O=Qa(v,a);Pc(v,i,o,C,x,{time:O.time+O.delay+O.duration,delay:0,duration:O.duration,ease:O.ease})}return new Wi(u,this._parents,i,o)},call:oo.call,nodes:oo.nodes,node:oo.node,size:oo.size,empty:oo.empty,each:oo.each,on:function(i,a){var o=this._id;return arguments.length<2?Qa(this.node(),o).on.on(i):this.each(Bo(o,i,a))},attr:function(i,a){var o=xr(i),u=o==="transform"?bu:xu;return this.attrTween(i,typeof a=="function"?(o.local?n1:lf)(o,u,wl(this,"attr."+i,a)):a==null?(o.local?ku:jc)(o):(o.local?Oa:e1)(o,u,a))},attrTween:function(i,a){var o="attr."+i;if(arguments.length<2)return(o=this.tween(o))&&o._value;if(a==null)return this.tween(o,null);if(typeof a!="function")throw new Error;var u=xr(i);return this.tween(o,(u.local?ai:r1)(u,a))},style:function(i,a,o){var u=(i+="")=="transform"?t1:xu;return a==null?this.styleTween(i,function(p,g){var v,x,T;return function(){var C=gr(this,p),O=(this.style.removeProperty(p),gr(this,p));return C===O?null:C===v&&O===x?T:T=g(v=C,x=O)}}(i,u)).on("end.style."+i,o1(i)):typeof a=="function"?this.styleTween(i,function(p,g,v){var x,T,C;return function(){var O=gr(this,p),z=v(this),F=z+"";return z==null&&(this.style.removeProperty(p),F=z=gr(this,p)),O===F?null:O===x&&F===T?C:(T=F,C=g(x=O,z))}}(i,u,wl(this,"style."+i,a))).each(function(p,g){var v,x,T,C,O="style."+g,z="end."+O;return function(){var F=va(this,p),j=F.on,nt=F.value[O]==null?C||(C=o1(g)):void 0;j===v&&T===nt||(x=(v=j).copy()).on(z,T=nt),F.on=x}}(this._id,i)):this.styleTween(i,function(p,g,v){var x,T,C=v+"";return function(){var O=gr(this,p);return O===C?null:O===x?T:T=g(x=O,v)}}(i,u,a),o).on("end.style."+i,null)},styleTween:function(i,a,o){var u="style."+(i+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(a==null)return this.tween(u,null);if(typeof a!="function")throw new Error;return this.tween(u,Tu(i,a,o==null?"":o))},text:function(i){return this.tween("text",typeof i=="function"?function(a){return function(){var o=a(this);this.textContent=o==null?"":o}}(wl(this,"text",i)):function(a){return function(){this.textContent=a}}(i==null?"":i+""))},textTween:function(i){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(i==null)return this.tween(a,null);if(typeof i!="function")throw new Error;return this.tween(a,ms(i))},remove:function(){return this.on("end.remove",function(i){return function(){var a=this.parentNode;for(var o in this.__transition)if(+o!==i)return;a&&a.removeChild(this)}}(this._id))},tween:function(i,a){var o=this._id;if(i+="",arguments.length<2){for(var u,p=Qa(this.node(),o).tween,g=0,v=p.length;g<v;++g)if((u=p[g]).name===i)return u.value;return null}return this.each((a==null?cf:vu)(o,i,a))},delay:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?i1:a1)(a,i)):Qa(this.node(),a).delay},duration:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?uf:wu)(a,i)):Qa(this.node(),a).duration},ease:function(i){var a=this._id;return arguments.length?this.each(Eu(a,i)):Qa(this.node(),a).ease},easeVarying:function(i){if(typeof i!="function")throw new Error;return this.each(function(a,o){return function(){var u=o.apply(this,arguments);if(typeof u!="function")throw new Error;va(this,a).ease=u}}(this._id,i))},end:function(){var i,a,o=this,u=o._id,p=o.size();return new Promise(function(g,v){var x={value:v},T={value:function(){--p==0&&g()}};o.each(function(){var C=va(this,u),O=C.on;O!==i&&((a=(i=O).copy())._.cancel.push(x),a._.interrupt.push(x),a._.end.push(T)),C.on=a}),p===0&&g()})},[Symbol.iterator]:oo[Symbol.iterator]};var Al={time:null,delay:0,duration:250,ease:Us};function hf(i,a){for(var o;!(o=i.__transition)||!(o=o[a]);)if(!(i=i.parentNode))throw new Error(`transition ${a} not found`);return o}_a.prototype.interrupt=function(i){return this.each(function(){ys(this,i)})},_a.prototype.transition=function(i){var a,o;i instanceof Wi?(a=i._id,i=i._name):(a=Tl(),(o=Al).time=Dc(),i=i==null?null:i+"");for(var u=this._groups,p=u.length,g=0;g<p;++g)for(var v,x=u[g],T=x.length,C=0;C<T;++C)(v=x[C])&&Pc(v,i,a,C,x,o||hf(v,a));return new Wi(u,this._parents,i,a)};var Au=[null];function c1(i,a){var o,u,p=i.__transition;if(p){for(u in a=a==null?null:a+"",p)if((o=p[u]).state>1&&o.name===a)return new Wi([[i]],Au,a,+u)}return null}const Cu=i=>()=>i;function Nu(i,{sourceEvent:a,target:o,selection:u,mode:p,dispatch:g}){Object.defineProperties(this,{type:{value:i,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},selection:{value:u,enumerable:!0,configurable:!0},mode:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}function l1(i){i.stopImmediatePropagation()}function Iu(i){i.preventDefault(),i.stopImmediatePropagation()}var Lu={name:"drag"},Cl={name:"space"},lr={name:"handle"},zs={name:"center"};const{abs:Hc,max:la,min:Jr}=Math;function u1(i){return[+i[0],+i[1]]}function Nl(i){return[u1(i[0]),u1(i[1])]}var Il={name:"x",handles:["w","e"].map(qc),input:function(i,a){return i==null?null:[[+i[0],a[0][1]],[+i[1],a[1][1]]]},output:function(i){return i&&[i[0][0],i[1][0]]}},Ll={name:"y",handles:["n","s"].map(qc),input:function(i,a){return i==null?null:[[a[0][0],+i[0]],[a[1][0],+i[1]]]},output:function(i){return i&&[i[0][1],i[1][1]]}},ff={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(qc),input:function(i){return i==null?null:Nl(i)},output:function(i){return i}},Ro={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},h1={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},f1={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},df={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},pf={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function qc(i){return{type:i}}function gf(i){return!i.ctrlKey&&!i.button}function yf(){var i=this.ownerSVGElement||this;return i.hasAttribute("viewBox")?[[(i=i.viewBox.baseVal).x,i.y],[i.x+i.width,i.y+i.height]]:[[0,0],[i.width.baseVal.value,i.height.baseVal.value]]}function Fo(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mu(i){for(;!i.__brush;)if(!(i=i.parentNode))return;return i.__brush}function d1(i){return i[0][0]===i[1][0]||i[0][1]===i[1][1]}function p1(i){var a=i.__brush;return a?a.dim.output(a.selection):null}function mf(){return Ou(Il)}function g1(){return Ou(Ll)}function y1(){return Ou(ff)}function Ou(i){var a,o=yf,u=gf,p=Fo,g=!0,v=sr("start","brush","end"),x=6;function T(V){var Z=V.property("__brush",G).selectAll(".overlay").data([qc("overlay")]);Z.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ro.overlay).merge(Z).each(function(){var ct=Mu(this).extent;Hi(this).attr("x",ct[0][0]).attr("y",ct[0][1]).attr("width",ct[1][0]-ct[0][0]).attr("height",ct[1][1]-ct[0][1])}),V.selectAll(".selection").data([qc("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ro.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var dt=V.selectAll(".handle").data(i.handles,function(ct){return ct.type});dt.exit().remove(),dt.enter().append("rect").attr("class",function(ct){return"handle handle--"+ct.type}).attr("cursor",function(ct){return Ro[ct.type]}),V.each(C).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",F).filter(p).on("touchstart.brush",F).on("touchmove.brush",j).on("touchend.brush touchcancel.brush",nt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function C(){var V=Hi(this),Z=Mu(this).selection;Z?(V.selectAll(".selection").style("display",null).attr("x",Z[0][0]).attr("y",Z[0][1]).attr("width",Z[1][0]-Z[0][0]).attr("height",Z[1][1]-Z[0][1]),V.selectAll(".handle").style("display",null).attr("x",function(dt){return dt.type[dt.type.length-1]==="e"?Z[1][0]-x/2:Z[0][0]-x/2}).attr("y",function(dt){return dt.type[0]==="s"?Z[1][1]-x/2:Z[0][1]-x/2}).attr("width",function(dt){return dt.type==="n"||dt.type==="s"?Z[1][0]-Z[0][0]+x:x}).attr("height",function(dt){return dt.type==="e"||dt.type==="w"?Z[1][1]-Z[0][1]+x:x})):V.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function O(V,Z,dt){var ct=V.__brush.emitter;return!ct||dt&&ct.clean?new z(V,Z,dt):ct}function z(V,Z,dt){this.that=V,this.args=Z,this.state=V.__brush,this.active=0,this.clean=dt}function F(V){if((!a||V.touches)&&u.apply(this,arguments)){var Z,dt,ct,lt,vt,wt,Kt,me,Wt,Ut,zt,Yt=this,Et=V.target.__data__.type,Bt=(g&&V.metaKey?Et="overlay":Et)==="selection"?Lu:g&&V.altKey?zs:lr,Gt=i===Ll?null:df[Et],ne=i===Il?null:pf[Et],Ae=Mu(Yt),$e=Ae.extent,Ke=Ae.selection,yn=$e[0][0],Je=$e[0][1],$n=$e[1][0],Wn=$e[1][1],Dn=0,Fn=0,Fr=Gt&&ne&&g&&V.shiftKey,_r=Array.from(V.touches||[V],vr=>{const aa=vr.identifier;return(vr=Jn(vr,Yt)).point0=vr.slice(),vr.identifier=aa,vr});ys(Yt);var eo=O(Yt,arguments,!0).beforestart();if(Et==="overlay"){Ke&&(Wt=!0);const vr=[_r[0],_r[1]||_r[0]];Ae.selection=Ke=[[Z=i===Ll?yn:Jr(vr[0][0],vr[1][0]),ct=i===Il?Je:Jr(vr[0][1],vr[1][1])],[vt=i===Ll?$n:la(vr[0][0],vr[1][0]),Kt=i===Il?Wn:la(vr[0][1],vr[1][1])]],_r.length>1&&hl(V)}else Z=Ke[0][0],ct=Ke[0][1],vt=Ke[1][0],Kt=Ke[1][1];dt=Z,lt=ct,wt=vt,me=Kt;var Ec=Hi(Yt).attr("pointer-events","none"),Vo=Ec.selectAll(".overlay").attr("cursor",Ro[Et]);if(V.touches)eo.moved=Nm,eo.ended=Im;else{var du=Hi(V.view).on("mousemove.brush",Nm,!0).on("mouseup.brush",Im,!0);g&&du.on("keydown.brush",T5,!0).on("keyup.brush",S5,!0),Ln(V.view)}C.call(Yt),eo.start(V,Bt.name)}function Nm(vr){for(const aa of vr.changedTouches||[vr])for(const Hh of _r)Hh.identifier===aa.identifier&&(Hh.cur=Jn(aa,Yt));if(Fr&&!Ut&&!zt&&_r.length===1){const aa=_r[0];Hc(aa.cur[0]-aa[0])>Hc(aa.cur[1]-aa[1])?zt=!0:Ut=!0}for(const aa of _r)aa.cur&&(aa[0]=aa.cur[0],aa[1]=aa.cur[1]);Wt=!0,Iu(vr),hl(vr)}function hl(vr){const aa=_r[0],Hh=aa.point0;var Tc;switch(Dn=aa[0]-Hh[0],Fn=aa[1]-Hh[1],Bt){case Cl:case Lu:Gt&&(Dn=la(yn-Z,Jr($n-vt,Dn)),dt=Z+Dn,wt=vt+Dn),ne&&(Fn=la(Je-ct,Jr(Wn-Kt,Fn)),lt=ct+Fn,me=Kt+Fn);break;case lr:_r[1]?(Gt&&(dt=la(yn,Jr($n,_r[0][0])),wt=la(yn,Jr($n,_r[1][0])),Gt=1),ne&&(lt=la(Je,Jr(Wn,_r[0][1])),me=la(Je,Jr(Wn,_r[1][1])),ne=1)):(Gt<0?(Dn=la(yn-Z,Jr($n-Z,Dn)),dt=Z+Dn,wt=vt):Gt>0&&(Dn=la(yn-vt,Jr($n-vt,Dn)),dt=Z,wt=vt+Dn),ne<0?(Fn=la(Je-ct,Jr(Wn-ct,Fn)),lt=ct+Fn,me=Kt):ne>0&&(Fn=la(Je-Kt,Jr(Wn-Kt,Fn)),lt=ct,me=Kt+Fn));break;case zs:Gt&&(dt=la(yn,Jr($n,Z-Dn*Gt)),wt=la(yn,Jr($n,vt+Dn*Gt))),ne&&(lt=la(Je,Jr(Wn,ct-Fn*ne)),me=la(Je,Jr(Wn,Kt+Fn*ne)))}wt<dt&&(Gt*=-1,Tc=Z,Z=vt,vt=Tc,Tc=dt,dt=wt,wt=Tc,Et in h1&&Vo.attr("cursor",Ro[Et=h1[Et]])),me<lt&&(ne*=-1,Tc=ct,ct=Kt,Kt=Tc,Tc=lt,lt=me,me=Tc,Et in f1&&Vo.attr("cursor",Ro[Et=f1[Et]])),Ae.selection&&(Ke=Ae.selection),Ut&&(dt=Ke[0][0],wt=Ke[1][0]),zt&&(lt=Ke[0][1],me=Ke[1][1]),Ke[0][0]===dt&&Ke[0][1]===lt&&Ke[1][0]===wt&&Ke[1][1]===me||(Ae.selection=[[dt,lt],[wt,me]],C.call(Yt),eo.brush(vr,Bt.name))}function Im(vr){if(l1(vr),vr.touches){if(vr.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500)}else ds(vr.view,Wt),du.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Ec.attr("pointer-events","all"),Vo.attr("cursor",Ro.overlay),Ae.selection&&(Ke=Ae.selection),d1(Ke)&&(Ae.selection=null,C.call(Yt)),eo.end(vr,Bt.name)}function T5(vr){switch(vr.keyCode){case 16:Fr=Gt&≠break;case 18:Bt===lr&&(Gt&&(vt=wt-Dn*Gt,Z=dt+Dn*Gt),ne&&(Kt=me-Fn*ne,ct=lt+Fn*ne),Bt=zs,hl(vr));break;case 32:Bt!==lr&&Bt!==zs||(Gt<0?vt=wt-Dn:Gt>0&&(Z=dt-Dn),ne<0?Kt=me-Fn:ne>0&&(ct=lt-Fn),Bt=Cl,Vo.attr("cursor",Ro.selection),hl(vr));break;default:return}Iu(vr)}function S5(vr){switch(vr.keyCode){case 16:Fr&&(Ut=zt=Fr=!1,hl(vr));break;case 18:Bt===zs&&(Gt<0?vt=wt:Gt>0&&(Z=dt),ne<0?Kt=me:ne>0&&(ct=lt),Bt=lr,hl(vr));break;case 32:Bt===Cl&&(vr.altKey?(Gt&&(vt=wt-Dn*Gt,Z=dt+Dn*Gt),ne&&(Kt=me-Fn*ne,ct=lt+Fn*ne),Bt=zs):(Gt<0?vt=wt:Gt>0&&(Z=dt),ne<0?Kt=me:ne>0&&(ct=lt),Bt=lr),Vo.attr("cursor",Ro[Et]),hl(vr));break;default:return}Iu(vr)}}function j(V){O(this,arguments).moved(V)}function nt(V){O(this,arguments).ended(V)}function G(){var V=this.__brush||{selection:null};return V.extent=Nl(o.apply(this,arguments)),V.dim=i,V}return T.move=function(V,Z,dt){V.tween?V.on("start.brush",function(ct){O(this,arguments).beforestart().start(ct)}).on("interrupt.brush end.brush",function(ct){O(this,arguments).end(ct)}).tween("brush",function(){var ct=this,lt=ct.__brush,vt=O(ct,arguments),wt=lt.selection,Kt=i.input(typeof Z=="function"?Z.apply(this,arguments):Z,lt.extent),me=Kr(wt,Kt);function Wt(Ut){lt.selection=Ut===1&&Kt===null?null:me(Ut),C.call(ct),vt.brush()}return wt!==null&&Kt!==null?Wt:Wt(1)}):V.each(function(){var ct=this,lt=arguments,vt=ct.__brush,wt=i.input(typeof Z=="function"?Z.apply(ct,lt):Z,vt.extent),Kt=O(ct,lt).beforestart();ys(ct),vt.selection=wt===null?null:wt,C.call(ct),Kt.start(dt).brush(dt).end(dt)})},T.clear=function(V,Z){T.move(V,null,Z)},z.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function(V,Z){return this.starting?(this.starting=!1,this.emit("start",V,Z)):this.emit("brush",V),this},brush:function(V,Z){return this.emit("brush",V,Z),this},end:function(V,Z){return--this.active==0&&(delete this.state.emitter,this.emit("end",V,Z)),this},emit:function(V,Z,dt){var ct=Hi(this.that).datum();v.call(V,this.that,new Nu(V,{sourceEvent:Z,target:T,selection:i.output(this.state.selection),mode:dt,dispatch:v}),ct)}},T.extent=function(V){return arguments.length?(o=typeof V=="function"?V:Cu(Nl(V)),T):o},T.filter=function(V){return arguments.length?(u=typeof V=="function"?V:Cu(!!V),T):u},T.touchable=function(V){return arguments.length?(p=typeof V=="function"?V:Cu(!!V),T):p},T.handleSize=function(V){return arguments.length?(x=+V,T):x},T.keyModifiers=function(V){return arguments.length?(g=!!V,T):g},T.on=function(){var V=v.on.apply(v,arguments);return V===v?T:V},T}var Ml=Math.abs,Ko=Math.cos,Po=Math.sin,so=Math.PI,Ys=so/2,Ol=2*so,js=Math.max,_s=1e-12;function Wc(i,a){return Array.from({length:a-i},(o,u)=>i+u)}function Du(i){return function(a,o){return i(a.source.value+a.target.value,o.source.value+o.target.value)}}function Bu(){return Hs(!1,!1)}function $s(){return Hs(!1,!0)}function m1(){return Hs(!0,!1)}function Hs(i,a){var o=0,u=null,p=null,g=null;function v(x){var T,C=x.length,O=new Array(C),z=Wc(0,C),F=new Array(C*C),j=new Array(C),nt=0;x=Float64Array.from({length:C*C},a?(G,V)=>x[V%C][V/C|0]:(G,V)=>x[V/C|0][V%C]);for(let G=0;G<C;++G){let V=0;for(let Z=0;Z<C;++Z)V+=x[G*C+Z]+i*x[Z*C+G];nt+=O[G]=V}T=(nt=js(0,Ol-o*C)/nt)?o:Ol/C;{let G=0;u&&z.sort((V,Z)=>u(O[V],O[Z]));for(const V of z){const Z=G;if(i){const dt=Wc(1+~C,C).filter(ct=>ct<0?x[~ct*C+V]:x[V*C+ct]);p&&dt.sort((ct,lt)=>p(ct<0?-x[~ct*C+V]:x[V*C+ct],lt<0?-x[~lt*C+V]:x[V*C+lt]));for(const ct of dt)ct<0?(F[~ct*C+V]||(F[~ct*C+V]={source:null,target:null})).target={index:V,startAngle:G,endAngle:G+=x[~ct*C+V]*nt,value:x[~ct*C+V]}:(F[V*C+ct]||(F[V*C+ct]={source:null,target:null})).source={index:V,startAngle:G,endAngle:G+=x[V*C+ct]*nt,value:x[V*C+ct]};j[V]={index:V,startAngle:Z,endAngle:G,value:O[V]}}else{const dt=Wc(0,C).filter(ct=>x[V*C+ct]||x[ct*C+V]);p&&dt.sort((ct,lt)=>p(x[V*C+ct],x[V*C+lt]));for(const ct of dt){let lt;if(V<ct?(lt=F[V*C+ct]||(F[V*C+ct]={source:null,target:null}),lt.source={index:V,startAngle:G,endAngle:G+=x[V*C+ct]*nt,value:x[V*C+ct]}):(lt=F[ct*C+V]||(F[ct*C+V]={source:null,target:null}),lt.target={index:V,startAngle:G,endAngle:G+=x[V*C+ct]*nt,value:x[V*C+ct]},V===ct&&(lt.source=lt.target)),lt.source&<.target&<.source.value<lt.target.value){const vt=lt.source;lt.source=lt.target,lt.target=vt}}j[V]={index:V,startAngle:Z,endAngle:G,value:O[V]}}G+=T}}return(F=Object.values(F)).groups=j,g?F.sort(g):F}return v.padAngle=function(x){return arguments.length?(o=js(0,x),v):o},v.sortGroups=function(x){return arguments.length?(u=x,v):u},v.sortSubgroups=function(x){return arguments.length?(p=x,v):p},v.sortChords=function(x){return arguments.length?(x==null?g=null:(g=Du(x))._=x,v):g&&g._},v}const bs=Math.PI,Gc=2*bs,Uo=1e-6,_1=Gc-Uo;function Dl(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function b1(){return new Dl}Dl.prototype=b1.prototype={constructor:Dl,moveTo:function(i,a){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+a)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(i,a){this._+="L"+(this._x1=+i)+","+(this._y1=+a)},quadraticCurveTo:function(i,a,o,u){this._+="Q"+ +i+","+ +a+","+(this._x1=+o)+","+(this._y1=+u)},bezierCurveTo:function(i,a,o,u,p,g){this._+="C"+ +i+","+ +a+","+ +o+","+ +u+","+(this._x1=+p)+","+(this._y1=+g)},arcTo:function(i,a,o,u,p){i=+i,a=+a,o=+o,u=+u,p=+p;var g=this._x1,v=this._y1,x=o-i,T=u-a,C=g-i,O=v-a,z=C*C+O*O;if(p<0)throw new Error("negative radius: "+p);if(this._x1===null)this._+="M"+(this._x1=i)+","+(this._y1=a);else if(z>Uo)if(Math.abs(O*x-T*C)>Uo&&p){var F=o-g,j=u-v,nt=x*x+T*T,G=F*F+j*j,V=Math.sqrt(nt),Z=Math.sqrt(z),dt=p*Math.tan((bs-Math.acos((nt+z-G)/(2*V*Z)))/2),ct=dt/Z,lt=dt/V;Math.abs(ct-1)>Uo&&(this._+="L"+(i+ct*C)+","+(a+ct*O)),this._+="A"+p+","+p+",0,0,"+ +(O*F>C*j)+","+(this._x1=i+lt*x)+","+(this._y1=a+lt*T)}else this._+="L"+(this._x1=i)+","+(this._y1=a)},arc:function(i,a,o,u,p,g){i=+i,a=+a,g=!!g;var v=(o=+o)*Math.cos(u),x=o*Math.sin(u),T=i+v,C=a+x,O=1^g,z=g?u-p:p-u;if(o<0)throw new Error("negative radius: "+o);this._x1===null?this._+="M"+T+","+C:(Math.abs(this._x1-T)>Uo||Math.abs(this._y1-C)>Uo)&&(this._+="L"+T+","+C),o&&(z<0&&(z=z%Gc+Gc),z>_1?this._+="A"+o+","+o+",0,1,"+O+","+(i-v)+","+(a-x)+"A"+o+","+o+",0,1,"+O+","+(this._x1=T)+","+(this._y1=C):z>Uo&&(this._+="A"+o+","+o+",0,"+ +(z>=bs)+","+O+","+(this._x1=i+o*Math.cos(p))+","+(this._y1=a+o*Math.sin(p))))},rect:function(i,a,o,u){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+a)+"h"+ +o+"v"+ +u+"h"+-o+"Z"},toString:function(){return this._}};const zo=b1;var v1=Array.prototype.slice;function Jo(i){return function(){return i}}function x1(i){return i.source}function qs(i){return i.target}function Oi(i){return i.radius}function k1(i){return i.startAngle}function Ws(i){return i.endAngle}function w1(){return 0}function E1(){return 10}function Ru(i){var a=x1,o=qs,u=Oi,p=Oi,g=k1,v=Ws,x=w1,T=null;function C(){var O,z=a.apply(this,arguments),F=o.apply(this,arguments),j=x.apply(this,arguments)/2,nt=v1.call(arguments),G=+u.apply(this,(nt[0]=z,nt)),V=g.apply(this,nt)-Ys,Z=v.apply(this,nt)-Ys,dt=+p.apply(this,(nt[0]=F,nt)),ct=g.apply(this,nt)-Ys,lt=v.apply(this,nt)-Ys;if(T||(T=O=zo()),j>_s&&(Ml(Z-V)>2*j+_s?Z>V?(V+=j,Z-=j):(V-=j,Z+=j):V=Z=(V+Z)/2,Ml(lt-ct)>2*j+_s?lt>ct?(ct+=j,lt-=j):(ct-=j,lt+=j):ct=lt=(ct+lt)/2),T.moveTo(G*Ko(V),G*Po(V)),T.arc(0,0,G,V,Z),V!==ct||Z!==lt)if(i){var vt=+i.apply(this,arguments),wt=dt-vt,Kt=(ct+lt)/2;T.quadraticCurveTo(0,0,wt*Ko(ct),wt*Po(ct)),T.lineTo(dt*Ko(Kt),dt*Po(Kt)),T.lineTo(wt*Ko(lt),wt*Po(lt))}else T.quadraticCurveTo(0,0,dt*Ko(ct),dt*Po(ct)),T.arc(0,0,dt,ct,lt);if(T.quadraticCurveTo(0,0,G*Ko(V),G*Po(V)),T.closePath(),O)return T=null,O+""||null}return i&&(C.headRadius=function(O){return arguments.length?(i=typeof O=="function"?O:Jo(+O),C):i}),C.radius=function(O){return arguments.length?(u=p=typeof O=="function"?O:Jo(+O),C):u},C.sourceRadius=function(O){return arguments.length?(u=typeof O=="function"?O:Jo(+O),C):u},C.targetRadius=function(O){return arguments.length?(p=typeof O=="function"?O:Jo(+O),C):p},C.startAngle=function(O){return arguments.length?(g=typeof O=="function"?O:Jo(+O),C):g},C.endAngle=function(O){return arguments.length?(v=typeof O=="function"?O:Jo(+O),C):v},C.padAngle=function(O){return arguments.length?(x=typeof O=="function"?O:Jo(+O),C):x},C.source=function(O){return arguments.length?(a=O,C):a},C.target=function(O){return arguments.length?(o=O,C):o},C.context=function(O){return arguments.length?(T=O==null?null:O,C):T},C}function Gs(){return Ru()}function T1(){return Ru(E1)}const Yo=Math.PI/180,Da=180/Math.PI,S1=.96422,Fu=.82521,Pu=4/29,Bl=6/29,A1=3*Bl*Bl;function Vc(i){if(i instanceof ui)return new ui(i.l,i.a,i.b,i.opacity);if(i instanceof co)return zu(i);i instanceof _i||(i=Ai(i));var a,o,u=Rl(i.r),p=Rl(i.g),g=Rl(i.b),v=Vs((.2225045*u+.7168786*p+.0606169*g)/1);return u===p&&p===g?a=o=v:(a=Vs((.4360747*u+.3850649*p+.1430804*g)/S1),o=Vs((.0139322*u+.0971045*p+.7141733*g)/Fu)),new ui(116*v-16,500*(a-v),200*(v-o),i.opacity)}function _f(i,a){return new ui(i,0,0,a==null?1:a)}function Di(i,a,o,u){return arguments.length===1?Vc(i):new ui(i,a,o,u==null?1:u)}function ui(i,a,o,u){this.l=+i,this.a=+a,this.b=+o,this.opacity=+u}function Vs(i){return i>.008856451679035631?Math.pow(i,1/3):i/A1+Pu}function Bi(i){return i>Bl?i*i*i:A1*(i-Pu)}function Gi(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function Rl(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function Qo(i){if(i instanceof co)return new co(i.h,i.c,i.l,i.opacity);if(i instanceof ui||(i=Vc(i)),i.a===0&&i.b===0)return new co(NaN,0<i.l&&i.l<100?0:NaN,i.l,i.opacity);var a=Math.atan2(i.b,i.a)*Da;return new co(a<0?a+360:a,Math.sqrt(i.a*i.a+i.b*i.b),i.l,i.opacity)}function Uu(i,a,o,u){return arguments.length===1?Qo(i):new co(o,a,i,u==null?1:u)}function Zc(i,a,o,u){return arguments.length===1?Qo(i):new co(i,a,o,u==null?1:u)}function co(i,a,o,u){this.h=+i,this.c=+a,this.l=+o,this.opacity=+u}function zu(i){if(isNaN(i.h))return new ui(i.l,0,0,i.opacity);var a=i.h*Yo;return new ui(i.l,Math.cos(a)*i.c,Math.sin(a)*i.c,i.opacity)}ea(ui,Di,Ui(ba,{brighter:function(i){return new ui(this.l+18*(i==null?1:i),this.a,this.b,this.opacity)},darker:function(i){return new ui(this.l-18*(i==null?1:i),this.a,this.b,this.opacity)},rgb:function(){var i=(this.l+16)/116,a=isNaN(this.a)?i:i+this.a/500,o=isNaN(this.b)?i:i-this.b/200;return new _i(Gi(3.1338561*(a=S1*Bi(a))-1.6168667*(i=1*Bi(i))-.4906146*(o=Fu*Bi(o))),Gi(-.9787684*a+1.9161415*i+.033454*o),Gi(.0719453*a-.2289914*i+1.4052427*o),this.opacity)}})),ea(co,Zc,Ui(ba,{brighter:function(i){return new co(this.h,this.c,this.l+18*(i==null?1:i),this.opacity)},darker:function(i){return new co(this.h,this.c,this.l-18*(i==null?1:i),this.opacity)},rgb:function(){return zu(this).rgb()}}));var Yu=-.14861,Fl=1.78277,vs=-.29227,jo=-.90649,Xc=1.97294,ju=Xc*jo,Zs=Xc*Fl,xa=Fl*vs-jo*Yu;function Xs(i){if(i instanceof xo)return new xo(i.h,i.s,i.l,i.opacity);i instanceof _i||(i=Ai(i));var a=i.r/255,o=i.g/255,u=i.b/255,p=(xa*u+ju*a-Zs*o)/(xa+ju-Zs),g=u-p,v=(Xc*(o-p)-vs*g)/jo,x=Math.sqrt(v*v+g*g)/(Xc*p*(1-p)),T=x?Math.atan2(v,g)*Da-120:NaN;return new xo(T<0?T+360:T,x,p,i.opacity)}function ka(i,a,o,u){return arguments.length===1?Xs(i):new xo(i,a,o,u==null?1:u)}function xo(i,a,o,u){this.h=+i,this.s=+a,this.l=+o,this.opacity=+u}ea(xo,ka,Ui(ba,{brighter:function(i){return i=i==null?Ka:Math.pow(Ka,i),new xo(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?mi:Math.pow(mi,i),new xo(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=isNaN(this.h)?0:(this.h+120)*Yo,a=+this.l,o=isNaN(this.s)?0:this.s*a*(1-a),u=Math.cos(i),p=Math.sin(i);return new _i(255*(a+o*(Yu*u+Fl*p)),255*(a+o*(vs*u+jo*p)),255*(a+o*(Xc*u)),this.opacity)}}));var $u=Array.prototype.slice;function C1(i,a){return i-a}const ts=i=>()=>i;function N1(i,a){for(var o,u=-1,p=a.length;++u<p;)if(o=I1(i,a[u]))return o;return 0}function I1(i,a){for(var o=a[0],u=a[1],p=-1,g=0,v=i.length,x=v-1;g<v;x=g++){var T=i[g],C=T[0],O=T[1],z=i[x],F=z[0],j=z[1];if(L1(T,z,a))return 0;O>u!=j>u&&o<(F-C)*(u-O)/(j-O)+C&&(p=-p)}return p}function L1(i,a,o){var u,p,g,v;return function(x,T,C){return(T[0]-x[0])*(C[1]-x[1])==(C[0]-x[0])*(T[1]-x[1])}(i,a,o)&&(p=i[u=+(i[0]===a[0])],g=o[u],v=a[u],p<=g&&g<=v||v<=g&&g<=p)}function bf(){}var ko=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Hu(){var i=1,a=1,o=Fe,u=x;function p(T){var C=o(T);if(Array.isArray(C))C=C.slice().sort(C1);else{const O=at(T),z=Te(O[0],O[1],C);C=Ce(Math.floor(O[0]/z)*z,Math.floor(O[1]/z-1)*z,C)}return C.map(O=>g(T,O))}function g(T,C){var O=[],z=[];return function(F,j,nt){var G,V,Z,dt,ct,lt,vt=new Array,wt=new Array;for(G=V=-1,dt=F[0]>=j,ko[dt<<1].forEach(Kt);++G<i-1;)Z=dt,dt=F[G+1]>=j,ko[Z|dt<<1].forEach(Kt);for(ko[dt<<0].forEach(Kt);++V<a-1;){for(G=-1,dt=F[V*i+i]>=j,ct=F[V*i]>=j,ko[dt<<1|ct<<2].forEach(Kt);++G<i-1;)Z=dt,dt=F[V*i+i+G+1]>=j,lt=ct,ct=F[V*i+G+1]>=j,ko[Z|dt<<1|ct<<2|lt<<3].forEach(Kt);ko[dt|ct<<3].forEach(Kt)}for(G=-1,ct=F[V*i]>=j,ko[ct<<2].forEach(Kt);++G<i-1;)lt=ct,ct=F[V*i+G+1]>=j,ko[ct<<2|lt<<3].forEach(Kt);function Kt(me){var Wt,Ut,zt=[me[0][0]+G,me[0][1]+V],Yt=[me[1][0]+G,me[1][1]+V],Et=v(zt),Bt=v(Yt);(Wt=wt[Et])?(Ut=vt[Bt])?(delete wt[Wt.end],delete vt[Ut.start],Wt===Ut?(Wt.ring.push(Yt),nt(Wt.ring)):vt[Wt.start]=wt[Ut.end]={start:Wt.start,end:Ut.end,ring:Wt.ring.concat(Ut.ring)}):(delete wt[Wt.end],Wt.ring.push(Yt),wt[Wt.end=Bt]=Wt):(Wt=vt[Bt])?(Ut=wt[Et])?(delete vt[Wt.start],delete wt[Ut.end],Wt===Ut?(Wt.ring.push(Yt),nt(Wt.ring)):vt[Ut.start]=wt[Wt.end]={start:Ut.start,end:Wt.end,ring:Ut.ring.concat(Wt.ring)}):(delete vt[Wt.start],Wt.ring.unshift(zt),vt[Wt.start=Et]=Wt):vt[Et]=wt[Bt]={start:Et,end:Bt,ring:[zt,Yt]}}ko[ct<<3].forEach(Kt)}(T,C,function(F){u(F,T,C),function(j){for(var nt=0,G=j.length,V=j[G-1][1]*j[0][0]-j[G-1][0]*j[0][1];++nt<G;)V+=j[nt-1][1]*j[nt][0]-j[nt-1][0]*j[nt][1];return V}(F)>0?O.push([F]):z.push(F)}),z.forEach(function(F){for(var j,nt=0,G=O.length;nt<G;++nt)if(N1((j=O[nt])[0],F)!==-1)return void j.push(F)}),{type:"MultiPolygon",value:C,coordinates:O}}function v(T){return 2*T[0]+T[1]*(i+1)*4}function x(T,C,O){T.forEach(function(z){var F,j=z[0],nt=z[1],G=0|j,V=0|nt,Z=C[V*i+G];j>0&&j<i&&G===j&&(F=C[V*i+G-1],z[0]=j+(O-F)/(Z-F)-.5),nt>0&&nt<a&&V===nt&&(F=C[(V-1)*i+G],z[1]=nt+(O-F)/(Z-F)-.5)})}return p.contour=g,p.size=function(T){if(!arguments.length)return[i,a];var C=Math.floor(T[0]),O=Math.floor(T[1]);if(!(C>=0&&O>=0))throw new Error("invalid size");return i=C,a=O,p},p.thresholds=function(T){return arguments.length?(o=typeof T=="function"?T:Array.isArray(T)?ts($u.call(T)):ts(T),p):o},p.smooth=function(T){return arguments.length?(u=T?x:bf,p):u===x},p}function qu(i,a,o){for(var u=i.width,p=i.height,g=1+(o<<1),v=0;v<p;++v)for(var x=0,T=0;x<u+o;++x)x<u&&(T+=i.data[x+v*u]),x>=o&&(x>=g&&(T-=i.data[x-g+v*u]),a.data[x-o+v*u]=T/Math.min(x+1,u-1+g-x,g))}function Pl(i,a,o){for(var u=i.width,p=i.height,g=1+(o<<1),v=0;v<u;++v)for(var x=0,T=0;x<p+o;++x)x<p&&(T+=i.data[v+x*u]),x>=o&&(x>=g&&(T-=i.data[v+(x-g)*u]),a.data[v+(x-o)*u]=T/Math.min(x+1,p-1+g-x,g))}function Ul(i){return i[0]}function Wu(i){return i[1]}function Gu(){return 1}function es(){var i=Ul,a=Wu,o=Gu,u=960,p=500,g=20,v=2,x=3*g,T=u+2*x>>v,C=p+2*x>>v,O=ts(20);function z(Z){var dt=new Float32Array(T*C),ct=new Float32Array(T*C),lt=Math.pow(2,-v);Z.forEach(function(Kt,me,Wt){var Ut=(i(Kt,me,Wt)+x)*lt,zt=(a(Kt,me,Wt)+x)*lt,Yt=+o(Kt,me,Wt);if(Ut>=0&&Ut<T&&zt>=0&&zt<C){var Et=Math.floor(Ut),Bt=Math.floor(zt),Gt=Ut-Et-.5,ne=zt-Bt-.5;dt[Et+Bt*T]+=(1-Gt)*(1-ne)*Yt,dt[Et+1+Bt*T]+=Gt*(1-ne)*Yt,dt[Et+1+(Bt+1)*T]+=Gt*ne*Yt,dt[Et+(Bt+1)*T]+=(1-Gt)*ne*Yt}}),qu({width:T,height:C,data:dt},{width:T,height:C,data:ct},g>>v),Pl({width:T,height:C,data:ct},{width:T,height:C,data:dt},g>>v),qu({width:T,height:C,data:dt},{width:T,height:C,data:ct},g>>v),Pl({width:T,height:C,data:ct},{width:T,height:C,data:dt},g>>v),qu({width:T,height:C,data:dt},{width:T,height:C,data:ct},g>>v),Pl({width:T,height:C,data:ct},{width:T,height:C,data:dt},g>>v);var vt=O(dt);if(!Array.isArray(vt)){var wt=rn(dt);vt=Te(0,wt,vt),(vt=Le(0,Math.floor(wt/vt)*vt,vt)).shift()}return Hu().thresholds(vt).size([T,C])(dt).map(F)}function F(Z){return Z.value*=Math.pow(2,-2*v),Z.coordinates.forEach(j),Z}function j(Z){Z.forEach(nt)}function nt(Z){Z.forEach(G)}function G(Z){Z[0]=Z[0]*Math.pow(2,v)-x,Z[1]=Z[1]*Math.pow(2,v)-x}function V(){return T=u+2*(x=3*g)>>v,C=p+2*x>>v,z}return z.x=function(Z){return arguments.length?(i=typeof Z=="function"?Z:ts(+Z),z):i},z.y=function(Z){return arguments.length?(a=typeof Z=="function"?Z:ts(+Z),z):a},z.weight=function(Z){return arguments.length?(o=typeof Z=="function"?Z:ts(+Z),z):o},z.size=function(Z){if(!arguments.length)return[u,p];var dt=+Z[0],ct=+Z[1];if(!(dt>=0&&ct>=0))throw new Error("invalid size");return u=dt,p=ct,V()},z.cellSize=function(Z){if(!arguments.length)return 1<<v;if(!((Z=+Z)>=1))throw new Error("invalid cell size");return v=Math.floor(Math.log(Z)/Math.LN2),V()},z.thresholds=function(Z){return arguments.length?(O=typeof Z=="function"?Z:Array.isArray(Z)?ts($u.call(Z)):ts(Z),z):O},z.bandwidth=function(Z){if(!arguments.length)return Math.sqrt(g*(g+1));if(!((Z=+Z)>=0))throw new Error("invalid bandwidth");return g=Math.round((Math.sqrt(4*Z*Z+1)-1)/2),V()},z}const bi=134217729;function Vu(i,a,o,u,p){let g,v,x,T,C=a[0],O=u[0],z=0,F=0;O>C==O>-C?(g=C,C=a[++z]):(g=O,O=u[++F]);let j=0;if(z<i&&F<o)for(O>C==O>-C?(v=C+g,x=g-(v-C),C=a[++z]):(v=O+g,x=g-(v-O),O=u[++F]),g=v,x!==0&&(p[j++]=x);z<i&&F<o;)O>C==O>-C?(v=g+C,T=v-g,x=g-(v-T)+(C-T),C=a[++z]):(v=g+O,T=v-g,x=g-(v-T)+(O-T),O=u[++F]),g=v,x!==0&&(p[j++]=x);for(;z<i;)v=g+C,T=v-g,x=g-(v-T)+(C-T),C=a[++z],g=v,x!==0&&(p[j++]=x);for(;F<o;)v=g+O,T=v-g,x=g-(v-T)+(O-T),O=u[++F],g=v,x!==0&&(p[j++]=x);return g===0&&j!==0||(p[j++]=g),j}function $o(i){return new Float64Array(i)}const Ks=$o(4),zl=$o(8),wa=$o(12),Js=$o(16),Ni=$o(4);function ns(i,a,o,u,p,g){const v=(a-g)*(o-p),x=(i-p)*(u-g),T=v-x;if(v===0||x===0||v>0!=x>0)return T;const C=Math.abs(v+x);return Math.abs(T)>=33306690738754716e-32*C?T:-function(O,z,F,j,nt,G,V){let Z,dt,ct,lt,vt,wt,Kt,me,Wt,Ut,zt,Yt,Et,Bt,Gt,ne,Ae,$e;const Ke=O-nt,yn=F-nt,Je=z-G,$n=j-G;Bt=Ke*$n,wt=bi*Ke,Kt=wt-(wt-Ke),me=Ke-Kt,wt=bi*$n,Wt=wt-(wt-$n),Ut=$n-Wt,Gt=me*Ut-(Bt-Kt*Wt-me*Wt-Kt*Ut),ne=Je*yn,wt=bi*Je,Kt=wt-(wt-Je),me=Je-Kt,wt=bi*yn,Wt=wt-(wt-yn),Ut=yn-Wt,Ae=me*Ut-(ne-Kt*Wt-me*Wt-Kt*Ut),zt=Gt-Ae,vt=Gt-zt,Ks[0]=Gt-(zt+vt)+(vt-Ae),Yt=Bt+zt,vt=Yt-Bt,Et=Bt-(Yt-vt)+(zt-vt),zt=Et-ne,vt=Et-zt,Ks[1]=Et-(zt+vt)+(vt-ne),$e=Yt+zt,vt=$e-Yt,Ks[2]=Yt-($e-vt)+(zt-vt),Ks[3]=$e;let Wn=function(eo,Ec){let Vo=Ec[0];for(let du=1;du<4;du++)Vo+=Ec[du];return Vo}(0,Ks),Dn=22204460492503146e-32*V;if(Wn>=Dn||-Wn>=Dn||(vt=O-Ke,Z=O-(Ke+vt)+(vt-nt),vt=F-yn,ct=F-(yn+vt)+(vt-nt),vt=z-Je,dt=z-(Je+vt)+(vt-G),vt=j-$n,lt=j-($n+vt)+(vt-G),Z===0&&dt===0&&ct===0&<===0)||(Dn=11093356479670487e-47*V+33306690738754706e-32*Math.abs(Wn),Wn+=Ke*lt+$n*Z-(Je*ct+yn*dt),Wn>=Dn||-Wn>=Dn))return Wn;Bt=Z*$n,wt=bi*Z,Kt=wt-(wt-Z),me=Z-Kt,wt=bi*$n,Wt=wt-(wt-$n),Ut=$n-Wt,Gt=me*Ut-(Bt-Kt*Wt-me*Wt-Kt*Ut),ne=dt*yn,wt=bi*dt,Kt=wt-(wt-dt),me=dt-Kt,wt=bi*yn,Wt=wt-(wt-yn),Ut=yn-Wt,Ae=me*Ut-(ne-Kt*Wt-me*Wt-Kt*Ut),zt=Gt-Ae,vt=Gt-zt,Ni[0]=Gt-(zt+vt)+(vt-Ae),Yt=Bt+zt,vt=Yt-Bt,Et=Bt-(Yt-vt)+(zt-vt),zt=Et-ne,vt=Et-zt,Ni[1]=Et-(zt+vt)+(vt-ne),$e=Yt+zt,vt=$e-Yt,Ni[2]=Yt-($e-vt)+(zt-vt),Ni[3]=$e;const Fn=Vu(4,Ks,4,Ni,zl);Bt=Ke*lt,wt=bi*Ke,Kt=wt-(wt-Ke),me=Ke-Kt,wt=bi*lt,Wt=wt-(wt-lt),Ut=lt-Wt,Gt=me*Ut-(Bt-Kt*Wt-me*Wt-Kt*Ut),ne=Je*ct,wt=bi*Je,Kt=wt-(wt-Je),me=Je-Kt,wt=bi*ct,Wt=wt-(wt-ct),Ut=ct-Wt,Ae=me*Ut-(ne-Kt*Wt-me*Wt-Kt*Ut),zt=Gt-Ae,vt=Gt-zt,Ni[0]=Gt-(zt+vt)+(vt-Ae),Yt=Bt+zt,vt=Yt-Bt,Et=Bt-(Yt-vt)+(zt-vt),zt=Et-ne,vt=Et-zt,Ni[1]=Et-(zt+vt)+(vt-ne),$e=Yt+zt,vt=$e-Yt,Ni[2]=Yt-($e-vt)+(zt-vt),Ni[3]=$e;const Fr=Vu(Fn,zl,4,Ni,wa);Bt=Z*lt,wt=bi*Z,Kt=wt-(wt-Z),me=Z-Kt,wt=bi*lt,Wt=wt-(wt-lt),Ut=lt-Wt,Gt=me*Ut-(Bt-Kt*Wt-me*Wt-Kt*Ut),ne=dt*ct,wt=bi*dt,Kt=wt-(wt-dt),me=dt-Kt,wt=bi*ct,Wt=wt-(wt-ct),Ut=ct-Wt,Ae=me*Ut-(ne-Kt*Wt-me*Wt-Kt*Ut),zt=Gt-Ae,vt=Gt-zt,Ni[0]=Gt-(zt+vt)+(vt-Ae),Yt=Bt+zt,vt=Yt-Bt,Et=Bt-(Yt-vt)+(zt-vt),zt=Et-ne,vt=Et-zt,Ni[1]=Et-(zt+vt)+(vt-ne),$e=Yt+zt,vt=$e-Yt,Ni[2]=Yt-($e-vt)+(zt-vt),Ni[3]=$e;const _r=Vu(Fr,wa,4,Ni,Js);return Js[_r-1]}(i,a,o,u,p,g,C)}const xs=Math.pow(2,-52),Qs=new Uint32Array(512);class Yl{static from(a,o=ec,u=D1){const p=a.length,g=new Float64Array(2*p);for(let v=0;v<p;v++){const x=a[v];g[2*v]=o(x),g[2*v+1]=u(x)}return new Yl(g)}constructor(a){const o=a.length>>1;if(o>0&&typeof a[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=a;const u=Math.max(2*o-5,0);this._triangles=new Uint32Array(3*u),this._halfedges=new Int32Array(3*u),this._hashSize=Math.ceil(Math.sqrt(o)),this._hullPrev=new Uint32Array(o),this._hullNext=new Uint32Array(o),this._hullTri=new Uint32Array(o),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(o),this._dists=new Float64Array(o),this.update()}update(){const{coords:a,_hullPrev:o,_hullNext:u,_hullTri:p,_hullHash:g}=this,v=a.length>>1;let x=1/0,T=1/0,C=-1/0,O=-1/0;for(let Ut=0;Ut<v;Ut++){const zt=a[2*Ut],Yt=a[2*Ut+1];zt<x&&(x=zt),Yt<T&&(T=Yt),zt>C&&(C=zt),Yt>O&&(O=Yt),this._ids[Ut]=Ut}const z=(x+C)/2,F=(T+O)/2;let j,nt,G,V=1/0;for(let Ut=0;Ut<v;Ut++){const zt=Ii(z,F,a[2*Ut],a[2*Ut+1]);zt<V&&(j=Ut,V=zt)}const Z=a[2*j],dt=a[2*j+1];V=1/0;for(let Ut=0;Ut<v;Ut++){if(Ut===j)continue;const zt=Ii(Z,dt,a[2*Ut],a[2*Ut+1]);zt<V&&zt>0&&(nt=Ut,V=zt)}let ct=a[2*nt],lt=a[2*nt+1],vt=1/0;for(let Ut=0;Ut<v;Ut++){if(Ut===j||Ut===nt)continue;const zt=O1(Z,dt,ct,lt,a[2*Ut],a[2*Ut+1]);zt<vt&&(G=Ut,vt=zt)}let wt=a[2*G],Kt=a[2*G+1];if(vt===1/0){for(let Yt=0;Yt<v;Yt++)this._dists[Yt]=a[2*Yt]-a[0]||a[2*Yt+1]-a[1];ks(this._ids,this._dists,0,v-1);const Ut=new Uint32Array(v);let zt=0;for(let Yt=0,Et=-1/0;Yt<v;Yt++){const Bt=this._ids[Yt];this._dists[Bt]>Et&&(Ut[zt++]=Bt,Et=this._dists[Bt])}return this.hull=Ut.subarray(0,zt),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(ns(Z,dt,ct,lt,wt,Kt)<0){const Ut=nt,zt=ct,Yt=lt;nt=G,ct=wt,lt=Kt,G=Ut,wt=zt,Kt=Yt}const me=function(Ut,zt,Yt,Et,Bt,Gt){const ne=Yt-Ut,Ae=Et-zt,$e=Bt-Ut,Ke=Gt-zt,yn=ne*ne+Ae*Ae,Je=$e*$e+Ke*Ke,$n=.5/(ne*Ke-Ae*$e);return{x:Ut+(Ke*yn-Ae*Je)*$n,y:zt+(ne*Je-$e*yn)*$n}}(Z,dt,ct,lt,wt,Kt);this._cx=me.x,this._cy=me.y;for(let Ut=0;Ut<v;Ut++)this._dists[Ut]=Ii(a[2*Ut],a[2*Ut+1],me.x,me.y);ks(this._ids,this._dists,0,v-1),this._hullStart=j;let Wt=3;u[j]=o[G]=nt,u[nt]=o[j]=G,u[G]=o[nt]=j,p[j]=0,p[nt]=1,p[G]=2,g.fill(-1),g[this._hashKey(Z,dt)]=j,g[this._hashKey(ct,lt)]=nt,g[this._hashKey(wt,Kt)]=G,this.trianglesLen=0,this._addTriangle(j,nt,G,-1,-1,-1);for(let Ut,zt,Yt=0;Yt<this._ids.length;Yt++){const Et=this._ids[Yt],Bt=a[2*Et],Gt=a[2*Et+1];if(Yt>0&&Math.abs(Bt-Ut)<=xs&&Math.abs(Gt-zt)<=xs||(Ut=Bt,zt=Gt,Et===j||Et===nt||Et===G))continue;let ne=0;for(let Je=0,$n=this._hashKey(Bt,Gt);Je<this._hashSize&&(ne=g[($n+Je)%this._hashSize],ne===-1||ne===u[ne]);Je++);ne=o[ne];let Ae,$e=ne;for(;Ae=u[$e],ns(Bt,Gt,a[2*$e],a[2*$e+1],a[2*Ae],a[2*Ae+1])>=0;)if($e=Ae,$e===ne){$e=-1;break}if($e===-1)continue;let Ke=this._addTriangle($e,Et,u[$e],-1,-1,p[$e]);p[Et]=this._legalize(Ke+2),p[$e]=Ke,Wt++;let yn=u[$e];for(;Ae=u[yn],ns(Bt,Gt,a[2*yn],a[2*yn+1],a[2*Ae],a[2*Ae+1])<0;)Ke=this._addTriangle(yn,Et,Ae,p[Et],-1,p[yn]),p[Et]=this._legalize(Ke+2),u[yn]=yn,Wt--,yn=Ae;if($e===ne)for(;Ae=o[$e],ns(Bt,Gt,a[2*Ae],a[2*Ae+1],a[2*$e],a[2*$e+1])<0;)Ke=this._addTriangle(Ae,Et,$e,-1,p[$e],p[Ae]),this._legalize(Ke+2),p[Ae]=Ke,u[$e]=$e,Wt--,$e=Ae;this._hullStart=o[Et]=$e,u[$e]=o[yn]=Et,u[Et]=yn,g[this._hashKey(Bt,Gt)]=Et,g[this._hashKey(a[2*$e],a[2*$e+1])]=$e}this.hull=new Uint32Array(Wt);for(let Ut=0,zt=this._hullStart;Ut<Wt;Ut++)this.hull[Ut]=zt,zt=u[zt];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(a,o){return Math.floor(function(u,p){const g=u/(Math.abs(u)+Math.abs(p));return(p>0?3-g:1+g)/4}(a-this._cx,o-this._cy)*this._hashSize)%this._hashSize}_legalize(a){const{_triangles:o,_halfedges:u,coords:p}=this;let g=0,v=0;for(;;){const x=u[a],T=a-a%3;if(v=T+(a+2)%3,x===-1){if(g===0)break;a=Qs[--g];continue}const C=x-x%3,O=T+(a+1)%3,z=C+(x+2)%3,F=o[v],j=o[a],nt=o[O],G=o[z];if(M1(p[2*F],p[2*F+1],p[2*j],p[2*j+1],p[2*nt],p[2*nt+1],p[2*G],p[2*G+1])){o[a]=G,o[x]=F;const V=u[z];if(V===-1){let dt=this._hullStart;do{if(this._hullTri[dt]===z){this._hullTri[dt]=a;break}dt=this._hullPrev[dt]}while(dt!==this._hullStart)}this._link(a,V),this._link(x,u[v]),this._link(v,z);const Z=C+(x+1)%3;g<Qs.length&&(Qs[g++]=Z)}else{if(g===0)break;a=Qs[--g]}}return v}_link(a,o){this._halfedges[a]=o,o!==-1&&(this._halfedges[o]=a)}_addTriangle(a,o,u,p,g,v){const x=this.trianglesLen;return this._triangles[x]=a,this._triangles[x+1]=o,this._triangles[x+2]=u,this._link(x,p),this._link(x+1,g),this._link(x+2,v),this.trianglesLen+=3,x}}function Ii(i,a,o,u){const p=i-o,g=a-u;return p*p+g*g}function M1(i,a,o,u,p,g,v,x){const T=i-v,C=a-x,O=o-v,z=u-x,F=p-v,j=g-x,nt=O*O+z*z,G=F*F+j*j;return T*(z*G-nt*j)-C*(O*G-nt*F)+(T*T+C*C)*(O*j-z*F)<0}function O1(i,a,o,u,p,g){const v=o-i,x=u-a,T=p-i,C=g-a,O=v*v+x*x,z=T*T+C*C,F=.5/(v*C-x*T),j=(C*O-x*z)*F,nt=(v*z-T*O)*F;return j*j+nt*nt}function ks(i,a,o,u){if(u-o<=20)for(let p=o+1;p<=u;p++){const g=i[p],v=a[g];let x=p-1;for(;x>=o&&a[i[x]]>v;)i[x+1]=i[x--];i[x+1]=g}else{let p=o+1,g=u;tc(i,o+u>>1,p),a[i[o]]>a[i[u]]&&tc(i,o,u),a[i[p]]>a[i[u]]&&tc(i,p,u),a[i[o]]>a[i[p]]&&tc(i,o,p);const v=i[p],x=a[v];for(;;){do p++;while(a[i[p]]<x);do g--;while(a[i[g]]>x);if(g<p)break;tc(i,p,g)}i[o+1]=i[g],i[g]=v,u-p+1>=g-o?(ks(i,a,p,u),ks(i,a,o,g-1)):(ks(i,a,o,g-1),ks(i,a,p,u))}}function tc(i,a,o){const u=i[a];i[a]=i[o],i[o]=u}function ec(i){return i[0]}function D1(i){return i[1]}const B1=1e-6;class ln{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(a,o){this._+=`M${this._x0=this._x1=+a},${this._y0=this._y1=+o}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(a,o){this._+=`L${this._x1=+a},${this._y1=+o}`}arc(a,o,u){const p=(a=+a)+(u=+u),g=o=+o;if(u<0)throw new Error("negative radius");this._x1===null?this._+=`M${p},${g}`:(Math.abs(this._x1-p)>B1||Math.abs(this._y1-g)>B1)&&(this._+="L"+p+","+g),u&&(this._+=`A${u},${u},0,1,1,${a-u},${o}A${u},${u},0,1,1,${this._x1=p},${this._y1=g}`)}rect(a,o,u,p){this._+=`M${this._x0=this._x1=+a},${this._y0=this._y1=+o}h${+u}v${+p}h${-u}Z`}value(){return this._||null}}class Zu{constructor(){this._=[]}moveTo(a,o){this._.push([a,o])}closePath(){this._.push(this._[0].slice())}lineTo(a,o){this._.push([a,o])}value(){return this._.length?this._:null}}class nc{constructor(a,[o,u,p,g]=[0,0,960,500]){if(!((p=+p)>=(o=+o)&&(g=+g)>=(u=+u)))throw new Error("invalid bounds");this.delaunay=a,this._circumcenters=new Float64Array(2*a.points.length),this.vectors=new Float64Array(2*a.points.length),this.xmax=p,this.xmin=o,this.ymax=g,this.ymin=u,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:a,hull:o,triangles:u},vectors:p}=this,g=this.circumcenters=this._circumcenters.subarray(0,u.length/3*2);for(let j,nt,G=0,V=0,Z=u.length;G<Z;G+=3,V+=2){const dt=2*u[G],ct=2*u[G+1],lt=2*u[G+2],vt=a[dt],wt=a[dt+1],Kt=a[ct],me=a[ct+1],Wt=a[lt],Ut=a[lt+1],zt=Kt-vt,Yt=me-wt,Et=Wt-vt,Bt=Ut-wt,Gt=2*(zt*Bt-Yt*Et);if(Math.abs(Gt)<1e-9){let ne=1e9;const Ae=2*u[0];ne*=Math.sign((a[Ae]-vt)*Bt-(a[Ae+1]-wt)*Et),j=(vt+Wt)/2-ne*Bt,nt=(wt+Ut)/2+ne*Et}else{const ne=1/Gt,Ae=zt*zt+Yt*Yt,$e=Et*Et+Bt*Bt;j=vt+(Bt*Ae-Yt*$e)*ne,nt=wt+(zt*$e-Et*Ae)*ne}g[V]=j,g[V+1]=nt}let v,x,T,C=o[o.length-1],O=4*C,z=a[2*C],F=a[2*C+1];p.fill(0);for(let j=0;j<o.length;++j)C=o[j],v=O,x=z,T=F,O=4*C,z=a[2*C],F=a[2*C+1],p[v+2]=p[O]=T-F,p[v+3]=p[O+1]=z-x}render(a){const o=a==null?a=new ln:void 0,{delaunay:{halfedges:u,inedges:p,hull:g},circumcenters:v,vectors:x}=this;if(g.length<=1)return null;for(let O=0,z=u.length;O<z;++O){const F=u[O];if(F<O)continue;const j=2*Math.floor(O/3),nt=2*Math.floor(F/3),G=v[j],V=v[j+1],Z=v[nt],dt=v[nt+1];this._renderSegment(G,V,Z,dt,a)}let T,C=g[g.length-1];for(let O=0;O<g.length;++O){T=C,C=g[O];const z=2*Math.floor(p[C]/3),F=v[z],j=v[z+1],nt=4*T,G=this._project(F,j,x[nt+2],x[nt+3]);G&&this._renderSegment(F,j,G[0],G[1],a)}return o&&o.value()}renderBounds(a){const o=a==null?a=new ln:void 0;return a.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),o&&o.value()}renderCell(a,o){const u=o==null?o=new ln:void 0,p=this._clip(a);if(p===null||!p.length)return;o.moveTo(p[0],p[1]);let g=p.length;for(;p[0]===p[g-2]&&p[1]===p[g-1]&&g>1;)g-=2;for(let v=2;v<g;v+=2)p[v]===p[v-2]&&p[v+1]===p[v-1]||o.lineTo(p[v],p[v+1]);return o.closePath(),u&&u.value()}*cellPolygons(){const{delaunay:{points:a}}=this;for(let o=0,u=a.length/2;o<u;++o){const p=this.cellPolygon(o);p&&(p.index=o,yield p)}}cellPolygon(a){const o=new Zu;return this.renderCell(a,o),o.value()}_renderSegment(a,o,u,p,g){let v;const x=this._regioncode(a,o),T=this._regioncode(u,p);x===0&&T===0?(g.moveTo(a,o),g.lineTo(u,p)):(v=this._clipSegment(a,o,u,p,x,T))&&(g.moveTo(v[0],v[1]),g.lineTo(v[2],v[3]))}contains(a,o,u){return(o=+o)==o&&(u=+u)==u&&this.delaunay._step(a,o,u)===a}*neighbors(a){const o=this._clip(a);if(o)for(const u of this.delaunay.neighbors(a)){const p=this._clip(u);if(p){t:for(let g=0,v=o.length;g<v;g+=2)for(let x=0,T=p.length;x<T;x+=2)if(o[g]==p[x]&&o[g+1]==p[x+1]&&o[(g+2)%v]==p[(x+T-2)%T]&&o[(g+3)%v]==p[(x+T-1)%T]){yield u;break t}}}}_cell(a){const{circumcenters:o,delaunay:{inedges:u,halfedges:p,triangles:g}}=this,v=u[a];if(v===-1)return null;const x=[];let T=v;do{const C=Math.floor(T/3);if(x.push(o[2*C],o[2*C+1]),T=T%3==2?T-2:T+1,g[T]!==a)break;T=p[T]}while(T!==v&&T!==-1);return x}_clip(a){if(a===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const o=this._cell(a);if(o===null)return null;const{vectors:u}=this,p=4*a;return u[p]||u[p+1]?this._clipInfinite(a,o,u[p],u[p+1],u[p+2],u[p+3]):this._clipFinite(a,o)}_clipFinite(a,o){const u=o.length;let p,g,v,x,T=null,C=o[u-2],O=o[u-1],z=this._regioncode(C,O),F=0;for(let j=0;j<u;j+=2)if(p=C,g=O,C=o[j],O=o[j+1],v=z,z=this._regioncode(C,O),v===0&&z===0)x=F,F=0,T?T.push(C,O):T=[C,O];else{let nt,G,V,Z,dt;if(v===0){if((nt=this._clipSegment(p,g,C,O,v,z))===null)continue;[G,V,Z,dt]=nt}else{if((nt=this._clipSegment(C,O,p,g,z,v))===null)continue;[Z,dt,G,V]=nt,x=F,F=this._edgecode(G,V),x&&F&&this._edge(a,x,F,T,T.length),T?T.push(G,V):T=[G,V]}x=F,F=this._edgecode(Z,dt),x&&F&&this._edge(a,x,F,T,T.length),T?T.push(Z,dt):T=[Z,dt]}if(T)x=F,F=this._edgecode(T[0],T[1]),x&&F&&this._edge(a,x,F,T,T.length);else if(this.contains(a,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return T}_clipSegment(a,o,u,p,g,v){for(;;){if(g===0&&v===0)return[a,o,u,p];if(g&v)return null;let x,T,C=g||v;8&C?(x=a+(u-a)*(this.ymax-o)/(p-o),T=this.ymax):4&C?(x=a+(u-a)*(this.ymin-o)/(p-o),T=this.ymin):2&C?(T=o+(p-o)*(this.xmax-a)/(u-a),x=this.xmax):(T=o+(p-o)*(this.xmin-a)/(u-a),x=this.xmin),g?(a=x,o=T,g=this._regioncode(a,o)):(u=x,p=T,v=this._regioncode(u,p))}}_clipInfinite(a,o,u,p,g,v){let x,T=Array.from(o);if((x=this._project(T[0],T[1],u,p))&&T.unshift(x[0],x[1]),(x=this._project(T[T.length-2],T[T.length-1],g,v))&&T.push(x[0],x[1]),T=this._clipFinite(a,T))for(let C,O=0,z=T.length,F=this._edgecode(T[z-2],T[z-1]);O<z;O+=2)C=F,F=this._edgecode(T[O],T[O+1]),C&&F&&(O=this._edge(a,C,F,T,O),z=T.length);else this.contains(a,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(T=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return T}_edge(a,o,u,p,g){for(;o!==u;){let v,x;switch(o){case 5:o=4;continue;case 4:o=6,v=this.xmax,x=this.ymin;break;case 6:o=2;continue;case 2:o=10,v=this.xmax,x=this.ymax;break;case 10:o=8;continue;case 8:o=9,v=this.xmin,x=this.ymax;break;case 9:o=1;continue;case 1:o=5,v=this.xmin,x=this.ymin}p[g]===v&&p[g+1]===x||!this.contains(a,v,x)||(p.splice(g,0,v,x),g+=2)}if(p.length>4)for(let v=0;v<p.length;v+=2){const x=(v+2)%p.length,T=(v+4)%p.length;(p[v]===p[x]&&p[x]===p[T]||p[v+1]===p[x+1]&&p[x+1]===p[T+1])&&(p.splice(x,2),v-=2)}return g}_project(a,o,u,p){let g,v,x,T=1/0;if(p<0){if(o<=this.ymin)return null;(g=(this.ymin-o)/p)<T&&(x=this.ymin,v=a+(T=g)*u)}else if(p>0){if(o>=this.ymax)return null;(g=(this.ymax-o)/p)<T&&(x=this.ymax,v=a+(T=g)*u)}if(u>0){if(a>=this.xmax)return null;(g=(this.xmax-a)/u)<T&&(v=this.xmax,x=o+(T=g)*p)}else if(u<0){if(a<=this.xmin)return null;(g=(this.xmin-a)/u)<T&&(v=this.xmin,x=o+(T=g)*p)}return[v,x]}_edgecode(a,o){return(a===this.xmin?1:a===this.xmax?2:0)|(o===this.ymin?4:o===this.ymax?8:0)}_regioncode(a,o){return(a<this.xmin?1:a>this.xmax?2:0)|(o<this.ymin?4:o>this.ymax?8:0)}}const rs=2*Math.PI,ua=Math.pow;function jl(i){return i[0]}function R1(i){return i[1]}function Xu(i,a,o){return[i+Math.sin(i+a)*o,a+Math.cos(i-a)*o]}class Ku{static from(a,o=jl,u=R1,p){return new Ku("length"in a?function(g,v,x,T){const C=g.length,O=new Float64Array(2*C);for(let z=0;z<C;++z){const F=g[z];O[2*z]=v.call(T,F,z,g),O[2*z+1]=x.call(T,F,z,g)}return O}(a,o,u,p):Float64Array.from(function*(g,v,x,T){let C=0;for(const O of g)yield v.call(T,O,C,g),yield x.call(T,O,C,g),++C}(a,o,u,p)))}constructor(a){this._delaunator=new Yl(a),this.inedges=new Int32Array(a.length/2),this._hullIndex=new Int32Array(a.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const a=this._delaunator,o=this.points;if(a.hull&&a.hull.length>2&&function(T){const{triangles:C,coords:O}=T;for(let z=0;z<C.length;z+=3){const F=2*C[z],j=2*C[z+1],nt=2*C[z+2];if((O[nt]-O[F])*(O[j+1]-O[F+1])-(O[j]-O[F])*(O[nt+1]-O[F+1])>1e-10)return!1}return!0}(a)){this.collinear=Int32Array.from({length:o.length/2},(F,j)=>j).sort((F,j)=>o[2*F]-o[2*j]||o[2*F+1]-o[2*j+1]);const T=this.collinear[0],C=this.collinear[this.collinear.length-1],O=[o[2*T],o[2*T+1],o[2*C],o[2*C+1]],z=1e-8*Math.hypot(O[3]-O[1],O[2]-O[0]);for(let F=0,j=o.length/2;F<j;++F){const nt=Xu(o[2*F],o[2*F+1],z);o[2*F]=nt[0],o[2*F+1]=nt[1]}this._delaunator=new Yl(o)}else delete this.collinear;const u=this.halfedges=this._delaunator.halfedges,p=this.hull=this._delaunator.hull,g=this.triangles=this._delaunator.triangles,v=this.inedges.fill(-1),x=this._hullIndex.fill(-1);for(let T=0,C=u.length;T<C;++T){const O=g[T%3==2?T-2:T+1];u[T]!==-1&&v[O]!==-1||(v[O]=T)}for(let T=0,C=p.length;T<C;++T)x[p[T]]=T;p.length<=2&&p.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=p[0],v[p[0]]=1,p.length===2&&(v[p[1]]=0,this.triangles[1]=p[1],this.triangles[2]=p[1]))}voronoi(a){return new nc(this,a)}*neighbors(a){const{inedges:o,hull:u,_hullIndex:p,halfedges:g,triangles:v,collinear:x}=this;if(x){const z=x.indexOf(a);return z>0&&(yield x[z-1]),void(z<x.length-1&&(yield x[z+1]))}const T=o[a];if(T===-1)return;let C=T,O=-1;do{if(yield O=v[C],C=C%3==2?C-2:C+1,v[C]!==a)return;if(C=g[C],C===-1){const z=u[(p[a]+1)%u.length];return void(z!==O&&(yield z))}}while(C!==T)}find(a,o,u=0){if((a=+a)!=a||(o=+o)!=o)return-1;const p=u;let g;for(;(g=this._step(u,a,o))>=0&&g!==u&&g!==p;)u=g;return g}_step(a,o,u){const{inedges:p,hull:g,_hullIndex:v,halfedges:x,triangles:T,points:C}=this;if(p[a]===-1||!C.length)return(a+1)%(C.length>>1);let O=a,z=ua(o-C[2*a],2)+ua(u-C[2*a+1],2);const F=p[a];let j=F;do{let nt=T[j];const G=ua(o-C[2*nt],2)+ua(u-C[2*nt+1],2);if(G<z&&(z=G,O=nt),j=j%3==2?j-2:j+1,T[j]!==a)break;if(j=x[j],j===-1){if(j=g[(v[a]+1)%g.length],j!==nt&&ua(o-C[2*j],2)+ua(u-C[2*j+1],2)<z)return j;break}}while(j!==F);return O}render(a){const o=a==null?a=new ln:void 0,{points:u,halfedges:p,triangles:g}=this;for(let v=0,x=p.length;v<x;++v){const T=p[v];if(T<v)continue;const C=2*g[v],O=2*g[T];a.moveTo(u[C],u[C+1]),a.lineTo(u[O],u[O+1])}return this.renderHull(a),o&&o.value()}renderPoints(a,o){o!==void 0||a&&typeof a.moveTo=="function"||(o=a,a=null),o=o==null?2:+o;const u=a==null?a=new ln:void 0,{points:p}=this;for(let g=0,v=p.length;g<v;g+=2){const x=p[g],T=p[g+1];a.moveTo(x+o,T),a.arc(x,T,o,0,rs)}return u&&u.value()}renderHull(a){const o=a==null?a=new ln:void 0,{hull:u,points:p}=this,g=2*u[0],v=u.length;a.moveTo(p[g],p[g+1]);for(let x=1;x<v;++x){const T=2*u[x];a.lineTo(p[T],p[T+1])}return a.closePath(),o&&o.value()}hullPolygon(){const a=new Zu;return this.renderHull(a),a.value()}renderTriangle(a,o){const u=o==null?o=new ln:void 0,{points:p,triangles:g}=this,v=2*g[a*=3],x=2*g[a+1],T=2*g[a+2];return o.moveTo(p[v],p[v+1]),o.lineTo(p[x],p[x+1]),o.lineTo(p[T],p[T+1]),o.closePath(),u&&u.value()}*trianglePolygons(){const{triangles:a}=this;for(let o=0,u=a.length/3;o<u;++o)yield this.trianglePolygon(o)}trianglePolygon(a){const o=new Zu;return this.renderTriangle(a,o),o.value()}}const Ea=i=>()=>i;function ws(i,{sourceEvent:a,subject:o,target:u,identifier:p,active:g,x:v,y:x,dx:T,dy:C,dispatch:O}){Object.defineProperties(this,{type:{value:i,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},subject:{value:o,enumerable:!0,configurable:!0},target:{value:u,enumerable:!0,configurable:!0},identifier:{value:p,enumerable:!0,configurable:!0},active:{value:g,enumerable:!0,configurable:!0},x:{value:v,enumerable:!0,configurable:!0},y:{value:x,enumerable:!0,configurable:!0},dx:{value:T,enumerable:!0,configurable:!0},dy:{value:C,enumerable:!0,configurable:!0},_:{value:O}})}function rc(i){return!i.ctrlKey&&!i.button}function Kc(){return this.parentNode}function F1(i,a){return a==null?{x:i.x,y:i.y}:a}function P1(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ju(){var i,a,o,u,p=rc,g=Kc,v=F1,x=P1,T={},C=sr("start","drag","end"),O=0,z=0;function F(lt){lt.on("mousedown.drag",j).filter(x).on("touchstart.drag",V).on("touchmove.drag",Z,Ms).on("touchend.drag touchcancel.drag",dt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function j(lt,vt){if(!u&&p.call(this,lt,vt)){var wt=ct(this,g.call(this,lt,vt),lt,vt,"mouse");wt&&(Hi(lt.view).on("mousemove.drag",nt,go).on("mouseup.drag",G,go),Ln(lt.view),Os(lt),o=!1,i=lt.clientX,a=lt.clientY,wt("start",lt))}}function nt(lt){if(yo(lt),!o){var vt=lt.clientX-i,wt=lt.clientY-a;o=vt*vt+wt*wt>z}T.mouse("drag",lt)}function G(lt){Hi(lt.view).on("mousemove.drag mouseup.drag",null),ds(lt.view,o),yo(lt),T.mouse("end",lt)}function V(lt,vt){if(p.call(this,lt,vt)){var wt,Kt,me=lt.changedTouches,Wt=g.call(this,lt,vt),Ut=me.length;for(wt=0;wt<Ut;++wt)(Kt=ct(this,Wt,lt,vt,me[wt].identifier,me[wt]))&&(Os(lt),Kt("start",lt,me[wt]))}}function Z(lt){var vt,wt,Kt=lt.changedTouches,me=Kt.length;for(vt=0;vt<me;++vt)(wt=T[Kt[vt].identifier])&&(yo(lt),wt("drag",lt,Kt[vt]))}function dt(lt){var vt,wt,Kt=lt.changedTouches,me=Kt.length;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),vt=0;vt<me;++vt)(wt=T[Kt[vt].identifier])&&(Os(lt),wt("end",lt,Kt[vt]))}function ct(lt,vt,wt,Kt,me,Wt){var Ut,zt,Yt,Et=C.copy(),Bt=Jn(Wt||wt,vt);if((Yt=v.call(lt,new ws("beforestart",{sourceEvent:wt,target:F,identifier:me,active:O,x:Bt[0],y:Bt[1],dx:0,dy:0,dispatch:Et}),Kt))!=null)return Ut=Yt.x-Bt[0]||0,zt=Yt.y-Bt[1]||0,function Gt(ne,Ae,$e){var Ke,yn=Bt;switch(ne){case"start":T[me]=Gt,Ke=O++;break;case"end":delete T[me],--O;case"drag":Bt=Jn($e||Ae,vt),Ke=O}Et.call(ne,lt,new ws(ne,{sourceEvent:Ae,subject:Yt,target:F,identifier:me,active:Ke,x:Bt[0]+Ut,y:Bt[1]+zt,dx:Bt[0]-yn[0],dy:Bt[1]-yn[1],dispatch:Et}),Kt)}}return F.filter=function(lt){return arguments.length?(p=typeof lt=="function"?lt:Ea(!!lt),F):p},F.container=function(lt){return arguments.length?(g=typeof lt=="function"?lt:Ea(lt),F):g},F.subject=function(lt){return arguments.length?(v=typeof lt=="function"?lt:Ea(lt),F):v},F.touchable=function(lt){return arguments.length?(x=typeof lt=="function"?lt:Ea(!!lt),F):x},F.on=function(){var lt=C.on.apply(C,arguments);return lt===C?F:lt},F.clickDistance=function(lt){return arguments.length?(z=(lt=+lt)*lt,F):Math.sqrt(z)},F}ws.prototype.on=function(){var i=this._.on.apply(this._,arguments);return i===this._?this:i};var Qu={},$l={};function th(i){return new Function("d","return {"+i.map(function(a,o){return JSON.stringify(a)+": d["+o+'] || ""'}).join(",")+"}")}function Hl(i){var a=Object.create(null),o=[];return i.forEach(function(u){for(var p in u)p in a||o.push(a[p]=p)}),o}function ha(i,a){var o=i+"",u=o.length;return u<a?new Array(a-u+1).join(0)+o:o}function Es(i){var a=new RegExp('["'+i+`
|
|
\r]`),o=i.charCodeAt(0);function u(x,T){var C,O=[],z=x.length,F=0,j=0,nt=z<=0,G=!1;function V(){if(nt)return $l;if(G)return G=!1,Qu;var dt,ct,lt=F;if(x.charCodeAt(lt)===34){for(;F++<z&&x.charCodeAt(F)!==34||x.charCodeAt(++F)===34;);return(dt=F)>=z?nt=!0:(ct=x.charCodeAt(F++))===10?G=!0:ct===13&&(G=!0,x.charCodeAt(F)===10&&++F),x.slice(lt+1,dt-1).replace(/""/g,'"')}for(;F<z;){if((ct=x.charCodeAt(dt=F++))===10)G=!0;else if(ct===13)G=!0,x.charCodeAt(F)===10&&++F;else if(ct!==o)continue;return x.slice(lt,dt)}return nt=!0,x.slice(lt,z)}for(x.charCodeAt(z-1)===10&&--z,x.charCodeAt(z-1)===13&&--z;(C=V())!==$l;){for(var Z=[];C!==Qu&&C!==$l;)Z.push(C),C=V();T&&(Z=T(Z,j++))==null||O.push(Z)}return O}function p(x,T){return x.map(function(C){return T.map(function(O){return v(C[O])}).join(i)})}function g(x){return x.map(v).join(i)}function v(x){return x==null?"":x instanceof Date?function(T){var C=T.getUTCHours(),O=T.getUTCMinutes(),z=T.getUTCSeconds(),F=T.getUTCMilliseconds();return isNaN(T)?"Invalid Date":function(j){return j<0?"-"+ha(-j,6):j>9999?"+"+ha(j,6):ha(j,4)}(T.getUTCFullYear())+"-"+ha(T.getUTCMonth()+1,2)+"-"+ha(T.getUTCDate(),2)+(F?"T"+ha(C,2)+":"+ha(O,2)+":"+ha(z,2)+"."+ha(F,3)+"Z":z?"T"+ha(C,2)+":"+ha(O,2)+":"+ha(z,2)+"Z":O||C?"T"+ha(C,2)+":"+ha(O,2)+"Z":"")}(x):a.test(x+="")?'"'+x.replace(/"/g,'""')+'"':x}return{parse:function(x,T){var C,O,z=u(x,function(F,j){if(C)return C(F,j-1);O=F,C=T?function(nt,G){var V=th(nt);return function(Z,dt){return G(V(Z),dt,nt)}}(F,T):th(F)});return z.columns=O||[],z},parseRows:u,format:function(x,T){return T==null&&(T=Hl(x)),[T.map(v).join(i)].concat(p(x,T)).join(`
|
|
`)},formatBody:function(x,T){return T==null&&(T=Hl(x)),p(x,T).join(`
|
|
`)},formatRows:function(x){return x.map(g).join(`
|
|
`)},formatRow:g,formatValue:v}}var is=Es(","),U1=is.parse,vf=is.parseRows,xf=is.format,kf=is.formatBody,Jc=is.formatRows,wf=is.formatRow,wo=is.formatValue,Ts=Es(" "),z1=Ts.parse,Ef=Ts.parseRows,Y1=Ts.format,Tf=Ts.formatBody,Sf=Ts.formatRows,Af=Ts.formatRow,Cf=Ts.formatValue;function Nf(i){for(var a in i){var o,u,p=i[a].trim();if(p)if(p==="true")p=!0;else if(p==="false")p=!1;else if(p==="NaN")p=NaN;else if(isNaN(o=+p)){if(!(u=p.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;If&&u[4]&&!u[7]&&(p=p.replace(/-/g,"/").replace(/T/," ")),p=new Date(p)}else p=o;else p=null;i[a]=p}return i}const If=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),ic=i=>+i;function Lf(i){return i*i}function Mf(i){return i*(2-i)}function j1(i){return((i*=2)<=1?i*i:--i*(2-i)+1)/2}var Of=function i(a){function o(u){return Math.pow(u,a)}return a=+a,o.exponent=i,o}(3),Df=function i(a){function o(u){return 1-Math.pow(1-u,a)}return a=+a,o.exponent=i,o}(3),$1=function i(a){function o(u){return((u*=2)<=1?Math.pow(u,a):2-Math.pow(2-u,a))/2}return a=+a,o.exponent=i,o}(3),H1=Math.PI,q1=H1/2;function W1(i){return+i==1?1:1-Math.cos(i*q1)}function Bf(i){return Math.sin(i*q1)}function de(i){return(1-Math.cos(H1*i))/2}function sn(i){return 1.0009775171065494*(Math.pow(2,-10*i)-.0009765625)}function ac(i){return sn(1-+i)}function oc(i){return 1-sn(i)}function ql(i){return((i*=2)<=1?sn(1-i):2-sn(i-1))/2}function eh(i){return 1-Math.sqrt(1-i*i)}function G1(i){return Math.sqrt(1- --i*i)}function nh(i){return((i*=2)<=1?1-Math.sqrt(1-i*i):Math.sqrt(1-(i-=2)*i)+1)/2}var Ss=7.5625;function V1(i){return 1-Ba(1-i)}function Ba(i){return(i=+i)<.36363636363636365?Ss*i*i:i<.7272727272727273?Ss*(i-=.5454545454545454)*i+.75:i<.9090909090909091?Ss*(i-=.8181818181818182)*i+.9375:Ss*(i-=.9545454545454546)*i+.984375}function Rf(i){return((i*=2)<=1?1-Ba(1-i):Ba(i-1)+1)/2}var As=1.70158,Qc=function i(a){function o(u){return(u=+u)*u*(a*(u-1)+u)}return a=+a,o.overshoot=i,o}(As),Z1=function i(a){function o(u){return--u*u*((u+1)*a+u)+1}return a=+a,o.overshoot=i,o}(As),Wl=function i(a){function o(u){return((u*=2)<1?u*u*((a+1)*u-a):(u-=2)*u*((a+1)*u+a)+2)/2}return a=+a,o.overshoot=i,o}(As),Ho=2*Math.PI,Gl=function i(a,o){var u=Math.asin(1/(a=Math.max(1,a)))*(o/=Ho);function p(g){return a*sn(- --g)*Math.sin((u-g)/o)}return p.amplitude=function(g){return i(g,o*Ho)},p.period=function(g){return i(a,g)},p}(1,.3),X1=function i(a,o){var u=Math.asin(1/(a=Math.max(1,a)))*(o/=Ho);function p(g){return 1-a*sn(g=+g)*Math.sin((g+u)/o)}return p.amplitude=function(g){return i(g,o*Ho)},p.period=function(g){return i(a,g)},p}(1,.3),Vl=function i(a,o){var u=Math.asin(1/(a=Math.max(1,a)))*(o/=Ho);function p(g){return((g=2*g-1)<0?a*sn(-g)*Math.sin((u-g)/o):2-a*sn(g)*Math.sin((u+g)/o))/2}return p.amplitude=function(g){return i(g,o*Ho)},p.period=function(g){return i(a,g)},p}(1,.3);function fa(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);return i.blob()}function rh(i,a){return fetch(i,a).then(fa)}function Zl(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);return i.arrayBuffer()}function K1(i,a){return fetch(i,a).then(Zl)}function J1(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);return i.text()}function tl(i,a){return fetch(i,a).then(J1)}function Q1(i){return function(a,o,u){return arguments.length===2&&typeof o=="function"&&(u=o,o=void 0),tl(a,o).then(function(p){return i(p,u)})}}function t0(i,a,o,u){arguments.length===3&&typeof o=="function"&&(u=o,o=void 0);var p=Es(i);return tl(a,o).then(function(g){return p.parse(g,u)})}var e0=Q1(U1),Yi=Q1(z1);function n0(i,a){return new Promise(function(o,u){var p=new Image;for(var g in a)p[g]=a[g];p.onerror=u,p.onload=function(){o(p)},p.src=i})}function Ha(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);if(i.status!==204&&i.status!==205)return i.json()}function Ff(i,a){return fetch(i,a).then(Ha)}function ih(i){return(a,o)=>tl(a,o).then(u=>new DOMParser().parseFromString(u,i))}const r0=ih("application/xml");var i0=ih("text/html"),ah=ih("image/svg+xml");function Pf(i,a){var o,u=1;function p(){var g,v,x=o.length,T=0,C=0;for(g=0;g<x;++g)T+=(v=o[g]).x,C+=v.y;for(T=(T/x-i)*u,C=(C/x-a)*u,g=0;g<x;++g)(v=o[g]).x-=T,v.y-=C}return i==null&&(i=0),a==null&&(a=0),p.initialize=function(g){o=g},p.x=function(g){return arguments.length?(i=+g,p):i},p.y=function(g){return arguments.length?(a=+g,p):a},p.strength=function(g){return arguments.length?(u=+g,p):u},p}function a0(i,a,o,u){if(isNaN(a)||isNaN(o))return i;var p,g,v,x,T,C,O,z,F,j=i._root,nt={data:u},G=i._x0,V=i._y0,Z=i._x1,dt=i._y1;if(!j)return i._root=nt,i;for(;j.length;)if((C=a>=(g=(G+Z)/2))?G=g:Z=g,(O=o>=(v=(V+dt)/2))?V=v:dt=v,p=j,!(j=j[z=O<<1|C]))return p[z]=nt,i;if(x=+i._x.call(null,j.data),T=+i._y.call(null,j.data),a===x&&o===T)return nt.next=j,p?p[z]=nt:i._root=nt,i;do p=p?p[z]=new Array(4):i._root=new Array(4),(C=a>=(g=(G+Z)/2))?G=g:Z=g,(O=o>=(v=(V+dt)/2))?V=v:dt=v;while((z=O<<1|C)==(F=(T>=v)<<1|x>=g));return p[F]=j,p[z]=nt,i}function Ta(i,a,o,u,p){this.node=i,this.x0=a,this.y0=o,this.x1=u,this.y1=p}function Mr(i){return i[0]}function Xl(i){return i[1]}function lo(i,a,o){var u=new oh(a==null?Mr:a,o==null?Xl:o,NaN,NaN,NaN,NaN);return i==null?u:u.addAll(i)}function oh(i,a,o,u,p,g){this._x=i,this._y=a,this._x0=o,this._y0=u,this._x1=p,this._y1=g,this._root=void 0}function Kl(i){for(var a={data:i.data},o=a;i=i.next;)o=o.next={data:i.data};return a}var da=lo.prototype=oh.prototype;function ji(i){return function(){return i}}function Eo(i){return 1e-6*(i()-.5)}function sc(i){return i.x+i.vx}function sh(i){return i.y+i.vy}function cc(i){var a,o,u,p=1,g=1;function v(){for(var C,O,z,F,j,nt,G,V=a.length,Z=0;Z<g;++Z)for(O=lo(a,sc,sh).visitAfter(x),C=0;C<V;++C)z=a[C],nt=o[z.index],G=nt*nt,F=z.x+z.vx,j=z.y+z.vy,O.visit(dt);function dt(ct,lt,vt,wt,Kt){var me=ct.data,Wt=ct.r,Ut=nt+Wt;if(!me)return lt>F+Ut||wt<F-Ut||vt>j+Ut||Kt<j-Ut;if(me.index>z.index){var zt=F-me.x-me.vx,Yt=j-me.y-me.vy,Et=zt*zt+Yt*Yt;Et<Ut*Ut&&(zt===0&&(Et+=(zt=Eo(u))*zt),Yt===0&&(Et+=(Yt=Eo(u))*Yt),Et=(Ut-(Et=Math.sqrt(Et)))/Et*p,z.vx+=(zt*=Et)*(Ut=(Wt*=Wt)/(G+Wt)),z.vy+=(Yt*=Et)*Ut,me.vx-=zt*(Ut=1-Ut),me.vy-=Yt*Ut)}}}function x(C){if(C.data)return C.r=o[C.data.index];for(var O=C.r=0;O<4;++O)C[O]&&C[O].r>C.r&&(C.r=C[O].r)}function T(){if(a){var C,O,z=a.length;for(o=new Array(z),C=0;C<z;++C)O=a[C],o[O.index]=+i(O,C,a)}}return typeof i!="function"&&(i=ji(i==null?1:+i)),v.initialize=function(C,O){a=C,u=O,T()},v.iterations=function(C){return arguments.length?(g=+C,v):g},v.strength=function(C){return arguments.length?(p=+C,v):p},v.radius=function(C){return arguments.length?(i=typeof C=="function"?C:ji(+C),T(),v):i},v}function lc(i){return i.index}function ch(i,a){var o=i.get(a);if(!o)throw new Error("node not found: "+a);return o}function o0(i){var a,o,u,p,g,v,x=lc,T=function(G){return 1/Math.min(p[G.source.index],p[G.target.index])},C=ji(30),O=1;function z(G){for(var V=0,Z=i.length;V<O;++V)for(var dt,ct,lt,vt,wt,Kt,me,Wt=0;Wt<Z;++Wt)ct=(dt=i[Wt]).source,vt=(lt=dt.target).x+lt.vx-ct.x-ct.vx||Eo(v),wt=lt.y+lt.vy-ct.y-ct.vy||Eo(v),vt*=Kt=((Kt=Math.sqrt(vt*vt+wt*wt))-o[Wt])/Kt*G*a[Wt],wt*=Kt,lt.vx-=vt*(me=g[Wt]),lt.vy-=wt*me,ct.vx+=vt*(me=1-me),ct.vy+=wt*me}function F(){if(u){var G,V,Z=u.length,dt=i.length,ct=new Map(u.map((lt,vt)=>[x(lt,vt,u),lt]));for(G=0,p=new Array(Z);G<dt;++G)(V=i[G]).index=G,typeof V.source!="object"&&(V.source=ch(ct,V.source)),typeof V.target!="object"&&(V.target=ch(ct,V.target)),p[V.source.index]=(p[V.source.index]||0)+1,p[V.target.index]=(p[V.target.index]||0)+1;for(G=0,g=new Array(dt);G<dt;++G)V=i[G],g[G]=p[V.source.index]/(p[V.source.index]+p[V.target.index]);a=new Array(dt),j(),o=new Array(dt),nt()}}function j(){if(u)for(var G=0,V=i.length;G<V;++G)a[G]=+T(i[G],G,i)}function nt(){if(u)for(var G=0,V=i.length;G<V;++G)o[G]=+C(i[G],G,i)}return i==null&&(i=[]),z.initialize=function(G,V){u=G,v=V,F()},z.links=function(G){return arguments.length?(i=G,F(),z):i},z.id=function(G){return arguments.length?(x=G,z):x},z.iterations=function(G){return arguments.length?(O=+G,z):O},z.strength=function(G){return arguments.length?(T=typeof G=="function"?G:ji(+G),j(),z):T},z.distance=function(G){return arguments.length?(C=typeof G=="function"?G:ji(+G),nt(),z):C},z}da.copy=function(){var i,a,o=new oh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),u=this._root;if(!u)return o;if(!u.length)return o._root=Kl(u),o;for(i=[{source:u,target:o._root=new Array(4)}];u=i.pop();)for(var p=0;p<4;++p)(a=u.source[p])&&(a.length?i.push({source:a,target:u.target[p]=new Array(4)}):u.target[p]=Kl(a));return o},da.add=function(i){const a=+this._x.call(null,i),o=+this._y.call(null,i);return a0(this.cover(a,o),a,o,i)},da.addAll=function(i){var a,o,u,p,g=i.length,v=new Array(g),x=new Array(g),T=1/0,C=1/0,O=-1/0,z=-1/0;for(o=0;o<g;++o)isNaN(u=+this._x.call(null,a=i[o]))||isNaN(p=+this._y.call(null,a))||(v[o]=u,x[o]=p,u<T&&(T=u),u>O&&(O=u),p<C&&(C=p),p>z&&(z=p));if(T>O||C>z)return this;for(this.cover(T,C).cover(O,z),o=0;o<g;++o)a0(this,v[o],x[o],i[o]);return this},da.cover=function(i,a){if(isNaN(i=+i)||isNaN(a=+a))return this;var o=this._x0,u=this._y0,p=this._x1,g=this._y1;if(isNaN(o))p=(o=Math.floor(i))+1,g=(u=Math.floor(a))+1;else{for(var v,x,T=p-o||1,C=this._root;o>i||i>=p||u>a||a>=g;)switch(x=(a<u)<<1|i<o,(v=new Array(4))[x]=C,C=v,T*=2,x){case 0:p=o+T,g=u+T;break;case 1:o=p-T,g=u+T;break;case 2:p=o+T,u=g-T;break;case 3:o=p-T,u=g-T}this._root&&this._root.length&&(this._root=C)}return this._x0=o,this._y0=u,this._x1=p,this._y1=g,this},da.data=function(){var i=[];return this.visit(function(a){if(!a.length)do i.push(a.data);while(a=a.next)}),i},da.extent=function(i){return arguments.length?this.cover(+i[0][0],+i[0][1]).cover(+i[1][0],+i[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},da.find=function(i,a,o){var u,p,g,v,x,T,C,O=this._x0,z=this._y0,F=this._x1,j=this._y1,nt=[],G=this._root;for(G&&nt.push(new Ta(G,O,z,F,j)),o==null?o=1/0:(O=i-o,z=a-o,F=i+o,j=a+o,o*=o);T=nt.pop();)if(!(!(G=T.node)||(p=T.x0)>F||(g=T.y0)>j||(v=T.x1)<O||(x=T.y1)<z))if(G.length){var V=(p+v)/2,Z=(g+x)/2;nt.push(new Ta(G[3],V,Z,v,x),new Ta(G[2],p,Z,V,x),new Ta(G[1],V,g,v,Z),new Ta(G[0],p,g,V,Z)),(C=(a>=Z)<<1|i>=V)&&(T=nt[nt.length-1],nt[nt.length-1]=nt[nt.length-1-C],nt[nt.length-1-C]=T)}else{var dt=i-+this._x.call(null,G.data),ct=a-+this._y.call(null,G.data),lt=dt*dt+ct*ct;if(lt<o){var vt=Math.sqrt(o=lt);O=i-vt,z=a-vt,F=i+vt,j=a+vt,u=G.data}}return u},da.remove=function(i){if(isNaN(g=+this._x.call(null,i))||isNaN(v=+this._y.call(null,i)))return this;var a,o,u,p,g,v,x,T,C,O,z,F,j=this._root,nt=this._x0,G=this._y0,V=this._x1,Z=this._y1;if(!j)return this;if(j.length)for(;;){if((C=g>=(x=(nt+V)/2))?nt=x:V=x,(O=v>=(T=(G+Z)/2))?G=T:Z=T,a=j,!(j=j[z=O<<1|C]))return this;if(!j.length)break;(a[z+1&3]||a[z+2&3]||a[z+3&3])&&(o=a,F=z)}for(;j.data!==i;)if(u=j,!(j=j.next))return this;return(p=j.next)&&delete j.next,u?(p?u.next=p:delete u.next,this):a?(p?a[z]=p:delete a[z],(j=a[0]||a[1]||a[2]||a[3])&&j===(a[3]||a[2]||a[1]||a[0])&&!j.length&&(o?o[F]=j:this._root=j),this):(this._root=p,this)},da.removeAll=function(i){for(var a=0,o=i.length;a<o;++a)this.remove(i[a]);return this},da.root=function(){return this._root},da.size=function(){var i=0;return this.visit(function(a){if(!a.length)do++i;while(a=a.next)}),i},da.visit=function(i){var a,o,u,p,g,v,x=[],T=this._root;for(T&&x.push(new Ta(T,this._x0,this._y0,this._x1,this._y1));a=x.pop();)if(!i(T=a.node,u=a.x0,p=a.y0,g=a.x1,v=a.y1)&&T.length){var C=(u+g)/2,O=(p+v)/2;(o=T[3])&&x.push(new Ta(o,C,O,g,v)),(o=T[2])&&x.push(new Ta(o,u,O,C,v)),(o=T[1])&&x.push(new Ta(o,C,p,g,O)),(o=T[0])&&x.push(new Ta(o,u,p,C,O))}return this},da.visitAfter=function(i){var a,o=[],u=[];for(this._root&&o.push(new Ta(this._root,this._x0,this._y0,this._x1,this._y1));a=o.pop();){var p=a.node;if(p.length){var g,v=a.x0,x=a.y0,T=a.x1,C=a.y1,O=(v+T)/2,z=(x+C)/2;(g=p[0])&&o.push(new Ta(g,v,x,O,z)),(g=p[1])&&o.push(new Ta(g,O,x,T,z)),(g=p[2])&&o.push(new Ta(g,v,z,O,C)),(g=p[3])&&o.push(new Ta(g,O,z,T,C))}u.push(a)}for(;a=u.pop();)i(a.node,a.x0,a.y0,a.x1,a.y1);return this},da.x=function(i){return arguments.length?(this._x=i,this):this._x},da.y=function(i){return arguments.length?(this._y=i,this):this._y};const qo=4294967296;function Uf(i){return i.x}function s0(i){return i.y}var c0=Math.PI*(3-Math.sqrt(5));function l0(i){var a,o=1,u=.001,p=1-Math.pow(u,1/300),g=0,v=.6,x=new Map,T=Rc(z),C=sr("tick","end"),O=function(){let G=1;return()=>(G=(1664525*G+1013904223)%qo)/qo}();function z(){F(),C.call("tick",a),o<u&&(T.stop(),C.call("end",a))}function F(G){var V,Z,dt=i.length;G===void 0&&(G=1);for(var ct=0;ct<G;++ct)for(o+=(g-o)*p,x.forEach(function(lt){lt(o)}),V=0;V<dt;++V)(Z=i[V]).fx==null?Z.x+=Z.vx*=v:(Z.x=Z.fx,Z.vx=0),Z.fy==null?Z.y+=Z.vy*=v:(Z.y=Z.fy,Z.vy=0);return a}function j(){for(var G,V=0,Z=i.length;V<Z;++V){if((G=i[V]).index=V,G.fx!=null&&(G.x=G.fx),G.fy!=null&&(G.y=G.fy),isNaN(G.x)||isNaN(G.y)){var dt=10*Math.sqrt(.5+V),ct=V*c0;G.x=dt*Math.cos(ct),G.y=dt*Math.sin(ct)}(isNaN(G.vx)||isNaN(G.vy))&&(G.vx=G.vy=0)}}function nt(G){return G.initialize&&G.initialize(i,O),G}return i==null&&(i=[]),j(),a={tick:F,restart:function(){return T.restart(z),a},stop:function(){return T.stop(),a},nodes:function(G){return arguments.length?(i=G,j(),x.forEach(nt),a):i},alpha:function(G){return arguments.length?(o=+G,a):o},alphaMin:function(G){return arguments.length?(u=+G,a):u},alphaDecay:function(G){return arguments.length?(p=+G,a):+p},alphaTarget:function(G){return arguments.length?(g=+G,a):g},velocityDecay:function(G){return arguments.length?(v=1-G,a):1-v},randomSource:function(G){return arguments.length?(O=G,x.forEach(nt),a):O},force:function(G,V){return arguments.length>1?(V==null?x.delete(G):x.set(G,nt(V)),a):x.get(G)},find:function(G,V,Z){var dt,ct,lt,vt,wt,Kt=0,me=i.length;for(Z==null?Z=1/0:Z*=Z,Kt=0;Kt<me;++Kt)(lt=(dt=G-(vt=i[Kt]).x)*dt+(ct=V-vt.y)*ct)<Z&&(wt=vt,Z=lt);return wt},on:function(G,V){return arguments.length>1?(C.on(G,V),a):C.on(G)}}}function u0(){var i,a,o,u,p,g=ji(-30),v=1,x=1/0,T=.81;function C(j){var nt,G=i.length,V=lo(i,Uf,s0).visitAfter(z);for(u=j,nt=0;nt<G;++nt)a=i[nt],V.visit(F)}function O(){if(i){var j,nt,G=i.length;for(p=new Array(G),j=0;j<G;++j)nt=i[j],p[nt.index]=+g(nt,j,i)}}function z(j){var nt,G,V,Z,dt,ct=0,lt=0;if(j.length){for(V=Z=dt=0;dt<4;++dt)(nt=j[dt])&&(G=Math.abs(nt.value))&&(ct+=nt.value,lt+=G,V+=G*nt.x,Z+=G*nt.y);j.x=V/lt,j.y=Z/lt}else{(nt=j).x=nt.data.x,nt.y=nt.data.y;do ct+=p[nt.data.index];while(nt=nt.next)}j.value=ct}function F(j,nt,G,V){if(!j.value)return!0;var Z=j.x-a.x,dt=j.y-a.y,ct=V-nt,lt=Z*Z+dt*dt;if(ct*ct/T<lt)return lt<x&&(Z===0&&(lt+=(Z=Eo(o))*Z),dt===0&&(lt+=(dt=Eo(o))*dt),lt<v&&(lt=Math.sqrt(v*lt)),a.vx+=Z*j.value*u/lt,a.vy+=dt*j.value*u/lt),!0;if(!(j.length||lt>=x)){(j.data!==a||j.next)&&(Z===0&&(lt+=(Z=Eo(o))*Z),dt===0&&(lt+=(dt=Eo(o))*dt),lt<v&&(lt=Math.sqrt(v*lt)));do j.data!==a&&(ct=p[j.data.index]*u/lt,a.vx+=Z*ct,a.vy+=dt*ct);while(j=j.next)}}return C.initialize=function(j,nt){i=j,o=nt,O()},C.strength=function(j){return arguments.length?(g=typeof j=="function"?j:ji(+j),O(),C):g},C.distanceMin=function(j){return arguments.length?(v=j*j,C):Math.sqrt(v)},C.distanceMax=function(j){return arguments.length?(x=j*j,C):Math.sqrt(x)},C.theta=function(j){return arguments.length?(T=j*j,C):Math.sqrt(T)},C}function zf(i,a,o){var u,p,g,v=ji(.1);function x(C){for(var O=0,z=u.length;O<z;++O){var F=u[O],j=F.x-a||1e-6,nt=F.y-o||1e-6,G=Math.sqrt(j*j+nt*nt),V=(g[O]-G)*p[O]*C/G;F.vx+=j*V,F.vy+=nt*V}}function T(){if(u){var C,O=u.length;for(p=new Array(O),g=new Array(O),C=0;C<O;++C)g[C]=+i(u[C],C,u),p[C]=isNaN(g[C])?0:+v(u[C],C,u)}}return typeof i!="function"&&(i=ji(+i)),a==null&&(a=0),o==null&&(o=0),x.initialize=function(C){u=C,T()},x.strength=function(C){return arguments.length?(v=typeof C=="function"?C:ji(+C),T(),x):v},x.radius=function(C){return arguments.length?(i=typeof C=="function"?C:ji(+C),T(),x):i},x.x=function(C){return arguments.length?(a=+C,x):a},x.y=function(C){return arguments.length?(o=+C,x):o},x}function Yf(i){var a,o,u,p=ji(.1);function g(x){for(var T,C=0,O=a.length;C<O;++C)(T=a[C]).vx+=(u[C]-T.x)*o[C]*x}function v(){if(a){var x,T=a.length;for(o=new Array(T),u=new Array(T),x=0;x<T;++x)o[x]=isNaN(u[x]=+i(a[x],x,a))?0:+p(a[x],x,a)}}return typeof i!="function"&&(i=ji(i==null?0:+i)),g.initialize=function(x){a=x,v()},g.strength=function(x){return arguments.length?(p=typeof x=="function"?x:ji(+x),v(),g):p},g.x=function(x){return arguments.length?(i=typeof x=="function"?x:ji(+x),v(),g):i},g}function jf(i){var a,o,u,p=ji(.1);function g(x){for(var T,C=0,O=a.length;C<O;++C)(T=a[C]).vy+=(u[C]-T.y)*o[C]*x}function v(){if(a){var x,T=a.length;for(o=new Array(T),u=new Array(T),x=0;x<T;++x)o[x]=isNaN(u[x]=+i(a[x],x,a))?0:+p(a[x],x,a)}}return typeof i!="function"&&(i=ji(i==null?0:+i)),g.initialize=function(x){a=x,v()},g.strength=function(x){return arguments.length?(p=typeof x=="function"?x:ji(+x),v(),g):p},g.y=function(x){return arguments.length?(i=typeof x=="function"?x:ji(+x),v(),g):i},g}function Jl(i,a){if((o=(i=a?i.toExponential(a-1):i.toExponential()).indexOf("e"))<0)return null;var o,u=i.slice(0,o);return[u.length>1?u[0]+u.slice(2):u,+i.slice(o+1)]}function Ra(i){return(i=Jl(Math.abs(i)))?i[1]:NaN}var Ql,Cs=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function na(i){if(!(a=Cs.exec(i)))throw new Error("invalid format: "+i);var a;return new uc({fill:a[1],align:a[2],sign:a[3],symbol:a[4],zero:a[5],width:a[6],comma:a[7],precision:a[8]&&a[8].slice(1),trim:a[9],type:a[10]})}function uc(i){this.fill=i.fill===void 0?" ":i.fill+"",this.align=i.align===void 0?">":i.align+"",this.sign=i.sign===void 0?"-":i.sign+"",this.symbol=i.symbol===void 0?"":i.symbol+"",this.zero=!!i.zero,this.width=i.width===void 0?void 0:+i.width,this.comma=!!i.comma,this.precision=i.precision===void 0?void 0:+i.precision,this.trim=!!i.trim,this.type=i.type===void 0?"":i.type+""}function lh(i,a){var o=Jl(i,a);if(!o)return i+"";var u=o[0],p=o[1];return p<0?"0."+new Array(-p).join("0")+u:u.length>p+1?u.slice(0,p+1)+"."+u.slice(p+1):u+new Array(p-u.length+2).join("0")}na.prototype=uc.prototype,uc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const uh={"%":(i,a)=>(100*i).toFixed(a),b:i=>Math.round(i).toString(2),c:i=>i+"",d:function(i){return Math.abs(i=Math.round(i))>=1e21?i.toLocaleString("en").replace(/,/g,""):i.toString(10)},e:(i,a)=>i.toExponential(a),f:(i,a)=>i.toFixed(a),g:(i,a)=>i.toPrecision(a),o:i=>Math.round(i).toString(8),p:(i,a)=>lh(100*i,a),r:lh,s:function(i,a){var o=Jl(i,a);if(!o)return i+"";var u=o[0],p=o[1],g=p-(Ql=3*Math.max(-8,Math.min(8,Math.floor(p/3))))+1,v=u.length;return g===v?u:g>v?u+new Array(g-v+1).join("0"):g>0?u.slice(0,g)+"."+u.slice(g):"0."+new Array(1-g).join("0")+Jl(i,Math.max(0,a+g-1))[0]},X:i=>Math.round(i).toString(16).toUpperCase(),x:i=>Math.round(i).toString(16)};function h0(i){return i}var hc,el,tu,f0=Array.prototype.map,eu=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function hh(i){var a,o,u=i.grouping===void 0||i.thousands===void 0?h0:(a=f0.call(i.grouping,Number),o=i.thousands+"",function(F,j){for(var nt=F.length,G=[],V=0,Z=a[0],dt=0;nt>0&&Z>0&&(dt+Z+1>j&&(Z=Math.max(1,j-dt)),G.push(F.substring(nt-=Z,nt+Z)),!((dt+=Z+1)>j));)Z=a[V=(V+1)%a.length];return G.reverse().join(o)}),p=i.currency===void 0?"":i.currency[0]+"",g=i.currency===void 0?"":i.currency[1]+"",v=i.decimal===void 0?".":i.decimal+"",x=i.numerals===void 0?h0:function(F){return function(j){return j.replace(/[0-9]/g,function(nt){return F[+nt]})}}(f0.call(i.numerals,String)),T=i.percent===void 0?"%":i.percent+"",C=i.minus===void 0?"\u2212":i.minus+"",O=i.nan===void 0?"NaN":i.nan+"";function z(F){var j=(F=na(F)).fill,nt=F.align,G=F.sign,V=F.symbol,Z=F.zero,dt=F.width,ct=F.comma,lt=F.precision,vt=F.trim,wt=F.type;wt==="n"?(ct=!0,wt="g"):uh[wt]||(lt===void 0&&(lt=12),vt=!0,wt="g"),(Z||j==="0"&&nt==="=")&&(Z=!0,j="0",nt="=");var Kt=V==="$"?p:V==="#"&&/[boxX]/.test(wt)?"0"+wt.toLowerCase():"",me=V==="$"?g:/[%p]/.test(wt)?T:"",Wt=uh[wt],Ut=/[defgprs%]/.test(wt);function zt(Yt){var Et,Bt,Gt,ne=Kt,Ae=me;if(wt==="c")Ae=Wt(Yt)+Ae,Yt="";else{var $e=(Yt=+Yt)<0||1/Yt<0;if(Yt=isNaN(Yt)?O:Wt(Math.abs(Yt),lt),vt&&(Yt=function(Je){t:for(var $n,Wn=Je.length,Dn=1,Fn=-1;Dn<Wn;++Dn)switch(Je[Dn]){case".":Fn=$n=Dn;break;case"0":Fn===0&&(Fn=Dn),$n=Dn;break;default:if(!+Je[Dn])break t;Fn>0&&(Fn=0)}return Fn>0?Je.slice(0,Fn)+Je.slice($n+1):Je}(Yt)),$e&&+Yt==0&&G!=="+"&&($e=!1),ne=($e?G==="("?G:C:G==="-"||G==="("?"":G)+ne,Ae=(wt==="s"?eu[8+Ql/3]:"")+Ae+($e&&G==="("?")":""),Ut){for(Et=-1,Bt=Yt.length;++Et<Bt;)if(48>(Gt=Yt.charCodeAt(Et))||Gt>57){Ae=(Gt===46?v+Yt.slice(Et+1):Yt.slice(Et))+Ae,Yt=Yt.slice(0,Et);break}}}ct&&!Z&&(Yt=u(Yt,1/0));var Ke=ne.length+Yt.length+Ae.length,yn=Ke<dt?new Array(dt-Ke+1).join(j):"";switch(ct&&Z&&(Yt=u(yn+Yt,yn.length?dt-Ae.length:1/0),yn=""),nt){case"<":Yt=ne+Yt+Ae+yn;break;case"=":Yt=ne+yn+Yt+Ae;break;case"^":Yt=yn.slice(0,Ke=yn.length>>1)+ne+Yt+Ae+yn.slice(Ke);break;default:Yt=yn+ne+Yt+Ae}return x(Yt)}return lt=lt===void 0?6:/[gprs]/.test(wt)?Math.max(1,Math.min(21,lt)):Math.max(0,Math.min(20,lt)),zt.toString=function(){return F+""},zt}return{format:z,formatPrefix:function(F,j){var nt=z(((F=na(F)).type="f",F)),G=3*Math.max(-8,Math.min(8,Math.floor(Ra(j)/3))),V=Math.pow(10,-G),Z=eu[8+G/3];return function(dt){return nt(V*dt)+Z}}}}function fc(i){return hc=hh(i),el=hc.format,tu=hc.formatPrefix,hc}function fh(i){return Math.max(0,-Ra(Math.abs(i)))}function d0(i,a){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ra(a)/3)))-Ra(Math.abs(i)))}function vi(i,a){return i=Math.abs(i),a=Math.abs(a)-i,Math.max(0,Ra(a)-Ra(i))+1}fc({thousands:",",grouping:[3],currency:["$",""]});var nr=1e-6,nl=1e-12,qn=Math.PI,hi=qn/2,l=qn/4,s=2*qn,y=180/qn,w=qn/180,S=Math.abs,M=Math.atan,N=Math.atan2,B=Math.cos,Y=Math.ceil,H=Math.exp,it=Math.hypot,ut=Math.log,gt=Math.pow,st=Math.sin,Pt=Math.sign||function(i){return i>0?1:i<0?-1:0},Dt=Math.sqrt,Xt=Math.tan;function Mt(i){return i>1?0:i<-1?qn:Math.acos(i)}function It(i){return i>1?hi:i<-1?-hi:Math.asin(i)}function $t(i){return(i=st(i/2))*i}function ee(){}function Re(i,a){i&&se.hasOwnProperty(i.type)&&se[i.type](i,a)}var Se={Feature:function(i,a){Re(i.geometry,a)},FeatureCollection:function(i,a){for(var o=i.features,u=-1,p=o.length;++u<p;)Re(o[u].geometry,a)}},se={Sphere:function(i,a){a.sphere()},Point:function(i,a){i=i.coordinates,a.point(i[0],i[1],i[2])},MultiPoint:function(i,a){for(var o=i.coordinates,u=-1,p=o.length;++u<p;)i=o[u],a.point(i[0],i[1],i[2])},LineString:function(i,a){le(i.coordinates,a,0)},MultiLineString:function(i,a){for(var o=i.coordinates,u=-1,p=o.length;++u<p;)le(o[u],a,0)},Polygon:function(i,a){Oe(i.coordinates,a)},MultiPolygon:function(i,a){for(var o=i.coordinates,u=-1,p=o.length;++u<p;)Oe(o[u],a)},GeometryCollection:function(i,a){for(var o=i.geometries,u=-1,p=o.length;++u<p;)Re(o[u],a)}};function le(i,a,o){var u,p=-1,g=i.length-o;for(a.lineStart();++p<g;)u=i[p],a.point(u[0],u[1],u[2]);a.lineEnd()}function Oe(i,a){var o=-1,u=i.length;for(a.polygonStart();++o<u;)le(i[o],a,1);a.polygonEnd()}function ke(i,a){i&&Se.hasOwnProperty(i.type)?Se[i.type](i,a):Re(i,a)}var re,we,oe,ce,Ye,Ue,je,qe,be,Ge,dn,tn,an,gn,Rn,rr,cr=new bt,wn=new bt,ur={point:ee,lineStart:ee,lineEnd:ee,polygonStart:function(){cr=new bt,ur.lineStart=Er,ur.lineEnd=Ir},polygonEnd:function(){var i=+cr;wn.add(i<0?s+i:i),this.lineStart=this.lineEnd=this.point=ee},sphere:function(){wn.add(s)}};function Er(){ur.point=Tr}function Ir(){oi(re,we)}function Tr(i,a){ur.point=oi,re=i,we=a,oe=i*=w,ce=B(a=(a*=w)/2+l),Ye=st(a)}function oi(i,a){var o=(i*=w)-oe,u=o>=0?1:-1,p=u*o,g=B(a=(a*=w)/2+l),v=st(a),x=Ye*v,T=ce*g+x*B(p),C=x*u*st(p);cr.add(N(C,T)),oe=i,ce=g,Ye=v}function En(i){return wn=new bt,ke(i,ur),2*wn}function bn(i){return[N(i[1],i[0]),It(i[2])]}function hr(i){var a=i[0],o=i[1],u=B(o);return[u*B(a),u*st(a),st(o)]}function ir(i,a){return i[0]*a[0]+i[1]*a[1]+i[2]*a[2]}function fr(i,a){return[i[1]*a[2]-i[2]*a[1],i[2]*a[0]-i[0]*a[2],i[0]*a[1]-i[1]*a[0]]}function Ur(i,a){i[0]+=a[0],i[1]+=a[1],i[2]+=a[2]}function Ei(i,a){return[i[0]*a,i[1]*a,i[2]*a]}function fi(i){var a=Dt(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]);i[0]/=a,i[1]/=a,i[2]/=a}var qr,Ri,Sa,mn,pr,xi,Ar,Rr,ra,dc,to,T2,S2,qa,Wa,Ga,Ns={point:$f,lineStart:C2,lineEnd:N2,polygonStart:function(){Ns.point=I2,Ns.lineStart=Lm,Ns.lineEnd=Mm,gn=new bt,ur.polygonStart()},polygonEnd:function(){ur.polygonEnd(),Ns.point=$f,Ns.lineStart=C2,Ns.lineEnd=N2,cr<0?(Ue=-(qe=180),je=-(be=90)):gn>nr?be=90:gn<-1e-6&&(je=-90),rr[0]=Ue,rr[1]=qe},sphere:function(){Ue=-(qe=180),je=-(be=90)}};function $f(i,a){Rn.push(rr=[Ue=i,qe=i]),a<je&&(je=a),a>be&&(be=a)}function A2(i,a){var o=hr([i*w,a*w]);if(an){var u=fr(an,o),p=fr([u[1],-u[0],0],u);fi(p),p=bn(p);var g,v=i-Ge,x=v>0?1:-1,T=p[0]*y*x,C=S(v)>180;C^(x*Ge<T&&T<x*i)?(g=p[1]*y)>be&&(be=g):C^(x*Ge<(T=(T+360)%360-180)&&T<x*i)?(g=-p[1]*y)<je&&(je=g):(a<je&&(je=a),a>be&&(be=a)),C?i<Ge?uo(Ue,i)>uo(Ue,qe)&&(qe=i):uo(i,qe)>uo(Ue,qe)&&(Ue=i):qe>=Ue?(i<Ue&&(Ue=i),i>qe&&(qe=i)):i>Ge?uo(Ue,i)>uo(Ue,qe)&&(qe=i):uo(i,qe)>uo(Ue,qe)&&(Ue=i)}else Rn.push(rr=[Ue=i,qe=i]);a<je&&(je=a),a>be&&(be=a),an=o,Ge=i}function C2(){Ns.point=A2}function N2(){rr[0]=Ue,rr[1]=qe,Ns.point=$f,an=null}function I2(i,a){if(an){var o=i-Ge;gn.add(S(o)>180?o+(o>0?360:-360):o)}else dn=i,tn=a;ur.point(i,a),A2(i,a)}function Lm(){ur.lineStart()}function Mm(){I2(dn,tn),ur.lineEnd(),S(gn)>nr&&(Ue=-(qe=180)),rr[0]=Ue,rr[1]=qe,an=null}function uo(i,a){return(a-=i)<0?a+360:a}function Om(i,a){return i[0]-a[0]}function L2(i,a){return i[0]<=i[1]?i[0]<=a&&a<=i[1]:a<i[0]||i[1]<a}function Dm(i){var a,o,u,p,g,v,x;if(be=qe=-(Ue=je=1/0),Rn=[],ke(i,Ns),o=Rn.length){for(Rn.sort(Om),a=1,g=[u=Rn[0]];a<o;++a)L2(u,(p=Rn[a])[0])||L2(u,p[1])?(uo(u[0],p[1])>uo(u[0],u[1])&&(u[1]=p[1]),uo(p[0],u[1])>uo(u[0],u[1])&&(u[0]=p[0])):g.push(u=p);for(v=-1/0,a=0,u=g[o=g.length-1];a<=o;u=p,++a)p=g[a],(x=uo(u[1],p[0]))>v&&(v=x,Ue=p[0],qe=u[1])}return Rn=rr=null,Ue===1/0||je===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ue,je],[qe,be]]}var Wo={sphere:ee,point:Hf,lineStart:M2,lineEnd:O2,polygonStart:function(){Wo.lineStart=Fm,Wo.lineEnd=Pm},polygonEnd:function(){Wo.lineStart=M2,Wo.lineEnd=O2}};function Hf(i,a){i*=w;var o=B(a*=w);dh(o*B(i),o*st(i),st(a))}function dh(i,a,o){++qr,Sa+=(i-Sa)/qr,mn+=(a-mn)/qr,pr+=(o-pr)/qr}function M2(){Wo.point=Bm}function Bm(i,a){i*=w;var o=B(a*=w);qa=o*B(i),Wa=o*st(i),Ga=st(a),Wo.point=Rm,dh(qa,Wa,Ga)}function Rm(i,a){i*=w;var o=B(a*=w),u=o*B(i),p=o*st(i),g=st(a),v=N(Dt((v=Wa*g-Ga*p)*v+(v=Ga*u-qa*g)*v+(v=qa*p-Wa*u)*v),qa*u+Wa*p+Ga*g);Ri+=v,xi+=v*(qa+(qa=u)),Ar+=v*(Wa+(Wa=p)),Rr+=v*(Ga+(Ga=g)),dh(qa,Wa,Ga)}function O2(){Wo.point=Hf}function Fm(){Wo.point=Um}function Pm(){D2(T2,S2),Wo.point=Hf}function Um(i,a){T2=i,S2=a,i*=w,a*=w,Wo.point=D2;var o=B(a);qa=o*B(i),Wa=o*st(i),Ga=st(a),dh(qa,Wa,Ga)}function D2(i,a){i*=w;var o=B(a*=w),u=o*B(i),p=o*st(i),g=st(a),v=Wa*g-Ga*p,x=Ga*u-qa*g,T=qa*p-Wa*u,C=it(v,x,T),O=It(C),z=C&&-O/C;ra.add(z*v),dc.add(z*x),to.add(z*T),Ri+=O,xi+=O*(qa+(qa=u)),Ar+=O*(Wa+(Wa=p)),Rr+=O*(Ga+(Ga=g)),dh(qa,Wa,Ga)}function zm(i){qr=Ri=Sa=mn=pr=xi=Ar=Rr=0,ra=new bt,dc=new bt,to=new bt,ke(i,Wo);var a=+ra,o=+dc,u=+to,p=it(a,o,u);return p<nl&&(a=xi,o=Ar,u=Rr,Ri<nr&&(a=Sa,o=mn,u=pr),(p=it(a,o,u))<nl)?[NaN,NaN]:[N(o,a)*y,It(u/p)*y]}function nu(i){return function(){return i}}function qf(i,a){function o(u,p){return u=i(u,p),a(u[0],u[1])}return i.invert&&a.invert&&(o.invert=function(u,p){return(u=a.invert(u,p))&&i.invert(u[0],u[1])}),o}function Wf(i,a){return[S(i)>qn?i+Math.round(-i/s)*s:i,a]}function Gf(i,a,o){return(i%=s)?a||o?qf(R2(i),F2(a,o)):R2(i):a||o?F2(a,o):Wf}function B2(i){return function(a,o){return[(a+=i)>qn?a-s:a<-qn?a+s:a,o]}}function R2(i){var a=B2(i);return a.invert=B2(-i),a}function F2(i,a){var o=B(i),u=st(i),p=B(a),g=st(a);function v(x,T){var C=B(T),O=B(x)*C,z=st(x)*C,F=st(T),j=F*o+O*u;return[N(z*p-j*g,O*o-F*u),It(j*p+z*g)]}return v.invert=function(x,T){var C=B(T),O=B(x)*C,z=st(x)*C,F=st(T),j=F*p-z*g;return[N(z*p+F*g,O*o+j*u),It(j*o-O*u)]},v}function P2(i){function a(o){return(o=i(o[0]*w,o[1]*w))[0]*=y,o[1]*=y,o}return i=Gf(i[0]*w,i[1]*w,i.length>2?i[2]*w:0),a.invert=function(o){return(o=i.invert(o[0]*w,o[1]*w))[0]*=y,o[1]*=y,o},a}function U2(i,a,o,u,p,g){if(o){var v=B(a),x=st(a),T=u*o;p==null?(p=a+u*s,g=a-T/2):(p=z2(v,p),g=z2(v,g),(u>0?p<g:p>g)&&(p+=u*s));for(var C,O=p;u>0?O>g:O<g;O-=T)C=bn([v,-x*B(O),-x*st(O)]),i.point(C[0],C[1])}}function z2(i,a){(a=hr(a))[0]-=i,fi(a);var o=Mt(-a[1]);return((-a[2]<0?-o:o)+s-nr)%s}function Ym(){var i,a,o=nu([0,0]),u=nu(90),p=nu(6),g={point:function(x,T){i.push(x=a(x,T)),x[0]*=y,x[1]*=y}};function v(){var x=o.apply(this,arguments),T=u.apply(this,arguments)*w,C=p.apply(this,arguments)*w;return i=[],a=Gf(-x[0]*w,-x[1]*w,0).invert,U2(g,T,C,1),x={type:"Polygon",coordinates:[i]},i=a=null,x}return v.center=function(x){return arguments.length?(o=typeof x=="function"?x:nu([+x[0],+x[1]]),v):o},v.radius=function(x){return arguments.length?(u=typeof x=="function"?x:nu(+x),v):u},v.precision=function(x){return arguments.length?(p=typeof x=="function"?x:nu(+x),v):p},v}function Y2(){var i,a=[];return{point:function(o,u,p){i.push([o,u,p])},lineStart:function(){a.push(i=[])},lineEnd:ee,rejoin:function(){a.length>1&&a.push(a.pop().concat(a.shift()))},result:function(){var o=a;return a=[],i=null,o}}}function p0(i,a){return S(i[0]-a[0])<nr&&S(i[1]-a[1])<nr}function g0(i,a,o,u){this.x=i,this.z=a,this.o=o,this.e=u,this.v=!1,this.n=this.p=null}function j2(i,a,o,u,p){var g,v,x=[],T=[];if(i.forEach(function(nt){if(!((G=nt.length-1)<=0)){var G,V,Z=nt[0],dt=nt[G];if(p0(Z,dt)){if(!Z[2]&&!dt[2]){for(p.lineStart(),g=0;g<G;++g)p.point((Z=nt[g])[0],Z[1]);return void p.lineEnd()}dt[0]+=2e-6}x.push(V=new g0(Z,nt,null,!0)),T.push(V.o=new g0(Z,null,V,!1)),x.push(V=new g0(dt,nt,null,!1)),T.push(V.o=new g0(dt,null,V,!0))}}),x.length){for(T.sort(a),$2(x),$2(T),g=0,v=T.length;g<v;++g)T[g].e=o=!o;for(var C,O,z=x[0];;){for(var F=z,j=!0;F.v;)if((F=F.n)===z)return;C=F.z,p.lineStart();do{if(F.v=F.o.v=!0,F.e){if(j)for(g=0,v=C.length;g<v;++g)p.point((O=C[g])[0],O[1]);else u(F.x,F.n.x,1,p);F=F.n}else{if(j)for(C=F.p.z,g=C.length-1;g>=0;--g)p.point((O=C[g])[0],O[1]);else u(F.x,F.p.x,-1,p);F=F.p}C=(F=F.o).z,j=!j}while(!F.v);p.lineEnd()}}}function $2(i){if(a=i.length){for(var a,o,u=0,p=i[0];++u<a;)p.n=o=i[u],o.p=p,p=o;p.n=o=i[0],o.p=p}}function Vf(i){return S(i[0])<=qn?i[0]:Pt(i[0])*((S(i[0])+qn)%s-qn)}function H2(i,a){var o=Vf(a),u=a[1],p=st(u),g=[st(o),-B(o),0],v=0,x=0,T=new bt;p===1?u=hi+nr:p===-1&&(u=-hi-nr);for(var C=0,O=i.length;C<O;++C)if(F=(z=i[C]).length)for(var z,F,j=z[F-1],nt=Vf(j),G=j[1]/2+l,V=st(G),Z=B(G),dt=0;dt<F;++dt,nt=lt,V=wt,Z=Kt,j=ct){var ct=z[dt],lt=Vf(ct),vt=ct[1]/2+l,wt=st(vt),Kt=B(vt),me=lt-nt,Wt=me>=0?1:-1,Ut=Wt*me,zt=Ut>qn,Yt=V*wt;if(T.add(N(Yt*Wt*st(Ut),Z*Kt+Yt*B(Ut))),v+=zt?me+Wt*s:me,zt^nt>=o^lt>=o){var Et=fr(hr(j),hr(ct));fi(Et);var Bt=fr(g,Et);fi(Bt);var Gt=(zt^me>=0?-1:1)*It(Bt[2]);(u>Gt||u===Gt&&(Et[0]||Et[1]))&&(x+=zt^me>=0?1:-1)}}return(v<-1e-6||v<nr&&T<-1e-12)^1&x}function q2(i,a,o,u){return function(p){var g,v,x,T=a(p),C=Y2(),O=a(C),z=!1,F={point:j,lineStart:G,lineEnd:V,polygonStart:function(){F.point=Z,F.lineStart=dt,F.lineEnd=ct,v=[],g=[]},polygonEnd:function(){F.point=j,F.lineStart=G,F.lineEnd=V,v=hn(v);var lt=H2(g,u);v.length?(z||(p.polygonStart(),z=!0),j2(v,$m,lt,o,p)):lt&&(z||(p.polygonStart(),z=!0),p.lineStart(),o(null,null,1,p),p.lineEnd()),z&&(p.polygonEnd(),z=!1),v=g=null},sphere:function(){p.polygonStart(),p.lineStart(),o(null,null,1,p),p.lineEnd(),p.polygonEnd()}};function j(lt,vt){i(lt,vt)&&p.point(lt,vt)}function nt(lt,vt){T.point(lt,vt)}function G(){F.point=nt,T.lineStart()}function V(){F.point=j,T.lineEnd()}function Z(lt,vt){x.push([lt,vt]),O.point(lt,vt)}function dt(){O.lineStart(),x=[]}function ct(){Z(x[0][0],x[0][1]),O.lineEnd();var lt,vt,wt,Kt,me=O.clean(),Wt=C.result(),Ut=Wt.length;if(x.pop(),g.push(x),x=null,Ut)if(1&me){if((vt=(wt=Wt[0]).length-1)>0){for(z||(p.polygonStart(),z=!0),p.lineStart(),lt=0;lt<vt;++lt)p.point((Kt=wt[lt])[0],Kt[1]);p.lineEnd()}}else Ut>1&&2&me&&Wt.push(Wt.pop().concat(Wt.shift())),v.push(Wt.filter(jm))}return F}}function jm(i){return i.length>1}function $m(i,a){return((i=i.x)[0]<0?i[1]-hi-nr:hi-i[1])-((a=a.x)[0]<0?a[1]-hi-nr:hi-a[1])}Wf.invert=Wf;const Zf=q2(function(){return!0},function(i){var a,o=NaN,u=NaN,p=NaN;return{lineStart:function(){i.lineStart(),a=1},point:function(g,v){var x=g>0?qn:-qn,T=S(g-o);S(T-qn)<nr?(i.point(o,u=(u+v)/2>0?hi:-hi),i.point(p,u),i.lineEnd(),i.lineStart(),i.point(x,u),i.point(g,u),a=0):p!==x&&T>=qn&&(S(o-p)<nr&&(o-=p*nr),S(g-x)<nr&&(g-=x*nr),u=function(C,O,z,F){var j,nt,G=st(C-z);return S(G)>nr?M((st(O)*(nt=B(F))*st(z)-st(F)*(j=B(O))*st(C))/(j*nt*G)):(O+F)/2}(o,u,g,v),i.point(p,u),i.lineEnd(),i.lineStart(),i.point(x,u),a=0),i.point(o=g,u=v),p=x},lineEnd:function(){i.lineEnd(),o=u=NaN},clean:function(){return 2-a}}},function(i,a,o,u){var p;if(i==null)p=o*hi,u.point(-qn,p),u.point(0,p),u.point(qn,p),u.point(qn,0),u.point(qn,-p),u.point(0,-p),u.point(-qn,-p),u.point(-qn,0),u.point(-qn,p);else if(S(i[0]-a[0])>nr){var g=i[0]<a[0]?qn:-qn;p=o*g/2,u.point(-g,p),u.point(0,p),u.point(g,p)}else u.point(a[0],a[1])},[-qn,-hi]);function W2(i){var a=B(i),o=6*w,u=a>0,p=S(a)>nr;function g(T,C){return B(T)*B(C)>a}function v(T,C,O){var z=[1,0,0],F=fr(hr(T),hr(C)),j=ir(F,F),nt=F[0],G=j-nt*nt;if(!G)return!O&&T;var V=a*j/G,Z=-a*nt/G,dt=fr(z,F),ct=Ei(z,V);Ur(ct,Ei(F,Z));var lt=dt,vt=ir(ct,lt),wt=ir(lt,lt),Kt=vt*vt-wt*(ir(ct,ct)-1);if(!(Kt<0)){var me=Dt(Kt),Wt=Ei(lt,(-vt-me)/wt);if(Ur(Wt,ct),Wt=bn(Wt),!O)return Wt;var Ut,zt=T[0],Yt=C[0],Et=T[1],Bt=C[1];Yt<zt&&(Ut=zt,zt=Yt,Yt=Ut);var Gt=Yt-zt,ne=S(Gt-qn)<nr;if(!ne&&Bt<Et&&(Ut=Et,Et=Bt,Bt=Ut),ne||Gt<nr?ne?Et+Bt>0^Wt[1]<(S(Wt[0]-zt)<nr?Et:Bt):Et<=Wt[1]&&Wt[1]<=Bt:Gt>qn^(zt<=Wt[0]&&Wt[0]<=Yt)){var Ae=Ei(lt,(-vt+me)/wt);return Ur(Ae,ct),[Wt,bn(Ae)]}}}function x(T,C){var O=u?i:qn-i,z=0;return T<-O?z|=1:T>O&&(z|=2),C<-O?z|=4:C>O&&(z|=8),z}return q2(g,function(T){var C,O,z,F,j;return{lineStart:function(){F=z=!1,j=1},point:function(nt,G){var V,Z=[nt,G],dt=g(nt,G),ct=u?dt?0:x(nt,G):dt?x(nt+(nt<0?qn:-qn),G):0;if(!C&&(F=z=dt)&&T.lineStart(),dt!==z&&(!(V=v(C,Z))||p0(C,V)||p0(Z,V))&&(Z[2]=1),dt!==z)j=0,dt?(T.lineStart(),V=v(Z,C),T.point(V[0],V[1])):(V=v(C,Z),T.point(V[0],V[1],2),T.lineEnd()),C=V;else if(p&&C&&u^dt){var lt;ct&O||!(lt=v(Z,C,!0))||(j=0,u?(T.lineStart(),T.point(lt[0][0],lt[0][1]),T.point(lt[1][0],lt[1][1]),T.lineEnd()):(T.point(lt[1][0],lt[1][1]),T.lineEnd(),T.lineStart(),T.point(lt[0][0],lt[0][1],3)))}!dt||C&&p0(C,Z)||T.point(Z[0],Z[1]),C=Z,z=dt,O=ct},lineEnd:function(){z&&T.lineEnd(),C=null},clean:function(){return j|(F&&z)<<1}}},function(T,C,O,z){U2(z,i,o,O,T,C)},u?[0,-i]:[-qn,i-qn])}var Xf,Kf,y0,m0,ph=1e9,_0=-ph;function b0(i,a,o,u){function p(C,O){return i<=C&&C<=o&&a<=O&&O<=u}function g(C,O,z,F){var j=0,nt=0;if(C==null||(j=v(C,z))!==(nt=v(O,z))||T(C,O)<0^z>0)do F.point(j===0||j===3?i:o,j>1?u:a);while((j=(j+z+4)%4)!==nt);else F.point(O[0],O[1])}function v(C,O){return S(C[0]-i)<nr?O>0?0:3:S(C[0]-o)<nr?O>0?2:1:S(C[1]-a)<nr?O>0?1:0:O>0?3:2}function x(C,O){return T(C.x,O.x)}function T(C,O){var z=v(C,1),F=v(O,1);return z!==F?z-F:z===0?O[1]-C[1]:z===1?C[0]-O[0]:z===2?C[1]-O[1]:O[0]-C[0]}return function(C){var O,z,F,j,nt,G,V,Z,dt,ct,lt,vt=C,wt=Y2(),Kt={point:me,lineStart:function(){Kt.point=Wt,z&&z.push(F=[]),ct=!0,dt=!1,V=Z=NaN},lineEnd:function(){O&&(Wt(j,nt),G&&dt&&wt.rejoin(),O.push(wt.result())),Kt.point=me,dt&&vt.lineEnd()},polygonStart:function(){vt=wt,O=[],z=[],lt=!0},polygonEnd:function(){var Ut=function(){for(var Et=0,Bt=0,Gt=z.length;Bt<Gt;++Bt)for(var ne,Ae,$e=z[Bt],Ke=1,yn=$e.length,Je=$e[0],$n=Je[0],Wn=Je[1];Ke<yn;++Ke)ne=$n,Ae=Wn,$n=(Je=$e[Ke])[0],Wn=Je[1],Ae<=u?Wn>u&&($n-ne)*(u-Ae)>(Wn-Ae)*(i-ne)&&++Et:Wn<=u&&($n-ne)*(u-Ae)<(Wn-Ae)*(i-ne)&&--Et;return Et}(),zt=lt&&Ut,Yt=(O=hn(O)).length;(zt||Yt)&&(C.polygonStart(),zt&&(C.lineStart(),g(null,null,1,C),C.lineEnd()),Yt&&j2(O,x,Ut,g,C),C.polygonEnd()),vt=C,O=z=F=null}};function me(Ut,zt){p(Ut,zt)&&vt.point(Ut,zt)}function Wt(Ut,zt){var Yt=p(Ut,zt);if(z&&F.push([Ut,zt]),ct)j=Ut,nt=zt,G=Yt,ct=!1,Yt&&(vt.lineStart(),vt.point(Ut,zt));else if(Yt&&dt)vt.point(Ut,zt);else{var Et=[V=Math.max(_0,Math.min(ph,V)),Z=Math.max(_0,Math.min(ph,Z))],Bt=[Ut=Math.max(_0,Math.min(ph,Ut)),zt=Math.max(_0,Math.min(ph,zt))];(function(Gt,ne,Ae,$e,Ke,yn){var Je,$n=Gt[0],Wn=Gt[1],Dn=0,Fn=1,Fr=ne[0]-$n,_r=ne[1]-Wn;if(Je=Ae-$n,Fr||!(Je>0)){if(Je/=Fr,Fr<0){if(Je<Dn)return;Je<Fn&&(Fn=Je)}else if(Fr>0){if(Je>Fn)return;Je>Dn&&(Dn=Je)}if(Je=Ke-$n,Fr||!(Je<0)){if(Je/=Fr,Fr<0){if(Je>Fn)return;Je>Dn&&(Dn=Je)}else if(Fr>0){if(Je<Dn)return;Je<Fn&&(Fn=Je)}if(Je=$e-Wn,_r||!(Je>0)){if(Je/=_r,_r<0){if(Je<Dn)return;Je<Fn&&(Fn=Je)}else if(_r>0){if(Je>Fn)return;Je>Dn&&(Dn=Je)}if(Je=yn-Wn,_r||!(Je<0)){if(Je/=_r,_r<0){if(Je>Fn)return;Je>Dn&&(Dn=Je)}else if(_r>0){if(Je<Dn)return;Je<Fn&&(Fn=Je)}return Dn>0&&(Gt[0]=$n+Dn*Fr,Gt[1]=Wn+Dn*_r),Fn<1&&(ne[0]=$n+Fn*Fr,ne[1]=Wn+Fn*_r),!0}}}}})(Et,Bt,i,a,o,u)?(dt||(vt.lineStart(),vt.point(Et[0],Et[1])),vt.point(Bt[0],Bt[1]),Yt||vt.lineEnd(),lt=!1):Yt&&(vt.lineStart(),vt.point(Ut,zt),lt=!1)}V=Ut,Z=zt,dt=Yt}return Kt}}function Hm(){var i,a,o,u=0,p=0,g=960,v=500;return o={stream:function(x){return i&&a===x?i:i=b0(u,p,g,v)(a=x)},extent:function(x){return arguments.length?(u=+x[0][0],p=+x[0][1],g=+x[1][0],v=+x[1][1],i=a=null,o):[[u,p],[g,v]]}}}var ru={sphere:ee,point:ee,lineStart:function(){ru.point=Wm,ru.lineEnd=qm},lineEnd:ee,polygonStart:ee,polygonEnd:ee};function qm(){ru.point=ru.lineEnd=ee}function Wm(i,a){Kf=i*=w,y0=st(a*=w),m0=B(a),ru.point=Gm}function Gm(i,a){i*=w;var o=st(a*=w),u=B(a),p=S(i-Kf),g=B(p),v=u*st(p),x=m0*o-y0*u*g,T=y0*o+m0*u*g;Xf.add(N(Dt(v*v+x*x),T)),Kf=i,y0=o,m0=u}function G2(i){return Xf=new bt,ke(i,ru),+Xf}var Jf=[null,null],Vm={type:"LineString",coordinates:Jf};function v0(i,a){return Jf[0]=i,Jf[1]=a,G2(Vm)}var V2={Feature:function(i,a){return x0(i.geometry,a)},FeatureCollection:function(i,a){for(var o=i.features,u=-1,p=o.length;++u<p;)if(x0(o[u].geometry,a))return!0;return!1}},Z2={Sphere:function(){return!0},Point:function(i,a){return X2(i.coordinates,a)},MultiPoint:function(i,a){for(var o=i.coordinates,u=-1,p=o.length;++u<p;)if(X2(o[u],a))return!0;return!1},LineString:function(i,a){return K2(i.coordinates,a)},MultiLineString:function(i,a){for(var o=i.coordinates,u=-1,p=o.length;++u<p;)if(K2(o[u],a))return!0;return!1},Polygon:function(i,a){return J2(i.coordinates,a)},MultiPolygon:function(i,a){for(var o=i.coordinates,u=-1,p=o.length;++u<p;)if(J2(o[u],a))return!0;return!1},GeometryCollection:function(i,a){for(var o=i.geometries,u=-1,p=o.length;++u<p;)if(x0(o[u],a))return!0;return!1}};function x0(i,a){return!(!i||!Z2.hasOwnProperty(i.type))&&Z2[i.type](i,a)}function X2(i,a){return v0(i,a)===0}function K2(i,a){for(var o,u,p,g=0,v=i.length;g<v;g++){if((u=v0(i[g],a))===0||g>0&&(p=v0(i[g],i[g-1]))>0&&o<=p&&u<=p&&(o+u-p)*(1-Math.pow((o-u)/p,2))<nl*p)return!0;o=u}return!1}function J2(i,a){return!!H2(i.map(Zm),Q2(a))}function Zm(i){return(i=i.map(Q2)).pop(),i}function Q2(i){return[i[0]*w,i[1]*w]}function Xm(i,a){return(i&&V2.hasOwnProperty(i.type)?V2[i.type]:x0)(i,a)}function tp(i,a,o){var u=Le(i,a-nr,o).concat(a);return function(p){return u.map(function(g){return[p,g]})}}function ep(i,a,o){var u=Le(i,a-nr,o).concat(a);return function(p){return u.map(function(g){return[g,p]})}}function np(){var i,a,o,u,p,g,v,x,T,C,O,z,F=10,j=F,nt=90,G=360,V=2.5;function Z(){return{type:"MultiLineString",coordinates:dt()}}function dt(){return Le(Y(u/nt)*nt,o,nt).map(O).concat(Le(Y(x/G)*G,v,G).map(z)).concat(Le(Y(a/F)*F,i,F).filter(function(ct){return S(ct%nt)>nr}).map(T)).concat(Le(Y(g/j)*j,p,j).filter(function(ct){return S(ct%G)>nr}).map(C))}return Z.lines=function(){return dt().map(function(ct){return{type:"LineString",coordinates:ct}})},Z.outline=function(){return{type:"Polygon",coordinates:[O(u).concat(z(v).slice(1),O(o).reverse().slice(1),z(x).reverse().slice(1))]}},Z.extent=function(ct){return arguments.length?Z.extentMajor(ct).extentMinor(ct):Z.extentMinor()},Z.extentMajor=function(ct){return arguments.length?(u=+ct[0][0],o=+ct[1][0],x=+ct[0][1],v=+ct[1][1],u>o&&(ct=u,u=o,o=ct),x>v&&(ct=x,x=v,v=ct),Z.precision(V)):[[u,x],[o,v]]},Z.extentMinor=function(ct){return arguments.length?(a=+ct[0][0],i=+ct[1][0],g=+ct[0][1],p=+ct[1][1],a>i&&(ct=a,a=i,i=ct),g>p&&(ct=g,g=p,p=ct),Z.precision(V)):[[a,g],[i,p]]},Z.step=function(ct){return arguments.length?Z.stepMajor(ct).stepMinor(ct):Z.stepMinor()},Z.stepMajor=function(ct){return arguments.length?(nt=+ct[0],G=+ct[1],Z):[nt,G]},Z.stepMinor=function(ct){return arguments.length?(F=+ct[0],j=+ct[1],Z):[F,j]},Z.precision=function(ct){return arguments.length?(V=+ct,T=tp(g,p,90),C=ep(a,i,V),O=tp(x,v,90),z=ep(u,o,V),Z):V},Z.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Km(){return np()()}function Jm(i,a){var o=i[0]*w,u=i[1]*w,p=a[0]*w,g=a[1]*w,v=B(u),x=st(u),T=B(g),C=st(g),O=v*B(o),z=v*st(o),F=T*B(p),j=T*st(p),nt=2*It(Dt($t(g-u)+v*T*$t(p-o))),G=st(nt),V=nt?function(Z){var dt=st(Z*=nt)/G,ct=st(nt-Z)/G,lt=ct*O+dt*F,vt=ct*z+dt*j,wt=ct*x+dt*C;return[N(vt,lt)*y,N(wt,Dt(lt*lt+vt*vt))*y]}:function(){return[o*y,u*y]};return V.distance=nt,V}const gh=i=>i;var rp,ip,Qf,td,ed=new bt,nd=new bt,pc={point:ee,lineStart:ee,lineEnd:ee,polygonStart:function(){pc.lineStart=Qm,pc.lineEnd=e_},polygonEnd:function(){pc.lineStart=pc.lineEnd=pc.point=ee,ed.add(S(nd)),nd=new bt},result:function(){var i=ed/2;return ed=new bt,i}};function Qm(){pc.point=t_}function t_(i,a){pc.point=ap,rp=Qf=i,ip=td=a}function ap(i,a){nd.add(td*i-Qf*a),Qf=i,td=a}function e_(){ap(rp,ip)}const op=pc;var iu=1/0,k0=iu,yh=-iu,w0=yh,n_={point:function(i,a){i<iu&&(iu=i),i>yh&&(yh=i),a<k0&&(k0=a),a>w0&&(w0=a)},lineStart:ee,lineEnd:ee,polygonStart:ee,polygonEnd:ee,result:function(){var i=[[iu,k0],[yh,w0]];return yh=w0=-(k0=iu=1/0),i}};const E0=n_;var sp,cp,as,os,rd=0,id=0,mh=0,T0=0,S0=0,au=0,ad=0,od=0,_h=0,Go={point:rl,lineStart:lp,lineEnd:up,polygonStart:function(){Go.lineStart=a_,Go.lineEnd=o_},polygonEnd:function(){Go.point=rl,Go.lineStart=lp,Go.lineEnd=up},result:function(){var i=_h?[ad/_h,od/_h]:au?[T0/au,S0/au]:mh?[rd/mh,id/mh]:[NaN,NaN];return rd=id=mh=T0=S0=au=ad=od=_h=0,i}};function rl(i,a){rd+=i,id+=a,++mh}function lp(){Go.point=r_}function r_(i,a){Go.point=i_,rl(as=i,os=a)}function i_(i,a){var o=i-as,u=a-os,p=Dt(o*o+u*u);T0+=p*(as+i)/2,S0+=p*(os+a)/2,au+=p,rl(as=i,os=a)}function up(){Go.point=rl}function a_(){Go.point=s_}function o_(){hp(sp,cp)}function s_(i,a){Go.point=hp,rl(sp=as=i,cp=os=a)}function hp(i,a){var o=i-as,u=a-os,p=Dt(o*o+u*u);T0+=p*(as+i)/2,S0+=p*(os+a)/2,au+=p,ad+=(p=os*i-as*a)*(as+i),od+=p*(os+a),_h+=3*p,rl(as=i,os=a)}const fp=Go;function dp(i){this._context=i}dp.prototype={_radius:4.5,pointRadius:function(i){return this._radius=i,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(i,a){switch(this._point){case 0:this._context.moveTo(i,a),this._point=1;break;case 1:this._context.lineTo(i,a);break;default:this._context.moveTo(i+this._radius,a),this._context.arc(i,a,this._radius,0,s)}},result:ee};var sd,pp,gp,bh,vh,cd=new bt,A0={point:ee,lineStart:function(){A0.point=c_},lineEnd:function(){sd&&yp(pp,gp),A0.point=ee},polygonStart:function(){sd=!0},polygonEnd:function(){sd=null},result:function(){var i=+cd;return cd=new bt,i}};function c_(i,a){A0.point=yp,pp=bh=i,gp=vh=a}function yp(i,a){bh-=i,vh-=a,cd.add(Dt(bh*bh+vh*vh)),bh=i,vh=a}const mp=A0;function _p(){this._string=[]}function bp(i){return"m0,"+i+"a"+i+","+i+" 0 1,1 0,"+-2*i+"a"+i+","+i+" 0 1,1 0,"+2*i+"z"}function l_(i,a){var o,u,p=4.5;function g(v){return v&&(typeof p=="function"&&u.pointRadius(+p.apply(this,arguments)),ke(v,o(u))),u.result()}return g.area=function(v){return ke(v,o(op)),op.result()},g.measure=function(v){return ke(v,o(mp)),mp.result()},g.bounds=function(v){return ke(v,o(E0)),E0.result()},g.centroid=function(v){return ke(v,o(fp)),fp.result()},g.projection=function(v){return arguments.length?(o=v==null?(i=null,gh):(i=v).stream,g):i},g.context=function(v){return arguments.length?(u=v==null?(a=null,new _p):new dp(a=v),typeof p!="function"&&u.pointRadius(p),g):a},g.pointRadius=function(v){return arguments.length?(p=typeof v=="function"?v:(u.pointRadius(+v),+v),g):p},g.projection(i).context(a)}function u_(i){return{stream:xh(i)}}function xh(i){return function(a){var o=new ld;for(var u in i)o[u]=i[u];return o.stream=a,o}}function ld(){}function ud(i,a,o){var u=i.clipExtent&&i.clipExtent();return i.scale(150).translate([0,0]),u!=null&&i.clipExtent(null),ke(o,i.stream(E0)),a(E0.result()),u!=null&&i.clipExtent(u),i}function C0(i,a,o){return ud(i,function(u){var p=a[1][0]-a[0][0],g=a[1][1]-a[0][1],v=Math.min(p/(u[1][0]-u[0][0]),g/(u[1][1]-u[0][1])),x=+a[0][0]+(p-v*(u[1][0]+u[0][0]))/2,T=+a[0][1]+(g-v*(u[1][1]+u[0][1]))/2;i.scale(150*v).translate([x,T])},o)}function hd(i,a,o){return C0(i,[[0,0],a],o)}function fd(i,a,o){return ud(i,function(u){var p=+a,g=p/(u[1][0]-u[0][0]),v=(p-g*(u[1][0]+u[0][0]))/2,x=-g*u[0][1];i.scale(150*g).translate([v,x])},o)}function dd(i,a,o){return ud(i,function(u){var p=+a,g=p/(u[1][1]-u[0][1]),v=-g*u[0][0],x=(p-g*(u[1][1]+u[0][1]))/2;i.scale(150*g).translate([v,x])},o)}_p.prototype={_radius:4.5,_circle:bp(4.5),pointRadius:function(i){return(i=+i)!==this._radius&&(this._radius=i,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(i,a){switch(this._point){case 0:this._string.push("M",i,",",a),this._point=1;break;case 1:this._string.push("L",i,",",a);break;default:this._circle==null&&(this._circle=bp(this._radius)),this._string.push("M",i,",",a,this._circle)}},result:function(){if(this._string.length){var i=this._string.join("");return this._string=[],i}return null}},ld.prototype={constructor:ld,point:function(i,a){this.stream.point(i,a)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var h_=B(30*w);function vp(i,a){return+a?function(o,u){function p(g,v,x,T,C,O,z,F,j,nt,G,V,Z,dt){var ct=z-g,lt=F-v,vt=ct*ct+lt*lt;if(vt>4*u&&Z--){var wt=T+nt,Kt=C+G,me=O+V,Wt=Dt(wt*wt+Kt*Kt+me*me),Ut=It(me/=Wt),zt=S(S(me)-1)<nr||S(x-j)<nr?(x+j)/2:N(Kt,wt),Yt=o(zt,Ut),Et=Yt[0],Bt=Yt[1],Gt=Et-g,ne=Bt-v,Ae=lt*Gt-ct*ne;(Ae*Ae/vt>u||S((ct*Gt+lt*ne)/vt-.5)>.3||T*nt+C*G+O*V<h_)&&(p(g,v,x,T,C,O,Et,Bt,zt,wt/=Wt,Kt/=Wt,me,Z,dt),dt.point(Et,Bt),p(Et,Bt,zt,wt,Kt,me,z,F,j,nt,G,V,Z,dt))}}return function(g){var v,x,T,C,O,z,F,j,nt,G,V,Z,dt={point:ct,lineStart:lt,lineEnd:wt,polygonStart:function(){g.polygonStart(),dt.lineStart=Kt},polygonEnd:function(){g.polygonEnd(),dt.lineStart=lt}};function ct(Ut,zt){Ut=o(Ut,zt),g.point(Ut[0],Ut[1])}function lt(){j=NaN,dt.point=vt,g.lineStart()}function vt(Ut,zt){var Yt=hr([Ut,zt]),Et=o(Ut,zt);p(j,nt,F,G,V,Z,j=Et[0],nt=Et[1],F=Ut,G=Yt[0],V=Yt[1],Z=Yt[2],16,g),g.point(j,nt)}function wt(){dt.point=ct,g.lineEnd()}function Kt(){lt(),dt.point=me,dt.lineEnd=Wt}function me(Ut,zt){vt(v=Ut,zt),x=j,T=nt,C=G,O=V,z=Z,dt.point=vt}function Wt(){p(j,nt,F,G,V,Z,x,T,v,C,O,z,16,g),dt.lineEnd=wt,wt()}return dt}}(i,a):function(o){return xh({point:function(u,p){u=o(u,p),this.stream.point(u[0],u[1])}})}(i)}var f_=xh({point:function(i,a){this.stream.point(i*w,a*w)}});function xp(i,a,o,u,p,g){if(!g)return function(G,V,Z,dt,ct){function lt(vt,wt){return[V+G*(vt*=dt),Z-G*(wt*=ct)]}return lt.invert=function(vt,wt){return[(vt-V)/G*dt,(Z-wt)/G*ct]},lt}(i,a,o,u,p);var v=B(g),x=st(g),T=v*i,C=x*i,O=v/i,z=x/i,F=(x*o-v*a)/i,j=(x*a+v*o)/i;function nt(G,V){return[T*(G*=u)-C*(V*=p)+a,o-C*G-T*V]}return nt.invert=function(G,V){return[u*(O*G-z*V+F),p*(j-z*G-O*V)]},nt}function ss(i){return pd(function(){return i})()}function pd(i){var a,o,u,p,g,v,x,T,C,O,z=150,F=480,j=250,nt=0,G=0,V=0,Z=0,dt=0,ct=0,lt=1,vt=1,wt=null,Kt=Zf,me=null,Wt=gh,Ut=.5;function zt(Gt){return T(Gt[0]*w,Gt[1]*w)}function Yt(Gt){return(Gt=T.invert(Gt[0],Gt[1]))&&[Gt[0]*y,Gt[1]*y]}function Et(){var Gt=xp(z,0,0,lt,vt,ct).apply(null,a(nt,G)),ne=xp(z,F-Gt[0],j-Gt[1],lt,vt,ct);return o=Gf(V,Z,dt),x=qf(a,ne),T=qf(o,x),v=vp(x,Ut),Bt()}function Bt(){return C=O=null,zt}return zt.stream=function(Gt){return C&&O===Gt?C:C=f_(function(ne){return xh({point:function(Ae,$e){var Ke=ne(Ae,$e);return this.stream.point(Ke[0],Ke[1])}})}(o)(Kt(v(Wt(O=Gt)))))},zt.preclip=function(Gt){return arguments.length?(Kt=Gt,wt=void 0,Bt()):Kt},zt.postclip=function(Gt){return arguments.length?(Wt=Gt,me=u=p=g=null,Bt()):Wt},zt.clipAngle=function(Gt){return arguments.length?(Kt=+Gt?W2(wt=Gt*w):(wt=null,Zf),Bt()):wt*y},zt.clipExtent=function(Gt){return arguments.length?(Wt=Gt==null?(me=u=p=g=null,gh):b0(me=+Gt[0][0],u=+Gt[0][1],p=+Gt[1][0],g=+Gt[1][1]),Bt()):me==null?null:[[me,u],[p,g]]},zt.scale=function(Gt){return arguments.length?(z=+Gt,Et()):z},zt.translate=function(Gt){return arguments.length?(F=+Gt[0],j=+Gt[1],Et()):[F,j]},zt.center=function(Gt){return arguments.length?(nt=Gt[0]%360*w,G=Gt[1]%360*w,Et()):[nt*y,G*y]},zt.rotate=function(Gt){return arguments.length?(V=Gt[0]%360*w,Z=Gt[1]%360*w,dt=Gt.length>2?Gt[2]%360*w:0,Et()):[V*y,Z*y,dt*y]},zt.angle=function(Gt){return arguments.length?(ct=Gt%360*w,Et()):ct*y},zt.reflectX=function(Gt){return arguments.length?(lt=Gt?-1:1,Et()):lt<0},zt.reflectY=function(Gt){return arguments.length?(vt=Gt?-1:1,Et()):vt<0},zt.precision=function(Gt){return arguments.length?(v=vp(x,Ut=Gt*Gt),Bt()):Dt(Ut)},zt.fitExtent=function(Gt,ne){return C0(zt,Gt,ne)},zt.fitSize=function(Gt,ne){return hd(zt,Gt,ne)},zt.fitWidth=function(Gt,ne){return fd(zt,Gt,ne)},zt.fitHeight=function(Gt,ne){return dd(zt,Gt,ne)},function(){return a=i.apply(this,arguments),zt.invert=a.invert&&Yt,Et()}}function gd(i){var a=0,o=qn/3,u=pd(i),p=u(a,o);return p.parallels=function(g){return arguments.length?u(a=g[0]*w,o=g[1]*w):[a*y,o*y]},p}function kp(i,a){var o=st(i),u=(o+st(a))/2;if(S(u)<nr)return function(x){var T=B(x);function C(O,z){return[O*T,st(z)/T]}return C.invert=function(O,z){return[O/T,It(z*T)]},C}(i);var p=1+o*(2*u-o),g=Dt(p)/u;function v(x,T){var C=Dt(p-2*u*st(T))/u;return[C*st(x*=u),g-C*B(x)]}return v.invert=function(x,T){var C=g-T,O=N(x,S(C))*Pt(C);return C*u<0&&(O-=qn*Pt(x)*Pt(C)),[O/u,It((p-(x*x+C*C)*u*u)/(2*u))]},v}function N0(){return gd(kp).scale(155.424).center([0,33.6442])}function wp(){return N0().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function d_(){var i,a,o,u,p,g,v=wp(),x=N0().rotate([154,0]).center([-2,58.5]).parallels([55,65]),T=N0().rotate([157,0]).center([-3,19.9]).parallels([8,18]),C={point:function(F,j){g=[F,j]}};function O(F){var j=F[0],nt=F[1];return g=null,o.point(j,nt),g||(u.point(j,nt),g)||(p.point(j,nt),g)}function z(){return i=a=null,O}return O.invert=function(F){var j=v.scale(),nt=v.translate(),G=(F[0]-nt[0])/j,V=(F[1]-nt[1])/j;return(V>=.12&&V<.234&&G>=-.425&&G<-.214?x:V>=.166&&V<.234&&G>=-.214&&G<-.115?T:v).invert(F)},O.stream=function(F){return i&&a===F?i:(j=[v.stream(a=F),x.stream(F),T.stream(F)],nt=j.length,i={point:function(G,V){for(var Z=-1;++Z<nt;)j[Z].point(G,V)},sphere:function(){for(var G=-1;++G<nt;)j[G].sphere()},lineStart:function(){for(var G=-1;++G<nt;)j[G].lineStart()},lineEnd:function(){for(var G=-1;++G<nt;)j[G].lineEnd()},polygonStart:function(){for(var G=-1;++G<nt;)j[G].polygonStart()},polygonEnd:function(){for(var G=-1;++G<nt;)j[G].polygonEnd()}});var j,nt},O.precision=function(F){return arguments.length?(v.precision(F),x.precision(F),T.precision(F),z()):v.precision()},O.scale=function(F){return arguments.length?(v.scale(F),x.scale(.35*F),T.scale(F),O.translate(v.translate())):v.scale()},O.translate=function(F){if(!arguments.length)return v.translate();var j=v.scale(),nt=+F[0],G=+F[1];return o=v.translate(F).clipExtent([[nt-.455*j,G-.238*j],[nt+.455*j,G+.238*j]]).stream(C),u=x.translate([nt-.307*j,G+.201*j]).clipExtent([[nt-.425*j+nr,G+.12*j+nr],[nt-.214*j-nr,G+.234*j-nr]]).stream(C),p=T.translate([nt-.205*j,G+.212*j]).clipExtent([[nt-.214*j+nr,G+.166*j+nr],[nt-.115*j-nr,G+.234*j-nr]]).stream(C),z()},O.fitExtent=function(F,j){return C0(O,F,j)},O.fitSize=function(F,j){return hd(O,F,j)},O.fitWidth=function(F,j){return fd(O,F,j)},O.fitHeight=function(F,j){return dd(O,F,j)},O.scale(1070)}function Ep(i){return function(a,o){var u=B(a),p=B(o),g=i(u*p);return g===1/0?[2,0]:[g*p*st(a),g*st(o)]}}function kh(i){return function(a,o){var u=Dt(a*a+o*o),p=i(u),g=st(p),v=B(p);return[N(a*g,u*v),It(u&&o*g/u)]}}var yd=Ep(function(i){return Dt(2/(1+i))});function p_(){return ss(yd).scale(124.75).clipAngle(179.999)}yd.invert=kh(function(i){return 2*It(i/2)});var md=Ep(function(i){return(i=Mt(i))&&i/st(i)});function g_(){return ss(md).scale(79.4188).clipAngle(179.999)}function wh(i,a){return[i,ut(Xt((hi+a)/2))]}function y_(){return Tp(wh).scale(961/s)}function Tp(i){var a,o,u,p=ss(i),g=p.center,v=p.scale,x=p.translate,T=p.clipExtent,C=null;function O(){var z=qn*v(),F=p(P2(p.rotate()).invert([0,0]));return T(C==null?[[F[0]-z,F[1]-z],[F[0]+z,F[1]+z]]:i===wh?[[Math.max(F[0]-z,C),a],[Math.min(F[0]+z,o),u]]:[[C,Math.max(F[1]-z,a)],[o,Math.min(F[1]+z,u)]])}return p.scale=function(z){return arguments.length?(v(z),O()):v()},p.translate=function(z){return arguments.length?(x(z),O()):x()},p.center=function(z){return arguments.length?(g(z),O()):g()},p.clipExtent=function(z){return arguments.length?(z==null?C=a=o=u=null:(C=+z[0][0],a=+z[0][1],o=+z[1][0],u=+z[1][1]),O()):C==null?null:[[C,a],[o,u]]},O()}function I0(i){return Xt((hi+i)/2)}function Sp(i,a){var o=B(i),u=i===a?st(i):ut(o/B(a))/ut(I0(a)/I0(i)),p=o*gt(I0(i),u)/u;if(!u)return wh;function g(v,x){p>0?x<-hi+nr&&(x=-hi+nr):x>hi-nr&&(x=hi-nr);var T=p/gt(I0(x),u);return[T*st(u*v),p-T*B(u*v)]}return g.invert=function(v,x){var T=p-x,C=Pt(u)*Dt(v*v+T*T),O=N(v,S(T))*Pt(T);return T*u<0&&(O-=qn*Pt(v)*Pt(T)),[O/u,2*M(gt(p/C,1/u))-hi]},g}function m_(){return gd(Sp).scale(109.5).parallels([30,30])}function Eh(i,a){return[i,a]}function __(){return ss(Eh).scale(152.63)}function Ap(i,a){var o=B(i),u=i===a?st(i):(o-B(a))/(a-i),p=o/u+i;if(S(u)<nr)return Eh;function g(v,x){var T=p-x,C=u*v;return[T*st(C),p-T*B(C)]}return g.invert=function(v,x){var T=p-x,C=N(v,S(T))*Pt(T);return T*u<0&&(C-=qn*Pt(v)*Pt(T)),[C/u,p-Pt(u)*Dt(v*v+T*T)]},g}function b_(){return gd(Ap).scale(131.154).center([0,13.9389])}md.invert=kh(function(i){return i}),wh.invert=function(i,a){return[i,2*M(H(a))-hi]},Eh.invert=Eh;var Th=1.340264,Sh=-.081106,Ah=893e-6,Ch=.003796,L0=Dt(3)/2;function _d(i,a){var o=It(L0*st(a)),u=o*o,p=u*u*u;return[i*B(o)/(L0*(Th+3*Sh*u+p*(7*Ah+9*Ch*u))),o*(Th+Sh*u+p*(Ah+Ch*u))]}function v_(){return ss(_d).scale(177.158)}function bd(i,a){var o=B(a),u=B(i)*o;return[o*st(i)/u,st(a)/u]}function x_(){return ss(bd).scale(144.049).clipAngle(60)}function k_(){var i,a,o,u,p,g,v,x=1,T=0,C=0,O=1,z=1,F=0,j=null,nt=1,G=1,V=xh({point:function(lt,vt){var wt=ct([lt,vt]);this.stream.point(wt[0],wt[1])}}),Z=gh;function dt(){return nt=x*O,G=x*z,g=v=null,ct}function ct(lt){var vt=lt[0]*nt,wt=lt[1]*G;if(F){var Kt=wt*i-vt*a;vt=vt*i+wt*a,wt=Kt}return[vt+T,wt+C]}return ct.invert=function(lt){var vt=lt[0]-T,wt=lt[1]-C;if(F){var Kt=wt*i+vt*a;vt=vt*i-wt*a,wt=Kt}return[vt/nt,wt/G]},ct.stream=function(lt){return g&&v===lt?g:g=V(Z(v=lt))},ct.postclip=function(lt){return arguments.length?(Z=lt,j=o=u=p=null,dt()):Z},ct.clipExtent=function(lt){return arguments.length?(Z=lt==null?(j=o=u=p=null,gh):b0(j=+lt[0][0],o=+lt[0][1],u=+lt[1][0],p=+lt[1][1]),dt()):j==null?null:[[j,o],[u,p]]},ct.scale=function(lt){return arguments.length?(x=+lt,dt()):x},ct.translate=function(lt){return arguments.length?(T=+lt[0],C=+lt[1],dt()):[T,C]},ct.angle=function(lt){return arguments.length?(a=st(F=lt%360*w),i=B(F),dt()):F*y},ct.reflectX=function(lt){return arguments.length?(O=lt?-1:1,dt()):O<0},ct.reflectY=function(lt){return arguments.length?(z=lt?-1:1,dt()):z<0},ct.fitExtent=function(lt,vt){return C0(ct,lt,vt)},ct.fitSize=function(lt,vt){return hd(ct,lt,vt)},ct.fitWidth=function(lt,vt){return fd(ct,lt,vt)},ct.fitHeight=function(lt,vt){return dd(ct,lt,vt)},ct}function vd(i,a){var o=a*a,u=o*o;return[i*(.8707-.131979*o+u*(u*(.003971*o-.001529*u)-.013791)),a*(1.007226+o*(.015085+u*(.028874*o-.044475-.005916*u)))]}function w_(){return ss(vd).scale(175.295)}function xd(i,a){return[B(a)*st(i),st(a)]}function E_(){return ss(xd).scale(249.5).clipAngle(90.000001)}function kd(i,a){var o=B(a),u=1+B(i)*o;return[o*st(i)/u,st(a)/u]}function T_(){return ss(kd).scale(250).clipAngle(142)}function wd(i,a){return[ut(Xt((hi+a)/2)),-i]}function S_(){var i=Tp(wd),a=i.center,o=i.rotate;return i.center=function(u){return arguments.length?a([-u[1],u[0]]):[(u=a())[1],-u[0]]},i.rotate=function(u){return arguments.length?o([u[0],u[1],u.length>2?u[2]+90:90]):[(u=o())[0],u[1],u[2]-90]},o([0,0,90]).scale(159.155)}function A_(i,a){return i.parent===a.parent?1:2}function C_(i,a){return i+a.x}function N_(i,a){return Math.max(i,a.y)}function I_(){var i=A_,a=1,o=1,u=!1;function p(g){var v,x=0;g.eachAfter(function(F){var j=F.children;j?(F.x=function(nt){return nt.reduce(C_,0)/nt.length}(j),F.y=function(nt){return 1+nt.reduce(N_,0)}(j)):(F.x=v?x+=i(F,v):0,F.y=0,v=F)});var T=function(F){for(var j;j=F.children;)F=j[0];return F}(g),C=function(F){for(var j;j=F.children;)F=j[j.length-1];return F}(g),O=T.x-i(T,C)/2,z=C.x+i(C,T)/2;return g.eachAfter(u?function(F){F.x=(F.x-g.x)*a,F.y=(g.y-F.y)*o}:function(F){F.x=(F.x-O)/(z-O)*a,F.y=(1-(g.y?F.y/g.y:1))*o})}return p.separation=function(g){return arguments.length?(i=g,p):i},p.size=function(g){return arguments.length?(u=!1,a=+g[0],o=+g[1],p):u?null:[a,o]},p.nodeSize=function(g){return arguments.length?(u=!0,a=+g[0],o=+g[1],p):u?[a,o]:null},p}function L_(i){var a=0,o=i.children,u=o&&o.length;if(u)for(;--u>=0;)a+=o[u].value;else a=1;i.value=a}function Ed(i,a){i instanceof Map?(i=[void 0,i],a===void 0&&(a=O_)):a===void 0&&(a=M_);for(var o,u,p,g,v,x=new il(i),T=[x];o=T.pop();)if((p=a(o.data))&&(v=(p=Array.from(p)).length))for(o.children=p,g=v-1;g>=0;--g)T.push(u=p[g]=new il(p[g])),u.parent=o,u.depth=o.depth+1;return x.eachBefore(Cp)}function M_(i){return i.children}function O_(i){return Array.isArray(i)?i[1]:null}function D_(i){i.data.value!==void 0&&(i.value=i.data.value),i.data=i.data.data}function Cp(i){var a=0;do i.height=a;while((i=i.parent)&&i.height<++a)}function il(i){this.data=i,this.depth=this.height=0,this.parent=null}function Np(i){for(var a,o,u=0,p=(i=function(v){for(var x,T,C=v.length;C;)T=Math.random()*C--|0,x=v[C],v[C]=v[T],v[T]=x;return v}(Array.from(i))).length,g=[];u<p;)a=i[u],o&&Ip(o,a)?++u:(o=R_(g=B_(g,a)),u=0);return o}function B_(i,a){var o,u;if(Td(a,i))return[a];for(o=0;o<i.length;++o)if(M0(a,i[o])&&Td(Nh(i[o],a),i))return[i[o],a];for(o=0;o<i.length-1;++o)for(u=o+1;u<i.length;++u)if(M0(Nh(i[o],i[u]),a)&&M0(Nh(i[o],a),i[u])&&M0(Nh(i[u],a),i[o])&&Td(Lp(i[o],i[u],a),i))return[i[o],i[u],a];throw new Error}function M0(i,a){var o=i.r-a.r,u=a.x-i.x,p=a.y-i.y;return o<0||o*o<u*u+p*p}function Ip(i,a){var o=i.r-a.r+1e-9*Math.max(i.r,a.r,1),u=a.x-i.x,p=a.y-i.y;return o>0&&o*o>u*u+p*p}function Td(i,a){for(var o=0;o<a.length;++o)if(!Ip(i,a[o]))return!1;return!0}function R_(i){switch(i.length){case 1:return{x:(a=i[0]).x,y:a.y,r:a.r};case 2:return Nh(i[0],i[1]);case 3:return Lp(i[0],i[1],i[2])}var a}function Nh(i,a){var o=i.x,u=i.y,p=i.r,g=a.x,v=a.y,x=a.r,T=g-o,C=v-u,O=x-p,z=Math.sqrt(T*T+C*C);return{x:(o+g+T/z*O)/2,y:(u+v+C/z*O)/2,r:(z+p+x)/2}}function Lp(i,a,o){var u=i.x,p=i.y,g=i.r,v=a.x,x=a.y,T=a.r,C=o.x,O=o.y,z=o.r,F=u-v,j=u-C,nt=p-x,G=p-O,V=T-g,Z=z-g,dt=u*u+p*p-g*g,ct=dt-v*v-x*x+T*T,lt=dt-C*C-O*O+z*z,vt=j*nt-F*G,wt=(nt*lt-G*ct)/(2*vt)-u,Kt=(G*V-nt*Z)/vt,me=(j*ct-F*lt)/(2*vt)-p,Wt=(F*Z-j*V)/vt,Ut=Kt*Kt+Wt*Wt-1,zt=2*(g+wt*Kt+me*Wt),Yt=wt*wt+me*me-g*g,Et=-(Ut?(zt+Math.sqrt(zt*zt-4*Ut*Yt))/(2*Ut):Yt/zt);return{x:u+wt+Kt*Et,y:p+me+Wt*Et,r:Et}}function Mp(i,a,o){var u,p,g,v,x=i.x-a.x,T=i.y-a.y,C=x*x+T*T;C?(p=a.r+o.r,p*=p,v=i.r+o.r,p>(v*=v)?(u=(C+v-p)/(2*C),g=Math.sqrt(Math.max(0,v/C-u*u)),o.x=i.x-u*x-g*T,o.y=i.y-u*T+g*x):(u=(C+p-v)/(2*C),g=Math.sqrt(Math.max(0,p/C-u*u)),o.x=a.x+u*x-g*T,o.y=a.y+u*T+g*x)):(o.x=a.x+o.r,o.y=a.y)}function Op(i,a){var o=i.r+a.r-1e-6,u=a.x-i.x,p=a.y-i.y;return o>0&&o*o>u*u+p*p}function Dp(i){var a=i._,o=i.next._,u=a.r+o.r,p=(a.x*o.r+o.x*a.r)/u,g=(a.y*o.r+o.y*a.r)/u;return p*p+g*g}function O0(i){this._=i,this.next=null,this.previous=null}function Bp(i){if(!(g=(a=i,i=typeof a=="object"&&"length"in a?a:Array.from(a)).length))return 0;var a,o,u,p,g,v,x,T,C,O,z,F;if((o=i[0]).x=0,o.y=0,!(g>1))return o.r;if(u=i[1],o.x=-u.r,u.x=o.r,u.y=0,!(g>2))return o.r+u.r;Mp(u,o,p=i[2]),o=new O0(o),u=new O0(u),p=new O0(p),o.next=p.previous=u,u.next=o.previous=p,p.next=u.previous=o;t:for(T=3;T<g;++T){Mp(o._,u._,p=i[T]),p=new O0(p),C=u.next,O=o.previous,z=u._.r,F=o._.r;do if(z<=F){if(Op(C._,p._)){u=C,o.next=u,u.previous=o,--T;continue t}z+=C._.r,C=C.next}else{if(Op(O._,p._)){(o=O).next=u,u.previous=o,--T;continue t}F+=O._.r,O=O.previous}while(C!==O.next);for(p.previous=o,p.next=u,o.next=u.previous=u=p,v=Dp(o);(p=p.next)!==u;)(x=Dp(p))<v&&(o=p,v=x);u=o.next}for(o=[u._],p=u;(p=p.next)!==u;)o.push(p._);for(p=Np(o),T=0;T<g;++T)(o=i[T]).x-=p.x,o.y-=p.y;return p.r}function F_(i){return Bp(i),i}function D0(i){return i==null?null:Rp(i)}function Rp(i){if(typeof i!="function")throw new Error;return i}function al(){return 0}function ou(i){return function(){return i}}function P_(i){return Math.sqrt(i.value)}function U_(){var i=null,a=1,o=1,u=al;function p(g){return g.x=a/2,g.y=o/2,i?g.eachBefore(Fp(i)).eachAfter(Sd(u,.5)).eachBefore(Pp(1)):g.eachBefore(Fp(P_)).eachAfter(Sd(al,1)).eachAfter(Sd(u,g.r/Math.min(a,o))).eachBefore(Pp(Math.min(a,o)/(2*g.r))),g}return p.radius=function(g){return arguments.length?(i=D0(g),p):i},p.size=function(g){return arguments.length?(a=+g[0],o=+g[1],p):[a,o]},p.padding=function(g){return arguments.length?(u=typeof g=="function"?g:ou(+g),p):u},p}function Fp(i){return function(a){a.children||(a.r=Math.max(0,+i(a)||0))}}function Sd(i,a){return function(o){if(u=o.children){var u,p,g,v=u.length,x=i(o)*a||0;if(x)for(p=0;p<v;++p)u[p].r+=x;if(g=Bp(u),x)for(p=0;p<v;++p)u[p].r-=x;o.r=g+x}}}function Pp(i){return function(a){var o=a.parent;a.r*=i,o&&(a.x=o.x+i*a.x,a.y=o.y+i*a.y)}}function Up(i){i.x0=Math.round(i.x0),i.y0=Math.round(i.y0),i.x1=Math.round(i.x1),i.y1=Math.round(i.y1)}function Ih(i,a,o,u,p){for(var g,v=i.children,x=-1,T=v.length,C=i.value&&(u-a)/i.value;++x<T;)(g=v[x]).y0=o,g.y1=p,g.x0=a,g.x1=a+=g.value*C}function z_(){var i=1,a=1,o=0,u=!1;function p(g){var v=g.height+1;return g.x0=g.y0=o,g.x1=i,g.y1=a/v,g.eachBefore(function(x,T){return function(C){C.children&&Ih(C,C.x0,x*(C.depth+1)/T,C.x1,x*(C.depth+2)/T);var O=C.x0,z=C.y0,F=C.x1-o,j=C.y1-o;F<O&&(O=F=(O+F)/2),j<z&&(z=j=(z+j)/2),C.x0=O,C.y0=z,C.x1=F,C.y1=j}}(a,v)),u&&g.eachBefore(Up),g}return p.round=function(g){return arguments.length?(u=!!g,p):u},p.size=function(g){return arguments.length?(i=+g[0],a=+g[1],p):[i,a]},p.padding=function(g){return arguments.length?(o=+g,p):o},p}_d.invert=function(i,a){for(var o,u=a,p=u*u,g=p*p*p,v=0;v<12&&(g=(p=(u-=o=(u*(Th+Sh*p+g*(Ah+Ch*p))-a)/(Th+3*Sh*p+g*(7*Ah+9*Ch*p)))*u)*p*p,!(S(o)<nl));++v);return[L0*i*(Th+3*Sh*p+g*(7*Ah+9*Ch*p))/B(u),It(st(u)/L0)]},bd.invert=kh(M),vd.invert=function(i,a){var o,u=a,p=25;do{var g=u*u,v=g*g;u-=o=(u*(1.007226+g*(.015085+v*(.028874*g-.044475-.005916*v)))-a)/(1.007226+g*(.045255+v*(.259866*g-.311325-.005916*11*v)))}while(S(o)>nr&&--p>0);return[i/(.8707+(g=u*u)*(g*(g*g*g*(.003971-.001529*g)-.013791)-.131979)),u]},xd.invert=kh(It),kd.invert=kh(function(i){return 2*M(i)}),wd.invert=function(i,a){return[-a,2*M(H(i))-hi]},il.prototype=Ed.prototype={constructor:il,count:function(){return this.eachAfter(L_)},each:function(i,a){let o=-1;for(const u of this)i.call(a,u,++o,this);return this},eachAfter:function(i,a){for(var o,u,p,g=this,v=[g],x=[],T=-1;g=v.pop();)if(x.push(g),o=g.children)for(u=0,p=o.length;u<p;++u)v.push(o[u]);for(;g=x.pop();)i.call(a,g,++T,this);return this},eachBefore:function(i,a){for(var o,u,p=this,g=[p],v=-1;p=g.pop();)if(i.call(a,p,++v,this),o=p.children)for(u=o.length-1;u>=0;--u)g.push(o[u]);return this},find:function(i,a){let o=-1;for(const u of this)if(i.call(a,u,++o,this))return u},sum:function(i){return this.eachAfter(function(a){for(var o=+i(a.data)||0,u=a.children,p=u&&u.length;--p>=0;)o+=u[p].value;a.value=o})},sort:function(i){return this.eachBefore(function(a){a.children&&a.children.sort(i)})},path:function(i){for(var a=this,o=function(g,v){if(g===v)return g;var x=g.ancestors(),T=v.ancestors(),C=null;for(g=x.pop(),v=T.pop();g===v;)C=g,g=x.pop(),v=T.pop();return C}(a,i),u=[a];a!==o;)a=a.parent,u.push(a);for(var p=u.length;i!==o;)u.splice(p,0,i),i=i.parent;return u},ancestors:function(){for(var i=this,a=[i];i=i.parent;)a.push(i);return a},descendants:function(){return Array.from(this)},leaves:function(){var i=[];return this.eachBefore(function(a){a.children||i.push(a)}),i},links:function(){var i=this,a=[];return i.each(function(o){o!==i&&a.push({source:o.parent,target:o})}),a},copy:function(){return Ed(this).eachBefore(D_)},[Symbol.iterator]:function*(){var i,a,o,u,p=this,g=[p];do for(i=g.reverse(),g=[];p=i.pop();)if(yield p,a=p.children)for(o=0,u=a.length;o<u;++o)g.push(a[o]);while(g.length)}};var Y_={depth:-1},zp={},Ad={};function j_(i){return i.id}function $_(i){return i.parentId}function H_(){var i,a=j_,o=$_;function u(p){var g,v,x,T,C,O,z,F,j=Array.from(p),nt=a,G=o,V=new Map;if(i!=null){const Z=j.map((lt,vt)=>function(wt){let Kt=(wt=`${wt}`).length;return Cd(wt,Kt-1)&&!Cd(wt,Kt-2)&&(wt=wt.slice(0,-1)),wt[0]==="/"?wt:`/${wt}`}(i(lt,vt,p))),dt=Z.map(Yp),ct=new Set(Z).add("");for(const lt of dt)ct.has(lt)||(ct.add(lt),Z.push(lt),dt.push(Yp(lt)),j.push(Ad));nt=(lt,vt)=>Z[vt],G=(lt,vt)=>dt[vt]}for(x=0,g=j.length;x<g;++x)v=j[x],O=j[x]=new il(v),(z=nt(v,x,p))!=null&&(z+="")&&(F=O.id=z,V.set(F,V.has(F)?zp:O)),(z=G(v,x,p))!=null&&(z+="")&&(O.parent=z);for(x=0;x<g;++x)if(z=(O=j[x]).parent){if(!(C=V.get(z)))throw new Error("missing: "+z);if(C===zp)throw new Error("ambiguous: "+z);C.children?C.children.push(O):C.children=[O],O.parent=C}else{if(T)throw new Error("multiple roots");T=O}if(!T)throw new Error("no root");if(i!=null){for(;T.data===Ad&&T.children.length===1;)T=T.children[0],--g;for(let Z=j.length-1;Z>=0&&(O=j[Z],O.data===Ad);--Z)O.data=null}if(T.parent=Y_,T.eachBefore(function(Z){Z.depth=Z.parent.depth+1,--g}).eachBefore(Cp),T.parent=null,g>0)throw new Error("cycle");return T}return u.id=function(p){return arguments.length?(a=D0(p),u):a},u.parentId=function(p){return arguments.length?(o=D0(p),u):o},u.path=function(p){return arguments.length?(i=D0(p),u):i},u}function Yp(i){let a=i.length;if(a<2)return"";for(;--a>1&&!Cd(i,a););return i.slice(0,a)}function Cd(i,a){if(i[a]==="/"){let o=0;for(;a>0&&i[--a]==="\\";)++o;if((1&o)==0)return!0}return!1}function q_(i,a){return i.parent===a.parent?1:2}function Nd(i){var a=i.children;return a?a[0]:i.t}function Id(i){var a=i.children;return a?a[a.length-1]:i.t}function W_(i,a,o){var u=o/(a.i-i.i);a.c-=u,a.s+=o,i.c+=u,a.z+=o,a.m+=o}function G_(i,a,o){return i.a.parent===a.parent?i.a:o}function B0(i,a){this._=i,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=a}function V_(){var i=q_,a=1,o=1,u=null;function p(T){var C=function(Z){for(var dt,ct,lt,vt,wt,Kt=new B0(Z,0),me=[Kt];dt=me.pop();)if(lt=dt._.children)for(dt.children=new Array(wt=lt.length),vt=wt-1;vt>=0;--vt)me.push(ct=dt.children[vt]=new B0(lt[vt],vt)),ct.parent=dt;return(Kt.parent=new B0(null,0)).children=[Kt],Kt}(T);if(C.eachAfter(g),C.parent.m=-C.z,C.eachBefore(v),u)T.eachBefore(x);else{var O=T,z=T,F=T;T.eachBefore(function(Z){Z.x<O.x&&(O=Z),Z.x>z.x&&(z=Z),Z.depth>F.depth&&(F=Z)});var j=O===z?1:i(O,z)/2,nt=j-O.x,G=a/(z.x+j+nt),V=o/(F.depth||1);T.eachBefore(function(Z){Z.x=(Z.x+nt)*G,Z.y=Z.depth*V})}return T}function g(T){var C=T.children,O=T.parent.children,z=T.i?O[T.i-1]:null;if(C){(function(j){for(var nt,G=0,V=0,Z=j.children,dt=Z.length;--dt>=0;)(nt=Z[dt]).z+=G,nt.m+=G,G+=nt.s+(V+=nt.c)})(T);var F=(C[0].z+C[C.length-1].z)/2;z?(T.z=z.z+i(T._,z._),T.m=T.z-F):T.z=F}else z&&(T.z=z.z+i(T._,z._));T.parent.A=function(j,nt,G){if(nt){for(var V,Z=j,dt=j,ct=nt,lt=Z.parent.children[0],vt=Z.m,wt=dt.m,Kt=ct.m,me=lt.m;ct=Id(ct),Z=Nd(Z),ct&&Z;)lt=Nd(lt),(dt=Id(dt)).a=j,(V=ct.z+Kt-Z.z-vt+i(ct._,Z._))>0&&(W_(G_(ct,j,G),j,V),vt+=V,wt+=V),Kt+=ct.m,vt+=Z.m,me+=lt.m,wt+=dt.m;ct&&!Id(dt)&&(dt.t=ct,dt.m+=Kt-wt),Z&&!Nd(lt)&&(lt.t=Z,lt.m+=vt-me,G=j)}return G}(T,z,T.parent.A||O[0])}function v(T){T._.x=T.z+T.parent.m,T.m+=T.parent.m}function x(T){T.x*=a,T.y=T.depth*o}return p.separation=function(T){return arguments.length?(i=T,p):i},p.size=function(T){return arguments.length?(u=!1,a=+T[0],o=+T[1],p):u?null:[a,o]},p.nodeSize=function(T){return arguments.length?(u=!0,a=+T[0],o=+T[1],p):u?[a,o]:null},p}function R0(i,a,o,u,p){for(var g,v=i.children,x=-1,T=v.length,C=i.value&&(p-o)/i.value;++x<T;)(g=v[x]).x0=a,g.x1=u,g.y0=o,g.y1=o+=g.value*C}B0.prototype=Object.create(il.prototype);var jp=(1+Math.sqrt(5))/2;function $p(i,a,o,u,p,g){for(var v,x,T,C,O,z,F,j,nt,G,V,Z=[],dt=a.children,ct=0,lt=0,vt=dt.length,wt=a.value;ct<vt;){T=p-o,C=g-u;do O=dt[lt++].value;while(!O&<<vt);for(z=F=O,V=O*O*(G=Math.max(C/T,T/C)/(wt*i)),nt=Math.max(F/V,V/z);lt<vt;++lt){if(O+=x=dt[lt].value,x<z&&(z=x),x>F&&(F=x),V=O*O*G,(j=Math.max(F/V,V/z))>nt){O-=x;break}nt=j}Z.push(v={value:O,dice:T<C,children:dt.slice(ct,lt)}),v.dice?Ih(v,o,u,p,wt?u+=C*O/wt:g):R0(v,o,u,wt?o+=T*O/wt:p,g),wt-=O,ct=lt}return Z}const Hp=function i(a){function o(u,p,g,v,x){$p(a,u,p,g,v,x)}return o.ratio=function(u){return i((u=+u)>1?u:1)},o}(jp);function Z_(){var i=Hp,a=!1,o=1,u=1,p=[0],g=al,v=al,x=al,T=al,C=al;function O(F){return F.x0=F.y0=0,F.x1=o,F.y1=u,F.eachBefore(z),p=[0],a&&F.eachBefore(Up),F}function z(F){var j=p[F.depth],nt=F.x0+j,G=F.y0+j,V=F.x1-j,Z=F.y1-j;V<nt&&(nt=V=(nt+V)/2),Z<G&&(G=Z=(G+Z)/2),F.x0=nt,F.y0=G,F.x1=V,F.y1=Z,F.children&&(j=p[F.depth+1]=g(F)/2,nt+=C(F)-j,G+=v(F)-j,(V-=x(F)-j)<nt&&(nt=V=(nt+V)/2),(Z-=T(F)-j)<G&&(G=Z=(G+Z)/2),i(F,nt,G,V,Z))}return O.round=function(F){return arguments.length?(a=!!F,O):a},O.size=function(F){return arguments.length?(o=+F[0],u=+F[1],O):[o,u]},O.tile=function(F){return arguments.length?(i=Rp(F),O):i},O.padding=function(F){return arguments.length?O.paddingInner(F).paddingOuter(F):O.paddingInner()},O.paddingInner=function(F){return arguments.length?(g=typeof F=="function"?F:ou(+F),O):g},O.paddingOuter=function(F){return arguments.length?O.paddingTop(F).paddingRight(F).paddingBottom(F).paddingLeft(F):O.paddingTop()},O.paddingTop=function(F){return arguments.length?(v=typeof F=="function"?F:ou(+F),O):v},O.paddingRight=function(F){return arguments.length?(x=typeof F=="function"?F:ou(+F),O):x},O.paddingBottom=function(F){return arguments.length?(T=typeof F=="function"?F:ou(+F),O):T},O.paddingLeft=function(F){return arguments.length?(C=typeof F=="function"?F:ou(+F),O):C},O}function X_(i,a,o,u,p){var g,v,x=i.children,T=x.length,C=new Array(T+1);for(C[0]=v=g=0;g<T;++g)C[g+1]=v+=x[g].value;(function O(z,F,j,nt,G,V,Z){if(z>=F-1){var dt=x[z];return dt.x0=nt,dt.y0=G,dt.x1=V,void(dt.y1=Z)}for(var ct=C[z],lt=j/2+ct,vt=z+1,wt=F-1;vt<wt;){var Kt=vt+wt>>>1;C[Kt]<lt?vt=Kt+1:wt=Kt}lt-C[vt-1]<C[vt]-lt&&z+1<vt&&--vt;var me=C[vt]-ct,Wt=j-me;if(V-nt>Z-G){var Ut=j?(nt*Wt+V*me)/j:V;O(z,vt,me,nt,G,Ut,Z),O(vt,F,Wt,Ut,G,V,Z)}else{var zt=j?(G*Wt+Z*me)/j:Z;O(z,vt,me,nt,G,V,zt),O(vt,F,Wt,nt,zt,V,Z)}})(0,T,i.value,a,o,u,p)}function K_(i,a,o,u,p){(1&i.depth?R0:Ih)(i,a,o,u,p)}const J_=function i(a){function o(u,p,g,v,x){if((T=u._squarify)&&T.ratio===a)for(var T,C,O,z,F,j=-1,nt=T.length,G=u.value;++j<nt;){for(O=(C=T[j]).children,z=C.value=0,F=O.length;z<F;++z)C.value+=O[z].value;C.dice?Ih(C,p,g,v,G?g+=(x-g)*C.value/G:x):R0(C,p,g,G?p+=(v-p)*C.value/G:v,x),G-=C.value}else u._squarify=T=$p(a,u,p,g,v,x),T.ratio=a}return o.ratio=function(u){return i((u=+u)>1?u:1)},o}(jp);function Q_(i){var a=i.length;return function(o){return i[Math.max(0,Math.min(a-1,Math.floor(o*a)))]}}function t3(i,a){var o=ml(+i,+a);return function(u){var p=o(u);return p-360*Math.floor(p/360)}}function F0(i,a){return i=+i,a=+a,function(o){return Math.round(i*(1-o)+a*o)}}function qp(i){return((i=Math.exp(i))+1/i)/2}const Wp=function i(a,o,u){function p(g,v){var x,T,C=g[0],O=g[1],z=g[2],F=v[0],j=v[1],nt=v[2],G=F-C,V=j-O,Z=G*G+V*V;if(Z<1e-12)T=Math.log(nt/z)/a,x=function(Kt){return[C+Kt*G,O+Kt*V,z*Math.exp(a*Kt*T)]};else{var dt=Math.sqrt(Z),ct=(nt*nt-z*z+u*Z)/(2*z*o*dt),lt=(nt*nt-z*z-u*Z)/(2*nt*o*dt),vt=Math.log(Math.sqrt(ct*ct+1)-ct),wt=Math.log(Math.sqrt(lt*lt+1)-lt);T=(wt-vt)/a,x=function(Kt){var me,Wt=Kt*T,Ut=qp(vt),zt=z/(o*dt)*(Ut*(me=a*Wt+vt,((me=Math.exp(2*me))-1)/(me+1))-function(Yt){return((Yt=Math.exp(Yt))-1/Yt)/2}(vt));return[C+zt*G,O+zt*V,z*Ut/qp(a*Wt+vt)]}}return x.duration=1e3*T*a/Math.SQRT2,x}return p.rho=function(g){var v=Math.max(.001,+g),x=v*v;return i(v,x,x*x)},p}(Math.SQRT2,2,4);function Gp(i){return function(a,o){var u=i((a=Zo(a)).h,(o=Zo(o)).h),p=Ki(a.s,o.s),g=Ki(a.l,o.l),v=Ki(a.opacity,o.opacity);return function(x){return a.h=u(x),a.s=p(x),a.l=g(x),a.opacity=v(x),a+""}}}const e3=Gp(ml);var n3=Gp(Ki);function r3(i,a){var o=Ki((i=Di(i)).l,(a=Di(a)).l),u=Ki(i.a,a.a),p=Ki(i.b,a.b),g=Ki(i.opacity,a.opacity);return function(v){return i.l=o(v),i.a=u(v),i.b=p(v),i.opacity=g(v),i+""}}function Vp(i){return function(a,o){var u=i((a=Zc(a)).h,(o=Zc(o)).h),p=Ki(a.c,o.c),g=Ki(a.l,o.l),v=Ki(a.opacity,o.opacity);return function(x){return a.h=u(x),a.c=p(x),a.l=g(x),a.opacity=v(x),a+""}}}const i3=Vp(ml);var a3=Vp(Ki);function Zp(i){return function a(o){function u(p,g){var v=i((p=ka(p)).h,(g=ka(g)).h),x=Ki(p.s,g.s),T=Ki(p.l,g.l),C=Ki(p.opacity,g.opacity);return function(O){return p.h=v(O),p.s=x(O),p.l=T(Math.pow(O,o)),p.opacity=C(O),p+""}}return o=+o,u.gamma=a,u}(1)}const o3=Zp(ml);var P0=Zp(Ki);function Xp(i,a){a===void 0&&(a=i,i=Kr);for(var o=0,u=a.length-1,p=a[0],g=new Array(u<0?0:u);o<u;)g[o]=i(p,p=a[++o]);return function(v){var x=Math.max(0,Math.min(u-1,Math.floor(v*=u)));return g[x](v-x)}}function s3(i,a){for(var o=new Array(a),u=0;u<a;++u)o[u]=i(u/(a-1));return o}function c3(i){for(var a,o=-1,u=i.length,p=i[u-1],g=0;++o<u;)a=p,p=i[o],g+=a[1]*p[0]-a[0]*p[1];return g/2}function l3(i){for(var a,o,u=-1,p=i.length,g=0,v=0,x=i[p-1],T=0;++u<p;)a=x,x=i[u],T+=o=a[0]*x[1]-x[0]*a[1],g+=(a[0]+x[0])*o,v+=(a[1]+x[1])*o;return[g/(T*=3),v/T]}function u3(i,a,o){return(a[0]-i[0])*(o[1]-i[1])-(a[1]-i[1])*(o[0]-i[0])}function h3(i,a){return i[0]-a[0]||i[1]-a[1]}function Kp(i){const a=i.length,o=[0,1];let u,p=2;for(u=2;u<a;++u){for(;p>1&&u3(i[o[p-2]],i[o[p-1]],i[u])<=0;)--p;o[p++]=u}return o.slice(0,p)}function f3(i){if((o=i.length)<3)return null;var a,o,u=new Array(o),p=new Array(o);for(a=0;a<o;++a)u[a]=[+i[a][0],+i[a][1],a];for(u.sort(h3),a=0;a<o;++a)p[a]=[u[a][0],-u[a][1]];var g=Kp(u),v=Kp(p),x=v[0]===g[0],T=v[v.length-1]===g[g.length-1],C=[];for(a=g.length-1;a>=0;--a)C.push(i[u[g[a]][2]]);for(a=+x;a<v.length-T;++a)C.push(i[u[v[a]][2]]);return C}function d3(i,a){for(var o,u,p=i.length,g=i[p-1],v=a[0],x=a[1],T=g[0],C=g[1],O=!1,z=0;z<p;++z)o=(g=i[z])[0],(u=g[1])>x!=C>x&&v<(T-o)*(x-u)/(C-u)+o&&(O=!O),T=o,C=u;return O}function p3(i){for(var a,o,u=-1,p=i.length,g=i[p-1],v=g[0],x=g[1],T=0;++u<p;)a=v,o=x,a-=v=(g=i[u])[0],o-=x=g[1],T+=Math.hypot(a,o);return T}const Aa=Math.random,g3=function i(a){function o(u,p){return u=u==null?0:+u,p=p==null?1:+p,arguments.length===1?(p=u,u=0):p-=u,function(){return a()*p+u}}return o.source=i,o}(Aa),y3=function i(a){function o(u,p){return arguments.length<2&&(p=u,u=0),u=Math.floor(u),p=Math.floor(p)-u,function(){return Math.floor(a()*p+u)}}return o.source=i,o}(Aa),Ld=function i(a){function o(u,p){var g,v;return u=u==null?0:+u,p=p==null?1:+p,function(){var x;if(g!=null)x=g,g=null;else do g=2*a()-1,x=2*a()-1,v=g*g+x*x;while(!v||v>1);return u+p*x*Math.sqrt(-2*Math.log(v)/v)}}return o.source=i,o}(Aa),m3=function i(a){var o=Ld.source(a);function u(){var p=o.apply(this,arguments);return function(){return Math.exp(p())}}return u.source=i,u}(Aa),Jp=function i(a){function o(u){return(u=+u)<=0?()=>0:function(){for(var p=0,g=u;g>1;--g)p+=a();return p+g*a()}}return o.source=i,o}(Aa),_3=function i(a){var o=Jp.source(a);function u(p){if((p=+p)==0)return a;var g=o(p);return function(){return g()/p}}return u.source=i,u}(Aa),b3=function i(a){function o(u){return function(){return-Math.log1p(-a())/u}}return o.source=i,o}(Aa),v3=function i(a){function o(u){if((u=+u)<0)throw new RangeError("invalid alpha");return u=1/-u,function(){return Math.pow(1-a(),u)}}return o.source=i,o}(Aa),x3=function i(a){function o(u){if((u=+u)<0||u>1)throw new RangeError("invalid p");return function(){return Math.floor(a()+u)}}return o.source=i,o}(Aa),Qp=function i(a){function o(u){if((u=+u)<0||u>1)throw new RangeError("invalid p");return u===0?()=>1/0:u===1?()=>1:(u=Math.log1p(-u),function(){return 1+Math.floor(Math.log1p(-a())/u)})}return o.source=i,o}(Aa),Md=function i(a){var o=Ld.source(a)();function u(p,g){if((p=+p)<0)throw new RangeError("invalid k");if(p===0)return()=>0;if(g=g==null?1:+g,p===1)return()=>-Math.log1p(-a())*g;var v=(p<1?p+1:p)-1/3,x=1/(3*Math.sqrt(v)),T=p<1?()=>Math.pow(a(),1/p):()=>1;return function(){do{do var C=o(),O=1+x*C;while(O<=0);O*=O*O;var z=1-a()}while(z>=1-.0331*C*C*C*C&&Math.log(z)>=.5*C*C+v*(1-O+Math.log(O)));return v*O*T()*g}}return u.source=i,u}(Aa),tg=function i(a){var o=Md.source(a);function u(p,g){var v=o(p),x=o(g);return function(){var T=v();return T===0?0:T/(T+x())}}return u.source=i,u}(Aa),eg=function i(a){var o=Qp.source(a),u=tg.source(a);function p(g,v){return g=+g,(v=+v)>=1?()=>g:v<=0?()=>0:function(){for(var x=0,T=g,C=v;T*C>16&&T*(1-C)>16;){var O=Math.floor((T+1)*C),z=u(O,T-O+1)();z<=C?(x+=O,T-=O,C=(C-z)/(1-z)):(T=O-1,C/=z)}for(var F=C<.5,j=o(F?C:1-C),nt=j(),G=0;nt<=T;++G)nt+=j();return x+(F?G:T-G)}}return p.source=i,p}(Aa),k3=function i(a){function o(u,p,g){var v;return(u=+u)==0?v=x=>-Math.log(x):(u=1/u,v=x=>Math.pow(x,u)),p=p==null?0:+p,g=g==null?1:+g,function(){return p+g*v(-Math.log1p(-a()))}}return o.source=i,o}(Aa),w3=function i(a){function o(u,p){return u=u==null?0:+u,p=p==null?1:+p,function(){return u+p*Math.tan(Math.PI*a())}}return o.source=i,o}(Aa),E3=function i(a){function o(u,p){return u=u==null?0:+u,p=p==null?1:+p,function(){var g=a();return u+p*Math.log(g/(1-g))}}return o.source=i,o}(Aa),T3=function i(a){var o=Md.source(a),u=eg.source(a);function p(g){return function(){for(var v=0,x=g;x>16;){var T=Math.floor(.875*x),C=o(T)();if(C>x)return v+u(T-1,x/C)();v+=T,x-=C}for(var O=-Math.log1p(-a()),z=0;O<=x;++z)O-=Math.log1p(-a());return v+z}}return p.source=i,p}(Aa),ng=1/4294967296;function S3(i=Math.random()){let a=0|(0<=i&&i<1?i/ng:Math.abs(i));return()=>(a=1664525*a+1013904223|0,ng*(a>>>0))}function To(i,a){switch(arguments.length){case 0:break;case 1:this.range(i);break;default:this.range(a).domain(i)}return this}function Is(i,a){switch(arguments.length){case 0:break;case 1:typeof i=="function"?this.interpolator(i):this.range(i);break;default:this.domain(i),typeof a=="function"?this.interpolator(a):this.range(a)}return this}const Od=Symbol("implicit");function Dd(){var i=new yt,a=[],o=[],u=Od;function p(g){let v=i.get(g);if(v===void 0){if(u!==Od)return u;i.set(g,v=a.push(g)-1)}return o[v%o.length]}return p.domain=function(g){if(!arguments.length)return a.slice();a=[],i=new yt;for(const v of g)i.has(v)||i.set(v,a.push(v)-1);return p},p.range=function(g){return arguments.length?(o=Array.from(g),p):o.slice()},p.unknown=function(g){return arguments.length?(u=g,p):u},p.copy=function(){return Dd(a,o).unknown(u)},To.apply(p,arguments),p}function Bd(){var i,a,o=Dd().unknown(void 0),u=o.domain,p=o.range,g=0,v=1,x=!1,T=0,C=0,O=.5;function z(){var F=u().length,j=v<g,nt=j?v:g,G=j?g:v;i=(G-nt)/Math.max(1,F-T+2*C),x&&(i=Math.floor(i)),nt+=(G-nt-i*(F-T))*O,a=i*(1-T),x&&(nt=Math.round(nt),a=Math.round(a));var V=Le(F).map(function(Z){return nt+i*Z});return p(j?V.reverse():V)}return delete o.unknown,o.domain=function(F){return arguments.length?(u(F),z()):u()},o.range=function(F){return arguments.length?([g,v]=F,g=+g,v=+v,z()):[g,v]},o.rangeRound=function(F){return[g,v]=F,g=+g,v=+v,x=!0,z()},o.bandwidth=function(){return a},o.step=function(){return i},o.round=function(F){return arguments.length?(x=!!F,z()):x},o.padding=function(F){return arguments.length?(T=Math.min(1,C=+F),z()):T},o.paddingInner=function(F){return arguments.length?(T=Math.min(1,F),z()):T},o.paddingOuter=function(F){return arguments.length?(C=+F,z()):C},o.align=function(F){return arguments.length?(O=Math.max(0,Math.min(1,F)),z()):O},o.copy=function(){return Bd(u(),[g,v]).round(x).paddingInner(T).paddingOuter(C).align(O)},To.apply(z(),arguments)}function rg(i){var a=i.copy;return i.padding=i.paddingOuter,delete i.paddingInner,delete i.paddingOuter,i.copy=function(){return rg(a())},i}function A3(){return rg(Bd.apply(null,arguments).paddingInner(1))}function U0(i){return+i}var ig=[0,1];function Va(i){return i}function Rd(i,a){return(a-=i=+i)?function(u){return(u-i)/a}:(o=isNaN(a)?NaN:.5,function(){return o});var o}function C3(i,a,o){var u=i[0],p=i[1],g=a[0],v=a[1];return p<u?(u=Rd(p,u),g=o(v,g)):(u=Rd(u,p),g=o(g,v)),function(x){return g(u(x))}}function N3(i,a,o){var u=Math.min(i.length,a.length)-1,p=new Array(u),g=new Array(u),v=-1;for(i[u]<i[0]&&(i=i.slice().reverse(),a=a.slice().reverse());++v<u;)p[v]=Rd(i[v],i[v+1]),g[v]=o(a[v],a[v+1]);return function(x){var T=D(i,x,1,u)-1;return g[T](p[T](x))}}function Lh(i,a){return a.domain(i.domain()).range(i.range()).interpolate(i.interpolate()).clamp(i.clamp()).unknown(i.unknown())}function z0(){var i,a,o,u,p,g,v=ig,x=ig,T=Kr,C=Va;function O(){var F,j,nt,G=Math.min(v.length,x.length);return C!==Va&&(F=v[0],j=v[G-1],F>j&&(nt=F,F=j,j=nt),C=function(V){return Math.max(F,Math.min(j,V))}),u=G>2?N3:C3,p=g=null,z}function z(F){return F==null||isNaN(F=+F)?o:(p||(p=u(v.map(i),x,T)))(i(C(F)))}return z.invert=function(F){return C(a((g||(g=u(x,v.map(i),Ja)))(F)))},z.domain=function(F){return arguments.length?(v=Array.from(F,U0),O()):v.slice()},z.range=function(F){return arguments.length?(x=Array.from(F),O()):x.slice()},z.rangeRound=function(F){return x=Array.from(F),T=F0,O()},z.clamp=function(F){return arguments.length?(C=!!F||Va,O()):C!==Va},z.interpolate=function(F){return arguments.length?(T=F,O()):T},z.unknown=function(F){return arguments.length?(o=F,z):o},function(F,j){return i=F,a=j,O()}}function Fd(){return z0()(Va,Va)}function ag(i,a,o,u){var p,g=Te(i,a,o);switch((u=na(u==null?",f":u)).type){case"s":var v=Math.max(Math.abs(i),Math.abs(a));return u.precision!=null||isNaN(p=d0(g,v))||(u.precision=p),tu(u,v);case"":case"e":case"g":case"p":case"r":u.precision!=null||isNaN(p=vi(g,Math.max(Math.abs(i),Math.abs(a))))||(u.precision=p-(u.type==="e"));break;case"f":case"%":u.precision!=null||isNaN(p=fh(g))||(u.precision=p-2*(u.type==="%"))}return el(u)}function gc(i){var a=i.domain;return i.ticks=function(o){var u=a();return Ce(u[0],u[u.length-1],o==null?10:o)},i.tickFormat=function(o,u){var p=a();return ag(p[0],p[p.length-1],o==null?10:o,u)},i.nice=function(o){o==null&&(o=10);var u,p,g=a(),v=0,x=g.length-1,T=g[v],C=g[x],O=10;for(C<T&&(p=T,T=C,C=p,p=v,v=x,x=p);O-- >0;){if((p=ot(T,C,o))===u)return g[v]=T,g[x]=C,a(g);if(p>0)T=Math.floor(T/p)*p,C=Math.ceil(C/p)*p;else{if(!(p<0))break;T=Math.ceil(T*p)/p,C=Math.floor(C*p)/p}u=p}return i},i}function og(){var i=Fd();return i.copy=function(){return Lh(i,og())},To.apply(i,arguments),gc(i)}function sg(i){var a;function o(u){return u==null||isNaN(u=+u)?a:u}return o.invert=o,o.domain=o.range=function(u){return arguments.length?(i=Array.from(u,U0),o):i.slice()},o.unknown=function(u){return arguments.length?(a=u,o):a},o.copy=function(){return sg(i).unknown(a)},i=arguments.length?Array.from(i,U0):[0,1],gc(o)}function cg(i,a){var o,u=0,p=(i=i.slice()).length-1,g=i[u],v=i[p];return v<g&&(o=u,u=p,p=o,o=g,g=v,v=o),i[u]=a.floor(g),i[p]=a.ceil(v),i}function lg(i){return Math.log(i)}function ug(i){return Math.exp(i)}function I3(i){return-Math.log(-i)}function L3(i){return-Math.exp(-i)}function M3(i){return isFinite(i)?+("1e"+i):i<0?0:i}function hg(i){return(a,o)=>-i(-a,o)}function Pd(i){const a=i(lg,ug),o=a.domain;let u,p,g=10;function v(){return u=function(x){return x===Math.E?Math.log:x===10&&Math.log10||x===2&&Math.log2||(x=Math.log(x),T=>Math.log(T)/x)}(g),p=function(x){return x===10?M3:x===Math.E?Math.exp:T=>Math.pow(x,T)}(g),o()[0]<0?(u=hg(u),p=hg(p),i(I3,L3)):i(lg,ug),a}return a.base=function(x){return arguments.length?(g=+x,v()):g},a.domain=function(x){return arguments.length?(o(x),v()):o()},a.ticks=x=>{const T=o();let C=T[0],O=T[T.length-1];const z=O<C;z&&([C,O]=[O,C]);let F,j,nt=u(C),G=u(O);const V=x==null?10:+x;let Z=[];if(!(g%1)&&G-nt<V){if(nt=Math.floor(nt),G=Math.ceil(G),C>0){for(;nt<=G;++nt)for(F=1;F<g;++F)if(j=nt<0?F/p(-nt):F*p(nt),!(j<C)){if(j>O)break;Z.push(j)}}else for(;nt<=G;++nt)for(F=g-1;F>=1;--F)if(j=nt>0?F/p(-nt):F*p(nt),!(j<C)){if(j>O)break;Z.push(j)}2*Z.length<V&&(Z=Ce(C,O,V))}else Z=Ce(nt,G,Math.min(G-nt,V)).map(p);return z?Z.reverse():Z},a.tickFormat=(x,T)=>{if(x==null&&(x=10),T==null&&(T=g===10?"s":","),typeof T!="function"&&(g%1||(T=na(T)).precision!=null||(T.trim=!0),T=el(T)),x===1/0)return T;const C=Math.max(1,g*x/a.ticks().length);return O=>{let z=O/p(Math.round(u(O)));return z*g<g-.5&&(z*=g),z<=C?T(O):""}},a.nice=()=>o(cg(o(),{floor:x=>p(Math.floor(u(x))),ceil:x=>p(Math.ceil(u(x)))})),a}function fg(){const i=Pd(z0()).domain([1,10]);return i.copy=()=>Lh(i,fg()).base(i.base()),To.apply(i,arguments),i}function dg(i){return function(a){return Math.sign(a)*Math.log1p(Math.abs(a/i))}}function pg(i){return function(a){return Math.sign(a)*Math.expm1(Math.abs(a))*i}}function Ud(i){var a=1,o=i(dg(a),pg(a));return o.constant=function(u){return arguments.length?i(dg(a=+u),pg(a)):a},gc(o)}function gg(){var i=Ud(z0());return i.copy=function(){return Lh(i,gg()).constant(i.constant())},To.apply(i,arguments)}function yg(i){return function(a){return a<0?-Math.pow(-a,i):Math.pow(a,i)}}function O3(i){return i<0?-Math.sqrt(-i):Math.sqrt(i)}function D3(i){return i<0?-i*i:i*i}function zd(i){var a=i(Va,Va),o=1;function u(){return o===1?i(Va,Va):o===.5?i(O3,D3):i(yg(o),yg(1/o))}return a.exponent=function(p){return arguments.length?(o=+p,u()):o},gc(a)}function Yd(){var i=zd(z0());return i.copy=function(){return Lh(i,Yd()).exponent(i.exponent())},To.apply(i,arguments),i}function B3(){return Yd.apply(null,arguments).exponent(.5)}function mg(i){return Math.sign(i)*i*i}function R3(i){return Math.sign(i)*Math.sqrt(Math.abs(i))}function _g(){var i,a=Fd(),o=[0,1],u=!1;function p(g){var v=R3(a(g));return isNaN(v)?i:u?Math.round(v):v}return p.invert=function(g){return a.invert(mg(g))},p.domain=function(g){return arguments.length?(a.domain(g),p):a.domain()},p.range=function(g){return arguments.length?(a.range((o=Array.from(g,U0)).map(mg)),p):o.slice()},p.rangeRound=function(g){return p.range(g).round(!0)},p.round=function(g){return arguments.length?(u=!!g,p):u},p.clamp=function(g){return arguments.length?(a.clamp(g),p):a.clamp()},p.unknown=function(g){return arguments.length?(i=g,p):i},p.copy=function(){return _g(a.domain(),o).round(u).clamp(a.clamp()).unknown(i)},To.apply(p,arguments),gc(p)}function bg(){var i,a=[],o=[],u=[];function p(){var v=0,x=Math.max(1,o.length);for(u=new Array(x-1);++v<x;)u[v-1]=Pe(a,v/x);return g}function g(v){return v==null||isNaN(v=+v)?i:o[D(u,v)]}return g.invertExtent=function(v){var x=o.indexOf(v);return x<0?[NaN,NaN]:[x>0?u[x-1]:a[0],x<u.length?u[x]:a[a.length-1]]},g.domain=function(v){if(!arguments.length)return a.slice();a=[];for(let x of v)x==null||isNaN(x=+x)||a.push(x);return a.sort(m),p()},g.range=function(v){return arguments.length?(o=Array.from(v),p()):o.slice()},g.unknown=function(v){return arguments.length?(i=v,g):i},g.quantiles=function(){return u.slice()},g.copy=function(){return bg().domain(a).range(o).unknown(i)},To.apply(g,arguments)}function vg(){var i,a=0,o=1,u=1,p=[.5],g=[0,1];function v(T){return T!=null&&T<=T?g[D(p,T,0,u)]:i}function x(){var T=-1;for(p=new Array(u);++T<u;)p[T]=((T+1)*o-(T-u)*a)/(u+1);return v}return v.domain=function(T){return arguments.length?([a,o]=T,a=+a,o=+o,x()):[a,o]},v.range=function(T){return arguments.length?(u=(g=Array.from(T)).length-1,x()):g.slice()},v.invertExtent=function(T){var C=g.indexOf(T);return C<0?[NaN,NaN]:C<1?[a,p[0]]:C>=u?[p[u-1],o]:[p[C-1],p[C]]},v.unknown=function(T){return arguments.length&&(i=T),v},v.thresholds=function(){return p.slice()},v.copy=function(){return vg().domain([a,o]).range(g).unknown(i)},To.apply(gc(v),arguments)}function xg(){var i,a=[.5],o=[0,1],u=1;function p(g){return g!=null&&g<=g?o[D(a,g,0,u)]:i}return p.domain=function(g){return arguments.length?(a=Array.from(g),u=Math.min(a.length,o.length-1),p):a.slice()},p.range=function(g){return arguments.length?(o=Array.from(g),u=Math.min(a.length,o.length-1),p):o.slice()},p.invertExtent=function(g){var v=o.indexOf(g);return[a[v-1],a[v]]},p.unknown=function(g){return arguments.length?(i=g,p):i},p.copy=function(){return xg().domain(a).range(o).unknown(i)},To.apply(p,arguments)}const Mh=1e3,yc=6e4,Oh=36e5,jd=864e5,$d=6048e5,Hd=31536e6;var qd=new Date,Wd=new Date;function ia(i,a,o,u){function p(g){return i(g=arguments.length===0?new Date:new Date(+g)),g}return p.floor=function(g){return i(g=new Date(+g)),g},p.ceil=function(g){return i(g=new Date(g-1)),a(g,1),i(g),g},p.round=function(g){var v=p(g),x=p.ceil(g);return g-v<x-g?v:x},p.offset=function(g,v){return a(g=new Date(+g),v==null?1:Math.floor(v)),g},p.range=function(g,v,x){var T,C=[];if(g=p.ceil(g),x=x==null?1:Math.floor(x),!(g<v&&x>0))return C;do C.push(T=new Date(+g)),a(g,x),i(g);while(T<g&&g<v);return C},p.filter=function(g){return ia(function(v){if(v>=v)for(;i(v),!g(v);)v.setTime(v-1)},function(v,x){if(v>=v)if(x<0)for(;++x<=0;)for(;a(v,-1),!g(v););else for(;--x>=0;)for(;a(v,1),!g(v););})},o&&(p.count=function(g,v){return qd.setTime(+g),Wd.setTime(+v),i(qd),i(Wd),Math.floor(o(qd,Wd))},p.every=function(g){return g=Math.floor(g),isFinite(g)&&g>0?g>1?p.filter(u?function(v){return u(v)%g==0}:function(v){return p.count(0,v)%g==0}):p:null}),p}var Y0=ia(function(){},function(i,a){i.setTime(+i+a)},function(i,a){return a-i});Y0.every=function(i){return i=Math.floor(i),isFinite(i)&&i>0?i>1?ia(function(a){a.setTime(Math.floor(a/i)*i)},function(a,o){a.setTime(+a+o*i)},function(a,o){return(o-a)/i}):Y0:null};const Gd=Y0;var kg=Y0.range,wg=ia(function(i){i.setTime(i-i.getMilliseconds())},function(i,a){i.setTime(+i+a*Mh)},function(i,a){return(a-i)/Mh},function(i){return i.getUTCSeconds()});const mc=wg;var Eg=wg.range,Tg=ia(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*Mh)},function(i,a){i.setTime(+i+a*yc)},function(i,a){return(a-i)/yc},function(i){return i.getMinutes()});const Vd=Tg;var F3=Tg.range,Sg=ia(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*Mh-i.getMinutes()*yc)},function(i,a){i.setTime(+i+a*Oh)},function(i,a){return(a-i)/Oh},function(i){return i.getHours()});const Zd=Sg;var P3=Sg.range,Ag=ia(i=>i.setHours(0,0,0,0),(i,a)=>i.setDate(i.getDate()+a),(i,a)=>(a-i-(a.getTimezoneOffset()-i.getTimezoneOffset())*yc)/jd,i=>i.getDate()-1);const Dh=Ag;var U3=Ag.range;function ol(i){return ia(function(a){a.setDate(a.getDate()-(a.getDay()+7-i)%7),a.setHours(0,0,0,0)},function(a,o){a.setDate(a.getDate()+7*o)},function(a,o){return(o-a-(o.getTimezoneOffset()-a.getTimezoneOffset())*yc)/$d})}var su=ol(0),Bh=ol(1),Cg=ol(2),Ng=ol(3),sl=ol(4),Ig=ol(5),Lg=ol(6),Mg=su.range,z3=Bh.range,Y3=Cg.range,j3=Ng.range,$3=sl.range,H3=Ig.range,q3=Lg.range,Og=ia(function(i){i.setDate(1),i.setHours(0,0,0,0)},function(i,a){i.setMonth(i.getMonth()+a)},function(i,a){return a.getMonth()-i.getMonth()+12*(a.getFullYear()-i.getFullYear())},function(i){return i.getMonth()});const Xd=Og;var W3=Og.range,Kd=ia(function(i){i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,a){i.setFullYear(i.getFullYear()+a)},function(i,a){return a.getFullYear()-i.getFullYear()},function(i){return i.getFullYear()});Kd.every=function(i){return isFinite(i=Math.floor(i))&&i>0?ia(function(a){a.setFullYear(Math.floor(a.getFullYear()/i)*i),a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,o){a.setFullYear(a.getFullYear()+o*i)}):null};const _c=Kd;var G3=Kd.range,Dg=ia(function(i){i.setUTCSeconds(0,0)},function(i,a){i.setTime(+i+a*yc)},function(i,a){return(a-i)/yc},function(i){return i.getUTCMinutes()});const Jd=Dg;var V3=Dg.range,Bg=ia(function(i){i.setUTCMinutes(0,0,0)},function(i,a){i.setTime(+i+a*Oh)},function(i,a){return(a-i)/Oh},function(i){return i.getUTCHours()});const Qd=Bg;var Z3=Bg.range,Rg=ia(function(i){i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCDate(i.getUTCDate()+a)},function(i,a){return(a-i)/jd},function(i){return i.getUTCDate()-1});const Rh=Rg;var X3=Rg.range;function cl(i){return ia(function(a){a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-i)%7),a.setUTCHours(0,0,0,0)},function(a,o){a.setUTCDate(a.getUTCDate()+7*o)},function(a,o){return(o-a)/$d})}var cu=cl(0),Fh=cl(1),Fg=cl(2),Pg=cl(3),ll=cl(4),Ug=cl(5),zg=cl(6),Yg=cu.range,K3=Fh.range,J3=Fg.range,Q3=Pg.range,t4=ll.range,e4=Ug.range,n4=zg.range,jg=ia(function(i){i.setUTCDate(1),i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCMonth(i.getUTCMonth()+a)},function(i,a){return a.getUTCMonth()-i.getUTCMonth()+12*(a.getUTCFullYear()-i.getUTCFullYear())},function(i){return i.getUTCMonth()});const t2=jg;var r4=jg.range,e2=ia(function(i){i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,a){i.setUTCFullYear(i.getUTCFullYear()+a)},function(i,a){return a.getUTCFullYear()-i.getUTCFullYear()},function(i){return i.getUTCFullYear()});e2.every=function(i){return isFinite(i=Math.floor(i))&&i>0?ia(function(a){a.setUTCFullYear(Math.floor(a.getUTCFullYear()/i)*i),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,o){a.setUTCFullYear(a.getUTCFullYear()+o*i)}):null};const bc=e2;var i4=e2.range;function $g(i,a,o,u,p,g){const v=[[mc,1,Mh],[mc,5,5e3],[mc,15,15e3],[mc,30,3e4],[g,1,yc],[g,5,3e5],[g,15,9e5],[g,30,18e5],[p,1,Oh],[p,3,108e5],[p,6,216e5],[p,12,432e5],[u,1,jd],[u,2,1728e5],[o,1,$d],[a,1,2592e6],[a,3,7776e6],[i,1,Hd]];function x(T,C,O){const z=Math.abs(C-T)/O,F=d(([,,G])=>G).right(v,z);if(F===v.length)return i.every(Te(T/Hd,C/Hd,O));if(F===0)return Gd.every(Math.max(Te(T,C,O),1));const[j,nt]=v[z/v[F-1][2]<v[F][2]/z?F-1:F];return j.every(nt)}return[function(T,C,O){const z=C<T;z&&([T,C]=[C,T]);const F=O&&typeof O.range=="function"?O:x(T,C,O),j=F?F.range(T,+C+1):[];return z?j.reverse():j},x]}const[Hg,qg]=$g(bc,t2,cu,Rh,Qd,Jd),[Wg,Gg]=$g(_c,Xd,su,Dh,Zd,Vd);function n2(i){if(0<=i.y&&i.y<100){var a=new Date(-1,i.m,i.d,i.H,i.M,i.S,i.L);return a.setFullYear(i.y),a}return new Date(i.y,i.m,i.d,i.H,i.M,i.S,i.L)}function r2(i){if(0<=i.y&&i.y<100){var a=new Date(Date.UTC(-1,i.m,i.d,i.H,i.M,i.S,i.L));return a.setUTCFullYear(i.y),a}return new Date(Date.UTC(i.y,i.m,i.d,i.H,i.M,i.S,i.L))}function Ph(i,a,o){return{y:i,m:a,d:o,H:0,M:0,S:0,L:0}}function Vg(i){var a=i.dateTime,o=i.date,u=i.time,p=i.periods,g=i.days,v=i.shortDays,x=i.months,T=i.shortMonths,C=Uh(p),O=zh(p),z=Uh(g),F=zh(g),j=Uh(v),nt=zh(v),G=Uh(x),V=zh(x),Z=Uh(T),dt=zh(T),ct={a:function(Wt){return v[Wt.getDay()]},A:function(Wt){return g[Wt.getDay()]},b:function(Wt){return T[Wt.getMonth()]},B:function(Wt){return x[Wt.getMonth()]},c:null,d:ey,e:ey,f:A4,g:F4,G:U4,H:E4,I:T4,j:S4,L:ny,m:C4,M:N4,p:function(Wt){return p[+(Wt.getHours()>=12)]},q:function(Wt){return 1+~~(Wt.getMonth()/3)},Q:cy,s:ly,S:I4,u:L4,U:M4,V:O4,w:D4,W:B4,x:null,X:null,y:R4,Y:P4,Z:z4,"%":sy},lt={a:function(Wt){return v[Wt.getUTCDay()]},A:function(Wt){return g[Wt.getUTCDay()]},b:function(Wt){return T[Wt.getUTCMonth()]},B:function(Wt){return x[Wt.getUTCMonth()]},c:null,d:iy,e:iy,f:H4,g:tb,G:nb,H:Y4,I:j4,j:$4,L:ay,m:q4,M:W4,p:function(Wt){return p[+(Wt.getUTCHours()>=12)]},q:function(Wt){return 1+~~(Wt.getUTCMonth()/3)},Q:cy,s:ly,S:G4,u:V4,U:Z4,V:X4,w:K4,W:J4,x:null,X:null,y:Q4,Y:eb,Z:rb,"%":sy},vt={a:function(Wt,Ut,zt){var Yt=j.exec(Ut.slice(zt));return Yt?(Wt.w=nt.get(Yt[0].toLowerCase()),zt+Yt[0].length):-1},A:function(Wt,Ut,zt){var Yt=z.exec(Ut.slice(zt));return Yt?(Wt.w=F.get(Yt[0].toLowerCase()),zt+Yt[0].length):-1},b:function(Wt,Ut,zt){var Yt=Z.exec(Ut.slice(zt));return Yt?(Wt.m=dt.get(Yt[0].toLowerCase()),zt+Yt[0].length):-1},B:function(Wt,Ut,zt){var Yt=G.exec(Ut.slice(zt));return Yt?(Wt.m=V.get(Yt[0].toLowerCase()),zt+Yt[0].length):-1},c:function(Wt,Ut,zt){return me(Wt,a,Ut,zt)},d:Qg,e:Qg,f:v4,g:Jg,G:Kg,H:ty,I:ty,j:y4,L:b4,m:g4,M:m4,p:function(Wt,Ut,zt){var Yt=C.exec(Ut.slice(zt));return Yt?(Wt.p=O.get(Yt[0].toLowerCase()),zt+Yt[0].length):-1},q:p4,Q:k4,s:w4,S:_4,u:l4,U:u4,V:h4,w:c4,W:f4,x:function(Wt,Ut,zt){return me(Wt,o,Ut,zt)},X:function(Wt,Ut,zt){return me(Wt,u,Ut,zt)},y:Jg,Y:Kg,Z:d4,"%":x4};function wt(Wt,Ut){return function(zt){var Yt,Et,Bt,Gt=[],ne=-1,Ae=0,$e=Wt.length;for(zt instanceof Date||(zt=new Date(+zt));++ne<$e;)Wt.charCodeAt(ne)===37&&(Gt.push(Wt.slice(Ae,ne)),(Et=Xg[Yt=Wt.charAt(++ne)])!=null?Yt=Wt.charAt(++ne):Et=Yt==="e"?" ":"0",(Bt=Ut[Yt])&&(Yt=Bt(zt,Et)),Gt.push(Yt),Ae=ne+1);return Gt.push(Wt.slice(Ae,ne)),Gt.join("")}}function Kt(Wt,Ut){return function(zt){var Yt,Et,Bt=Ph(1900,void 0,1);if(me(Bt,Wt,zt+="",0)!=zt.length)return null;if("Q"in Bt)return new Date(Bt.Q);if("s"in Bt)return new Date(1e3*Bt.s+("L"in Bt?Bt.L:0));if(Ut&&!("Z"in Bt)&&(Bt.Z=0),"p"in Bt&&(Bt.H=Bt.H%12+12*Bt.p),Bt.m===void 0&&(Bt.m="q"in Bt?Bt.q:0),"V"in Bt){if(Bt.V<1||Bt.V>53)return null;"w"in Bt||(Bt.w=1),"Z"in Bt?(Et=(Yt=r2(Ph(Bt.y,0,1))).getUTCDay(),Yt=Et>4||Et===0?Fh.ceil(Yt):Fh(Yt),Yt=Rh.offset(Yt,7*(Bt.V-1)),Bt.y=Yt.getUTCFullYear(),Bt.m=Yt.getUTCMonth(),Bt.d=Yt.getUTCDate()+(Bt.w+6)%7):(Et=(Yt=n2(Ph(Bt.y,0,1))).getDay(),Yt=Et>4||Et===0?Bh.ceil(Yt):Bh(Yt),Yt=Dh.offset(Yt,7*(Bt.V-1)),Bt.y=Yt.getFullYear(),Bt.m=Yt.getMonth(),Bt.d=Yt.getDate()+(Bt.w+6)%7)}else("W"in Bt||"U"in Bt)&&("w"in Bt||(Bt.w="u"in Bt?Bt.u%7:"W"in Bt?1:0),Et="Z"in Bt?r2(Ph(Bt.y,0,1)).getUTCDay():n2(Ph(Bt.y,0,1)).getDay(),Bt.m=0,Bt.d="W"in Bt?(Bt.w+6)%7+7*Bt.W-(Et+5)%7:Bt.w+7*Bt.U-(Et+6)%7);return"Z"in Bt?(Bt.H+=Bt.Z/100|0,Bt.M+=Bt.Z%100,r2(Bt)):n2(Bt)}}function me(Wt,Ut,zt,Yt){for(var Et,Bt,Gt=0,ne=Ut.length,Ae=zt.length;Gt<ne;){if(Yt>=Ae)return-1;if((Et=Ut.charCodeAt(Gt++))===37){if(Et=Ut.charAt(Gt++),!(Bt=vt[Et in Xg?Ut.charAt(Gt++):Et])||(Yt=Bt(Wt,zt,Yt))<0)return-1}else if(Et!=zt.charCodeAt(Yt++))return-1}return Yt}return ct.x=wt(o,ct),ct.X=wt(u,ct),ct.c=wt(a,ct),lt.x=wt(o,lt),lt.X=wt(u,lt),lt.c=wt(a,lt),{format:function(Wt){var Ut=wt(Wt+="",ct);return Ut.toString=function(){return Wt},Ut},parse:function(Wt){var Ut=Kt(Wt+="",!1);return Ut.toString=function(){return Wt},Ut},utcFormat:function(Wt){var Ut=wt(Wt+="",lt);return Ut.toString=function(){return Wt},Ut},utcParse:function(Wt){var Ut=Kt(Wt+="",!0);return Ut.toString=function(){return Wt},Ut}}}var lu,i2,Zg,j0,a2,Xg={"-":"",_:" ",0:"0"},pa=/^\s*\d+/,a4=/^%/,o4=/[\\^$*+?|[\]().{}]/g;function zr(i,a,o){var u=i<0?"-":"",p=(u?-i:i)+"",g=p.length;return u+(g<o?new Array(o-g+1).join(a)+p:p)}function s4(i){return i.replace(o4,"\\$&")}function Uh(i){return new RegExp("^(?:"+i.map(s4).join("|")+")","i")}function zh(i){return new Map(i.map((a,o)=>[a.toLowerCase(),o]))}function c4(i,a,o){var u=pa.exec(a.slice(o,o+1));return u?(i.w=+u[0],o+u[0].length):-1}function l4(i,a,o){var u=pa.exec(a.slice(o,o+1));return u?(i.u=+u[0],o+u[0].length):-1}function u4(i,a,o){var u=pa.exec(a.slice(o,o+2));return u?(i.U=+u[0],o+u[0].length):-1}function h4(i,a,o){var u=pa.exec(a.slice(o,o+2));return u?(i.V=+u[0],o+u[0].length):-1}function f4(i,a,o){var u=pa.exec(a.slice(o,o+2));return u?(i.W=+u[0],o+u[0].length):-1}function Kg(i,a,o){var u=pa.exec(a.slice(o,o+4));return u?(i.y=+u[0],o+u[0].length):-1}function Jg(i,a,o){var u=pa.exec(a.slice(o,o+2));return u?(i.y=+u[0]+(+u[0]>68?1900:2e3),o+u[0].length):-1}function d4(i,a,o){var u=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(o,o+6));return u?(i.Z=u[1]?0:-(u[2]+(u[3]||"00")),o+u[0].length):-1}function p4(i,a,o){var u=pa.exec(a.slice(o,o+1));return u?(i.q=3*u[0]-3,o+u[0].length):-1}function g4(i,a,o){var u=pa.exec(a.slice(o,o+2));return u?(i.m=u[0]-1,o+u[0].length):-1}function Qg(i,a,o){var u=pa.exec(a.slice(o,o+2));return u?(i.d=+u[0],o+u[0].length):-1}function y4(i,a,o){var u=pa.exec(a.slice(o,o+3));return u?(i.m=0,i.d=+u[0],o+u[0].length):-1}function ty(i,a,o){var u=pa.exec(a.slice(o,o+2));return u?(i.H=+u[0],o+u[0].length):-1}function m4(i,a,o){var u=pa.exec(a.slice(o,o+2));return u?(i.M=+u[0],o+u[0].length):-1}function _4(i,a,o){var u=pa.exec(a.slice(o,o+2));return u?(i.S=+u[0],o+u[0].length):-1}function b4(i,a,o){var u=pa.exec(a.slice(o,o+3));return u?(i.L=+u[0],o+u[0].length):-1}function v4(i,a,o){var u=pa.exec(a.slice(o,o+6));return u?(i.L=Math.floor(u[0]/1e3),o+u[0].length):-1}function x4(i,a,o){var u=a4.exec(a.slice(o,o+1));return u?o+u[0].length:-1}function k4(i,a,o){var u=pa.exec(a.slice(o));return u?(i.Q=+u[0],o+u[0].length):-1}function w4(i,a,o){var u=pa.exec(a.slice(o));return u?(i.s=+u[0],o+u[0].length):-1}function ey(i,a){return zr(i.getDate(),a,2)}function E4(i,a){return zr(i.getHours(),a,2)}function T4(i,a){return zr(i.getHours()%12||12,a,2)}function S4(i,a){return zr(1+Dh.count(_c(i),i),a,3)}function ny(i,a){return zr(i.getMilliseconds(),a,3)}function A4(i,a){return ny(i,a)+"000"}function C4(i,a){return zr(i.getMonth()+1,a,2)}function N4(i,a){return zr(i.getMinutes(),a,2)}function I4(i,a){return zr(i.getSeconds(),a,2)}function L4(i){var a=i.getDay();return a===0?7:a}function M4(i,a){return zr(su.count(_c(i)-1,i),a,2)}function ry(i){var a=i.getDay();return a>=4||a===0?sl(i):sl.ceil(i)}function O4(i,a){return i=ry(i),zr(sl.count(_c(i),i)+(_c(i).getDay()===4),a,2)}function D4(i){return i.getDay()}function B4(i,a){return zr(Bh.count(_c(i)-1,i),a,2)}function R4(i,a){return zr(i.getFullYear()%100,a,2)}function F4(i,a){return zr((i=ry(i)).getFullYear()%100,a,2)}function P4(i,a){return zr(i.getFullYear()%1e4,a,4)}function U4(i,a){var o=i.getDay();return zr((i=o>=4||o===0?sl(i):sl.ceil(i)).getFullYear()%1e4,a,4)}function z4(i){var a=i.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+zr(a/60|0,"0",2)+zr(a%60,"0",2)}function iy(i,a){return zr(i.getUTCDate(),a,2)}function Y4(i,a){return zr(i.getUTCHours(),a,2)}function j4(i,a){return zr(i.getUTCHours()%12||12,a,2)}function $4(i,a){return zr(1+Rh.count(bc(i),i),a,3)}function ay(i,a){return zr(i.getUTCMilliseconds(),a,3)}function H4(i,a){return ay(i,a)+"000"}function q4(i,a){return zr(i.getUTCMonth()+1,a,2)}function W4(i,a){return zr(i.getUTCMinutes(),a,2)}function G4(i,a){return zr(i.getUTCSeconds(),a,2)}function V4(i){var a=i.getUTCDay();return a===0?7:a}function Z4(i,a){return zr(cu.count(bc(i)-1,i),a,2)}function oy(i){var a=i.getUTCDay();return a>=4||a===0?ll(i):ll.ceil(i)}function X4(i,a){return i=oy(i),zr(ll.count(bc(i),i)+(bc(i).getUTCDay()===4),a,2)}function K4(i){return i.getUTCDay()}function J4(i,a){return zr(Fh.count(bc(i)-1,i),a,2)}function Q4(i,a){return zr(i.getUTCFullYear()%100,a,2)}function tb(i,a){return zr((i=oy(i)).getUTCFullYear()%100,a,2)}function eb(i,a){return zr(i.getUTCFullYear()%1e4,a,4)}function nb(i,a){var o=i.getUTCDay();return zr((i=o>=4||o===0?ll(i):ll.ceil(i)).getUTCFullYear()%1e4,a,4)}function rb(){return"+0000"}function sy(){return"%"}function cy(i){return+i}function ly(i){return Math.floor(+i/1e3)}function uy(i){return lu=Vg(i),i2=lu.format,Zg=lu.parse,j0=lu.utcFormat,a2=lu.utcParse,lu}function ib(i){return new Date(i)}function ab(i){return i instanceof Date?+i:+new Date(+i)}function o2(i,a,o,u,p,g,v,x,T,C){var O=Fd(),z=O.invert,F=O.domain,j=C(".%L"),nt=C(":%S"),G=C("%I:%M"),V=C("%I %p"),Z=C("%a %d"),dt=C("%b %d"),ct=C("%B"),lt=C("%Y");function vt(wt){return(T(wt)<wt?j:x(wt)<wt?nt:v(wt)<wt?G:g(wt)<wt?V:u(wt)<wt?p(wt)<wt?Z:dt:o(wt)<wt?ct:lt)(wt)}return O.invert=function(wt){return new Date(z(wt))},O.domain=function(wt){return arguments.length?F(Array.from(wt,ab)):F().map(ib)},O.ticks=function(wt){var Kt=F();return i(Kt[0],Kt[Kt.length-1],wt==null?10:wt)},O.tickFormat=function(wt,Kt){return Kt==null?vt:C(Kt)},O.nice=function(wt){var Kt=F();return wt&&typeof wt.range=="function"||(wt=a(Kt[0],Kt[Kt.length-1],wt==null?10:wt)),wt?F(cg(Kt,wt)):O},O.copy=function(){return Lh(O,o2(i,a,o,u,p,g,v,x,T,C))},O}function ob(){return To.apply(o2(Wg,Gg,_c,Xd,su,Dh,Zd,Vd,mc,i2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function sb(){return To.apply(o2(Hg,qg,bc,t2,cu,Rh,Qd,Jd,mc,j0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $0(){var i,a,o,u,p,g=0,v=1,x=Va,T=!1;function C(z){return z==null||isNaN(z=+z)?p:x(o===0?.5:(z=(u(z)-i)*o,T?Math.max(0,Math.min(1,z)):z))}function O(z){return function(F){var j,nt;return arguments.length?([j,nt]=F,x=z(j,nt),C):[x(0),x(1)]}}return C.domain=function(z){return arguments.length?([g,v]=z,i=u(g=+g),a=u(v=+v),o=i===a?0:1/(a-i),C):[g,v]},C.clamp=function(z){return arguments.length?(T=!!z,C):T},C.interpolator=function(z){return arguments.length?(x=z,C):x},C.range=O(Kr),C.rangeRound=O(F0),C.unknown=function(z){return arguments.length?(p=z,C):p},function(z){return u=z,i=z(g),a=z(v),o=i===a?0:1/(a-i),C}}function vc(i,a){return a.domain(i.domain()).interpolator(i.interpolator()).clamp(i.clamp()).unknown(i.unknown())}function hy(){var i=gc($0()(Va));return i.copy=function(){return vc(i,hy())},Is.apply(i,arguments)}function fy(){var i=Pd($0()).domain([1,10]);return i.copy=function(){return vc(i,fy()).base(i.base())},Is.apply(i,arguments)}function dy(){var i=Ud($0());return i.copy=function(){return vc(i,dy()).constant(i.constant())},Is.apply(i,arguments)}function s2(){var i=zd($0());return i.copy=function(){return vc(i,s2()).exponent(i.exponent())},Is.apply(i,arguments)}function cb(){return s2.apply(null,arguments).exponent(.5)}function py(){var i=[],a=Va;function o(u){if(u!=null&&!isNaN(u=+u))return a((D(i,u,1)-1)/(i.length-1))}return o.domain=function(u){if(!arguments.length)return i.slice();i=[];for(let p of u)p==null||isNaN(p=+p)||i.push(p);return i.sort(m),o},o.interpolator=function(u){return arguments.length?(a=u,o):a},o.range=function(){return i.map((u,p)=>a(p/(i.length-1)))},o.quantiles=function(u){return Array.from({length:u+1},(p,g)=>pe(i,g/u))},o.copy=function(){return py(a).domain(i)},Is.apply(o,arguments)}function H0(){var i,a,o,u,p,g,v,x=0,T=.5,C=1,O=1,z=Va,F=!1;function j(G){return isNaN(G=+G)?v:(G=.5+((G=+g(G))-a)*(O*G<O*a?u:p),z(F?Math.max(0,Math.min(1,G)):G))}function nt(G){return function(V){var Z,dt,ct;return arguments.length?([Z,dt,ct]=V,z=Xp(G,[Z,dt,ct]),j):[z(0),z(.5),z(1)]}}return j.domain=function(G){return arguments.length?([x,T,C]=G,i=g(x=+x),a=g(T=+T),o=g(C=+C),u=i===a?0:.5/(a-i),p=a===o?0:.5/(o-a),O=a<i?-1:1,j):[x,T,C]},j.clamp=function(G){return arguments.length?(F=!!G,j):F},j.interpolator=function(G){return arguments.length?(z=G,j):z},j.range=nt(Kr),j.rangeRound=nt(F0),j.unknown=function(G){return arguments.length?(v=G,j):v},function(G){return g=G,i=G(x),a=G(T),o=G(C),u=i===a?0:.5/(a-i),p=a===o?0:.5/(o-a),O=a<i?-1:1,j}}function gy(){var i=gc(H0()(Va));return i.copy=function(){return vc(i,gy())},Is.apply(i,arguments)}function yy(){var i=Pd(H0()).domain([.1,1,10]);return i.copy=function(){return vc(i,yy()).base(i.base())},Is.apply(i,arguments)}function my(){var i=Ud(H0());return i.copy=function(){return vc(i,my()).constant(i.constant())},Is.apply(i,arguments)}function c2(){var i=zd(H0());return i.copy=function(){return vc(i,c2()).exponent(i.exponent())},Is.apply(i,arguments)}function lb(){return c2.apply(null,arguments).exponent(.5)}function mr(i){for(var a=i.length/6|0,o=new Array(a),u=0;u<a;)o[u]="#"+i.slice(6*u,6*++u);return o}uy({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const ub=mr("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),hb=mr("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),fb=mr("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),db=mr("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),pb=mr("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),gb=mr("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),yb=mr("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),mb=mr("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),_b=mr("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),bb=mr("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),di=i=>_l(i[i.length-1]);var _y=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(mr);const vb=di(_y);var by=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(mr);const xb=di(by);var vy=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(mr);const kb=di(vy);var xy=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(mr);const wb=di(xy);var ky=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(mr);const Eb=di(ky);var wy=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(mr);const Tb=di(wy);var Ey=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(mr);const Sb=di(Ey);var Ty=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(mr);const Ab=di(Ty);var Sy=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(mr);const Cb=di(Sy);var Ay=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(mr);const Nb=di(Ay);var Cy=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(mr);const Ib=di(Cy);var Ny=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(mr);const Lb=di(Ny);var Iy=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(mr);const Mb=di(Iy);var Ly=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(mr);const Ob=di(Ly);var My=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(mr);const Db=di(My);var Oy=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(mr);const Bb=di(Oy);var Dy=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(mr);const Rb=di(Dy);var By=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(mr);const Fb=di(By);var Ry=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(mr);const Pb=di(Ry);var Fy=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(mr);const Ub=di(Fy);var Py=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(mr);const zb=di(Py);var Uy=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(mr);const Yb=di(Uy);var zy=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(mr);const jb=di(zy);var Yy=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(mr);const $b=di(Yy);var jy=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(mr);const Hb=di(jy);var $y=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(mr);const qb=di($y);var Hy=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(mr);const Wb=di(Hy);function Gb(i){return i=Math.max(0,Math.min(1,i)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-i*(35.34-i*(2381.73-i*(6402.7-i*(7024.72-2710.57*i)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+i*(170.73+i*(52.82-i*(131.46-i*(176.58-67.37*i)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+i*(442.36-i*(2482.43-i*(6167.24-i*(6614.94-2475.67*i)))))))+")"}const Vb=P0(ka(300,.5,0),ka(-240,.5,1));var Zb=P0(ka(-100,.75,.35),ka(80,1.5,.8)),Xb=P0(ka(260,.75,.35),ka(80,1.5,.8)),q0=ka();function Kb(i){(i<0||i>1)&&(i-=Math.floor(i));var a=Math.abs(i-.5);return q0.h=360*i-100,q0.s=1.5-1.5*a,q0.l=.8-.9*a,q0+""}var W0=zi(),Jb=Math.PI/3,Qb=2*Math.PI/3;function tv(i){var a;return i=(.5-i)*Math.PI,W0.r=255*(a=Math.sin(i))*a,W0.g=255*(a=Math.sin(i+Jb))*a,W0.b=255*(a=Math.sin(i+Qb))*a,W0+""}function ev(i){return i=Math.max(0,Math.min(1,i)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+i*(1172.33-i*(10793.56-i*(33300.12-i*(38394.49-14825.05*i)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+i*(557.33+i*(1225.33-i*(3574.96-i*(1073.77+707.56*i)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+i*(3211.1-i*(15327.97-i*(27814-i*(22569.18-6838.66*i)))))))+")"}function G0(i){var a=i.length;return function(o){return i[Math.max(0,Math.min(a-1,Math.floor(o*a)))]}}const nv=G0(mr("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var rv=G0(mr("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),iv=G0(mr("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),av=G0(mr("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function ov(i){return Hi(po(i).call(document.documentElement))}var sv=0;function qy(){return new l2}function l2(){this._="@"+(++sv).toString(36)}function cv(i,a){return i.target&&(i=_o(i),a===void 0&&(a=i.currentTarget),i=i.touches||[i]),Array.from(i,o=>Jn(o,a))}function lv(i){return typeof i=="string"?new Xi([document.querySelectorAll(i)],[document.documentElement]):new Xi([Jt(i)],Zi)}function yr(i){return function(){return i}}l2.prototype=qy.prototype={constructor:l2,get:function(i){for(var a=this._;!(a in i);)if(!(i=i.parentNode))return;return i[a]},set:function(i,a){return i[this._]=a},remove:function(i){return this._ in i&&delete i[this._]},toString:function(){return this._}};var Wy=Math.abs,Fa=Math.atan2,ul=Math.cos,uv=Math.max,u2=Math.min,cs=Math.sin,uu=Math.sqrt,Pa=1e-12,xc=Math.PI,V0=xc/2,kc=2*xc;function hv(i){return i>1?0:i<-1?xc:Math.acos(i)}function Gy(i){return i>=1?V0:i<=-1?-V0:Math.asin(i)}function fv(i){return i.innerRadius}function dv(i){return i.outerRadius}function pv(i){return i.startAngle}function gv(i){return i.endAngle}function yv(i){return i&&i.padAngle}function mv(i,a,o,u,p,g,v,x){var T=o-i,C=u-a,O=v-p,z=x-g,F=z*T-O*C;if(!(F*F<Pa))return[i+(F=(O*(a-g)-z*(i-p))/F)*T,a+F*C]}function Z0(i,a,o,u,p,g,v){var x=i-o,T=a-u,C=(v?g:-g)/uu(x*x+T*T),O=C*T,z=-C*x,F=i+O,j=a+z,nt=o+O,G=u+z,V=(F+nt)/2,Z=(j+G)/2,dt=nt-F,ct=G-j,lt=dt*dt+ct*ct,vt=p-g,wt=F*G-nt*j,Kt=(ct<0?-1:1)*uu(uv(0,vt*vt*lt-wt*wt)),me=(wt*ct-dt*Kt)/lt,Wt=(-wt*dt-ct*Kt)/lt,Ut=(wt*ct+dt*Kt)/lt,zt=(-wt*dt+ct*Kt)/lt,Yt=me-V,Et=Wt-Z,Bt=Ut-V,Gt=zt-Z;return Yt*Yt+Et*Et>Bt*Bt+Gt*Gt&&(me=Ut,Wt=zt),{cx:me,cy:Wt,x01:-O,y01:-z,x11:me*(p/vt-1),y11:Wt*(p/vt-1)}}function _v(){var i=fv,a=dv,o=yr(0),u=null,p=pv,g=gv,v=yv,x=null;function T(){var C,O,z=+i.apply(this,arguments),F=+a.apply(this,arguments),j=p.apply(this,arguments)-V0,nt=g.apply(this,arguments)-V0,G=Wy(nt-j),V=nt>j;if(x||(x=C=zo()),F<z&&(O=F,F=z,z=O),F>Pa)if(G>kc-Pa)x.moveTo(F*ul(j),F*cs(j)),x.arc(0,0,F,j,nt,!V),z>Pa&&(x.moveTo(z*ul(nt),z*cs(nt)),x.arc(0,0,z,nt,j,V));else{var Z,dt,ct=j,lt=nt,vt=j,wt=nt,Kt=G,me=G,Wt=v.apply(this,arguments)/2,Ut=Wt>Pa&&(u?+u.apply(this,arguments):uu(z*z+F*F)),zt=u2(Wy(F-z)/2,+o.apply(this,arguments)),Yt=zt,Et=zt;if(Ut>Pa){var Bt=Gy(Ut/z*cs(Wt)),Gt=Gy(Ut/F*cs(Wt));(Kt-=2*Bt)>Pa?(vt+=Bt*=V?1:-1,wt-=Bt):(Kt=0,vt=wt=(j+nt)/2),(me-=2*Gt)>Pa?(ct+=Gt*=V?1:-1,lt-=Gt):(me=0,ct=lt=(j+nt)/2)}var ne=F*ul(ct),Ae=F*cs(ct),$e=z*ul(wt),Ke=z*cs(wt);if(zt>Pa){var yn,Je=F*ul(lt),$n=F*cs(lt),Wn=z*ul(vt),Dn=z*cs(vt);if(G<xc&&(yn=mv(ne,Ae,Wn,Dn,Je,$n,$e,Ke))){var Fn=ne-yn[0],Fr=Ae-yn[1],_r=Je-yn[0],eo=$n-yn[1],Ec=1/cs(hv((Fn*_r+Fr*eo)/(uu(Fn*Fn+Fr*Fr)*uu(_r*_r+eo*eo)))/2),Vo=uu(yn[0]*yn[0]+yn[1]*yn[1]);Yt=u2(zt,(z-Vo)/(Ec-1)),Et=u2(zt,(F-Vo)/(Ec+1))}}me>Pa?Et>Pa?(Z=Z0(Wn,Dn,ne,Ae,F,Et,V),dt=Z0(Je,$n,$e,Ke,F,Et,V),x.moveTo(Z.cx+Z.x01,Z.cy+Z.y01),Et<zt?x.arc(Z.cx,Z.cy,Et,Fa(Z.y01,Z.x01),Fa(dt.y01,dt.x01),!V):(x.arc(Z.cx,Z.cy,Et,Fa(Z.y01,Z.x01),Fa(Z.y11,Z.x11),!V),x.arc(0,0,F,Fa(Z.cy+Z.y11,Z.cx+Z.x11),Fa(dt.cy+dt.y11,dt.cx+dt.x11),!V),x.arc(dt.cx,dt.cy,Et,Fa(dt.y11,dt.x11),Fa(dt.y01,dt.x01),!V))):(x.moveTo(ne,Ae),x.arc(0,0,F,ct,lt,!V)):x.moveTo(ne,Ae),z>Pa&&Kt>Pa?Yt>Pa?(Z=Z0($e,Ke,Je,$n,z,-Yt,V),dt=Z0(ne,Ae,Wn,Dn,z,-Yt,V),x.lineTo(Z.cx+Z.x01,Z.cy+Z.y01),Yt<zt?x.arc(Z.cx,Z.cy,Yt,Fa(Z.y01,Z.x01),Fa(dt.y01,dt.x01),!V):(x.arc(Z.cx,Z.cy,Yt,Fa(Z.y01,Z.x01),Fa(Z.y11,Z.x11),!V),x.arc(0,0,z,Fa(Z.cy+Z.y11,Z.cx+Z.x11),Fa(dt.cy+dt.y11,dt.cx+dt.x11),V),x.arc(dt.cx,dt.cy,Yt,Fa(dt.y11,dt.x11),Fa(dt.y01,dt.x01),!V))):x.arc(0,0,z,wt,vt,V):x.lineTo($e,Ke)}else x.moveTo(0,0);if(x.closePath(),C)return x=null,C+""||null}return T.centroid=function(){var C=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2,O=(+p.apply(this,arguments)+ +g.apply(this,arguments))/2-xc/2;return[ul(O)*C,cs(O)*C]},T.innerRadius=function(C){return arguments.length?(i=typeof C=="function"?C:yr(+C),T):i},T.outerRadius=function(C){return arguments.length?(a=typeof C=="function"?C:yr(+C),T):a},T.cornerRadius=function(C){return arguments.length?(o=typeof C=="function"?C:yr(+C),T):o},T.padRadius=function(C){return arguments.length?(u=C==null?null:typeof C=="function"?C:yr(+C),T):u},T.startAngle=function(C){return arguments.length?(p=typeof C=="function"?C:yr(+C),T):p},T.endAngle=function(C){return arguments.length?(g=typeof C=="function"?C:yr(+C),T):g},T.padAngle=function(C){return arguments.length?(v=typeof C=="function"?C:yr(+C),T):v},T.context=function(C){return arguments.length?(x=C==null?null:C,T):x},T}var bv=Array.prototype.slice;function X0(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function Vy(i){this._context=i}function K0(i){return new Vy(i)}function h2(i){return i[0]}function f2(i){return i[1]}function d2(i,a){var o=yr(!0),u=null,p=K0,g=null;function v(x){var T,C,O,z=(x=X0(x)).length,F=!1;for(u==null&&(g=p(O=zo())),T=0;T<=z;++T)!(T<z&&o(C=x[T],T,x))===F&&((F=!F)?g.lineStart():g.lineEnd()),F&&g.point(+i(C,T,x),+a(C,T,x));if(O)return g=null,O+""||null}return i=typeof i=="function"?i:i===void 0?h2:yr(i),a=typeof a=="function"?a:a===void 0?f2:yr(a),v.x=function(x){return arguments.length?(i=typeof x=="function"?x:yr(+x),v):i},v.y=function(x){return arguments.length?(a=typeof x=="function"?x:yr(+x),v):a},v.defined=function(x){return arguments.length?(o=typeof x=="function"?x:yr(!!x),v):o},v.curve=function(x){return arguments.length?(p=x,u!=null&&(g=p(u)),v):p},v.context=function(x){return arguments.length?(x==null?u=g=null:g=p(u=x),v):u},v}function Zy(i,a,o){var u=null,p=yr(!0),g=null,v=K0,x=null;function T(O){var z,F,j,nt,G,V=(O=X0(O)).length,Z=!1,dt=new Array(V),ct=new Array(V);for(g==null&&(x=v(G=zo())),z=0;z<=V;++z){if(!(z<V&&p(nt=O[z],z,O))===Z)if(Z=!Z)F=z,x.areaStart(),x.lineStart();else{for(x.lineEnd(),x.lineStart(),j=z-1;j>=F;--j)x.point(dt[j],ct[j]);x.lineEnd(),x.areaEnd()}Z&&(dt[z]=+i(nt,z,O),ct[z]=+a(nt,z,O),x.point(u?+u(nt,z,O):dt[z],o?+o(nt,z,O):ct[z]))}if(G)return x=null,G+""||null}function C(){return d2().defined(p).curve(v).context(g)}return i=typeof i=="function"?i:i===void 0?h2:yr(+i),a=typeof a=="function"?a:yr(a===void 0?0:+a),o=typeof o=="function"?o:o===void 0?f2:yr(+o),T.x=function(O){return arguments.length?(i=typeof O=="function"?O:yr(+O),u=null,T):i},T.x0=function(O){return arguments.length?(i=typeof O=="function"?O:yr(+O),T):i},T.x1=function(O){return arguments.length?(u=O==null?null:typeof O=="function"?O:yr(+O),T):u},T.y=function(O){return arguments.length?(a=typeof O=="function"?O:yr(+O),o=null,T):a},T.y0=function(O){return arguments.length?(a=typeof O=="function"?O:yr(+O),T):a},T.y1=function(O){return arguments.length?(o=O==null?null:typeof O=="function"?O:yr(+O),T):o},T.lineX0=T.lineY0=function(){return C().x(i).y(a)},T.lineY1=function(){return C().x(i).y(o)},T.lineX1=function(){return C().x(u).y(a)},T.defined=function(O){return arguments.length?(p=typeof O=="function"?O:yr(!!O),T):p},T.curve=function(O){return arguments.length?(v=O,g!=null&&(x=v(g)),T):v},T.context=function(O){return arguments.length?(O==null?g=x=null:x=v(g=O),T):g},T}function vv(i,a){return a<i?-1:a>i?1:a>=i?0:NaN}function xv(i){return i}function kv(){var i=xv,a=vv,o=null,u=yr(0),p=yr(kc),g=yr(0);function v(x){var T,C,O,z,F,j=(x=X0(x)).length,nt=0,G=new Array(j),V=new Array(j),Z=+u.apply(this,arguments),dt=Math.min(kc,Math.max(-kc,p.apply(this,arguments)-Z)),ct=Math.min(Math.abs(dt)/j,g.apply(this,arguments)),lt=ct*(dt<0?-1:1);for(T=0;T<j;++T)(F=V[G[T]=T]=+i(x[T],T,x))>0&&(nt+=F);for(a!=null?G.sort(function(vt,wt){return a(V[vt],V[wt])}):o!=null&&G.sort(function(vt,wt){return o(x[vt],x[wt])}),T=0,O=nt?(dt-j*lt)/nt:0;T<j;++T,Z=z)C=G[T],z=Z+((F=V[C])>0?F*O:0)+lt,V[C]={data:x[C],index:T,value:F,startAngle:Z,endAngle:z,padAngle:ct};return V}return v.value=function(x){return arguments.length?(i=typeof x=="function"?x:yr(+x),v):i},v.sortValues=function(x){return arguments.length?(a=x,o=null,v):a},v.sort=function(x){return arguments.length?(o=x,a=null,v):o},v.startAngle=function(x){return arguments.length?(u=typeof x=="function"?x:yr(+x),v):u},v.endAngle=function(x){return arguments.length?(p=typeof x=="function"?x:yr(+x),v):p},v.padAngle=function(x){return arguments.length?(g=typeof x=="function"?x:yr(+x),v):g},v}Vy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;default:this._context.lineTo(i,a)}}};var Xy=p2(K0);function Ky(i){this._curve=i}function p2(i){function a(o){return new Ky(i(o))}return a._curve=i,a}function Yh(i){var a=i.curve;return i.angle=i.x,delete i.x,i.radius=i.y,delete i.y,i.curve=function(o){return arguments.length?a(p2(o)):a()._curve},i}function Jy(){return Yh(d2().curve(Xy))}function Qy(){var i=Zy().curve(Xy),a=i.curve,o=i.lineX0,u=i.lineX1,p=i.lineY0,g=i.lineY1;return i.angle=i.x,delete i.x,i.startAngle=i.x0,delete i.x0,i.endAngle=i.x1,delete i.x1,i.radius=i.y,delete i.y,i.innerRadius=i.y0,delete i.y0,i.outerRadius=i.y1,delete i.y1,i.lineStartAngle=function(){return Yh(o())},delete i.lineX0,i.lineEndAngle=function(){return Yh(u())},delete i.lineX1,i.lineInnerRadius=function(){return Yh(p())},delete i.lineY0,i.lineOuterRadius=function(){return Yh(g())},delete i.lineY1,i.curve=function(v){return arguments.length?a(p2(v)):a()._curve},i}function jh(i,a){return[(a=+a)*Math.cos(i-=Math.PI/2),a*Math.sin(i)]}function wv(i){return i.source}function Ev(i){return i.target}function g2(i){var a=wv,o=Ev,u=h2,p=f2,g=null;function v(){var x,T=bv.call(arguments),C=a.apply(this,T),O=o.apply(this,T);if(g||(g=x=zo()),i(g,+u.apply(this,(T[0]=C,T)),+p.apply(this,T),+u.apply(this,(T[0]=O,T)),+p.apply(this,T)),x)return g=null,x+""||null}return v.source=function(x){return arguments.length?(a=x,v):a},v.target=function(x){return arguments.length?(o=x,v):o},v.x=function(x){return arguments.length?(u=typeof x=="function"?x:yr(+x),v):u},v.y=function(x){return arguments.length?(p=typeof x=="function"?x:yr(+x),v):p},v.context=function(x){return arguments.length?(g=x==null?null:x,v):g},v}function Tv(i,a,o,u,p){i.moveTo(a,o),i.bezierCurveTo(a=(a+u)/2,o,a,p,u,p)}function Sv(i,a,o,u,p){i.moveTo(a,o),i.bezierCurveTo(a,o=(o+p)/2,u,o,u,p)}function Av(i,a,o,u,p){var g=jh(a,o),v=jh(a,o=(o+p)/2),x=jh(u,o),T=jh(u,p);i.moveTo(g[0],g[1]),i.bezierCurveTo(v[0],v[1],x[0],x[1],T[0],T[1])}function Cv(){return g2(Tv)}function Nv(){return g2(Sv)}function Iv(){var i=g2(Av);return i.angle=i.x,delete i.x,i.radius=i.y,delete i.y,i}Ky.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(i,a){this._curve.point(a*Math.sin(i),a*-Math.cos(i))}};const y2={draw:function(i,a){var o=Math.sqrt(a/xc);i.moveTo(o,0),i.arc(0,0,o,0,kc)}},tm={draw:function(i,a){var o=Math.sqrt(a/5)/2;i.moveTo(-3*o,-o),i.lineTo(-o,-o),i.lineTo(-o,-3*o),i.lineTo(o,-3*o),i.lineTo(o,-o),i.lineTo(3*o,-o),i.lineTo(3*o,o),i.lineTo(o,o),i.lineTo(o,3*o),i.lineTo(-o,3*o),i.lineTo(-o,o),i.lineTo(-3*o,o),i.closePath()}};var em=Math.sqrt(1/3),Lv=2*em;const nm={draw:function(i,a){var o=Math.sqrt(a/Lv),u=o*em;i.moveTo(0,-o),i.lineTo(u,0),i.lineTo(0,o),i.lineTo(-u,0),i.closePath()}};var rm=Math.sin(xc/10)/Math.sin(7*xc/10),Mv=Math.sin(kc/10)*rm,Ov=-Math.cos(kc/10)*rm;const im={draw:function(i,a){var o=Math.sqrt(.8908130915292852*a),u=Mv*o,p=Ov*o;i.moveTo(0,-o),i.lineTo(u,p);for(var g=1;g<5;++g){var v=kc*g/5,x=Math.cos(v),T=Math.sin(v);i.lineTo(T*o,-x*o),i.lineTo(x*u-T*p,T*u+x*p)}i.closePath()}},am={draw:function(i,a){var o=Math.sqrt(a),u=-o/2;i.rect(u,u,o,o)}};var m2=Math.sqrt(3);const om={draw:function(i,a){var o=-Math.sqrt(a/(3*m2));i.moveTo(0,2*o),i.lineTo(-m2*o,-o),i.lineTo(m2*o,-o),i.closePath()}};var So=-.5,Ao=Math.sqrt(3)/2,_2=1/Math.sqrt(12),Dv=3*(_2/2+1);const sm={draw:function(i,a){var o=Math.sqrt(a/Dv),u=o/2,p=o*_2,g=u,v=o*_2+o,x=-g,T=v;i.moveTo(u,p),i.lineTo(g,v),i.lineTo(x,T),i.lineTo(So*u-Ao*p,Ao*u+So*p),i.lineTo(So*g-Ao*v,Ao*g+So*v),i.lineTo(So*x-Ao*T,Ao*x+So*T),i.lineTo(So*u+Ao*p,So*p-Ao*u),i.lineTo(So*g+Ao*v,So*v-Ao*g),i.lineTo(So*x+Ao*T,So*T-Ao*x),i.closePath()}};var Bv=[y2,tm,nm,am,im,om,sm];function Rv(i,a){var o=null;function u(){var p;if(o||(o=p=zo()),i.apply(this,arguments).draw(o,+a.apply(this,arguments)),p)return o=null,p+""||null}return i=typeof i=="function"?i:yr(i||y2),a=typeof a=="function"?a:yr(a===void 0?64:+a),u.type=function(p){return arguments.length?(i=typeof p=="function"?p:yr(p),u):i},u.size=function(p){return arguments.length?(a=typeof p=="function"?p:yr(+p),u):a},u.context=function(p){return arguments.length?(o=p==null?null:p,u):o},u}function wc(){}function J0(i,a,o){i._context.bezierCurveTo((2*i._x0+i._x1)/3,(2*i._y0+i._y1)/3,(i._x0+2*i._x1)/3,(i._y0+2*i._y1)/3,(i._x0+4*i._x1+a)/6,(i._y0+4*i._y1+o)/6)}function Q0(i){this._context=i}function Fv(i){return new Q0(i)}function cm(i){this._context=i}function Pv(i){return new cm(i)}function lm(i){this._context=i}function Uv(i){return new lm(i)}Q0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:J0(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:J0(this,i,a)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}},cm.prototype={areaStart:wc,areaEnd:wc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._x2=i,this._y2=a;break;case 1:this._point=2,this._x3=i,this._y3=a;break;case 2:this._point=3,this._x4=i,this._y4=a,this._context.moveTo((this._x0+4*this._x1+i)/6,(this._y0+4*this._y1+a)/6);break;default:J0(this,i,a)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}},lm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var o=(this._x0+4*this._x1+i)/6,u=(this._y0+4*this._y1+a)/6;this._line?this._context.lineTo(o,u):this._context.moveTo(o,u);break;case 3:this._point=4;default:J0(this,i,a)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}};class um{constructor(a,o){this._context=a,this._x=o}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(a,o){switch(a=+a,o=+o,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,o):this._context.moveTo(a,o);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+a)/2,this._y0,this._x0,o,a,o):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+o)/2,a,this._y0,a,o)}this._x0=a,this._y0=o}}function zv(i){return new um(i,!0)}function Yv(i){return new um(i,!1)}function hm(i,a){this._basis=new Q0(i),this._beta=a}hm.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var i=this._x,a=this._y,o=i.length-1;if(o>0)for(var u,p=i[0],g=a[0],v=i[o]-p,x=a[o]-g,T=-1;++T<=o;)u=T/o,this._basis.point(this._beta*i[T]+(1-this._beta)*(p+u*v),this._beta*a[T]+(1-this._beta)*(g+u*x));this._x=this._y=null,this._basis.lineEnd()},point:function(i,a){this._x.push(+i),this._y.push(+a)}};const jv=function i(a){function o(u){return a===1?new Q0(u):new hm(u,a)}return o.beta=function(u){return i(+u)},o}(.85);function tf(i,a,o){i._context.bezierCurveTo(i._x1+i._k*(i._x2-i._x0),i._y1+i._k*(i._y2-i._y0),i._x2+i._k*(i._x1-a),i._y2+i._k*(i._y1-o),i._x2,i._y2)}function b2(i,a){this._context=i,this._k=(1-a)/6}b2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:tf(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2,this._x1=i,this._y1=a;break;case 2:this._point=3;default:tf(this,i,a)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const $v=function i(a){function o(u){return new b2(u,a)}return o.tension=function(u){return i(+u)},o}(0);function v2(i,a){this._context=i,this._k=(1-a)/6}v2.prototype={areaStart:wc,areaEnd:wc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._x3=i,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=i,this._y4=a);break;case 2:this._point=3,this._x5=i,this._y5=a;break;default:tf(this,i,a)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const Hv=function i(a){function o(u){return new v2(u,a)}return o.tension=function(u){return i(+u)},o}(0);function x2(i,a){this._context=i,this._k=(1-a)/6}x2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tf(this,i,a)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const qv=function i(a){function o(u){return new x2(u,a)}return o.tension=function(u){return i(+u)},o}(0);function k2(i,a,o){var u=i._x1,p=i._y1,g=i._x2,v=i._y2;if(i._l01_a>Pa){var x=2*i._l01_2a+3*i._l01_a*i._l12_a+i._l12_2a,T=3*i._l01_a*(i._l01_a+i._l12_a);u=(u*x-i._x0*i._l12_2a+i._x2*i._l01_2a)/T,p=(p*x-i._y0*i._l12_2a+i._y2*i._l01_2a)/T}if(i._l23_a>Pa){var C=2*i._l23_2a+3*i._l23_a*i._l12_a+i._l12_2a,O=3*i._l23_a*(i._l23_a+i._l12_a);g=(g*C+i._x1*i._l23_2a-a*i._l12_2a)/O,v=(v*C+i._y1*i._l23_2a-o*i._l12_2a)/O}i._context.bezierCurveTo(u,p,g,v,i._x2,i._y2)}function fm(i,a){this._context=i,this._alpha=a}fm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){if(i=+i,a=+a,this._point){var o=this._x2-i,u=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+u*u,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;break;case 2:this._point=3;default:k2(this,i,a)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const Wv=function i(a){function o(u){return a?new fm(u,a):new b2(u,0)}return o.alpha=function(u){return i(+u)},o}(.5);function dm(i,a){this._context=i,this._alpha=a}dm.prototype={areaStart:wc,areaEnd:wc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(i,a){if(i=+i,a=+a,this._point){var o=this._x2-i,u=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+u*u,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=i,this._y3=a;break;case 1:this._point=2,this._context.moveTo(this._x4=i,this._y4=a);break;case 2:this._point=3,this._x5=i,this._y5=a;break;default:k2(this,i,a)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const Gv=function i(a){function o(u){return a?new dm(u,a):new v2(u,0)}return o.alpha=function(u){return i(+u)},o}(.5);function pm(i,a){this._context=i,this._alpha=a}pm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){if(i=+i,a=+a,this._point){var o=this._x2-i,u=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+u*u,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:k2(this,i,a)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=a}};const Vv=function i(a){function o(u){return a?new pm(u,a):new x2(u,0)}return o.alpha=function(u){return i(+u)},o}(.5);function gm(i){this._context=i}function Zv(i){return new gm(i)}function ym(i){return i<0?-1:1}function mm(i,a,o){var u=i._x1-i._x0,p=a-i._x1,g=(i._y1-i._y0)/(u||p<0&&-0),v=(o-i._y1)/(p||u<0&&-0),x=(g*p+v*u)/(u+p);return(ym(g)+ym(v))*Math.min(Math.abs(g),Math.abs(v),.5*Math.abs(x))||0}function _m(i,a){var o=i._x1-i._x0;return o?(3*(i._y1-i._y0)/o-a)/2:a}function w2(i,a,o){var u=i._x0,p=i._y0,g=i._x1,v=i._y1,x=(g-u)/3;i._context.bezierCurveTo(u+x,p+x*a,g-x,v-x*o,g,v)}function ef(i){this._context=i}function bm(i){this._context=new vm(i)}function vm(i){this._context=i}function Xv(i){return new ef(i)}function Kv(i){return new bm(i)}function xm(i){this._context=i}function km(i){var a,o,u=i.length-1,p=new Array(u),g=new Array(u),v=new Array(u);for(p[0]=0,g[0]=2,v[0]=i[0]+2*i[1],a=1;a<u-1;++a)p[a]=1,g[a]=4,v[a]=4*i[a]+2*i[a+1];for(p[u-1]=2,g[u-1]=7,v[u-1]=8*i[u-1]+i[u],a=1;a<u;++a)o=p[a]/g[a-1],g[a]-=o,v[a]-=o*v[a-1];for(p[u-1]=v[u-1]/g[u-1],a=u-2;a>=0;--a)p[a]=(v[a]-p[a+1])/g[a];for(g[u-1]=(i[u]+p[u-1])/2,a=0;a<u-1;++a)g[a]=2*i[a+1]-p[a+1];return[p,g]}function Jv(i){return new xm(i)}function nf(i,a){this._context=i,this._t=a}function Qv(i){return new nf(i,.5)}function t5(i){return new nf(i,0)}function e5(i){return new nf(i,1)}function hu(i,a){if((p=i.length)>1)for(var o,u,p,g=1,v=i[a[0]],x=v.length;g<p;++g)for(u=v,v=i[a[g]],o=0;o<x;++o)v[o][1]+=v[o][0]=isNaN(u[o][1])?u[o][0]:u[o][1]}function fu(i){for(var a=i.length,o=new Array(a);--a>=0;)o[a]=a;return o}function n5(i,a){return i[a]}function r5(i){const a=[];return a.key=i,a}function i5(){var i=yr([]),a=fu,o=hu,u=n5;function p(g){var v,x,T=Array.from(i.apply(this,arguments),r5),C=T.length,O=-1;for(const z of g)for(v=0,++O;v<C;++v)(T[v][O]=[0,+u(z,T[v].key,O,g)]).data=z;for(v=0,x=X0(a(T));v<C;++v)T[x[v]].index=v;return o(T,x),T}return p.keys=function(g){return arguments.length?(i=typeof g=="function"?g:yr(Array.from(g)),p):i},p.value=function(g){return arguments.length?(u=typeof g=="function"?g:yr(+g),p):u},p.order=function(g){return arguments.length?(a=g==null?fu:typeof g=="function"?g:yr(Array.from(g)),p):a},p.offset=function(g){return arguments.length?(o=g==null?hu:g,p):o},p}function a5(i,a){if((u=i.length)>0){for(var o,u,p,g=0,v=i[0].length;g<v;++g){for(p=o=0;o<u;++o)p+=i[o][g][1]||0;if(p)for(o=0;o<u;++o)i[o][g][1]/=p}hu(i,a)}}function o5(i,a){if((x=i.length)>0)for(var o,u,p,g,v,x,T=0,C=i[a[0]].length;T<C;++T)for(g=v=0,o=0;o<x;++o)(p=(u=i[a[o]][T])[1]-u[0])>0?(u[0]=g,u[1]=g+=p):p<0?(u[1]=v,u[0]=v+=p):(u[0]=0,u[1]=p)}function s5(i,a){if((o=i.length)>0){for(var o,u=0,p=i[a[0]],g=p.length;u<g;++u){for(var v=0,x=0;v<o;++v)x+=i[v][u][1]||0;p[u][1]+=p[u][0]=-x/2}hu(i,a)}}function c5(i,a){if((p=i.length)>0&&(u=(o=i[a[0]]).length)>0){for(var o,u,p,g=0,v=1;v<u;++v){for(var x=0,T=0,C=0;x<p;++x){for(var O=i[a[x]],z=O[v][1]||0,F=(z-(O[v-1][1]||0))/2,j=0;j<x;++j){var nt=i[a[j]];F+=(nt[v][1]||0)-(nt[v-1][1]||0)}T+=z,C+=F*z}o[v-1][1]+=o[v-1][0]=g,T&&(g-=C/T)}o[v-1][1]+=o[v-1][0]=g,hu(i,a)}}function wm(i){var a=i.map(l5);return fu(i).sort(function(o,u){return a[o]-a[u]})}function l5(i){for(var a,o=-1,u=0,p=i.length,g=-1/0;++o<p;)(a=+i[o][1])>g&&(g=a,u=o);return u}function Em(i){var a=i.map(Tm);return fu(i).sort(function(o,u){return a[o]-a[u]})}function Tm(i){for(var a,o=0,u=-1,p=i.length;++u<p;)(a=+i[u][1])&&(o+=a);return o}function u5(i){return Em(i).reverse()}function h5(i){var a,o,u=i.length,p=i.map(Tm),g=wm(i),v=0,x=0,T=[],C=[];for(a=0;a<u;++a)o=g[a],v<x?(v+=p[o],T.push(o)):(x+=p[o],C.push(o));return C.reverse().concat(T)}function f5(i){return fu(i).reverse()}gm.prototype={areaStart:wc,areaEnd:wc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(i,a){i=+i,a=+a,this._point?this._context.lineTo(i,a):(this._point=1,this._context.moveTo(i,a))}},ef.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:w2(this,this._t0,_m(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,a){var o=NaN;if(a=+a,(i=+i)!==this._x1||a!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;break;case 2:this._point=3,w2(this,_m(this,o=mm(this,i,a)),o);break;default:w2(this,this._t0,o=mm(this,i,a))}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a,this._t0=o}}},(bm.prototype=Object.create(ef.prototype)).point=function(i,a){ef.prototype.point.call(this,a,i)},vm.prototype={moveTo:function(i,a){this._context.moveTo(a,i)},closePath:function(){this._context.closePath()},lineTo:function(i,a){this._context.lineTo(a,i)},bezierCurveTo:function(i,a,o,u,p,g){this._context.bezierCurveTo(a,i,u,o,g,p)}},xm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var i=this._x,a=this._y,o=i.length;if(o)if(this._line?this._context.lineTo(i[0],a[0]):this._context.moveTo(i[0],a[0]),o===2)this._context.lineTo(i[1],a[1]);else for(var u=km(i),p=km(a),g=0,v=1;v<o;++g,++v)this._context.bezierCurveTo(u[0][g],p[0][g],u[1][g],p[1][g],i[v],a[v]);(this._line||this._line!==0&&o===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(i,a){this._x.push(+i),this._y.push(+a)}},nf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(i,a){switch(i=+i,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,a),this._context.lineTo(i,a);else{var o=this._x*(1-this._t)+i*this._t;this._context.lineTo(o,this._y),this._context.lineTo(o,a)}}this._x=i,this._y=a}};var Sm="%Y-%m-%dT%H:%M:%S.%LZ",d5=Date.prototype.toISOString?function(i){return i.toISOString()}:j0(Sm);const p5=d5;var g5=+new Date("2000-01-01T00:00:00.000Z")?function(i){var a=new Date(i);return isNaN(a)?null:a}:a2(Sm);const y5=g5;function m5(i,a,o){var u=new Bc,p=a;return a==null?(u.restart(i,a,o),u):(u._restart=u.restart,u.restart=function(g,v,x){v=+v,x=x==null?Dc():+x,u._restart(function T(C){C+=p,u._restart(T,p+=v,x),g(C)},v,x)},u.restart(i,a,o),u)}const rf=i=>()=>i;function _5(i,{sourceEvent:a,target:o,transform:u,dispatch:p}){Object.defineProperties(this,{type:{value:i,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},transform:{value:u,enumerable:!0,configurable:!0},_:{value:p}})}function ls(i,a,o){this.k=i,this.x=a,this.y=o}ls.prototype={constructor:ls,scale:function(i){return i===1?this:new ls(this.k*i,this.x,this.y)},translate:function(i,a){return i===0&a===0?this:new ls(this.k,this.x+this.k*i,this.y+this.k*a)},apply:function(i){return[i[0]*this.k+this.x,i[1]*this.k+this.y]},applyX:function(i){return i*this.k+this.x},applyY:function(i){return i*this.k+this.y},invert:function(i){return[(i[0]-this.x)/this.k,(i[1]-this.y)/this.k]},invertX:function(i){return(i-this.x)/this.k},invertY:function(i){return(i-this.y)/this.k},rescaleX:function(i){return i.copy().domain(i.range().map(this.invertX,this).map(i.invert,i))},rescaleY:function(i){return i.copy().domain(i.range().map(this.invertY,this).map(i.invert,i))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var af=new ls(1,0,0);function Am(i){for(;!i.__zoom;)if(!(i=i.parentNode))return af;return i.__zoom}function E2(i){i.stopImmediatePropagation()}function $h(i){i.preventDefault(),i.stopImmediatePropagation()}function b5(i){return!(i.ctrlKey&&i.type!=="wheel"||i.button)}function v5(){var i=this;return i instanceof SVGElement?(i=i.ownerSVGElement||i).hasAttribute("viewBox")?[[(i=i.viewBox.baseVal).x,i.y],[i.x+i.width,i.y+i.height]]:[[0,0],[i.width.baseVal.value,i.height.baseVal.value]]:[[0,0],[i.clientWidth,i.clientHeight]]}function Cm(){return this.__zoom||af}function x5(i){return-i.deltaY*(i.deltaMode===1?.05:i.deltaMode?1:.002)*(i.ctrlKey?10:1)}function k5(){return navigator.maxTouchPoints||"ontouchstart"in this}function w5(i,a,o){var u=i.invertX(a[0][0])-o[0][0],p=i.invertX(a[1][0])-o[1][0],g=i.invertY(a[0][1])-o[0][1],v=i.invertY(a[1][1])-o[1][1];return i.translate(p>u?(u+p)/2:Math.min(0,u)||Math.max(0,p),v>g?(g+v)/2:Math.min(0,g)||Math.max(0,v))}function E5(){var i,a,o,u=b5,p=v5,g=w5,v=x5,x=k5,T=[0,1/0],C=[[-1/0,-1/0],[1/0,1/0]],O=250,z=Wp,F=sr("start","zoom","end"),j=500,nt=0,G=10;function V(Et){Et.property("__zoom",Cm).on("wheel.zoom",Kt,{passive:!1}).on("mousedown.zoom",me).on("dblclick.zoom",Wt).filter(x).on("touchstart.zoom",Ut).on("touchmove.zoom",zt).on("touchend.zoom touchcancel.zoom",Yt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Z(Et,Bt){return(Bt=Math.max(T[0],Math.min(T[1],Bt)))===Et.k?Et:new ls(Bt,Et.x,Et.y)}function dt(Et,Bt,Gt){var ne=Bt[0]-Gt[0]*Et.k,Ae=Bt[1]-Gt[1]*Et.k;return ne===Et.x&&Ae===Et.y?Et:new ls(Et.k,ne,Ae)}function ct(Et){return[(+Et[0][0]+ +Et[1][0])/2,(+Et[0][1]+ +Et[1][1])/2]}function lt(Et,Bt,Gt,ne){Et.on("start.zoom",function(){vt(this,arguments).event(ne).start()}).on("interrupt.zoom end.zoom",function(){vt(this,arguments).event(ne).end()}).tween("zoom",function(){var Ae=this,$e=arguments,Ke=vt(Ae,$e).event(ne),yn=p.apply(Ae,$e),Je=Gt==null?ct(yn):typeof Gt=="function"?Gt.apply(Ae,$e):Gt,$n=Math.max(yn[1][0]-yn[0][0],yn[1][1]-yn[0][1]),Wn=Ae.__zoom,Dn=typeof Bt=="function"?Bt.apply(Ae,$e):Bt,Fn=z(Wn.invert(Je).concat($n/Wn.k),Dn.invert(Je).concat($n/Dn.k));return function(Fr){if(Fr===1)Fr=Dn;else{var _r=Fn(Fr),eo=$n/_r[2];Fr=new ls(eo,Je[0]-_r[0]*eo,Je[1]-_r[1]*eo)}Ke.zoom(null,Fr)}})}function vt(Et,Bt,Gt){return!Gt&&Et.__zooming||new wt(Et,Bt)}function wt(Et,Bt){this.that=Et,this.args=Bt,this.active=0,this.sourceEvent=null,this.extent=p.apply(Et,Bt),this.taps=0}function Kt(Et,...Bt){if(u.apply(this,arguments)){var Gt=vt(this,Bt).event(Et),ne=this.__zoom,Ae=Math.max(T[0],Math.min(T[1],ne.k*Math.pow(2,v.apply(this,arguments)))),$e=Jn(Et);if(Gt.wheel)Gt.mouse[0][0]===$e[0]&&Gt.mouse[0][1]===$e[1]||(Gt.mouse[1]=ne.invert(Gt.mouse[0]=$e)),clearTimeout(Gt.wheel);else{if(ne.k===Ae)return;Gt.mouse=[$e,ne.invert($e)],ys(this),Gt.start()}$h(Et),Gt.wheel=setTimeout(Ke,150),Gt.zoom("mouse",g(dt(Z(ne,Ae),Gt.mouse[0],Gt.mouse[1]),Gt.extent,C))}function Ke(){Gt.wheel=null,Gt.end()}}function me(Et,...Bt){if(!o&&u.apply(this,arguments)){var Gt=Et.currentTarget,ne=vt(this,Bt,!0).event(Et),Ae=Hi(Et.view).on("mousemove.zoom",Je,!0).on("mouseup.zoom",$n,!0),$e=Jn(Et,Gt),Ke=Et.clientX,yn=Et.clientY;Ln(Et.view),E2(Et),ne.mouse=[$e,this.__zoom.invert($e)],ys(this),ne.start()}function Je(Wn){if($h(Wn),!ne.moved){var Dn=Wn.clientX-Ke,Fn=Wn.clientY-yn;ne.moved=Dn*Dn+Fn*Fn>nt}ne.event(Wn).zoom("mouse",g(dt(ne.that.__zoom,ne.mouse[0]=Jn(Wn,Gt),ne.mouse[1]),ne.extent,C))}function $n(Wn){Ae.on("mousemove.zoom mouseup.zoom",null),ds(Wn.view,ne.moved),$h(Wn),ne.event(Wn).end()}}function Wt(Et,...Bt){if(u.apply(this,arguments)){var Gt=this.__zoom,ne=Jn(Et.changedTouches?Et.changedTouches[0]:Et,this),Ae=Gt.invert(ne),$e=Gt.k*(Et.shiftKey?.5:2),Ke=g(dt(Z(Gt,$e),ne,Ae),p.apply(this,Bt),C);$h(Et),O>0?Hi(this).transition().duration(O).call(lt,Ke,ne,Et):Hi(this).call(V.transform,Ke,ne,Et)}}function Ut(Et,...Bt){if(u.apply(this,arguments)){var Gt,ne,Ae,$e,Ke=Et.touches,yn=Ke.length,Je=vt(this,Bt,Et.changedTouches.length===yn).event(Et);for(E2(Et),ne=0;ne<yn;++ne)$e=[$e=Jn(Ae=Ke[ne],this),this.__zoom.invert($e),Ae.identifier],Je.touch0?Je.touch1||Je.touch0[2]===$e[2]||(Je.touch1=$e,Je.taps=0):(Je.touch0=$e,Gt=!0,Je.taps=1+!!i);i&&(i=clearTimeout(i)),Gt&&(Je.taps<2&&(a=$e[0],i=setTimeout(function(){i=null},j)),ys(this),Je.start())}}function zt(Et,...Bt){if(this.__zooming){var Gt,ne,Ae,$e,Ke=vt(this,Bt).event(Et),yn=Et.changedTouches,Je=yn.length;for($h(Et),Gt=0;Gt<Je;++Gt)Ae=Jn(ne=yn[Gt],this),Ke.touch0&&Ke.touch0[2]===ne.identifier?Ke.touch0[0]=Ae:Ke.touch1&&Ke.touch1[2]===ne.identifier&&(Ke.touch1[0]=Ae);if(ne=Ke.that.__zoom,Ke.touch1){var $n=Ke.touch0[0],Wn=Ke.touch0[1],Dn=Ke.touch1[0],Fn=Ke.touch1[1],Fr=(Fr=Dn[0]-$n[0])*Fr+(Fr=Dn[1]-$n[1])*Fr,_r=(_r=Fn[0]-Wn[0])*_r+(_r=Fn[1]-Wn[1])*_r;ne=Z(ne,Math.sqrt(Fr/_r)),Ae=[($n[0]+Dn[0])/2,($n[1]+Dn[1])/2],$e=[(Wn[0]+Fn[0])/2,(Wn[1]+Fn[1])/2]}else{if(!Ke.touch0)return;Ae=Ke.touch0[0],$e=Ke.touch0[1]}Ke.zoom("touch",g(dt(ne,Ae,$e),Ke.extent,C))}}function Yt(Et,...Bt){if(this.__zooming){var Gt,ne,Ae=vt(this,Bt).event(Et),$e=Et.changedTouches,Ke=$e.length;for(E2(Et),o&&clearTimeout(o),o=setTimeout(function(){o=null},j),Gt=0;Gt<Ke;++Gt)ne=$e[Gt],Ae.touch0&&Ae.touch0[2]===ne.identifier?delete Ae.touch0:Ae.touch1&&Ae.touch1[2]===ne.identifier&&delete Ae.touch1;if(Ae.touch1&&!Ae.touch0&&(Ae.touch0=Ae.touch1,delete Ae.touch1),Ae.touch0)Ae.touch0[1]=this.__zoom.invert(Ae.touch0[0]);else if(Ae.end(),Ae.taps===2&&(ne=Jn(ne,this),Math.hypot(a[0]-ne[0],a[1]-ne[1])<G)){var yn=Hi(this).on("dblclick.zoom");yn&&yn.apply(this,arguments)}}}return V.transform=function(Et,Bt,Gt,ne){var Ae=Et.selection?Et.selection():Et;Ae.property("__zoom",Cm),Et!==Ae?lt(Et,Bt,Gt,ne):Ae.interrupt().each(function(){vt(this,arguments).event(ne).start().zoom(null,typeof Bt=="function"?Bt.apply(this,arguments):Bt).end()})},V.scaleBy=function(Et,Bt,Gt,ne){V.scaleTo(Et,function(){var Ae=this.__zoom.k,$e=typeof Bt=="function"?Bt.apply(this,arguments):Bt;return Ae*$e},Gt,ne)},V.scaleTo=function(Et,Bt,Gt,ne){V.transform(Et,function(){var Ae=p.apply(this,arguments),$e=this.__zoom,Ke=Gt==null?ct(Ae):typeof Gt=="function"?Gt.apply(this,arguments):Gt,yn=$e.invert(Ke),Je=typeof Bt=="function"?Bt.apply(this,arguments):Bt;return g(dt(Z($e,Je),Ke,yn),Ae,C)},Gt,ne)},V.translateBy=function(Et,Bt,Gt,ne){V.transform(Et,function(){return g(this.__zoom.translate(typeof Bt=="function"?Bt.apply(this,arguments):Bt,typeof Gt=="function"?Gt.apply(this,arguments):Gt),p.apply(this,arguments),C)},null,ne)},V.translateTo=function(Et,Bt,Gt,ne,Ae){V.transform(Et,function(){var $e=p.apply(this,arguments),Ke=this.__zoom,yn=ne==null?ct($e):typeof ne=="function"?ne.apply(this,arguments):ne;return g(af.translate(yn[0],yn[1]).scale(Ke.k).translate(typeof Bt=="function"?-Bt.apply(this,arguments):-Bt,typeof Gt=="function"?-Gt.apply(this,arguments):-Gt),$e,C)},ne,Ae)},wt.prototype={event:function(Et){return Et&&(this.sourceEvent=Et),this},start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Et,Bt){return this.mouse&&Et!=="mouse"&&(this.mouse[1]=Bt.invert(this.mouse[0])),this.touch0&&Et!=="touch"&&(this.touch0[1]=Bt.invert(this.touch0[0])),this.touch1&&Et!=="touch"&&(this.touch1[1]=Bt.invert(this.touch1[0])),this.that.__zoom=Bt,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Et){var Bt=Hi(this.that).datum();F.call(Et,this.that,new _5(Et,{sourceEvent:this.sourceEvent,target:V,type:Et,transform:this.that.__zoom,dispatch:F}),Bt)}},V.wheelDelta=function(Et){return arguments.length?(v=typeof Et=="function"?Et:rf(+Et),V):v},V.filter=function(Et){return arguments.length?(u=typeof Et=="function"?Et:rf(!!Et),V):u},V.touchable=function(Et){return arguments.length?(x=typeof Et=="function"?Et:rf(!!Et),V):x},V.extent=function(Et){return arguments.length?(p=typeof Et=="function"?Et:rf([[+Et[0][0],+Et[0][1]],[+Et[1][0],+Et[1][1]]]),V):p},V.scaleExtent=function(Et){return arguments.length?(T[0]=+Et[0],T[1]=+Et[1],V):[T[0],T[1]]},V.translateExtent=function(Et){return arguments.length?(C[0][0]=+Et[0][0],C[1][0]=+Et[1][0],C[0][1]=+Et[0][1],C[1][1]=+Et[1][1],V):[[C[0][0],C[0][1]],[C[1][0],C[1][1]]]},V.constrain=function(Et){return arguments.length?(g=Et,V):g},V.duration=function(Et){return arguments.length?(O=+Et,V):O},V.interpolate=function(Et){return arguments.length?(z=Et,V):z},V.on=function(){var Et=F.on.apply(F,arguments);return Et===F?V:Et},V.clickDistance=function(Et){return arguments.length?(nt=(Et=+Et)*Et,V):Math.sqrt(nt)},V.tapDistance=function(Et){return arguments.length?(G=+Et,V):G},V}Am.prototype=ls.prototype}},e={};function n(f){var k=e[f];if(k!==void 0)return k.exports;var h=e[f]={id:f,loaded:!1,exports:{}};return t[f].call(h.exports,h,h.exports,n),h.loaded=!0,h.exports}n.c=e,n.n=f=>{var k=f&&f.__esModule?()=>f.default:()=>f;return n.d(k,{a:k}),k},n.d=(f,k)=>{for(var h in k)n.o(k,h)&&!n.o(f,h)&&Object.defineProperty(f,h,{enumerable:!0,get:k[h]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(f,k)=>Object.prototype.hasOwnProperty.call(f,k),n.r=f=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},n.nmd=f=>(f.paths=[],f.children||(f.children=[]),f);var r=n(n.s=4505).Z;const defaultState={code:`graph TD
|
|
A[Christmas] -->|Get money| B(Go shopping)
|
|
B --> C{Let me think}
|
|
C -->|One| D[Laptop]
|
|
C -->|Two| E[iPhone]
|
|
C -->|Three| F[fa:fa-car Car]
|
|
`,mermaid:JSON.stringify({theme:"default"},null,2),updateEditor:!1,autoSync:!0,updateDiagram:!0},urlParseFailedState=`graph TD
|
|
A[Loading URL failed. We can try to figure out why.] -->|Decode JSON| B(Please check the console to see the JSON and error details.)
|
|
B --> C{Is the JSON correct?}
|
|
C -->|Yes| D(Please Click here to Raise an issue in github.<br/>Including the broken link in the issue <br/> will speed up the fix.)
|
|
C -->|No| E{Did someone <br/>send you this link?}
|
|
E -->|Yes| F[Ask them to send <br/>you the complete link]
|
|
E -->|No| G{Did you copy <br/> the complete URL?}
|
|
G --> |Yes| D
|
|
G --> |"No :("| H(Try using the Timeline tab in History <br/>from same browser you used to create the diagram.)
|
|
click D href "https://github.com/mermaid-js/mermaid-live-editor/issues/new?assignees=&labels=bug&template=bug_report.md&title=Broken%20link" "Raise issue"`,inputStateStore=persist(writable(defaultState),localStorage(),"codeStore"),stateStore=derived([inputStateStore],([f])=>{const k={...f,serialized:"",errorMarkers:[],error:void 0};try{k.serialized=serializeState(f),r.parse(f.code),JSON.parse(f.mermaid)}catch(h){if(k.error=h,console.error(h),h.hash)try{const m={severity:8,startLineNumber:h.hash.loc.first_line,startColumn:h.hash.loc.first_column,endLineNumber:h.hash.loc.last_line,endColumn:h.hash.loc.last_column+1,message:h.str};k.errorMarkers=[m]}catch(m){console.error("Error without line helper",m)}}return k}),loadState=f=>{let k;console.log("Loading",f);try{k=deserializeState(f);const h=typeof k.mermaid=="string"?JSON.parse(k.mermaid):k.mermaid;h.securityLevel&&h.securityLevel!=="strict"&&confirm(`Removing "securityLevel":"${h.securityLevel}" from the config for safety.
|
|
Click Cancel if you trust the source of this Diagram.`)&&delete h.securityLevel,k.mermaid=JSON.stringify(h,null,2)}catch(h){k=get_store_value(inputStateStore),f&&(console.error("Init error",h),k.code=urlParseFailedState,k.mermaid=defaultState.mermaid)}updateCodeStore({...k,updateEditor:!0})},updateCodeStore=f=>{inputStateStore.update(k=>({...k,...f}))};let prompted=!1;const updateCode=(f,{updateEditor:k,updateDiagram:h=!1})=>{if(saveStatistics(f),(f.match(/\n/g)||"").length+1>50&&!prompted&&get_store_value(stateStore).autoSync){const d=confirm("Long diagram detected. Turn off Auto Sync? Click the sync logo to manually sync.");prompted=!0,d&&updateCodeStore({autoSync:!1})}inputStateStore.update(d=>({...d,code:f,updateEditor:k,updateDiagram:h}))},updateConfig=(f,k)=>{inputStateStore.update(h=>({...h,mermaid:f,updateEditor:k}))},toggleDarkTheme=f=>{inputStateStore.update(k=>{const h=JSON.parse(k.mermaid);return(!h.theme||["dark","default"].includes(h.theme))&&(h.theme=f?"dark":"default"),{...k,mermaid:JSON.stringify(h,null,2),updateEditor:!0}})},initURLSubscription=()=>{stateStore.subscribe(({serialized:f})=>{history.replaceState(void 0,void 0,`#${f}`)})},getStateString=()=>JSON.stringify(get_store_value(inputStateStore));export{localStorage as a,analytics as b,pakoSerde as c,updateConfig as d,encode as e,defaultState as f,getStateString as g,updateCodeStore as h,inputStateStore as i,initLoading as j,initURLSubscription as k,loadingStateStore as l,initAnalytics as m,loadState as n,persist as p,r,stateStore as s,toggleDarkTheme as t,updateCode as u};
|