1262 lines
1.1 MiB
Plaintext
1262 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,S=d.domain||b.domain,M=d.path!==void 0?d.path:b.path!==void 0?b.path:"/",E=d.secure!==void 0?d.secure:b.secure,B=d.httponly!==void 0?d.httponly:b.httponly,R=d.samesite!==void 0?d.samesite:b.samesite,U=_?new Date(typeof _=="number"?new Date().getTime()+_*864e5:_):0;document.cookie=k.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+h.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(U&&U.getTime()>=0?";expires="+U.toUTCString():"")+(S?";domain="+S:"")+(M?";path="+M:"")+(E?";secure":"")+(B?";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,Wt=arguments.length;Lt<Wt;Lt++)St+=arguments[Lt].length;var ge=Array(St),Ve=0;for(Lt=0;Lt<Wt;Lt++)for(var we=arguments[Lt],he=0,xe=we.length;he<xe;he++,Ve++)ge[Ve]=we[he];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 S="Uint16Array";k.BUILTIN_CLASS_UINT16ARRAY=S;var M="Int32Array";k.BUILTIN_CLASS_INT32ARRAY=M;var E="Uint32Array";k.BUILTIN_CLASS_UINT32ARRAY=E;var B="Float32Array";k.BUILTIN_CLASS_FLOAT32ARRAY=B;var R="Float64Array";k.BUILTIN_CLASS_FLOAT64ARRAY=R;var U="BigInt64Array";k.BUILTIN_CLASS_BIGINT64ARRAY=U;var H="BigUint64Array";k.BUILTIN_CLASS_BIGUINT64ARRAY=H,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 J="Collator";k.BUILTIN_CLASS_INTL_COLLATOR=J;var rt="DateTimeFormat";k.BUILTIN_CLASS_INTL_DATETIMEFORMAT=rt;var ft="ListFormat";k.BUILTIN_CLASS_INTL_LISTFORMAT=ft,k.BUILTIN_CLASS_INTL_LOCALE="Locale";var K="NumberFormat";k.BUILTIN_CLASS_INTL_NUMBERFORMAT=K;var _t="PluralRules";k.BUILTIN_CLASS_INTL_PLURALRULES=_t;var at="RelativeTimeFormat";k.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT=at,k.BUILTIN_CLASS_REGEXP="RegExp",k.BUILTIN_CLASS_SET="Set";var st="String";k.BUILTIN_CLASS_STRING=st;var bt="Error";k.BUILTIN_CLASS_ERROR=bt;var zt="EvalError";k.BUILTIN_CLASS_EVAL_ERROR=zt;var Tt="RangeError";k.BUILTIN_CLASS_RANGE_ERROR=Tt;var mt="ReferenceError";k.BUILTIN_CLASS_REFERENCE_ERROR=mt;var Ct="SyntaxError";k.BUILTIN_CLASS_SYNTAX_ERROR=Ct;var xt="TypeError";k.BUILTIN_CLASS_TYPE_ERROR=xt;var gt="URIError";k.BUILTIN_CLASS_URI_ERROR=gt;var nt="AggregateError";k.BUILTIN_CLASS_AGGREGATE_ERROR=nt,k.BUILTIN_TYPE_BIG_INT="BI",k.BUILTIN_TYPE_NOT_FINITE="NF",k.BUILTIN_TYPE_UNDEFINED="UD";var dt=[m,d,b,_,S,M,E,B,R,U,H];k.ALL_BUILTIN_ARRAYS=dt;var q=[bt,zt,Tt,mt,Ct,xt,gt,nt];k.ALL_BUILTIN_ERRORS=q;var kt=[J,rt,ft,K,_t,at];k.ALL_BUILTIN_INTLS=kt;var W=h([st],dt);k.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED=W},496:function(f,k,h){var m=this&&this.__spreadArrays||function(){for(var K=0,_t=0,at=arguments.length;_t<at;_t++)K+=arguments[_t].length;var st=Array(K),bt=0;for(_t=0;_t<at;_t++)for(var zt=arguments[_t],Tt=0,mt=zt.length;Tt<mt;Tt++,bt++)st[bt]=zt[Tt];return st};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 S(K,_t,at){if(at===void 0&&(at={}),d.notObject(K))return K;if(Array.isArray(K))return M(K,_t);var st=K[b.CLASS_NAME_FIELD],bt=function(Tt,mt,Ct){switch(Tt){case b.BUILTIN_CLASS_INT8ARRAY:return E(mt[b.ARRAY_FIELD],Int8Array);case b.BUILTIN_CLASS_UINT8ARRAY:return E(mt[b.ARRAY_FIELD],Uint8Array);case b.BUILTIN_CLASS_UINT8CLAMPEDARRAY:return E(mt[b.ARRAY_FIELD],Uint8ClampedArray);case b.BUILTIN_CLASS_INT16ARRAY:return E(mt[b.ARRAY_FIELD],Int16Array);case b.BUILTIN_CLASS_UINT16ARRAY:return E(mt[b.ARRAY_FIELD],Uint16Array);case b.BUILTIN_CLASS_INT32ARRAY:return E(mt[b.ARRAY_FIELD],Int32Array);case b.BUILTIN_CLASS_UINT32ARRAY:return E(mt[b.ARRAY_FIELD],Uint32Array);case b.BUILTIN_CLASS_FLOAT32ARRAY:return E(mt[b.ARRAY_FIELD],Float32Array);case b.BUILTIN_CLASS_FLOAT64ARRAY:return E(mt[b.ARRAY_FIELD],Float64Array);case b.BUILTIN_CLASS_BIGINT64ARRAY:return B(mt[b.ARRAY_FIELD],BigInt64Array);case b.BUILTIN_CLASS_BIGUINT64ARRAY:return B(mt[b.ARRAY_FIELD],BigUint64Array);case b.BUILTIN_TYPE_BIG_INT:return R(mt[b.TO_STRING_FIELD]);case b.BUILTIN_TYPE_UNDEFINED:return;case b.BUILTIN_TYPE_NOT_FINITE:return d.getValueFromToStringResult(mt[b.TO_STRING_FIELD]);case b.BUILTIN_CLASS_ARRAYBUFFER:return xt=mt[b.ARRAY_FIELD],new Uint8Array(xt).buffer;case b.BUILTIN_CLASS_SHAREDARRAYBUFFER:return function(gt){var nt=new SharedArrayBuffer(gt.length),dt=new Uint8Array(nt);return gt.forEach(function(q,kt){dt[kt]=q}),nt}(mt[b.ARRAY_FIELD]);case b.BUILTIN_CLASS_BOOLEAN:return function(gt){return new Boolean(gt[b.BOOLEAN_FIELD])}(mt);case b.BUILTIN_CLASS_DATAVIEW:return function(gt){return new DataView(new Uint8Array(gt).buffer)}(mt[b.ARRAY_FIELD]);case b.BUILTIN_CLASS_DATE:return function(gt){return typeof gt[b.TIMESTAMP_FIELD]=="number"?new Date(gt[b.TIMESTAMP_FIELD]):null}(mt);case b.BUILTIN_CLASS_INTL_COLLATOR:return U(mt,Intl.Collator);case b.BUILTIN_CLASS_INTL_DATETIMEFORMAT:return U(mt,Intl.DateTimeFormat);case b.BUILTIN_CLASS_INTL_LISTFORMAT:return U(mt,Intl.ListFormat);case b.BUILTIN_CLASS_INTL_LOCALE:return new Intl.Locale(mt[b.TO_STRING_FIELD]);case b.BUILTIN_CLASS_INTL_NUMBERFORMAT:return U(mt,Intl.NumberFormat);case b.BUILTIN_CLASS_INTL_PLURALRULES:return U(mt,Intl.PluralRules);case b.BUILTIN_CLASS_INTL_RELATIVETIMEFORMAT:return U(mt,Intl.RelativeTimeFormat);case b.BUILTIN_CLASS_REGEXP:return function(gt){var nt=gt[b.TO_STRING_FIELD],dt=nt.lastIndexOf("/");return new RegExp(nt.substring(1,dt),nt.substring(dt+1))}(mt);case b.BUILTIN_CLASS_SET:return function(gt,nt){return new Set(M(gt[b.ARRAY_FIELD],nt))}(mt,Ct);case b.BUILTIN_CLASS_STRING:return function(gt){return new String(gt[b.TO_STRING_FIELD])}(mt);case b.BUILTIN_CLASS_ERROR:return H(mt,Error);case b.BUILTIN_CLASS_EVAL_ERROR:return H(mt,EvalError);case b.BUILTIN_CLASS_RANGE_ERROR:return H(mt,RangeError);case b.BUILTIN_CLASS_REFERENCE_ERROR:return H(mt,ReferenceError);case b.BUILTIN_CLASS_SYNTAX_ERROR:return H(mt,SyntaxError);case b.BUILTIN_CLASS_TYPE_ERROR:return H(mt,TypeError);case b.BUILTIN_CLASS_URI_ERROR:return H(mt,URIError);case b.BUILTIN_CLASS_AGGREGATE_ERROR:return H(mt,AggregateError);default:return b.ESSERIALIZER_NULL}var xt}(st,K,_t);if(bt!==b.ESSERIALIZER_NULL)return bt;if(st&&!_t[st])throw new Error("Class "+st+" not found");var zt=[];return at.fieldsForConstructorParameters&&(zt=at.fieldsForConstructorParameters.map(function(Tt){return Tt in K?K[Tt]:{}})),function(Tt,mt,Ct,xt){for(var gt in mt){var nt=mt[gt];if(!xt.ignoreProperties||!xt.ignoreProperties.includes(gt))if(xt.rawProperties&&xt.rawProperties.includes(gt))Tt[gt]=JSON.stringify(nt);else{var dt=Object.getOwnPropertyDescriptor(Tt,gt);q=nt,kt=dt,gt===b.CLASS_NAME_FIELD||kt&&(typeof kt.set=="function"||kt.writable===!1&&typeof q!="object")||(dt&&dt.writable===!1&&typeof nt=="object"?rt(Tt[gt],nt,Ct):Tt[gt]=S(nt,Ct))}}var q,kt;return Tt}(function(Tt,mt){var Ct={};if(!Tt)return Ct;var xt=Tt.length-mt.length;if(xt>0&&(mt=mt.concat(Array.from(Array(xt),function(){return{}}))),_.test(Tt.toString()))try{Ct=new(Tt.bind.apply(Tt,m([void 0],mt)))}catch{J(Tt.name),Ct={},Object.setPrototypeOf(Ct,Tt?Tt.prototype:Object.prototype)}else{Ct=Object.create(Tt.prototype.constructor.prototype);try{Tt.prototype.constructor.call(Ct,mt)}catch{J(Tt.name)}}return Ct}(_t[st],zt),K,_t,at)}function M(K,_t){return K.map(function(at){return S(at,_t)})}function E(K,_t){return new _t(K)}function B(K,_t){return new _t(K.map(function(at){return R(at[b.TO_STRING_FIELD])}))}function R(K){return BigInt(K)}function U(K,_t){var at=K[b.OPTIONS_FIELD],st=at.locale;return delete at.locale,new _t(st,at)}function H(K,_t){var at;return delete(at=K.message?new _t(K.message):new _t).stack,K.name&&(at.name=K.name),K.stack&&(at.stack=K.stack),_t===AggregateError&&(at.errors=S(K.errors,{})),at}function J(K){console.warn("Incorrect parameter type passed to constructor: "+K)}function rt(K,_t,at){for(var st in _t){var bt=Object.getOwnPropertyDescriptor(K,st);bt&&bt.writable!==!0&&typeof bt.set!="function"||(K[st]=S(_t[st],at))}}function ft(K){K===void 0&&(K=[]);var _t={};return K.forEach(function(at){if(d.isClass(at)){var st=at.name,bt=_t[st];bt&&bt!==at&&console.warn("WARNING: Found class definition with the same name: "+st),_t[st]=at}}),_t}k.deserializeFromParsedObj=function(K,_t,at){return S(K,ft(_t),at)},k.deserializeFromParsedObjWithClassMapping=S,k.getClassMappingFromClassArray=ft,k.getParentClassName=function(K){return K.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(S,M){M===void 0&&(M={});var E=function(H){var J,rt,ft;return H===void 0?((J={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_UNDEFINED,J):typeof H!="number"||isFinite(H)?typeof H=="bigint"?((ft={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_BIG_INT,ft[m.TO_STRING_FIELD]=H.toString(),ft):d.notObject(H)?H:m.ESSERIALIZER_NULL:((rt={})[m.CLASS_NAME_FIELD]=m.BUILTIN_TYPE_NOT_FINITE,rt[m.TO_STRING_FIELD]=H.toString(),rt)}(S);if(E!==m.ESSERIALIZER_NULL)return E;if(Array.isArray(S))return _(S);var B={};if(!function(H){var J=H.__proto__.constructor.name;return m.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED.includes(J)}(S)){if(M.ignoreProperties&&M.ignoreProperties.forEach(function(H){delete S[H]}),M.interceptProperties)for(var R in M.interceptProperties)S[R]=M.interceptProperties[R].call(S,S[R]);for(var U in S)B[U]=b(S[U])}return function(H,J){var rt=H.__proto__.constructor.name;return rt!=="Object"&&(J[m.CLASS_NAME_FIELD]=rt,rt===m.BUILTIN_CLASS_ARRAYBUFFER||rt===m.BUILTIN_CLASS_SHAREDARRAYBUFFER?J[m.ARRAY_FIELD]=_(Array.from(new Uint8Array(H))):rt===m.BUILTIN_CLASS_BOOLEAN?J[m.BOOLEAN_FIELD]=H.valueOf():rt===m.BUILTIN_CLASS_DATAVIEW?J[m.ARRAY_FIELD]=_(Array.from(new Uint8Array(H.buffer))):rt===m.BUILTIN_CLASS_DATE?J[m.TIMESTAMP_FIELD]=H.getTime():rt===m.BUILTIN_CLASS_INTL_LOCALE||rt===m.BUILTIN_CLASS_REGEXP?J[m.TO_STRING_FIELD]=H.toString():rt===m.BUILTIN_CLASS_SET?J[m.ARRAY_FIELD]=_(Array.from(H)):rt===m.BUILTIN_CLASS_STRING?J[m.TO_STRING_FIELD]=H.toString():m.ALL_BUILTIN_ARRAYS.includes(rt)?J[m.ARRAY_FIELD]=_(Array.from(H)):m.ALL_BUILTIN_ERRORS.includes(rt)?function(ft,K,_t){ft.name!=="Error"&&(K.name=ft.name),ft.message&&(K.message=ft.message),ft.stack&&(K.stack=ft.stack),_t===m.BUILTIN_CLASS_AGGREGATE_ERROR&&(K.errors=b(ft.errors))}(H,J,rt):m.ALL_BUILTIN_INTLS.includes(rt)&&(J[m.OPTIONS_FIELD]=H.resolvedOptions())),J}(S,B)}function _(S){return S.map(function(M){return b(M)})}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 S=_.key;_.storageArea===f&&h.filter(({key:M})=>M===S).forEach(({listener:M})=>{M(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(_,S){h.push({key:_,listener:S}),h.length===1&&d()},removeListener(_,S){const M=h.indexOf({key:_,listener:S});M!==-1&&h.splice(M,1),h.length===0&&b()},getValue(_){const S=f.getItem(_);return deserialize(S)},deleteValue(_){f.removeItem(_)},setValue(_,S){f.setItem(_,serialize(S))}}}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-594c52de.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,S=k.stat_desc.extra_base,M=k.stat_desc.max_length;let E,B,R,U,H,J,rt=0;for(U=0;U<=MAX_BITS$1;U++)f.bl_count[U]=0;for(h[f.heap[f.heap_max]*2+1]=0,E=f.heap_max+1;E<HEAP_SIZE$1;E++)B=f.heap[E],U=h[h[B*2+1]*2+1]+1,U>M&&(U=M,rt++),h[B*2+1]=U,!(B>m)&&(f.bl_count[U]++,H=0,B>=S&&(H=_[B-S]),J=h[B*2],f.opt_len+=J*(U+H),b&&(f.static_len+=J*(d[B*2+1]+H)));if(rt!==0){do{for(U=M-1;f.bl_count[U]===0;)U--;f.bl_count[U]--,f.bl_count[U+1]+=2,f.bl_count[M]--,rt-=2}while(rt>0);for(U=M;U!==0;U--)for(B=f.bl_count[U];B!==0;)R=f.heap[--E],!(R>m)&&(h[R*2+1]!==U&&(f.opt_len+=(U-h[R*2+1])*h[R*2],h[R*2+1]=U),B--)}},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 S=f[_*2+1];S!==0&&(f[_*2]=bi_reverse(m[S]++,S))}},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,_,S;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),S=extra_lbits[_],S!==0&&(d-=base_length[_],send_bits(f,d,S)),m--,_=d_code(m),send_code(f,_,h),S=extra_dbits[_],S!==0&&(m-=base_dist[_],send_bits(f,m,S)));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 _,S,M=-1,E;for(f.heap_len=0,f.heap_max=HEAP_SIZE$1,_=0;_<b;_++)h[_*2]!==0?(f.heap[++f.heap_len]=M=_,f.depth[_]=0):h[_*2+1]=0;for(;f.heap_len<2;)E=f.heap[++f.heap_len]=M<2?++M:0,h[E*2]=1,f.depth[E]=0,f.opt_len--,d&&(f.static_len-=m[E*2+1]);for(k.max_code=M,_=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),S=f.heap[1],f.heap[--f.heap_max]=_,f.heap[--f.heap_max]=S,h[E*2]=h[_*2]+h[S*2],f.depth[E]=(f.depth[_]>=f.depth[S]?f.depth[_]:f.depth[S])+1,h[_*2+1]=h[S*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,M,f.bl_count)},scan_tree=(f,k,h)=>{let m,d=-1,b,_=k[0*2+1],S=0,M=7,E=4;for(_===0&&(M=138,E=3),k[(h+1)*2+1]=65535,m=0;m<=h;m++)b=_,_=k[(m+1)*2+1],!(++S<M&&b===_)&&(S<E?f.bl_tree[b*2]+=S:b!==0?(b!==d&&f.bl_tree[b*2]++,f.bl_tree[REP_3_6*2]++):S<=10?f.bl_tree[REPZ_3_10*2]++:f.bl_tree[REPZ_11_138*2]++,S=0,d=b,_===0?(M=138,E=3):b===_?(M=6,E=3):(M=7,E=4))},send_tree=(f,k,h)=>{let m,d=-1,b,_=k[0*2+1],S=0,M=7,E=4;for(_===0&&(M=138,E=3),m=0;m<=h;m++)if(b=_,_=k[(m+1)*2+1],!(++S<M&&b===_)){if(S<E)do send_code(f,b,f.bl_tree);while(--S!==0);else b!==0?(b!==d&&(send_code(f,b,f.bl_tree),S--),send_code(f,REP_3_6,f.bl_tree),send_bits(f,S-3,2)):S<=10?(send_code(f,REPZ_3_10,f.bl_tree),send_bits(f,S-3,3)):(send_code(f,REPZ_11_138,f.bl_tree),send_bits(f,S-11,7));S=0,d=b,_===0?(M=138,E=3):b===_?(M=6,E=3):(M=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,S=f.nice_match;const M=f.strstart>f.w_size-MIN_LOOKAHEAD?f.strstart-(f.w_size-MIN_LOOKAHEAD):0,E=f.window,B=f.w_mask,R=f.prev,U=f.strstart+MAX_MATCH;let H=E[m+_-1],J=E[m+_];f.prev_length>=f.good_match&&(h>>=2),S>f.lookahead&&(S=f.lookahead);do if(d=k,!(E[d+_]!==J||E[d+_-1]!==H||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<U);if(b=MAX_MATCH-(U-m),m=U-MAX_MATCH,b>_){if(f.match_start=k,_=b,b>=S)break;H=E[m+_-1],J=E[m+_]}}while((k=R[k&B])>M&&--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 S=new DeflateState;return f.state=S,S.strm=f,S.wrap=_,S.gzhead=null,S.w_bits=m,S.w_size=1<<S.w_bits,S.w_mask=S.w_size-1,S.hash_bits=d+7,S.hash_size=1<<S.hash_bits,S.hash_mask=S.hash_size-1,S.hash_shift=~~((S.hash_bits+MIN_MATCH-1)/MIN_MATCH),S.window=new Uint8Array(S.w_size*2),S.head=new Uint16Array(S.hash_size),S.prev=new Uint16Array(S.w_size),S.lit_bufsize=1<<d+6,S.pending_buf_size=S.lit_bufsize*4,S.pending_buf=new Uint8Array(S.pending_buf_size),S.d_buf=1*S.lit_bufsize,S.l_buf=(1+2)*S.lit_bufsize,S.level=k,S.strategy=b,S.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,S=-1;d.strategy>=Z_HUFFMAN_ONLY||d.level<2?S=0:d.level<6?S=1:d.level===6?S=2:S=3,_|=S<<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 M=new Uint8Array(m.w_size);M.set(k.subarray(h-m.w_size,h),0),k=M,h=m.w_size}const b=f.avail_in,_=f.next_in,S=f.input;for(f.avail_in=h,f.next_in=0,f.input=k,fill_window(m);m.lookahead>=MIN_MATCH;){let M=m.strstart,E=m.lookahead-(MIN_MATCH-1);do m.ins_h=HASH(m,m.ins_h,m.window[M+MIN_MATCH-1]),m.prev[M&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=M,M++;while(--E);m.strstart=M,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=S,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,S=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++)),S+=h<128?1:h<2048?2:h<65536?3:4;for(k=new Uint8Array(S),b=0,d=0;b<S;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 S=_utf8len[_];if(S>4){b[d++]=65533,m+=S-1;continue}for(_&=S===2?31:S===3?15:7;S>1&&m<h;)_=_<<6|f[m++]&63,S--;if(S>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,_,S,M,E,B,R,U,H,J,rt,ft,K,_t,at,st,bt,zt,Tt,mt,Ct,xt;const gt=k.state;m=k.next_in,Ct=k.input,d=m+(k.avail_in-5),b=k.next_out,xt=k.output,_=b-(h-k.avail_out),S=b+(k.avail_out-257),M=gt.dmax,E=gt.wsize,B=gt.whave,R=gt.wnext,U=gt.window,H=gt.hold,J=gt.bits,rt=gt.lencode,ft=gt.distcode,K=(1<<gt.lenbits)-1,_t=(1<<gt.distbits)-1;t:do{J<15&&(H+=Ct[m++]<<J,J+=8,H+=Ct[m++]<<J,J+=8),at=rt[H&K];e:for(;;){if(st=at>>>24,H>>>=st,J-=st,st=at>>>16&255,st===0)xt[b++]=at&65535;else if(st&16){bt=at&65535,st&=15,st&&(J<st&&(H+=Ct[m++]<<J,J+=8),bt+=H&(1<<st)-1,H>>>=st,J-=st),J<15&&(H+=Ct[m++]<<J,J+=8,H+=Ct[m++]<<J,J+=8),at=ft[H&_t];n:for(;;){if(st=at>>>24,H>>>=st,J-=st,st=at>>>16&255,st&16){if(zt=at&65535,st&=15,J<st&&(H+=Ct[m++]<<J,J+=8,J<st&&(H+=Ct[m++]<<J,J+=8)),zt+=H&(1<<st)-1,zt>M){k.msg="invalid distance too far back",gt.mode=BAD$1;break t}if(H>>>=st,J-=st,st=b-_,zt>st){if(st=zt-st,st>B&>.sane){k.msg="invalid distance too far back",gt.mode=BAD$1;break t}if(Tt=0,mt=U,R===0){if(Tt+=E-st,st<bt){bt-=st;do xt[b++]=U[Tt++];while(--st);Tt=b-zt,mt=xt}}else if(R<st){if(Tt+=E+R-st,st-=R,st<bt){bt-=st;do xt[b++]=U[Tt++];while(--st);if(Tt=0,R<bt){st=R,bt-=st;do xt[b++]=U[Tt++];while(--st);Tt=b-zt,mt=xt}}}else if(Tt+=R-st,st<bt){bt-=st;do xt[b++]=U[Tt++];while(--st);Tt=b-zt,mt=xt}for(;bt>2;)xt[b++]=mt[Tt++],xt[b++]=mt[Tt++],xt[b++]=mt[Tt++],bt-=3;bt&&(xt[b++]=mt[Tt++],bt>1&&(xt[b++]=mt[Tt++]))}else{Tt=b-zt;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((st&64)===0){at=ft[(at&65535)+(H&(1<<st)-1)];continue n}else{k.msg="invalid distance code",gt.mode=BAD$1;break t}break}}else if((st&64)===0){at=rt[(at&65535)+(H&(1<<st)-1)];continue e}else if(st&32){gt.mode=TYPE$1;break t}else{k.msg="invalid literal/length code",gt.mode=BAD$1;break t}break}}while(m<d&&b<S);bt=J>>3,m-=bt,J-=bt<<3,H&=(1<<J)-1,k.next_in=m,k.next_out=b,k.avail_in=m<d?5+(d-m):5-(m-d),k.avail_out=b<S?257+(S-b):257-(b-S),gt.hold=H,gt.bits=J};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,_,S)=>{const M=S.bits;let E=0,B=0,R=0,U=0,H=0,J=0,rt=0,ft=0,K=0,_t=0,at,st,bt,zt,Tt,mt=null,Ct=0,xt;const gt=new Uint16Array(MAXBITS+1),nt=new Uint16Array(MAXBITS+1);let dt=null,q=0,kt,W,St;for(E=0;E<=MAXBITS;E++)gt[E]=0;for(B=0;B<m;B++)gt[k[h+B]]++;for(H=M,U=MAXBITS;U>=1&>[U]===0;U--);if(H>U&&(H=U),U===0)return d[b++]=1<<24|64<<16|0,d[b++]=1<<24|64<<16|0,S.bits=1,0;for(R=1;R<U&>[R]===0;R++);for(H<R&&(H=R),ft=1,E=1;E<=MAXBITS;E++)if(ft<<=1,ft-=gt[E],ft<0)return-1;if(ft>0&&(f===CODES$1||U!==1))return-1;for(nt[1]=0,E=1;E<MAXBITS;E++)nt[E+1]=nt[E]+gt[E];for(B=0;B<m;B++)k[h+B]!==0&&(_[nt[k[h+B]]++]=B);if(f===CODES$1?(mt=dt=_,xt=19):f===LENS$1?(mt=lbase,Ct-=257,dt=lext,q-=257,xt=256):(mt=dbase,dt=dext,xt=-1),_t=0,B=0,E=R,Tt=b,J=H,rt=0,bt=-1,K=1<<H,zt=K-1,f===LENS$1&&K>ENOUGH_LENS$1||f===DISTS$1&&K>ENOUGH_DISTS$1)return 1;for(;;){kt=E-rt,_[B]<xt?(W=0,St=_[B]):_[B]>xt?(W=dt[q+_[B]],St=mt[Ct+_[B]]):(W=32+64,St=0),at=1<<E-rt,st=1<<J,R=st;do st-=at,d[Tt+(_t>>rt)+st]=kt<<24|W<<16|St|0;while(st!==0);for(at=1<<E-1;_t&at;)at>>=1;if(at!==0?(_t&=at-1,_t+=at):_t=0,B++,--gt[E]===0){if(E===U)break;E=k[h+_[B]]}if(E>H&&(_t&zt)!==bt){for(rt===0&&(rt=H),Tt+=R,J=E-rt,ft=1<<J;J+rt<U&&(ft-=gt[J+rt],!(ft<=0));)J++,ft<<=1;if(K+=1<<J,f===LENS$1&&K>ENOUGH_LENS$1||f===DISTS$1&&K>ENOUGH_DISTS$1)return 1;bt=_t&zt,d[bt]=H<<24|J<<16|Tt-b|0}}return _t!==0&&(d[Tt+_t]=E-rt<<24|64<<16|0),S.bits=H,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,_,S,M,E,B,R,U,H,J,rt,ft=0,K,_t,at,st,bt,zt,Tt,mt;const Ct=new Uint8Array(4);let xt,gt;const nt=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,M=f.avail_out,b=f.next_in,m=f.input,S=f.avail_in,E=h.hold,B=h.bits,R=S,U=M,mt=Z_OK$1;t:for(;;)switch(h.mode){case HEAD:if(h.wrap===0){h.mode=TYPEDO;break}for(;B<16;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}if(h.wrap&2&&E===35615){h.check=0,Ct[0]=E&255,Ct[1]=E>>>8&255,h.check=crc32_1(h.check,Ct,2,0),E=0,B=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,B-=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,B=0;break;case FLAGS:for(;B<16;){if(S===0)break t;S--,E+=m[b++]<<B,B+=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&&(Ct[0]=E&255,Ct[1]=E>>>8&255,h.check=crc32_1(h.check,Ct,2,0)),E=0,B=0,h.mode=TIME;case TIME:for(;B<32;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}h.head&&(h.head.time=E),h.flags&512&&(Ct[0]=E&255,Ct[1]=E>>>8&255,Ct[2]=E>>>16&255,Ct[3]=E>>>24&255,h.check=crc32_1(h.check,Ct,4,0)),E=0,B=0,h.mode=OS;case OS:for(;B<16;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}h.head&&(h.head.xflags=E&255,h.head.os=E>>8),h.flags&512&&(Ct[0]=E&255,Ct[1]=E>>>8&255,h.check=crc32_1(h.check,Ct,2,0)),E=0,B=0,h.mode=EXLEN;case EXLEN:if(h.flags&1024){for(;B<16;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}h.length=E,h.head&&(h.head.extra_len=E),h.flags&512&&(Ct[0]=E&255,Ct[1]=E>>>8&255,h.check=crc32_1(h.check,Ct,2,0)),E=0,B=0}else h.head&&(h.head.extra=null);h.mode=EXTRA;case EXTRA:if(h.flags&1024&&(H=h.length,H>S&&(H=S),H&&(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+H),Tt)),h.flags&512&&(h.check=crc32_1(h.check,m,H,b)),S-=H,b+=H,h.length-=H),h.length))break t;h.length=0,h.mode=NAME;case NAME:if(h.flags&2048){if(S===0)break t;H=0;do Tt=m[b+H++],h.head&&Tt&&h.length<65536&&(h.head.name+=String.fromCharCode(Tt));while(Tt&&H<S);if(h.flags&512&&(h.check=crc32_1(h.check,m,H,b)),S-=H,b+=H,Tt)break t}else h.head&&(h.head.name=null);h.length=0,h.mode=COMMENT;case COMMENT:if(h.flags&4096){if(S===0)break t;H=0;do Tt=m[b+H++],h.head&&Tt&&h.length<65536&&(h.head.comment+=String.fromCharCode(Tt));while(Tt&&H<S);if(h.flags&512&&(h.check=crc32_1(h.check,m,H,b)),S-=H,b+=H,Tt)break t}else h.head&&(h.head.comment=null);h.mode=HCRC;case HCRC:if(h.flags&512){for(;B<16;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}if(E!==(h.check&65535)){f.msg="header crc mismatch",h.mode=BAD;break}E=0,B=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(;B<32;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}f.adler=h.check=zswap32(E),E=0,B=0,h.mode=DICT;case DICT:if(h.havedict===0)return f.next_out=_,f.avail_out=M,f.next_in=b,f.avail_in=S,h.hold=E,h.bits=B,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>>>=B&7,B-=B&7,h.mode=CHECK;break}for(;B<3;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}switch(h.last=E&1,E>>>=1,B-=1,E&3){case 0:h.mode=STORED;break;case 1:if(fixedtables(h),h.mode=LEN_,k===Z_TREES){E>>>=2,B-=2;break t}break;case 2:h.mode=TABLE;break;case 3:f.msg="invalid block type",h.mode=BAD}E>>>=2,B-=2;break;case STORED:for(E>>>=B&7,B-=B&7;B<32;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}if((E&65535)!==(E>>>16^65535)){f.msg="invalid stored block lengths",h.mode=BAD;break}if(h.length=E&65535,E=0,B=0,h.mode=COPY_,k===Z_TREES)break t;case COPY_:h.mode=COPY;case COPY:if(H=h.length,H){if(H>S&&(H=S),H>M&&(H=M),H===0)break t;d.set(m.subarray(b,b+H),_),S-=H,b+=H,M-=H,_+=H,h.length-=H;break}h.mode=TYPE;break;case TABLE:for(;B<14;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}if(h.nlen=(E&31)+257,E>>>=5,B-=5,h.ndist=(E&31)+1,E>>>=5,B-=5,h.ncode=(E&15)+4,E>>>=4,B-=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(;B<3;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}h.lens[nt[h.have++]]=E&7,E>>>=3,B-=3}for(;h.have<19;)h.lens[nt[h.have++]]=0;if(h.lencode=h.lendyn,h.lenbits=7,xt={bits:h.lenbits},mt=inftrees(CODES,h.lens,0,19,h.lencode,0,h.work,xt),h.lenbits=xt.bits,mt){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(;ft=h.lencode[E&(1<<h.lenbits)-1],K=ft>>>24,_t=ft>>>16&255,at=ft&65535,!(K<=B);){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}if(at<16)E>>>=K,B-=K,h.lens[h.have++]=at;else{if(at===16){for(gt=K+2;B<gt;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}if(E>>>=K,B-=K,h.have===0){f.msg="invalid bit length repeat",h.mode=BAD;break}Tt=h.lens[h.have-1],H=3+(E&3),E>>>=2,B-=2}else if(at===17){for(gt=K+3;B<gt;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}E>>>=K,B-=K,Tt=0,H=3+(E&7),E>>>=3,B-=3}else{for(gt=K+7;B<gt;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}E>>>=K,B-=K,Tt=0,H=11+(E&127),E>>>=7,B-=7}if(h.have+H>h.nlen+h.ndist){f.msg="invalid bit length repeat",h.mode=BAD;break}for(;H--;)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},mt=inftrees(LENS,h.lens,0,h.nlen,h.lencode,0,h.work,xt),h.lenbits=xt.bits,mt){f.msg="invalid literal/lengths set",h.mode=BAD;break}if(h.distbits=6,h.distcode=h.distdyn,xt={bits:h.distbits},mt=inftrees(DISTS,h.lens,h.nlen,h.ndist,h.distcode,0,h.work,xt),h.distbits=xt.bits,mt){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(S>=6&&M>=258){f.next_out=_,f.avail_out=M,f.next_in=b,f.avail_in=S,h.hold=E,h.bits=B,inffast(f,U),_=f.next_out,d=f.output,M=f.avail_out,b=f.next_in,m=f.input,S=f.avail_in,E=h.hold,B=h.bits,h.mode===TYPE&&(h.back=-1);break}for(h.back=0;ft=h.lencode[E&(1<<h.lenbits)-1],K=ft>>>24,_t=ft>>>16&255,at=ft&65535,!(K<=B);){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}if(_t&&(_t&240)===0){for(st=K,bt=_t,zt=at;ft=h.lencode[zt+((E&(1<<st+bt)-1)>>st)],K=ft>>>24,_t=ft>>>16&255,at=ft&65535,!(st+K<=B);){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}E>>>=st,B-=st,h.back+=st}if(E>>>=K,B-=K,h.back+=K,h.length=at,_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(gt=h.extra;B<gt;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}h.length+=E&(1<<h.extra)-1,E>>>=h.extra,B-=h.extra,h.back+=h.extra}h.was=h.length,h.mode=DIST;case DIST:for(;ft=h.distcode[E&(1<<h.distbits)-1],K=ft>>>24,_t=ft>>>16&255,at=ft&65535,!(K<=B);){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}if((_t&240)===0){for(st=K,bt=_t,zt=at;ft=h.distcode[zt+((E&(1<<st+bt)-1)>>st)],K=ft>>>24,_t=ft>>>16&255,at=ft&65535,!(st+K<=B);){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}E>>>=st,B-=st,h.back+=st}if(E>>>=K,B-=K,h.back+=K,_t&64){f.msg="invalid distance code",h.mode=BAD;break}h.offset=at,h.extra=_t&15,h.mode=DISTEXT;case DISTEXT:if(h.extra){for(gt=h.extra;B<gt;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}h.offset+=E&(1<<h.extra)-1,E>>>=h.extra,B-=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(M===0)break t;if(H=U-M,h.offset>H){if(H=h.offset-H,H>h.whave&&h.sane){f.msg="invalid distance too far back",h.mode=BAD;break}H>h.wnext?(H-=h.wnext,J=h.wsize-H):J=h.wnext-H,H>h.length&&(H=h.length),rt=h.window}else rt=d,J=_-h.offset,H=h.length;H>M&&(H=M),M-=H,h.length-=H;do d[_++]=rt[J++];while(--H);h.length===0&&(h.mode=LEN);break;case LIT:if(M===0)break t;d[_++]=h.length,M--,h.mode=LEN;break;case CHECK:if(h.wrap){for(;B<32;){if(S===0)break t;S--,E|=m[b++]<<B,B+=8}if(U-=M,f.total_out+=U,h.total+=U,U&&(f.adler=h.check=h.flags?crc32_1(h.check,d,U,_-U):adler32_1(h.check,d,U,_-U)),U=M,(h.flags?E:zswap32(E))!==h.check){f.msg="incorrect data check",h.mode=BAD;break}E=0,B=0}h.mode=LENGTH;case LENGTH:if(h.wrap&&h.flags){for(;B<32;){if(S===0)break t;S--,E+=m[b++]<<B,B+=8}if(E!==(h.total&4294967295)){f.msg="incorrect length check",h.mode=BAD;break}E=0,B=0}h.mode=DONE;case DONE:mt=Z_STREAM_END$1;break t;case BAD:mt=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=M,f.next_in=b,f.avail_in=S,h.hold=E,h.bits=B,(h.wsize||U!==f.avail_out&&h.mode<BAD&&(h.mode<CHECK||k!==Z_FINISH$1))&&updatewindow(f,f.output,f.next_out,U-f.avail_out),R-=f.avail_in,U-=f.avail_out,f.total_in+=R,f.total_out+=U,h.total+=U,h.wrap&&U&&(f.adler=h.check=h.flags?crc32_1(h.check,d,U,f.next_out-U):adler32_1(h.check,d,U,f.next_out-U)),f.data_type=h.bits+(h.last?64:0)+(h.mode===TYPE?128:0)+(h.mode===LEN_||h.mode===COPY_?256:0),(R===0&&U===0||k===Z_FINISH$1)&&mt===Z_OK$1&&(mt=Z_BUF_ERROR),mt},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,_,S;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(S=h.avail_out,h.next_out&&(h.avail_out===0||b===Z_STREAM_END))if(this.options.to==="string"){let M=strings.utf8border(h.output,h.next_out),E=h.next_out-M,B=strings.buf2string(h.output,M);h.next_out=E,h.avail_out=m-E,E&&h.output.set(h.output.subarray(M,M+E),0),this.onData(B)}else this.onData(h.output.length===h.next_out?h.output:h.output.subarray(0,h.next_out));if(!(b===Z_OK&&S===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 S=0;S<f.length;){if((h=f.charCodeAt(S++))>255||(m=f.charCodeAt(S++))>255||(d=f.charCodeAt(S++))>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(Ne,Qe,nn,Se){for(nn=nn||{},Se=Ne.length;Se--;nn[Ne[Se]]=Qe);return nn},b=[1,6],_=[1,7],S=[1,8],M=[1,9],E=[1,16],B=[1,11],R=[1,12],U=[1,13],H=[1,14],J=[1,15],rt=[1,27],ft=[1,33],K=[1,34],_t=[1,35],at=[1,36],st=[1,37],bt=[1,72],zt=[1,73],Tt=[1,74],mt=[1,75],Ct=[1,76],xt=[1,77],gt=[1,78],nt=[1,38],dt=[1,39],q=[1,40],kt=[1,41],W=[1,42],St=[1,43],Lt=[1,44],Wt=[1,45],ge=[1,46],Ve=[1,47],we=[1,48],he=[1,49],xe=[1,50],Le=[1,51],Me=[1,52],be=[1,53],Sn=[1,54],me=[1,55],Je=[1,56],Dt=[1,57],ue=[1,59],re=[1,60],At=[1,61],Ee=[1,62],Q=[1,63],ce=[1,64],ct=[1,65],Te=[1,66],pe=[1,67],Pe=[1,68],on=[1,69],Ze=[24,52],un=[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],Ie=[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],De=[1,94],ze=[1,95],Re=[1,96],_e=[1,97],oe=[15,24,52],vn=[7,8,9,10,18,22,25,26,27,28],We=[15,24,43,52],cn=[15,24,43,52,86,87,89,90],He=[15,43],En=[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],Qn={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(Ne,Qe,nn,Se,An,Bt,xr){var Gt=Bt.length-1;switch(An){case 4:Se.setDirection("TB");break;case 5:Se.setDirection("BT");break;case 6:Se.setDirection("RL");break;case 7:Se.setDirection("LR");break;case 11:console.log("open_directive: ",Bt[Gt]),Se.parseDirective("%%{","open_directive");break;case 12:break;case 13:Bt[Gt]=Bt[Gt].trim().replace(/'/g,'"'),console.log("arg_directive: ",Bt[Gt]),Se.parseDirective(Bt[Gt],"arg_directive");break;case 14:console.log("close_directive: ",Bt[Gt]),Se.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:Se.setC4Type(Bt[Gt-3]);break;case 26:Se.setTitle(Bt[Gt].substring(6)),this.$=Bt[Gt].substring(6);break;case 27:Se.setAccDescription(Bt[Gt].substring(15)),this.$=Bt[Gt].substring(15);break;case 28:this.$=Bt[Gt].trim(),Se.setTitle(this.$);break;case 29:case 30:this.$=Bt[Gt].trim(),Se.setAccDescription(this.$);break;case 35:case 36:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Bt[Gt].splice(2,0,"ENTERPRISE"),Se.addPersonOrSystemBoundary(...Bt[Gt]),this.$=Bt[Gt];break;case 37:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addPersonOrSystemBoundary(...Bt[Gt]),this.$=Bt[Gt];break;case 38:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Bt[Gt].splice(2,0,"CONTAINER"),Se.addContainerBoundary(...Bt[Gt]),this.$=Bt[Gt];break;case 39:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addDeploymentNode("node",...Bt[Gt]),this.$=Bt[Gt];break;case 40:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addDeploymentNode("nodeL",...Bt[Gt]),this.$=Bt[Gt];break;case 41:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addDeploymentNode("nodeR",...Bt[Gt]),this.$=Bt[Gt];break;case 42:Se.popBoundaryParseStack();break;case 46:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addPersonOrSystem("person",...Bt[Gt]),this.$=Bt[Gt];break;case 47:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addPersonOrSystem("external_person",...Bt[Gt]),this.$=Bt[Gt];break;case 48:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addPersonOrSystem("system",...Bt[Gt]),this.$=Bt[Gt];break;case 49:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addPersonOrSystem("system_db",...Bt[Gt]),this.$=Bt[Gt];break;case 50:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addPersonOrSystem("system_queue",...Bt[Gt]),this.$=Bt[Gt];break;case 51:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addPersonOrSystem("external_system",...Bt[Gt]),this.$=Bt[Gt];break;case 52:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addPersonOrSystem("external_system_db",...Bt[Gt]),this.$=Bt[Gt];break;case 53:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addPersonOrSystem("external_system_queue",...Bt[Gt]),this.$=Bt[Gt];break;case 54:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addContainer("container",...Bt[Gt]),this.$=Bt[Gt];break;case 55:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addContainer("container_db",...Bt[Gt]),this.$=Bt[Gt];break;case 56:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addContainer("container_queue",...Bt[Gt]),this.$=Bt[Gt];break;case 57:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addContainer("external_container",...Bt[Gt]),this.$=Bt[Gt];break;case 58:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addContainer("external_container_db",...Bt[Gt]),this.$=Bt[Gt];break;case 59:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addContainer("external_container_queue",...Bt[Gt]),this.$=Bt[Gt];break;case 60:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addComponent("component",...Bt[Gt]),this.$=Bt[Gt];break;case 61:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addComponent("component_db",...Bt[Gt]),this.$=Bt[Gt];break;case 62:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addComponent("component_queue",...Bt[Gt]),this.$=Bt[Gt];break;case 63:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addComponent("external_component",...Bt[Gt]),this.$=Bt[Gt];break;case 64:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addComponent("external_component_db",...Bt[Gt]),this.$=Bt[Gt];break;case 65:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addComponent("external_component_queue",...Bt[Gt]),this.$=Bt[Gt];break;case 67:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addRel("rel",...Bt[Gt]),this.$=Bt[Gt];break;case 68:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addRel("birel",...Bt[Gt]),this.$=Bt[Gt];break;case 69:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addRel("rel_u",...Bt[Gt]),this.$=Bt[Gt];break;case 70:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addRel("rel_d",...Bt[Gt]),this.$=Bt[Gt];break;case 71:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addRel("rel_l",...Bt[Gt]),this.$=Bt[Gt];break;case 72:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addRel("rel_r",...Bt[Gt]),this.$=Bt[Gt];break;case 73:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.addRel("rel_b",...Bt[Gt]),this.$=Bt[Gt];break;case 74:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Bt[Gt].splice(0,1),Se.addRel("rel",...Bt[Gt]),this.$=Bt[Gt];break;case 75:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.updateElStyle("update_el_style",...Bt[Gt]),this.$=Bt[Gt];break;case 76:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.updateRelStyle("update_rel_style",...Bt[Gt]),this.$=Bt[Gt];break;case 77:console.log(Bt[Gt-1],JSON.stringify(Bt[Gt])),Se.updateLayoutConfig("update_layout_config",...Bt[Gt]),this.$=Bt[Gt];break;case 78:console.log("PUSH ATTRIBUTE: ",Bt[Gt]),this.$=[Bt[Gt]];break;case 79:console.log("PUSH ATTRIBUTE: ",Bt[Gt-1]),Bt[Gt].unshift(Bt[Gt-1]),this.$=Bt[Gt];break;case 80:case 82:this.$=Bt[Gt].trim();break;case 81:console.log("kv: ",Bt[Gt-1],Bt[Gt]);let qn={};qn[Bt[Gt-1].trim()]=Bt[Gt].trim(),this.$=qn;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:b,8:_,9:S,10:M,11:5,12:10,18:E,22:B,25:R,26:U,27:H,28:J},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:b,8:_,9:S,10:M,11:5,12:10,18:E,22:B,25:R,26:U,27:H,28:J},{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:rt},d([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:ft,33:K,34:_t,36:at,38:st,39:58,40:70,42:71,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,53:32,54:nt,55:dt,56:q,57:kt,58:W,59:St,60:Lt,61:Wt,62:ge,63:Ve,64:we,65:he,66:xe,67:Le,68:Me,69:be,70:Sn,71:me,72:Je,73:Dt,74:ue,75:re,76:At,77:Ee,78:Q,79:ce,80:ct,81:Te,82:pe,83:Pe,84:on},{23:79,29:29,30:30,31:31,32:ft,33:K,34:_t,36:at,38:st,39:58,40:70,42:71,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,53:32,54:nt,55:dt,56:q,57:kt,58:W,59:St,60:Lt,61:Wt,62:ge,63:Ve,64:we,65:he,66:xe,67:Le,68:Me,69:be,70:Sn,71:me,72:Je,73:Dt,74:ue,75:re,76:At,77:Ee,78:Q,79:ce,80:ct,81:Te,82:pe,83:Pe,84:on},{23:80,29:29,30:30,31:31,32:ft,33:K,34:_t,36:at,38:st,39:58,40:70,42:71,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,53:32,54:nt,55:dt,56:q,57:kt,58:W,59:St,60:Lt,61:Wt,62:ge,63:Ve,64:we,65:he,66:xe,67:Le,68:Me,69:be,70:Sn,71:me,72:Je,73:Dt,74:ue,75:re,76:At,77:Ee,78:Q,79:ce,80:ct,81:Te,82:pe,83:Pe,84:on},{23:81,29:29,30:30,31:31,32:ft,33:K,34:_t,36:at,38:st,39:58,40:70,42:71,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,53:32,54:nt,55:dt,56:q,57:kt,58:W,59:St,60:Lt,61:Wt,62:ge,63:Ve,64:we,65:he,66:xe,67:Le,68:Me,69:be,70:Sn,71:me,72:Je,73:Dt,74:ue,75:re,76:At,77:Ee,78:Q,79:ce,80:ct,81:Te,82:pe,83:Pe,84:on},{23:82,29:29,30:30,31:31,32:ft,33:K,34:_t,36:at,38:st,39:58,40:70,42:71,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,53:32,54:nt,55:dt,56:q,57:kt,58:W,59:St,60:Lt,61:Wt,62:ge,63:Ve,64:we,65:he,66:xe,67:Le,68:Me,69:be,70:Sn,71:me,72:Je,73:Dt,74:ue,75:re,76:At,77:Ee,78:Q,79:ce,80:ct,81:Te,82:pe,83:Pe,84:on},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},d(Ze,[2,20],{53:32,39:58,40:70,42:71,30:87,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,54:nt,55:dt,56:q,57:kt,58:W,59:St,60:Lt,61:Wt,62:ge,63:Ve,64:we,65:he,66:xe,67:Le,68:Me,69:be,70:Sn,71:me,72:Je,73:Dt,74:ue,75:re,76:At,77:Ee,78:Q,79:ce,80:ct,81:Te,82:pe,83:Pe,84:on}),d(Ze,[2,21]),d(un,[2,23],{15:[1,88]}),d(Ze,[2,43],{15:[1,89]}),d(Ie,[2,26]),d(Ie,[2,27]),{35:[1,90]},{37:[1,91]},d(Ie,[2,30]),{45:92,85:93,86:De,87:ze,89:Re,90:_e},{45:98,85:93,86:De,87:ze,89:Re,90:_e},{45:99,85:93,86:De,87:ze,89:Re,90:_e},{45:100,85:93,86:De,87:ze,89:Re,90:_e},{45:101,85:93,86:De,87:ze,89:Re,90:_e},{45:102,85:93,86:De,87:ze,89:Re,90:_e},{45:103,85:93,86:De,87:ze,89:Re,90:_e},{45:104,85:93,86:De,87:ze,89:Re,90:_e},{45:105,85:93,86:De,87:ze,89:Re,90:_e},{45:106,85:93,86:De,87:ze,89:Re,90:_e},{45:107,85:93,86:De,87:ze,89:Re,90:_e},{45:108,85:93,86:De,87:ze,89:Re,90:_e},{45:109,85:93,86:De,87:ze,89:Re,90:_e},{45:110,85:93,86:De,87:ze,89:Re,90:_e},{45:111,85:93,86:De,87:ze,89:Re,90:_e},{45:112,85:93,86:De,87:ze,89:Re,90:_e},{45:113,85:93,86:De,87:ze,89:Re,90:_e},{45:114,85:93,86:De,87:ze,89:Re,90:_e},{45:115,85:93,86:De,87:ze,89:Re,90:_e},{45:116,85:93,86:De,87:ze,89:Re,90:_e},d(oe,[2,66]),{45:117,85:93,86:De,87:ze,89:Re,90:_e},{45:118,85:93,86:De,87:ze,89:Re,90:_e},{45:119,85:93,86:De,87:ze,89:Re,90:_e},{45:120,85:93,86:De,87:ze,89:Re,90:_e},{45:121,85:93,86:De,87:ze,89:Re,90:_e},{45:122,85:93,86:De,87:ze,89:Re,90:_e},{45:123,85:93,86:De,87:ze,89:Re,90:_e},{45:124,85:93,86:De,87:ze,89:Re,90:_e},{45:125,85:93,86:De,87:ze,89:Re,90:_e},{45:126,85:93,86:De,87:ze,89:Re,90:_e},{45:127,85:93,86:De,87:ze,89:Re,90:_e},{30:128,39:58,40:70,42:71,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,53:32,54:nt,55:dt,56:q,57:kt,58:W,59:St,60:Lt,61:Wt,62:ge,63:Ve,64:we,65:he,66:xe,67:Le,68:Me,69:be,70:Sn,71:me,72:Je,73:Dt,74:ue,75:re,76:At,77:Ee,78:Q,79:ce,80:ct,81:Te,82:pe,83:Pe,84:on},{15:[1,130],43:[1,129]},{45:131,85:93,86:De,87:ze,89:Re,90:_e},{45:132,85:93,86:De,87:ze,89:Re,90:_e},{45:133,85:93,86:De,87:ze,89:Re,90:_e},{45:134,85:93,86:De,87:ze,89:Re,90:_e},{45:135,85:93,86:De,87:ze,89:Re,90:_e},{45:136,85:93,86:De,87:ze,89:Re,90:_e},{45:137,85:93,86:De,87:ze,89:Re,90:_e},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},d(vn,[2,9]),{14:142,21:rt},{21:[2,13]},{1:[2,15]},d(Ze,[2,22]),d(un,[2,24],{31:31,29:143,32:ft,33:K,34:_t,36:at,38:st}),d(Ze,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:ft,33:K,34:_t,36:at,38:st,44:bt,46:zt,47:Tt,48:mt,49:Ct,50:xt,51:gt,54:nt,55:dt,56:q,57:kt,58:W,59:St,60:Lt,61:Wt,62:ge,63:Ve,64:we,65:he,66:xe,67:Le,68:Me,69:be,70:Sn,71:me,72:Je,73:Dt,74:ue,75:re,76:At,77:Ee,78:Q,79:ce,80:ct,81:Te,82:pe,83:Pe,84:on}),d(Ie,[2,28]),d(Ie,[2,29]),d(oe,[2,46]),d(We,[2,78],{85:93,45:145,86:De,87:ze,89:Re,90:_e}),d(cn,[2,80]),{88:[1,146]},d(cn,[2,82]),d(cn,[2,83]),d(oe,[2,47]),d(oe,[2,48]),d(oe,[2,49]),d(oe,[2,50]),d(oe,[2,51]),d(oe,[2,52]),d(oe,[2,53]),d(oe,[2,54]),d(oe,[2,55]),d(oe,[2,56]),d(oe,[2,57]),d(oe,[2,58]),d(oe,[2,59]),d(oe,[2,60]),d(oe,[2,61]),d(oe,[2,62]),d(oe,[2,63]),d(oe,[2,64]),d(oe,[2,65]),d(oe,[2,67]),d(oe,[2,68]),d(oe,[2,69]),d(oe,[2,70]),d(oe,[2,71]),d(oe,[2,72]),d(oe,[2,73]),d(oe,[2,74]),d(oe,[2,75]),d(oe,[2,76]),d(oe,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},d(He,[2,35]),d(He,[2,36]),d(He,[2,37]),d(He,[2,38]),d(He,[2,39]),d(He,[2,40]),d(He,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},d(un,[2,25]),d(Ze,[2,45]),d(We,[2,79]),d(cn,[2,81]),d(oe,[2,31]),d(oe,[2,42]),d(En,[2,32]),d(En,[2,33],{15:[1,152]}),d(vn,[2,10]),d(En,[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(Ne,Qe){if(!Qe.recoverable){var nn=new Error(Ne);throw nn.hash=Qe,nn}this.trace(Ne)},parse:function(Ne){var Qe=this,nn=[0],Se=[],An=[null],Bt=[],xr=this.table,Gt="",qn=0,zn=0,Gn=0,On=2,Vn=1,Pn=Bt.slice.call(arguments,1),Nn=Object.create(this.lexer),Un={yy:{}};for(var Yn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Yn)&&(Un.yy[Yn]=this.yy[Yn]);Nn.setInput(Ne,Un.yy),Un.yy.lexer=Nn,Un.yy.parser=this,Nn.yylloc===void 0&&(Nn.yylloc={});var jn=Nn.yylloc;Bt.push(jn);var ga=Nn.options&&Nn.options.ranges;function Lr(){var Zn;return typeof(Zn=Se.pop()||Nn.lex()||Vn)!="number"&&(Zn instanceof Array&&(Zn=(Se=Zn).pop()),Zn=Qe.symbols_[Zn]||Zn),Zn}typeof Un.yy.parseError=="function"?this.parseError=Un.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ar,Ln,si,Rn,kr,Ir,br,Zr,Rt,Nr={};;){if(si=nn[nn.length-1],this.defaultActions[si]?Rn=this.defaultActions[si]:(Ar==null&&(Ar=Lr()),Rn=xr[si]&&xr[si][Ar]),Rn===void 0||!Rn.length||!Rn[0]){var Mr="";for(Ir in Rt=[],xr[si])this.terminals_[Ir]&&Ir>On&&Rt.push("'"+this.terminals_[Ir]+"'");Mr=Nn.showPosition?"Parse error on line "+(qn+1)+`:
|
|
`+Nn.showPosition()+`
|
|
Expecting `+Rt.join(", ")+", got '"+(this.terminals_[Ar]||Ar)+"'":"Parse error on line "+(qn+1)+": Unexpected "+(Ar==Vn?"end of input":"'"+(this.terminals_[Ar]||Ar)+"'"),this.parseError(Mr,{text:Nn.match,token:this.terminals_[Ar]||Ar,line:Nn.yylineno,loc:jn,expected:Rt})}if(Rn[0]instanceof Array&&Rn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+si+", token: "+Ar);switch(Rn[0]){case 1:nn.push(Ar),An.push(Nn.yytext),Bt.push(Nn.yylloc),nn.push(Rn[1]),Ar=null,Ln?(Ar=Ln,Ln=null):(zn=Nn.yyleng,Gt=Nn.yytext,qn=Nn.yylineno,jn=Nn.yylloc,Gn>0);break;case 2:if(br=this.productions_[Rn[1]][1],Nr.$=An[An.length-br],Nr._$={first_line:Bt[Bt.length-(br||1)].first_line,last_line:Bt[Bt.length-1].last_line,first_column:Bt[Bt.length-(br||1)].first_column,last_column:Bt[Bt.length-1].last_column},ga&&(Nr._$.range=[Bt[Bt.length-(br||1)].range[0],Bt[Bt.length-1].range[1]]),(kr=this.performAction.apply(Nr,[Gt,zn,qn,Un.yy,Rn[1],An,Bt].concat(Pn)))!==void 0)return kr;br&&(nn=nn.slice(0,-1*br*2),An=An.slice(0,-1*br),Bt=Bt.slice(0,-1*br)),nn.push(this.productions_[Rn[1]][0]),An.push(Nr.$),Bt.push(Nr._$),Zr=xr[nn[nn.length-2]][nn[nn.length-1]],nn.push(Zr);break;case 3:return!0}}return!0}},In={EOF:1,parseError:function(Ne,Qe){if(!this.yy.parser)throw new Error(Ne);this.yy.parser.parseError(Ne,Qe)},setInput:function(Ne,Qe){return this.yy=Qe||this.yy||{},this._input=Ne,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 Ne=this._input[0];return this.yytext+=Ne,this.yyleng++,this.offset++,this.match+=Ne,this.matched+=Ne,Ne.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),Ne},unput:function(Ne){var Qe=Ne.length,nn=Ne.split(/(?:\r\n?|\n)/g);this._input=Ne+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qe),this.offset-=Qe;var Se=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),nn.length-1&&(this.yylineno-=nn.length-1);var An=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:nn?(nn.length===Se.length?this.yylloc.first_column:0)+Se[Se.length-nn.length].length-nn[0].length:this.yylloc.first_column-Qe},this.options.ranges&&(this.yylloc.range=[An[0],An[0]+this.yyleng-Qe]),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(Ne){this.unput(this.match.slice(Ne))},pastInput:function(){var Ne=this.matched.substr(0,this.matched.length-this.match.length);return(Ne.length>20?"...":"")+Ne.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ne=this.match;return Ne.length<20&&(Ne+=this._input.substr(0,20-Ne.length)),(Ne.substr(0,20)+(Ne.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ne=this.pastInput(),Qe=new Array(Ne.length+1).join("-");return Ne+this.upcomingInput()+`
|
|
`+Qe+"^"},test_match:function(Ne,Qe){var nn,Se,An;if(this.options.backtrack_lexer&&(An={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&&(An.yylloc.range=this.yylloc.range.slice(0))),(Se=Ne[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Se.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Se?Se[Se.length-1].length-Se[Se.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ne[0].length},this.yytext+=Ne[0],this.match+=Ne[0],this.matches=Ne,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(Ne[0].length),this.matched+=Ne[0],nn=this.performAction.call(this,this.yy,this,Qe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),nn)return nn;if(this._backtrack){for(var Bt in An)this[Bt]=An[Bt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ne,Qe,nn,Se;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var An=this._currentRules(),Bt=0;Bt<An.length;Bt++)if((nn=this._input.match(this.rules[An[Bt]]))&&(!Qe||nn[0].length>Qe[0].length)){if(Qe=nn,Se=Bt,this.options.backtrack_lexer){if((Ne=this.test_match(nn,An[Bt]))!==!1)return Ne;if(this._backtrack){Qe=!1;continue}return!1}if(!this.options.flex)break}return Qe?(Ne=this.test_match(Qe,An[Se]))!==!1&&Ne: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(Ne){this.conditionStack.push(Ne)},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(Ne){return(Ne=this.conditionStack.length-1-Math.abs(Ne||0))>=0?this.conditionStack[Ne]:"INITIAL"},pushState:function(Ne){this.begin(Ne)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Ne,Qe,nn,Se){switch(nn){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 Bn(){this.yy={}}return Qn.lexer=In,Bn.prototype=Qn,Qn.Parser=Bn,new Bn}();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(Dt,ue,re,At){for(re=re||{},At=Dt.length;At--;re[Dt[At]]=ue);return re},b=[1,3],_=[1,7],S=[1,8],M=[1,9],E=[1,10],B=[1,13],R=[1,12],U=[1,16,25],H=[1,20],J=[1,31],rt=[1,32],ft=[1,33],K=[1,35],_t=[1,38],at=[1,36],st=[1,37],bt=[1,39],zt=[1,40],Tt=[1,41],mt=[1,42],Ct=[1,45],xt=[1,46],gt=[1,47],nt=[1,48],dt=[16,25],q=[1,62],kt=[1,63],W=[1,64],St=[1,65],Lt=[1,66],Wt=[1,67],ge=[16,25,32,44,45,53,56,57,58,59,60,61,66,68],Ve=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,66,68,83,84,85,86],we=[5,8,9,10,11,16,19,23,25],he=[53,83,84,85,86],xe=[53,60,61,83,84,85,86],Le=[53,56,57,58,59,83,84,85,86],Me=[16,25,32],be=[1,99],Sn={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(Dt,ue,re,At,Ee,Q,ce){var ct=Q.length-1;switch(Ee){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(Q[ct],"type_directive");break;case 14:Q[ct]=Q[ct].trim().replace(/'/g,'"'),At.parseDirective(Q[ct],"arg_directive");break;case 15:At.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=Q[ct];break;case 22:this.$=Q[ct-1]+Q[ct];break;case 23:case 24:this.$=Q[ct-1]+"~"+Q[ct];break;case 25:At.addRelation(Q[ct]);break;case 26:Q[ct-1].title=At.cleanupLabel(Q[ct]),At.addRelation(Q[ct-1]);break;case 34:this.$=Q[ct].trim(),At.setAccTitle(this.$);break;case 35:case 36:this.$=Q[ct].trim(),At.setAccDescription(this.$);break;case 37:At.addClass(Q[ct]);break;case 38:At.addClass(Q[ct-2]),At.setCssClass(Q[ct-2],Q[ct]);break;case 39:At.addClass(Q[ct-3]),At.addMembers(Q[ct-3],Q[ct-1]);break;case 40:At.addClass(Q[ct-5]),At.setCssClass(Q[ct-5],Q[ct-3]),At.addMembers(Q[ct-5],Q[ct-1]);break;case 41:At.addAnnotation(Q[ct],Q[ct-2]);break;case 42:this.$=[Q[ct]];break;case 43:Q[ct].push(Q[ct-1]),this.$=Q[ct];break;case 44:case 46:case 47:break;case 45:At.addMember(Q[ct-1],At.cleanupLabel(Q[ct]));break;case 48:this.$={id1:Q[ct-2],id2:Q[ct],relation:Q[ct-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:Q[ct-3],id2:Q[ct],relation:Q[ct-1],relationTitle1:Q[ct-2],relationTitle2:"none"};break;case 50:this.$={id1:Q[ct-3],id2:Q[ct],relation:Q[ct-2],relationTitle1:"none",relationTitle2:Q[ct-1]};break;case 51:this.$={id1:Q[ct-4],id2:Q[ct],relation:Q[ct-2],relationTitle1:Q[ct-3],relationTitle2:Q[ct-1]};break;case 52:this.$={type1:Q[ct-2],type2:Q[ct],lineType:Q[ct-1]};break;case 53:this.$={type1:"none",type2:Q[ct],lineType:Q[ct-1]};break;case 54:this.$={type1:Q[ct-1],type2:"none",lineType:Q[ct]};break;case 55:this.$={type1:"none",type2:"none",lineType:Q[ct]};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.$=Q[ct-2],At.setClickEvent(Q[ct-1],Q[ct]);break;case 63:case 69:this.$=Q[ct-3],At.setClickEvent(Q[ct-2],Q[ct-1]),At.setTooltip(Q[ct-2],Q[ct]);break;case 64:case 72:this.$=Q[ct-2],At.setLink(Q[ct-1],Q[ct]);break;case 65:case 73:this.$=Q[ct-3],At.setLink(Q[ct-2],Q[ct-1],Q[ct]);break;case 66:case 74:this.$=Q[ct-3],At.setLink(Q[ct-2],Q[ct-1]),At.setTooltip(Q[ct-2],Q[ct]);break;case 67:case 75:this.$=Q[ct-4],At.setLink(Q[ct-3],Q[ct-2],Q[ct]),At.setTooltip(Q[ct-3],Q[ct-1]);break;case 70:this.$=Q[ct-3],At.setClickEvent(Q[ct-2],Q[ct-1],Q[ct]);break;case 71:this.$=Q[ct-4],At.setClickEvent(Q[ct-3],Q[ct-2],Q[ct-1]),At.setTooltip(Q[ct-3],Q[ct]);break;case 76:At.setCssClass(Q[ct-1],Q[ct])}},table:[{3:1,4:2,5:b,6:4,7:5,8:_,9:S,10:M,11:E,12:6,13:11,19:B,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:S,10:M,11:E,12:6,13:11,19:B,23:R},{1:[2,9]},d(U,[2,5]),d(U,[2,6]),d(U,[2,7]),d(U,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:H},d([17,22],[2,13]),{6:30,7:29,8:_,9:S,10:M,11:E,13:11,19:B,24:21,26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:J,40:rt,42:ft,43:K,48:_t,50:at,51:st,62:bt,63:zt,65:Tt,69:mt,83:Ct,84:xt,85:gt,86:nt},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},d(dt,[2,25],{32:[1,54]}),d(dt,[2,27]),d(dt,[2,28]),d(dt,[2,29]),d(dt,[2,30]),d(dt,[2,31]),d(dt,[2,32]),d(dt,[2,33]),{39:[1,55]},{41:[1,56]},d(dt,[2,36]),d(dt,[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:Wt}),{27:68,28:43,29:44,83:Ct,84:xt,85:gt,86:nt},d(dt,[2,46]),d(dt,[2,47]),{28:69,83:Ct,84:xt,85:gt},{27:70,28:43,29:44,83:Ct,84:xt,85:gt,86:nt},{27:71,28:43,29:44,83:Ct,84:xt,85:gt,86:nt},{27:72,28:43,29:44,83:Ct,84:xt,85:gt,86:nt},{53:[1,73]},d(ge,[2,20],{28:43,29:44,27:74,30:[1,75],83:Ct,84:xt,85:gt,86:nt}),d(ge,[2,21],{30:[1,76]}),d(Ve,[2,90]),d(Ve,[2,91]),d(Ve,[2,92]),d([16,25,30,32,44,45,53,56,57,58,59,60,61,66,68],[2,93]),d(we,[2,10]),{15:77,22:H},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:_,9:S,10:M,11:E,13:11,19:B,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:J,40:rt,42:ft,43:K,48:_t,50:at,51:st,62:bt,63:zt,65:Tt,69:mt,83:Ct,84:xt,85:gt,86:nt},d(dt,[2,26]),d(dt,[2,34]),d(dt,[2,35]),{27:79,28:43,29:44,53:[1,80],83:Ct,84:xt,85:gt,86:nt},{52:81,54:60,55:61,56:q,57:kt,58:W,59:St,60:Lt,61:Wt},d(dt,[2,45]),{55:82,60:Lt,61:Wt},d(he,[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(Le,[2,60]),d(Le,[2,61]),d(dt,[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:Ct,84:xt,85:gt},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:Ct,84:xt,85:gt,86:nt},{27:94,28:43,29:44,53:[1,95],83:Ct,84:xt,85:gt,86:nt},d(he,[2,54],{54:96,56:q,57:kt,58:W,59:St}),d(he,[2,53]),{28:97,83:Ct,84:xt,85:gt},{46:98,50:be},{27:100,28:43,29:44,83:Ct,84:xt,85:gt,86:nt},d(dt,[2,62],{53:[1,101]}),d(dt,[2,64],{53:[1,103],64:[1,102]}),d(dt,[2,68],{53:[1,104],67:[1,105]}),d(dt,[2,72],{53:[1,107],64:[1,106]}),d(dt,[2,76]),d(we,[2,11]),d(Me,[2,50]),d(Me,[2,49]),{27:108,28:43,29:44,83:Ct,84:xt,85:gt,86:nt},d(he,[2,52]),d(dt,[2,38],{45:[1,109]}),{47:[1,110]},{46:111,47:[2,42],50:be},d(dt,[2,41]),d(dt,[2,63]),d(dt,[2,65]),d(dt,[2,66],{64:[1,112]}),d(dt,[2,69]),d(dt,[2,70],{53:[1,113]}),d(dt,[2,73]),d(dt,[2,74],{64:[1,114]}),d(Me,[2,51]),{46:115,50:be},d(dt,[2,39]),{47:[2,43]},d(dt,[2,67]),d(dt,[2,71]),d(dt,[2,75]),{47:[1,116]},d(dt,[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(Dt,ue){if(!ue.recoverable){var re=new Error(Dt);throw re.hash=ue,re}this.trace(Dt)},parse:function(Dt){var ue=this,re=[0],At=[],Ee=[null],Q=[],ce=this.table,ct="",Te=0,pe=0,Pe=0,on=2,Ze=1,un=Q.slice.call(arguments,1),Ie=Object.create(this.lexer),De={yy:{}};for(var ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ze)&&(De.yy[ze]=this.yy[ze]);Ie.setInput(Dt,De.yy),De.yy.lexer=Ie,De.yy.parser=this,Ie.yylloc===void 0&&(Ie.yylloc={});var Re=Ie.yylloc;Q.push(Re);var _e=Ie.options&&Ie.options.ranges;function oe(){var Se;return typeof(Se=At.pop()||Ie.lex()||Ze)!="number"&&(Se instanceof Array&&(Se=(At=Se).pop()),Se=ue.symbols_[Se]||Se),Se}typeof De.yy.parseError=="function"?this.parseError=De.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var vn,We,cn,He,En,Qn,In,Bn,Ne,Qe={};;){if(cn=re[re.length-1],this.defaultActions[cn]?He=this.defaultActions[cn]:(vn==null&&(vn=oe()),He=ce[cn]&&ce[cn][vn]),He===void 0||!He.length||!He[0]){var nn="";for(Qn in Ne=[],ce[cn])this.terminals_[Qn]&&Qn>on&&Ne.push("'"+this.terminals_[Qn]+"'");nn=Ie.showPosition?"Parse error on line "+(Te+1)+`:
|
|
`+Ie.showPosition()+`
|
|
Expecting `+Ne.join(", ")+", got '"+(this.terminals_[vn]||vn)+"'":"Parse error on line "+(Te+1)+": Unexpected "+(vn==Ze?"end of input":"'"+(this.terminals_[vn]||vn)+"'"),this.parseError(nn,{text:Ie.match,token:this.terminals_[vn]||vn,line:Ie.yylineno,loc:Re,expected:Ne})}if(He[0]instanceof Array&&He.length>1)throw new Error("Parse Error: multiple actions possible at state: "+cn+", token: "+vn);switch(He[0]){case 1:re.push(vn),Ee.push(Ie.yytext),Q.push(Ie.yylloc),re.push(He[1]),vn=null,We?(vn=We,We=null):(pe=Ie.yyleng,ct=Ie.yytext,Te=Ie.yylineno,Re=Ie.yylloc,Pe>0);break;case 2:if(In=this.productions_[He[1]][1],Qe.$=Ee[Ee.length-In],Qe._$={first_line:Q[Q.length-(In||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(In||1)].first_column,last_column:Q[Q.length-1].last_column},_e&&(Qe._$.range=[Q[Q.length-(In||1)].range[0],Q[Q.length-1].range[1]]),(En=this.performAction.apply(Qe,[ct,pe,Te,De.yy,He[1],Ee,Q].concat(un)))!==void 0)return En;In&&(re=re.slice(0,-1*In*2),Ee=Ee.slice(0,-1*In),Q=Q.slice(0,-1*In)),re.push(this.productions_[He[1]][0]),Ee.push(Qe.$),Q.push(Qe._$),Bn=ce[re[re.length-2]][re[re.length-1]],re.push(Bn);break;case 3:return!0}}return!0}},me={EOF:1,parseError:function(Dt,ue){if(!this.yy.parser)throw new Error(Dt);this.yy.parser.parseError(Dt,ue)},setInput:function(Dt,ue){return this.yy=ue||this.yy||{},this._input=Dt,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 Dt=this._input[0];return this.yytext+=Dt,this.yyleng++,this.offset++,this.match+=Dt,this.matched+=Dt,Dt.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),Dt},unput:function(Dt){var ue=Dt.length,re=Dt.split(/(?:\r\n?|\n)/g);this._input=Dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ue),this.offset-=ue;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),re.length-1&&(this.yylineno-=re.length-1);var Ee=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:re?(re.length===At.length?this.yylloc.first_column:0)+At[At.length-re.length].length-re[0].length:this.yylloc.first_column-ue},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-ue]),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(Dt){this.unput(this.match.slice(Dt))},pastInput:function(){var Dt=this.matched.substr(0,this.matched.length-this.match.length);return(Dt.length>20?"...":"")+Dt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Dt=this.match;return Dt.length<20&&(Dt+=this._input.substr(0,20-Dt.length)),(Dt.substr(0,20)+(Dt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Dt=this.pastInput(),ue=new Array(Dt.length+1).join("-");return Dt+this.upcomingInput()+`
|
|
`+ue+"^"},test_match:function(Dt,ue){var re,At,Ee;if(this.options.backtrack_lexer&&(Ee={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&&(Ee.yylloc.range=this.yylloc.range.slice(0))),(At=Dt[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+Dt[0].length},this.yytext+=Dt[0],this.match+=Dt[0],this.matches=Dt,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(Dt[0].length),this.matched+=Dt[0],re=this.performAction.call(this,this.yy,this,ue,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),re)return re;if(this._backtrack){for(var Q in Ee)this[Q]=Ee[Q];return!1}return!1},next:function(){if(this.done)return this.EOF;var Dt,ue,re,At;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),Q=0;Q<Ee.length;Q++)if((re=this._input.match(this.rules[Ee[Q]]))&&(!ue||re[0].length>ue[0].length)){if(ue=re,At=Q,this.options.backtrack_lexer){if((Dt=this.test_match(re,Ee[Q]))!==!1)return Dt;if(this._backtrack){ue=!1;continue}return!1}if(!this.options.flex)break}return ue?(Dt=this.test_match(ue,Ee[At]))!==!1&&Dt: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(Dt){this.conditionStack.push(Dt)},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(Dt){return(Dt=this.conditionStack.length-1-Math.abs(Dt||0))>=0?this.conditionStack[Dt]:"INITIAL"},pushState:function(Dt){this.begin(Dt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Dt,ue,re,At){switch(re){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 Je(){this.yy={}}return Sn.lexer=me,Je.prototype=Sn,Sn.Parser=Je,new Je}();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(nt,dt,q,kt){for(q=q||{},kt=nt.length;kt--;q[nt[kt]]=dt);return q},b=[1,2],_=[1,5],S=[6,9,11,23,25,27,29,30,49],M=[1,17],E=[1,18],B=[1,19],R=[1,20],U=[1,21],H=[1,24],J=[1,29],rt=[1,30],ft=[1,31],K=[1,32],_t=[6,9,11,15,20,23,25,27,29,30,42,43,44,45,49],at=[1,45],st=[30,46,47],bt=[4,6,9,11,23,25,27,29,30,49],zt=[42,43,44,45],Tt=[22,37],mt=[1,64],Ct={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(nt,dt,q,kt,W,St,Lt){var Wt=St.length-1;switch(W){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:St[Wt-1].push(St[Wt]),this.$=St[Wt-1];break;case 5:case 6:case 20:case 28:case 29:case 30:case 40:this.$=St[Wt];break;case 12:kt.addEntity(St[Wt-4]),kt.addEntity(St[Wt-2]),kt.addRelationship(St[Wt-4],St[Wt],St[Wt-2],St[Wt-3]);break;case 13:kt.addEntity(St[Wt-3]),kt.addAttributes(St[Wt-3],St[Wt-1]);break;case 14:kt.addEntity(St[Wt-2]);break;case 15:kt.addEntity(St[Wt]);break;case 16:case 17:this.$=St[Wt].trim(),kt.setAccTitle(this.$);break;case 18:case 19:this.$=St[Wt].trim(),kt.setAccDescription(this.$);break;case 21:this.$=St[Wt-2]+St[Wt-1]+St[Wt];break;case 22:this.$=[St[Wt]];break;case 23:St[Wt].push(St[Wt-1]),this.$=St[Wt];break;case 24:this.$={attributeType:St[Wt-1],attributeName:St[Wt]};break;case 25:this.$={attributeType:St[Wt-2],attributeName:St[Wt-1],attributeKeyType:St[Wt]};break;case 26:this.$={attributeType:St[Wt-2],attributeName:St[Wt-1],attributeComment:St[Wt]};break;case 27:this.$={attributeType:St[Wt-3],attributeName:St[Wt-2],attributeKeyType:St[Wt-1],attributeComment:St[Wt]};break;case 31:case 39:this.$=St[Wt].replace(/"/g,"");break;case 32:this.$={cardA:St[Wt],relType:St[Wt-1],cardB:St[Wt-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[Wt],"type_directive");break;case 43:St[Wt]=St[Wt].trim().replace(/'/g,'"'),kt.parseDirective(St[Wt],"arg_directive");break;case 44:kt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:b,7:3,12:4,49:_},{1:[3]},d(S,[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:M,25:E,27:B,29:R,30:U,49:_},{1:[2,2]},{14:22,15:[1,23],52:H},d([15,52],[2,42]),d(S,[2,8],{1:[2,1]}),d(S,[2,4]),{7:15,10:25,12:4,17:16,23:M,25:E,27:B,29:R,30:U,49:_},d(S,[2,6]),d(S,[2,7]),d(S,[2,11]),d(S,[2,15],{18:26,40:28,20:[1,27],42:J,43:rt,44:ft,45:K}),{24:[1,33]},{26:[1,34]},{28:[1,35]},d(S,[2,19]),d(_t,[2,20],{31:[1,36]}),{11:[1,37]},{16:38,51:[1,39]},{11:[2,44]},d(S,[2,5]),{17:40,30:U},{21:41,22:[1,42],32:43,33:44,37:at},{41:46,46:[1,47],47:[1,48]},d(st,[2,33]),d(st,[2,34]),d(st,[2,35]),d(st,[2,36]),d(S,[2,16]),d(S,[2,17]),d(S,[2,18]),{17:49,30:U},d(bt,[2,9]),{14:50,52:H},{52:[2,43]},{15:[1,51]},{22:[1,52]},d(S,[2,14]),{21:53,22:[2,22],32:43,33:44,37:at},{34:54,37:[1,55]},{37:[2,28]},{40:56,42:J,43:rt,44:ft,45:K},d(zt,[2,37]),d(zt,[2,38]),d(_t,[2,21]),{11:[1,57]},{19:58,30:[1,60],48:[1,59]},d(S,[2,13]),{22:[2,23]},d(Tt,[2,24],{35:61,36:62,38:[1,63],39:mt}),d([22,37,38,39],[2,29]),{30:[2,32]},d(bt,[2,10]),d(S,[2,12]),d(S,[2,39]),d(S,[2,40]),d(Tt,[2,25],{36:65,39:mt}),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(nt,dt){if(!dt.recoverable){var q=new Error(nt);throw q.hash=dt,q}this.trace(nt)},parse:function(nt){var dt=this,q=[0],kt=[],W=[null],St=[],Lt=this.table,Wt="",ge=0,Ve=0,we=0,he=2,xe=1,Le=St.slice.call(arguments,1),Me=Object.create(this.lexer),be={yy:{}};for(var Sn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Sn)&&(be.yy[Sn]=this.yy[Sn]);Me.setInput(nt,be.yy),be.yy.lexer=Me,be.yy.parser=this,Me.yylloc===void 0&&(Me.yylloc={});var me=Me.yylloc;St.push(me);var Je=Me.options&&Me.options.ranges;function Dt(){var Ze;return typeof(Ze=kt.pop()||Me.lex()||xe)!="number"&&(Ze instanceof Array&&(Ze=(kt=Ze).pop()),Ze=dt.symbols_[Ze]||Ze),Ze}typeof be.yy.parseError=="function"?this.parseError=be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ue,re,At,Ee,Q,ce,ct,Te,pe,Pe={};;){if(At=q[q.length-1],this.defaultActions[At]?Ee=this.defaultActions[At]:(ue==null&&(ue=Dt()),Ee=Lt[At]&&Lt[At][ue]),Ee===void 0||!Ee.length||!Ee[0]){var on="";for(ce in pe=[],Lt[At])this.terminals_[ce]&&ce>he&&pe.push("'"+this.terminals_[ce]+"'");on=Me.showPosition?"Parse error on line "+(ge+1)+`:
|
|
`+Me.showPosition()+`
|
|
Expecting `+pe.join(", ")+", got '"+(this.terminals_[ue]||ue)+"'":"Parse error on line "+(ge+1)+": Unexpected "+(ue==xe?"end of input":"'"+(this.terminals_[ue]||ue)+"'"),this.parseError(on,{text:Me.match,token:this.terminals_[ue]||ue,line:Me.yylineno,loc:me,expected:pe})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+ue);switch(Ee[0]){case 1:q.push(ue),W.push(Me.yytext),St.push(Me.yylloc),q.push(Ee[1]),ue=null,re?(ue=re,re=null):(Ve=Me.yyleng,Wt=Me.yytext,ge=Me.yylineno,me=Me.yylloc,we>0);break;case 2:if(ct=this.productions_[Ee[1]][1],Pe.$=W[W.length-ct],Pe._$={first_line:St[St.length-(ct||1)].first_line,last_line:St[St.length-1].last_line,first_column:St[St.length-(ct||1)].first_column,last_column:St[St.length-1].last_column},Je&&(Pe._$.range=[St[St.length-(ct||1)].range[0],St[St.length-1].range[1]]),(Q=this.performAction.apply(Pe,[Wt,Ve,ge,be.yy,Ee[1],W,St].concat(Le)))!==void 0)return Q;ct&&(q=q.slice(0,-1*ct*2),W=W.slice(0,-1*ct),St=St.slice(0,-1*ct)),q.push(this.productions_[Ee[1]][0]),W.push(Pe.$),St.push(Pe._$),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(nt,dt){if(!this.yy.parser)throw new Error(nt);this.yy.parser.parseError(nt,dt)},setInput:function(nt,dt){return this.yy=dt||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 dt=nt.length,q=nt.split(/(?:\r\n?|\n)/g);this._input=nt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-dt),this.offset-=dt;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-dt},this.options.ranges&&(this.yylloc.range=[W[0],W[0]+this.yyleng-dt]),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(),dt=new Array(nt.length+1).join("-");return nt+this.upcomingInput()+`
|
|
`+dt+"^"},test_match:function(nt,dt){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=nt[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+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],q=this.performAction.call(this,this.yy,this,dt,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 nt,dt,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]]))&&(!dt||q[0].length>dt[0].length)){if(dt=q,kt=St,this.options.backtrack_lexer){if((nt=this.test_match(q,W[St]))!==!1)return nt;if(this._backtrack){dt=!1;continue}return!1}if(!this.options.flex)break}return dt?(nt=this.test_match(dt,W[kt]))!==!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,dt,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 dt.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 gt(){this.yy={}}return Ct.lexer=xt,gt.prototype=Ct,Ct.Parser=gt,new gt}();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(fn,mn,Kn,rn){for(Kn=Kn||{},rn=fn.length;rn--;Kn[fn[rn]]=mn);return Kn},b=[1,9],_=[1,7],S=[1,6],M=[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],B=[2,10],R=[1,20],U=[1,21],H=[1,22],J=[1,23],rt=[1,30],ft=[1,32],K=[1,33],_t=[1,34],at=[1,62],st=[1,48],bt=[1,52],zt=[1,36],Tt=[1,37],mt=[1,38],Ct=[1,39],xt=[1,40],gt=[1,56],nt=[1,63],dt=[1,51],q=[1,53],kt=[1,55],W=[1,59],St=[1,60],Lt=[1,41],Wt=[1,42],ge=[1,43],Ve=[1,44],we=[1,61],he=[1,50],xe=[1,54],Le=[1,57],Me=[1,58],be=[1,49],Sn=[1,66],me=[1,71],Je=[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],Dt=[1,75],ue=[1,74],re=[1,76],At=[20,21,23,81,82],Ee=[1,99],Q=[1,104],ce=[1,107],ct=[1,108],Te=[1,101],pe=[1,106],Pe=[1,109],on=[1,102],Ze=[1,114],un=[1,113],Ie=[1,103],De=[1,105],ze=[1,110],Re=[1,111],_e=[1,112],oe=[1,115],vn=[20,21,22,23,81,82],We=[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],He=[20,21,23],En=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],Qn=[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],In=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],Bn=[1,149],Ne=[1,157],Qe=[1,158],nn=[1,159],Se=[1,160],An=[1,144],Bt=[1,145],xr=[1,141],Gt=[1,152],qn=[1,153],zn=[1,154],Gn=[1,155],On=[1,156],Vn=[1,161],Pn=[1,162],Nn=[1,147],Un=[1,150],Yn=[1,146],jn=[1,143],ga=[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],Lr=[1,165],Ar=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Ln=[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],si=[12,21,22,24],Rn=[22,106],kr=[1,250],Ir=[1,245],br=[1,246],Zr=[1,254],Rt=[1,251],Nr=[1,248],Mr=[1,247],Zn=[1,249],Jr=[1,252],$r=[1,253],Dr=[1,255],Qr=[1,273],Na=[20,21,23,106],hr=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],Si={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(fn,mn,Kn,rn,lr,Xt,Pr){var Qt=Xt.length-1;switch(lr){case 5:rn.parseDirective("%%{","open_directive");break;case 6:rn.parseDirective(Xt[Qt],"type_directive");break;case 7:Xt[Qt]=Xt[Qt].trim().replace(/'/g,'"'),rn.parseDirective(Xt[Qt],"arg_directive");break;case 8:rn.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:Xt[Qt]!==[]&&Xt[Qt-1].push(Xt[Qt]),this.$=Xt[Qt-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=Xt[Qt];break;case 19:rn.setDirection("TB"),this.$="TB";break;case 20:rn.setDirection(Xt[Qt-1]),this.$=Xt[Qt-1];break;case 35:this.$=Xt[Qt-1].nodes;break;case 41:this.$=rn.addSubGraph(Xt[Qt-6],Xt[Qt-1],Xt[Qt-4]);break;case 42:this.$=rn.addSubGraph(Xt[Qt-3],Xt[Qt-1],Xt[Qt-3]);break;case 43:this.$=rn.addSubGraph(void 0,Xt[Qt-1],void 0);break;case 45:this.$=Xt[Qt].trim(),rn.setAccTitle(this.$);break;case 46:case 47:this.$=Xt[Qt].trim(),rn.setAccDescription(this.$);break;case 51:rn.addLink(Xt[Qt-2].stmt,Xt[Qt],Xt[Qt-1]),this.$={stmt:Xt[Qt],nodes:Xt[Qt].concat(Xt[Qt-2].nodes)};break;case 52:rn.addLink(Xt[Qt-3].stmt,Xt[Qt-1],Xt[Qt-2]),this.$={stmt:Xt[Qt-1],nodes:Xt[Qt-1].concat(Xt[Qt-3].nodes)};break;case 53:this.$={stmt:Xt[Qt-1],nodes:Xt[Qt-1]};break;case 54:this.$={stmt:Xt[Qt],nodes:Xt[Qt]};break;case 55:case 123:case 125:this.$=[Xt[Qt]];break;case 56:this.$=Xt[Qt-4].concat(Xt[Qt]);break;case 57:this.$=[Xt[Qt-2]],rn.setClass(Xt[Qt-2],Xt[Qt]);break;case 58:this.$=Xt[Qt-3],rn.addVertex(Xt[Qt-3],Xt[Qt-1],"square");break;case 59:this.$=Xt[Qt-3],rn.addVertex(Xt[Qt-3],Xt[Qt-1],"doublecircle");break;case 60:this.$=Xt[Qt-5],rn.addVertex(Xt[Qt-5],Xt[Qt-2],"circle");break;case 61:this.$=Xt[Qt-3],rn.addVertex(Xt[Qt-3],Xt[Qt-1],"ellipse");break;case 62:this.$=Xt[Qt-3],rn.addVertex(Xt[Qt-3],Xt[Qt-1],"stadium");break;case 63:this.$=Xt[Qt-3],rn.addVertex(Xt[Qt-3],Xt[Qt-1],"subroutine");break;case 64:this.$=Xt[Qt-7],rn.addVertex(Xt[Qt-7],Xt[Qt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Xt[Qt-5],Xt[Qt-3]]]));break;case 65:this.$=Xt[Qt-3],rn.addVertex(Xt[Qt-3],Xt[Qt-1],"cylinder");break;case 66:this.$=Xt[Qt-3],rn.addVertex(Xt[Qt-3],Xt[Qt-1],"round");break;case 67:this.$=Xt[Qt-3],rn.addVertex(Xt[Qt-3],Xt[Qt-1],"diamond");break;case 68:this.$=Xt[Qt-5],rn.addVertex(Xt[Qt-5],Xt[Qt-2],"hexagon");break;case 69:this.$=Xt[Qt-3],rn.addVertex(Xt[Qt-3],Xt[Qt-1],"odd");break;case 70:this.$=Xt[Qt-3],rn.addVertex(Xt[Qt-3],Xt[Qt-1],"trapezoid");break;case 71:this.$=Xt[Qt-3],rn.addVertex(Xt[Qt-3],Xt[Qt-1],"inv_trapezoid");break;case 72:this.$=Xt[Qt-3],rn.addVertex(Xt[Qt-3],Xt[Qt-1],"lean_right");break;case 73:this.$=Xt[Qt-3],rn.addVertex(Xt[Qt-3],Xt[Qt-1],"lean_left");break;case 74:this.$=Xt[Qt],rn.addVertex(Xt[Qt]);break;case 75:Xt[Qt-1].text=Xt[Qt],this.$=Xt[Qt-1];break;case 76:case 77:Xt[Qt-2].text=Xt[Qt-1],this.$=Xt[Qt-2];break;case 79:var wr=rn.destructLink(Xt[Qt],Xt[Qt-2]);this.$={type:wr.type,stroke:wr.stroke,length:wr.length,text:Xt[Qt-1]};break;case 80:wr=rn.destructLink(Xt[Qt]),this.$={type:wr.type,stroke:wr.stroke,length:wr.length};break;case 81:this.$=Xt[Qt-1];break;case 83:case 97:case 153:case 151:this.$=Xt[Qt-1]+""+Xt[Qt];break;case 98:case 99:this.$=Xt[Qt-4],rn.addClass(Xt[Qt-2],Xt[Qt]);break;case 100:this.$=Xt[Qt-4],rn.setClass(Xt[Qt-2],Xt[Qt]);break;case 101:case 109:this.$=Xt[Qt-1],rn.setClickEvent(Xt[Qt-1],Xt[Qt]);break;case 102:case 110:this.$=Xt[Qt-3],rn.setClickEvent(Xt[Qt-3],Xt[Qt-2]),rn.setTooltip(Xt[Qt-3],Xt[Qt]);break;case 103:this.$=Xt[Qt-2],rn.setClickEvent(Xt[Qt-2],Xt[Qt-1],Xt[Qt]);break;case 104:this.$=Xt[Qt-4],rn.setClickEvent(Xt[Qt-4],Xt[Qt-3],Xt[Qt-2]),rn.setTooltip(Xt[Qt-4],Xt[Qt]);break;case 105:case 111:this.$=Xt[Qt-1],rn.setLink(Xt[Qt-1],Xt[Qt]);break;case 106:case 112:this.$=Xt[Qt-3],rn.setLink(Xt[Qt-3],Xt[Qt-2]),rn.setTooltip(Xt[Qt-3],Xt[Qt]);break;case 107:case 113:this.$=Xt[Qt-3],rn.setLink(Xt[Qt-3],Xt[Qt-2],Xt[Qt]);break;case 108:case 114:this.$=Xt[Qt-5],rn.setLink(Xt[Qt-5],Xt[Qt-4],Xt[Qt]),rn.setTooltip(Xt[Qt-5],Xt[Qt-2]);break;case 115:this.$=Xt[Qt-4],rn.addVertex(Xt[Qt-2],void 0,void 0,Xt[Qt]);break;case 116:case 118:this.$=Xt[Qt-4],rn.updateLink(Xt[Qt-2],Xt[Qt]);break;case 117:this.$=Xt[Qt-4],rn.updateLink([Xt[Qt-2]],Xt[Qt]);break;case 119:this.$=Xt[Qt-8],rn.updateLinkInterpolate([Xt[Qt-6]],Xt[Qt-2]),rn.updateLink([Xt[Qt-6]],Xt[Qt]);break;case 120:this.$=Xt[Qt-8],rn.updateLinkInterpolate(Xt[Qt-6],Xt[Qt-2]),rn.updateLink(Xt[Qt-6],Xt[Qt]);break;case 121:this.$=Xt[Qt-6],rn.updateLinkInterpolate([Xt[Qt-4]],Xt[Qt]);break;case 122:this.$=Xt[Qt-6],rn.updateLinkInterpolate(Xt[Qt-4],Xt[Qt]);break;case 124:case 126:Xt[Qt-2].push(Xt[Qt]),this.$=Xt[Qt-2];break;case 128:this.$=Xt[Qt-1]+Xt[Qt];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:S,24:M},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:b,16:4,21:_,22:S,24:M},d(E,B,{17:11}),{7:12,13:[1,13]},{16:14,21:_,22:S,24:M},{16:15,21:_,22:S,24:M},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:R,21:U,22:H,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,43:31,44:ft,46:K,48:_t,50:35,51:45,52:at,54:46,66:st,67:bt,86:zt,87:Tt,88:mt,89:Ct,90:xt,91:gt,95:nt,105:dt,106:q,109:kt,111:W,112:St,116:47,118:Lt,119:Wt,120:ge,121:Ve,122:we,123:he,124:xe,125:Le,126:Me,127:be},{8:64,10:[1,65],15:Sn},d([10,15],[2,6]),d(E,[2,17]),d(E,[2,18]),d(E,[2,19]),{20:[1,68],21:[1,69],22:me,27:67,30:70},d(Je,[2,11]),d(Je,[2,12]),d(Je,[2,13]),d(Je,[2,14]),d(Je,[2,15]),d(Je,[2,16]),{9:72,20:Dt,21:ue,23:re,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:Dt,21:ue,23:re},{9:81,20:Dt,21:ue,23:re},{9:82,20:Dt,21:ue,23:re},{9:83,20:Dt,21:ue,23:re},{9:84,20:Dt,21:ue,23:re},{9:86,20:Dt,21:ue,22:[1,85],23:re},d(Je,[2,44]),{45:[1,87]},{47:[1,88]},d(Je,[2,47]),d(At,[2,54],{30:89,22:me}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:Ee,52:Q,66:ce,67:ct,84:[1,97],91:Te,97:96,98:[1,94],100:[1,95],105:pe,106:Pe,109:on,111:Ze,112:un,115:100,117:98,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},d(Je,[2,158]),d(Je,[2,159]),d(Je,[2,160]),d(Je,[2,161]),d(vn,[2,55],{53:[1,116]}),d(We,[2,74],{116:129,40:[1,117],52:at,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:st,67:bt,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:gt,95:nt,105:dt,106:q,109:kt,111:W,112:St,122:we,123:he,124:xe,125:Le,126:Me,127:be}),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:Dt,21:ue,23:re},{11:131,14:[1,132]},d(He,[2,8]),d(E,[2,20]),d(E,[2,26]),d(E,[2,27]),{21:[1,133]},d(En,[2,34],{30:134,22:me}),d(Je,[2,35]),{50:135,51:45,52:at,54:46,66:st,67:bt,91:gt,95:nt,105:dt,106:q,109:kt,111:W,112:St,116:47,122:we,123:he,124:xe,125:Le,126:Me,127:be},d(Qn,[2,48]),d(Qn,[2,49]),d(Qn,[2,50]),d(In,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:Bn,24:Ne,26:Qe,38:nn,39:139,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},d([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),d(Je,[2,36]),d(Je,[2,37]),d(Je,[2,38]),d(Je,[2,39]),d(Je,[2,40]),{22:Bn,24:Ne,26:Qe,38:nn,39:163,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},d(ga,B,{17:164}),d(Je,[2,45]),d(Je,[2,46]),d(At,[2,53],{52:Lr}),{26:Ee,52:Q,66:ce,67:ct,91:Te,97:166,102:[1,167],105:pe,106:Pe,109:on,111:Ze,112:un,115:100,117:98,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{95:[1,168],103:169,105:[1,170]},{26:Ee,52:Q,66:ce,67:ct,91:Te,95:[1,171],97:172,105:pe,106:Pe,109:on,111:Ze,112:un,115:100,117:98,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{26:Ee,52:Q,66:ce,67:ct,91:Te,97:173,105:pe,106:Pe,109:on,111:Ze,112:un,115:100,117:98,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},d(He,[2,101],{22:[1,174],99:[1,175]}),d(He,[2,105],{22:[1,176]}),d(He,[2,109],{115:100,117:178,22:[1,177],26:Ee,52:Q,66:ce,67:ct,91:Te,105:pe,106:Pe,109:on,111:Ze,112:un,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe}),d(He,[2,111],{22:[1,179]}),d(Ar,[2,152]),d(Ar,[2,154]),d(Ar,[2,155]),d(Ar,[2,156]),d(Ar,[2,157]),d(Ln,[2,162]),d(Ln,[2,163]),d(Ln,[2,164]),d(Ln,[2,165]),d(Ln,[2,166]),d(Ln,[2,167]),d(Ln,[2,168]),d(Ln,[2,169]),d(Ln,[2,170]),d(Ln,[2,171]),d(Ln,[2,172]),d(Ln,[2,173]),d(Ln,[2,174]),{52:at,54:180,66:st,67:bt,91:gt,95:nt,105:dt,106:q,109:kt,111:W,112:St,116:47,122:we,123:he,124:xe,125:Le,126:Me,127:be},{22:Bn,24:Ne,26:Qe,38:nn,39:181,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,39:182,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,39:184,42:Se,52:Q,57:[1,183],66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,39:185,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,39:186,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,39:187,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{66:[1,188]},{22:Bn,24:Ne,26:Qe,38:nn,39:189,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,39:190,42:Se,52:Q,66:ce,67:ct,71:[1,191],73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,39:192,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,39:193,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,39:194,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},d(cn,[2,151]),d(si,[2,3]),{8:195,15:Sn},{15:[2,7]},d(E,[2,28]),d(En,[2,33]),d(At,[2,51],{30:196,22:me}),d(In,[2,75],{22:[1,197]}),{22:[1,198]},{22:Bn,24:Ne,26:Qe,38:nn,39:199,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,82:[1,200],83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},d(Ln,[2,82]),d(Ln,[2,84]),d(Ln,[2,140]),d(Ln,[2,141]),d(Ln,[2,142]),d(Ln,[2,143]),d(Ln,[2,144]),d(Ln,[2,145]),d(Ln,[2,146]),d(Ln,[2,147]),d(Ln,[2,148]),d(Ln,[2,149]),d(Ln,[2,85]),d(Ln,[2,86]),d(Ln,[2,87]),d(Ln,[2,88]),d(Ln,[2,89]),d(Ln,[2,90]),d(Ln,[2,91]),d(Ln,[2,92]),d(Ln,[2,93]),d(Ln,[2,94]),d(Ln,[2,95]),{9:203,20:Dt,21:ue,22:Bn,23:re,24:Ne,26:Qe,38:nn,40:[1,202],42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{18:18,19:19,20:R,21:U,22:H,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,42:[1,204],43:31,44:ft,46:K,48:_t,50:35,51:45,52:at,54:46,66:st,67:bt,86:zt,87:Tt,88:mt,89:Ct,90:xt,91:gt,95:nt,105:dt,106:q,109:kt,111:W,112:St,116:47,118:Lt,119:Wt,120:ge,121:Ve,122:we,123:he,124:xe,125:Le,126:Me,127:be},{22:me,30:205},{22:[1,206],26:Ee,52:Q,66:ce,67:ct,91:Te,105:pe,106:Pe,109:on,111:Ze,112:un,115:100,117:178,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},d(Rn,[2,123]),{22:[1,211]},{22:[1,212],26:Ee,52:Q,66:ce,67:ct,91:Te,105:pe,106:Pe,109:on,111:Ze,112:un,115:100,117:178,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:[1,213],26:Ee,52:Q,66:ce,67:ct,91:Te,105:pe,106:Pe,109:on,111:Ze,112:un,115:100,117:178,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{84:[1,214]},d(He,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},d(Ar,[2,153]),{84:[1,219],101:[1,220]},d(vn,[2,57],{116:129,52:at,66:st,67:bt,91:gt,95:nt,105:dt,106:q,109:kt,111:W,112:St,122:we,123:he,124:xe,125:Le,126:Me,127:be}),{22:Bn,24:Ne,26:Qe,38:nn,41:[1,221],42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,42:Se,52:Q,56:[1,222],66:ce,67:ct,73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,39:223,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,42:Se,52:Q,58:[1,224],66:ce,67:ct,73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,42:Se,52:Q,60:[1,225],66:ce,67:ct,73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,42:Se,52:Q,62:[1,226],66:ce,67:ct,73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,42:Se,52:Q,64:[1,227],66:ce,67:ct,73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{67:[1,228]},{22:Bn,24:Ne,26:Qe,38:nn,42:Se,52:Q,66:ce,67:ct,70:[1,229],73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,42:Se,52:Q,66:ce,67:ct,72:[1,230],73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,39:231,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,41:[1,232],42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,42:Se,52:Q,66:ce,67:ct,73:An,75:[1,233],77:[1,234],81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{22:Bn,24:Ne,26:Qe,38:nn,42:Se,52:Q,66:ce,67:ct,73:An,75:[1,236],77:[1,235],81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{9:237,20:Dt,21:ue,23:re},d(At,[2,52],{52:Lr}),d(In,[2,77]),d(In,[2,76]),{22:Bn,24:Ne,26:Qe,38:nn,42:Se,52:Q,66:ce,67:ct,68:[1,238],73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},d(In,[2,79]),d(Ln,[2,83]),{22:Bn,24:Ne,26:Qe,38:nn,39:239,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},d(ga,B,{17:240}),d(Je,[2,43]),{51:241,52:at,54:46,66:st,67:bt,91:gt,95:nt,105:dt,106:q,109:kt,111:W,112:St,116:47,122:we,123:he,124:xe,125:Le,126:Me,127:be},{22:kr,66:Ir,67:br,86:Zr,96:242,102:Rt,105:Nr,107:243,108:244,109:Mr,110:Zn,111:Jr,112:$r,113:Dr},{22:kr,66:Ir,67:br,86:Zr,96:256,102:Rt,105:Nr,107:243,108:244,109:Mr,110:Zn,111:Jr,112:$r,113:Dr},{22:kr,66:Ir,67:br,86:Zr,96:257,102:Rt,104:[1,258],105:Nr,107:243,108:244,109:Mr,110:Zn,111:Jr,112:$r,113:Dr},{22:kr,66:Ir,67:br,86:Zr,96:259,102:Rt,104:[1,260],105:Nr,107:243,108:244,109:Mr,110:Zn,111:Jr,112:$r,113:Dr},{105:[1,261]},{22:kr,66:Ir,67:br,86:Zr,96:262,102:Rt,105:Nr,107:243,108:244,109:Mr,110:Zn,111:Jr,112:$r,113:Dr},{22:kr,66:Ir,67:br,86:Zr,96:263,102:Rt,105:Nr,107:243,108:244,109:Mr,110:Zn,111:Jr,112:$r,113:Dr},{26:Ee,52:Q,66:ce,67:ct,91:Te,97:264,105:pe,106:Pe,109:on,111:Ze,112:un,115:100,117:98,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},d(He,[2,102]),{84:[1,265]},d(He,[2,106],{22:[1,266]}),d(He,[2,107]),d(He,[2,110]),d(He,[2,112],{22:[1,267]}),d(He,[2,113]),d(We,[2,58]),d(We,[2,59]),{22:Bn,24:Ne,26:Qe,38:nn,42:Se,52:Q,58:[1,268],66:ce,67:ct,73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},d(We,[2,66]),d(We,[2,61]),d(We,[2,62]),d(We,[2,63]),{66:[1,269]},d(We,[2,65]),d(We,[2,67]),{22:Bn,24:Ne,26:Qe,38:nn,42:Se,52:Q,66:ce,67:ct,72:[1,270],73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},d(We,[2,69]),d(We,[2,70]),d(We,[2,72]),d(We,[2,71]),d(We,[2,73]),d(si,[2,4]),d([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:Bn,24:Ne,26:Qe,38:nn,41:[1,271],42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{18:18,19:19,20:R,21:U,22:H,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,42:[1,272],43:31,44:ft,46:K,48:_t,50:35,51:45,52:at,54:46,66:st,67:bt,86:zt,87:Tt,88:mt,89:Ct,90:xt,91:gt,95:nt,105:dt,106:q,109:kt,111:W,112:St,116:47,118:Lt,119:Wt,120:ge,121:Ve,122:we,123:he,124:xe,125:Le,126:Me,127:be},d(vn,[2,56]),d(He,[2,115],{106:Qr}),d(Na,[2,125],{108:274,22:kr,66:Ir,67:br,86:Zr,102:Rt,105:Nr,109:Mr,110:Zn,111:Jr,112:$r,113:Dr}),d(hr,[2,127]),d(hr,[2,129]),d(hr,[2,130]),d(hr,[2,131]),d(hr,[2,132]),d(hr,[2,133]),d(hr,[2,134]),d(hr,[2,135]),d(hr,[2,136]),d(hr,[2,137]),d(hr,[2,138]),d(hr,[2,139]),d(He,[2,116],{106:Qr}),d(He,[2,117],{106:Qr}),{22:[1,275]},d(He,[2,118],{106:Qr}),{22:[1,276]},d(Rn,[2,124]),d(He,[2,98],{106:Qr}),d(He,[2,99],{106:Qr}),d(He,[2,100],{115:100,117:178,26:Ee,52:Q,66:ce,67:ct,91:Te,105:pe,106:Pe,109:on,111:Ze,112:un,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe}),d(He,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:Dt,21:ue,23:re},d(Je,[2,42]),{22:kr,66:Ir,67:br,86:Zr,102:Rt,105:Nr,107:283,108:244,109:Mr,110:Zn,111:Jr,112:$r,113:Dr},d(hr,[2,128]),{26:Ee,52:Q,66:ce,67:ct,91:Te,97:284,105:pe,106:Pe,109:on,111:Ze,112:un,115:100,117:98,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{26:Ee,52:Q,66:ce,67:ct,91:Te,97:285,105:pe,106:Pe,109:on,111:Ze,112:un,115:100,117:98,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},d(He,[2,108]),d(He,[2,114]),d(We,[2,60]),{22:Bn,24:Ne,26:Qe,38:nn,39:286,42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:140,84:xr,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},d(We,[2,68]),d(ga,B,{17:287}),d(Na,[2,126],{108:274,22:kr,66:Ir,67:br,86:Zr,102:Rt,105:Nr,109:Mr,110:Zn,111:Jr,112:$r,113:Dr}),d(He,[2,121],{115:100,117:178,22:[1,288],26:Ee,52:Q,66:ce,67:ct,91:Te,105:pe,106:Pe,109:on,111:Ze,112:un,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe}),d(He,[2,122],{115:100,117:178,22:[1,289],26:Ee,52:Q,66:ce,67:ct,91:Te,105:pe,106:Pe,109:on,111:Ze,112:un,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe}),{22:Bn,24:Ne,26:Qe,38:nn,41:[1,290],42:Se,52:Q,66:ce,67:ct,73:An,81:Bt,83:201,85:151,86:Gt,87:qn,88:zn,89:Gn,90:On,91:Vn,92:Pn,94:142,95:Nn,105:pe,106:Pe,109:Un,111:Ze,112:un,113:Yn,114:jn,115:148,122:Ie,123:De,124:ze,125:Re,126:_e,127:oe},{18:18,19:19,20:R,21:U,22:H,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:rt,42:[1,291],43:31,44:ft,46:K,48:_t,50:35,51:45,52:at,54:46,66:st,67:bt,86:zt,87:Tt,88:mt,89:Ct,90:xt,91:gt,95:nt,105:dt,106:q,109:kt,111:W,112:St,116:47,118:Lt,119:Wt,120:ge,121:Ve,122:we,123:he,124:xe,125:Le,126:Me,127:be},{22:kr,66:Ir,67:br,86:Zr,96:292,102:Rt,105:Nr,107:243,108:244,109:Mr,110:Zn,111:Jr,112:$r,113:Dr},{22:kr,66:Ir,67:br,86:Zr,96:293,102:Rt,105:Nr,107:243,108:244,109:Mr,110:Zn,111:Jr,112:$r,113:Dr},d(We,[2,64]),d(Je,[2,41]),d(He,[2,119],{106:Qr}),d(He,[2,120],{106:Qr})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(fn,mn){if(!mn.recoverable){var Kn=new Error(fn);throw Kn.hash=mn,Kn}this.trace(fn)},parse:function(fn){var mn=this,Kn=[0],rn=[],lr=[null],Xt=[],Pr=this.table,Qt="",wr=0,ri=0,ci=0,La=2,Ri=1,kn=Xt.slice.call(arguments,1),Ur=Object.create(this.lexer),Dn={yy:{}};for(var ya in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ya)&&(Dn.yy[ya]=this.yy[ya]);Ur.setInput(fn,Dn.yy),Dn.yy.lexer=Ur,Dn.yy.parser=this,Ur.yylloc===void 0&&(Ur.yylloc={});var Br=Ur.yylloc;Xt.push(Br);var Fi=Ur.options&&Ur.options.ranges;function zr(){var Pi;return typeof(Pi=rn.pop()||Ur.lex()||Ri)!="number"&&(Pi instanceof Array&&(Pi=(rn=Pi).pop()),Pi=mn.symbols_[Pi]||Pi),Pi}typeof Dn.yy.parseError=="function"?this.parseError=Dn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var gr,ki,Hr,ti,Ki,Ci,ei,ma,qr,Xr={};;){if(Hr=Kn[Kn.length-1],this.defaultActions[Hr]?ti=this.defaultActions[Hr]:(gr==null&&(gr=zr()),ti=Pr[Hr]&&Pr[Hr][gr]),ti===void 0||!ti.length||!ti[0]){var ii="";for(Ci in qr=[],Pr[Hr])this.terminals_[Ci]&&Ci>La&&qr.push("'"+this.terminals_[Ci]+"'");ii=Ur.showPosition?"Parse error on line "+(wr+1)+`:
|
|
`+Ur.showPosition()+`
|
|
Expecting `+qr.join(", ")+", got '"+(this.terminals_[gr]||gr)+"'":"Parse error on line "+(wr+1)+": Unexpected "+(gr==Ri?"end of input":"'"+(this.terminals_[gr]||gr)+"'"),this.parseError(ii,{text:Ur.match,token:this.terminals_[gr]||gr,line:Ur.yylineno,loc:Br,expected:qr})}if(ti[0]instanceof Array&&ti.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Hr+", token: "+gr);switch(ti[0]){case 1:Kn.push(gr),lr.push(Ur.yytext),Xt.push(Ur.yylloc),Kn.push(ti[1]),gr=null,ki?(gr=ki,ki=null):(ri=Ur.yyleng,Qt=Ur.yytext,wr=Ur.yylineno,Br=Ur.yylloc,ci>0);break;case 2:if(ei=this.productions_[ti[1]][1],Xr.$=lr[lr.length-ei],Xr._$={first_line:Xt[Xt.length-(ei||1)].first_line,last_line:Xt[Xt.length-1].last_line,first_column:Xt[Xt.length-(ei||1)].first_column,last_column:Xt[Xt.length-1].last_column},Fi&&(Xr._$.range=[Xt[Xt.length-(ei||1)].range[0],Xt[Xt.length-1].range[1]]),(Ki=this.performAction.apply(Xr,[Qt,ri,wr,Dn.yy,ti[1],lr,Xt].concat(kn)))!==void 0)return Ki;ei&&(Kn=Kn.slice(0,-1*ei*2),lr=lr.slice(0,-1*ei),Xt=Xt.slice(0,-1*ei)),Kn.push(this.productions_[ti[1]][0]),lr.push(Xr.$),Xt.push(Xr._$),ma=Pr[Kn[Kn.length-2]][Kn[Kn.length-1]],Kn.push(ma);break;case 3:return!0}}return!0}},Bi={EOF:1,parseError:function(fn,mn){if(!this.yy.parser)throw new Error(fn);this.yy.parser.parseError(fn,mn)},setInput:function(fn,mn){return this.yy=mn||this.yy||{},this._input=fn,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 fn=this._input[0];return this.yytext+=fn,this.yyleng++,this.offset++,this.match+=fn,this.matched+=fn,fn.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),fn},unput:function(fn){var mn=fn.length,Kn=fn.split(/(?:\r\n?|\n)/g);this._input=fn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-mn),this.offset-=mn;var rn=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),Kn.length-1&&(this.yylineno-=Kn.length-1);var lr=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:Kn?(Kn.length===rn.length?this.yylloc.first_column:0)+rn[rn.length-Kn.length].length-Kn[0].length:this.yylloc.first_column-mn},this.options.ranges&&(this.yylloc.range=[lr[0],lr[0]+this.yyleng-mn]),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(fn){this.unput(this.match.slice(fn))},pastInput:function(){var fn=this.matched.substr(0,this.matched.length-this.match.length);return(fn.length>20?"...":"")+fn.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var fn=this.match;return fn.length<20&&(fn+=this._input.substr(0,20-fn.length)),(fn.substr(0,20)+(fn.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var fn=this.pastInput(),mn=new Array(fn.length+1).join("-");return fn+this.upcomingInput()+`
|
|
`+mn+"^"},test_match:function(fn,mn){var Kn,rn,lr;if(this.options.backtrack_lexer&&(lr={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&&(lr.yylloc.range=this.yylloc.range.slice(0))),(rn=fn[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=rn.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:rn?rn[rn.length-1].length-rn[rn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+fn[0].length},this.yytext+=fn[0],this.match+=fn[0],this.matches=fn,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(fn[0].length),this.matched+=fn[0],Kn=this.performAction.call(this,this.yy,this,mn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Kn)return Kn;if(this._backtrack){for(var Xt in lr)this[Xt]=lr[Xt];return!1}return!1},next:function(){if(this.done)return this.EOF;var fn,mn,Kn,rn;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var lr=this._currentRules(),Xt=0;Xt<lr.length;Xt++)if((Kn=this._input.match(this.rules[lr[Xt]]))&&(!mn||Kn[0].length>mn[0].length)){if(mn=Kn,rn=Xt,this.options.backtrack_lexer){if((fn=this.test_match(Kn,lr[Xt]))!==!1)return fn;if(this._backtrack){mn=!1;continue}return!1}if(!this.options.flex)break}return mn?(fn=this.test_match(mn,lr[rn]))!==!1&&fn: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(fn){this.conditionStack.push(fn)},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(fn){return(fn=this.conditionStack.length-1-Math.abs(fn||0))>=0?this.conditionStack[fn]:"INITIAL"},pushState:function(fn){this.begin(fn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(fn,mn,Kn,rn){switch(Kn){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 fn.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 Ai(){this.yy={}}return Si.lexer=Bi,Ai.prototype=Si,Si.Parser=Ai,new Ai}();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(gt,nt,dt,q){for(dt=dt||{},q=gt.length;q--;dt[gt[q]]=nt);return dt},b=[1,3],_=[1,5],S=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],M=[1,15],E=[1,16],B=[1,17],R=[1,18],U=[1,19],H=[1,20],J=[1,21],rt=[1,22],ft=[1,23],K=[1,24],_t=[1,25],at=[1,26],st=[1,28],bt=[1,30],zt=[1,33],Tt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],mt={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(gt,nt,dt,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(S,[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:M,13:E,14:B,15:R,16:U,17:H,18:J,19:rt,20:ft,22:K,24:_t,25:at,26:27,27:st,29:4,34:bt,39:_},{31:31,32:[1,32],42:zt},d([32,42],[2,41]),d(S,[2,8],{1:[2,2]}),d(S,[2,4]),{4:29,10:34,12:M,13:E,14:B,15:R,16:U,17:H,18:J,19:rt,20:ft,22:K,24:_t,25:at,26:27,27:st,29:4,34:bt,39:_},d(S,[2,6]),d(S,[2,7]),d(S,[2,9]),d(S,[2,10]),d(S,[2,11]),d(S,[2,12]),d(S,[2,13]),d(S,[2,14]),d(S,[2,15]),d(S,[2,16]),{21:[1,35]},{23:[1,36]},d(S,[2,19]),d(S,[2,20]),d(S,[2,21]),{28:[1,37]},d(S,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},d(S,[2,5]),d(S,[2,17]),d(S,[2,18]),d(S,[2,22]),d(S,[2,26],{36:[1,43],37:[1,44]}),d(S,[2,32],{35:[1,45]}),d(Tt,[2,24]),{31:46,42:zt},{42:[2,42]},d(S,[2,27],{37:[1,47]}),d(S,[2,28]),d(S,[2,30],{36:[1,48]}),{11:[1,49]},d(S,[2,29]),d(S,[2,31]),d(Tt,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]},parseError:function(gt,nt){if(!nt.recoverable){var dt=new Error(gt);throw dt.hash=nt,dt}this.trace(gt)},parse:function(gt){var nt=this,dt=[0],q=[],kt=[null],W=[],St=this.table,Lt="",Wt=0,ge=0,Ve=0,we=2,he=1,xe=W.slice.call(arguments,1),Le=Object.create(this.lexer),Me={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(Me.yy[be]=this.yy[be]);Le.setInput(gt,Me.yy),Me.yy.lexer=Le,Me.yy.parser=this,Le.yylloc===void 0&&(Le.yylloc={});var Sn=Le.yylloc;W.push(Sn);var me=Le.options&&Le.options.ranges;function Je(){var on;return typeof(on=q.pop()||Le.lex()||he)!="number"&&(on instanceof Array&&(on=(q=on).pop()),on=nt.symbols_[on]||on),on}typeof Me.yy.parseError=="function"?this.parseError=Me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Dt,ue,re,At,Ee,Q,ce,ct,Te,pe={};;){if(re=dt[dt.length-1],this.defaultActions[re]?At=this.defaultActions[re]:(Dt==null&&(Dt=Je()),At=St[re]&&St[re][Dt]),At===void 0||!At.length||!At[0]){var Pe="";for(Q in Te=[],St[re])this.terminals_[Q]&&Q>we&&Te.push("'"+this.terminals_[Q]+"'");Pe=Le.showPosition?"Parse error on line "+(Wt+1)+`:
|
|
`+Le.showPosition()+`
|
|
Expecting `+Te.join(", ")+", got '"+(this.terminals_[Dt]||Dt)+"'":"Parse error on line "+(Wt+1)+": Unexpected "+(Dt==he?"end of input":"'"+(this.terminals_[Dt]||Dt)+"'"),this.parseError(Pe,{text:Le.match,token:this.terminals_[Dt]||Dt,line:Le.yylineno,loc:Sn,expected:Te})}if(At[0]instanceof Array&&At.length>1)throw new Error("Parse Error: multiple actions possible at state: "+re+", token: "+Dt);switch(At[0]){case 1:dt.push(Dt),kt.push(Le.yytext),W.push(Le.yylloc),dt.push(At[1]),Dt=null,ue?(Dt=ue,ue=null):(ge=Le.yyleng,Lt=Le.yytext,Wt=Le.yylineno,Sn=Le.yylloc,Ve>0);break;case 2:if(ce=this.productions_[At[1]][1],pe.$=kt[kt.length-ce],pe._$={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},me&&(pe._$.range=[W[W.length-(ce||1)].range[0],W[W.length-1].range[1]]),(Ee=this.performAction.apply(pe,[Lt,ge,Wt,Me.yy,At[1],kt,W].concat(xe)))!==void 0)return Ee;ce&&(dt=dt.slice(0,-1*ce*2),kt=kt.slice(0,-1*ce),W=W.slice(0,-1*ce)),dt.push(this.productions_[At[1]][0]),kt.push(pe.$),W.push(pe._$),ct=St[dt[dt.length-2]][dt[dt.length-1]],dt.push(ct);break;case 3:return!0}}return!0}},Ct={EOF:1,parseError:function(gt,nt){if(!this.yy.parser)throw new Error(gt);this.yy.parser.parseError(gt,nt)},setInput:function(gt,nt){return this.yy=nt||this.yy||{},this._input=gt,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 gt=this._input[0];return this.yytext+=gt,this.yyleng++,this.offset++,this.match+=gt,this.matched+=gt,gt.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),gt},unput:function(gt){var nt=gt.length,dt=gt.split(/(?:\r\n?|\n)/g);this._input=gt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-nt),this.offset-=nt;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),dt.length-1&&(this.yylineno-=dt.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:dt?(dt.length===q.length?this.yylloc.first_column:0)+q[q.length-dt.length].length-dt[0].length:this.yylloc.first_column-nt},this.options.ranges&&(this.yylloc.range=[kt[0],kt[0]+this.yyleng-nt]),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(gt){this.unput(this.match.slice(gt))},pastInput:function(){var gt=this.matched.substr(0,this.matched.length-this.match.length);return(gt.length>20?"...":"")+gt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var gt=this.match;return gt.length<20&&(gt+=this._input.substr(0,20-gt.length)),(gt.substr(0,20)+(gt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var gt=this.pastInput(),nt=new Array(gt.length+1).join("-");return gt+this.upcomingInput()+`
|
|
`+nt+"^"},test_match:function(gt,nt){var dt,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=gt[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+gt[0].length},this.yytext+=gt[0],this.match+=gt[0],this.matches=gt,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(gt[0].length),this.matched+=gt[0],dt=this.performAction.call(this,this.yy,this,nt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),dt)return dt;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 gt,nt,dt,q;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var kt=this._currentRules(),W=0;W<kt.length;W++)if((dt=this._input.match(this.rules[kt[W]]))&&(!nt||dt[0].length>nt[0].length)){if(nt=dt,q=W,this.options.backtrack_lexer){if((gt=this.test_match(dt,kt[W]))!==!1)return gt;if(this._backtrack){nt=!1;continue}return!1}if(!this.options.flex)break}return nt?(gt=this.test_match(nt,kt[q]))!==!1&>: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(gt){this.conditionStack.push(gt)},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(gt){return(gt=this.conditionStack.length-1-Math.abs(gt||0))>=0?this.conditionStack[gt]:"INITIAL"},pushState:function(gt){this.begin(gt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(gt,nt,dt,q){switch(dt){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 mt.lexer=Ct,xt.prototype=mt,mt.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(Ct,xt,gt,nt){for(gt=gt||{},nt=Ct.length;nt--;gt[Ct[nt]]=xt);return gt},b=[1,4],_=[1,7],S=[1,5],M=[1,9],E=[1,6],B=[2,6],R=[1,16],U=[6,8,14,20,22,24,25,27,29,32,35,37,49,53],H=[8,14,20,22,24,25,27,29,32,35,37],J=[8,13,14,20,22,24,25,27,29,32,35,37],rt=[1,26],ft=[6,8,14,49,53],K=[8,14,53],_t=[1,64],at=[1,65],st=[1,66],bt=[8,14,33,36,41,53],zt={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(Ct,xt,gt,nt,dt,q,kt){var W=q.length-1;switch(dt){case 3:return q[W];case 4:return q[W-1];case 5:return nt.setDirection(q[W-3]),q[W-1];case 7:nt.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(),nt.setAccTitle(this.$);break;case 18:case 19:this.$=q[W].trim(),nt.setAccDescription(this.$);break;case 20:nt.addSection(q[W].substr(8)),this.$=q[W].substr(8);break;case 22:nt.checkout(q[W]);break;case 23:nt.branch(q[W]);break;case 24:nt.branch(q[W-2],q[W]);break;case 25:nt.cherryPick(q[W]);break;case 26:nt.merge(q[W]);break;case 27:nt.merge(q[W-2],q[W]);break;case 28:nt.commit(q[W]);break;case 29:nt.commit("","",nt.commitType.NORMAL,q[W]);break;case 30:nt.commit("","",q[W],"");break;case 31:nt.commit("","",q[W],q[W-2]);break;case 32:nt.commit("","",q[W-2],q[W]);break;case 33:nt.commit("",q[W],nt.commitType.NORMAL,"");break;case 34:nt.commit("",q[W-2],nt.commitType.NORMAL,q[W]);break;case 35:nt.commit("",q[W],nt.commitType.NORMAL,q[W-2]);break;case 36:nt.commit("",q[W-2],q[W],"");break;case 37:nt.commit("",q[W],q[W-2],"");break;case 38:nt.commit("",q[W-4],q[W-2],q[W]);break;case 39:nt.commit("",q[W-4],q[W],q[W-2]);break;case 40:nt.commit("",q[W-2],q[W-4],q[W]);break;case 41:nt.commit("",q[W],q[W-4],q[W-2]);break;case 42:nt.commit("",q[W],q[W-2],q[W-4]);break;case 43:nt.commit("",q[W-2],q[W],q[W-4]);break;case 44:nt.commit(q[W],"",nt.commitType.NORMAL,"");break;case 45:nt.commit(q[W],"",nt.commitType.NORMAL,q[W-2]);break;case 46:nt.commit(q[W-2],"",nt.commitType.NORMAL,q[W]);break;case 47:nt.commit(q[W-2],"",q[W],"");break;case 48:nt.commit(q[W],"",q[W-2],"");break;case 49:nt.commit(q[W],q[W-2],nt.commitType.NORMAL,"");break;case 50:nt.commit(q[W-2],q[W],nt.commitType.NORMAL,"");break;case 51:nt.commit(q[W-4],"",q[W-2],q[W]);break;case 52:nt.commit(q[W-4],"",q[W],q[W-2]);break;case 53:nt.commit(q[W-2],"",q[W-4],q[W]);break;case 54:nt.commit(q[W],"",q[W-4],q[W-2]);break;case 55:nt.commit(q[W],"",q[W-2],q[W-4]);break;case 56:nt.commit(q[W-2],"",q[W],q[W-4]);break;case 57:nt.commit(q[W-4],q[W],q[W-2],"");break;case 58:nt.commit(q[W-4],q[W-2],q[W],"");break;case 59:nt.commit(q[W-2],q[W],q[W-4],"");break;case 60:nt.commit(q[W],q[W-2],q[W-4],"");break;case 61:nt.commit(q[W],q[W-4],q[W-2],"");break;case 62:nt.commit(q[W-2],q[W-4],q[W],"");break;case 63:nt.commit(q[W-4],q[W],nt.commitType.NORMAL,q[W-2]);break;case 64:nt.commit(q[W-4],q[W-2],nt.commitType.NORMAL,q[W]);break;case 65:nt.commit(q[W-2],q[W],nt.commitType.NORMAL,q[W-4]);break;case 66:nt.commit(q[W],q[W-2],nt.commitType.NORMAL,q[W-4]);break;case 67:nt.commit(q[W],q[W-4],nt.commitType.NORMAL,q[W-2]);break;case 68:nt.commit(q[W-2],q[W-4],nt.commitType.NORMAL,q[W]);break;case 69:nt.commit(q[W-6],q[W-4],q[W-2],q[W]);break;case 70:nt.commit(q[W-6],q[W-4],q[W],q[W-2]);break;case 71:nt.commit(q[W-6],q[W-2],q[W-4],q[W]);break;case 72:nt.commit(q[W-6],q[W],q[W-4],q[W-2]);break;case 73:nt.commit(q[W-6],q[W-2],q[W],q[W-4]);break;case 74:nt.commit(q[W-6],q[W],q[W-2],q[W-4]);break;case 75:nt.commit(q[W-4],q[W-6],q[W-2],q[W]);break;case 76:nt.commit(q[W-4],q[W-6],q[W],q[W-2]);break;case 77:nt.commit(q[W-2],q[W-6],q[W-4],q[W]);break;case 78:nt.commit(q[W],q[W-6],q[W-4],q[W-2]);break;case 79:nt.commit(q[W-2],q[W-6],q[W],q[W-4]);break;case 80:nt.commit(q[W],q[W-6],q[W-2],q[W-4]);break;case 81:nt.commit(q[W],q[W-4],q[W-2],q[W-6]);break;case 82:nt.commit(q[W-2],q[W-4],q[W],q[W-6]);break;case 83:nt.commit(q[W],q[W-2],q[W-4],q[W-6]);break;case 84:nt.commit(q[W-2],q[W],q[W-4],q[W-6]);break;case 85:nt.commit(q[W-4],q[W-2],q[W],q[W-6]);break;case 86:nt.commit(q[W-4],q[W],q[W-2],q[W-6]);break;case 87:nt.commit(q[W-2],q[W-4],q[W-6],q[W]);break;case 88:nt.commit(q[W],q[W-4],q[W-6],q[W-2]);break;case 89:nt.commit(q[W-2],q[W],q[W-6],q[W-4]);break;case 90:nt.commit(q[W],q[W-2],q[W-6],q[W-4]);break;case 91:nt.commit(q[W-4],q[W-2],q[W-6],q[W]);break;case 92:nt.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.$=nt.commitType.NORMAL;break;case 96:this.$=nt.commitType.REVERSE;break;case 97:this.$=nt.commitType.HIGHLIGHT;break;case 100:nt.parseDirective("%%{","open_directive");break;case 101:nt.parseDirective(q[W],"type_directive");break;case 102:q[W]=q[W].trim().replace(/'/g,'"'),nt.parseDirective(q[W],"arg_directive");break;case 103:nt.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:b,8:_,14:S,45:8,49:M,53:E},{1:[3]},{3:10,4:2,5:3,6:b,8:_,14:S,45:8,49:M,53:E},{3:11,4:2,5:3,6:b,8:_,14:S,45:8,49:M,53:E},{7:12,8:B,9:[1,13],10:[1,14],11:15,14:R},d(U,[2,104]),d(U,[2,105]),d(U,[2,106]),{46:17,50:[1,18]},{50:[2,100]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:B,11:15,14:R},{9:[1,21]},d(H,[2,10],{12:22,13:[1,23]}),d(J,[2,9]),{9:[1,25],47:24,52:rt},d([9,52],[2,101]),{1:[2,3]},{8:[1,27]},{7:28,8:B,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(J,[2,8]),d(ft,[2,98]),{48:45,51:[1,46]},d(ft,[2,103]),{1:[2,4]},{8:[1,47]},d(H,[2,11]),{4:48,8:_,14:S,53:E},d(H,[2,13]),d(K,[2,14]),d(K,[2,15]),d(K,[2,16]),{21:[1,49]},{23:[1,50]},d(K,[2,19]),d(K,[2,20]),d(K,[2,21]),{28:[1,51]},d(K,[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:rt},{52:[2,102]},{1:[2,5]},d(H,[2,12]),d(K,[2,17]),d(K,[2,18]),d(K,[2,22]),d(K,[2,28]),{34:[1,62]},{40:63,42:_t,43:at,44:st},{34:[1,67]},{34:[1,68]},d(K,[2,94]),d(K,[2,26],{36:[1,69]}),{34:[1,70]},d(K,[2,23],{30:[1,71]}),d(ft,[2,99]),d(K,[2,29],{33:[1,73],39:[1,72],41:[1,74]}),d(K,[2,30],{33:[1,76],36:[1,75],41:[1,77]}),d(bt,[2,95]),d(bt,[2,96]),d(bt,[2,97]),d(K,[2,33],{36:[1,78],39:[1,79],41:[1,80]}),d(K,[2,44],{33:[1,83],36:[1,81],39:[1,82]}),{34:[1,84]},d(K,[2,25]),{31:[1,85]},{40:86,42:_t,43:at,44:st},{34:[1,87]},{34:[1,88]},{34:[1,89]},{34:[1,90]},{34:[1,91]},{34:[1,92]},{40:93,42:_t,43:at,44:st},{34:[1,94]},{34:[1,95]},{40:96,42:_t,43:at,44:st},{34:[1,97]},d(K,[2,27]),d(K,[2,24]),d(K,[2,31],{33:[1,98],41:[1,99]}),d(K,[2,35],{39:[1,100],41:[1,101]}),d(K,[2,45],{33:[1,103],39:[1,102]}),d(K,[2,32],{33:[1,104],41:[1,105]}),d(K,[2,37],{36:[1,106],41:[1,107]}),d(K,[2,48],{33:[1,109],36:[1,108]}),d(K,[2,34],{39:[1,110],41:[1,111]}),d(K,[2,36],{36:[1,112],41:[1,113]}),d(K,[2,49],{36:[1,115],39:[1,114]}),d(K,[2,46],{33:[1,117],39:[1,116]}),d(K,[2,47],{33:[1,119],36:[1,118]}),d(K,[2,50],{36:[1,121],39:[1,120]}),{34:[1,122]},{34:[1,123]},{40:124,42:_t,43:at,44:st},{34:[1,125]},{40:126,42:_t,43:at,44:st},{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:at,44:st},{34:[1,135]},{34:[1,136]},{34:[1,137]},{40:138,42:_t,43:at,44:st},{34:[1,139]},{40:140,42:_t,43:at,44:st},{34:[1,141]},{34:[1,142]},{34:[1,143]},{40:144,42:_t,43:at,44:st},{34:[1,145]},d(K,[2,42],{41:[1,146]}),d(K,[2,55],{33:[1,147]}),d(K,[2,43],{41:[1,148]}),d(K,[2,66],{39:[1,149]}),d(K,[2,56],{33:[1,150]}),d(K,[2,65],{39:[1,151]}),d(K,[2,41],{41:[1,152]}),d(K,[2,54],{33:[1,153]}),d(K,[2,40],{41:[1,154]}),d(K,[2,60],{36:[1,155]}),d(K,[2,53],{33:[1,156]}),d(K,[2,59],{36:[1,157]}),d(K,[2,39],{41:[1,158]}),d(K,[2,67],{39:[1,159]}),d(K,[2,38],{41:[1,160]}),d(K,[2,61],{36:[1,161]}),d(K,[2,62],{36:[1,162]}),d(K,[2,68],{39:[1,163]}),d(K,[2,52],{33:[1,164]}),d(K,[2,63],{39:[1,165]}),d(K,[2,51],{33:[1,166]}),d(K,[2,57],{36:[1,167]}),d(K,[2,58],{36:[1,168]}),d(K,[2,64],{39:[1,169]}),{34:[1,170]},{34:[1,171]},{34:[1,172]},{40:173,42:_t,43:at,44:st},{34:[1,174]},{40:175,42:_t,43:at,44:st},{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:at,44:st},{34:[1,184]},{34:[1,185]},{34:[1,186]},{40:187,42:_t,43:at,44:st},{34:[1,188]},{40:189,42:_t,43:at,44:st},{34:[1,190]},{34:[1,191]},{34:[1,192]},{40:193,42:_t,43:at,44:st},d(K,[2,83]),d(K,[2,84]),d(K,[2,81]),d(K,[2,82]),d(K,[2,86]),d(K,[2,85]),d(K,[2,90]),d(K,[2,89]),d(K,[2,88]),d(K,[2,87]),d(K,[2,92]),d(K,[2,91]),d(K,[2,80]),d(K,[2,79]),d(K,[2,78]),d(K,[2,77]),d(K,[2,75]),d(K,[2,76]),d(K,[2,74]),d(K,[2,73]),d(K,[2,72]),d(K,[2,71]),d(K,[2,69]),d(K,[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(Ct,xt){if(!xt.recoverable){var gt=new Error(Ct);throw gt.hash=xt,gt}this.trace(Ct)},parse:function(Ct){var xt=this,gt=[0],nt=[],dt=[null],q=[],kt=this.table,W="",St=0,Lt=0,Wt=0,ge=2,Ve=1,we=q.slice.call(arguments,1),he=Object.create(this.lexer),xe={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(xe.yy[Le]=this.yy[Le]);he.setInput(Ct,xe.yy),xe.yy.lexer=he,xe.yy.parser=this,he.yylloc===void 0&&(he.yylloc={});var Me=he.yylloc;q.push(Me);var be=he.options&&he.options.ranges;function Sn(){var pe;return typeof(pe=nt.pop()||he.lex()||Ve)!="number"&&(pe instanceof Array&&(pe=(nt=pe).pop()),pe=xt.symbols_[pe]||pe),pe}typeof xe.yy.parseError=="function"?this.parseError=xe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var me,Je,Dt,ue,re,At,Ee,Q,ce,ct={};;){if(Dt=gt[gt.length-1],this.defaultActions[Dt]?ue=this.defaultActions[Dt]:(me==null&&(me=Sn()),ue=kt[Dt]&&kt[Dt][me]),ue===void 0||!ue.length||!ue[0]){var Te="";for(At in ce=[],kt[Dt])this.terminals_[At]&&At>ge&&ce.push("'"+this.terminals_[At]+"'");Te=he.showPosition?"Parse error on line "+(St+1)+`:
|
|
`+he.showPosition()+`
|
|
Expecting `+ce.join(", ")+", got '"+(this.terminals_[me]||me)+"'":"Parse error on line "+(St+1)+": Unexpected "+(me==Ve?"end of input":"'"+(this.terminals_[me]||me)+"'"),this.parseError(Te,{text:he.match,token:this.terminals_[me]||me,line:he.yylineno,loc:Me,expected:ce})}if(ue[0]instanceof Array&&ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Dt+", token: "+me);switch(ue[0]){case 1:gt.push(me),dt.push(he.yytext),q.push(he.yylloc),gt.push(ue[1]),me=null,Je?(me=Je,Je=null):(Lt=he.yyleng,W=he.yytext,St=he.yylineno,Me=he.yylloc,Wt>0);break;case 2:if(Ee=this.productions_[ue[1]][1],ct.$=dt[dt.length-Ee],ct._$={first_line:q[q.length-(Ee||1)].first_line,last_line:q[q.length-1].last_line,first_column:q[q.length-(Ee||1)].first_column,last_column:q[q.length-1].last_column},be&&(ct._$.range=[q[q.length-(Ee||1)].range[0],q[q.length-1].range[1]]),(re=this.performAction.apply(ct,[W,Lt,St,xe.yy,ue[1],dt,q].concat(we)))!==void 0)return re;Ee&&(gt=gt.slice(0,-1*Ee*2),dt=dt.slice(0,-1*Ee),q=q.slice(0,-1*Ee)),gt.push(this.productions_[ue[1]][0]),dt.push(ct.$),q.push(ct._$),Q=kt[gt[gt.length-2]][gt[gt.length-1]],gt.push(Q);break;case 3:return!0}}return!0}},Tt={EOF:1,parseError:function(Ct,xt){if(!this.yy.parser)throw new Error(Ct);this.yy.parser.parseError(Ct,xt)},setInput:function(Ct,xt){return this.yy=xt||this.yy||{},this._input=Ct,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 Ct=this._input[0];return this.yytext+=Ct,this.yyleng++,this.offset++,this.match+=Ct,this.matched+=Ct,Ct.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),Ct},unput:function(Ct){var xt=Ct.length,gt=Ct.split(/(?:\r\n?|\n)/g);this._input=Ct+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-xt),this.offset-=xt;var nt=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),gt.length-1&&(this.yylineno-=gt.length-1);var dt=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:gt?(gt.length===nt.length?this.yylloc.first_column:0)+nt[nt.length-gt.length].length-gt[0].length:this.yylloc.first_column-xt},this.options.ranges&&(this.yylloc.range=[dt[0],dt[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(Ct){this.unput(this.match.slice(Ct))},pastInput:function(){var Ct=this.matched.substr(0,this.matched.length-this.match.length);return(Ct.length>20?"...":"")+Ct.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ct=this.match;return Ct.length<20&&(Ct+=this._input.substr(0,20-Ct.length)),(Ct.substr(0,20)+(Ct.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ct=this.pastInput(),xt=new Array(Ct.length+1).join("-");return Ct+this.upcomingInput()+`
|
|
`+xt+"^"},test_match:function(Ct,xt){var gt,nt,dt;if(this.options.backtrack_lexer&&(dt={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&&(dt.yylloc.range=this.yylloc.range.slice(0))),(nt=Ct[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=nt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:nt?nt[nt.length-1].length-nt[nt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ct[0].length},this.yytext+=Ct[0],this.match+=Ct[0],this.matches=Ct,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(Ct[0].length),this.matched+=Ct[0],gt=this.performAction.call(this,this.yy,this,xt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),gt)return gt;if(this._backtrack){for(var q in dt)this[q]=dt[q];return!1}return!1},next:function(){if(this.done)return this.EOF;var Ct,xt,gt,nt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var dt=this._currentRules(),q=0;q<dt.length;q++)if((gt=this._input.match(this.rules[dt[q]]))&&(!xt||gt[0].length>xt[0].length)){if(xt=gt,nt=q,this.options.backtrack_lexer){if((Ct=this.test_match(gt,dt[q]))!==!1)return Ct;if(this._backtrack){xt=!1;continue}return!1}if(!this.options.flex)break}return xt?(Ct=this.test_match(xt,dt[nt]))!==!1&&Ct: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(Ct){this.conditionStack.push(Ct)},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(Ct){return(Ct=this.conditionStack.length-1-Math.abs(Ct||0))>=0?this.conditionStack[Ct]:"INITIAL"},pushState:function(Ct){this.begin(Ct)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ct,xt,gt,nt){switch(gt){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 mt(){this.yy={}}return zt.lexer=Tt,mt.prototype=zt,zt.Parser=mt,new mt}();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,B,R,U){for(R=R||{},U=E.length;U--;R[E[U]]=B);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,B,R,U,H,J,rt){switch(J.length,H){case 1:return U;case 4:break;case 6:U.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,B){if(!B.recoverable){var R=new Error(E);throw R.hash=B,R}this.trace(E)},parse:function(E){var B=this,R=[0],U=[],H=[null],J=[],rt=this.table,ft="",K=0,_t=0,at=0,st=2,bt=1,zt=J.slice.call(arguments,1),Tt=Object.create(this.lexer),mt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(mt.yy[Ct]=this.yy[Ct]);Tt.setInput(E,mt.yy),mt.yy.lexer=Tt,mt.yy.parser=this,Tt.yylloc===void 0&&(Tt.yylloc={});var xt=Tt.yylloc;J.push(xt);var gt=Tt.options&&Tt.options.ranges;function nt(){var xe;return typeof(xe=U.pop()||Tt.lex()||bt)!="number"&&(xe instanceof Array&&(xe=(U=xe).pop()),xe=B.symbols_[xe]||xe),xe}typeof mt.yy.parseError=="function"?this.parseError=mt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var dt,q,kt,W,St,Lt,Wt,ge,Ve,we={};;){if(kt=R[R.length-1],this.defaultActions[kt]?W=this.defaultActions[kt]:(dt==null&&(dt=nt()),W=rt[kt]&&rt[kt][dt]),W===void 0||!W.length||!W[0]){var he="";for(Lt in Ve=[],rt[kt])this.terminals_[Lt]&&Lt>st&&Ve.push("'"+this.terminals_[Lt]+"'");he=Tt.showPosition?"Parse error on line "+(K+1)+`:
|
|
`+Tt.showPosition()+`
|
|
Expecting `+Ve.join(", ")+", got '"+(this.terminals_[dt]||dt)+"'":"Parse error on line "+(K+1)+": Unexpected "+(dt==bt?"end of input":"'"+(this.terminals_[dt]||dt)+"'"),this.parseError(he,{text:Tt.match,token:this.terminals_[dt]||dt,line:Tt.yylineno,loc:xt,expected:Ve})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+dt);switch(W[0]){case 1:R.push(dt),H.push(Tt.yytext),J.push(Tt.yylloc),R.push(W[1]),dt=null,q?(dt=q,q=null):(_t=Tt.yyleng,ft=Tt.yytext,K=Tt.yylineno,xt=Tt.yylloc,at>0);break;case 2:if(Wt=this.productions_[W[1]][1],we.$=H[H.length-Wt],we._$={first_line:J[J.length-(Wt||1)].first_line,last_line:J[J.length-1].last_line,first_column:J[J.length-(Wt||1)].first_column,last_column:J[J.length-1].last_column},gt&&(we._$.range=[J[J.length-(Wt||1)].range[0],J[J.length-1].range[1]]),(St=this.performAction.apply(we,[ft,_t,K,mt.yy,W[1],H,J].concat(zt)))!==void 0)return St;Wt&&(R=R.slice(0,-1*Wt*2),H=H.slice(0,-1*Wt),J=J.slice(0,-1*Wt)),R.push(this.productions_[W[1]][0]),H.push(we.$),J.push(we._$),ge=rt[R[R.length-2]][R[R.length-1]],R.push(ge);break;case 3:return!0}}return!0}},S={EOF:1,parseError:function(E,B){if(!this.yy.parser)throw new Error(E);this.yy.parser.parseError(E,B)},setInput:function(E,B){return this.yy=B||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 B=E.length,R=E.split(/(?:\r\n?|\n)/g);this._input=E+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-B),this.offset-=B;var U=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),R.length-1&&(this.yylineno-=R.length-1);var H=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===U.length?this.yylloc.first_column:0)+U[U.length-R.length].length-R[0].length:this.yylloc.first_column-B},this.options.ranges&&(this.yylloc.range=[H[0],H[0]+this.yyleng-B]),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(),B=new Array(E.length+1).join("-");return E+this.upcomingInput()+`
|
|
`+B+"^"},test_match:function(E,B){var R,U,H;if(this.options.backtrack_lexer&&(H={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&&(H.yylloc.range=this.yylloc.range.slice(0))),(U=E[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=U.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:U?U[U.length-1].length-U[U.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,B,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),R)return R;if(this._backtrack){for(var J in H)this[J]=H[J];return!1}return!1},next:function(){if(this.done)return this.EOF;var E,B,R,U;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var H=this._currentRules(),J=0;J<H.length;J++)if((R=this._input.match(this.rules[H[J]]))&&(!B||R[0].length>B[0].length)){if(B=R,U=J,this.options.backtrack_lexer){if((E=this.test_match(R,H[J]))!==!1)return E;if(this._backtrack){B=!1;continue}return!1}if(!this.options.flex)break}return B?(E=this.test_match(B,H[U]))!==!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,B,R,U){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 M(){this.yy={}}return _.lexer=S,M.prototype=_,_.Parser=M,new M}();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,gt,nt,dt){for(nt=nt||{},dt=xt.length;dt--;nt[xt[dt]]=gt);return nt},b=[1,4],_=[1,5],S=[1,6],M=[1,7],E=[1,9],B=[1,11,13,15,17,19,20,26,27,28,29],R=[2,5],U=[1,6,11,13,15,17,19,20,26,27,28,29],H=[26,27,28],J=[2,8],rt=[1,18],ft=[1,19],K=[1,20],_t=[1,21],at=[1,22],st=[1,23],bt=[1,28],zt=[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,gt,nt,dt,q,kt,W){var St=kt.length-1;switch(q){case 4:dt.setShowData(!0);break;case 7:this.$=kt[St-1];break;case 9:dt.addSection(kt[St-1],dt.cleanupValue(kt[St]));break;case 10:this.$=kt[St].trim(),dt.setDiagramTitle(this.$);break;case 11:this.$=kt[St].trim(),dt.setAccTitle(this.$);break;case 12:case 13:this.$=kt[St].trim(),dt.setAccDescription(this.$);break;case 14:dt.addSection(kt[St].substr(8)),this.$=kt[St].substr(8);break;case 21:dt.parseDirective("%%{","open_directive");break;case 22:dt.parseDirective(kt[St],"type_directive");break;case 23:kt[St]=kt[St].trim().replace(/'/g,'"'),dt.parseDirective(kt[St],"arg_directive");break;case 24:dt.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:b,21:8,26:_,27:S,28:M,29:E},{1:[3]},{3:10,4:2,5:3,6:b,21:8,26:_,27:S,28:M,29:E},{3:11,4:2,5:3,6:b,21:8,26:_,27:S,28:M,29:E},d(B,R,{7:12,8:[1,13]}),d(U,[2,18]),d(U,[2,19]),d(U,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},d(H,J,{21:8,9:16,10:17,5:24,1:[2,3],11:rt,13:ft,15:K,17:_t,19:at,20:st,29:E}),d(B,R,{7:25}),{23:26,24:[1,27],32:bt},d([24,32],[2,22]),d(B,[2,6]),{4:29,26:_,27:S,28:M},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},d(H,[2,13]),d(H,[2,14]),d(H,[2,15]),d(H,J,{21:8,9:16,10:17,5:24,1:[2,4],11:rt,13:ft,15:K,17:_t,19:at,20:st,29:E}),d(zt,[2,16]),{25:34,31:[1,35]},d(zt,[2,24]),d(B,[2,7]),d(H,[2,9]),d(H,[2,10]),d(H,[2,11]),d(H,[2,12]),{23:36,32:bt},{32:[2,23]},d(zt,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(xt,gt){if(!gt.recoverable){var nt=new Error(xt);throw nt.hash=gt,nt}this.trace(xt)},parse:function(xt){var gt=this,nt=[0],dt=[],q=[null],kt=[],W=this.table,St="",Lt=0,Wt=0,ge=0,Ve=2,we=1,he=kt.slice.call(arguments,1),xe=Object.create(this.lexer),Le={yy:{}};for(var Me in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Me)&&(Le.yy[Me]=this.yy[Me]);xe.setInput(xt,Le.yy),Le.yy.lexer=xe,Le.yy.parser=this,xe.yylloc===void 0&&(xe.yylloc={});var be=xe.yylloc;kt.push(be);var Sn=xe.options&&xe.options.ranges;function me(){var Pe;return typeof(Pe=dt.pop()||xe.lex()||we)!="number"&&(Pe instanceof Array&&(Pe=(dt=Pe).pop()),Pe=gt.symbols_[Pe]||Pe),Pe}typeof Le.yy.parseError=="function"?this.parseError=Le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Je,Dt,ue,re,At,Ee,Q,ce,ct,Te={};;){if(ue=nt[nt.length-1],this.defaultActions[ue]?re=this.defaultActions[ue]:(Je==null&&(Je=me()),re=W[ue]&&W[ue][Je]),re===void 0||!re.length||!re[0]){var pe="";for(Ee in ct=[],W[ue])this.terminals_[Ee]&&Ee>Ve&&ct.push("'"+this.terminals_[Ee]+"'");pe=xe.showPosition?"Parse error on line "+(Lt+1)+`:
|
|
`+xe.showPosition()+`
|
|
Expecting `+ct.join(", ")+", got '"+(this.terminals_[Je]||Je)+"'":"Parse error on line "+(Lt+1)+": Unexpected "+(Je==we?"end of input":"'"+(this.terminals_[Je]||Je)+"'"),this.parseError(pe,{text:xe.match,token:this.terminals_[Je]||Je,line:xe.yylineno,loc:be,expected:ct})}if(re[0]instanceof Array&&re.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ue+", token: "+Je);switch(re[0]){case 1:nt.push(Je),q.push(xe.yytext),kt.push(xe.yylloc),nt.push(re[1]),Je=null,Dt?(Je=Dt,Dt=null):(Wt=xe.yyleng,St=xe.yytext,Lt=xe.yylineno,be=xe.yylloc,ge>0);break;case 2:if(Q=this.productions_[re[1]][1],Te.$=q[q.length-Q],Te._$={first_line:kt[kt.length-(Q||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(Q||1)].first_column,last_column:kt[kt.length-1].last_column},Sn&&(Te._$.range=[kt[kt.length-(Q||1)].range[0],kt[kt.length-1].range[1]]),(At=this.performAction.apply(Te,[St,Wt,Lt,Le.yy,re[1],q,kt].concat(he)))!==void 0)return At;Q&&(nt=nt.slice(0,-1*Q*2),q=q.slice(0,-1*Q),kt=kt.slice(0,-1*Q)),nt.push(this.productions_[re[1]][0]),q.push(Te.$),kt.push(Te._$),ce=W[nt[nt.length-2]][nt[nt.length-1]],nt.push(ce);break;case 3:return!0}}return!0}},mt={EOF:1,parseError:function(xt,gt){if(!this.yy.parser)throw new Error(xt);this.yy.parser.parseError(xt,gt)},setInput:function(xt,gt){return this.yy=gt||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 gt=xt.length,nt=xt.split(/(?:\r\n?|\n)/g);this._input=xt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-gt),this.offset-=gt;var dt=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),nt.length-1&&(this.yylineno-=nt.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:nt?(nt.length===dt.length?this.yylloc.first_column:0)+dt[dt.length-nt.length].length-nt[0].length:this.yylloc.first_column-gt},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-gt]),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(),gt=new Array(xt.length+1).join("-");return xt+this.upcomingInput()+`
|
|
`+gt+"^"},test_match:function(xt,gt){var nt,dt,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))),(dt=xt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=dt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:dt?dt[dt.length-1].length-dt[dt.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],nt=this.performAction.call(this,this.yy,this,gt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),nt)return nt;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,gt,nt,dt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),kt=0;kt<q.length;kt++)if((nt=this._input.match(this.rules[q[kt]]))&&(!gt||nt[0].length>gt[0].length)){if(gt=nt,dt=kt,this.options.backtrack_lexer){if((xt=this.test_match(nt,q[kt]))!==!1)return xt;if(this._backtrack){gt=!1;continue}return!1}if(!this.options.flex)break}return gt?(xt=this.test_match(gt,q[dt]))!==!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,gt,nt,dt){switch(nt){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 Ct(){this.yy={}}return Tt.lexer=mt,Ct.prototype=Tt,Tt.Parser=Ct,new Ct}();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(Dt,ue,re,At){for(re=re||{},At=Dt.length;At--;re[Dt[At]]=ue);return re},b=[1,3],_=[1,5],S=[1,6],M=[1,7],E=[1,8],B=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],R=[1,22],U=[2,13],H=[1,26],J=[1,27],rt=[1,28],ft=[1,29],K=[1,30],_t=[1,31],at=[1,24],st=[1,32],bt=[1,33],zt=[1,36],Tt=[71,72],mt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],Ct=[1,56],xt=[1,57],gt=[1,58],nt=[1,59],dt=[1,60],q=[1,61],kt=[1,62],W=[62,63],St=[1,74],Lt=[1,70],Wt=[1,71],ge=[1,72],Ve=[1,73],we=[1,75],he=[1,79],xe=[1,80],Le=[1,77],Me=[1,78],be=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],Sn={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(Dt,ue,re,At,Ee,Q,ce){var ct=Q.length-1;switch(Ee){case 6:this.$=Q[ct].trim(),At.setAccTitle(this.$);break;case 7:case 8:this.$=Q[ct].trim(),At.setAccDescription(this.$);break;case 9:At.parseDirective("%%{","open_directive");break;case 10:At.parseDirective(Q[ct],"type_directive");break;case 11:Q[ct]=Q[ct].trim().replace(/'/g,'"'),At.parseDirective(Q[ct],"arg_directive");break;case 12:At.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:At.addRequirement(Q[ct-3],Q[ct-4]);break;case 20:At.setNewReqId(Q[ct-2]);break;case 21:At.setNewReqText(Q[ct-2]);break;case 22:At.setNewReqRisk(Q[ct-2]);break;case 23:At.setNewReqVerifyMethod(Q[ct-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(Q[ct-3]);break;case 40:At.setNewElementType(Q[ct-2]);break;case 41:At.setNewElementDocRef(Q[ct-2]);break;case 44:At.addRelationship(Q[ct-2],Q[ct],Q[ct-4]);break;case 45:At.addRelationship(Q[ct-2],Q[ct-4],Q[ct]);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:S,18:M,19:E},{1:[3]},{3:10,4:2,5:[1,9],6:b,9:4,14:_,16:S,18:M,19:E},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},d(B,[2,8]),{20:[2,9]},{3:16,4:2,6:b,9:4,14:_,16:S,18:M,19:E},{1:[2,2]},{4:21,5:R,7:17,8:U,9:4,14:_,16:S,18:M,19:E,23:18,24:19,25:20,26:23,32:25,40:H,41:J,42:rt,43:ft,44:K,45:_t,53:at,71:st,72:bt},{11:34,12:[1,35],22:zt},d([12,22],[2,10]),d(B,[2,6]),d(B,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:R,7:38,8:U,9:4,14:_,16:S,18:M,19:E,23:18,24:19,25:20,26:23,32:25,40:H,41:J,42:rt,43:ft,44:K,45:_t,53:at,71:st,72:bt},{4:21,5:R,7:39,8:U,9:4,14:_,16:S,18:M,19:E,23:18,24:19,25:20,26:23,32:25,40:H,41:J,42:rt,43:ft,44:K,45:_t,53:at,71:st,72:bt},{4:21,5:R,7:40,8:U,9:4,14:_,16:S,18:M,19:E,23:18,24:19,25:20,26:23,32:25,40:H,41:J,42:rt,43:ft,44:K,45:_t,53:at,71:st,72:bt},{4:21,5:R,7:41,8:U,9:4,14:_,16:S,18:M,19:E,23:18,24:19,25:20,26:23,32:25,40:H,41:J,42:rt,43:ft,44:K,45:_t,53:at,71:st,72:bt},{4:21,5:R,7:42,8:U,9:4,14:_,16:S,18:M,19:E,23:18,24:19,25:20,26:23,32:25,40:H,41:J,42:rt,43:ft,44:K,45:_t,53:at,71:st,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(mt,[2,55]),d(mt,[2,56]),d(B,[2,4]),{13:51,21:[1,52]},d(B,[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:Ct,65:xt,66:gt,67:nt,68:dt,69:q,70:kt},{61:63,64:Ct,65:xt,66:gt,67:nt,68:dt,69:q,70:kt},{11:64,22:zt},{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(B,[2,5]),{5:St,29:69,30:Lt,33:Wt,35:ge,37:Ve,39:we},{5:he,39:xe,55:76,56:Le,58:Me},{32:81,71:st,72:bt},{32:82,71:st,72:bt},d(be,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:St,29:87,30:Lt,33:Wt,35:ge,37:Ve,39:we},d(be,[2,25]),d(be,[2,39]),{31:[1,88]},{31:[1,89]},{5:he,39:xe,55:90,56:Le,58:Me},d(be,[2,43]),d(be,[2,44]),d(be,[2,45]),{32:91,71:st,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(be,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},d(be,[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:Wt,35:ge,37:Ve,39:we},{5:St,29:117,30:Lt,33:Wt,35:ge,37:Ve,39:we},{5:St,29:118,30:Lt,33:Wt,35:ge,37:Ve,39:we},{5:St,29:119,30:Lt,33:Wt,35:ge,37:Ve,39:we},{5:he,39:xe,55:120,56:Le,58:Me},{5:he,39:xe,55:121,56:Le,58:Me},d(be,[2,20]),d(be,[2,21]),d(be,[2,22]),d(be,[2,23]),d(be,[2,40]),d(be,[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(Dt,ue){if(!ue.recoverable){var re=new Error(Dt);throw re.hash=ue,re}this.trace(Dt)},parse:function(Dt){var ue=this,re=[0],At=[],Ee=[null],Q=[],ce=this.table,ct="",Te=0,pe=0,Pe=0,on=2,Ze=1,un=Q.slice.call(arguments,1),Ie=Object.create(this.lexer),De={yy:{}};for(var ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ze)&&(De.yy[ze]=this.yy[ze]);Ie.setInput(Dt,De.yy),De.yy.lexer=Ie,De.yy.parser=this,Ie.yylloc===void 0&&(Ie.yylloc={});var Re=Ie.yylloc;Q.push(Re);var _e=Ie.options&&Ie.options.ranges;function oe(){var Se;return typeof(Se=At.pop()||Ie.lex()||Ze)!="number"&&(Se instanceof Array&&(Se=(At=Se).pop()),Se=ue.symbols_[Se]||Se),Se}typeof De.yy.parseError=="function"?this.parseError=De.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var vn,We,cn,He,En,Qn,In,Bn,Ne,Qe={};;){if(cn=re[re.length-1],this.defaultActions[cn]?He=this.defaultActions[cn]:(vn==null&&(vn=oe()),He=ce[cn]&&ce[cn][vn]),He===void 0||!He.length||!He[0]){var nn="";for(Qn in Ne=[],ce[cn])this.terminals_[Qn]&&Qn>on&&Ne.push("'"+this.terminals_[Qn]+"'");nn=Ie.showPosition?"Parse error on line "+(Te+1)+`:
|
|
`+Ie.showPosition()+`
|
|
Expecting `+Ne.join(", ")+", got '"+(this.terminals_[vn]||vn)+"'":"Parse error on line "+(Te+1)+": Unexpected "+(vn==Ze?"end of input":"'"+(this.terminals_[vn]||vn)+"'"),this.parseError(nn,{text:Ie.match,token:this.terminals_[vn]||vn,line:Ie.yylineno,loc:Re,expected:Ne})}if(He[0]instanceof Array&&He.length>1)throw new Error("Parse Error: multiple actions possible at state: "+cn+", token: "+vn);switch(He[0]){case 1:re.push(vn),Ee.push(Ie.yytext),Q.push(Ie.yylloc),re.push(He[1]),vn=null,We?(vn=We,We=null):(pe=Ie.yyleng,ct=Ie.yytext,Te=Ie.yylineno,Re=Ie.yylloc,Pe>0);break;case 2:if(In=this.productions_[He[1]][1],Qe.$=Ee[Ee.length-In],Qe._$={first_line:Q[Q.length-(In||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(In||1)].first_column,last_column:Q[Q.length-1].last_column},_e&&(Qe._$.range=[Q[Q.length-(In||1)].range[0],Q[Q.length-1].range[1]]),(En=this.performAction.apply(Qe,[ct,pe,Te,De.yy,He[1],Ee,Q].concat(un)))!==void 0)return En;In&&(re=re.slice(0,-1*In*2),Ee=Ee.slice(0,-1*In),Q=Q.slice(0,-1*In)),re.push(this.productions_[He[1]][0]),Ee.push(Qe.$),Q.push(Qe._$),Bn=ce[re[re.length-2]][re[re.length-1]],re.push(Bn);break;case 3:return!0}}return!0}},me={EOF:1,parseError:function(Dt,ue){if(!this.yy.parser)throw new Error(Dt);this.yy.parser.parseError(Dt,ue)},setInput:function(Dt,ue){return this.yy=ue||this.yy||{},this._input=Dt,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 Dt=this._input[0];return this.yytext+=Dt,this.yyleng++,this.offset++,this.match+=Dt,this.matched+=Dt,Dt.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),Dt},unput:function(Dt){var ue=Dt.length,re=Dt.split(/(?:\r\n?|\n)/g);this._input=Dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ue),this.offset-=ue;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),re.length-1&&(this.yylineno-=re.length-1);var Ee=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:re?(re.length===At.length?this.yylloc.first_column:0)+At[At.length-re.length].length-re[0].length:this.yylloc.first_column-ue},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-ue]),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(Dt){this.unput(this.match.slice(Dt))},pastInput:function(){var Dt=this.matched.substr(0,this.matched.length-this.match.length);return(Dt.length>20?"...":"")+Dt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Dt=this.match;return Dt.length<20&&(Dt+=this._input.substr(0,20-Dt.length)),(Dt.substr(0,20)+(Dt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Dt=this.pastInput(),ue=new Array(Dt.length+1).join("-");return Dt+this.upcomingInput()+`
|
|
`+ue+"^"},test_match:function(Dt,ue){var re,At,Ee;if(this.options.backtrack_lexer&&(Ee={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&&(Ee.yylloc.range=this.yylloc.range.slice(0))),(At=Dt[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+Dt[0].length},this.yytext+=Dt[0],this.match+=Dt[0],this.matches=Dt,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(Dt[0].length),this.matched+=Dt[0],re=this.performAction.call(this,this.yy,this,ue,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),re)return re;if(this._backtrack){for(var Q in Ee)this[Q]=Ee[Q];return!1}return!1},next:function(){if(this.done)return this.EOF;var Dt,ue,re,At;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),Q=0;Q<Ee.length;Q++)if((re=this._input.match(this.rules[Ee[Q]]))&&(!ue||re[0].length>ue[0].length)){if(ue=re,At=Q,this.options.backtrack_lexer){if((Dt=this.test_match(re,Ee[Q]))!==!1)return Dt;if(this._backtrack){ue=!1;continue}return!1}if(!this.options.flex)break}return ue?(Dt=this.test_match(ue,Ee[At]))!==!1&&Dt: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(Dt){this.conditionStack.push(Dt)},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(Dt){return(Dt=this.conditionStack.length-1-Math.abs(Dt||0))>=0?this.conditionStack[Dt]:"INITIAL"},pushState:function(Dt){this.begin(Dt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Dt,ue,re,At){switch(re){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 ue.yytext=ue.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 Je(){this.yy={}}return Sn.lexer=me,Je.prototype=Sn,Sn.Parser=Je,new Je}();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(Dt,ue,re,At){for(re=re||{},At=Dt.length;At--;re[Dt[At]]=ue);return re},b=[1,2],_=[1,3],S=[1,5],M=[1,7],E=[2,5],B=[1,15],R=[1,17],U=[1,18],H=[1,19],J=[1,21],rt=[1,22],ft=[1,23],K=[1,29],_t=[1,30],at=[1,31],st=[1,32],bt=[1,33],zt=[1,34],Tt=[1,35],mt=[1,36],Ct=[1,37],xt=[1,38],gt=[1,39],nt=[1,40],dt=[1,43],q=[1,44],kt=[1,45],W=[1,46],St=[1,47],Lt=[1,48],Wt=[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],Ve=[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],we=[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],he=[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],Le=[67,68,69],Me=[1,121],be=[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],Sn={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(Dt,ue,re,At,Ee,Q,ce){var ct=Q.length-1;switch(Ee){case 4:return At.apply(Q[ct]),Q[ct];case 5:case 9:this.$=[];break;case 6:Q[ct-1].push(Q[ct]),this.$=Q[ct-1];break;case 7:case 8:case 56:this.$=Q[ct];break;case 12:Q[ct-3].type="addParticipant",Q[ct-3].description=At.parseMessage(Q[ct-1]),this.$=Q[ct-3];break;case 13:Q[ct-1].type="addParticipant",this.$=Q[ct-1];break;case 14:Q[ct-3].type="addActor",Q[ct-3].description=At.parseMessage(Q[ct-1]),this.$=Q[ct-3];break;case 15:Q[ct-1].type="addActor",this.$=Q[ct-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(Q[ct-2]),sequenceIndexStep:Number(Q[ct-1]),sequenceVisible:!0,signalType:At.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(Q[ct-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:Q[ct-1]};break;case 22:this.$={type:"activeEnd",signalType:At.LINETYPE.ACTIVE_END,actor:Q[ct-1]};break;case 28:At.setDiagramTitle(Q[ct].substring(6)),this.$=Q[ct].substring(6);break;case 29:At.setDiagramTitle(Q[ct].substring(7)),this.$=Q[ct].substring(7);break;case 30:this.$=Q[ct].trim(),At.setAccTitle(this.$);break;case 31:case 32:this.$=Q[ct].trim(),At.setAccDescription(this.$);break;case 33:Q[ct-1].unshift({type:"loopStart",loopText:At.parseMessage(Q[ct-2]),signalType:At.LINETYPE.LOOP_START}),Q[ct-1].push({type:"loopEnd",loopText:Q[ct-2],signalType:At.LINETYPE.LOOP_END}),this.$=Q[ct-1];break;case 34:Q[ct-1].unshift({type:"rectStart",color:At.parseMessage(Q[ct-2]),signalType:At.LINETYPE.RECT_START}),Q[ct-1].push({type:"rectEnd",color:At.parseMessage(Q[ct-2]),signalType:At.LINETYPE.RECT_END}),this.$=Q[ct-1];break;case 35:Q[ct-1].unshift({type:"optStart",optText:At.parseMessage(Q[ct-2]),signalType:At.LINETYPE.OPT_START}),Q[ct-1].push({type:"optEnd",optText:At.parseMessage(Q[ct-2]),signalType:At.LINETYPE.OPT_END}),this.$=Q[ct-1];break;case 36:Q[ct-1].unshift({type:"altStart",altText:At.parseMessage(Q[ct-2]),signalType:At.LINETYPE.ALT_START}),Q[ct-1].push({type:"altEnd",signalType:At.LINETYPE.ALT_END}),this.$=Q[ct-1];break;case 37:Q[ct-1].unshift({type:"parStart",parText:At.parseMessage(Q[ct-2]),signalType:At.LINETYPE.PAR_START}),Q[ct-1].push({type:"parEnd",signalType:At.LINETYPE.PAR_END}),this.$=Q[ct-1];break;case 38:Q[ct-1].unshift({type:"criticalStart",criticalText:At.parseMessage(Q[ct-2]),signalType:At.LINETYPE.CRITICAL_START}),Q[ct-1].push({type:"criticalEnd",signalType:At.LINETYPE.CRITICAL_END}),this.$=Q[ct-1];break;case 39:Q[ct-1].unshift({type:"breakStart",breakText:At.parseMessage(Q[ct-2]),signalType:At.LINETYPE.BREAK_START}),Q[ct-1].push({type:"breakEnd",optText:At.parseMessage(Q[ct-2]),signalType:At.LINETYPE.BREAK_END}),this.$=Q[ct-1];break;case 42:this.$=Q[ct-3].concat([{type:"option",optionText:At.parseMessage(Q[ct-1]),signalType:At.LINETYPE.CRITICAL_OPTION},Q[ct]]);break;case 44:this.$=Q[ct-3].concat([{type:"and",parText:At.parseMessage(Q[ct-1]),signalType:At.LINETYPE.PAR_AND},Q[ct]]);break;case 46:this.$=Q[ct-3].concat([{type:"else",altText:At.parseMessage(Q[ct-1]),signalType:At.LINETYPE.ALT_ELSE},Q[ct]]);break;case 47:this.$=[Q[ct-1],{type:"addNote",placement:Q[ct-2],actor:Q[ct-1].actor,text:Q[ct]}];break;case 48:Q[ct-2]=[].concat(Q[ct-1],Q[ct-1]).slice(0,2),Q[ct-2][0]=Q[ct-2][0].actor,Q[ct-2][1]=Q[ct-2][1].actor,this.$=[Q[ct-1],{type:"addNote",placement:At.PLACEMENT.OVER,actor:Q[ct-2].slice(0,2),text:Q[ct]}];break;case 49:this.$=[Q[ct-1],{type:"addLinks",actor:Q[ct-1].actor,text:Q[ct]}];break;case 50:this.$=[Q[ct-1],{type:"addALink",actor:Q[ct-1].actor,text:Q[ct]}];break;case 51:this.$=[Q[ct-1],{type:"addProperties",actor:Q[ct-1].actor,text:Q[ct]}];break;case 52:this.$=[Q[ct-1],{type:"addDetails",actor:Q[ct-1].actor,text:Q[ct]}];break;case 55:this.$=[Q[ct-2],Q[ct]];break;case 57:this.$=At.PLACEMENT.LEFTOF;break;case 58:this.$=At.PLACEMENT.RIGHTOF;break;case 59:this.$=[Q[ct-4],Q[ct-1],{type:"addMessage",from:Q[ct-4].actor,to:Q[ct-1].actor,signalType:Q[ct-3],msg:Q[ct]},{type:"activeStart",signalType:At.LINETYPE.ACTIVE_START,actor:Q[ct-1]}];break;case 60:this.$=[Q[ct-4],Q[ct-1],{type:"addMessage",from:Q[ct-4].actor,to:Q[ct-1].actor,signalType:Q[ct-3],msg:Q[ct]},{type:"activeEnd",signalType:At.LINETYPE.ACTIVE_END,actor:Q[ct-4]}];break;case 61:this.$=[Q[ct-3],Q[ct-1],{type:"addMessage",from:Q[ct-3].actor,to:Q[ct-1].actor,signalType:Q[ct-2],msg:Q[ct]}];break;case 62:this.$={type:"addParticipant",actor:Q[ct]};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(Q[ct].trim().substring(1));break;case 72:At.parseDirective("%%{","open_directive");break;case 73:At.parseDirective(Q[ct],"type_directive");break;case 74:Q[ct]=Q[ct].trim().replace(/'/g,'"'),At.parseDirective(Q[ct],"arg_directive");break;case 75:At.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:b,5:_,6:4,7:S,11:6,79:M},{1:[3]},{3:8,4:b,5:_,6:4,7:S,11:6,79:M},{3:9,4:b,5:_,6:4,7:S,11:6,79:M},{3:10,4:b,5:_,6:4,7:S,11:6,79:M},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:B,5:R,6:41,9:14,10:16,11:6,16:U,17:42,20:H,21:20,22:J,25:rt,26:ft,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:st,38:bt,39:zt,41:Tt,42:mt,43:Ct,45:xt,47:gt,49:nt,53:dt,58:q,59:kt,60:W,61:St,69:Lt,79:M},{13:49,14:[1,50],82:Wt},d([14,82],[2,73]),d(ge,[2,6]),{6:41,10:52,11:6,16:U,17:42,20:H,21:20,22:J,25:rt,26:ft,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:st,38:bt,39:zt,41:Tt,42:mt,43:Ct,45:xt,47:gt,49:nt,53:dt,58:q,59:kt,60:W,61:St,69:Lt,79:M},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(Ve,E,{8:104}),d(Ve,E,{8:105}),d(Ve,E,{8:106}),d(we,E,{44:107,8:108}),d(he,E,{46:109,8:110}),d(xe,E,{48:111,8:112}),d(Ve,E,{8:113}),{17:116,67:[1,114],68:[1,115],69:Lt},d(Le,[2,63]),d(Le,[2,64]),d(Le,[2,65]),d(Le,[2,66]),d(Le,[2,67]),d(Le,[2,68]),d(Le,[2,69]),d(Le,[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(be,[2,10]),{13:125,82:Wt},{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:B,5:R,6:41,9:14,10:16,11:6,16:U,17:42,20:H,21:20,22:J,25:rt,26:ft,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:st,38:bt,39:zt,40:[1,129],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:nt,53:dt,58:q,59:kt,60:W,61:St,69:Lt,79:M},{4:B,5:R,6:41,9:14,10:16,11:6,16:U,17:42,20:H,21:20,22:J,25:rt,26:ft,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:st,38:bt,39:zt,40:[1,130],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:nt,53:dt,58:q,59:kt,60:W,61:St,69:Lt,79:M},{4:B,5:R,6:41,9:14,10:16,11:6,16:U,17:42,20:H,21:20,22:J,25:rt,26:ft,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:st,38:bt,39:zt,40:[1,131],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:nt,53:dt,58:q,59:kt,60:W,61:St,69:Lt,79:M},{40:[1,132]},{4:B,5:R,6:41,9:14,10:16,11:6,16:U,17:42,20:H,21:20,22:J,25:rt,26:ft,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:st,38:bt,39:zt,40:[2,45],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:nt,52:[1,133],53:dt,58:q,59:kt,60:W,61:St,69:Lt,79:M},{40:[1,134]},{4:B,5:R,6:41,9:14,10:16,11:6,16:U,17:42,20:H,21:20,22:J,25:rt,26:ft,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:st,38:bt,39:zt,40:[2,43],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:nt,51:[1,135],53:dt,58:q,59:kt,60:W,61:St,69:Lt,79:M},{40:[1,136]},{4:B,5:R,6:41,9:14,10:16,11:6,16:U,17:42,20:H,21:20,22:J,25:rt,26:ft,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:st,38:bt,39:zt,40:[2,41],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:nt,50:[1,137],53:dt,58:q,59:kt,60:W,61:St,69:Lt,79:M},{4:B,5:R,6:41,9:14,10:16,11:6,16:U,17:42,20:H,21:20,22:J,25:rt,26:ft,27:24,28:25,29:26,30:27,31:28,32:K,33:_t,34:at,36:st,38:bt,39:zt,40:[1,138],41:Tt,42:mt,43:Ct,45:xt,47:gt,49:nt,53:dt,58:q,59:kt,60:W,61:St,69:Lt,79:M},{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(be,[2,11]),d(ge,[2,12]),d(ge,[2,14]),d(we,E,{8:108,44:154}),d(he,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(Dt,ue){if(!ue.recoverable){var re=new Error(Dt);throw re.hash=ue,re}this.trace(Dt)},parse:function(Dt){var ue=this,re=[0],At=[],Ee=[null],Q=[],ce=this.table,ct="",Te=0,pe=0,Pe=0,on=2,Ze=1,un=Q.slice.call(arguments,1),Ie=Object.create(this.lexer),De={yy:{}};for(var ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ze)&&(De.yy[ze]=this.yy[ze]);Ie.setInput(Dt,De.yy),De.yy.lexer=Ie,De.yy.parser=this,Ie.yylloc===void 0&&(Ie.yylloc={});var Re=Ie.yylloc;Q.push(Re);var _e=Ie.options&&Ie.options.ranges;function oe(){var Se;return typeof(Se=At.pop()||Ie.lex()||Ze)!="number"&&(Se instanceof Array&&(Se=(At=Se).pop()),Se=ue.symbols_[Se]||Se),Se}typeof De.yy.parseError=="function"?this.parseError=De.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var vn,We,cn,He,En,Qn,In,Bn,Ne,Qe={};;){if(cn=re[re.length-1],this.defaultActions[cn]?He=this.defaultActions[cn]:(vn==null&&(vn=oe()),He=ce[cn]&&ce[cn][vn]),He===void 0||!He.length||!He[0]){var nn="";for(Qn in Ne=[],ce[cn])this.terminals_[Qn]&&Qn>on&&Ne.push("'"+this.terminals_[Qn]+"'");nn=Ie.showPosition?"Parse error on line "+(Te+1)+`:
|
|
`+Ie.showPosition()+`
|
|
Expecting `+Ne.join(", ")+", got '"+(this.terminals_[vn]||vn)+"'":"Parse error on line "+(Te+1)+": Unexpected "+(vn==Ze?"end of input":"'"+(this.terminals_[vn]||vn)+"'"),this.parseError(nn,{text:Ie.match,token:this.terminals_[vn]||vn,line:Ie.yylineno,loc:Re,expected:Ne})}if(He[0]instanceof Array&&He.length>1)throw new Error("Parse Error: multiple actions possible at state: "+cn+", token: "+vn);switch(He[0]){case 1:re.push(vn),Ee.push(Ie.yytext),Q.push(Ie.yylloc),re.push(He[1]),vn=null,We?(vn=We,We=null):(pe=Ie.yyleng,ct=Ie.yytext,Te=Ie.yylineno,Re=Ie.yylloc,Pe>0);break;case 2:if(In=this.productions_[He[1]][1],Qe.$=Ee[Ee.length-In],Qe._$={first_line:Q[Q.length-(In||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(In||1)].first_column,last_column:Q[Q.length-1].last_column},_e&&(Qe._$.range=[Q[Q.length-(In||1)].range[0],Q[Q.length-1].range[1]]),(En=this.performAction.apply(Qe,[ct,pe,Te,De.yy,He[1],Ee,Q].concat(un)))!==void 0)return En;In&&(re=re.slice(0,-1*In*2),Ee=Ee.slice(0,-1*In),Q=Q.slice(0,-1*In)),re.push(this.productions_[He[1]][0]),Ee.push(Qe.$),Q.push(Qe._$),Bn=ce[re[re.length-2]][re[re.length-1]],re.push(Bn);break;case 3:return!0}}return!0}},me={EOF:1,parseError:function(Dt,ue){if(!this.yy.parser)throw new Error(Dt);this.yy.parser.parseError(Dt,ue)},setInput:function(Dt,ue){return this.yy=ue||this.yy||{},this._input=Dt,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 Dt=this._input[0];return this.yytext+=Dt,this.yyleng++,this.offset++,this.match+=Dt,this.matched+=Dt,Dt.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),Dt},unput:function(Dt){var ue=Dt.length,re=Dt.split(/(?:\r\n?|\n)/g);this._input=Dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ue),this.offset-=ue;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),re.length-1&&(this.yylineno-=re.length-1);var Ee=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:re?(re.length===At.length?this.yylloc.first_column:0)+At[At.length-re.length].length-re[0].length:this.yylloc.first_column-ue},this.options.ranges&&(this.yylloc.range=[Ee[0],Ee[0]+this.yyleng-ue]),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(Dt){this.unput(this.match.slice(Dt))},pastInput:function(){var Dt=this.matched.substr(0,this.matched.length-this.match.length);return(Dt.length>20?"...":"")+Dt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Dt=this.match;return Dt.length<20&&(Dt+=this._input.substr(0,20-Dt.length)),(Dt.substr(0,20)+(Dt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Dt=this.pastInput(),ue=new Array(Dt.length+1).join("-");return Dt+this.upcomingInput()+`
|
|
`+ue+"^"},test_match:function(Dt,ue){var re,At,Ee;if(this.options.backtrack_lexer&&(Ee={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&&(Ee.yylloc.range=this.yylloc.range.slice(0))),(At=Dt[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+Dt[0].length},this.yytext+=Dt[0],this.match+=Dt[0],this.matches=Dt,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(Dt[0].length),this.matched+=Dt[0],re=this.performAction.call(this,this.yy,this,ue,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),re)return re;if(this._backtrack){for(var Q in Ee)this[Q]=Ee[Q];return!1}return!1},next:function(){if(this.done)return this.EOF;var Dt,ue,re,At;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ee=this._currentRules(),Q=0;Q<Ee.length;Q++)if((re=this._input.match(this.rules[Ee[Q]]))&&(!ue||re[0].length>ue[0].length)){if(ue=re,At=Q,this.options.backtrack_lexer){if((Dt=this.test_match(re,Ee[Q]))!==!1)return Dt;if(this._backtrack){ue=!1;continue}return!1}if(!this.options.flex)break}return ue?(Dt=this.test_match(ue,Ee[At]))!==!1&&Dt: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(Dt){this.conditionStack.push(Dt)},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(Dt){return(Dt=this.conditionStack.length-1-Math.abs(Dt||0))>=0?this.conditionStack[Dt]:"INITIAL"},pushState:function(Dt){this.begin(Dt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Dt,ue,re,At){switch(re){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 ue.yytext=ue.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 ue.yytext=ue.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 Je(){this.yy={}}return Sn.lexer=me,Je.prototype=Sn,Sn.Parser=Je,new Je}();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(we,he,xe,Le){for(xe=xe||{},Le=we.length;Le--;xe[we[Le]]=he);return xe},b=[1,2],_=[1,3],S=[1,5],M=[1,7],E=[2,5],B=[1,15],R=[1,17],U=[1,19],H=[1,20],J=[1,21],rt=[1,22],ft=[1,33],K=[1,23],_t=[1,24],at=[1,25],st=[1,26],bt=[1,27],zt=[1,30],Tt=[1,31],mt=[1,32],Ct=[1,35],xt=[1,36],gt=[1,37],nt=[1,38],dt=[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],Wt={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(we,he,xe,Le,Me,be,Sn){var me=be.length-1;switch(Me){case 4:return Le.setRootDoc(be[me]),be[me];case 5:this.$=[];break;case 6:be[me]!="nl"&&(be[me-1].push(be[me]),this.$=be[me-1]);break;case 7:case 8:case 39:case 40:this.$=be[me];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:be[me],type:"default",description:""};break;case 11:this.$={stmt:"state",id:be[me-1],type:"default",description:Le.trimColon(be[me])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:be[me-2],type:"default",description:""},state2:{stmt:"state",id:be[me],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:be[me-3],type:"default",description:""},state2:{stmt:"state",id:be[me-1],type:"default",description:""},description:be[me].substr(1).trim()};break;case 17:this.$={stmt:"state",id:be[me-3],type:"default",description:"",doc:be[me-1]};break;case 18:var Je=be[me],Dt=be[me-2].trim();if(be[me].match(":")){var ue=be[me].split(":");Je=ue[0],Dt=[Dt,ue[1]]}this.$={stmt:"state",id:Je,type:"default",description:Dt};break;case 19:this.$={stmt:"state",id:be[me-3],type:"default",description:be[me-5],doc:be[me-1]};break;case 20:this.$={stmt:"state",id:be[me],type:"fork"};break;case 21:this.$={stmt:"state",id:be[me],type:"join"};break;case 22:this.$={stmt:"state",id:be[me],type:"choice"};break;case 23:this.$={stmt:"state",id:Le.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:be[me-1].trim(),note:{position:be[me-2].trim(),text:be[me].trim()}};break;case 28:this.$=be[me].trim(),Le.setAccTitle(this.$);break;case 29:case 30:this.$=be[me].trim(),Le.setAccDescription(this.$);break;case 33:Le.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 34:Le.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 35:Le.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 36:Le.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 43:Le.parseDirective("%%{","open_directive");break;case 44:Le.parseDirective(be[me],"type_directive");break;case 45:be[me]=be[me].trim().replace(/'/g,'"'),Le.parseDirective(be[me],"arg_directive");break;case 46:Le.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:b,5:_,6:4,7:S,36:6,50:M},{1:[3]},{3:8,4:b,5:_,6:4,7:S,36:6,50:M},{3:9,4:b,5:_,6:4,7:S,36:6,50:M},{3:10,4:b,5:_,6:4,7:S,36:6,50:M},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:B,5:R,6:28,9:14,10:16,11:18,14:U,15:H,17:J,20:rt,22:ft,23:K,24:_t,25:at,26:st,27:bt,30:29,31:zt,33:Tt,35:mt,36:6,41:Ct,42:xt,43:gt,44:nt,47:dt,50:M},{38:39,39:[1,40],53:q},d([39,53],[2,44]),d(kt,[2,6]),{6:28,10:42,11:18,14:U,15:H,17:J,20:rt,22:ft,23:K,24:_t,25:at,26:st,27:bt,30:29,31:zt,33:Tt,35:mt,36:6,41:Ct,42:xt,43:gt,44:nt,47:dt,50:M},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:ft,47:dt},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:B,5:R,6:28,9:14,10:16,11:18,14:U,15:H,17:J,19:[1,63],20:rt,22:ft,23:K,24:_t,25:at,26:st,27:bt,30:29,31:zt,33:Tt,35:mt,36:6,41:Ct,42:xt,43:gt,44:nt,47:dt,50:M},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:B,5:R,6:28,9:14,10:16,11:18,14:U,15:H,17:J,19:[1,68],20:rt,22:ft,23:K,24:_t,25:at,26:st,27:bt,30:29,31:zt,33:Tt,35:mt,36:6,41:Ct,42:xt,43:gt,44:nt,47:dt,50:M},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(we,he){if(!he.recoverable){var xe=new Error(we);throw xe.hash=he,xe}this.trace(we)},parse:function(we){var he=this,xe=[0],Le=[],Me=[null],be=[],Sn=this.table,me="",Je=0,Dt=0,ue=0,re=2,At=1,Ee=be.slice.call(arguments,1),Q=Object.create(this.lexer),ce={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(ce.yy[ct]=this.yy[ct]);Q.setInput(we,ce.yy),ce.yy.lexer=Q,ce.yy.parser=this,Q.yylloc===void 0&&(Q.yylloc={});var Te=Q.yylloc;be.push(Te);var pe=Q.options&&Q.options.ranges;function Pe(){var cn;return typeof(cn=Le.pop()||Q.lex()||At)!="number"&&(cn instanceof Array&&(cn=(Le=cn).pop()),cn=he.symbols_[cn]||cn),cn}typeof ce.yy.parseError=="function"?this.parseError=ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var on,Ze,un,Ie,De,ze,Re,_e,oe,vn={};;){if(un=xe[xe.length-1],this.defaultActions[un]?Ie=this.defaultActions[un]:(on==null&&(on=Pe()),Ie=Sn[un]&&Sn[un][on]),Ie===void 0||!Ie.length||!Ie[0]){var We="";for(ze in oe=[],Sn[un])this.terminals_[ze]&&ze>re&&oe.push("'"+this.terminals_[ze]+"'");We=Q.showPosition?"Parse error on line "+(Je+1)+`:
|
|
`+Q.showPosition()+`
|
|
Expecting `+oe.join(", ")+", got '"+(this.terminals_[on]||on)+"'":"Parse error on line "+(Je+1)+": Unexpected "+(on==At?"end of input":"'"+(this.terminals_[on]||on)+"'"),this.parseError(We,{text:Q.match,token:this.terminals_[on]||on,line:Q.yylineno,loc:Te,expected:oe})}if(Ie[0]instanceof Array&&Ie.length>1)throw new Error("Parse Error: multiple actions possible at state: "+un+", token: "+on);switch(Ie[0]){case 1:xe.push(on),Me.push(Q.yytext),be.push(Q.yylloc),xe.push(Ie[1]),on=null,Ze?(on=Ze,Ze=null):(Dt=Q.yyleng,me=Q.yytext,Je=Q.yylineno,Te=Q.yylloc,ue>0);break;case 2:if(Re=this.productions_[Ie[1]][1],vn.$=Me[Me.length-Re],vn._$={first_line:be[be.length-(Re||1)].first_line,last_line:be[be.length-1].last_line,first_column:be[be.length-(Re||1)].first_column,last_column:be[be.length-1].last_column},pe&&(vn._$.range=[be[be.length-(Re||1)].range[0],be[be.length-1].range[1]]),(De=this.performAction.apply(vn,[me,Dt,Je,ce.yy,Ie[1],Me,be].concat(Ee)))!==void 0)return De;Re&&(xe=xe.slice(0,-1*Re*2),Me=Me.slice(0,-1*Re),be=be.slice(0,-1*Re)),xe.push(this.productions_[Ie[1]][0]),Me.push(vn.$),be.push(vn._$),_e=Sn[xe[xe.length-2]][xe[xe.length-1]],xe.push(_e);break;case 3:return!0}}return!0}},ge={EOF:1,parseError:function(we,he){if(!this.yy.parser)throw new Error(we);this.yy.parser.parseError(we,he)},setInput:function(we,he){return this.yy=he||this.yy||{},this._input=we,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 we=this._input[0];return this.yytext+=we,this.yyleng++,this.offset++,this.match+=we,this.matched+=we,we.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),we},unput:function(we){var he=we.length,xe=we.split(/(?:\r\n?|\n)/g);this._input=we+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var Le=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===Le.length?this.yylloc.first_column:0)+Le[Le.length-xe.length].length-xe[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[Me[0],Me[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(we){this.unput(this.match.slice(we))},pastInput:function(){var we=this.matched.substr(0,this.matched.length-this.match.length);return(we.length>20?"...":"")+we.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var we=this.match;return we.length<20&&(we+=this._input.substr(0,20-we.length)),(we.substr(0,20)+(we.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var we=this.pastInput(),he=new Array(we.length+1).join("-");return we+this.upcomingInput()+`
|
|
`+he+"^"},test_match:function(we,he){var xe,Le,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))),(Le=we[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Le.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Le?Le[Le.length-1].length-Le[Le.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+we[0].length},this.yytext+=we[0],this.match+=we[0],this.matches=we,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(we[0].length),this.matched+=we[0],xe=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),xe)return xe;if(this._backtrack){for(var be in Me)this[be]=Me[be];return!1}return!1},next:function(){if(this.done)return this.EOF;var we,he,xe,Le;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Me=this._currentRules(),be=0;be<Me.length;be++)if((xe=this._input.match(this.rules[Me[be]]))&&(!he||xe[0].length>he[0].length)){if(he=xe,Le=be,this.options.backtrack_lexer){if((we=this.test_match(xe,Me[be]))!==!1)return we;if(this._backtrack){he=!1;continue}return!1}if(!this.options.flex)break}return he?(we=this.test_match(he,Me[Le]))!==!1&&we: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(we){this.conditionStack.push(we)},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(we){return(we=this.conditionStack.length-1-Math.abs(we||0))>=0?this.conditionStack[we]:"INITIAL"},pushState:function(we){this.begin(we)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(we,he,xe,Le){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(),he.yytext=he.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),he.yytext=he.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),he.yytext=he.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(),he.yytext=he.yytext.substr(2).trim(),29;case 57:return this.popState(),he.yytext=he.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 he.yytext=he.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 Ve(){this.yy={}}return Wt.lexer=ge,Ve.prototype=Wt,Wt.Parser=Ve,new Ve}();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(at,st,bt,zt){for(bt=bt||{},zt=at.length;zt--;bt[at[zt]]=st);return bt},b=[1,2],_=[1,5],S=[6,9,11,17,18,20,22,23,24,26],M=[1,15],E=[1,16],B=[1,17],R=[1,18],U=[1,19],H=[1,20],J=[1,24],rt=[4,6,9,11,17,18,20,22,23,24,26],ft={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(at,st,bt,zt,Tt,mt,Ct){var xt=mt.length-1;switch(Tt){case 1:return mt[xt-1];case 3:case 7:case 8:this.$=[];break;case 4:mt[xt-1].push(mt[xt]),this.$=mt[xt-1];break;case 5:case 6:this.$=mt[xt];break;case 11:zt.setDiagramTitle(mt[xt].substr(6)),this.$=mt[xt].substr(6);break;case 12:this.$=mt[xt].trim(),zt.setAccTitle(this.$);break;case 13:case 14:this.$=mt[xt].trim(),zt.setAccDescription(this.$);break;case 15:zt.addSection(mt[xt].substr(8)),this.$=mt[xt].substr(8);break;case 16:zt.addTask(mt[xt-1],mt[xt]),this.$="task";break;case 18:zt.parseDirective("%%{","open_directive");break;case 19:zt.parseDirective(mt[xt],"type_directive");break;case 20:mt[xt]=mt[xt].trim().replace(/'/g,'"'),zt.parseDirective(mt[xt],"arg_directive");break;case 21:zt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:b,7:3,12:4,26:_},{1:[3]},d(S,[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:M,18:E,20:B,22:R,23:U,24:H,26:_},{1:[2,2]},{14:22,15:[1,23],29:J},d([15,29],[2,19]),d(S,[2,8],{1:[2,1]}),d(S,[2,4]),{7:21,10:25,12:4,17:M,18:E,20:B,22:R,23:U,24:H,26:_},d(S,[2,6]),d(S,[2,7]),d(S,[2,11]),{19:[1,26]},{21:[1,27]},d(S,[2,14]),d(S,[2,15]),{25:[1,28]},d(S,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},d(S,[2,5]),d(S,[2,12]),d(S,[2,13]),d(S,[2,16]),d(rt,[2,9]),{14:32,29:J},{29:[2,20]},{11:[1,33]},d(rt,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(at,st){if(!st.recoverable){var bt=new Error(at);throw bt.hash=st,bt}this.trace(at)},parse:function(at){var st=this,bt=[0],zt=[],Tt=[null],mt=[],Ct=this.table,xt="",gt=0,nt=0,dt=0,q=2,kt=1,W=mt.slice.call(arguments,1),St=Object.create(this.lexer),Lt={yy:{}};for(var Wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Wt)&&(Lt.yy[Wt]=this.yy[Wt]);St.setInput(at,Lt.yy),Lt.yy.lexer=St,Lt.yy.parser=this,St.yylloc===void 0&&(St.yylloc={});var ge=St.yylloc;mt.push(ge);var Ve=St.options&&St.options.ranges;function we(){var At;return typeof(At=zt.pop()||St.lex()||kt)!="number"&&(At instanceof Array&&(At=(zt=At).pop()),At=st.symbols_[At]||At),At}typeof Lt.yy.parseError=="function"?this.parseError=Lt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var he,xe,Le,Me,be,Sn,me,Je,Dt,ue={};;){if(Le=bt[bt.length-1],this.defaultActions[Le]?Me=this.defaultActions[Le]:(he==null&&(he=we()),Me=Ct[Le]&&Ct[Le][he]),Me===void 0||!Me.length||!Me[0]){var re="";for(Sn in Dt=[],Ct[Le])this.terminals_[Sn]&&Sn>q&&Dt.push("'"+this.terminals_[Sn]+"'");re=St.showPosition?"Parse error on line "+(gt+1)+`:
|
|
`+St.showPosition()+`
|
|
Expecting `+Dt.join(", ")+", got '"+(this.terminals_[he]||he)+"'":"Parse error on line "+(gt+1)+": Unexpected "+(he==kt?"end of input":"'"+(this.terminals_[he]||he)+"'"),this.parseError(re,{text:St.match,token:this.terminals_[he]||he,line:St.yylineno,loc:ge,expected:Dt})}if(Me[0]instanceof Array&&Me.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Le+", token: "+he);switch(Me[0]){case 1:bt.push(he),Tt.push(St.yytext),mt.push(St.yylloc),bt.push(Me[1]),he=null,xe?(he=xe,xe=null):(nt=St.yyleng,xt=St.yytext,gt=St.yylineno,ge=St.yylloc,dt>0);break;case 2:if(me=this.productions_[Me[1]][1],ue.$=Tt[Tt.length-me],ue._$={first_line:mt[mt.length-(me||1)].first_line,last_line:mt[mt.length-1].last_line,first_column:mt[mt.length-(me||1)].first_column,last_column:mt[mt.length-1].last_column},Ve&&(ue._$.range=[mt[mt.length-(me||1)].range[0],mt[mt.length-1].range[1]]),(be=this.performAction.apply(ue,[xt,nt,gt,Lt.yy,Me[1],Tt,mt].concat(W)))!==void 0)return be;me&&(bt=bt.slice(0,-1*me*2),Tt=Tt.slice(0,-1*me),mt=mt.slice(0,-1*me)),bt.push(this.productions_[Me[1]][0]),Tt.push(ue.$),mt.push(ue._$),Je=Ct[bt[bt.length-2]][bt[bt.length-1]],bt.push(Je);break;case 3:return!0}}return!0}},K={EOF:1,parseError:function(at,st){if(!this.yy.parser)throw new Error(at);this.yy.parser.parseError(at,st)},setInput:function(at,st){return this.yy=st||this.yy||{},this._input=at,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 at=this._input[0];return this.yytext+=at,this.yyleng++,this.offset++,this.match+=at,this.matched+=at,at.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),at},unput:function(at){var st=at.length,bt=at.split(/(?:\r\n?|\n)/g);this._input=at+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-st),this.offset-=st;var zt=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===zt.length?this.yylloc.first_column:0)+zt[zt.length-bt.length].length-bt[0].length:this.yylloc.first_column-st},this.options.ranges&&(this.yylloc.range=[Tt[0],Tt[0]+this.yyleng-st]),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(at){this.unput(this.match.slice(at))},pastInput:function(){var at=this.matched.substr(0,this.matched.length-this.match.length);return(at.length>20?"...":"")+at.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var at=this.match;return at.length<20&&(at+=this._input.substr(0,20-at.length)),(at.substr(0,20)+(at.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var at=this.pastInput(),st=new Array(at.length+1).join("-");return at+this.upcomingInput()+`
|
|
`+st+"^"},test_match:function(at,st){var bt,zt,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))),(zt=at[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=zt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:zt?zt[zt.length-1].length-zt[zt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+at[0].length},this.yytext+=at[0],this.match+=at[0],this.matches=at,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(at[0].length),this.matched+=at[0],bt=this.performAction.call(this,this.yy,this,st,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),bt)return bt;if(this._backtrack){for(var mt in Tt)this[mt]=Tt[mt];return!1}return!1},next:function(){if(this.done)return this.EOF;var at,st,bt,zt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Tt=this._currentRules(),mt=0;mt<Tt.length;mt++)if((bt=this._input.match(this.rules[Tt[mt]]))&&(!st||bt[0].length>st[0].length)){if(st=bt,zt=mt,this.options.backtrack_lexer){if((at=this.test_match(bt,Tt[mt]))!==!1)return at;if(this._backtrack){st=!1;continue}return!1}if(!this.options.flex)break}return st?(at=this.test_match(st,Tt[zt]))!==!1&&at: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(at){this.conditionStack.push(at)},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(at){return(at=this.conditionStack.length-1-Math.abs(at||0))>=0?this.conditionStack[at]:"INITIAL"},pushState:function(at){this.begin(at)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(at,st,bt,zt){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 ft.lexer=K,_t.prototype=ft,ft.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(S){var M,E=(M=S||"",M.replace(m,function(U,H){return String.fromCharCode(H)})).replace(d,"").trim();if(!E)return"about:blank";if(function(U){return _.indexOf(U[0])>-1}(E))return E;var B=E.match(b);if(!B)return E;var R=B[0];return h.test(R)?"about:blank":E}},3841:f=>{f.exports=function(k,h){return k.intersect(h)}},6359:(f,k,h)=>{h.d(k,{Z:()=>Di});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(){}},S=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,M("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",M("FATAL"))),l<=b.error&&(_.error=console.error?console.error.bind(console,M("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",M("ERROR"))),l<=b.warn&&(_.warn=console.warn?console.warn.bind(console,M("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",M("WARN"))),l<=b.info&&(_.info=console.info?console.info.bind(console,M("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",M("INFO"))),l<=b.debug&&(_.debug=console.debug?console.debug.bind(console,M("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",M("DEBUG")))},M=function(l){var o=d()().format("ss.SSS");return"%c".concat(o," : ").concat(l," : ")},E=h(7543),B="comm",R="rule",U="decl",H=Math.abs,J=String.fromCharCode;function rt(l){return l.trim()}function ft(l,o,y){return l.replace(o,y)}function K(l,o){return l.indexOf(o)}function _t(l,o){return 0|l.charCodeAt(o)}function at(l,o,y){return l.slice(o,y)}function st(l){return l.length}function bt(l){return l.length}function zt(l,o){return o.push(l),l}function Tt(l,o){for(var y="",w=bt(l),A=0;A<w;A++)y+=o(l[A],A,l,o)||"";return y}function mt(l,o,y,w){switch(l.type){case"@import":case U:return l.return=l.return||l.value;case B:return"";case"@keyframes":return l.return=l.value+"{"+Tt(l.children,w)+"}";case R:l.value=l.props.join(",")}return st(y=Tt(l.children,w))?l.return=l.value+"{"+y+"}":""}var Ct=1,xt=1,gt=0,nt=0,dt=0,q="";function kt(l,o,y,w,A,L,I){return{value:l,root:o,parent:y,type:w,props:A,children:L,line:Ct,column:xt,length:I,return:""}}function W(){return dt=nt>0?_t(q,--nt):0,xt--,dt===10&&(xt=1,Ct--),dt}function St(){return dt=nt<gt?_t(q,nt++):0,xt++,dt===10&&(xt=1,Ct++),dt}function Lt(){return _t(q,nt)}function Wt(){return nt}function ge(l,o){return at(q,l,o)}function Ve(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 we(l){return rt(ge(nt-1,Le(l===91?l+2:l===40?l+1:l)))}function he(l){for(;(dt=Lt())&&dt<33;)St();return Ve(l)>2||Ve(dt)>3?"":" "}function xe(l,o){for(;--o&&St()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););return ge(l,Wt()+(o<6&&Lt()==32&&St()==32))}function Le(l){for(;St();)switch(dt){case l:return nt;case 34:case 39:l!==34&&l!==39&&Le(dt);break;case 40:l===41&&Le(l);break;case 92:St()}return nt}function Me(l,o){for(;St()&&l+dt!==57&&(l+dt!==84||Lt()!==47););return"/*"+ge(o,nt-1)+"*"+J(l===47?l:St())}function be(l){for(;!Ve(Lt());)St();return ge(l,nt)}function Sn(l){return function(o){return q="",o}(me("",null,null,null,[""],l=function(o){return Ct=xt=1,gt=st(q=o),nt=0,[]}(l),0,[0],l))}function me(l,o,y,w,A,L,I,O,F){for(var Y=0,X=0,et=I,ht=0,ot=0,It=0,Nt=1,Yt=1,jt=1,Mt=0,Ft="",Ot=A,te=L,Oe=w,ke=Ft;Yt;)switch(It=Mt,Mt=St()){case 40:if(It!=108&&ke.charCodeAt(et-1)==58){K(ke+=ft(we(Mt),"&","&\f"),"&\f")!=-1&&(jt=-1);break}case 34:case 39:case 91:ke+=we(Mt);break;case 9:case 10:case 13:case 32:ke+=he(It);break;case 92:ke+=xe(Wt()-1,7);continue;case 47:switch(Lt()){case 42:case 47:zt(Dt(Me(St(),Wt()),o,y),F);break;default:ke+="/"}break;case 123*Nt:O[Y++]=st(ke)*jt;case 125*Nt:case 59:case 0:switch(Mt){case 0:case 125:Yt=0;case 59+X:ot>0&&st(ke)-et&&zt(ot>32?ue(ke+";",w,y,et-1):ue(ft(ke," ","")+";",w,y,et-2),F);break;case 59:ke+=";";default:if(zt(Oe=Je(ke,o,y,Y,X,A,O,Ft,Ot=[],te=[],et),L),Mt===123)if(X===0)me(ke,o,Oe,Oe,Ot,L,et,O,te);else switch(ht){case 100:case 109:case 115:me(l,Oe,Oe,w&&zt(Je(l,Oe,Oe,0,0,A,O,Ft,A,Ot=[],et),te),A,te,et,O,w?Ot:te);break;default:me(ke,Oe,Oe,Oe,[""],te,0,O,te)}}Y=X=ot=0,Nt=jt=1,Ft=ke="",et=I;break;case 58:et=1+st(ke),ot=It;default:if(Nt<1){if(Mt==123)--Nt;else if(Mt==125&&Nt++==0&&W()==125)continue}switch(ke+=J(Mt),Mt*Nt){case 38:jt=X>0?1:(ke+="\f",-1);break;case 44:O[Y++]=(st(ke)-1)*jt,jt=1;break;case 64:Lt()===45&&(ke+=we(St())),ht=Lt(),X=et=st(Ft=ke+=be(Wt())),Mt++;break;case 45:It===45&&st(ke)==2&&(Nt=0)}}return L}function Je(l,o,y,w,A,L,I,O,F,Y,X){for(var et=A-1,ht=A===0?L:[""],ot=bt(ht),It=0,Nt=0,Yt=0;It<w;++It)for(var jt=0,Mt=at(l,et+1,et=H(Nt=I[It])),Ft=l;jt<ot;++jt)(Ft=rt(Nt>0?ht[jt]+" "+Mt:ft(Mt,/&\f/g,ht[jt])))&&(F[Yt++]=Ft);return kt(l,o,y,A===0?R:O,F,Y,X)}function Dt(l,o,y){return kt(l,o,y,B,J(dt),at(l,2,-2),0)}function ue(l,o,y,w){return kt(l,o,y,U,at(l,0,w),at(l,w+1,-1),w)}const re="9.1.5";function At(l){return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},At(l)}const Ee=function l(o,y,w){var A=Object.assign({depth:2,clobber:!1},w),L=A.depth,I=A.clobber;return Array.isArray(y)&&!Array.isArray(o)?(y.forEach(function(O){return l(o,O,w)}),o):Array.isArray(y)&&Array.isArray(o)?(y.forEach(function(O){o.indexOf(O)===-1&&o.push(O)}),o):o===void 0||L<=0?o!=null&&At(o)==="object"&&At(y)==="object"?Object.assign(o,y):y:(y!==void 0&&At(o)==="object"&&At(y)==="object"&&Object.keys(y).forEach(function(O){At(y[O])!=="object"||o[O]!==void 0&&At(o[O])!=="object"?(I||At(o[O])!=="object"&&At(y[O])!=="object")&&(o[O]=y[O]):(o[O]===void 0&&(o[O]=Array.isArray(y[O])?[]:{}),o[O]=l(o[O],y[O],{depth:L-1,clobber:I}))}),o)},Q={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 o=l/255;return l>.03928?Math.pow((o+.055)/1.055,2.4):o/12.92},hue2rgb:(l,o,y)=>(y<0&&(y+=1),y>1&&(y-=1),y<1/6?l+6*(o-l)*y:y<.5?o:y<2/3?l+(o-l)*(2/3-y)*6:l),hsl2rgb:({h:l,s:o,l:y},w)=>{if(!o)return 2.55*y;l/=360,o/=100;const A=(y/=100)<.5?y*(1+o):y+o-y*o,L=2*y-A;switch(w){case"r":return 255*Q.hue2rgb(L,A,l+1/3);case"g":return 255*Q.hue2rgb(L,A,l);case"b":return 255*Q.hue2rgb(L,A,l-1/3)}},rgb2hsl:({r:l,g:o,b:y},w)=>{l/=255,o/=255,y/=255;const A=Math.max(l,o,y),L=Math.min(l,o,y),I=(A+L)/2;if(w==="l")return 100*I;if(A===L)return 0;const O=A-L;if(w==="s")return 100*(I>.5?O/(2-A-L):O/(A+L));switch(A){case l:return 60*((o-y)/O+(o<y?6:0));case o:return 60*((y-l)/O+2);case y:return 60*((l-o)/O+4);default:return-1}}},ce={channel:Q,lang:{clamp:(l,o,y)=>o>y?Math.min(o,Math.max(y,l)):Math.min(y,Math.max(o,l)),round:l=>Math.round(1e10*l)/1e10},unit:{dec2hex:l=>{const o=Math.round(l).toString(16);return o.length>1?o:`0${o}`}}},ct={};for(let l=0;l<=255;l++)ct[l]=ce.unit.dec2hex(l);const Te=new class{constructor(l,o){this.color=o,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,o){return this.color=o,this.changed=!1,this.data=l,this.type.type=0,this}_ensureHSL(){const l=this.data,{h:o,s:y,l:w}=l;o===void 0&&(l.h=ce.channel.rgb2hsl(l,"h")),y===void 0&&(l.s=ce.channel.rgb2hsl(l,"s")),w===void 0&&(l.l=ce.channel.rgb2hsl(l,"l"))}_ensureRGB(){const l=this.data,{r:o,g:y,b:w}=l;o===void 0&&(l.r=ce.channel.hsl2rgb(l,"r")),y===void 0&&(l.g=ce.channel.hsl2rgb(l,"g")),w===void 0&&(l.b=ce.channel.hsl2rgb(l,"b"))}get r(){const l=this.data,o=l.r;return this.type.is(2)||o===void 0?(this._ensureHSL(),ce.channel.hsl2rgb(l,"r")):o}get g(){const l=this.data,o=l.g;return this.type.is(2)||o===void 0?(this._ensureHSL(),ce.channel.hsl2rgb(l,"g")):o}get b(){const l=this.data,o=l.b;return this.type.is(2)||o===void 0?(this._ensureHSL(),ce.channel.hsl2rgb(l,"b")):o}get h(){const l=this.data,o=l.h;return this.type.is(1)||o===void 0?(this._ensureRGB(),ce.channel.rgb2hsl(l,"h")):o}get s(){const l=this.data,o=l.s;return this.type.is(1)||o===void 0?(this._ensureRGB(),ce.channel.rgb2hsl(l,"s")):o}get l(){const l=this.data,o=l.l;return this.type.is(1)||o===void 0?(this._ensureRGB(),ce.channel.rgb2hsl(l,"l")):o}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"),pe={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:l=>{if(l.charCodeAt(0)!==35)return;const o=l.match(pe.re);if(!o)return;const y=o[1],w=parseInt(y,16),A=y.length,L=A%4==0,I=A>4,O=I?1:17,F=I?8:4,Y=L?0:-1,X=I?255:15;return Te.set({r:(w>>F*(Y+3)&X)*O,g:(w>>F*(Y+2)&X)*O,b:(w>>F*(Y+1)&X)*O,a:L?(w&X)*O/255:1},l)},stringify:l=>{const{r:o,g:y,b:w,a:A}=l;return A<1?`#${ct[Math.round(o)]}${ct[Math.round(y)]}${ct[Math.round(w)]}${ct[Math.round(255*A)]}`:`#${ct[Math.round(o)]}${ct[Math.round(y)]}${ct[Math.round(w)]}`}},Pe=pe,on={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 o=l.match(on.hueRe);if(o){const[,y,w]=o;switch(w){case"grad":return ce.channel.clamp.h(.9*parseFloat(y));case"rad":return ce.channel.clamp.h(180*parseFloat(y)/Math.PI);case"turn":return ce.channel.clamp.h(360*parseFloat(y))}}return ce.channel.clamp.h(parseFloat(l))},parse:l=>{const o=l.charCodeAt(0);if(o!==104&&o!==72)return;const y=l.match(on.re);if(!y)return;const[,w,A,L,I,O]=y;return Te.set({h:on._hue2deg(w),s:ce.channel.clamp.s(parseFloat(A)),l:ce.channel.clamp.l(parseFloat(L)),a:I?ce.channel.clamp.a(O?parseFloat(I)/100:parseFloat(I)):1},l)},stringify:l=>{const{h:o,s:y,l:w,a:A}=l;return A<1?`hsla(${ce.lang.round(o)}, ${ce.lang.round(y)}%, ${ce.lang.round(w)}%, ${A})`:`hsl(${ce.lang.round(o)}, ${ce.lang.round(y)}%, ${ce.lang.round(w)}%)`}},Ze=on,un={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 o=un.colors[l];if(o)return Pe.parse(o)},stringify:l=>{const o=Pe.stringify(l);for(const y in un.colors)if(un.colors[y]===o)return y}},Ie=un,De={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 o=l.charCodeAt(0);if(o!==114&&o!==82)return;const y=l.match(De.re);if(!y)return;const[,w,A,L,I,O,F,Y,X]=y;return Te.set({r:ce.channel.clamp.r(A?2.55*parseFloat(w):parseFloat(w)),g:ce.channel.clamp.g(I?2.55*parseFloat(L):parseFloat(L)),b:ce.channel.clamp.b(F?2.55*parseFloat(O):parseFloat(O)),a:Y?ce.channel.clamp.a(X?parseFloat(Y)/100:parseFloat(Y)):1},l)},stringify:l=>{const{r:o,g:y,b:w,a:A}=l;return A<1?`rgba(${ce.lang.round(o)}, ${ce.lang.round(y)}, ${ce.lang.round(w)}, ${ce.lang.round(A)})`:`rgb(${ce.lang.round(o)}, ${ce.lang.round(y)}, ${ce.lang.round(w)})`}},ze=De,Re={format:{keyword:Ie,hex:Pe,rgb:ze,rgba:ze,hsl:Ze,hsla:Ze},parse:l=>{if(typeof l!="string")return l;const o=Pe.parse(l)||ze.parse(l)||Ze.parse(l)||Ie.parse(l);if(o)return o;throw new Error(`Unsupported color format: "${l}"`)},stringify:l=>!l.changed&&l.color?l.color:l.type.is(2)||l.data.r===void 0?Ze.stringify(l):l.a<1||!Number.isInteger(l.r)||!Number.isInteger(l.g)||!Number.isInteger(l.b)?ze.stringify(l):Pe.stringify(l)},_e=(l,o)=>{const y=Re.parse(l);for(const w in o)y[w]=ce.channel.clamp[w](o[w]);return Re.stringify(y)},oe=(l,o)=>{const y=Re.parse(l),w={};for(const A in o)o[A]&&(w[A]=y[A]+o[A]);return _e(l,w)},vn=(l,o,y=0,w=1)=>{if(typeof l!="number")return _e(l,{a:o});const A=Te.set({r:ce.channel.clamp.r(l),g:ce.channel.clamp.g(o),b:ce.channel.clamp.b(y),a:ce.channel.clamp.a(w)});return Re.stringify(A)},We=(l,o=100)=>{const y=Re.parse(l);return y.r=255-y.r,y.g=255-y.g,y.b=255-y.b,((w,A,L=50)=>{const{r:I,g:O,b:F,a:Y}=Re.parse(w),{r:X,g:et,b:ht,a:ot}=Re.parse(A),It=L/100,Nt=2*It-1,Yt=Y-ot,jt=((Nt*Yt==-1?Nt:(Nt+Yt)/(1+Nt*Yt))+1)/2,Mt=1-jt;return vn(I*jt+X*Mt,O*jt+et*Mt,F*jt+ht*Mt,Y*It+ot*(1-It))})(y,l,o)},cn=(l,o,y)=>{const w=Re.parse(l),A=w[o],L=ce.channel.clamp[o](A+y);return A!==L&&(w[o]=L),Re.stringify(w)},He=(l,o)=>cn(l,"l",-o),En=(l,o)=>cn(l,"l",o);var Qn=function(l,o){return oe(l,o?{s:-40,l:10}:{s:-40,l:-10})};function In(l){return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},In(l)}function Bn(l,o){for(var y=0;y<o.length;y++){var w=o[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}var Ne=function(){function l(){(function(w,A){if(!(w instanceof A))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 o,y;return o=l,y=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||oe(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||oe(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Qn(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Qn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Qn(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Qn(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||We(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||We(this.tertiaryColor),this.lineColor=this.lineColor||We(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?He(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||He(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||We(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||En(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||oe(this.primaryColor,{h:64}),this.fillType3=this.fillType3||oe(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||oe(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||oe(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||oe(this.primaryColor,{h:128}),this.fillType7=this.fillType7||oe(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||oe(this.primaryColor,{l:-10}),this.pie5=this.pie5||oe(this.secondaryColor,{l:-10}),this.pie6=this.pie6||oe(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||oe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||oe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||oe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||oe(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||oe(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||oe(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?He(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||oe(this.primaryColor,{h:-30}),this.git4=this.git4||oe(this.primaryColor,{h:-60}),this.git5=this.git5||oe(this.primaryColor,{h:-90}),this.git6=this.git6||oe(this.primaryColor,{h:60}),this.git7=this.git7||oe(this.primaryColor,{h:120}),this.darkMode?(this.git0=En(this.git0,25),this.git1=En(this.git1,25),this.git2=En(this.git2,25),this.git3=En(this.git3,25),this.git4=En(this.git4,25),this.git5=En(this.git5,25),this.git6=En(this.git6,25),this.git7=En(this.git7,25)):(this.git0=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)),this.gitInv0=this.gitInv0||We(this.git0),this.gitInv1=this.gitInv1||We(this.git1),this.gitInv2=this.gitInv2||We(this.git2),this.gitInv3=this.gitInv3||We(this.git3),this.gitInv4=this.gitInv4||We(this.git4),this.gitInv5=this.gitInv5||We(this.git5),this.gitInv6=this.gitInv6||We(this.git6),this.gitInv7=this.gitInv7||We(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 A=this;if(In(w)==="object"){var L=Object.keys(w);L.forEach(function(I){A[I]=w[I]}),this.updateColors(),L.forEach(function(I){A[I]=w[I]})}else this.updateColors()}}],y&&Bn(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();function Qe(l){return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Qe(l)}function nn(l,o){for(var y=0;y<o.length;y++){var w=o[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}var Se=function(){function l(){(function(w,A){if(!(w instanceof A))throw new TypeError("Cannot call a class as a function")})(this,l),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=En(this.primaryColor,16),this.tertiaryColor=oe(this.primaryColor,{h:-160}),this.primaryBorderColor=We(this.background),this.secondaryBorderColor=Qn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qn(this.tertiaryColor,this.darkMode),this.primaryTextColor=We(this.primaryColor),this.secondaryTextColor=We(this.secondaryColor),this.tertiaryTextColor=We(this.tertiaryColor),this.lineColor=We(this.background),this.textColor=We(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=En(We("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=vn(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=He("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=vn(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=vn(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 o,y;return o=l,y=[{key:"updateColors",value:function(){this.secondBkg=En(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=En(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=En(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=oe(this.primaryColor,{h:64}),this.fillType3=oe(this.secondaryColor,{h:64}),this.fillType4=oe(this.primaryColor,{h:-64}),this.fillType5=oe(this.secondaryColor,{h:-64}),this.fillType6=oe(this.primaryColor,{h:128}),this.fillType7=oe(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?He(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=En(this.secondaryColor,20),this.git1=En(this.pie2||this.secondaryColor,20),this.git2=En(this.pie3||this.tertiaryColor,20),this.git3=En(this.pie4||oe(this.primaryColor,{h:-30}),20),this.git4=En(this.pie5||oe(this.primaryColor,{h:-60}),20),this.git5=En(this.pie6||oe(this.primaryColor,{h:-90}),10),this.git6=En(this.pie7||oe(this.primaryColor,{h:60}),10),this.git7=En(this.pie8||oe(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||We(this.git0),this.gitInv1=this.gitInv1||We(this.git1),this.gitInv2=this.gitInv2||We(this.git2),this.gitInv3=this.gitInv3||We(this.git3),this.gitInv4=this.gitInv4||We(this.git4),this.gitInv5=this.gitInv5||We(this.git5),this.gitInv6=this.gitInv6||We(this.git6),this.gitInv7=this.gitInv7||We(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 A=this;if(Qe(w)==="object"){var L=Object.keys(w);L.forEach(function(I){A[I]=w[I]}),this.updateColors(),L.forEach(function(I){A[I]=w[I]})}else this.updateColors()}}],y&&nn(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();function An(l){return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},An(l)}function Bt(l,o){for(var y=0;y<o.length;y++){var w=o[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}var xr=function(){function l(){(function(w,A){if(!(w instanceof A))throw new TypeError("Cannot call a class as a function")})(this,l),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=oe(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=oe(this.primaryColor,{h:-160}),this.primaryBorderColor=Qn(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qn(this.tertiaryColor,this.darkMode),this.primaryTextColor=We(this.primaryColor),this.secondaryTextColor=We(this.secondaryColor),this.tertiaryTextColor=We(this.tertiaryColor),this.lineColor=We(this.background),this.textColor=We(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=vn(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 o,y;return o=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=En(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=oe(this.primaryColor,{h:64}),this.fillType3=oe(this.secondaryColor,{h:64}),this.fillType4=oe(this.primaryColor,{h:-64}),this.fillType5=oe(this.secondaryColor,{h:-64}),this.fillType6=oe(this.primaryColor,{h:128}),this.fillType7=oe(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||oe(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||oe(this.primaryColor,{l:-10}),this.pie5=this.pie5||oe(this.secondaryColor,{l:-30}),this.pie6=this.pie6||oe(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||oe(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||oe(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||oe(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||oe(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||oe(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||oe(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||oe(this.primaryColor,{h:-30}),this.git4=this.git4||oe(this.primaryColor,{h:-60}),this.git5=this.git5||oe(this.primaryColor,{h:-90}),this.git6=this.git6||oe(this.primaryColor,{h:60}),this.git7=this.git7||oe(this.primaryColor,{h:120}),this.darkMode?(this.git0=En(this.git0,25),this.git1=En(this.git1,25),this.git2=En(this.git2,25),this.git3=En(this.git3,25),this.git4=En(this.git4,25),this.git5=En(this.git5,25),this.git6=En(this.git6,25),this.git7=En(this.git7,25)):(this.git0=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)),this.gitInv0=this.gitInv0||He(We(this.git0),25),this.gitInv1=this.gitInv1||We(this.git1),this.gitInv2=this.gitInv2||We(this.git2),this.gitInv3=this.gitInv3||We(this.git3),this.gitInv4=this.gitInv4||We(this.git4),this.gitInv5=this.gitInv5||We(this.git5),this.gitInv6=this.gitInv6||We(this.git6),this.gitInv7=this.gitInv7||We(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||We(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||We(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 A=this;if(An(w)==="object"){var L=Object.keys(w);L.forEach(function(I){A[I]=w[I]}),this.updateColors(),L.forEach(function(I){A[I]=w[I]})}else this.updateColors()}}],y&&Bt(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();function Gt(l){return Gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Gt(l)}function qn(l,o){for(var y=0;y<o.length;y++){var w=o[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}var zn=function(){function l(){(function(w,A){if(!(w instanceof A))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=En("#cde498",10),this.primaryBorderColor=Qn(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qn(this.tertiaryColor,this.darkMode),this.primaryTextColor=We(this.primaryColor),this.secondaryTextColor=We(this.secondaryColor),this.tertiaryTextColor=We(this.primaryColor),this.lineColor=We(this.background),this.textColor=We(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 o,y;return o=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=He(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=oe(this.primaryColor,{h:64}),this.fillType3=oe(this.secondaryColor,{h:64}),this.fillType4=oe(this.primaryColor,{h:-64}),this.fillType5=oe(this.secondaryColor,{h:-64}),this.fillType6=oe(this.primaryColor,{h:128}),this.fillType7=oe(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||oe(this.primaryColor,{l:-30}),this.pie5=this.pie5||oe(this.secondaryColor,{l:-30}),this.pie6=this.pie6||oe(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||oe(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||oe(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||oe(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||oe(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||oe(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||oe(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||oe(this.primaryColor,{h:-30}),this.git4=this.git4||oe(this.primaryColor,{h:-60}),this.git5=this.git5||oe(this.primaryColor,{h:-90}),this.git6=this.git6||oe(this.primaryColor,{h:60}),this.git7=this.git7||oe(this.primaryColor,{h:120}),this.darkMode?(this.git0=En(this.git0,25),this.git1=En(this.git1,25),this.git2=En(this.git2,25),this.git3=En(this.git3,25),this.git4=En(this.git4,25),this.git5=En(this.git5,25),this.git6=En(this.git6,25),this.git7=En(this.git7,25)):(this.git0=He(this.git0,25),this.git1=He(this.git1,25),this.git2=He(this.git2,25),this.git3=He(this.git3,25),this.git4=He(this.git4,25),this.git5=He(this.git5,25),this.git6=He(this.git6,25),this.git7=He(this.git7,25)),this.gitInv0=this.gitInv0||We(this.git0),this.gitInv1=this.gitInv1||We(this.git1),this.gitInv2=this.gitInv2||We(this.git2),this.gitInv3=this.gitInv3||We(this.git3),this.gitInv4=this.gitInv4||We(this.git4),this.gitInv5=this.gitInv5||We(this.git5),this.gitInv6=this.gitInv6||We(this.git6),this.gitInv7=this.gitInv7||We(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 A=this;if(Gt(w)==="object"){var L=Object.keys(w);L.forEach(function(I){A[I]=w[I]}),this.updateColors(),L.forEach(function(I){A[I]=w[I]})}else this.updateColors()}}],y&&qn(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();function Gn(l){return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Gn(l)}function On(l,o){for(var y=0;y<o.length;y++){var w=o[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}var Vn=function(){function l(){(function(w,A){if(!(w instanceof A))throw new TypeError("Cannot call a class as a function")})(this,l),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=En(this.contrast,55),this.background="#ffffff",this.tertiaryColor=oe(this.primaryColor,{h:-160}),this.primaryBorderColor=Qn(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qn(this.tertiaryColor,this.darkMode),this.primaryTextColor=We(this.primaryColor),this.secondaryTextColor=We(this.secondaryColor),this.tertiaryTextColor=We(this.tertiaryColor),this.lineColor=We(this.background),this.textColor=We(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 o,y;return o=l,y=[{key:"updateColors",value:function(){this.secondBkg=En(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=En(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=En(this.contrast,30),this.sectionBkgColor2=En(this.contrast,30),this.taskBorderColor=He(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=En(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=He(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=oe(this.primaryColor,{h:64}),this.fillType3=oe(this.secondaryColor,{h:64}),this.fillType4=oe(this.primaryColor,{h:-64}),this.fillType5=oe(this.secondaryColor,{h:-64}),this.fillType6=oe(this.primaryColor,{h:128}),this.fillType7=oe(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=He(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||oe(this.primaryColor,{h:-30}),this.git4=this.pie5||oe(this.primaryColor,{h:-60}),this.git5=this.pie6||oe(this.primaryColor,{h:-90}),this.git6=this.pie7||oe(this.primaryColor,{h:60}),this.git7=this.pie8||oe(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||We(this.git0),this.gitInv1=this.gitInv1||We(this.git1),this.gitInv2=this.gitInv2||We(this.git2),this.gitInv3=this.gitInv3||We(this.git3),this.gitInv4=this.gitInv4||We(this.git4),this.gitInv5=this.gitInv5||We(this.git5),this.gitInv6=this.gitInv6||We(this.git6),this.gitInv7=this.gitInv7||We(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 A=this;if(Gn(w)==="object"){var L=Object.keys(w);L.forEach(function(I){A[I]=w[I]}),this.updateColors(),L.forEach(function(I){A[I]=w[I]})}else this.updateColors()}}],y&&On(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();const Pn={base:{getThemeVariables:function(l){var o=new Ne;return o.calculate(l),o}},dark:{getThemeVariables:function(l){var o=new Se;return o.calculate(l),o}},default:{getThemeVariables:function(l){var o=new xr;return o.calculate(l),o}},forest:{getThemeVariables:function(l){var o=new zn;return o.calculate(l),o}},neutral:{getThemeVariables:function(l){var o=new Vn;return o.calculate(l),o}}};function Nn(l){return function(o){if(Array.isArray(o))return Un(o)}(l)||function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}(l)||function(o,y){if(o){if(typeof o=="string")return Un(o,y);var w=Object.prototype.toString.call(o).slice(8,-1);return w==="Object"&&o.constructor&&(w=o.constructor.name),w==="Map"||w==="Set"?Array.from(o):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?Un(o,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 Un(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,w=new Array(o);y<o;y++)w[y]=l[y];return w}function Yn(l){return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Yn(l)}var jn={theme:"default",themeVariables:Pn.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,dividerMargin:10,padding:5,textHeight:10,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"}};jn.class.arrowMarkerAbsolute=jn.arrowMarkerAbsolute,jn.gitGraph.arrowMarkerAbsolute=jn.arrowMarkerAbsolute;var ga=function l(o){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(o).reduce(function(w,A){return Array.isArray(o[A])?w:Yn(o[A])==="object"&&o[A]!==null?[].concat(Nn(w),[y+A],Nn(l(o[A],""))):[].concat(Nn(w),[y+A])},[])}(jn,"");const Lr=jn;function Ar(l){return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ar(l)}var Ln,si=Object.freeze(Lr),Rn=Ee({},si),kr=[],Ir=Ee({},si),br=function(l,o){for(var y=Ee({},l),w={},A=0;A<o.length;A++){var L=o[A];Nr(L),w=Ee(w,L)}if(y=Ee(y,w),w.theme&&Pn[w.theme]){var I=Ee({},Ln),O=Ee(I.themeVariables||{},w.themeVariables);y.themeVariables=Pn[y.theme].getThemeVariables(O)}return Ir=y,y},Zr=function(){return Ee({},Rn)},Rt=function(){return Ee({},Ir)},Nr=function l(o){Object.keys(Rn.secure).forEach(function(y){o[Rn.secure[y]]!==void 0&&(_.debug("Denied attempt to modify a secure key ".concat(Rn.secure[y]),o[Rn.secure[y]]),delete o[Rn.secure[y]])}),Object.keys(o).forEach(function(y){y.indexOf("__")===0&&delete o[y]}),Object.keys(o).forEach(function(y){typeof o[y]=="string"&&(o[y].indexOf("<")>-1||o[y].indexOf(">")>-1||o[y].indexOf("url(data:")>-1)&&delete o[y],Ar(o[y])==="object"&&l(o[y])})},Mr=function(l){l.fontFamily&&(l.themeVariables&&l.themeVariables.fontFamily||(l.themeVariables={fontFamily:l.fontFamily})),kr.push(l),br(Rn,kr)},Zn=function(){br(Rn,kr=[])},Jr=h(7856),$r=h.n(Jr),Dr=function(l){var o=l.replace(/\\u[\dA-F]{4}/gi,function(y){return String.fromCharCode(parseInt(y.replace(/\\u/g,""),16))});return o=(o=(o=o.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))})},Qr=function(l){for(var o="",y=0;y>=0;){if(!((y=l.indexOf("<script"))>=0)){o+=l,y=-1;break}o+=l.substr(0,y),(y=(l=l.substr(y+1)).indexOf("<\/script>"))>=0&&(y+=9,l=l.substr(y))}var w=Dr(o);return(w=(w=(w=(w=w.replaceAll(/script>/gi,"#")).replaceAll(/javascript:/gi,"#")).replaceAll(/javascript&colon/gi,"#")).replaceAll(/onerror=/gi,"onerror:")).replaceAll(/<iframe/gi,"")},Na=function(l,o){var y=l,w=!0;if(!o.flowchart||o.flowchart.htmlLabels!==!1&&o.flowchart.htmlLabels!=="false"||(w=!1),w){var A=o.securityLevel;A==="antiscript"||A==="strict"?y=Qr(y):A!=="loose"&&(y=(y=(y=Ai(y)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),y=Bi(y))}return y},hr=function(l,o){return l&&(o.dompurifyConfig?$r().sanitize(Na(l,o),o.dompurifyConfig):$r().sanitize(Na(l,o)))},Si=/<br\s*\/?>/gi,Bi=function(l){return l.replace(/#br#/g,"<br/>")},Ai=function(l){return l.replace(Si,"#br#")},fn=function(l){return l!=="false"&&l!==!1};const mn={getRows:function(l){if(!l)return 1;var o=Ai(l);return(o=o.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:hr,sanitizeTextOrArray:function(l,o){return typeof l=="string"?hr(l,o):l.flat().map(function(y){return hr(y,o)})},hasBreaks:function(l){return Si.test(l)},splitBreaks:function(l){return l.split(Si)},lineBreakRegex:Si,removeScript:Qr,getUrl:function(l){var o="";return l&&(o=(o=(o=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),o},evaluate:fn,removeEscapes:Dr};var Kn="",rn="",lr="",Xt=function(l){return hr(l,Rt())},Pr=function(){Kn="",lr="",rn=""},Qt=function(l){Kn=Xt(l).replace(/^\s+/g,"")},wr=function(){return Kn||rn},ri=function(l){lr=Xt(l).replace(/\n\s+/g,`
|
|
`)},ci=function(){return lr},La=function(l){rn=Xt(l)},Ri=function(){return rn};function kn(l,o){return function(y){if(Array.isArray(y))return y}(l)||function(y,w){var A=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(A!=null){var L,I,O=[],F=!0,Y=!1;try{for(A=A.call(y);!(F=(L=A.next()).done)&&(O.push(L.value),!w||O.length!==w);F=!0);}catch(X){Y=!0,I=X}finally{try{F||A.return==null||A.return()}finally{if(Y)throw I}}return O}}(l,o)||function(y,w){if(y){if(typeof y=="string")return Ur(y,w);var A=Object.prototype.toString.call(y).slice(8,-1);return A==="Object"&&y.constructor&&(A=y.constructor.name),A==="Map"||A==="Set"?Array.from(y):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?Ur(y,w):void 0}}(l,o)||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 Ur(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,w=new Array(o);y<o;y++)w[y]=l[y];return w}function Dn(l){return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Dn(l)}var ya,Br=[],Fi=[""],zr="global",gr="",ki=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Hr=[],ti="",Ki=!1,Ci=4,ei=2,ma=function(l){return l==null?Br:Br.filter(function(o){return o.parentBoundary===l})},qr=function(){return Ki};const Xr={addPersonOrSystem:function(l,o,y,w,A,L,I){if(o!==null&&y!==null){var O={},F=Br.find(function(te){return te.alias===o});if(F&&o===F.alias?O=F:(O.alias=o,Br.push(O)),O.label=y==null?{text:""}:{text:y},w==null)O.descr={text:""};else if(Dn(w)==="object"){var Y=kn(Object.entries(w)[0],2),X=Y[0],et=Y[1];O[X]={text:et}}else O.descr={text:w};if(Dn(A)==="object"){var ht=kn(Object.entries(A)[0],2),ot=ht[0],It=ht[1];O[ot]=It}else O.sprite=A;if(Dn(L)==="object"){var Nt=kn(Object.entries(L)[0],2),Yt=Nt[0],jt=Nt[1];O[Yt]=jt}else O.tags=L;if(Dn(I)==="object"){var Mt=kn(Object.entries(I)[0],2),Ft=Mt[0],Ot=Mt[1];O[Ft]=Ot}else O.link=I;O.typeC4Shape={text:l},O.parentBoundary=zr,O.wrap=qr()}},addPersonOrSystemBoundary:function(l,o,y,w,A){if(l!==null&&o!==null){var L={},I=ki.find(function(Yt){return Yt.alias===l});if(I&&l===I.alias?L=I:(L.alias=l,ki.push(L)),L.label=o==null?{text:""}:{text:o},y==null)L.type={text:"system"};else if(Dn(y)==="object"){var O=kn(Object.entries(y)[0],2),F=O[0],Y=O[1];L[F]={text:Y}}else L.type={text:y};if(Dn(w)==="object"){var X=kn(Object.entries(w)[0],2),et=X[0],ht=X[1];L[et]=ht}else L.tags=w;if(Dn(A)==="object"){var ot=kn(Object.entries(A)[0],2),It=ot[0],Nt=ot[1];L[It]=Nt}else L.link=A;L.parentBoundary=zr,L.wrap=qr(),gr=zr,zr=l,Fi.push(gr)}},addContainer:function(l,o,y,w,A,L,I,O){if(o!==null&&y!==null){var F={},Y=Br.find(function(Pt){return Pt.alias===o});if(Y&&o===Y.alias?F=Y:(F.alias=o,Br.push(F)),F.label=y==null?{text:""}:{text:y},w==null)F.techn={text:""};else if(Dn(w)==="object"){var X=kn(Object.entries(w)[0],2),et=X[0],ht=X[1];F[et]={text:ht}}else F.techn={text:w};if(A==null)F.descr={text:""};else if(Dn(A)==="object"){var ot=kn(Object.entries(A)[0],2),It=ot[0],Nt=ot[1];F[It]={text:Nt}}else F.descr={text:A};if(Dn(L)==="object"){var Yt=kn(Object.entries(L)[0],2),jt=Yt[0],Mt=Yt[1];F[jt]=Mt}else F.sprite=L;if(Dn(I)==="object"){var Ft=kn(Object.entries(I)[0],2),Ot=Ft[0],te=Ft[1];F[Ot]=te}else F.tags=I;if(Dn(O)==="object"){var Oe=kn(Object.entries(O)[0],2),ke=Oe[0],ve=Oe[1];F[ke]=ve}else F.link=O;F.wrap=qr(),F.typeC4Shape={text:l},F.parentBoundary=zr}},addContainerBoundary:function(l,o,y,w,A){if(l!==null&&o!==null){var L={},I=ki.find(function(Yt){return Yt.alias===l});if(I&&l===I.alias?L=I:(L.alias=l,ki.push(L)),L.label=o==null?{text:""}:{text:o},y==null)L.type={text:"container"};else if(Dn(y)==="object"){var O=kn(Object.entries(y)[0],2),F=O[0],Y=O[1];L[F]={text:Y}}else L.type={text:y};if(Dn(w)==="object"){var X=kn(Object.entries(w)[0],2),et=X[0],ht=X[1];L[et]=ht}else L.tags=w;if(Dn(A)==="object"){var ot=kn(Object.entries(A)[0],2),It=ot[0],Nt=ot[1];L[It]=Nt}else L.link=A;L.parentBoundary=zr,L.wrap=qr(),gr=zr,zr=l,Fi.push(gr)}},addComponent:function(l,o,y,w,A,L,I,O){if(o!==null&&y!==null){var F={},Y=Br.find(function(Pt){return Pt.alias===o});if(Y&&o===Y.alias?F=Y:(F.alias=o,Br.push(F)),F.label=y==null?{text:""}:{text:y},w==null)F.techn={text:""};else if(Dn(w)==="object"){var X=kn(Object.entries(w)[0],2),et=X[0],ht=X[1];F[et]={text:ht}}else F.techn={text:w};if(A==null)F.descr={text:""};else if(Dn(A)==="object"){var ot=kn(Object.entries(A)[0],2),It=ot[0],Nt=ot[1];F[It]={text:Nt}}else F.descr={text:A};if(Dn(L)==="object"){var Yt=kn(Object.entries(L)[0],2),jt=Yt[0],Mt=Yt[1];F[jt]=Mt}else F.sprite=L;if(Dn(I)==="object"){var Ft=kn(Object.entries(I)[0],2),Ot=Ft[0],te=Ft[1];F[Ot]=te}else F.tags=I;if(Dn(O)==="object"){var Oe=kn(Object.entries(O)[0],2),ke=Oe[0],ve=Oe[1];F[ke]=ve}else F.link=O;F.wrap=qr(),F.typeC4Shape={text:l},F.parentBoundary=zr}},addDeploymentNode:function(l,o,y,w,A,L,I,O){if(o!==null&&y!==null){var F={},Y=ki.find(function(Oe){return Oe.alias===o});if(Y&&o===Y.alias?F=Y:(F.alias=o,ki.push(F)),F.label=y==null?{text:""}:{text:y},w==null)F.type={text:"node"};else if(Dn(w)==="object"){var X=kn(Object.entries(w)[0],2),et=X[0],ht=X[1];F[et]={text:ht}}else F.type={text:w};if(A==null)F.descr={text:""};else if(Dn(A)==="object"){var ot=kn(Object.entries(A)[0],2),It=ot[0],Nt=ot[1];F[It]={text:Nt}}else F.descr={text:A};if(Dn(I)==="object"){var Yt=kn(Object.entries(I)[0],2),jt=Yt[0],Mt=Yt[1];F[jt]=Mt}else F.tags=I;if(Dn(O)==="object"){var Ft=kn(Object.entries(O)[0],2),Ot=Ft[0],te=Ft[1];F[Ot]=te}else F.link=O;F.nodeType=l,F.parentBoundary=zr,F.wrap=qr(),gr=zr,zr=o,Fi.push(gr)}},popBoundaryParseStack:function(){zr=gr,Fi.pop(),gr=Fi.pop(),Fi.push(gr)},addRel:function(l,o,y,w,A,L,I,O,F){if(l!=null&&o!=null&&y!=null&&w!=null){var Y={},X=Hr.find(function(le){return le.from===o&&le.to===y});if(X?Y=X:Hr.push(Y),Y.type=l,Y.from=o,Y.to=y,Y.label={text:w},A==null)Y.techn={text:""};else if(Dn(A)==="object"){var et=kn(Object.entries(A)[0],2),ht=et[0],ot=et[1];Y[ht]={text:ot}}else Y.techn={text:A};if(L==null)Y.descr={text:""};else if(Dn(L)==="object"){var It=kn(Object.entries(L)[0],2),Nt=It[0],Yt=It[1];Y[Nt]={text:Yt}}else Y.descr={text:L};if(Dn(I)==="object"){var jt=kn(Object.entries(I)[0],2),Mt=jt[0],Ft=jt[1];Y[Mt]=Ft}else Y.sprite=I;if(Dn(O)==="object"){var Ot=kn(Object.entries(O)[0],2),te=Ot[0],Oe=Ot[1];Y[te]=Oe}else Y.tags=O;if(Dn(F)==="object"){var ke=kn(Object.entries(F)[0],2),ve=ke[0],Pt=ke[1];Y[ve]=Pt}else Y.link=F;Y.wrap=qr()}},updateElStyle:function(l,o,y,w,A,L,I,O,F,Y,X){var et=Br.find(function(Ge){return Ge.alias===o});if(et!==void 0||(et=ki.find(function(Ge){return Ge.alias===o}))!==void 0){if(y!=null)if(Dn(y)==="object"){var ht=kn(Object.entries(y)[0],2),ot=ht[0],It=ht[1];et[ot]=It}else et.bgColor=y;if(w!=null)if(Dn(w)==="object"){var Nt=kn(Object.entries(w)[0],2),Yt=Nt[0],jt=Nt[1];et[Yt]=jt}else et.fontColor=w;if(A!=null)if(Dn(A)==="object"){var Mt=kn(Object.entries(A)[0],2),Ft=Mt[0],Ot=Mt[1];et[Ft]=Ot}else et.borderColor=A;if(L!=null)if(Dn(L)==="object"){var te=kn(Object.entries(L)[0],2),Oe=te[0],ke=te[1];et[Oe]=ke}else et.shadowing=L;if(I!=null)if(Dn(I)==="object"){var ve=kn(Object.entries(I)[0],2),Pt=ve[0],le=ve[1];et[Pt]=le}else et.shape=I;if(O!=null)if(Dn(O)==="object"){var Vt=kn(Object.entries(O)[0],2),ae=Vt[0],ee=Vt[1];et[ae]=ee}else et.sprite=O;if(F!=null)if(Dn(F)==="object"){var fe=kn(Object.entries(F)[0],2),Be=fe[0],Fe=fe[1];et[Be]=Fe}else et.techn=F;if(Y!=null)if(Dn(Y)==="object"){var Ye=kn(Object.entries(Y)[0],2),pn=Ye[0],Ue=Ye[1];et[pn]=Ue}else et.legendText=Y;if(X!=null)if(Dn(X)==="object"){var ln=kn(Object.entries(X)[0],2),gn=ln[0],je=ln[1];et[gn]=je}else et.legendSprite=X}},updateRelStyle:function(l,o,y,w,A,L,I){var O=Hr.find(function(Ot){return Ot.from===o&&Ot.to===y});if(O!==void 0){if(w!=null)if(Dn(w)==="object"){var F=kn(Object.entries(w)[0],2),Y=F[0],X=F[1];O[Y]=X}else O.textColor=w;if(A!=null)if(Dn(A)==="object"){var et=kn(Object.entries(A)[0],2),ht=et[0],ot=et[1];O[ht]=ot}else O.lineColor=A;if(L!=null)if(Dn(L)==="object"){var It=kn(Object.entries(L)[0],2),Nt=It[0],Yt=It[1];O[Nt]=parseInt(Yt)}else O.offsetX=parseInt(L);if(I!=null)if(Dn(I)==="object"){var jt=kn(Object.entries(I)[0],2),Mt=jt[0],Ft=jt[1];O[Mt]=parseInt(Ft)}else O.offsetY=parseInt(I)}},updateLayoutConfig:function(l,o,y){var w=Ci,A=ei;if(Dn(o)==="object"){var L=kn(Object.entries(o)[0],2),I=(L[0],L[1]);w=parseInt(I)}else w=parseInt(o);if(Dn(y)==="object"){var O=kn(Object.entries(y)[0],2),F=(O[0],O[1]);A=parseInt(F)}else A=parseInt(y);w>=1&&(Ci=w),A>=1&&(ei=A)},autoWrap:qr,setWrap:function(l){Ki=l},getC4ShapeArray:ma,getC4Shape:function(l){return Br.find(function(o){return o.alias===l})},getC4ShapeKeys:function(l){return Object.keys(ma(l))},getBoundarys:function(l){return l==null?ki:ki.filter(function(o){return o.parentBoundary===l})},getCurrentBoundaryParse:function(){return zr},getParentBoundaryParse:function(){return gr},getRels:function(){return Hr},getTitle:function(){return ti},getC4Type:function(){return ya},getC4ShapeInRow:function(){return Ci},getC4BoundaryInRow:function(){return ei},setAccTitle:Qt,getAccTitle:wr,getAccDescription:ci,setAccDescription:ri,parseDirective:function(l,o,y){Xn.parseDirective(this,l,o,y)},getConfig:function(){return Rt().c4},clear:function(){Br=[],ki=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],gr="",zr="global",Fi=[""],Hr=[],Fi=[""],ti="",Ki=!1,Ci=4,ei=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 o=hr(l,Rt());ti=o},setC4Type:function(l){var o=hr(l,Rt());ya=o}};var ii=h(7967);function Pi(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,w=new Array(o);y<o;y++)w[y]=l[y];return w}var Co=function(l,o){var y=l.append("rect");if(y.attr("x",o.x),y.attr("y",o.y),y.attr("fill",o.fill),y.attr("stroke",o.stroke),y.attr("width",o.width),y.attr("height",o.height),y.attr("rx",o.rx),y.attr("ry",o.ry),o.attrs!=="undefined"&&o.attrs!==null)for(var w in o.attrs)y.attr(w,o.attrs[w]);return o.class!=="undefined"&&y.attr("class",o.class),y},$i=function(){function l(A,L,I,O,F,Y,X){w(L.append("text").attr("x",I+F/2).attr("y",O+Y/2+5).style("text-anchor","middle").text(A),X)}function o(A,L,I,O,F,Y,X,et){for(var ht=et.fontSize,ot=et.fontFamily,It=et.fontWeight,Nt=A.split(mn.lineBreakRegex),Yt=0;Yt<Nt.length;Yt++){var jt=Yt*ht-ht*(Nt.length-1)/2,Mt=L.append("text").attr("x",I+F/2).attr("y",O).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",ht).style("font-weight",It).style("font-family",ot);Mt.append("tspan").attr("dy",jt).text(Nt[Yt]).attr("alignment-baseline","mathematical"),w(Mt,X)}}function y(A,L,I,O,F,Y,X,et){var ht=L.append("switch"),ot=ht.append("foreignObject").attr("x",I).attr("y",O).attr("width",F).attr("height",Y).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");ot.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(A),o(A,ht,I,O,F,0,X,et),w(ot,X)}function w(A,L){for(var I in L)L.hasOwnProperty(I)&&A.attr(I,L[I])}return function(A){return A.textPlacement==="fo"?y:A.textPlacement==="old"?l:o}}();const Jt=function(l,o,y){var w=o.bgColor?o.bgColor:y[o.typeC4Shape.text+"_bg_color"],A=o.borderColor?o.borderColor:y[o.typeC4Shape.text+"_border_color"],L=o.fontColor?o.fontColor:"#FFFFFF",I="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(o.typeC4Shape.text){case"person":I="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":I="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var O=l.append("g");O.attr("class","person-man");var F={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};switch(o.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":F.x=o.x,F.y=o.y,F.fill=w,F.width=o.width,F.height=o.height,F.style="stroke:"+A+";stroke-width:0.5;",F.rx=2.5,F.ry=2.5,Co(O,F);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":O.append("path").attr("fill",w).attr("stroke-width","0.5").attr("stroke",A).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",o.x).replaceAll("starty",o.y).replaceAll("half",o.width/2).replaceAll("height",o.height)),O.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",A).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",o.x).replaceAll("starty",o.y).replaceAll("half",o.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":O.append("path").attr("fill",w).attr("stroke-width","0.5").attr("stroke",A).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",o.x).replaceAll("starty",o.y).replaceAll("width",o.width).replaceAll("half",o.height/2)),O.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",A).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",o.x+o.width).replaceAll("starty",o.y).replaceAll("half",o.height/2))}var Y,X,et=(Y=y,X=o.typeC4Shape.text,{fontFamily:Y[X+"FontFamily"],fontSize:Y[X+"FontSize"],fontWeight:Y[X+"FontWeight"]});switch(O.append("text").attr("fill",L).attr("font-family",et.fontFamily).attr("font-size",et.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",o.typeC4Shape.width).attr("x",o.x+o.width/2-o.typeC4Shape.width/2).attr("y",o.y+o.typeC4Shape.Y).text("<<"+o.typeC4Shape.text+">>"),o.typeC4Shape.text){case"person":case"external_person":(function(ot,It,Nt,Yt,jt,Mt){var Ft=ot.append("image");Ft.attr("width",It),Ft.attr("height",Nt),Ft.attr("x",Yt),Ft.attr("y",jt);var Ot=Mt.startsWith("data:image/png;base64")?Mt:(0,ii.N)(Mt);Ft.attr("xlink:href",Ot)})(O,48,48,o.x+o.width/2-24,o.y+o.image.Y,I)}var ht=y[o.typeC4Shape.text+"Font"]();return ht.fontWeight="bold",ht.fontSize=ht.fontSize+2,ht.fontColor=L,$i(y)(o.label.text,O,o.x,o.y+o.label.Y,o.width,o.height,{fill:L},ht),(ht=y[o.typeC4Shape.text+"Font"]()).fontColor=L,o.thchn&&o.thchn.text!==""?$i(y)(o.thchn.text,O,o.x,o.y+o.thchn.Y,o.width,o.height,{fill:L,"font-style":"italic"},ht):o.type&&o.type.text!==""&&$i(y)(o.type.text,O,o.x,o.y+o.type.Y,o.width,o.height,{fill:L,"font-style":"italic"},ht),o.descr&&o.descr.text!==""&&((ht=y.personFont()).fontColor=L,$i(y)(o.descr.text,O,o.x,o.y+o.descr.Y,o.width,o.height,{fill:L},ht)),o.height},wn=function(l,o,y){var w,A=l.append("g"),L=0,I=function(Nt,Yt){var jt=typeof Symbol<"u"&&Nt[Symbol.iterator]||Nt["@@iterator"];if(!jt){if(Array.isArray(Nt)||(jt=function(ke,ve){if(ke){if(typeof ke=="string")return Pi(ke,ve);var Pt=Object.prototype.toString.call(ke).slice(8,-1);return Pt==="Object"&&ke.constructor&&(Pt=ke.constructor.name),Pt==="Map"||Pt==="Set"?Array.from(ke):Pt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pt)?Pi(ke,ve):void 0}}(Nt))||Yt&&Nt&&typeof Nt.length=="number"){jt&&(Nt=jt);var Mt=0,Ft=function(){};return{s:Ft,n:function(){return Mt>=Nt.length?{done:!0}:{done:!1,value:Nt[Mt++]}},e:function(ke){throw ke},f:Ft}}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 Ot,te=!0,Oe=!1;return{s:function(){jt=jt.call(Nt)},n:function(){var ke=jt.next();return te=ke.done,ke},e:function(ke){Oe=!0,Ot=ke},f:function(){try{te||jt.return==null||jt.return()}finally{if(Oe)throw Ot}}}}(o);try{for(I.s();!(w=I.n()).done;){var O=w.value,F=O.textColor?O.textColor:"#444444",Y=O.lineColor?O.lineColor:"#444444",X=O.offsetX?parseInt(O.offsetX):0,et=O.offsetY?parseInt(O.offsetY):0;if(L===0){var ht=A.append("line");ht.attr("x1",O.startPoint.x),ht.attr("y1",O.startPoint.y),ht.attr("x2",O.endPoint.x),ht.attr("y2",O.endPoint.y),ht.attr("stroke-width","1"),ht.attr("stroke",Y),ht.style("fill","none"),O.type!=="rel_b"&&ht.attr("marker-end","url(#arrowhead)"),O.type!=="birel"&&O.type!=="rel_b"||ht.attr("marker-start","url(#arrowend)"),L=-1}else{var ot=A.append("path");ot.attr("fill","none").attr("stroke-width","1").attr("stroke",Y).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",O.startPoint.x).replaceAll("starty",O.startPoint.y).replaceAll("controlx",O.startPoint.x+(O.endPoint.x-O.startPoint.x)/2-(O.endPoint.x-O.startPoint.x)/4).replaceAll("controly",O.startPoint.y+(O.endPoint.y-O.startPoint.y)/2).replaceAll("stopx",O.endPoint.x).replaceAll("stopy",O.endPoint.y)),O.type!=="rel_b"&&ot.attr("marker-end","url(#arrowhead)"),O.type!=="birel"&&O.type!=="rel_b"||ot.attr("marker-start","url(#arrowend)")}var It=y.messageFont();$i(y)(O.label.text,A,Math.min(O.startPoint.x,O.endPoint.x)+Math.abs(O.endPoint.x-O.startPoint.x)/2+X,Math.min(O.startPoint.y,O.endPoint.y)+Math.abs(O.endPoint.y-O.startPoint.y)/2+et,O.label.width,O.label.height,{fill:F},It),O.techn&&O.techn.text!==""&&(It=y.messageFont(),$i(y)("["+O.techn.text+"]",A,Math.min(O.startPoint.x,O.endPoint.x)+Math.abs(O.endPoint.x-O.startPoint.x)/2+X,Math.min(O.startPoint.y,O.endPoint.y)+Math.abs(O.endPoint.y-O.startPoint.y)/2+y.messageFontSize+5+et,Math.max(O.label.width,O.techn.width),O.techn.height,{fill:F,"font-style":"italic"},It))}}catch(Nt){I.e(Nt)}finally{I.f()}};ii.N;var sn=h(2536),ar=h.n(sn),Yr=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,di=/\s*%%.*\n/gm,Kr={};const Hi=function(l,o){if((l=l.replace(Yr,"").replace(di,`
|
|
`)).match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/))return"c4";if(l.match(/^\s*sequenceDiagram/))return"sequence";if(l.match(/^\s*gantt/))return"gantt";if(l.match(/^\s*classDiagram-v2/))return"classDiagram";if(l.match(/^\s*classDiagram/))return o&&o.class&&o.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class";if(l.match(/^\s*stateDiagram-v2/))return"stateDiagram";if(l.match(/^\s*stateDiagram/))return o&&o.class&&o.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state";if(l.match(/^\s*flowchart/))return"flowchart-v2";if(l.match(/^\s*info/))return"info";if(l.match(/^\s*pie/))return"pie";if(l.match(/^\s*erDiagram/))return"er";if(l.match(/^\s*journey/))return"journey";if(l.match(/^\s*requirement/)||l.match(/^\s*requirementDiagram/))return"requirement";if(o&&o.flowchart&&o.flowchart.defaultRenderer==="dagre-wrapper")return"flowchart-v2";for(var y=Object.keys(Kr),w=0;w<y.length;w++){var A=y[w],L=Kr[A];if(L&&L.detector(l))return A}return"flowchart"};var Ji=void 0;function li(l){return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},li(l)}function Ka(l,o){for(var y=0;y<o.length;y++){var w=o[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}function is(l,o){var y=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!y){if(Array.isArray(l)||(y=tl(l))||o&&l&&typeof l.length=="number"){y&&(l=y);var w=0,A=function(){};return{s:A,n:function(){return w>=l.length?{done:!0}:{done:!1,value:l[w++]}},e:function(F){throw F},f:A}}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 L,I=!0,O=!1;return{s:function(){y=y.call(l)},n:function(){var F=y.next();return I=F.done,F},e:function(F){O=!0,L=F},f:function(){try{I||y.return==null||y.return()}finally{if(O)throw L}}}}function fc(l){return function(o){if(Array.isArray(o))return Ma(o)}(l)||function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}(l)||tl(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 tl(l,o){if(l){if(typeof l=="string")return Ma(l,o);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)?Ma(l,o):void 0}}function Ma(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,w=new Array(o);y<o;y++)w[y]=l[y];return w}var Ss,ou={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},dc=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,hn=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,pc=function(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var y=new RegExp("[%]{2}(?![{]".concat(hn.source,`)(?=[}][%]{2}).*
|
|
`),"ig");l=l.trim().replace(y,"").replace(/'/gm,'"'),_.debug("Detecting diagram directive".concat(o!==null?" type:"+o:""," based on the text:").concat(l));for(var w,A=[];(w=dc.exec(l))!==null;)if(w.index===dc.lastIndex&&dc.lastIndex++,w&&!o||o&&w[1]&&w[1].match(o)||o&&w[2]&&w[2].match(o)){var L=w[1]?w[1]:w[2],I=w[3]?w[3].trim():w[4]?JSON.parse(w[4].trim()):null;A.push({type:L,args:I})}return A.length===0&&A.push({type:l,args:null}),A.length===1?A[0]:A}catch(O){return _.error("ERROR: ".concat(O.message,` - Unable to parse directive
|
|
`).concat(o!==null?" type:"+o:""," based on the text:").concat(l)),{type:null,args:null}}},Er=function(l,o){var y={};return function(){for(var w=arguments.length,A=new Array(w),L=0;L<w;L++)A[L]=arguments[L];var I=o?o.apply(Ji,A):A[0];if(I in y)return y[I];var O=l.apply(void 0,A);return y[I]=O,O}},Qi=function(l,o){if(!l)return o;var y="curve".concat(l.charAt(0).toUpperCase()+l.slice(1));return ou[y]||o},uo=function(l,o){return l&&o?Math.sqrt(Math.pow(o.x-l.x,2)+Math.pow(o.y-l.y,2)):0},Oa=function(l){for(var o="",y="",w=0;w<l.length;w++)l[w]!==void 0&&(l[w].startsWith("color:")||l[w].startsWith("text-align:")?y=y+l[w]+";":o=o+l[w]+";");return{style:o,labelStyle:y}},Da=0,Io=function(){return Da++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Da},gc=function(l){return function(o){for(var y="",w="0123456789abcdef",A=w.length,L=0;L<o;L++)y+=w.charAt(Math.floor(Math.random()*A));return y}(l.length)},el=function(l,o){var y=o.text.replace(mn.lineBreakRegex," "),w=l.append("text");w.attr("x",o.x),w.attr("y",o.y),w.style("text-anchor",o.anchor),w.style("font-family",o.fontFamily),w.style("font-size",o.fontSize),w.style("font-weight",o.fontWeight),w.attr("fill",o.fill),o.class!==void 0&&w.attr("class",o.class);var A=w.append("tspan");return A.attr("x",o.x+2*o.textMargin),A.attr("fill",o.fill),A.text(y),w},As=Er(function(l,o,y){if(!l||(y=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},y),mn.lineBreakRegex.test(l)))return l;var w=l.split(" "),A=[],L="";return w.forEach(function(I,O){var F=Ba("".concat(I," "),y),Y=Ba(L,y);if(F>o){var X=$a(I,o,"-",y),et=X.hyphenatedStrings,ht=X.remainingWord;A.push.apply(A,[L].concat(fc(et))),L=ht}else Y+F>=o?(A.push(L),L=I):L=[L,I].filter(Boolean).join(" ");O+1===w.length&&A.push(L)}),A.filter(function(I){return I!==""}).join(y.joinWith)},function(l,o,y){return"".concat(l,"-").concat(o,"-").concat(y.fontSize,"-").concat(y.fontWeight,"-").concat(y.fontFamily,"-").concat(y.joinWith)}),$a=Er(function(l,o){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 A=l.split(""),L=[],I="";return A.forEach(function(O,F){var Y="".concat(I).concat(O);if(Ba(Y,w)>=o){var X=F+1,et=A.length===X,ht="".concat(Y).concat(y);L.push(et?Y:ht),I=""}else I=Y}),{hyphenatedStrings:L,remainingWord:I}},function(l,o){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",w=arguments.length>3?arguments[3]:void 0;return"".concat(l,"-").concat(o,"-").concat(y,"-").concat(w.fontSize,"-").concat(w.fontWeight,"-").concat(w.fontFamily)}),yc=function(l,o){return o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},o),mc(l,o).height},Ba=function(l,o){return o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},o),mc(l,o).width},mc=Er(function(l,o){var y=o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},o),w=y.fontSize,A=y.fontFamily,L=y.fontWeight;if(!l)return{width:0,height:0};var I=["sans-serif",A],O=l.split(mn.lineBreakRegex),F=[],Y=(0,E.select)("body");if(!Y.remove)return{width:0,height:0,lineHeight:0};for(var X=Y.append("svg"),et=0,ht=I;et<ht.length;et++){var ot,It=ht[et],Nt=0,Yt={width:0,height:0,lineHeight:0},jt=is(O);try{for(jt.s();!(ot=jt.n()).done;){var Mt=ot.value,Ft={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};Ft.text=Mt;var Ot=el(X,Ft).style("font-size",w).style("font-weight",L).style("font-family",It),te=(Ot._groups||Ot)[0][0].getBBox();Yt.width=Math.round(Math.max(Yt.width,te.width)),Nt=Math.round(te.height),Yt.height+=Nt,Yt.lineHeight=Math.round(Math.max(Yt.lineHeight,Nt))}}catch(Oe){jt.e(Oe)}finally{jt.f()}F.push(Yt)}return X.remove(),F[isNaN(F[1].height)||isNaN(F[1].width)||isNaN(F[1].lineHeight)||F[0].height>F[1].height&&F[0].width>F[1].width&&F[0].lineHeight>F[1].lineHeight?0:1]},function(l,o){return"".concat(l,"-").concat(o.fontSize,"-").concat(o.fontWeight,"-").concat(o.fontFamily)}),_c=function(l,o,y){var w=new Map;return w.set("height",l),y?(w.set("width","100%"),w.set("style","max-width: ".concat(o,"px;"))):w.set("width",o),w},ta=function(l,o,y,w){(function(A,L){var I,O=is(L);try{for(O.s();!(I=O.n()).done;){var F=I.value;A.attr(F[0],F[1])}}catch(Y){O.e(Y)}finally{O.f()}})(l,_c(o,y,w))},Cs=function(l,o,y,w){var A=o.node().getBBox(),L=A.width,I=A.height,O=l._label.width,F=l._label.height,Y=0,X=0;L>O?(Y=(L-O)/2+y,O=L+2*y):Math.abs(L-O)>=2*y+1&&(O-=y),I>F&&(X=(I-F)/2+y,F=I+2*y),ta(o,F,O,w);var et="0 0 ".concat(O," ").concat(F);_.debug("Graph.label",l._label,"swidth",L,"sheight",I,"width",O,"height",F,"tx",Y,"ty",X,"vBox",et),o.attr("viewBox",et),o.select("g").attr("transform","translate(".concat(Y,", ").concat(X,")"))},No=function l(o){if(_.debug("directiveSanitizer called with",o),li(o)==="object"&&(o.length?o.forEach(function(I){return l(I)}):Object.keys(o).forEach(function(I){_.debug("Checking key",I),I.indexOf("__")===0&&(_.debug("sanitize deleting __ option",I),delete o[I]),I.indexOf("proto")>=0&&(_.debug("sanitize deleting proto option",I),delete o[I]),I.indexOf("constr")>=0&&(_.debug("sanitize deleting constr option",I),delete o[I]),I.indexOf("themeCSS")>=0&&(_.debug("sanitizing themeCss option"),o[I]=pi(o[I])),I.indexOf("fontFamily")>=0&&(_.debug("sanitizing fontFamily option"),o[I]=pi(o[I])),I.indexOf("altFontFamily")>=0&&(_.debug("sanitizing altFontFamily option"),o[I]=pi(o[I])),ga.indexOf(I)<0?(_.debug("sanitize deleting option",I),delete o[I]):li(o[I])==="object"&&(_.debug("sanitize deleting object",I),l(o[I]))})),o.themeVariables)for(var y=Object.keys(o.themeVariables),w=0;w<y.length;w++){var A=y[w],L=o.themeVariables[A];L&&L.match&&!L.match(/^[a-zA-Z0-9#,";()%. ]+$/)&&(o.themeVariables[A]="")}_.debug("After sanitization",o)},pi=function(l){for(var o=0,y=0,w=0;w<l.length;w++){if(o<y)return"{ /* ERROR: Unbalanced CSS */ }";l[w]==="{"?o++:l[w]==="}"&&y++}return o!==y?"{ /* ERROR: Unbalanced CSS */ }":l};const nr={assignWithDepth:Ee,wrapLabel:As,calculateTextHeight:yc,calculateTextWidth:Ba,calculateTextDimensions:mc,calculateSvgSizeAttrs:_c,configureSvgSize:ta,setupGraphViewbox:Cs,detectInit:function(l,o){var y=pc(l,/(?:init\b)|(?:initialize\b)/),w={};if(Array.isArray(y)){var A=y.map(function(I){return I.args});No(A),w=Ee(w,fc(A))}else w=y.args;if(w){var L=Hi(l,o);["config"].forEach(function(I){w[I]!==void 0&&(L==="flowchart-v2"&&(L="flowchart"),w[L]=w[I],delete w[I])})}return w},detectDirective:pc,isSubstringInArray:function(l,o){for(var y=0;y<o.length;y++)if(o[y].match(l))return y;return-1},interpolateToCurve:Qi,calcLabelPosition:function(l){return l.length===1?l[0]:function(o){var y,w=0;o.forEach(function(I){w+=uo(I,y),y=I});var A=w/2,L=void 0;return y=void 0,o.forEach(function(I){if(y&&!L){var O=uo(I,y);if(O<A)A-=O;else{var F=A/O;F<=0&&(L=y),F>=1&&(L={x:I.x,y:I.y}),F>0&&F<1&&(L={x:(1-F)*y.x+F*I.x,y:(1-F)*y.y+F*I.y})}}y=I}),L}(l)},calcCardinalityPosition:function(l,o,y){var w;_.info("our points",o),o[0]!==y&&(o=o.reverse()),o.forEach(function(Y){uo(Y,w),w=Y});var A,L=25;w=void 0,o.forEach(function(Y){if(w&&!A){var X=uo(Y,w);if(X<L)L-=X;else{var et=L/X;et<=0&&(A=w),et>=1&&(A={x:Y.x,y:Y.y}),et>0&&et<1&&(A={x:(1-et)*w.x+et*Y.x,y:(1-et)*w.y+et*Y.y})}}w=Y});var I=l?10:5,O=Math.atan2(o[0].y-A.y,o[0].x-A.x),F={x:0,y:0};return F.x=Math.sin(O)*I+(o[0].x+A.x)/2,F.y=-Math.cos(O)*I+(o[0].y+A.y)/2,F},calcTerminalLabelPosition:function(l,o,y){var w,A=JSON.parse(JSON.stringify(y));_.info("our points",A),o!=="start_left"&&o!=="start_right"&&(A=A.reverse()),A.forEach(function(X){uo(X,w),w=X});var L,I=25+l;w=void 0,A.forEach(function(X){if(w&&!L){var et=uo(X,w);if(et<I)I-=et;else{var ht=I/et;ht<=0&&(L=w),ht>=1&&(L={x:X.x,y:X.y}),ht>0&&ht<1&&(L={x:(1-ht)*w.x+ht*X.x,y:(1-ht)*w.y+ht*X.y})}}w=X});var O=10+.5*l,F=Math.atan2(A[0].y-L.y,A[0].x-L.x),Y={x:0,y:0};return Y.x=Math.sin(F)*O+(A[0].x+L.x)/2,Y.y=-Math.cos(F)*O+(A[0].y+L.y)/2,o==="start_left"&&(Y.x=Math.sin(F+Math.PI)*O+(A[0].x+L.x)/2,Y.y=-Math.cos(F+Math.PI)*O+(A[0].y+L.y)/2),o==="end_right"&&(Y.x=Math.sin(F-Math.PI)*O+(A[0].x+L.x)/2-5,Y.y=-Math.cos(F-Math.PI)*O+(A[0].y+L.y)/2-5),o==="end_left"&&(Y.x=Math.sin(F)*O+(A[0].x+L.x)/2-5,Y.y=-Math.cos(F)*O+(A[0].y+L.y)/2-5),Y},formatUrl:function(l,o){var y=l.trim();if(y)return o.securityLevel!=="loose"?(0,ii.N)(y):y},getStylesFromArray:Oa,generateId:Io,random:gc,memoize:Er,runFunc:function(l){for(var o,y=l.split("."),w=y.length-1,A=y[w],L=window,I=0;I<w;I++)if(!(L=L[y[I]]))return;for(var O=arguments.length,F=new Array(O>1?O-1:0),Y=1;Y<O;Y++)F[Y-1]=arguments[Y];(o=L)[A].apply(o,F)},entityDecode:function(l){return Ss=Ss||document.createElement("div"),l=escape(l).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Ss.innerHTML=l,unescape(Ss.textContent)},initIdGenerator:function(){function l(w,A){(function(L,I){if(!(L instanceof I))throw new TypeError("Cannot call a class as a function")})(this,l),this.deterministic=w,this.seed=A,this.count=A?A.length:0}var o,y;return o=l,(y=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&Ka(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}(),directiveSanitizer:No,sanitizeCss:pi};function Rr(l,o,y){if(o.insert!==void 0){var w=l.getAccTitle(),A=l.getAccDescription();o.attr("role","img").attr("aria-labelledby","chart-title-"+y+" chart-desc-"+y),o.insert("desc",":first-child").attr("id","chart-desc-"+y).text(A),o.insert("title",":first-child").attr("id","chart-title-"+y).text(w)}}function wi(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,w=new Array(o);y<o;y++)w[y]=l[y];return w}function nl(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function Lo(l,o){for(var y=0;y<o.length;y++){var w=o[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}function Is(l,o,y){return o&&Lo(l.prototype,o),y&&Lo(l,y),Object.defineProperty(l,"prototype",{writable:!1}),l}var Ha=0,ho=0,as=4,Ui=2;sn.parser.yy=Xr;var xn={},_a=function(){function l(o){nl(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,qi(o.db.getConfig())}return Is(l,[{key:"setData",value:function(o,y,w,A){this.nextData.startx=this.data.startx=o,this.nextData.stopx=this.data.stopx=y,this.nextData.starty=this.data.starty=w,this.nextData.stopy=this.data.stopy=A}},{key:"updateVal",value:function(o,y,w,A){o[y]===void 0?o[y]=w:o[y]=A(w,o[y])}},{key:"insert",value:function(o){this.nextData.cnt=this.nextData.cnt+1;var y=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+o.margin:this.nextData.stopx+2*o.margin,w=y+o.width,A=this.nextData.starty+2*o.margin,L=A+o.height;(y>=this.data.widthLimit||w>=this.data.widthLimit||this.nextData.cnt>as)&&(y=this.nextData.startx+o.margin+xn.nextLinePaddingX,A=this.nextData.stopy+2*o.margin,this.nextData.stopx=w=y+o.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=L=A+o.height,this.nextData.cnt=1),o.x=y,o.y=A,this.updateVal(this.data,"startx",y,Math.min),this.updateVal(this.data,"starty",A,Math.min),this.updateVal(this.data,"stopx",w,Math.max),this.updateVal(this.data,"stopy",L,Math.max),this.updateVal(this.nextData,"startx",y,Math.min),this.updateVal(this.nextData,"starty",A,Math.min),this.updateVal(this.nextData,"stopx",w,Math.max),this.updateVal(this.nextData,"stopy",L,Math.max)}},{key:"init",value:function(o){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},qi(o.db.getConfig())}},{key:"bumpLastMargin",value:function(o){this.data.stopx+=o,this.data.stopy+=o}}]),l}(),qi=function(l){Ee(xn,l),l.fontFamily&&(xn.personFontFamily=xn.systemFontFamily=xn.messageFontFamily=l.fontFamily),l.fontSize&&(xn.personFontSize=xn.systemFontSize=xn.messageFontSize=l.fontSize),l.fontWeight&&(xn.personFontWeight=xn.systemFontWeight=xn.messageFontWeight=l.fontWeight)},ea=function(l,o){return{fontFamily:l[o+"FontFamily"],fontSize:l[o+"FontSize"],fontWeight:l[o+"FontWeight"]}},tr=function(l){return{fontFamily:l.boundaryFontFamily,fontSize:l.boundaryFontSize,fontWeight:l.boundaryFontWeight}};function N(l,o,y,w,A){if(!o[l].width)if(y)o[l].text=As(o[l].text,A,w),o[l].textLines=o[l].text.split(mn.lineBreakRegex).length,o[l].width=A,o[l].height=yc(o[l].text,w);else{var L=o[l].text.split(mn.lineBreakRegex);o[l].textLines=L.length;var I=0;o[l].height=0,o[l].width=0;for(var O=0;O<L.length;O++)o[l].width=Math.max(Ba(L[O],w),o[l].width),I=yc(L[O],w),o[l].height=o[l].height+I}}var z=function(l,o,y){o.x=y.data.startx,o.y=y.data.starty,o.width=y.data.stopx-y.data.startx,o.height=y.data.stopy-y.data.starty,o.label.y=xn.c4ShapeMargin-35;var w=o.wrap&&xn.wrap,A=tr(xn);A.fontSize=A.fontSize+2,A.fontWeight="bold",N("label",o,w,A,Ba(o.label.text,A)),function(L,I,O){var F=L.append("g"),Y=I.bgColor?I.bgColor:"none",X=I.borderColor?I.borderColor:"#444444",et=I.fontColor?I.fontColor:"black",ht={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};I.nodeType&&(ht={"stroke-width":1});var ot={x:I.x,y:I.y,fill:Y,stroke:X,width:I.width,height:I.height,rx:2.5,ry:2.5,attrs:ht};Co(F,ot);var It=O.boundaryFont();It.fontWeight="bold",It.fontSize=It.fontSize+2,It.fontColor=et,$i(O)(I.label.text,F,I.x,I.y+I.label.Y,I.width,I.height,{fill:"#444444"},It),I.type&&I.type.text!==""&&((It=O.boundaryFont()).fontColor=et,$i(O)(I.type.text,F,I.x,I.y+I.type.Y,I.width,I.height,{fill:"#444444"},It)),I.descr&&I.descr.text!==""&&((It=O.boundaryFont()).fontSize=It.fontSize-2,It.fontColor=et,$i(O)(I.descr.text,F,I.x,I.y+I.descr.Y,I.width,I.height,{fill:"#444444"},It))}(l,o,xn)},tt=function(l,o,y,w){for(var A=0,L=0;L<w.length;L++){A=0;var I=y[w[L]],O=ea(xn,I.typeC4Shape.text);switch(O.fontSize=O.fontSize-2,I.typeC4Shape.width=Ba("<<"+I.typeC4Shape.text+">>",O),I.typeC4Shape.height=O.fontSize+2,I.typeC4Shape.Y=xn.c4ShapePadding,A=I.typeC4Shape.Y+I.typeC4Shape.height-4,I.image={width:0,height:0,Y:0},I.typeC4Shape.text){case"person":case"external_person":I.image.width=48,I.image.height=48,I.image.Y=A,A=I.image.Y+I.image.height}I.sprite&&(I.image.width=48,I.image.height=48,I.image.Y=A,A=I.image.Y+I.image.height);var F=I.wrap&&xn.wrap,Y=xn.width-2*xn.c4ShapePadding,X=ea(xn,I.typeC4Shape.text);X.fontSize=X.fontSize+2,X.fontWeight="bold",N("label",I,F,X,Y),I.label.Y=A+8,A=I.label.Y+I.label.height,I.type&&I.type.text!==""?(I.type.text="["+I.type.text+"]",N("type",I,F,ea(xn,I.typeC4Shape.text),Y),I.type.Y=A+5,A=I.type.Y+I.type.height):I.techn&&I.techn.text!==""&&(I.techn.text="["+I.techn.text+"]",N("techn",I,F,ea(xn,I.techn.text),Y),I.techn.Y=A+5,A=I.techn.Y+I.techn.height);var et=A,ht=I.label.width;I.descr&&I.descr.text!==""&&(N("descr",I,F,ea(xn,I.typeC4Shape.text),Y),I.descr.Y=A+20,A=I.descr.Y+I.descr.height,ht=Math.max(I.label.width,I.descr.width),et=A-5*I.descr.textLines),ht+=xn.c4ShapePadding,I.width=Math.max(I.width||xn.width,ht,xn.width),I.height=Math.max(I.height||xn.height,et,xn.height),I.margin=I.margin||xn.c4ShapeMargin,l.insert(I),Jt(o,I,xn)}l.bumpLastMargin(xn.c4ShapeMargin)},yt=Is(function l(o,y){nl(this,l),this.x=o,this.y=y}),ie=function(l,o){var y=l.x,w=l.y,A=o.x,L=o.y,I=y+l.width/2,O=w+l.height/2,F=Math.abs(y-A),Y=Math.abs(w-L),X=Y/F,et=l.height/l.width,ht=null;return w==L&&y<A?ht=new yt(y+l.width,O):w==L&&y>A?ht=new yt(y,O):y==A&&w<L?ht=new yt(I,w+l.height):y==A&&w>L&&(ht=new yt(I,w)),y>A&&w<L?ht=et>=X?new yt(y,O+X*l.width/2):new yt(I-F/Y*l.height/2,w+l.height):y<A&&w<L?ht=et>=X?new yt(y+l.width,O+X*l.width/2):new yt(I+F/Y*l.height/2,w+l.height):y<A&&w>L?ht=et>=X?new yt(y+l.width,O-X*l.width/2):new yt(I+l.height/2*F/Y,w):y>A&&w>L&&(ht=et>=X?new yt(y,O-l.width/2*X):new yt(I-l.height/2*F/Y,w)),ht},Ce=function(l,o){var y={x:0,y:0};y.x=o.x+o.width/2,y.y=o.y+o.height/2;var w=ie(l,y);return y.x=l.x+l.width/2,y.y=l.y+l.height/2,{startPoint:w,endPoint:ie(o,y)}};function $e(l,o,y,w,A){var L=new _a(A);L.data.widthLimit=y.data.widthLimit/Math.min(Ui,w.length);for(var I=0;I<w.length;I++){var O=w[I],F=0;O.image={width:0,height:0,Y:0},O.sprite&&(O.image.width=48,O.image.height=48,O.image.Y=F,F=O.image.Y+O.image.height);var Y=O.wrap&&xn.wrap,X=tr(xn);if(X.fontSize=X.fontSize+2,X.fontWeight="bold",N("label",O,Y,X,L.data.widthLimit),O.label.Y=F+8,F=O.label.Y+O.label.height,O.type&&O.type.text!==""&&(O.type.text="["+O.type.text+"]",N("type",O,Y,tr(xn),L.data.widthLimit),O.type.Y=F+5,F=O.type.Y+O.type.height),O.descr&&O.descr.text!==""){var et=tr(xn);et.fontSize=et.fontSize-2,N("descr",O,Y,et,L.data.widthLimit),O.descr.Y=F+20,F=O.descr.Y+O.descr.height}if(I==0||I%Ui==0){var ht=y.data.startx+xn.diagramMarginX,ot=y.data.stopy+xn.diagramMarginY+F;L.setData(ht,ht,ot,ot)}else{var It=L.data.stopx!==L.data.startx?L.data.stopx+xn.diagramMarginX:L.data.startx,Nt=L.data.starty;L.setData(It,It,Nt,Nt)}L.name=O.alias;var Yt=A.db.getC4ShapeArray(O.alias),jt=A.db.getC4ShapeKeys(O.alias);jt.length>0&&tt(L,l,Yt,jt),o=O.alias;var Mt=A.db.getBoundarys(o);Mt.length>0&&$e(l,o,L,Mt,A),O.alias!=="global"&&z(l,O,L),y.data.stopy=Math.max(L.data.stopy+xn.c4ShapeMargin,y.data.stopy),y.data.stopx=Math.max(L.data.stopx+xn.c4ShapeMargin,y.data.stopx),Ha=Math.max(Ha,y.data.stopx),ho=Math.max(ho,y.data.stopy)}}const tn={drawPersonOrSystemArray:tt,drawBoundary:z,setConf:qi,draw:function(l,o,y,w){xn=Rt().c4;var A,L=Rt().securityLevel;L==="sandbox"&&(A=(0,E.select)("#i"+o));var I=L==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),O=w.db;w.db.setWrap(xn.wrap),as=O.getC4ShapeInRow(),Ui=O.getC4BoundaryInRow(),_.debug("C:".concat(JSON.stringify(xn,null,2)));var F=L==="sandbox"?I.select('[id="'.concat(o,'"]')):(0,E.select)('[id="'.concat(o,'"]'));F.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(Nt){Nt.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")}(F),function(Nt){Nt.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")}(F);var Y=new _a(w);Y.setData(xn.diagramMarginX,xn.diagramMarginX,xn.diagramMarginY,xn.diagramMarginY),Y.data.widthLimit=screen.availWidth,Ha=xn.diagramMarginX,ho=xn.diagramMarginY;var X=w.db.getTitle();w.db.getC4Type(),$e(F,"",Y,w.db.getBoundarys(""),w),function(Nt){Nt.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")}(F),function(Nt){Nt.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")}(F),function(Nt){var Yt=Nt.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);Yt.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"),Yt.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")}(F),function(Nt){Nt.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")}(F),function(Nt,Yt,jt,Mt){var Ft,Ot,te=0,Oe=function(fe,Be){var Fe=typeof Symbol<"u"&&fe[Symbol.iterator]||fe["@@iterator"];if(!Fe){if(Array.isArray(fe)||(Fe=function(je,Ge){if(je){if(typeof je=="string")return wi(je,Ge);var bn=Object.prototype.toString.call(je).slice(8,-1);return bn==="Object"&&je.constructor&&(bn=je.constructor.name),bn==="Map"||bn==="Set"?Array.from(je):bn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(bn)?wi(je,Ge):void 0}}(fe))||Be&&fe&&typeof fe.length=="number"){Fe&&(fe=Fe);var Ye=0,pn=function(){};return{s:pn,n:function(){return Ye>=fe.length?{done:!0}:{done:!1,value:fe[Ye++]}},e:function(je){throw je},f:pn}}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,ln=!0,gn=!1;return{s:function(){Fe=Fe.call(fe)},n:function(){var je=Fe.next();return ln=je.done,je},e:function(je){gn=!0,Ue=je},f:function(){try{ln||Fe.return==null||Fe.return()}finally{if(gn)throw Ue}}}}(Yt);try{for(Oe.s();!(Ft=Oe.n()).done;){var ke=Ft.value;te+=1;var ve=ke.wrap&&xn.wrap,Pt={fontFamily:(Ot=xn).messageFontFamily,fontSize:Ot.messageFontSize,fontWeight:Ot.messageFontWeight};Mt.db.getC4Type()==="C4Dynamic"&&(ke.label.text=te+": "+ke.label.text);var le=Ba(ke.label.text,Pt);N("label",ke,ve,Pt,le),ke.techn&&ke.techn.text!==""&&N("techn",ke,ve,Pt,le=Ba(ke.techn.text,Pt)),ke.descr&&ke.descr.text!==""&&N("descr",ke,ve,Pt,le=Ba(ke.descr.text,Pt));var Vt=jt(ke.from),ae=jt(ke.to),ee=Ce(Vt,ae);ke.startPoint=ee.startPoint,ke.endPoint=ee.endPoint}}catch(fe){Oe.e(fe)}finally{Oe.f()}wn(Nt,Yt,xn)}(F,w.db.getRels(),w.db.getC4Shape,w),Y.data.stopx=Ha,Y.data.stopy=ho;var et=Y.data,ht=et.stopy-et.starty+2*xn.diagramMarginY,ot=et.stopx-et.startx+2*xn.diagramMarginX;X&&F.append("text").text(X).attr("x",(et.stopx-et.startx)/2-4*xn.diagramMarginX).attr("y",et.starty+xn.diagramMarginY),ta(F,ht,ot,xn.useMaxWidth);var It=X?60:0;F.attr("viewBox",et.startx-xn.diagramMarginX+" -"+(xn.diagramMarginY+It)+" "+ot+" "+(ht+It)),Rr(sn.parser.yy,F,o),_.debug("models:",et)}};function en(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,w=new Array(o);y<o;y++)w[y]=l[y];return w}var dn="classid-",_n=[],Tn={},Cn=0,yr=[],or=function(l){return mn.sanitizeText(l,Rt())},Wr=function(l){var o="",y=l;if(l.indexOf("~")>0){var w=l.split("~");y=w[0],o=mn.sanitizeText(w[1],Rt())}return{className:y,type:o}},gi=function(l){var o=Wr(l);Tn[o.className]===void 0&&(Tn[o.className]={id:o.className,type:o.type,cssClasses:[],methods:[],members:[],annotations:[],domId:dn+o.className+"-"+Cn},Cn++)},Gr=function(l){for(var o=Object.keys(Tn),y=0;y<o.length;y++)if(Tn[o[y]].id===l)return Tn[o[y]].domId},Ns=function(l,o){var y=Wr(l).className,w=Tn[y];if(typeof o=="string"){var A=o.trim();A.startsWith("<<")&&A.endsWith(">>")?w.annotations.push(or(A.substring(2,A.length-2))):A.indexOf(")")>0?w.methods.push(or(A)):A&&w.members.push(or(A))}},rl=function(l,o){l.split(",").forEach(function(y){var w=y;y[0].match(/\d/)&&(w=dn+w),Tn[w]!==void 0&&Tn[w].cssClasses.push(o)})},su=function(l,o,y){var w=Rt(),A=l,L=Gr(A);if(w.securityLevel==="loose"&&o!==void 0&&Tn[A]!==void 0){var I=[];if(typeof y=="string"){I=y.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var O=0;O<I.length;O++){var F=I[O].trim();F.charAt(0)==='"'&&F.charAt(F.length-1)==='"'&&(F=F.substr(1,F.length-2)),I[O]=F}}I.length===0&&I.push(L),yr.push(function(){var Y=document.querySelector('[id="'.concat(L,'"]'));Y!==null&&Y.addEventListener("click",function(){var X;nr.runFunc.apply(nr,[o].concat(function(et){if(Array.isArray(et))return en(et)}(X=I)||function(et){if(typeof Symbol<"u"&&et[Symbol.iterator]!=null||et["@@iterator"]!=null)return Array.from(et)}(X)||function(et,ht){if(et){if(typeof et=="string")return en(et,ht);var ot=Object.prototype.toString.call(et).slice(8,-1);return ot==="Object"&&et.constructor&&(ot=et.constructor.name),ot==="Map"||ot==="Set"?Array.from(et):ot==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ot)?en(et,ht):void 0}}(X)||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)})}},cu=function(l){var o=(0,E.select)(".mermaidTooltip");(o._groups||o)[0][0]===null&&(o=(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();o.transition().duration(200).style("opacity",".9"),o.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(){o.transition().duration(500).style("opacity",0),(0,E.select)(this).classed("hover",!1)})};yr.push(cu);var lu="TB";const Mo={parseDirective:function(l,o,y){Xn.parseDirective(this,l,o,y)},setAccTitle:Qt,getAccTitle:wr,getAccDescription:ci,setAccDescription:ri,getConfig:function(){return Rt().class},addClass:gi,bindFunctions:function(l){yr.forEach(function(o){o(l)})},clear:function(){_n=[],Tn={},(yr=[]).push(cu),Pr()},getClass:function(l){return Tn[l]},getClasses:function(){return Tn},addAnnotation:function(l,o){var y=Wr(l).className;Tn[y].annotations.push(o)},getRelations:function(){return _n},addRelation:function(l){_.debug("Adding relation: "+JSON.stringify(l)),gi(l.id1),gi(l.id2),l.id1=Wr(l.id1).className,l.id2=Wr(l.id2).className,l.relationTitle1=mn.sanitizeText(l.relationTitle1.trim(),Rt()),l.relationTitle2=mn.sanitizeText(l.relationTitle2.trim(),Rt()),_n.push(l)},getDirection:function(){return lu},setDirection:function(l){lu=l},addMember:Ns,addMembers:function(l,o){Array.isArray(o)&&(o.reverse(),o.forEach(function(y){return Ns(l,y)}))},cleanupLabel:function(l){return l.substring(0,1)===":"?mn.sanitizeText(l.substr(1).trim(),Rt()):or(l.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},setClickEvent:function(l,o,y){l.split(",").forEach(function(w){su(w,o,y),Tn[w].haveCallback=!0}),rl(l,"clickable")},setCssClass:rl,setLink:function(l,o,y){var w=Rt();l.split(",").forEach(function(A){var L=A;A[0].match(/\d/)&&(L=dn+L),Tn[L]!==void 0&&(Tn[L].link=nr.formatUrl(o,w),w.securityLevel==="sandbox"?Tn[L].linkTarget="_top":Tn[L].linkTarget=typeof y=="string"?or(y):"_blank")}),rl(l,"clickable")},setTooltip:function(l,o){var y=Rt();l.split(",").forEach(function(w){o!==void 0&&(Tn[w].tooltip=mn.sanitizeText(o,y))})},lookUpDomId:Gr};var Ja=h(681),os=h.n(Ja),Wh=h(8282),yi=h.n(Wh),uu=0,Ls=function(l){var o=l.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),y=l.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return o&&!y?Gh(o):y?il(y):Ii(l)},Gh=function(l){var o="",y="";try{var w=l[1]?l[1].trim():"",A=l[2]?l[2].trim():"",L=l[3]?ss(l[3].trim()):"",I=l[4]?l[4].trim():"",O=l[5]?l[5].trim():"";y=w+A+L+" "+I,o=al(O)}catch{y=l}return{displayText:y,cssStyle:o}},il=function(l){var o="",y="";try{var w=l[1]?l[1].trim():"",A=l[2]?l[2].trim():"",L=l[3]?ss(l[3].trim()):"",I=l[4]?l[4].trim():"";y=w+A+"("+L+")"+(l[5]?" : "+ss(l[5]).trim():""),o=al(I)}catch{y=l}return{displayText:y,cssStyle:o}},Ii=function(l){var o="",y="",w="",A=l.indexOf("("),L=l.indexOf(")");if(A>1&&L>A&&L<=l.length){var I="",O="",F=l.substring(0,1);F.match(/\w/)?O=l.substring(0,A).trim():(F.match(/\+|-|~|#/)&&(I=F),O=l.substring(1,A).trim());var Y=l.substring(A+1,L),X=l.substring(L+1,1);y=al(X),o=I+O+"("+ss(Y.trim())+")",L<0&&(w=l.substring(L+2).trim())!==""&&(w=" : "+ss(w))}else o=ss(l);return{displayText:o,cssStyle:y}},Ms=function(l,o,y,w){var A=Ls(o),L=l.append("tspan").attr("x",w.padding).text(A.displayText);A.cssStyle!==""&&L.attr("style",A.cssStyle),y||L.attr("dy",w.textHeight)},ss=function l(o){var y=o;return o.indexOf("~")!=-1?l(y=(y=y.replace("~","<")).replace("~",">")):y},al=function(l){switch(l){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const J0=function(l,o,y,w){_.debug("Rendering class ",o,y);var A,L=o.id,I={id:L,label:o.id,width:0,height:0},O=l.append("g").attr("id",w.db.lookUpDomId(L)).attr("class","classGroup");A=o.link?O.append("svg:a").attr("xlink:href",o.link).attr("target",o.linkTarget).append("text").attr("y",y.textHeight+y.padding).attr("x",0):O.append("text").attr("y",y.textHeight+y.padding).attr("x",0);var F=!0;o.annotations.forEach(function(Ot){var te=A.append("tspan").text("\xAB"+Ot+"\xBB");F||te.attr("dy",y.textHeight),F=!1});var Y=o.id;o.type!==void 0&&o.type!==""&&(Y+="<"+o.type+">");var X=A.append("tspan").text(Y).attr("class","title");F||X.attr("dy",y.textHeight);var et=A.node().getBBox().height,ht=O.append("line").attr("x1",0).attr("y1",y.padding+et+y.dividerMargin/2).attr("y2",y.padding+et+y.dividerMargin/2),ot=O.append("text").attr("x",y.padding).attr("y",et+y.dividerMargin+y.textHeight).attr("fill","white").attr("class","classText");F=!0,o.members.forEach(function(Ot){Ms(ot,Ot,F,y),F=!1});var It=ot.node().getBBox(),Nt=O.append("line").attr("x1",0).attr("y1",y.padding+et+y.dividerMargin+It.height).attr("y2",y.padding+et+y.dividerMargin+It.height),Yt=O.append("text").attr("x",y.padding).attr("y",et+2*y.dividerMargin+It.height+y.textHeight).attr("fill","white").attr("class","classText");F=!0,o.methods.forEach(function(Ot){Ms(Yt,Ot,F,y),F=!1});var jt=O.node().getBBox(),Mt=" ";o.cssClasses.length>0&&(Mt+=o.cssClasses.join(" "));var Ft=O.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",jt.width+2*y.padding).attr("height",jt.height+y.padding+.5*y.dividerMargin).attr("class",Mt).node().getBBox().width;return A.node().childNodes.forEach(function(Ot){Ot.setAttribute("x",(Ft-Ot.getBBox().width)/2)}),o.tooltip&&A.insert("title").text(o.tooltip),ht.attr("x2",Ft),Nt.attr("x2",Ft),I.width=Ft,I.height=jt.height+y.padding+.5*y.dividerMargin,I};var bc={},vc=function(l){var o=Object.entries(bc).find(function(y){return y[1].label===l});if(o)return o[0]};const Q0={draw:function(l,o,y,w){var A=Rt().class;bc={},_.info("Rendering diagram "+l);var L,I=Rt().securityLevel;I==="sandbox"&&(L=(0,E.select)("#i"+o));var O,F=I==="sandbox"?(0,E.select)(L.nodes()[0].contentDocument.body):(0,E.select)("body"),Y=(I==="sandbox"&&L.nodes()[0].contentDocument,F.select("[id='".concat(o,"']")));(O=Y).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"),O.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"),O.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"),O.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"),O.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"),O.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"),O.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"),O.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 X=new(yi()).Graph({multigraph:!0});X.setGraph({isMultiGraph:!0}),X.setDefaultEdgeLabel(function(){return{}});for(var et=w.db.getClasses(),ht=Object.keys(et),ot=0;ot<ht.length;ot++){var It=et[ht[ot]],Nt=J0(Y,It,A,w);bc[Nt.id]=Nt,X.setNode(Nt.id,Nt),_.info("Org height: "+Nt.height)}w.db.getRelations().forEach(function(Ot){_.info("tjoho"+vc(Ot.id1)+vc(Ot.id2)+JSON.stringify(Ot)),X.setEdge(vc(Ot.id1),vc(Ot.id2),{relation:Ot},Ot.title||"DEFAULT")}),os().layout(X),X.nodes().forEach(function(Ot){Ot!==void 0&&X.node(Ot)!==void 0&&(_.debug("Node "+Ot+": "+JSON.stringify(X.node(Ot))),F.select("#"+w.db.lookUpDomId(Ot)).attr("transform","translate("+(X.node(Ot).x-X.node(Ot).width/2)+","+(X.node(Ot).y-X.node(Ot).height/2)+" )"))}),X.edges().forEach(function(Ot){Ot!==void 0&&X.edge(Ot)!==void 0&&(_.debug("Edge "+Ot.v+" -> "+Ot.w+": "+JSON.stringify(X.edge(Ot))),function(te,Oe,ke,ve,Pt){var le=function(mr){switch(mr){case Pt.db.relationType.AGGREGATION:return"aggregation";case Pt.db.EXTENSION:return"extension";case Pt.db.COMPOSITION:return"composition";case Pt.db.DEPENDENCY:return"dependency"}};Oe.points=Oe.points.filter(function(mr){return!Number.isNaN(mr.y)});var Vt,ae,ee=Oe.points,fe=(0,E.line)().x(function(mr){return mr.x}).y(function(mr){return mr.y}).curve(E.curveBasis),Be=te.append("path").attr("d",fe(ee)).attr("id","edge"+uu).attr("class","relation"),Fe="";ve.arrowMarkerAbsolute&&(Fe=(Fe=(Fe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),ke.relation.lineType==1&&Be.attr("class","relation dashed-line"),ke.relation.type1!=="none"&&Be.attr("marker-start","url("+Fe+"#"+le(ke.relation.type1)+"Start)"),ke.relation.type2!=="none"&&Be.attr("marker-end","url("+Fe+"#"+le(ke.relation.type2)+"End)");var Ye,pn,Ue,ln,gn=Oe.points.length,je=nr.calcLabelPosition(Oe.points);if(Vt=je.x,ae=je.y,gn%2!=0&&gn>1){var Ge=nr.calcCardinalityPosition(ke.relation.type1!=="none",Oe.points,Oe.points[0]),bn=nr.calcCardinalityPosition(ke.relation.type2!=="none",Oe.points,Oe.points[gn-1]);_.debug("cardinality_1_point "+JSON.stringify(Ge)),_.debug("cardinality_2_point "+JSON.stringify(bn)),Ye=Ge.x,pn=Ge.y,Ue=bn.x,ln=bn.y}if(ke.title!==void 0){var _r=te.append("g").attr("class","classLabel"),vr=_r.append("text").attr("class","label").attr("x",Vt).attr("y",ae).attr("fill","red").attr("text-anchor","middle").text(ke.title);window.label=vr;var ui=vr.node().getBBox();_r.insert("rect",":first-child").attr("class","box").attr("x",ui.x-ve.padding/2).attr("y",ui.y-ve.padding/2).attr("width",ui.width+ve.padding).attr("height",ui.height+ve.padding)}_.info("Rendering relation "+JSON.stringify(ke)),ke.relationTitle1!==void 0&&ke.relationTitle1!=="none"&&te.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",Ye).attr("y",pn).attr("fill","black").attr("font-size","6").text(ke.relationTitle1),ke.relationTitle2!==void 0&&ke.relationTitle2!=="none"&&te.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",Ue).attr("y",ln).attr("fill","black").attr("font-size","6").text(ke.relationTitle2),uu++}(Y,X.edge(Ot),X.edge(Ot).relation,A,w))});var Yt=Y.node().getBBox(),jt=Yt.width+40,Mt=Yt.height+40;ta(Y,Mt,jt,A.useMaxWidth);var Ft="".concat(Yt.x-20," ").concat(Yt.y-20," ").concat(jt," ").concat(Mt);_.debug("viewBox ".concat(Ft)),Y.attr("viewBox",Ft),Rr(w.db,Y,o)}};var Vh={extension:function(l,o,y){_.trace("Making markers for ",y),l.append("defs").append("marker").attr("id",o+"-extensionStart").attr("class","marker extension "+o).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",o+"-extensionEnd").attr("class","marker extension "+o).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,o){l.append("defs").append("marker").attr("id",o+"-compositionStart").attr("class","marker composition "+o).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",o+"-compositionEnd").attr("class","marker composition "+o).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,o){l.append("defs").append("marker").attr("id",o+"-aggregationStart").attr("class","marker aggregation "+o).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",o+"-aggregationEnd").attr("class","marker aggregation "+o).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,o){l.append("defs").append("marker").attr("id",o+"-dependencyStart").attr("class","marker dependency "+o).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",o+"-dependencyEnd").attr("class","marker dependency "+o).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,o){l.append("marker").attr("id",o+"-pointEnd").attr("class","marker "+o).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",o+"-pointStart").attr("class","marker "+o).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,o){l.append("marker").attr("id",o+"-circleEnd").attr("class","marker "+o).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",o+"-circleStart").attr("class","marker "+o).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,o){l.append("marker").attr("id",o+"-crossEnd").attr("class","marker cross "+o).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",o+"-crossStart").attr("class","marker cross "+o).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,o){l.append("defs").append("marker").attr("id",o+"-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,o,y,w){o.forEach(function(A){Vh[A](l,y,w)})};function la(l){return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},la(l)}const na=function(l,o,y,w){var A=l||"";if(la(A)==="object"&&(A=A[0]),fn(Rt().flowchart.htmlLabels)){A=A.replace(/\\n|\n/g,"<br />"),_.info("vertexText"+A);var L=function(X){var et,ht=(0,E.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),ot=ht.append("xhtml:div"),It=X.label,Nt=X.isNode?"nodeLabel":"edgeLabel";return ot.html('<span class="'+Nt+'" '+(X.labelStyle?'style="'+X.labelStyle+'"':"")+">"+It+"</span>"),(et=X.labelStyle)&&ot.attr("style",et),ot.style("display","inline-block"),ot.style("white-space","nowrap"),ot.attr("xmlns","http://www.w3.org/1999/xhtml"),ht.node()}({isNode:w,label:rr(A).replace(/fa[lrsb]?:fa-[\w-]+/g,function(X){return"<i class='".concat(X.replace(":"," "),"'></i>")}),labelStyle:o.replace("fill:","color:")});return L}var I=document.createElementNS("http://www.w3.org/2000/svg","text");I.setAttribute("style",o.replace("color:","fill:"));var O=[];O=typeof A=="string"?A.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(A)?A:[];for(var F=0;F<O.length;F++){var Y=document.createElementNS("http://www.w3.org/2000/svg","tspan");Y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Y.setAttribute("dy","1em"),Y.setAttribute("x","0"),y?Y.setAttribute("class","title-row"):Y.setAttribute("class","row"),Y.textContent=O[F].trim(),I.appendChild(Y)}return I};var Ni=function(l,o,y,w){var A;A=y||"node default";var L=l.insert("g").attr("class",A).attr("id",o.domId||o.id),I=L.insert("g").attr("class","label").attr("style",o.labelStyle),O=typeof o.labelText=="string"?o.labelText:o.labelText[0],F=I.node().appendChild(na(hr(rr(O),Rt()),o.labelStyle,!1,w)),Y=F.getBBox();if(fn(Rt().flowchart.htmlLabels)){var X=F.children[0],et=(0,E.select)(F);Y=X.getBoundingClientRect(),et.attr("width",Y.width),et.attr("height",Y.height)}var ht=o.padding/2;return I.attr("transform","translate("+-Y.width/2+", "+-Y.height/2+")"),{shapeSvg:L,bbox:Y,halfPadding:ht,label:I}},ni=function(l,o){var y=o.node().getBBox();l.width=y.width,l.height=y.height};function qa(l,o,y,w){return l.insert("polygon",":first-child").attr("points",w.map(function(A){return A.x+","+A.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-o/2+","+y/2+")")}var er={},Ra={},ua={},cs=function(l,o){return _.trace("In isDecendant",o," ",l," = ",Ra[o].indexOf(l)>=0),Ra[o].indexOf(l)>=0},xc=function l(o,y,w,A){_.warn("Copying children of ",o,"root",A,"data",y.node(o),A);var L=y.children(o)||[];o!==A&&L.push(o),_.warn("Copying (nodes) clusterId",o,"nodes",L),L.forEach(function(I){if(y.children(I).length>0)l(I,y,w,A);else{var O=y.node(I);_.info("cp ",I," to ",A," with parent ",o),w.setNode(I,O),A!==y.parent(I)&&(_.warn("Setting parent",I,y.parent(I)),w.setParent(I,y.parent(I))),o!==A&&I!==o?(_.debug("Setting parent",I,o),w.setParent(I,o)):(_.info("In copy ",o,"root",A,"data",y.node(o),A),_.debug("Not Setting parent for node=",I,"cluster!==rootId",o!==A,"node!==clusterId",I!==o));var F=y.edges(I);_.debug("Copying Edges",F),F.forEach(function(Y){_.info("Edge",Y);var X=y.edge(Y.v,Y.w,Y.name);_.info("Edge data",X,A);try{(function(et,ht){return _.info("Decendants of ",ht," is ",Ra[ht]),_.info("Edge is ",et),et.v!==ht&&et.w!==ht&&(Ra[ht]?(_.info("Here "),Ra[ht].indexOf(et.v)>=0||!!cs(et.v,ht)||!!cs(et.w,ht)||Ra[ht].indexOf(et.w)>=0):(_.debug("Tilt, ",ht,",not in decendants"),!1))})(Y,A)?(_.info("Copying as ",Y.v,Y.w,X,Y.name),w.setEdge(Y.v,Y.w,X,Y.name),_.info("newGraph edges ",w.edges(),w.edge(w.edges()[0]))):_.info("Skipping copy of edge ",Y.v,"-->",Y.w," rootId: ",A," clusterId:",o)}catch(et){_.error(et)}})}_.debug("Removing node",I),y.removeNode(I)})},Os=function l(o,y){for(var w=y.children(o),A=[].concat(w),L=0;L<w.length;L++)ua[w[L]]=o,A=A.concat(l(w[L],y));return A},Oo=function l(o,y){_.trace("Searching",o);var w=y.children(o);if(_.trace("Searching children of id ",o,w),w.length<1)return _.trace("This is a valid node",o),o;for(var A=0;A<w.length;A++){var L=l(w[A],y);if(L)return _.trace("Found replacement for",o," => ",L),L}},Do=function(l){return er[l]&&er[l].externalConnections&&er[l]?er[l].id:l},ol=function(l,o){!l||o>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: ",Oo(y,l)),Ra[y]=Os(y,l),er[y]={id:Oo(y,l),clusterData:l.node(y)})}),l.nodes().forEach(function(y){var w=l.children(y),A=l.edges();w.length>0?(_.debug("Cluster identified",y,Ra),A.forEach(function(L){L.v!==y&&L.w!==y&&cs(L.v,y)^cs(L.w,y)&&(_.warn("Edge: ",L," leaves cluster ",y),_.warn("Decendants of XXX ",y,": ",Ra[y]),er[y].externalConnections=!0)})):_.debug("Not a cluster ",y,Ra)}),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 A=y.v,L=y.w;if(_.warn("Fix XXX",er,"ids:",y.v,y.w,"Translateing: ",er[y.v]," --- ",er[y.w]),er[y.v]&&er[y.w]&&er[y.v]===er[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),A=Do(y.v),L=Do(y.w),l.removeEdge(y.v,y.w,y.name);var I=y.w+"---"+y.v;l.setNode(I,{domId:I,id:I,labelStyle:"",labelText:w.label,padding:0,shape:"labelRect",style:""});var O=JSON.parse(JSON.stringify(w)),F=JSON.parse(JSON.stringify(w));O.label="",O.arrowTypeEnd="none",F.label="",O.fromCluster=y.v,F.toCluster=y.v,l.setEdge(A,I,O,y.name+"-cyclic-special"),l.setEdge(I,L,F,y.name+"-cyclic-special")}else(er[y.v]||er[y.w])&&(_.warn("Fixing and trixing - removing XXX",y.v,y.w,y.name),A=Do(y.v),L=Do(y.w),l.removeEdge(y.v,y.w,y.name),A!==y.v&&(w.fromCluster=y.v),L!==y.w&&(w.toCluster=y.w),_.warn("Fix Replacing with XXX",A,L,y.name),l.setEdge(A,L,w,y.name))}),_.warn("Adjusted Graph",yi().json.write(l)),ls(l,0),_.trace(er))},ls=function l(o,y){if(_.warn("extractor - ",y,yi().json.write(o),o.children("D")),y>10)_.error("Bailing out");else{for(var w=o.nodes(),A=!1,L=0;L<w.length;L++){var I=w[L],O=o.children(I);A=A||O.length>0}if(A){_.debug("Nodes = ",w,y);for(var F=0;F<w.length;F++){var Y=w[F];if(_.debug("Extracting node",Y,er,er[Y]&&!er[Y].externalConnections,!o.parent(Y),o.node(Y),o.children("D")," Depth ",y),er[Y])if(!er[Y].externalConnections&&o.children(Y)&&o.children(Y).length>0){_.warn("Cluster without external connections, without a parent and with children",Y,y);var X=o.graph().rankdir==="TB"?"LR":"TB";er[Y]&&er[Y].clusterData&&er[Y].clusterData.dir&&(X=er[Y].clusterData.dir,_.warn("Fixing dir",er[Y].clusterData.dir,X));var et=new(yi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:X,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});_.warn("Old graph before copy",yi().json.write(o)),xc(Y,o,et,Y),o.setNode(Y,{clusterNode:!0,id:Y,clusterData:er[Y].clusterData,labelText:er[Y].labelText,graph:et}),_.warn("New graph after copy node: (",Y,")",yi().json.write(et)),_.debug("Old graph after copy",yi().json.write(o))}else _.warn("Cluster ** ",Y," **not meeting the criteria !externalConnections:",!er[Y].externalConnections," no parent: ",!o.parent(Y)," children ",o.children(Y)&&o.children(Y).length>0,o.children("D"),y),_.debug(er);else _.debug("Not a cluster",Y,y)}w=o.nodes(),_.warn("New list of nodes",w);for(var ht=0;ht<w.length;ht++){var ot=w[ht],It=o.node(ot);_.warn(" Now next level",ot,It),It.clusterNode&&l(It.graph,y+1)}}else _.debug("Done, no node has children",o.nodes())}},sl=function l(o,y){if(y.length===0)return[];var w=Object.assign(y);return y.forEach(function(A){var L=o.children(A),I=l(o,L);w=w.concat(I)}),w},kc=function(l){return sl(l,l.children())},Xh=h(3841);const wc=function(l,o,y,w){var A=l.x,L=l.y,I=A-w.x,O=L-w.y,F=Math.sqrt(o*o*O*O+y*y*I*I),Y=Math.abs(o*y*I/F);w.x<A&&(Y=-Y);var X=Math.abs(o*y*O/F);return w.y<L&&(X=-X),{x:A+Y,y:L+X}};function Kh(l,o){return l*o>0}const Ec=function(l,o,y,w){var A,L,I,O,F,Y,X,et,ht,ot,It,Nt,Yt;if(A=o.y-l.y,I=l.x-o.x,F=o.x*l.y-l.x*o.y,ht=A*y.x+I*y.y+F,ot=A*w.x+I*w.y+F,!(ht!==0&&ot!==0&&Kh(ht,ot)||(L=w.y-y.y,O=y.x-w.x,Y=w.x*y.y-y.x*w.y,X=L*l.x+O*l.y+Y,et=L*o.x+O*o.y+Y,X!==0&&et!==0&&Kh(X,et)||(It=A*O-L*I)==0)))return Nt=Math.abs(It/2),{x:(Yt=I*Y-O*F)<0?(Yt-Nt)/It:(Yt+Nt)/It,y:(Yt=L*F-A*Y)<0?(Yt-Nt)/It:(Yt+Nt)/It}},Bo=function(l,o){var y,w,A=l.x,L=l.y,I=o.x-A,O=o.y-L,F=l.width/2,Y=l.height/2;return Math.abs(O)*F>Math.abs(I)*Y?(O<0&&(Y=-Y),y=O===0?0:Y*I/O,w=Y):(I<0&&(F=-F),y=F,w=I===0?0:F*O/I),{x:A+y,y:L+w}},Ds=(h.n(Xh)(),function(l,o,y){return wc(l,o,o,y)}),Qa=function(l,o,y){var w=l.x,A=l.y,L=[],I=Number.POSITIVE_INFINITY,O=Number.POSITIVE_INFINITY;typeof o.forEach=="function"?o.forEach(function(It){I=Math.min(I,It.x),O=Math.min(O,It.y)}):(I=Math.min(I,o.x),O=Math.min(O,o.y));for(var F=w-l.width/2-I,Y=A-l.height/2-O,X=0;X<o.length;X++){var et=o[X],ht=o[X<o.length-1?X+1:0],ot=Ec(l,y,{x:F+et.x,y:Y+et.y},{x:F+ht.x,y:Y+ht.y});ot&&L.push(ot)}return L.length?(L.length>1&&L.sort(function(It,Nt){var Yt=It.x-y.x,jt=It.y-y.y,Mt=Math.sqrt(Yt*Yt+jt*jt),Ft=Nt.x-y.x,Ot=Nt.y-y.y,te=Math.sqrt(Ft*Ft+Ot*Ot);return Mt<te?-1:Mt===te?0:1}),L[0]):l},Ro=Bo;function Bs(l){return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Bs(l)}function cl(l,o,y,w){var A=[],L=function(O){A.push(O),A.push(0)},I=function(O){A.push(0),A.push(O)};o.includes("t")?(_.debug("add top border"),L(y)):I(y),o.includes("r")?(_.debug("add right border"),L(w)):I(w),o.includes("b")?(_.debug("add bottom border"),L(y)):I(y),o.includes("l")?(_.debug("add left border"),L(w)):I(w),l.attr("stroke-dasharray",A.join(" "))}var Jh=function(l,o,y){var w=l.insert("g").attr("class","node default").attr("id",o.domId||o.id),A=70,L=10;y==="LR"&&(A=10,L=70);var I=w.append("rect").attr("x",-1*A/2).attr("y",-1*L/2).attr("width",A).attr("height",L).attr("class","fork-join");return ni(o,I),o.height=o.height+o.padding/2,o.width=o.width+o.padding/2,o.intersect=function(O){return Ro(o,O)},w},Qh={question:function(l,o){var y=Ni(l,o,void 0,!0),w=y.shapeSvg,A=y.bbox,L=A.width+o.padding+(A.height+o.padding),I=[{x:L/2,y:0},{x:L,y:-L/2},{x:L/2,y:-L},{x:0,y:-L/2}];_.info("Question main (Circle)");var O=qa(w,L,L,I);return O.attr("style",o.style),ni(o,O),o.intersect=function(F){return _.warn("Intersect called"),Qa(o,I,F)},w},rect:function(l,o){var y=Ni(l,o,"node "+o.classes,!0),w=y.shapeSvg,A=y.bbox,L=y.halfPadding;_.trace("Classes = ",o.classes);var I=w.insert("rect",":first-child"),O=A.width+o.padding,F=A.height+o.padding;if(I.attr("class","basic label-container").attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("x",-A.width/2-L).attr("y",-A.height/2-L).attr("width",O).attr("height",F),o.props){var Y=new Set(Object.keys(o.props));o.props.borders&&(cl(I,o.props.borders,O,F),Y.delete("borders")),Y.forEach(function(X){_.warn("Unknown node property ".concat(X))})}return ni(o,I),o.intersect=function(X){return Ro(o,X)},w},labelRect:function(l,o){var y=Ni(l,o,"label",!0),w=y.shapeSvg;_.trace("Classes = ",o.classes);var A=w.insert("rect",":first-child");if(A.attr("width",0).attr("height",0),w.attr("class","label edgeLabel"),o.props){var L=new Set(Object.keys(o.props));o.props.borders&&(cl(A,o.props.borders,0,0),L.delete("borders")),L.forEach(function(I){_.warn("Unknown node property ".concat(I))})}return ni(o,A),o.intersect=function(I){return Ro(o,I)},w},rectWithTitle:function(l,o){var y;y=o.classes?"node "+o.classes:"node default";var w,A=l.insert("g").attr("class",y).attr("id",o.domId||o.id),L=A.insert("rect",":first-child"),I=A.insert("line"),O=A.insert("g").attr("class","label"),F=o.labelText.flat?o.labelText.flat():o.labelText;w=Bs(F)==="object"?F[0]:F,_.info("Label text abc79",w,F,Bs(F)==="object");var Y=O.node().appendChild(na(w,o.labelStyle,!0,!0)),X={width:0,height:0};if(fn(Rt().flowchart.htmlLabels)){var et=Y.children[0],ht=(0,E.select)(Y);X=et.getBoundingClientRect(),ht.attr("width",X.width),ht.attr("height",X.height)}_.info("Text 2",F);var ot=F.slice(1,F.length),It=Y.getBBox(),Nt=O.node().appendChild(na(ot.join?ot.join("<br/>"):ot,o.labelStyle,!0,!0));if(fn(Rt().flowchart.htmlLabels)){var Yt=Nt.children[0],jt=(0,E.select)(Nt);X=Yt.getBoundingClientRect(),jt.attr("width",X.width),jt.attr("height",X.height)}var Mt=o.padding/2;return(0,E.select)(Nt).attr("transform","translate( "+(X.width>It.width?0:(It.width-X.width)/2)+", "+(It.height+Mt+5)+")"),(0,E.select)(Y).attr("transform","translate( "+(X.width<It.width?0:-(It.width-X.width)/2)+", 0)"),X=O.node().getBBox(),O.attr("transform","translate("+-X.width/2+", "+(-X.height/2-Mt+3)+")"),L.attr("class","outer title-state").attr("x",-X.width/2-Mt).attr("y",-X.height/2-Mt).attr("width",X.width+o.padding).attr("height",X.height+o.padding),I.attr("class","divider").attr("x1",-X.width/2-Mt).attr("x2",X.width/2+Mt).attr("y1",-X.height/2-Mt+It.height+Mt).attr("y2",-X.height/2-Mt+It.height+Mt),ni(o,L),o.intersect=function(Ft){return Ro(o,Ft)},A},choice:function(l,o){var y=l.insert("g").attr("class","node default").attr("id",o.domId||o.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),o.width=28,o.height=28,o.intersect=function(w){return Ds(o,14,w)},y},circle:function(l,o){var y=Ni(l,o,void 0,!0),w=y.shapeSvg,A=y.bbox,L=y.halfPadding,I=w.insert("circle",":first-child");return I.attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("r",A.width/2+L).attr("width",A.width+o.padding).attr("height",A.height+o.padding),_.info("Circle main"),ni(o,I),o.intersect=function(O){return _.info("Circle intersect",o,A.width/2+L,O),Ds(o,A.width/2+L,O)},w},doublecircle:function(l,o){var y=Ni(l,o,void 0,!0),w=y.shapeSvg,A=y.bbox,L=y.halfPadding,I=w.insert("g",":first-child"),O=I.insert("circle"),F=I.insert("circle");return O.attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("r",A.width/2+L+5).attr("width",A.width+o.padding+10).attr("height",A.height+o.padding+10),F.attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("r",A.width/2+L).attr("width",A.width+o.padding).attr("height",A.height+o.padding),_.info("DoubleCircle main"),ni(o,O),o.intersect=function(Y){return _.info("DoubleCircle intersect",o,A.width/2+L+5,Y),Ds(o,A.width/2+L+5,Y)},w},stadium:function(l,o){var y=Ni(l,o,void 0,!0),w=y.shapeSvg,A=y.bbox,L=A.height+o.padding,I=A.width+L/4+o.padding,O=w.insert("rect",":first-child").attr("style",o.style).attr("rx",L/2).attr("ry",L/2).attr("x",-I/2).attr("y",-L/2).attr("width",I).attr("height",L);return ni(o,O),o.intersect=function(F){return Ro(o,F)},w},hexagon:function(l,o){var y=Ni(l,o,void 0,!0),w=y.shapeSvg,A=y.bbox,L=A.height+o.padding,I=L/4,O=A.width+2*I+o.padding,F=[{x:I,y:0},{x:O-I,y:0},{x:O,y:-L/2},{x:O-I,y:-L},{x:I,y:-L},{x:0,y:-L/2}],Y=qa(w,O,L,F);return Y.attr("style",o.style),ni(o,Y),o.intersect=function(X){return Qa(o,F,X)},w},rect_left_inv_arrow:function(l,o){var y=Ni(l,o,void 0,!0),w=y.shapeSvg,A=y.bbox,L=A.width+o.padding,I=A.height+o.padding,O=[{x:-I/2,y:0},{x:L,y:0},{x:L,y:-I},{x:-I/2,y:-I},{x:0,y:-I/2}];return qa(w,L,I,O).attr("style",o.style),o.width=L+I,o.height=I,o.intersect=function(F){return Qa(o,O,F)},w},lean_right:function(l,o){var y=Ni(l,o,void 0,!0),w=y.shapeSvg,A=y.bbox,L=A.width+o.padding,I=A.height+o.padding,O=[{x:-2*I/6,y:0},{x:L-I/6,y:0},{x:L+2*I/6,y:-I},{x:I/6,y:-I}],F=qa(w,L,I,O);return F.attr("style",o.style),ni(o,F),o.intersect=function(Y){return Qa(o,O,Y)},w},lean_left:function(l,o){var y=Ni(l,o,void 0,!0),w=y.shapeSvg,A=y.bbox,L=A.width+o.padding,I=A.height+o.padding,O=[{x:2*I/6,y:0},{x:L+I/6,y:0},{x:L-2*I/6,y:-I},{x:-I/6,y:-I}],F=qa(w,L,I,O);return F.attr("style",o.style),ni(o,F),o.intersect=function(Y){return Qa(o,O,Y)},w},trapezoid:function(l,o){var y=Ni(l,o,void 0,!0),w=y.shapeSvg,A=y.bbox,L=A.width+o.padding,I=A.height+o.padding,O=[{x:-2*I/6,y:0},{x:L+2*I/6,y:0},{x:L-I/6,y:-I},{x:I/6,y:-I}],F=qa(w,L,I,O);return F.attr("style",o.style),ni(o,F),o.intersect=function(Y){return Qa(o,O,Y)},w},inv_trapezoid:function(l,o){var y=Ni(l,o,void 0,!0),w=y.shapeSvg,A=y.bbox,L=A.width+o.padding,I=A.height+o.padding,O=[{x:I/6,y:0},{x:L-I/6,y:0},{x:L+2*I/6,y:-I},{x:-2*I/6,y:-I}],F=qa(w,L,I,O);return F.attr("style",o.style),ni(o,F),o.intersect=function(Y){return Qa(o,O,Y)},w},rect_right_inv_arrow:function(l,o){var y=Ni(l,o,void 0,!0),w=y.shapeSvg,A=y.bbox,L=A.width+o.padding,I=A.height+o.padding,O=[{x:0,y:0},{x:L+I/2,y:0},{x:L,y:-I/2},{x:L+I/2,y:-I},{x:0,y:-I}],F=qa(w,L,I,O);return F.attr("style",o.style),ni(o,F),o.intersect=function(Y){return Qa(o,O,Y)},w},cylinder:function(l,o){var y=Ni(l,o,void 0,!0),w=y.shapeSvg,A=y.bbox,L=A.width+o.padding,I=L/2,O=I/(2.5+L/50),F=A.height+O+o.padding,Y="M 0,"+O+" a "+I+","+O+" 0,0,0 "+L+" 0 a "+I+","+O+" 0,0,0 "+-L+" 0 l 0,"+F+" a "+I+","+O+" 0,0,0 "+L+" 0 l 0,"+-F,X=w.attr("label-offset-y",O).insert("path",":first-child").attr("style",o.style).attr("d",Y).attr("transform","translate("+-L/2+","+-(F/2+O)+")");return ni(o,X),o.intersect=function(et){var ht=Ro(o,et),ot=ht.x-o.x;if(I!=0&&(Math.abs(ot)<o.width/2||Math.abs(ot)==o.width/2&&Math.abs(ht.y-o.y)>o.height/2-O)){var It=O*O*(1-ot*ot/(I*I));It!=0&&(It=Math.sqrt(It)),It=O-It,et.y-o.y>0&&(It=-It),ht.y+=It}return ht},w},start:function(l,o){var y=l.insert("g").attr("class","node default").attr("id",o.domId||o.id),w=y.insert("circle",":first-child");return w.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),ni(o,w),o.intersect=function(A){return Ds(o,7,A)},y},end:function(l,o){var y=l.insert("g").attr("class","node default").attr("id",o.domId||o.id),w=y.insert("circle",":first-child"),A=y.insert("circle",":first-child");return A.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),ni(o,A),o.intersect=function(L){return Ds(o,7,L)},y},note:function(l,o){var y=Ni(l,o,"node "+o.classes,!0),w=y.shapeSvg,A=y.bbox,L=y.halfPadding;_.info("Classes = ",o.classes);var I=w.insert("rect",":first-child");return I.attr("rx",o.rx).attr("ry",o.ry).attr("x",-A.width/2-L).attr("y",-A.height/2-L).attr("width",A.width+o.padding).attr("height",A.height+o.padding),ni(o,I),o.intersect=function(O){return Ro(o,O)},w},subroutine:function(l,o){var y=Ni(l,o,void 0,!0),w=y.shapeSvg,A=y.bbox,L=A.width+o.padding,I=A.height+o.padding,O=[{x:0,y:0},{x:L,y:0},{x:L,y:-I},{x:0,y:-I},{x:0,y:0},{x:-8,y:0},{x:L+8,y:0},{x:L+8,y:-I},{x:-8,y:-I},{x:-8,y:0}],F=qa(w,L,I,O);return F.attr("style",o.style),ni(o,F),o.intersect=function(Y){return Qa(o,O,Y)},w},fork:Jh,join:Jh,class_box:function(l,o){var y,w=o.padding/2;y=o.classes?"node "+o.classes:"node default";var A=l.insert("g").attr("class",y).attr("id",o.domId||o.id),L=A.insert("rect",":first-child"),I=A.insert("line"),O=A.insert("line"),F=0,Y=4,X=A.insert("g").attr("class","label"),et=0,ht=o.classData.annotations&&o.classData.annotations[0],ot=o.classData.annotations[0]?"\xAB"+o.classData.annotations[0]+"\xBB":"",It=X.node().appendChild(na(ot,o.labelStyle,!0,!0)),Nt=It.getBBox();if(fn(Rt().flowchart.htmlLabels)){var Yt=It.children[0],jt=(0,E.select)(It);Nt=Yt.getBoundingClientRect(),jt.attr("width",Nt.width),jt.attr("height",Nt.height)}o.classData.annotations[0]&&(Y+=Nt.height+4,F+=Nt.width);var Mt=o.classData.id;o.classData.type!==void 0&&o.classData.type!==""&&(Rt().flowchart.htmlLabels?Mt+="<"+o.classData.type+">":Mt+="<"+o.classData.type+">");var Ft=X.node().appendChild(na(Mt,o.labelStyle,!0,!0));(0,E.select)(Ft).attr("class","classTitle");var Ot=Ft.getBBox();if(fn(Rt().flowchart.htmlLabels)){var te=Ft.children[0],Oe=(0,E.select)(Ft);Ot=te.getBoundingClientRect(),Oe.attr("width",Ot.width),Oe.attr("height",Ot.height)}Y+=Ot.height+4,Ot.width>F&&(F=Ot.width);var ke=[];o.classData.members.forEach(function(Vt){var ae=Ls(Vt),ee=ae.displayText;Rt().flowchart.htmlLabels&&(ee=ee.replace(/</g,"<").replace(/>/g,">"));var fe=X.node().appendChild(na(ee,ae.cssStyle?ae.cssStyle:o.labelStyle,!0,!0)),Be=fe.getBBox();if(fn(Rt().flowchart.htmlLabels)){var Fe=fe.children[0],Ye=(0,E.select)(fe);Be=Fe.getBoundingClientRect(),Ye.attr("width",Be.width),Ye.attr("height",Be.height)}Be.width>F&&(F=Be.width),Y+=Be.height+4,ke.push(fe)}),Y+=8;var ve=[];if(o.classData.methods.forEach(function(Vt){var ae=Ls(Vt),ee=ae.displayText;Rt().flowchart.htmlLabels&&(ee=ee.replace(/</g,"<").replace(/>/g,">"));var fe=X.node().appendChild(na(ee,ae.cssStyle?ae.cssStyle:o.labelStyle,!0,!0)),Be=fe.getBBox();if(fn(Rt().flowchart.htmlLabels)){var Fe=fe.children[0],Ye=(0,E.select)(fe);Be=Fe.getBoundingClientRect(),Ye.attr("width",Be.width),Ye.attr("height",Be.height)}Be.width>F&&(F=Be.width),Y+=Be.height+4,ve.push(fe)}),Y+=8,ht){var Pt=(F-Nt.width)/2;(0,E.select)(It).attr("transform","translate( "+(-1*F/2+Pt)+", "+-1*Y/2+")"),et=Nt.height+4}var le=(F-Ot.width)/2;return(0,E.select)(Ft).attr("transform","translate( "+(-1*F/2+le)+", "+(-1*Y/2+et)+")"),et+=Ot.height+4,I.attr("class","divider").attr("x1",-F/2-w).attr("x2",F/2+w).attr("y1",-Y/2-w+8+et).attr("y2",-Y/2-w+8+et),et+=8,ke.forEach(function(Vt){(0,E.select)(Vt).attr("transform","translate( "+-F/2+", "+(-1*Y/2+et+4)+")"),et+=Ot.height+4}),et+=8,O.attr("class","divider").attr("x1",-F/2-w).attr("x2",F/2+w).attr("y1",-Y/2-w+8+et).attr("y2",-Y/2-w+8+et),et+=8,ve.forEach(function(Vt){(0,E.select)(Vt).attr("transform","translate( "+-F/2+", "+(-1*Y/2+et)+")"),et+=Ot.height+4}),L.attr("class","outer title-state").attr("x",-F/2-w).attr("y",-Y/2-w).attr("width",F+o.padding).attr("height",Y+o.padding),ni(o,L),o.intersect=function(Vt){return Ro(o,Vt)},A}},fo={},ll=function(l){var o=fo[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?o.attr("transform","translate("+(l.x+y-l.width/2)+", "+(l.y-l.height/2-8)+")"):o.attr("transform","translate("+l.x+", "+l.y+")"),y},to={rect:function(l,o){_.trace("Creating subgraph rect for ",o.id,o);var y=l.insert("g").attr("class","cluster"+(o.class?" "+o.class:"")).attr("id",o.id),w=y.insert("rect",":first-child"),A=y.insert("g").attr("class","cluster-label"),L=A.node().appendChild(na(o.labelText,o.labelStyle,void 0,!0)),I=L.getBBox();if(fn(Rt().flowchart.htmlLabels)){var O=L.children[0],F=(0,E.select)(L);I=O.getBoundingClientRect(),F.attr("width",I.width),F.attr("height",I.height)}var Y=0*o.padding,X=Y/2,et=o.width<=I.width+Y?I.width+Y:o.width;o.width<=I.width+Y?o.diff=(I.width-o.width)/2-o.padding/2:o.diff=-o.padding/2,_.trace("Data ",o,JSON.stringify(o)),w.attr("style",o.style).attr("rx",o.rx).attr("ry",o.ry).attr("x",o.x-et/2).attr("y",o.y-o.height/2-X).attr("width",et).attr("height",o.height+Y),A.attr("transform","translate("+(o.x-I.width/2)+", "+(o.y-o.height/2+o.padding/3)+")");var ht=w.node().getBBox();return o.width=ht.width,o.height=ht.height,o.intersect=function(ot){return Bo(o,ot)},y},roundedWithTitle:function(l,o){var y=l.insert("g").attr("class",o.classes).attr("id",o.id),w=y.insert("rect",":first-child"),A=y.insert("g").attr("class","cluster-label"),L=y.append("rect"),I=A.node().appendChild(na(o.labelText,o.labelStyle,void 0,!0)),O=I.getBBox();if(fn(Rt().flowchart.htmlLabels)){var F=I.children[0],Y=(0,E.select)(I);O=F.getBoundingClientRect(),Y.attr("width",O.width),Y.attr("height",O.height)}O=I.getBBox();var X=0*o.padding,et=X/2,ht=o.width<=O.width+o.padding?O.width+o.padding:o.width;o.width<=O.width+o.padding?o.diff=(O.width+0*o.padding-o.width)/2:o.diff=-o.padding/2,w.attr("class","outer").attr("x",o.x-ht/2-et).attr("y",o.y-o.height/2-et).attr("width",ht+X).attr("height",o.height+X),L.attr("class","inner").attr("x",o.x-ht/2-et).attr("y",o.y-o.height/2-et+O.height-1).attr("width",ht+X).attr("height",o.height+X-O.height-3),A.attr("transform","translate("+(o.x-O.width/2)+", "+(o.y-o.height/2-o.padding/3+(fn(Rt().flowchart.htmlLabels)?5:3))+")");var ot=w.node().getBBox();return o.height=ot.height,o.intersect=function(It){return Bo(o,It)},y},noteGroup:function(l,o){var y=l.insert("g").attr("class","note-cluster").attr("id",o.id),w=y.insert("rect",":first-child"),A=0*o.padding,L=A/2;w.attr("rx",o.rx).attr("ry",o.ry).attr("x",o.x-o.width/2-L).attr("y",o.y-o.height/2-L).attr("width",o.width+A).attr("height",o.height+A).attr("fill","none");var I=w.node().getBBox();return o.width=I.width,o.height=I.height,o.intersect=function(O){return Bo(o,O)},y},divider:function(l,o){var y=l.insert("g").attr("class",o.classes).attr("id",o.id),w=y.insert("rect",":first-child"),A=0*o.padding,L=A/2;w.attr("class","divider").attr("x",o.x-o.width/2-L).attr("y",o.y-o.height/2).attr("width",o.width+A).attr("height",o.height+A);var I=w.node().getBBox();return o.width=I.width,o.height=I.height,o.diff=-o.padding/2,o.intersect=function(O){return Bo(o,O)},y}},Fa={},eo={},mi={},t1=function(l,o){var y=na(o.label,o.labelStyle),w=l.insert("g").attr("class","edgeLabel"),A=w.insert("g").attr("class","label");A.node().appendChild(y);var L,I=y.getBBox();if(fn(Rt().flowchart.htmlLabels)){var O=y.children[0],F=(0,E.select)(y);I=O.getBoundingClientRect(),F.attr("width",I.width),F.attr("height",I.height)}if(A.attr("transform","translate("+-I.width/2+", "+-I.height/2+")"),eo[o.id]=w,o.width=I.width,o.height=I.height,o.startLabelLeft){var Y=na(o.startLabelLeft,o.labelStyle),X=l.insert("g").attr("class","edgeTerminals"),et=X.insert("g").attr("class","inner");L=et.node().appendChild(Y);var ht=Y.getBBox();et.attr("transform","translate("+-ht.width/2+", "+-ht.height/2+")"),mi[o.id]||(mi[o.id]={}),mi[o.id].startLeft=X,Rs(L,o.startLabelLeft)}if(o.startLabelRight){var ot=na(o.startLabelRight,o.labelStyle),It=l.insert("g").attr("class","edgeTerminals"),Nt=It.insert("g").attr("class","inner");L=It.node().appendChild(ot),Nt.node().appendChild(ot);var Yt=ot.getBBox();Nt.attr("transform","translate("+-Yt.width/2+", "+-Yt.height/2+")"),mi[o.id]||(mi[o.id]={}),mi[o.id].startRight=It,Rs(L,o.startLabelRight)}if(o.endLabelLeft){var jt=na(o.endLabelLeft,o.labelStyle),Mt=l.insert("g").attr("class","edgeTerminals"),Ft=Mt.insert("g").attr("class","inner");L=Ft.node().appendChild(jt);var Ot=jt.getBBox();Ft.attr("transform","translate("+-Ot.width/2+", "+-Ot.height/2+")"),Mt.node().appendChild(jt),mi[o.id]||(mi[o.id]={}),mi[o.id].endLeft=Mt,Rs(L,o.endLabelLeft)}if(o.endLabelRight){var te=na(o.endLabelRight,o.labelStyle),Oe=l.insert("g").attr("class","edgeTerminals"),ke=Oe.insert("g").attr("class","inner");L=ke.node().appendChild(te);var ve=te.getBBox();ke.attr("transform","translate("+-ve.width/2+", "+-ve.height/2+")"),Oe.node().appendChild(te),mi[o.id]||(mi[o.id]={}),mi[o.id].endRight=Oe,Rs(L,o.endLabelRight)}};function Rs(l,o){Rt().flowchart.htmlLabels&&l&&(l.style.width=9*o.length+"px",l.style.height="12px")}var e1=function(l,o){_.info("Moving label abc78 ",l.id,l.label,eo[l.id]);var y=o.updatedPath?o.updatedPath:o.originalPath;if(l.label){var w=eo[l.id],A=l.x,L=l.y;if(y){var I=nr.calcLabelPosition(y);_.info("Moving label from (",A,",",L,") to (",I.x,",",I.y,") abc78")}w.attr("transform","translate("+A+", "+L+")")}if(l.startLabelLeft){var O=mi[l.id].startLeft,F=l.x,Y=l.y;if(y){var X=nr.calcTerminalLabelPosition(l.arrowTypeStart?10:0,"start_left",y);F=X.x,Y=X.y}O.attr("transform","translate("+F+", "+Y+")")}if(l.startLabelRight){var et=mi[l.id].startRight,ht=l.x,ot=l.y;if(y){var It=nr.calcTerminalLabelPosition(l.arrowTypeStart?10:0,"start_right",y);ht=It.x,ot=It.y}et.attr("transform","translate("+ht+", "+ot+")")}if(l.endLabelLeft){var Nt=mi[l.id].endLeft,Yt=l.x,jt=l.y;if(y){var Mt=nr.calcTerminalLabelPosition(l.arrowTypeEnd?10:0,"end_left",y);Yt=Mt.x,jt=Mt.y}Nt.attr("transform","translate("+Yt+", "+jt+")")}if(l.endLabelRight){var Ft=mi[l.id].endRight,Ot=l.x,te=l.y;if(y){var Oe=nr.calcTerminalLabelPosition(l.arrowTypeEnd?10:0,"end_right",y);Ot=Oe.x,te=Oe.y}Ft.attr("transform","translate("+Ot+", "+te+")")}},hu=function(l,o){_.warn("abc88 cutPathAtIntersect",l,o);var y=[],w=l[0],A=!1;return l.forEach(function(L){if(_.info("abc88 checking point",L,o),function(F,Y){var X=F.x,et=F.y,ht=Math.abs(Y.x-X),ot=Math.abs(Y.y-et),It=F.width/2,Nt=F.height/2;return ht>=It||ot>=Nt}(o,L)||A)_.warn("abc88 outside",L,w),w=L,A||y.push(L);else{var I=function(F,Y,X){_.warn(`intersection calc abc89:
|
|
outsidePoint: `.concat(JSON.stringify(Y),`
|
|
insidePoint : `).concat(JSON.stringify(X),`
|
|
node : x:`).concat(F.x," y:").concat(F.y," w:").concat(F.width," h:").concat(F.height));var et=F.x,ht=F.y,ot=Math.abs(et-X.x),It=F.width/2,Nt=X.x<Y.x?It-ot:It+ot,Yt=F.height/2,jt=Math.abs(Y.y-X.y),Mt=Math.abs(Y.x-X.x);if(Math.abs(ht-Y.y)*It>Math.abs(et-Y.x)*Yt){var Ft=X.y<Y.y?Y.y-Yt-ht:ht-Yt-Y.y;Nt=Mt*Ft/jt;var Ot={x:X.x<Y.x?X.x+Nt:X.x-Mt+Nt,y:X.y<Y.y?X.y+jt-Ft:X.y-jt+Ft};return Nt===0&&(Ot.x=Y.x,Ot.y=Y.y),Mt===0&&(Ot.x=Y.x),jt===0&&(Ot.y=Y.y),_.warn("abc89 topp/bott calc, Q ".concat(jt,", q ").concat(Ft,", R ").concat(Mt,", r ").concat(Nt),Ot),Ot}var te=jt*(Nt=X.x<Y.x?Y.x-It-et:et-It-Y.x)/Mt,Oe=X.x<Y.x?X.x+Mt-Nt:X.x-Mt+Nt,ke=X.y<Y.y?X.y+te:X.y-te;return _.warn("sides calc abc89, Q ".concat(jt,", q ").concat(te,", R ").concat(Mt,", r ").concat(Nt),{_x:Oe,_y:ke}),Nt===0&&(Oe=Y.x,ke=Y.y),Mt===0&&(Oe=Y.x),jt===0&&(ke=Y.y),{x:Oe,y:ke}}(o,w,L);_.warn("abc88 inside",L,w,I),_.warn("abc88 intersection",I);var O=!1;y.forEach(function(F){O=O||F.x===I.x&&F.y===I.y}),y.find(function(F){return F.x===I.x&&F.y===I.y})?_.warn("abc88 no intersect",I,y):y.push(I),A=!0}}),_.warn("abc88 returning points",y),y},n1=function l(o,y,w,A){_.info("Graph in recursive render: XXX",yi().json.write(y),A);var L=y.graph().rankdir;_.trace("Dir in recursive render - dir:",L);var I=o.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 O=I.insert("g").attr("class","clusters"),F=I.insert("g").attr("class","edgePaths"),Y=I.insert("g").attr("class","edgeLabels"),X=I.insert("g").attr("class","nodes");y.nodes().forEach(function(ht){var ot=y.node(ht);if(A!==void 0){var It=JSON.parse(JSON.stringify(A.clusterData));_.info("Setting data for cluster XXX (",ht,") ",It,A),y.setNode(A.id,It),y.parent(ht)||(_.trace("Setting parent",ht,A.id),y.setParent(ht,A.id,It))}if(_.info("(Insert) Node XXX"+ht+": "+JSON.stringify(y.node(ht))),ot&&ot.clusterNode){_.info("Cluster identified",ht,ot.width,y.node(ht));var Nt=l(X,ot.graph,w,y.node(ht)),Yt=Nt.elem;ni(ot,Yt),ot.diff=Nt.diff||0,_.info("Node bounds (abc123)",ht,ot,ot.width,ot.x,ot.y),function(jt,Mt){fo[Mt.id]=jt}(Yt,ot),_.warn("Recursive render complete ",Yt,ot)}else y.children(ht).length>0?(_.info("Cluster - the non recursive path XXX",ht,ot.id,ot,y),_.info(Oo(ot.id,y)),er[ot.id]={id:Oo(ot.id,y),node:ot}):(_.info("Node - the non recursive path",ht,ot.id,ot),function(jt,Mt,Ft){var Ot,te,Oe;Mt.link?(Rt().securityLevel==="sandbox"?Oe="_top":Mt.linkTarget&&(Oe=Mt.linkTarget||"_blank"),Ot=jt.insert("svg:a").attr("xlink:href",Mt.link).attr("target",Oe),te=Qh[Mt.shape](Ot,Mt,Ft)):Ot=te=Qh[Mt.shape](jt,Mt,Ft),Mt.tooltip&&te.attr("title",Mt.tooltip),Mt.class&&te.attr("class","node default "+Mt.class),fo[Mt.id]=Ot,Mt.haveCallback&&fo[Mt.id].attr("class",fo[Mt.id].attr("class")+" clickable")}(X,y.node(ht),L))}),y.edges().forEach(function(ht){var ot=y.edge(ht.v,ht.w,ht.name);_.info("Edge "+ht.v+" -> "+ht.w+": "+JSON.stringify(ht)),_.info("Edge "+ht.v+" -> "+ht.w+": ",ht," ",JSON.stringify(y.edge(ht))),_.info("Fix",er,"ids:",ht.v,ht.w,"Translateing: ",er[ht.v],er[ht.w]),t1(Y,ot)}),y.edges().forEach(function(ht){_.info("Edge "+ht.v+" -> "+ht.w+": "+JSON.stringify(ht))}),_.info("#############################################"),_.info("### Layout ###"),_.info("#############################################"),_.info(y),os().layout(y),_.info("Graph after layout:",yi().json.write(y));var et=0;return kc(y).forEach(function(ht){var ot=y.node(ht);_.info("Position "+ht+": "+JSON.stringify(y.node(ht))),_.info("Position "+ht+": ("+ot.x,","+ot.y,") width: ",ot.width," height: ",ot.height),ot&&ot.clusterNode?ll(ot):y.children(ht).length>0?(function(It,Nt){_.trace("Inserting cluster");var Yt=Nt.shape||"rect";Fa[Nt.id]=to[Yt](It,Nt)}(O,ot),er[ot.id].node=ot):ll(ot)}),y.edges().forEach(function(ht){var ot=y.edge(ht);_.info("Edge "+ht.v+" -> "+ht.w+": "+JSON.stringify(ot),ot);var It=function(Nt,Yt,jt,Mt,Ft,Ot){var te=jt.points,Oe=!1,ke=Ot.node(Yt.v),ve=Ot.node(Yt.w);_.info("abc88 InsertEdge: ",jt),ve.intersect&&ke.intersect&&((te=te.slice(1,jt.points.length-1)).unshift(ke.intersect(te[0])),_.info("Last point",te[te.length-1],ve,ve.intersect(te[te.length-1])),te.push(ve.intersect(te[te.length-1]))),jt.toCluster&&(_.info("to cluster abc88",Mt[jt.toCluster]),te=hu(jt.points,Mt[jt.toCluster].node),Oe=!0),jt.fromCluster&&(_.info("from cluster abc88",Mt[jt.fromCluster]),te=hu(te.reverse(),Mt[jt.fromCluster].node).reverse(),Oe=!0);var Pt,le=te.filter(function(Fe){return!Number.isNaN(Fe.y)});Pt=(Ft==="graph"||Ft==="flowchart")&&jt.curve||E.curveBasis;var Vt,ae=(0,E.line)().x(function(Fe){return Fe.x}).y(function(Fe){return Fe.y}).curve(Pt);switch(jt.thickness){case"normal":Vt="edge-thickness-normal";break;case"thick":Vt="edge-thickness-thick";break;default:Vt=""}switch(jt.pattern){case"solid":Vt+=" edge-pattern-solid";break;case"dotted":Vt+=" edge-pattern-dotted";break;case"dashed":Vt+=" edge-pattern-dashed"}var ee=Nt.append("path").attr("d",ae(le)).attr("id",jt.id).attr("class"," "+Vt+(jt.classes?" "+jt.classes:"")).attr("style",jt.style),fe="";switch(Rt().state.arrowMarkerAbsolute&&(fe=(fe=(fe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),_.info("arrowTypeStart",jt.arrowTypeStart),_.info("arrowTypeEnd",jt.arrowTypeEnd),jt.arrowTypeStart){case"arrow_cross":ee.attr("marker-start","url("+fe+"#"+Ft+"-crossStart)");break;case"arrow_point":ee.attr("marker-start","url("+fe+"#"+Ft+"-pointStart)");break;case"arrow_barb":ee.attr("marker-start","url("+fe+"#"+Ft+"-barbStart)");break;case"arrow_circle":ee.attr("marker-start","url("+fe+"#"+Ft+"-circleStart)");break;case"aggregation":ee.attr("marker-start","url("+fe+"#"+Ft+"-aggregationStart)");break;case"extension":ee.attr("marker-start","url("+fe+"#"+Ft+"-extensionStart)");break;case"composition":ee.attr("marker-start","url("+fe+"#"+Ft+"-compositionStart)");break;case"dependency":ee.attr("marker-start","url("+fe+"#"+Ft+"-dependencyStart)")}switch(jt.arrowTypeEnd){case"arrow_cross":ee.attr("marker-end","url("+fe+"#"+Ft+"-crossEnd)");break;case"arrow_point":ee.attr("marker-end","url("+fe+"#"+Ft+"-pointEnd)");break;case"arrow_barb":ee.attr("marker-end","url("+fe+"#"+Ft+"-barbEnd)");break;case"arrow_circle":ee.attr("marker-end","url("+fe+"#"+Ft+"-circleEnd)");break;case"aggregation":ee.attr("marker-end","url("+fe+"#"+Ft+"-aggregationEnd)");break;case"extension":ee.attr("marker-end","url("+fe+"#"+Ft+"-extensionEnd)");break;case"composition":ee.attr("marker-end","url("+fe+"#"+Ft+"-compositionEnd)");break;case"dependency":ee.attr("marker-end","url("+fe+"#"+Ft+"-dependencyEnd)")}var Be={};return Oe&&(Be.updatedPath=te),Be.originalPath=jt.points,Be}(F,ht,ot,er,w,y);e1(ot,It)}),y.nodes().forEach(function(ht){var ot=y.node(ht);_.info(ht,ot.type,ot.diff),ot.type==="group"&&(et=ot.diff)}),{elem:I,diff:et}},ul=function(l,o,y,w,A){Zh(l,y,w,A),fo={},eo={},mi={},Fa={},Ra={},ua={},er={},_.warn("Graph at first:",yi().json.write(o)),ol(o),_.warn("Graph after:",yi().json.write(o)),n1(l,o,w)};function r1(l){var o;switch(l){case 0:o="aggregation";break;case 1:o="extension";break;case 2:o="composition";break;case 3:o="dependency";break;default:o="none"}return o}const tf={setConf:function(l){Object.keys(l).forEach(function(o){l[o]})},draw:function(l,o,y,w){_.info("Drawing class - ",o);var A=Rt().flowchart,L=Rt().securityLevel;_.info("config:",A);var I,O=A.nodeSpacing||50,F=A.rankSpacing||50,Y=new(yi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:w.db.getDirection(),nodesep:O,ranksep:F,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),X=w.db.getClasses(),et=w.db.getRelations();_.info(et),function(te,Oe){var ke=Object.keys(te);_.info("keys:",ke),_.info(te),ke.forEach(function(ve){var Pt=te[ve],le="";Pt.cssClasses.length>0&&(le=le+" "+Pt.cssClasses.join(" "));var Vt,ae,ee={labelStyle:""},fe=Pt.text!==void 0?Pt.text:Pt.id;Pt.type,ae="class_box",Oe.setNode(Pt.id,{labelStyle:ee.labelStyle,shape:ae,labelText:(Vt=fe,mn.sanitizeText(Vt,Rt())),classData:Pt,rx:0,ry:0,class:le,style:ee.style,id:Pt.id,domId:Pt.domId,haveCallback:Pt.haveCallback,link:Pt.link,width:Pt.type==="group"?500:void 0,type:Pt.type,padding:Rt().flowchart.padding}),_.info("setNode",{labelStyle:ee.labelStyle,shape:ae,labelText:fe,rx:0,ry:0,class:le,style:ee.style,id:Pt.id,width:Pt.type==="group"?500:void 0,type:Pt.type,padding:Rt().flowchart.padding})})}(X,Y),function(te,Oe){var ke=Rt().flowchart,ve=0;te.forEach(function(Pt){ve++;var le={classes:"relation"};le.pattern=Pt.relation.lineType==1?"dashed":"solid",le.id="id"+ve,Pt.type==="arrow_open"?le.arrowhead="none":le.arrowhead="normal",_.info(le,Pt),le.startLabelRight=Pt.relationTitle1==="none"?"":Pt.relationTitle1,le.endLabelLeft=Pt.relationTitle2==="none"?"":Pt.relationTitle2,le.arrowTypeStart=r1(Pt.relation.type1),le.arrowTypeEnd=r1(Pt.relation.type2);var Vt="",ae="";if(Pt.style!==void 0){var ee=Oa(Pt.style);Vt=ee.style,ae=ee.labelStyle}else Vt="fill:none";le.style=Vt,le.labelStyle=ae,Pt.interpolate!==void 0?le.curve=Qi(Pt.interpolate,E.curveLinear):te.defaultInterpolate!==void 0?le.curve=Qi(te.defaultInterpolate,E.curveLinear):le.curve=Qi(ke.curve,E.curveLinear),Pt.text=Pt.title,Pt.text===void 0?Pt.style!==void 0&&(le.arrowheadStyle="fill: #333"):(le.arrowheadStyle="fill: #333",le.labelpos="c",Rt().flowchart.htmlLabels?(le.labelType="html",le.label='<span class="edgeLabel">'+Pt.text+"</span>"):(le.labelType="text",le.label=Pt.text.replace(mn.lineBreakRegex,`
|
|
`),Pt.style===void 0&&(le.style=le.style||"stroke: #333; stroke-width: 1.5px;fill:none"),le.labelStyle=le.labelStyle.replace("color:","fill:"))),Oe.setEdge(Pt.id1,Pt.id2,le,ve)})}(et,Y),L==="sandbox"&&(I=(0,E.select)("#i"+o));var ht=L==="sandbox"?(0,E.select)(I.nodes()[0].contentDocument.body):(0,E.select)("body"),ot=ht.select('[id="'.concat(o,'"]')),It=ht.select("#"+o+" g");if(ul(It,Y,["aggregation","extension","composition","dependency"],"classDiagram",o),Cs(Y,ot,A.diagramPadding,A.useMaxWidth),!A.htmlLabels)for(var Nt=L==="sandbox"?I.nodes()[0].contentDocument:document,Yt=Nt.querySelectorAll('[id="'+o+'"] .edgeLabel .label'),jt=0;jt<Yt.length;jt++){var Mt=Yt[jt],Ft=Mt.getBBox(),Ot=Nt.createElementNS("http://www.w3.org/2000/svg","rect");Ot.setAttribute("rx",0),Ot.setAttribute("ry",0),Ot.setAttribute("width",Ft.width),Ot.setAttribute("height",Ft.height),Mt.insertBefore(Ot,Mt.firstChild)}Rr(w.db,ot,o)}};var fu=h(1362),du=h.n(fu),Tc={},pu=[],i1=function(l){return Tc[l]===void 0&&(Tc[l]={attributes:[]},_.info("Added new entity :",l)),Tc[l]};const ef={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,o,y){Xn.parseDirective(this,l,o,y)},getConfig:function(){return Rt().er},addEntity:i1,addAttributes:function(l,o){var y,w=i1(l);for(y=o.length-1;y>=0;y--)w.attributes.push(o[y]),_.debug("Added attribute ",o[y].attributeName)},getEntities:function(){return Tc},addRelationship:function(l,o,y,w){var A={entityA:l,roleA:o,entityB:y,relSpec:w};pu.push(A),_.debug("Added new relationship :",A)},getRelationships:function(){return pu},clear:function(){Tc={},pu=[],Pr()},setAccTitle:Qt,getAccTitle:wr,setAccDescription:ri,getAccDescription:ci};var po={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 Fo=po;var Or={},a1=function(l){return(l.entityA+l.roleA+l.entityB).replace(/\s/g,"")},o1=0;const nf={setConf:function(l){for(var o=Object.keys(l),y=0;y<o.length;y++)Or[o[y]]=l[o[y]]},draw:function(l,o,y,w){Or=Rt().er,_.info("Drawing ER diagram");var A,L=Rt().securityLevel;L==="sandbox"&&(A=(0,E.select)("#i"+o));var I,O=(L==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body")).select("[id='".concat(o,"']"));(function(Yt,jt){var Mt;Yt.append("defs").append("marker").attr("id",po.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",jt.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),Yt.append("defs").append("marker").attr("id",po.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",jt.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(Mt=Yt.append("defs").append("marker").attr("id",po.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",jt.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),Mt.append("path").attr("stroke",jt.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(Mt=Yt.append("defs").append("marker").attr("id",po.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",jt.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),Mt.append("path").attr("stroke",jt.stroke).attr("fill","none").attr("d","M21,0 L21,18"),Yt.append("defs").append("marker").attr("id",po.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",jt.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),Yt.append("defs").append("marker").attr("id",po.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",jt.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(Mt=Yt.append("defs").append("marker").attr("id",po.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",jt.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),Mt.append("path").attr("stroke",jt.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(Mt=Yt.append("defs").append("marker").attr("id",po.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",jt.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),Mt.append("path").attr("stroke",jt.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(O,Or),I=new(yi()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Or.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var F,Y,X=function(Yt,jt,Mt){var Ft;return Object.keys(jt).forEach(function(Ot){var te=Yt.append("g").attr("id",Ot);Ft=Ft===void 0?Ot:Ft;var Oe="entity-"+Ot,ke=te.append("text").attr("class","er entityLabel").attr("id",Oe).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Rt().fontFamily+"; font-size: "+Or.fontSize+"px").text(Ot),ve=function(ae,ee,fe){var Be=Or.entityPadding/3,Fe=Or.entityPadding/3,Ye=.85*Or.fontSize,pn=ee.node().getBBox(),Ue=[],ln=!1,gn=!1,je=0,Ge=0,bn=0,_r=0,vr=pn.height+2*Be,ui=1;fe.forEach(function(Fr){Fr.attributeKeyType!==void 0&&(ln=!0),Fr.attributeComment!==void 0&&(gn=!0)}),fe.forEach(function(Fr){var Ea="".concat(ee.node().id,"-attr-").concat(ui),Ta=0,Xo=ae.append("text").attr("class","er entityLabel").attr("id","".concat(Ea,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Rt().fontFamily+"; font-size: "+Ye+"px").text(Fr.attributeType),Ko=ae.append("text").attr("class","er entityLabel").attr("id","".concat(Ea,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Rt().fontFamily+"; font-size: "+Ye+"px").text(Fr.attributeName),sa={};sa.tn=Xo,sa.nn=Ko;var Jo=Xo.node().getBBox(),$c=Ko.node().getBBox();if(je=Math.max(je,Jo.width),Ge=Math.max(Ge,$c.width),Ta=Math.max(Jo.height,$c.height),ln){var Hc=ae.append("text").attr("class","er entityLabel").attr("id","".concat(Ea,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Rt().fontFamily+"; font-size: "+Ye+"px").text(Fr.attributeKeyType||"");sa.kn=Hc;var ql=Hc.node().getBBox();bn=Math.max(bn,ql.width),Ta=Math.max(Ta,ql.height)}if(gn){var Wl=ae.append("text").attr("class","er entityLabel").attr("id","".concat(Ea,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Rt().fontFamily+"; font-size: "+Ye+"px").text(Fr.attributeComment||"");sa.cn=Wl;var Gl=Wl.node().getBBox();_r=Math.max(_r,Gl.width),Ta=Math.max(Ta,Gl.height)}sa.height=Ta,Ue.push(sa),vr+=Ta+2*Be,ui+=1});var mr=4;ln&&(mr+=2),gn&&(mr+=2);var hi=je+Ge+bn+_r,pr={width:Math.max(Or.minEntityWidth,Math.max(pn.width+2*Or.entityPadding,hi+Fe*mr)),height:fe.length>0?vr:Math.max(Or.minEntityHeight,pn.height+2*Or.entityPadding)};if(fe.length>0){var fa=Math.max(0,(pr.width-hi-Fe*mr)/(mr/2));ee.attr("transform","translate("+pr.width/2+","+(Be+pn.height/2)+")");var wa=pn.height+2*Be,fi="attributeBoxOdd";Ue.forEach(function(Fr){var Ea=wa+Be+Fr.height/2;Fr.tn.attr("transform","translate("+Fe+","+Ea+")");var Ta=ae.insert("rect","#"+Fr.tn.node().id).attr("class","er ".concat(fi)).attr("fill",Or.fill).attr("fill-opacity","100%").attr("stroke",Or.stroke).attr("x",0).attr("y",wa).attr("width",je+2*Fe+fa).attr("height",Fr.height+2*Be),Xo=parseFloat(Ta.attr("x"))+parseFloat(Ta.attr("width"));Fr.nn.attr("transform","translate("+(Xo+Fe)+","+Ea+")");var Ko=ae.insert("rect","#"+Fr.nn.node().id).attr("class","er ".concat(fi)).attr("fill",Or.fill).attr("fill-opacity","100%").attr("stroke",Or.stroke).attr("x",Xo).attr("y",wa).attr("width",Ge+2*Fe+fa).attr("height",Fr.height+2*Be),sa=parseFloat(Ko.attr("x"))+parseFloat(Ko.attr("width"));if(ln){Fr.kn.attr("transform","translate("+(sa+Fe)+","+Ea+")");var Jo=ae.insert("rect","#"+Fr.kn.node().id).attr("class","er ".concat(fi)).attr("fill",Or.fill).attr("fill-opacity","100%").attr("stroke",Or.stroke).attr("x",sa).attr("y",wa).attr("width",bn+2*Fe+fa).attr("height",Fr.height+2*Be);sa=parseFloat(Jo.attr("x"))+parseFloat(Jo.attr("width"))}gn&&(Fr.cn.attr("transform","translate("+(sa+Fe)+","+Ea+")"),ae.insert("rect","#"+Fr.cn.node().id).attr("class","er ".concat(fi)).attr("fill",Or.fill).attr("fill-opacity","100%").attr("stroke",Or.stroke).attr("x",sa).attr("y",wa).attr("width",_r+2*Fe+fa).attr("height",Fr.height+2*Be)),wa+=Fr.height+2*Be,fi=fi=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else pr.height=Math.max(Or.minEntityHeight,vr),ee.attr("transform","translate("+pr.width/2+","+pr.height/2+")");return pr}(te,ke,jt[Ot].attributes),Pt=ve.width,le=ve.height,Vt=te.insert("rect","#"+Oe).attr("class","er entityBox").attr("fill",Or.fill).attr("fill-opacity","100%").attr("stroke",Or.stroke).attr("x",0).attr("y",0).attr("width",Pt).attr("height",le).node().getBBox();Mt.setNode(Ot,{width:Vt.width,height:Vt.height,shape:"rect",id:Ot})}),Ft}(O,w.db.getEntities(),I),et=function(Yt,jt){return Yt.forEach(function(Mt){jt.setEdge(Mt.entityA,Mt.entityB,{relationship:Mt},a1(Mt))}),Yt}(w.db.getRelationships(),I);os().layout(I),F=O,(Y=I).nodes().forEach(function(Yt){Yt!==void 0&&Y.node(Yt)!==void 0&&F.select("#"+Yt).attr("transform","translate("+(Y.node(Yt).x-Y.node(Yt).width/2)+","+(Y.node(Yt).y-Y.node(Yt).height/2)+" )")}),et.forEach(function(Yt){(function(jt,Mt,Ft,Ot,te){o1++;var Oe=Ft.edge(Mt.entityA,Mt.entityB,a1(Mt)),ke=(0,E.line)().x(function(fe){return fe.x}).y(function(fe){return fe.y}).curve(E.curveBasis),ve=jt.insert("path","#"+Ot).attr("class","er relationshipLine").attr("d",ke(Oe.points)).attr("stroke",Or.stroke).attr("fill","none");Mt.relSpec.relType===te.db.Identification.NON_IDENTIFYING&&ve.attr("stroke-dasharray","8,8");var Pt="";switch(Or.arrowMarkerAbsolute&&(Pt=(Pt=(Pt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Mt.relSpec.cardA){case te.db.Cardinality.ZERO_OR_ONE:ve.attr("marker-end","url("+Pt+"#"+Fo.ZERO_OR_ONE_END+")");break;case te.db.Cardinality.ZERO_OR_MORE:ve.attr("marker-end","url("+Pt+"#"+Fo.ZERO_OR_MORE_END+")");break;case te.db.Cardinality.ONE_OR_MORE:ve.attr("marker-end","url("+Pt+"#"+Fo.ONE_OR_MORE_END+")");break;case te.db.Cardinality.ONLY_ONE:ve.attr("marker-end","url("+Pt+"#"+Fo.ONLY_ONE_END+")")}switch(Mt.relSpec.cardB){case te.db.Cardinality.ZERO_OR_ONE:ve.attr("marker-start","url("+Pt+"#"+Fo.ZERO_OR_ONE_START+")");break;case te.db.Cardinality.ZERO_OR_MORE:ve.attr("marker-start","url("+Pt+"#"+Fo.ZERO_OR_MORE_START+")");break;case te.db.Cardinality.ONE_OR_MORE:ve.attr("marker-start","url("+Pt+"#"+Fo.ONE_OR_MORE_START+")");break;case te.db.Cardinality.ONLY_ONE:ve.attr("marker-start","url("+Pt+"#"+Fo.ONLY_ONE_START+")")}var le=ve.node().getTotalLength(),Vt=ve.node().getPointAtLength(.5*le),ae="rel"+o1,ee=jt.append("text").attr("class","er relationshipLabel").attr("id",ae).attr("x",Vt.x).attr("y",Vt.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Rt().fontFamily+"; font-size: "+Or.fontSize+"px").text(Mt.roleA).node().getBBox();jt.insert("rect","#"+ae).attr("class","er relationshipLabelBox").attr("x",Vt.x-ee.width/2).attr("y",Vt.y-ee.height/2).attr("width",ee.width).attr("height",ee.height).attr("fill","white").attr("fill-opacity","85%")})(O,Yt,I,X,w)});var ht=Or.diagramPadding,ot=O.node().getBBox(),It=ot.width+2*ht,Nt=ot.height+2*ht;ta(O,Nt,It,Or.useMaxWidth),O.attr("viewBox","".concat(ot.x-ht," ").concat(ot.y-ht," ").concat(It," ").concat(Nt)),Rr(w.db,O,o)}};var rf=h(5890),af=h.n(rf);function gu(l){return gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},gu(l)}function yu(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,w=new Array(o);y<o;y++)w[y]=l[y];return w}var go,hl,of="flowchart-",mu=0,_u=Rt(),ai={},us=[],Fs=[],no=[],ba={},fl={},dl=0,Wa=!0,pl=[],gl=function(l){return mn.sanitizeText(l,_u)},Ps=function(l){for(var o=Object.keys(ai),y=0;y<o.length;y++)if(ai[o[y]].id===l)return ai[o[y]].domId;return l},sf=function(l,o,y,w){var A={start:l,end:o,type:void 0,text:""};(w=y.text)!==void 0&&(A.text=gl(w.trim()),A.text[0]==='"'&&A.text[A.text.length-1]==='"'&&(A.text=A.text.substring(1,A.text.length-1))),y!==void 0&&(A.type=y.type,A.stroke=y.stroke,A.length=y.length),us.push(A)},bu=function(l,o){l.split(",").forEach(function(y){var w=y;ai[w]!==void 0&&ai[w].classes.push(o),ba[w]!==void 0&&ba[w].classes.push(o)})},s1=function(l){var o=(0,E.select)(".mermaidTooltip");(o._groups||o)[0][0]===null&&(o=(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();o.transition().duration(200).style("opacity",".9"),o.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(){o.transition().duration(500).style("opacity",0),(0,E.select)(this).classed("hover",!1)})};pl.push(s1);var cf=function(l){for(var o=0;o<no.length;o++)if(no[o].id===l)return o;return-1},Sc=-1,c1=[],lf=function l(o,y){var w=no[y].nodes;if(!((Sc+=1)>2e3)){if(c1[Sc]=y,no[y].id===o)return{result:!0,count:0};for(var A=0,L=1;A<w.length;){var I=cf(w[A]);if(I>=0){var O=l(o,I);if(O.result)return{result:!0,count:L+O.count};L+=O.count}A+=1}return{result:!1,count:L}}},yl=function(l,o){var y=!1;return l.forEach(function(w){w.nodes.indexOf(o)>=0&&(y=!0)}),y},vu=function(l,o){var y=[];return l.nodes.forEach(function(w,A){yl(o,w)||y.push(l.nodes[A])}),{nodes:y}};const ro={parseDirective:function(l,o,y){Xn.parseDirective(this,l,o,y)},defaultConfig:function(){return si.flowchart},setAccTitle:Qt,getAccTitle:wr,getAccDescription:ci,setAccDescription:ri,addVertex:function(l,o,y,w,A,L){var I,O=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},F=l;F!==void 0&&F.trim().length!==0&&(ai[F]===void 0&&(ai[F]={id:F,domId:of+F+"-"+mu,styles:[],classes:[]}),mu++,o!==void 0?(_u=Rt(),(I=gl(o.trim()))[0]==='"'&&I[I.length-1]==='"'&&(I=I.substring(1,I.length-1)),ai[F].text=I):ai[F].text===void 0&&(ai[F].text=l),y!==void 0&&(ai[F].type=y),w!=null&&w.forEach(function(Y){ai[F].styles.push(Y)}),A!=null&&A.forEach(function(Y){ai[F].classes.push(Y)}),L!==void 0&&(ai[F].dir=L),ai[F].props=O)},lookUpDomId:Ps,addLink:function(l,o,y,w){var A,L;for(A=0;A<l.length;A++)for(L=0;L<o.length;L++)sf(l[A],o[L],y,w)},updateLinkInterpolate:function(l,o){l.forEach(function(y){y==="default"?us.defaultInterpolate=o:us[y].interpolate=o})},updateLink:function(l,o){l.forEach(function(y){y==="default"?us.defaultStyle=o:(nr.isSubstringInArray("fill",o)===-1&&o.push("fill:none"),us[y].style=o)})},addClass:function(l,o){Fs[l]===void 0&&(Fs[l]={id:l,styles:[],textStyles:[]}),o!=null&&o.forEach(function(y){if(y.match("color")){var w=y.replace("fill","bgFill").replace("color","fill");Fs[l].textStyles.push(w)}Fs[l].styles.push(y)})},setDirection:function(l){(go=l).match(/.*</)&&(go="RL"),go.match(/.*\^/)&&(go="BT"),go.match(/.*>/)&&(go="LR"),go.match(/.*v/)&&(go="TB")},setClass:bu,setTooltip:function(l,o){l.split(",").forEach(function(y){o!==void 0&&(fl[hl==="gen-1"?Ps(y):y]=gl(o))})},getTooltip:function(l){return fl[l]},setClickEvent:function(l,o,y){l.split(",").forEach(function(w){(function(A,L,I){var O=Ps(A);if(Rt().securityLevel==="loose"&&L!==void 0){var F=[];if(typeof I=="string"){F=I.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var Y=0;Y<F.length;Y++){var X=F[Y].trim();X.charAt(0)==='"'&&X.charAt(X.length-1)==='"'&&(X=X.substr(1,X.length-2)),F[Y]=X}}F.length===0&&F.push(A),ai[A]!==void 0&&(ai[A].haveCallback=!0,pl.push(function(){var et=document.querySelector('[id="'.concat(O,'"]'));et!==null&&et.addEventListener("click",function(){var ht;nr.runFunc.apply(nr,[L].concat(function(ot){if(Array.isArray(ot))return yu(ot)}(ht=F)||function(ot){if(typeof Symbol<"u"&&ot[Symbol.iterator]!=null||ot["@@iterator"]!=null)return Array.from(ot)}(ht)||function(ot,It){if(ot){if(typeof ot=="string")return yu(ot,It);var Nt=Object.prototype.toString.call(ot).slice(8,-1);return Nt==="Object"&&ot.constructor&&(Nt=ot.constructor.name),Nt==="Map"||Nt==="Set"?Array.from(ot):Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt)?yu(ot,It):void 0}}(ht)||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,o,y)}),bu(l,"clickable")},setLink:function(l,o,y){l.split(",").forEach(function(w){ai[w]!==void 0&&(ai[w].link=nr.formatUrl(o,_u),ai[w].linkTarget=y)}),bu(l,"clickable")},bindFunctions:function(l){pl.forEach(function(o){o(l)})},getDirection:function(){return go.trim()},getVertices:function(){return ai},getEdges:function(){return us},getClasses:function(){return Fs},clear:function(l){ai={},Fs={},us=[],(pl=[]).push(s1),no=[],ba={},dl=0,fl=[],Wa=!0,hl=l||"gen-1",Pr()},setGen:function(l){hl=l||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(l,o,y){var w=l.trim(),A=y;l===y&&y.match(/\s/)&&(w=void 0);var L=[],I=function(et){var ht,ot={boolean:{},number:{},string:{}},It=[],Nt=et.filter(function(Yt){var jt=gu(Yt);return Yt.stmt&&Yt.stmt==="dir"?(ht=Yt.value,!1):Yt.trim()!==""&&(jt in ot?!ot[jt].hasOwnProperty(Yt)&&(ot[jt][Yt]=!0):!(It.indexOf(Yt)>=0)&&It.push(Yt))});return{nodeList:Nt,dir:ht}}(L.concat.apply(L,o)),O=I.nodeList,F=I.dir;if(L=O,hl==="gen-1")for(var Y=0;Y<L.length;Y++)L[Y]=Ps(L[Y]);w=w||"subGraph"+dl,A=gl(A=A||""),dl+=1;var X={id:w,nodes:L,title:A.trim(),classes:[],dir:F};return _.info("Adding",X.id,X.nodes,X.dir),X.nodes=vu(X,no).nodes,no.push(X),ba[w]=X,w},getDepthFirstPos:function(l){return c1[l]},indexNodes:function(){Sc=-1,no.length>0&&lf("none",no.length-1)},getSubGraphs:function(){return no},destructLink:function(l,o){var y,w=function(A){var L=A.trim(),I=L.slice(0,-1),O="arrow_open";switch(L.slice(-1)){case"x":O="arrow_cross",L[0]==="x"&&(O="double_"+O,I=I.slice(1));break;case">":O="arrow_point",L[0]==="<"&&(O="double_"+O,I=I.slice(1));break;case"o":O="arrow_circle",L[0]==="o"&&(O="double_"+O,I=I.slice(1))}var F="normal",Y=I.length-1;I[0]==="="&&(F="thick");var X=function(et,ht){for(var ot=ht.length,It=0,Nt=0;Nt<ot;++Nt)ht[Nt]==="."&&++It;return It}(0,I);return X&&(F="dotted",Y=X),{type:O,stroke:F,length:Y}}(l);if(o){if(y=function(A){var L=A.trim(),I="arrow_open";switch(L[0]){case"<":I="arrow_point",L=L.slice(1);break;case"x":I="arrow_cross",L=L.slice(1);break;case"o":I="arrow_circle",L=L.slice(1)}var O="normal";return L.indexOf("=")!==-1&&(O="thick"),L.indexOf(".")!==-1&&(O="dotted"),{type:I,stroke:O}}(o),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!!Wa&&(Wa=!1,!0)}},exists:yl,makeUniq:vu};var Us=h(4949),Li=h.n(Us),l1=h(8284),zi=h.n(l1);function Wi(l,o,y){var w=.9*(o.width+o.height),A=[{x:w/2,y:0},{x:w,y:-w/2},{x:w/2,y:-w},{x:0,y:-w/2}],L=va(l,w,w,A);return y.intersect=function(I){return Li().intersect.polygon(y,A,I)},L}function u1(l,o,y){var w=o.height,A=w/4,L=o.width+2*A,I=[{x:A,y:0},{x:L-A,y:0},{x:L,y:-w/2},{x:L-A,y:-w},{x:A,y:-w},{x:0,y:-w/2}],O=va(l,L,w,I);return y.intersect=function(F){return Li().intersect.polygon(y,I,F)},O}function xu(l,o,y){var w=o.width,A=o.height,L=[{x:-A/2,y:0},{x:w,y:0},{x:w,y:-A},{x:-A/2,y:-A},{x:0,y:-A/2}],I=va(l,w,A,L);return y.intersect=function(O){return Li().intersect.polygon(y,L,O)},I}function ml(l,o,y){var w=o.width,A=o.height,L=[{x:-2*A/6,y:0},{x:w-A/6,y:0},{x:w+2*A/6,y:-A},{x:A/6,y:-A}],I=va(l,w,A,L);return y.intersect=function(O){return Li().intersect.polygon(y,L,O)},I}function _l(l,o,y){var w=o.width,A=o.height,L=[{x:2*A/6,y:0},{x:w+A/6,y:0},{x:w-2*A/6,y:-A},{x:-A/6,y:-A}],I=va(l,w,A,L);return y.intersect=function(O){return Li().intersect.polygon(y,L,O)},I}function uf(l,o,y){var w=o.width,A=o.height,L=[{x:-2*A/6,y:0},{x:w+2*A/6,y:0},{x:w-A/6,y:-A},{x:A/6,y:-A}],I=va(l,w,A,L);return y.intersect=function(O){return Li().intersect.polygon(y,L,O)},I}function yo(l,o,y){var w=o.width,A=o.height,L=[{x:A/6,y:0},{x:w-A/6,y:0},{x:w+2*A/6,y:-A},{x:-2*A/6,y:-A}],I=va(l,w,A,L);return y.intersect=function(O){return Li().intersect.polygon(y,L,O)},I}function h1(l,o,y){var w=o.width,A=o.height,L=[{x:0,y:0},{x:w+A/2,y:0},{x:w,y:-A/2},{x:w+A/2,y:-A},{x:0,y:-A}],I=va(l,w,A,L);return y.intersect=function(O){return Li().intersect.polygon(y,L,O)},I}function f1(l,o,y){var w=o.height,A=o.width+w/4,L=l.insert("rect",":first-child").attr("rx",w/2).attr("ry",w/2).attr("x",-A/2).attr("y",-w/2).attr("width",A).attr("height",w);return y.intersect=function(I){return Li().intersect.rect(y,I)},L}function hf(l,o,y){var w=o.width,A=o.height,L=[{x:0,y:0},{x:w,y:0},{x:w,y:-A},{x:0,y:-A},{x:0,y:0},{x:-8,y:0},{x:w+8,y:0},{x:w+8,y:-A},{x:-8,y:-A},{x:-8,y:0}],I=va(l,w,A,L);return y.intersect=function(O){return Li().intersect.polygon(y,L,O)},I}function ff(l,o,y){var w=o.width,A=w/2,L=A/(2.5+w/50),I=o.height+L,O="M 0,"+L+" a "+A+","+L+" 0,0,0 "+w+" 0 a "+A+","+L+" 0,0,0 "+-w+" 0 l 0,"+I+" a "+A+","+L+" 0,0,0 "+w+" 0 l 0,"+-I,F=l.attr("label-offset-y",L).insert("path",":first-child").attr("d",O).attr("transform","translate("+-w/2+","+-(I/2+L)+")");return y.intersect=function(Y){var X=Li().intersect.rect(y,Y),et=X.x-y.x;if(A!=0&&(Math.abs(et)<y.width/2||Math.abs(et)==y.width/2&&Math.abs(X.y-y.y)>y.height/2-L)){var ht=L*L*(1-et*et/(A*A));ht!=0&&(ht=Math.sqrt(ht)),ht=L-ht,Y.y-y.y>0&&(ht=-ht),X.y+=ht}return X},F}function va(l,o,y,w){return l.insert("polygon",":first-child").attr("points",w.map(function(A){return A.x+","+A.y}).join(" ")).attr("transform","translate("+-o/2+","+y/2+")")}const df=function(l){l.shapes().question=Wi,l.shapes().hexagon=u1,l.shapes().stadium=f1,l.shapes().subroutine=hf,l.shapes().cylinder=ff,l.shapes().rect_left_inv_arrow=xu,l.shapes().lean_right=ml,l.shapes().lean_left=_l,l.shapes().trapezoid=uf,l.shapes().inv_trapezoid=yo,l.shapes().rect_right_inv_arrow=h1};var d1={},p1=function(l,o,y,w,A,L){Rt().securityLevel;var I=w?w.select('[id="'.concat(y,'"]')):(0,E.select)('[id="'.concat(y,'"]')),O=A||document;Object.keys(l).forEach(function(F){var Y=l[F],X="default";Y.classes.length>0&&(X=Y.classes.join(" "));var et,ht=Oa(Y.styles),ot=Y.text!==void 0?Y.text:Y.id;if(fn(Rt().flowchart.htmlLabels)){var It={label:ot.replace(/fa[lrsb]?:fa-[\w-]+/g,function(te){return"<i class='".concat(te.replace(":"," "),"'></i>")})};(et=zi()(I,It).node()).parentNode.removeChild(et)}else{var Nt=O.createElementNS("http://www.w3.org/2000/svg","text");Nt.setAttribute("style",ht.labelStyle.replace("color:","fill:"));for(var Yt=ot.split(mn.lineBreakRegex),jt=0;jt<Yt.length;jt++){var Mt=O.createElementNS("http://www.w3.org/2000/svg","tspan");Mt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Mt.setAttribute("dy","1em"),Mt.setAttribute("x","1"),Mt.textContent=Yt[jt],Nt.appendChild(Mt)}et=Nt}var Ft=0,Ot="";switch(Y.type){case"round":Ft=5,Ot="rect";break;case"square":case"group":default:Ot="rect";break;case"diamond":Ot="question";break;case"hexagon":Ot="hexagon";break;case"odd":case"odd_right":Ot="rect_left_inv_arrow";break;case"lean_right":Ot="lean_right";break;case"lean_left":Ot="lean_left";break;case"trapezoid":Ot="trapezoid";break;case"inv_trapezoid":Ot="inv_trapezoid";break;case"circle":Ot="circle";break;case"ellipse":Ot="ellipse";break;case"stadium":Ot="stadium";break;case"subroutine":Ot="subroutine";break;case"cylinder":Ot="cylinder"}_.warn("Adding node",Y.id,Y.domId),o.setNode(L.db.lookUpDomId(Y.id),{labelType:"svg",labelStyle:ht.labelStyle,shape:Ot,label:et,rx:Ft,ry:Ft,class:X,style:ht.style,id:L.db.lookUpDomId(Y.id)})})},bl=function(l,o,y){var w,A,L=0;if(l.defaultStyle!==void 0){var I=Oa(l.defaultStyle);w=I.style,A=I.labelStyle}l.forEach(function(O){L++;var F="L-"+O.start+"-"+O.end,Y="LS-"+O.start,X="LE-"+O.end,et={};O.type==="arrow_open"?et.arrowhead="none":et.arrowhead="normal";var ht="",ot="";if(O.style!==void 0){var It=Oa(O.style);ht=It.style,ot=It.labelStyle}else switch(O.stroke){case"normal":ht="fill:none",w!==void 0&&(ht=w),A!==void 0&&(ot=A);break;case"dotted":ht="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":ht=" stroke-width: 3.5px;fill:none"}et.style=ht,et.labelStyle=ot,O.interpolate!==void 0?et.curve=Qi(O.interpolate,E.curveLinear):l.defaultInterpolate!==void 0?et.curve=Qi(l.defaultInterpolate,E.curveLinear):et.curve=Qi(d1.curve,E.curveLinear),O.text===void 0?O.style!==void 0&&(et.arrowheadStyle="fill: #333"):(et.arrowheadStyle="fill: #333",et.labelpos="c",fn(Rt().flowchart.htmlLabels)?(et.labelType="html",et.label='<span id="L-'.concat(F,'" class="edgeLabel L-').concat(Y,"' L-").concat(X,'" style="').concat(et.labelStyle,'">').concat(O.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Nt){return"<i class='".concat(Nt.replace(":"," "),"'></i>")}),"</span>")):(et.labelType="text",et.label=O.text.replace(mn.lineBreakRegex,`
|
|
`),O.style===void 0&&(et.style=et.style||"stroke: #333; stroke-width: 1.5px;fill:none"),et.labelStyle=et.labelStyle.replace("color:","fill:"))),et.id=F,et.class=Y+" "+X,et.minlen=O.length||1,o.setEdge(y.db.lookUpDomId(O.start),y.db.lookUpDomId(O.end),et,L)})};const vl={setConf:function(l){for(var o=Object.keys(l),y=0;y<o.length;y++)d1[o[y]]=l[o[y]]},addVertices:p1,addEdges:bl,getClasses:function(l,o){_.info("Extracting classes"),o.db.clear();try{return o.parse(l),o.db.getClasses()}catch{return}},draw:function(l,o,y,w){_.info("Drawing flowchart"),w.db.clear();var A,L=Rt().securityLevel;L==="sandbox"&&(A=(0,E.select)("#i"+o));var I=L==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),O=L==="sandbox"?A.nodes()[0].contentDocument:document;try{w.parser.parse(l)}catch{_.debug("Parsing failed")}var F=w.db.getDirection();F===void 0&&(F="TD");for(var Y,X=Rt().flowchart,et=X.nodeSpacing||50,ht=X.rankSpacing||50,ot=new(yi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:F,nodesep:et,ranksep:ht,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),It=w.db.getSubGraphs(),Nt=It.length-1;Nt>=0;Nt--)Y=It[Nt],w.db.addVertex(Y.id,Y.title,"group",void 0,Y.classes);var Yt=w.db.getVertices();_.warn("Get vertices",Yt);var jt=w.db.getEdges(),Mt=0;for(Mt=It.length-1;Mt>=0;Mt--){Y=It[Mt],(0,E.selectAll)("cluster").append("text");for(var Ft=0;Ft<Y.nodes.length;Ft++)_.warn("Setting subgraph",Y.nodes[Ft],w.db.lookUpDomId(Y.nodes[Ft]),w.db.lookUpDomId(Y.id)),ot.setParent(w.db.lookUpDomId(Y.nodes[Ft]),w.db.lookUpDomId(Y.id))}p1(Yt,ot,o,I,O,w),bl(jt,ot,w);var Ot=new(Li()).render;df(Ot),Ot.arrows().none=function(Ue,ln,gn,je){var Ge=Ue.append("marker").attr("id",ln).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");Li().util.applyStyle(Ge,gn[je+"Style"])},Ot.arrows().normal=function(Ue,ln){Ue.append("marker").attr("id",ln).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 te=I.select('[id="'.concat(o,'"]'));Rr(w.db,te,o);var Oe=I.select("#"+o+" g");for(Ot(Oe,ot),Oe.selectAll("g.node").attr("title",function(){return w.db.getTooltip(this.id)}),w.db.indexNodes("subGraph"+Mt),Mt=0;Mt<It.length;Mt++)if((Y=It[Mt]).title!=="undefined"){var ke=O.querySelectorAll("#"+o+' [id="'+w.db.lookUpDomId(Y.id)+'"] rect'),ve=O.querySelectorAll("#"+o+' [id="'+w.db.lookUpDomId(Y.id)+'"]'),Pt=ke[0].x.baseVal.value,le=ke[0].y.baseVal.value,Vt=ke[0].width.baseVal.value,ae=(0,E.select)(ve[0]).select(".label");ae.attr("transform","translate(".concat(Pt+Vt/2,", ").concat(le+14,")")),ae.attr("id",o+"Text");for(var ee=0;ee<Y.classes.length;ee++)ve[0].classList.add(Y.classes[ee])}fn(X.htmlLabels);for(var fe=O.querySelectorAll('[id="'+o+'"] .edgeLabel .label'),Be=0;Be<fe.length;Be++){var Fe=fe[Be],Ye=Fe.getBBox(),pn=O.createElementNS("http://www.w3.org/2000/svg","rect");pn.setAttribute("rx",0),pn.setAttribute("ry",0),pn.setAttribute("width",Ye.width),pn.setAttribute("height",Ye.height),Fe.insertBefore(pn,Fe.firstChild)}Cs(ot,te,X.diagramPadding,X.useMaxWidth),Object.keys(Yt).forEach(function(Ue){var ln=Yt[Ue];if(ln.link){var gn=I.select("#"+o+' [id="'+w.db.lookUpDomId(Ue)+'"]');if(gn){var je=O.createElementNS("http://www.w3.org/2000/svg","a");je.setAttributeNS("http://www.w3.org/2000/svg","class",ln.classes.join(" ")),je.setAttributeNS("http://www.w3.org/2000/svg","href",ln.link),je.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),L==="sandbox"?je.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ln.linkTarget&&je.setAttributeNS("http://www.w3.org/2000/svg","target",ln.linkTarget);var Ge=gn.insert(function(){return je},":first-child"),bn=gn.select(".label-container");bn&&Ge.append(function(){return bn.node()});var _r=gn.select(".label");_r&&Ge.append(function(){return _r.node()})}}})}};var g1={},y1=function(l,o,y,w,A,L){var I=w.select('[id="'.concat(y,'"]'));Object.keys(l).forEach(function(O){var F=l[O],Y="default";F.classes.length>0&&(Y=F.classes.join(" "));var X,et=Oa(F.styles),ht=F.text!==void 0?F.text:F.id;if(fn(Rt().flowchart.htmlLabels)){var ot={label:ht.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Ot){return"<i class='".concat(Ot.replace(":"," "),"'></i>")})};(X=zi()(I,ot).node()).parentNode.removeChild(X)}else{var It=A.createElementNS("http://www.w3.org/2000/svg","text");It.setAttribute("style",et.labelStyle.replace("color:","fill:"));for(var Nt=ht.split(mn.lineBreakRegex),Yt=0;Yt<Nt.length;Yt++){var jt=A.createElementNS("http://www.w3.org/2000/svg","tspan");jt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),jt.setAttribute("dy","1em"),jt.setAttribute("x","1"),jt.textContent=Nt[Yt],It.appendChild(jt)}X=It}var Mt=0,Ft="";switch(F.type){case"round":Mt=5,Ft="rect";break;case"square":case"group":default:Ft="rect";break;case"diamond":Ft="question";break;case"hexagon":Ft="hexagon";break;case"odd":case"odd_right":Ft="rect_left_inv_arrow";break;case"lean_right":Ft="lean_right";break;case"lean_left":Ft="lean_left";break;case"trapezoid":Ft="trapezoid";break;case"inv_trapezoid":Ft="inv_trapezoid";break;case"circle":Ft="circle";break;case"ellipse":Ft="ellipse";break;case"stadium":Ft="stadium";break;case"subroutine":Ft="subroutine";break;case"cylinder":Ft="cylinder";break;case"doublecircle":Ft="doublecircle"}o.setNode(F.id,{labelStyle:et.labelStyle,shape:Ft,labelText:ht,rx:Mt,ry:Mt,class:Y,style:et.style,id:F.id,link:F.link,linkTarget:F.linkTarget,tooltip:L.db.getTooltip(F.id)||"",domId:L.db.lookUpDomId(F.id),haveCallback:F.haveCallback,width:F.type==="group"?500:void 0,dir:F.dir,type:F.type,props:F.props,padding:Rt().flowchart.padding}),_.info("setNode",{labelStyle:et.labelStyle,shape:Ft,labelText:ht,rx:Mt,ry:Mt,class:Y,style:et.style,id:F.id,domId:L.db.lookUpDomId(F.id),width:F.type==="group"?500:void 0,type:F.type,dir:F.dir,props:F.props,padding:Rt().flowchart.padding})})},m1=function(l,o,y){_.info("abc78 edges = ",l);var w,A,L=0,I={};if(l.defaultStyle!==void 0){var O=Oa(l.defaultStyle);w=O.style,A=O.labelStyle}l.forEach(function(F){L++;var Y="L-"+F.start+"-"+F.end;I[Y]===void 0?(I[Y]=0,_.info("abc78 new entry",Y,I[Y])):(I[Y]++,_.info("abc78 new entry",Y,I[Y]));var X=Y+"-"+I[Y];_.info("abc78 new link id to be used is",Y,X,I[Y]);var et="LS-"+F.start,ht="LE-"+F.end,ot={style:"",labelStyle:""};switch(ot.minlen=F.length||1,F.type==="arrow_open"?ot.arrowhead="none":ot.arrowhead="normal",ot.arrowTypeStart="arrow_open",ot.arrowTypeEnd="arrow_open",F.type){case"double_arrow_cross":ot.arrowTypeStart="arrow_cross";case"arrow_cross":ot.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":ot.arrowTypeStart="arrow_point";case"arrow_point":ot.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":ot.arrowTypeStart="arrow_circle";case"arrow_circle":ot.arrowTypeEnd="arrow_circle"}var It="",Nt="";switch(F.stroke){case"normal":It="fill:none;",w!==void 0&&(It=w),A!==void 0&&(Nt=A),ot.thickness="normal",ot.pattern="solid";break;case"dotted":ot.thickness="normal",ot.pattern="dotted",ot.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":ot.thickness="thick",ot.pattern="solid",ot.style="stroke-width: 3.5px;fill:none;"}if(F.style!==void 0){var Yt=Oa(F.style);It=Yt.style,Nt=Yt.labelStyle}ot.style=ot.style+=It,ot.labelStyle=ot.labelStyle+=Nt,F.interpolate!==void 0?ot.curve=Qi(F.interpolate,E.curveLinear):l.defaultInterpolate!==void 0?ot.curve=Qi(l.defaultInterpolate,E.curveLinear):ot.curve=Qi(g1.curve,E.curveLinear),F.text===void 0?F.style!==void 0&&(ot.arrowheadStyle="fill: #333"):(ot.arrowheadStyle="fill: #333",ot.labelpos="c"),ot.labelType="text",ot.label=F.text.replace(mn.lineBreakRegex,`
|
|
`),F.style===void 0&&(ot.style=ot.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),ot.labelStyle=ot.labelStyle.replace("color:","fill:"),ot.id=X,ot.classes="flowchart-link "+et+" "+ht,o.setEdge(F.start,F.end,ot,L)})};const ku={setConf:function(l){for(var o=Object.keys(l),y=0;y<o.length;y++)g1[o[y]]=l[o[y]]},addVertices:y1,addEdges:m1,getClasses:function(l,o){_.info("Extracting classes"),o.db.clear();try{return o.parse(l),o.db.getClasses()}catch{return}},draw:function(l,o,y,w){_.info("Drawing flowchart"),w.db.clear(),ro.setGen("gen-2"),w.parser.parse(l);var A=w.db.getDirection();A===void 0&&(A="TD");var L,I=Rt().flowchart,O=I.nodeSpacing||50,F=I.rankSpacing||50,Y=Rt().securityLevel;Y==="sandbox"&&(L=(0,E.select)("#i"+o));var X,et=Y==="sandbox"?(0,E.select)(L.nodes()[0].contentDocument.body):(0,E.select)("body"),ht=Y==="sandbox"?L.nodes()[0].contentDocument:document,ot=new(yi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:A,nodesep:O,ranksep:F,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),It=w.db.getSubGraphs();_.info("Subgraphs - ",It);for(var Nt=It.length-1;Nt>=0;Nt--)X=It[Nt],_.info("Subgraph - ",X),w.db.addVertex(X.id,X.title,"group",void 0,X.classes,X.dir);var Yt=w.db.getVertices(),jt=w.db.getEdges();_.info(jt);var Mt=0;for(Mt=It.length-1;Mt>=0;Mt--){X=It[Mt],(0,E.selectAll)("cluster").append("text");for(var Ft=0;Ft<X.nodes.length;Ft++)_.info("Setting up subgraphs",X.nodes[Ft],X.id),ot.setParent(X.nodes[Ft],X.id)}y1(Yt,ot,o,et,ht,w),m1(jt,ot);var Ot=et.select('[id="'.concat(o,'"]'));Rr(w.db,Ot,o);var te=et.select("#"+o+" g");if(ul(te,ot,["point","circle","cross"],"flowchart",o),Cs(ot,Ot,I.diagramPadding,I.useMaxWidth),w.db.indexNodes("subGraph"+Mt),!I.htmlLabels)for(var Oe=ht.querySelectorAll('[id="'+o+'"] .edgeLabel .label'),ke=0;ke<Oe.length;ke++){var ve=Oe[ke],Pt=ve.getBBox(),le=ht.createElementNS("http://www.w3.org/2000/svg","rect");le.setAttribute("rx",0),le.setAttribute("ry",0),le.setAttribute("width",Pt.width),le.setAttribute("height",Pt.height),ve.insertBefore(le,ve.firstChild)}Object.keys(Yt).forEach(function(Vt){var ae=Yt[Vt];if(ae.link){var ee=(0,E.select)("#"+o+' [id="'+Vt+'"]');if(ee){var fe=ht.createElementNS("http://www.w3.org/2000/svg","a");fe.setAttributeNS("http://www.w3.org/2000/svg","class",ae.classes.join(" ")),fe.setAttributeNS("http://www.w3.org/2000/svg","href",ae.link),fe.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),Y==="sandbox"?fe.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ae.linkTarget&&fe.setAttributeNS("http://www.w3.org/2000/svg","target",ae.linkTarget);var Be=ee.insert(function(){return fe},":first-child"),Fe=ee.select(".label-container");Fe&&Be.append(function(){return Fe.node()});var Ye=ee.select(".label");Ye&&Be.append(function(){return Ye.node()})}}})}};var wu=h(3602),Eu=h.n(wu);function Po(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,w=new Array(o);y<o;y++)w[y]=l[y];return w}var Uo,Ac,xa="",xl="",kl="",hs=[],fs=[],Tu={},Su=[],Au=[],zs="",wl=["active","done","crit","milestone"],Ys=[],ds=!1,mo=!1,Cu=0,El=function(l,o,y,w){return!(w.indexOf(l.format(o.trim()))>=0)&&(l.isoWeekday()>=6&&y.indexOf("weekends")>=0||y.indexOf(l.format("dddd").toLowerCase())>=0||y.indexOf(l.format(o.trim()))>=0)},Iu=function(l,o,y,w){if(y.length&&!l.manualEndTime){var A=d()(l.startTime,o,!0);A.add(1,"d");var L=d()(l.endTime,o,!0),I=ps(A,L,o,y,w);l.endTime=L.toDate(),l.renderEndTime=I}},ps=function(l,o,y,w,A){for(var L=!1,I=null;l<=o;)L||(I=o.toDate()),(L=El(l,y,w,A))&&o.add(1,"d"),l.add(1,"d");return I},Nu=function(l,o,y){y=y.trim();var w=/^after\s+([\d\w- ]+)/.exec(y.trim());if(w!==null){var A=null;if(w[1].split(" ").forEach(function(O){var F=js(O);F!==void 0&&(A?F.endTime>A.endTime&&(A=F):A=F)}),A)return A.endTime;var L=new Date;return L.setHours(0,0,0,0),L}var I=d()(y,o.trim(),!0);return I.isValid()?I.toDate():(_.debug("Invalid date:"+y),_.debug("With date format:"+o.trim()),new Date)},zo=function(l,o){if(l!==null)switch(l[2]){case"s":o.add(l[1],"seconds");break;case"m":o.add(l[1],"minutes");break;case"h":o.add(l[1],"hours");break;case"d":o.add(l[1],"days");break;case"w":o.add(l[1],"weeks")}return o.toDate()},_1=function(l,o,y,w){w=w||!1,y=y.trim();var A=d()(y,o.trim(),!0);return A.isValid()?(w&&A.add(1,"d"),A.toDate()):zo(/^([\d]+)([wdhms])/.exec(y.trim()),d()(l))},b1=0,gs=function(l){return l===void 0?"task"+(b1+=1):l},_i=[],v1={},js=function(l){var o=v1[l];return _i[o]},x1=function(){for(var l=function(w){var A=_i[w],L="";switch(_i[w].raw.startTime.type){case"prevTaskEnd":var I=js(A.prevTaskId);A.startTime=I.endTime;break;case"getStartDate":(L=Nu(0,xa,_i[w].raw.startTime.startData))&&(_i[w].startTime=L)}return _i[w].startTime&&(_i[w].endTime=_1(_i[w].startTime,xa,_i[w].raw.endTime.data,ds),_i[w].endTime&&(_i[w].processed=!0,_i[w].manualEndTime=d()(_i[w].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Iu(_i[w],xa,fs,hs))),_i[w].processed},o=!0,y=0;y<_i.length;y++)l(y),o=o&&_i[y].processed;return o},Lu=function(l,o){l.split(",").forEach(function(y){var w=js(y);w!==void 0&&w.classes.push(o)})},k1=function(l,o){Ys.push(function(){var y=document.querySelector('[id="'.concat(l,'"]'));y!==null&&y.addEventListener("click",function(){o()})}),Ys.push(function(){var y=document.querySelector('[id="'.concat(l,'-text"]'));y!==null&&y.addEventListener("click",function(){o()})})};const w1={parseDirective:function(l,o,y){Xn.parseDirective(this,l,o,y)},getConfig:function(){return Rt().gantt},clear:function(){Su=[],Au=[],zs="",Ys=[],b1=0,Uo=void 0,Ac=void 0,_i=[],xa="",xl="",kl="",hs=[],fs=[],ds=!1,mo=!1,Cu=0,Tu={},Pr()},setDateFormat:function(l){xa=l},getDateFormat:function(){return xa},enableInclusiveEndDates:function(){ds=!0},endDatesAreInclusive:function(){return ds},enableTopAxis:function(){mo=!0},topAxisEnabled:function(){return mo},setAxisFormat:function(l){xl=l},getAxisFormat:function(){return xl},setTodayMarker:function(l){kl=l},getTodayMarker:function(){return kl},setAccTitle:Qt,getAccTitle:wr,setDiagramTitle:La,getDiagramTitle:Ri,setAccDescription:ri,getAccDescription:ci,addSection:function(l){zs=l,Su.push(l)},getSections:function(){return Su},getTasks:function(){for(var l=x1(),o=0;!l&&o<10;)l=x1(),o++;return Au=_i},addTask:function(l,o){var y={section:zs,type:zs,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:o},task:l,classes:[]},w=function(L,I){var O=(I.substr(0,1)===":"?I.substr(1,I.length):I).split(","),F={};Mu(O,F,wl);for(var Y=0;Y<O.length;Y++)O[Y]=O[Y].trim();switch(O.length){case 1:F.id=gs(),F.startTime={type:"prevTaskEnd",id:L},F.endTime={data:O[0]};break;case 2:F.id=gs(),F.startTime={type:"getStartDate",startData:O[0]},F.endTime={data:O[1]};break;case 3:F.id=gs(O[0]),F.startTime={type:"getStartDate",startData:O[1]},F.endTime={data:O[2]}}return F}(Ac,o);y.raw.startTime=w.startTime,y.raw.endTime=w.endTime,y.id=w.id,y.prevTaskId=Ac,y.active=w.active,y.done=w.done,y.crit=w.crit,y.milestone=w.milestone,y.order=Cu,Cu++;var A=_i.push(y);Ac=y.id,v1[y.id]=A-1},findTaskById:js,addTaskOrg:function(l,o){var y={section:zs,type:zs,description:l,task:l,classes:[]},w=function(A,L){var I=(L.substr(0,1)===":"?L.substr(1,L.length):L).split(","),O={};Mu(I,O,wl);for(var F=0;F<I.length;F++)I[F]=I[F].trim();var Y="";switch(I.length){case 1:O.id=gs(),O.startTime=A.endTime,Y=I[0];break;case 2:O.id=gs(),O.startTime=Nu(0,xa,I[0]),Y=I[1];break;case 3:O.id=gs(I[0]),O.startTime=Nu(0,xa,I[1]),Y=I[2]}return Y&&(O.endTime=_1(O.startTime,xa,Y,ds),O.manualEndTime=d()(Y,"YYYY-MM-DD",!0).isValid(),Iu(O,xa,fs,hs)),O}(Uo,o);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,Uo=y,Au.push(y)},setIncludes:function(l){hs=l.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return hs},setExcludes:function(l){fs=l.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return fs},setClickEvent:function(l,o,y){l.split(",").forEach(function(w){(function(A,L,I){if(Rt().securityLevel==="loose"&&L!==void 0){var O=[];if(typeof I=="string"){O=I.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var F=0;F<O.length;F++){var Y=O[F].trim();Y.charAt(0)==='"'&&Y.charAt(Y.length-1)==='"'&&(Y=Y.substr(1,Y.length-2)),O[F]=Y}}O.length===0&&O.push(A),js(A)!==void 0&&k1(A,function(){var X;nr.runFunc.apply(nr,[L].concat(function(et){if(Array.isArray(et))return Po(et)}(X=O)||function(et){if(typeof Symbol<"u"&&et[Symbol.iterator]!=null||et["@@iterator"]!=null)return Array.from(et)}(X)||function(et,ht){if(et){if(typeof et=="string")return Po(et,ht);var ot=Object.prototype.toString.call(et).slice(8,-1);return ot==="Object"&&et.constructor&&(ot=et.constructor.name),ot==="Map"||ot==="Set"?Array.from(et):ot==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ot)?Po(et,ht):void 0}}(X)||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,o,y)}),Lu(l,"clickable")},setLink:function(l,o){var y=o;Rt().securityLevel!=="loose"&&(y=(0,ii.N)(o)),l.split(",").forEach(function(w){js(w)!==void 0&&(k1(w,function(){window.open(y,"_self")}),Tu[w]=y)}),Lu(l,"clickable")},getLinks:function(){return Tu},bindFunctions:function(l){Ys.forEach(function(o){o(l)})},durationToDate:zo,isInvalidDate:El};function Mu(l,o,y){for(var w=!0;w;)w=!1,y.forEach(function(A){var L=new RegExp("^\\s*"+A+"\\s*$");l[0].match(L)&&(o[A]=!0,l.shift(1),w=!0)})}var _o;const Tl={setConf:function(){_.debug("Something is calling, setConf, remove the call")},draw:function(l,o,y,w){var A,L=Rt().gantt,I=Rt().securityLevel;I==="sandbox"&&(A=(0,E.select)("#i"+o));var O=I==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),F=I==="sandbox"?A.nodes()[0].contentDocument:document,Y=F.getElementById(o);(_o=Y.parentElement.offsetWidth)===void 0&&(_o=1200),L.useWidth!==void 0&&(_o=L.useWidth);var X=w.db.getTasks(),et=X.length*(L.barHeight+L.barGap)+2*L.topPadding;Y.setAttribute("viewBox","0 0 "+_o+" "+et);for(var ht=O.select('[id="'.concat(o,'"]')),ot=(0,E.scaleTime)().domain([(0,E.min)(X,function(jt){return jt.startTime}),(0,E.max)(X,function(jt){return jt.endTime})]).rangeRound([0,_o-L.leftPadding-L.rightPadding]),It=[],Nt=0;Nt<X.length;Nt++)It.push(X[Nt].type);var Yt=It;It=function(jt){for(var Mt={},Ft=[],Ot=0,te=jt.length;Ot<te;++Ot)Object.prototype.hasOwnProperty.call(Mt,jt[Ot])||(Mt[jt[Ot]]=!0,Ft.push(jt[Ot]));return Ft}(It),X.sort(function(jt,Mt){var Ft=jt.startTime,Ot=Mt.startTime,te=0;return Ft>Ot?te=1:Ft<Ot&&(te=-1),te}),function(jt,Mt,Ft){var Ot=L.barHeight,te=Ot+L.barGap,Oe=L.topPadding,ke=L.leftPadding;(0,E.scaleLinear)().domain([0,It.length]).range(["#00B9FA","#F95002"]).interpolate(E.interpolateHcl),function(ve,Pt,le,Vt,ae,ee,fe,Be){var Fe=ee.reduce(function(je,Ge){var bn=Ge.startTime;return je?Math.min(je,bn):bn},0),Ye=ee.reduce(function(je,Ge){var bn=Ge.endTime;return je?Math.max(je,bn):bn},0),pn=w.db.getDateFormat();if(Fe&&Ye){for(var Ue=[],ln=null,gn=d()(Fe);gn.valueOf()<=Ye;)w.db.isInvalidDate(gn,pn,fe,Be)?ln?ln.end=gn.clone():ln={start:gn.clone(),end:gn.clone()}:ln&&(Ue.push(ln),ln=null),gn.add(1,"d");ht.append("g").selectAll("rect").data(Ue).enter().append("rect").attr("id",function(je){return"exclude-"+je.start.format("YYYY-MM-DD")}).attr("x",function(je){return ot(je.start)+le}).attr("y",L.gridLineStartPadding).attr("width",function(je){var Ge=je.end.clone().add(1,"day");return ot(Ge)-ot(je.start)}).attr("height",ae-Pt-L.gridLineStartPadding).attr("transform-origin",function(je,Ge){return(ot(je.start)+le+.5*(ot(je.end)-ot(je.start))).toString()+"px "+(Ge*ve+.5*ae).toString()+"px"}).attr("class","exclude-range")}}(te,Oe,ke,0,Ft,jt,w.db.getExcludes(),w.db.getIncludes()),function(ve,Pt,le,Vt){var ae=(0,E.axisBottom)(ot).tickSize(-Vt+Pt+L.gridLineStartPadding).tickFormat((0,E.timeFormat)(w.db.getAxisFormat()||L.axisFormat||"%Y-%m-%d"));if(ht.append("g").attr("class","grid").attr("transform","translate("+ve+", "+(Vt-50)+")").call(ae).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),w.db.topAxisEnabled()||L.topAxis){var ee=(0,E.axisTop)(ot).tickSize(-Vt+Pt+L.gridLineStartPadding).tickFormat((0,E.timeFormat)(w.db.getAxisFormat()||L.axisFormat||"%Y-%m-%d"));ht.append("g").attr("class","grid").attr("transform","translate("+ve+", "+Pt+")").call(ee).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(ke,Oe,0,Ft),function(ve,Pt,le,Vt,ae,ee,fe){ht.append("g").selectAll("rect").data(ve).enter().append("rect").attr("x",0).attr("y",function(Ue,ln){return Ue.order*Pt+le-2}).attr("width",function(){return fe-L.rightPadding/2}).attr("height",Pt).attr("class",function(Ue){for(var ln=0;ln<It.length;ln++)if(Ue.type===It[ln])return"section section"+ln%L.numberSectionStyles;return"section section0"});var Be=ht.append("g").selectAll("rect").data(ve).enter(),Fe=w.db.getLinks();if(Be.append("rect").attr("id",function(Ue){return Ue.id}).attr("rx",3).attr("ry",3).attr("x",function(Ue){return Ue.milestone?ot(Ue.startTime)+Vt+.5*(ot(Ue.endTime)-ot(Ue.startTime))-.5*ae:ot(Ue.startTime)+Vt}).attr("y",function(Ue,ln){return Ue.order*Pt+le}).attr("width",function(Ue){return Ue.milestone?ae:ot(Ue.renderEndTime||Ue.endTime)-ot(Ue.startTime)}).attr("height",ae).attr("transform-origin",function(Ue,ln){return ln=Ue.order,(ot(Ue.startTime)+Vt+.5*(ot(Ue.endTime)-ot(Ue.startTime))).toString()+"px "+(ln*Pt+le+.5*ae).toString()+"px"}).attr("class",function(Ue){var ln="";Ue.classes.length>0&&(ln=Ue.classes.join(" "));for(var gn=0,je=0;je<It.length;je++)Ue.type===It[je]&&(gn=je%L.numberSectionStyles);var Ge="";return Ue.active?Ue.crit?Ge+=" activeCrit":Ge=" active":Ue.done?Ge=Ue.crit?" doneCrit":" done":Ue.crit&&(Ge+=" crit"),Ge.length===0&&(Ge=" task"),Ue.milestone&&(Ge=" milestone "+Ge),"task"+(Ge+=gn)+" "+ln}),Be.append("text").attr("id",function(Ue){return Ue.id+"-text"}).text(function(Ue){return Ue.task}).attr("font-size",L.fontSize).attr("x",function(Ue){var ln=ot(Ue.startTime),gn=ot(Ue.renderEndTime||Ue.endTime);Ue.milestone&&(ln+=.5*(ot(Ue.endTime)-ot(Ue.startTime))-.5*ae),Ue.milestone&&(gn=ln+ae);var je=this.getBBox().width;return je>gn-ln?gn+je+1.5*L.leftPadding>fe?ln+Vt-5:gn+Vt+5:(gn-ln)/2+ln+Vt}).attr("y",function(Ue,ln){return Ue.order*Pt+L.barHeight/2+(L.fontSize/2-2)+le}).attr("text-height",ae).attr("class",function(Ue){var ln=ot(Ue.startTime),gn=ot(Ue.endTime);Ue.milestone&&(gn=ln+ae);var je=this.getBBox().width,Ge="";Ue.classes.length>0&&(Ge=Ue.classes.join(" "));for(var bn=0,_r=0;_r<It.length;_r++)Ue.type===It[_r]&&(bn=_r%L.numberSectionStyles);var vr="";return Ue.active&&(vr=Ue.crit?"activeCritText"+bn:"activeText"+bn),Ue.done?vr=Ue.crit?vr+" doneCritText"+bn:vr+" doneText"+bn:Ue.crit&&(vr=vr+" critText"+bn),Ue.milestone&&(vr+=" milestoneText"),je>gn-ln?gn+je+1.5*L.leftPadding>fe?Ge+" taskTextOutsideLeft taskTextOutside"+bn+" "+vr:Ge+" taskTextOutsideRight taskTextOutside"+bn+" "+vr+" width-"+je:Ge+" taskText taskText"+bn+" "+vr+" width-"+je}),Rt().securityLevel==="sandbox"){var Ye;Ye=(0,E.select)("#i"+o),(0,E.select)(Ye.nodes()[0].contentDocument.body);var pn=Ye.nodes()[0].contentDocument;Be.filter(function(Ue){return Fe[Ue.id]!==void 0}).each(function(Ue){var ln=pn.querySelector("#"+Ue.id),gn=pn.querySelector("#"+Ue.id+"-text"),je=ln.parentNode,Ge=pn.createElement("a");Ge.setAttribute("xlink:href",Fe[Ue.id]),Ge.setAttribute("target","_top"),je.appendChild(Ge),Ge.appendChild(ln),Ge.appendChild(gn)})}}(jt,te,Oe,ke,Ot,0,Mt),function(ve,Pt){for(var le=[],Vt=0,ae=0;ae<It.length;ae++)le[ae]=[It[ae],(ee=It[ae],fe=Yt,function(Be){for(var Fe=Be.length,Ye={};Fe;)Ye[Be[--Fe]]=(Ye[Be[Fe]]||0)+1;return Ye}(fe)[ee]||0)];var ee,fe;ht.append("g").selectAll("text").data(le).enter().append(function(Be){var Fe=Be[0].split(mn.lineBreakRegex),Ye=-(Fe.length-1)/2,pn=F.createElementNS("http://www.w3.org/2000/svg","text");pn.setAttribute("dy",Ye+"em");for(var Ue=0;Ue<Fe.length;Ue++){var ln=F.createElementNS("http://www.w3.org/2000/svg","tspan");ln.setAttribute("alignment-baseline","central"),ln.setAttribute("x","10"),Ue>0&&ln.setAttribute("dy","1em"),ln.textContent=Fe[Ue],pn.appendChild(ln)}return pn}).attr("x",10).attr("y",function(Be,Fe){if(!(Fe>0))return Be[1]*ve/2+Pt;for(var Ye=0;Ye<Fe;Ye++)return Vt+=le[Fe-1][1],Be[1]*ve/2+Vt*ve+Pt}).attr("font-size",L.sectionFontSize).attr("font-size",L.sectionFontSize).attr("class",function(Be){for(var Fe=0;Fe<It.length;Fe++)if(Be[0]===It[Fe])return"sectionTitle sectionTitle"+Fe%L.numberSectionStyles;return"sectionTitle"})}(te,Oe),function(ve,Pt,le,Vt){var ae=w.db.getTodayMarker();if(ae!=="off"){var ee=ht.append("g").attr("class","today"),fe=new Date,Be=ee.append("line");Be.attr("x1",ot(fe)+ve).attr("x2",ot(fe)+ve).attr("y1",L.titleTopMargin).attr("y2",Vt-L.titleTopMargin).attr("class","today"),ae!==""&&Be.attr("style",ae.replace(/,/g,";"))}}(ke,0,0,Ft)}(X,_o,et),ta(ht,et,_o,L.useMaxWidth),ht.append("text").text(w.db.getDiagramTitle()).attr("x",_o/2).attr("y",L.titleTopMargin).attr("class","titleText"),Rr(w.db,ht,o)}};var E1=h(9959),T1=h.n(E1),Sl="",Ou=!1;const S1={setMessage:function(l){_.debug("Setting message to: "+l),Sl=l},getMessage:function(){return Sl},setInfo:function(l){Ou=l},getInfo:function(){return Ou}},pf={draw:function(l,o,y,w){try{_.debug(`Renering info diagram
|
|
`+l);var A,L=Rt().securityLevel;L==="sandbox"&&(A=(0,E.select)("#i"+o));var I=L==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),O=(L==="sandbox"&&A.nodes()[0].contentDocument,I.select("#"+o));O.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+y),O.attr("height",100),O.attr("width",400)}catch(F){_.error("Error while rendering info diagram"),_.error(F.message)}}};var Al=h(6765),Ga=h.n(Al),Du=h(7062),Bu=h.n(Du),$s={},Cc=!1;const A1={parseDirective:function(l,o,y){Xn.parseDirective(this,l,o,y)},getConfig:function(){return Rt().pie},addSection:function(l,o){l=mn.sanitizeText(l,Rt()),$s[l]===void 0&&($s[l]=o,_.debug("Added new section :",l))},getSections:function(){return $s},cleanupValue:function(l){return l.substring(0,1)===":"&&(l=l.substring(1).trim()),Number(l.trim())},clear:function(){$s={},Cc=!1,Pr()},setAccTitle:Qt,getAccTitle:wr,setDiagramTitle:La,getDiagramTitle:Ri,setShowData:function(l){Cc=l},getShowData:function(){return Cc},getAccDescription:ci,setAccDescription:ri};var Yo,Pa=Rt();const io={draw:function(l,o,y,w){try{Pa=Rt(),_.debug(`Rendering info diagram
|
|
`+l);var A,L=Rt().securityLevel;L==="sandbox"&&(A=(0,E.select)("#i"+o));var I=L==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),O=L==="sandbox"?A.nodes()[0].contentDocument:document;w.db.clear(),w.parser.parse(l),_.debug("Parsed info diagram");var F=O.getElementById(o);(Yo=F.parentElement.offsetWidth)===void 0&&(Yo=1200),Pa.useWidth!==void 0&&(Yo=Pa.useWidth),Pa.pie.useWidth!==void 0&&(Yo=Pa.pie.useWidth);var Y=I.select("#"+o);ta(Y,450,Yo,Pa.pie.useMaxWidth),Rr(w.db,Y,o),F.setAttribute("viewBox","0 0 "+Yo+" 450");var X=Math.min(Yo,450)/2-40,et=Y.append("g").attr("transform","translate("+Yo/2+",225)"),ht=w.db.getSections(),ot=0;Object.keys(ht).forEach(function(Ot){ot+=ht[Ot]});var It=Pa.themeVariables,Nt=[It.pie1,It.pie2,It.pie3,It.pie4,It.pie5,It.pie6,It.pie7,It.pie8,It.pie9,It.pie10,It.pie11,It.pie12],Yt=(0,E.scaleOrdinal)().range(Nt),jt=(0,E.pie)().value(function(Ot){return Ot[1]})(Object.entries(ht)),Mt=(0,E.arc)().innerRadius(0).outerRadius(X);et.selectAll("mySlices").data(jt).enter().append("path").attr("d",Mt).attr("fill",function(Ot){return Yt(Ot.data[0])}).attr("class","pieCircle"),et.selectAll("mySlices").data(jt).enter().append("text").text(function(Ot){return(Ot.data[1]/ot*100).toFixed(0)+"%"}).attr("transform",function(Ot){return"translate("+Mt.centroid(Ot)+")"}).style("text-anchor","middle").attr("class","slice"),et.append("text").text(w.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var Ft=et.selectAll(".legend").data(Yt.domain()).enter().append("g").attr("class","legend").attr("transform",function(Ot,te){return"translate(216,"+(22*te-22*Yt.domain().length/2)+")"});Ft.append("rect").attr("width",18).attr("height",18).style("fill",Yt).style("stroke",Yt),Ft.data(jt).append("text").attr("x",22).attr("y",14).text(function(Ot){return w.db.getShowData()||Pa.showData||Pa.pie.showData?Ot.data[0]+" ["+Ot.data[1]+"]":Ot.data[0]})}catch(Ot){_.error("Error while rendering info diagram"),_.error(Ot)}}};var C1=h(3176),I1=h.n(C1),Ic=[],Gi={},jo={},Ua={},Hs={};const N1={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,o,y){Xn.parseDirective(this,l,o,y)},getConfig:function(){return Rt().req},addRequirement:function(l,o){return jo[l]===void 0&&(jo[l]={name:l,type:o,id:Gi.id,text:Gi.text,risk:Gi.risk,verifyMethod:Gi.verifyMethod}),Gi={},jo[l]},getRequirements:function(){return jo},setNewReqId:function(l){Gi!==void 0&&(Gi.id=l)},setNewReqText:function(l){Gi!==void 0&&(Gi.text=l)},setNewReqRisk:function(l){Gi!==void 0&&(Gi.risk=l)},setNewReqVerifyMethod:function(l){Gi!==void 0&&(Gi.verifyMethod=l)},setAccTitle:Qt,getAccTitle:wr,setAccDescription:ri,getAccDescription:ci,addElement:function(l){return Hs[l]===void 0&&(Hs[l]={name:l,type:Ua.type,docRef:Ua.docRef},_.info("Added new requirement: ",l)),Ua={},Hs[l]},getElements:function(){return Hs},setNewElementType:function(l){Ua!==void 0&&(Ua.type=l)},setNewElementDocRef:function(l){Ua!==void 0&&(Ua.docRef=l)},addRelationship:function(l,o,y){Ic.push({type:l,src:o,dst:y})},getRelationships:function(){return Ic},clear:function(){Ic=[],Gi={},jo={},Ua={},Hs={},Pr()}};var Cl={CONTAINS:"contains",ARROW:"arrow"};const gf=Cl;var Tr={},$o=0,Ru=function(l,o){return l.insert("rect","#"+o).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Tr.rect_min_width+"px").attr("height",Tr.rect_min_height+"px")},L1=function(l,o,y){var w=Tr.rect_min_width/2,A=l.append("text").attr("class","req reqLabel reqTitle").attr("id",o).attr("x",w).attr("y",Tr.rect_padding).attr("dominant-baseline","hanging"),L=0;y.forEach(function(O){L==0?A.append("tspan").attr("text-anchor","middle").attr("x",Tr.rect_min_width/2).attr("dy",0).text(O):A.append("tspan").attr("text-anchor","middle").attr("x",Tr.rect_min_width/2).attr("dy",.75*Tr.line_height).text(O),L++});var I=1.5*Tr.rect_padding+L*Tr.line_height*.75;return l.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Tr.rect_min_width).attr("y1",I).attr("y2",I),{titleNode:A,y:I}},bo=function(l,o,y,w){var A=l.append("text").attr("class","req reqLabel").attr("id",o).attr("x",Tr.rect_padding).attr("y",w).attr("dominant-baseline","hanging"),L=0,I=[];return y.forEach(function(O){for(var F=O.length;F>30&&L<3;){var Y=O.substring(0,30);F=(O=O.substring(30,O.length)).length,I[I.length]=Y,L++}if(L==3){var X=I[I.length-1];I[I.length-1]=X.substring(0,X.length-4)+"..."}else I[I.length]=O;L=0}),I.forEach(function(O){A.append("tspan").attr("x",Tr.rect_padding).attr("dy",Tr.line_height).text(O)}),A},qs=function(l){return l.replace(/\s/g,"").replace(/\./g,"_")};const yf={draw:function(l,o,y,w){Tr=Rt().requirement,w.db.clear(),w.parser.parse(l);var A,L=Tr.securityLevel;L==="sandbox"&&(A=(0,E.select)("#i"+o));var I=L==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),O=(L==="sandbox"&&A.nodes()[0].contentDocument,I.select("[id='".concat(o,"']")));(function(Ft,Ot){var te=Ft.append("defs").append("marker").attr("id",Cl.CONTAINS+"_line_ending").attr("refX",0).attr("refY",Ot.line_height/2).attr("markerWidth",Ot.line_height).attr("markerHeight",Ot.line_height).attr("orient","auto").append("g");te.append("circle").attr("cx",Ot.line_height/2).attr("cy",Ot.line_height/2).attr("r",Ot.line_height/2).attr("fill","none"),te.append("line").attr("x1",0).attr("x2",Ot.line_height).attr("y1",Ot.line_height/2).attr("y2",Ot.line_height/2).attr("stroke-width",1),te.append("line").attr("y1",0).attr("y2",Ot.line_height).attr("x1",Ot.line_height/2).attr("x2",Ot.line_height/2).attr("stroke-width",1),Ft.append("defs").append("marker").attr("id",Cl.ARROW+"_line_ending").attr("refX",Ot.line_height).attr("refY",.5*Ot.line_height).attr("markerWidth",Ot.line_height).attr("markerHeight",Ot.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|
L`.concat(Ot.line_height,",").concat(Ot.line_height/2,`
|
|
M`).concat(Ot.line_height,",").concat(Ot.line_height/2,`
|
|
L0,`).concat(Ot.line_height)).attr("stroke-width",1)})(O,Tr);var F,Y,X,et=new(yi()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Tr.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),ht=w.db.getRequirements(),ot=w.db.getElements(),It=w.db.getRelationships();F=ht,Y=et,X=O,Object.keys(F).forEach(function(Ft){var Ot=F[Ft];Ft=qs(Ft),_.info("Added new requirement: ",Ft);var te=X.append("g").attr("id",Ft),Oe=Ru(te,"req-"+Ft),ke=L1(te,Ft+"_title",["<<".concat(Ot.type,">>"),"".concat(Ot.name)]);bo(te,Ft+"_body",["Id: ".concat(Ot.id),"Text: ".concat(Ot.text),"Risk: ".concat(Ot.risk),"Verification: ".concat(Ot.verifyMethod)],ke.y);var ve=Oe.node().getBBox();Y.setNode(Ft,{width:ve.width,height:ve.height,shape:"rect",id:Ft})}),function(Ft,Ot,te){Object.keys(Ft).forEach(function(Oe){var ke=Ft[Oe],ve=qs(Oe),Pt=te.append("g").attr("id",ve),le="element-"+ve,Vt=Ru(Pt,le),ae=L1(Pt,le+"_title",["<<Element>>","".concat(Oe)]);bo(Pt,le+"_body",["Type: ".concat(ke.type||"Not Specified"),"Doc Ref: ".concat(ke.docRef||"None")],ae.y);var ee=Vt.node().getBBox();Ot.setNode(ve,{width:ee.width,height:ee.height,shape:"rect",id:ve})})}(ot,et,O),function(Ft,Ot){Ft.forEach(function(te){var Oe=qs(te.src),ke=qs(te.dst);Ot.setEdge(Oe,ke,{relationship:te})})}(It,et),os().layout(et),function(Ft,Ot){Ot.nodes().forEach(function(te){te!==void 0&&Ot.node(te)!==void 0&&(Ft.select("#"+te),Ft.select("#"+te).attr("transform","translate("+(Ot.node(te).x-Ot.node(te).width/2)+","+(Ot.node(te).y-Ot.node(te).height/2)+" )"))})}(O,et),It.forEach(function(Ft){(function(Ot,te,Oe,ke,ve){var Pt=Oe.edge(qs(te.src),qs(te.dst)),le=(0,E.line)().x(function(ae){return ae.x}).y(function(ae){return ae.y}),Vt=Ot.insert("path","#"+ke).attr("class","er relationshipLine").attr("d",le(Pt.points)).attr("fill","none");te.type==ve.db.Relationships.CONTAINS?Vt.attr("marker-start","url("+mn.getUrl(Tr.arrowMarkerAbsolute)+"#"+te.type+"_line_ending)"):(Vt.attr("stroke-dasharray","10,7"),Vt.attr("marker-end","url("+mn.getUrl(Tr.arrowMarkerAbsolute)+"#"+gf.ARROW+"_line_ending)")),function(ae,ee,fe,Be){var Fe=ee.node().getTotalLength(),Ye=ee.node().getPointAtLength(.5*Fe),pn="rel"+$o;$o++;var Ue=ae.append("text").attr("class","req relationshipLabel").attr("id",pn).attr("x",Ye.x).attr("y",Ye.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(Be).node().getBBox();ae.insert("rect","#"+pn).attr("class","req reqLabelBox").attr("x",Ye.x-Ue.width/2).attr("y",Ye.y-Ue.height/2).attr("width",Ue.width).attr("height",Ue.height).attr("fill","white").attr("fill-opacity","85%")}(Ot,Vt,0,"<<".concat(te.type,">>"))})(O,Ft,et,o,w)});var Nt=Tr.rect_padding,Yt=O.node().getBBox(),jt=Yt.width+2*Nt,Mt=Yt.height+2*Nt;ta(O,Mt,jt,Tr.useMaxWidth),O.attr("viewBox","".concat(Yt.x-Nt," ").concat(Yt.y-Nt," ").concat(jt," ").concat(Mt)),Rr(w.db,O,o)}};var Fu,mf=h(6876),vo=h.n(mf),Ws=void 0,ao={},ka=[],Il=!1,Pu=function(l,o,y,w){var A=ao[l];A&&o===A.name&&y==null||(y!=null&&y.text!=null||(y={text:o,wrap:null,type:w}),w!=null&&y.text!=null||(y={text:o,wrap:null,type:w}),ao[l]={name:o,description:y.text,wrap:y.wrap===void 0&&Ho()||!!y.wrap,prevActor:Ws,links:{},properties:{},actorCnt:null,rectData:null,type:w||"participant"},Ws&&ao[Ws]&&(ao[Ws].nextActor=l),Ws=l)},_f=function(l){var o,y=0;for(o=0;o<ka.length;o++)ka[o].type===xo.ACTIVE_START&&ka[o].from.actor===l&&y++,ka[o].type===xo.ACTIVE_END&&ka[o].from.actor===l&&y--;return y},za=function(l,o){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===xo.ACTIVE_END){var A=_f(l.actor);if(A<1){var L=new Error("Trying to inactivate an inactive participant ("+l.actor+")");throw L.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},L}}return ka.push({from:l,to:o,message:y.text,wrap:y.wrap===void 0&&Ho()||!!y.wrap,type:w}),!0},bi=function(l){return ao[l]},Ho=function(){return Fu!==void 0?Fu:Rt().sequence.wrap},xo={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},ys=function(l,o,y){y.text,y.wrap===void 0&&Ho()||y.wrap;var w=[].concat(l,l);ka.push({from:w[0],to:w[1],message:y.text,wrap:y.wrap===void 0&&Ho()||!!y.wrap,type:xo.NOTE,placement:o})},Uu=function(l,o){var y=bi(l);try{var w=hr(o.text,Rt());w=(w=w.replace(/&/g,"&")).replace(/=/g,"="),Nl(y,JSON.parse(w))}catch(A){_.error("error while parsing actor link text",A)}};function Nl(l,o){if(l.links==null)l.links=o;else for(var y in o)l.links[y]=o[y]}var zu=function(l,o){var y=bi(l);try{var w=hr(o.text,Rt());Vi(y,JSON.parse(w))}catch(A){_.error("error while parsing actor properties text",A)}};function Vi(l,o){if(l.properties==null)l.properties=o;else for(var y in o)l.properties[y]=o[y]}var Nc=function(l,o){var y=bi(l),w=document.getElementById(o.text);try{var A=w.innerHTML,L=JSON.parse(A);L.properties&&Vi(y,L.properties),L.links&&Nl(y,L.links)}catch(I){_.error("error while parsing actor details text",I)}};const Yu={addActor:Pu,addMessage:function(l,o,y,w){ka.push({from:l,to:o,message:y.text,wrap:y.wrap===void 0&&Ho()||!!y.wrap,answer:w})},addSignal:za,addLinks:Uu,addDetails:Nc,addProperties:zu,autoWrap:Ho,setWrap:function(l){Fu=l},enableSequenceNumbers:function(){Il=!0},disableSequenceNumbers:function(){Il=!1},showSequenceNumbers:function(){return Il},getMessages:function(){return ka},getActors:function(){return ao},getActor:bi,getActorKeys:function(){return Object.keys(ao)},getActorProperty:function(l,o){if(l!==void 0&&l.properties!==void 0)return l.properties[o]},getAccTitle:wr,getDiagramTitle:Ri,setDiagramTitle:La,parseDirective:function(l,o,y){Xn.parseDirective(this,l,o,y)},getConfig:function(){return Rt().sequence},clear:function(){ao={},ka=[],Il=!1,Pr()},parseMessage:function(l){var o=l.trim(),y={text:o.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:o.match(/^[:]?wrap:/)!==null||o.match(/^[:]?nowrap:/)===null&&void 0};return _.debug("parseMessage:",y),y},LINETYPE:xo,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:ys,setAccTitle:Qt,apply:function l(o){if(o instanceof Array)o.forEach(function(y){l(y)});else switch(o.type){case"sequenceIndex":ka.push({from:void 0,to:void 0,message:{start:o.sequenceIndex,step:o.sequenceIndexStep,visible:o.sequenceVisible},wrap:!1,type:o.signalType});break;case"addParticipant":Pu(o.actor,o.actor,o.description,"participant");break;case"addActor":Pu(o.actor,o.actor,o.description,"actor");break;case"activeStart":case"activeEnd":za(o.actor,void 0,void 0,o.signalType);break;case"addNote":ys(o.actor,o.placement,o.text);break;case"addLinks":Uu(o.actor,o.text);break;case"addALink":(function(y,w){var A=bi(y);try{var L={},I=hr(w.text,Rt()),O=I.indexOf("@"),F=(I=(I=I.replace(/&/g,"&")).replace(/=/g,"=")).slice(0,O-1).trim(),Y=I.slice(O+1).trim();L[F]=Y,Nl(A,L)}catch(X){_.error("error while parsing actor link text",X)}})(o.actor,o.text);break;case"addProperties":zu(o.actor,o.text);break;case"addDetails":Nc(o.actor,o.text);break;case"addMessage":za(o.from,o.to,o.msg,o.signalType);break;case"loopStart":za(void 0,void 0,o.loopText,o.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":za(void 0,void 0,void 0,o.signalType);break;case"rectStart":za(void 0,void 0,o.color,o.signalType);break;case"optStart":za(void 0,void 0,o.optText,o.signalType);break;case"altStart":case"else":za(void 0,void 0,o.altText,o.signalType);break;case"setAccTitle":Qt(o.text);break;case"parStart":case"and":za(void 0,void 0,o.parText,o.signalType);break;case"criticalStart":za(void 0,void 0,o.criticalText,o.signalType);break;case"option":za(void 0,void 0,o.optionText,o.signalType);break;case"breakStart":za(void 0,void 0,o.breakText,o.signalType)}},setAccDescription:ri,getAccDescription:ci};var Gs=[],ms=function(l,o){var y=l.append("rect");return y.attr("x",o.x),y.attr("y",o.y),y.attr("fill",o.fill),y.attr("stroke",o.stroke),y.attr("width",o.width),y.attr("height",o.height),y.attr("rx",o.rx),y.attr("ry",o.ry),o.class!==void 0&&y.attr("class",o.class),y},Ll=function(l,o){var y;y=function(){var w=document.querySelectorAll(l);w.length!==0&&(w[0].addEventListener("mouseover",function(){Vs("actor"+o+"_popup")}),w[0].addEventListener("mouseout",function(){Lc("actor"+o+"_popup")}))},Gs.push(y)},bf=function(l,o,y,w){var A=l.append("image");A.attr("x",o),A.attr("y",y);var L=(0,ii.N)(w);A.attr("xlink:href",L)},vf=function(l,o,y,w){var A=l.append("use");A.attr("x",o),A.attr("y",y);var L=(0,ii.N)(w);A.attr("xlink:href","#"+L)},Vs=function(l){var o=document.getElementById(l);o!=null&&(o.style.display="block")},Lc=function(l){var o=document.getElementById(l);o!=null&&(o.style.display="none")},Mc=function(l,o){var y=0,w=0,A=o.text.split(mn.lineBreakRegex),L=[],I=0,O=function(){return o.y};if(o.valign!==void 0&&o.textMargin!==void 0&&o.textMargin>0)switch(o.valign){case"top":case"start":O=function(){return Math.round(o.y+o.textMargin)};break;case"middle":case"center":O=function(){return Math.round(o.y+(y+w+o.textMargin)/2)};break;case"bottom":case"end":O=function(){return Math.round(o.y+(y+w+2*o.textMargin)-o.textMargin)}}if(o.anchor!==void 0&&o.textMargin!==void 0&&o.width!==void 0)switch(o.anchor){case"left":case"start":o.x=Math.round(o.x+o.textMargin),o.anchor="start",o.dominantBaseline="middle",o.alignmentBaseline="middle";break;case"middle":case"center":o.x=Math.round(o.x+o.width/2),o.anchor="middle",o.dominantBaseline="middle",o.alignmentBaseline="middle";break;case"right":case"end":o.x=Math.round(o.x+o.width-o.textMargin),o.anchor="end",o.dominantBaseline="middle",o.alignmentBaseline="middle"}for(var F=0;F<A.length;F++){var Y=A[F];o.textMargin!==void 0&&o.textMargin===0&&o.fontSize!==void 0&&(I=F*o.fontSize);var X=l.append("text");if(X.attr("x",o.x),X.attr("y",O()),o.anchor!==void 0&&X.attr("text-anchor",o.anchor).attr("dominant-baseline",o.dominantBaseline).attr("alignment-baseline",o.alignmentBaseline),o.fontFamily!==void 0&&X.style("font-family",o.fontFamily),o.fontSize!==void 0&&X.style("font-size",o.fontSize),o.fontWeight!==void 0&&X.style("font-weight",o.fontWeight),o.fill!==void 0&&X.attr("fill",o.fill),o.class!==void 0&&X.attr("class",o.class),o.dy!==void 0?X.attr("dy",o.dy):I!==0&&X.attr("dy",I),o.tspan){var et=X.append("tspan");et.attr("x",o.x),o.fill!==void 0&&et.attr("fill",o.fill),et.text(Y)}else X.text(Y);o.valign!==void 0&&o.textMargin!==void 0&&o.textMargin>0&&(w+=(X._groups||X)[0][0].getBBox().height,y=w),L.push(X)}return L},xf=function(l,o){var y=l.append("polygon");return y.attr("points",function(w,A,L,I,O){return w+","+A+" "+(w+L)+","+A+" "+(w+L)+","+(A+I-7)+" "+(w+L-8.4)+","+(A+I)+" "+w+","+(A+I)}(o.x,o.y,o.width,o.height)),y.attr("class","labelBox"),o.y=o.y+o.height/2,Mc(l,o),y},Va=-1,_s=function(l,o){l.selectAll&&l.selectAll(".actor-line").attr("class","200").attr("y2",o-55)},ju=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}},M1=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},O1=function(){function l(A,L,I,O,F,Y,X){w(L.append("text").attr("x",I+F/2).attr("y",O+Y/2+5).style("text-anchor","middle").text(A),X)}function o(A,L,I,O,F,Y,X,et){for(var ht=et.actorFontSize,ot=et.actorFontFamily,It=et.actorFontWeight,Nt=ht&&ht.replace?ht.replace("px",""):ht,Yt=A.split(mn.lineBreakRegex),jt=0;jt<Yt.length;jt++){var Mt=jt*Nt-Nt*(Yt.length-1)/2,Ft=L.append("text").attr("x",I+F/2).attr("y",O).style("text-anchor","middle").style("font-size",ht).style("font-weight",It).style("font-family",ot);Ft.append("tspan").attr("x",I+F/2).attr("dy",Mt).text(Yt[jt]),Ft.attr("y",O+Y/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),w(Ft,X)}}function y(A,L,I,O,F,Y,X,et){var ht=L.append("switch"),ot=ht.append("foreignObject").attr("x",I).attr("y",O).attr("width",F).attr("height",Y).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");ot.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(A),o(A,ht,I,O,F,Y,X,et),w(ot,X)}function w(A,L){for(var I in L)L.hasOwnProperty(I)&&A.attr(I,L[I])}return function(A){return A.textPlacement==="fo"?y:A.textPlacement==="old"?l:o}}(),Zs=function(){function l(A,L,I,O,F,Y,X){w(L.append("text").attr("x",I).attr("y",O).style("text-anchor","start").text(A),X)}function o(A,L,I,O,F,Y,X,et){for(var ht=et.actorFontSize,ot=et.actorFontFamily,It=et.actorFontWeight,Nt=A.split(mn.lineBreakRegex),Yt=0;Yt<Nt.length;Yt++){var jt=Yt*ht-ht*(Nt.length-1)/2,Mt=L.append("text").attr("x",I).attr("y",O).style("text-anchor","start").style("font-size",ht).style("font-weight",It).style("font-family",ot);Mt.append("tspan").attr("x",I).attr("dy",jt).text(Nt[Yt]),Mt.attr("y",O+Y/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),w(Mt,X)}}function y(A,L,I,O,F,Y,X,et){var ht=L.append("switch"),ot=ht.append("foreignObject").attr("x",I).attr("y",O).attr("width",F).attr("height",Y).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");ot.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(A),o(A,ht,I,O,0,Y,X,et),w(ot,X)}function w(A,L){for(var I in L)L.hasOwnProperty(I)&&A.attr(I,L[I])}return function(A){return A.textPlacement==="fo"?y:A.textPlacement==="old"?l:o}}();const kf=ms,wf=function(l,o,y){switch(o.type){case"actor":return function(w,A,L){var I=A.x+A.width/2;A.y===0&&(Va++,w.append("line").attr("id","actor"+Va).attr("x1",I).attr("y1",80).attr("x2",I).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var O=w.append("g");O.attr("class","actor-man");var F={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};F.x=A.x,F.y=A.y,F.fill="#eaeaea",F.width=A.width,F.height=A.height,F.class="actor",F.rx=3,F.ry=3,O.append("line").attr("id","actor-man-torso"+Va).attr("x1",I).attr("y1",A.y+25).attr("x2",I).attr("y2",A.y+45),O.append("line").attr("id","actor-man-arms"+Va).attr("x1",I-18).attr("y1",A.y+33).attr("x2",I+18).attr("y2",A.y+33),O.append("line").attr("x1",I-18).attr("y1",A.y+60).attr("x2",I).attr("y2",A.y+45),O.append("line").attr("x1",I).attr("y1",A.y+45).attr("x2",I+16).attr("y2",A.y+60);var Y=O.append("circle");Y.attr("cx",A.x+A.width/2),Y.attr("cy",A.y+10),Y.attr("r",15),Y.attr("width",A.width),Y.attr("height",A.height);var X=O.node().getBBox();return A.height=X.height,O1(L)(A.description,O,F.x,F.y+35,F.width,F.height,{class:"actor"},L),A.height}(l,o,y);case"participant":return function(w,A,L){var I=A.x+A.width/2,O=w.append("g"),F=O;A.y===0&&(Va++,F.append("line").attr("id","actor"+Va).attr("x1",I).attr("y1",5).attr("x2",I).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),F=O.append("g"),A.actorCnt=Va,A.links!=null&&(F.attr("id","root-"+Va),Ll("#root-"+Va,Va)));var Y={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},X="actor";A.properties!=null&&A.properties.class?X=A.properties.class:Y.fill="#eaeaea",Y.x=A.x,Y.y=A.y,Y.width=A.width,Y.height=A.height,Y.class=X,Y.rx=3,Y.ry=3;var et=ms(F,Y);if(A.rectData=Y,A.properties!=null&&A.properties.icon){var ht=A.properties.icon.trim();ht.charAt(0)==="@"?vf(F,Y.x+Y.width-20,Y.y+10,ht.substr(1)):bf(F,Y.x+Y.width-20,Y.y+10,ht)}O1(L)(A.description,F,Y.x,Y.y,Y.width,Y.height,{class:"actor"},L);var ot=A.height;if(et.node){var It=et.node().getBBox();A.height=It.height,ot=It.height}return ot}(l,o,y)}},Ef=function(l,o,y,w,A){if(o.links===void 0||o.links===null||Object.keys(o.links).length===0)return{height:0,width:0};var L=o.links,I=o.actorCnt,O=o.rectData,F="none";A&&(F="block !important");var Y=l.append("g");Y.attr("id","actor"+I+"_popup"),Y.attr("class","actorPopupMenu"),Y.attr("display",F),Ll("#actor"+I+"_popup",I);var X="";O.class!==void 0&&(X=" "+O.class);var et=O.width>y?O.width:y,ht=Y.append("rect");if(ht.attr("class","actorPopupMenuPanel"+X),ht.attr("x",O.x),ht.attr("y",O.height),ht.attr("fill",O.fill),ht.attr("stroke",O.stroke),ht.attr("width",et),ht.attr("height",O.height),ht.attr("rx",O.rx),ht.attr("ry",O.ry),L!=null){var ot=20;for(var It in L){var Nt=Y.append("a"),Yt=(0,ii.N)(L[It]);Nt.attr("xlink:href",Yt),Nt.attr("target","_blank"),Zs(w)(It,Nt,O.x+10,O.height+ot,et,20,{class:"actor"},w),ot+=30}}return ht.attr("height",ot),{height:O.height+ot,width:et}},$u=function(l){return l.append("g")},Ml=function(l,o,y,w,A){var L={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},I=o.anchored;L.x=o.startx,L.y=o.starty,L.class="activation"+A%3,L.width=o.stopx-o.startx,L.height=y-o.starty,ms(I,L)},qo=function(l,o,y,w){var A=w.boxMargin,L=w.boxTextMargin,I=w.labelBoxHeight,O=w.labelBoxWidth,F=w.messageFontFamily,Y=w.messageFontSize,X=w.messageFontWeight,et=l.append("g"),ht=function(Nt,Yt,jt,Mt){return et.append("line").attr("x1",Nt).attr("y1",Yt).attr("x2",jt).attr("y2",Mt).attr("class","loopLine")};ht(o.startx,o.starty,o.stopx,o.starty),ht(o.stopx,o.starty,o.stopx,o.stopy),ht(o.startx,o.stopy,o.stopx,o.stopy),ht(o.startx,o.starty,o.startx,o.stopy),o.sections!==void 0&&o.sections.forEach(function(Nt){ht(o.startx,Nt.y,o.stopx,Nt.y).style("stroke-dasharray","3, 3")});var ot={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};ot.text=y,ot.x=o.startx,ot.y=o.starty,ot.fontFamily=F,ot.fontSize=Y,ot.fontWeight=X,ot.anchor="middle",ot.valign="middle",ot.tspan=!1,ot.width=O||50,ot.height=I||20,ot.textMargin=L,ot.class="labelText",xf(et,ot),(ot={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=o.title,ot.x=o.startx+O/2+(o.stopx-o.startx)/2,ot.y=o.starty+A+L,ot.anchor="middle",ot.valign="middle",ot.textMargin=L,ot.class="loopText",ot.fontFamily=F,ot.fontSize=Y,ot.fontWeight=X,ot.wrap=!0;var It=Mc(et,ot);return o.sectionTitles!==void 0&&o.sectionTitles.forEach(function(Nt,Yt){if(Nt.message){ot.text=Nt.message,ot.x=o.startx+(o.stopx-o.startx)/2,ot.y=o.sections[Yt].y+A+L,ot.class="loopText",ot.anchor="middle",ot.valign="middle",ot.tspan=!1,ot.fontFamily=F,ot.fontSize=Y,ot.fontWeight=X,ot.wrap=o.wrap,It=Mc(et,ot);var jt=Math.round(It.map(function(Mt){return(Mt._groups||Mt)[0][0].getBBox().height}).reduce(function(Mt,Ft){return Mt+Ft}));o.sections[Yt].height+=jt-(A+L)}}),o.height=Math.round(o.stopy-o.starty),et},Tf=function(l,o){ms(l,{x:o.startx,y:o.starty,width:o.stopx-o.startx,height:o.stopy-o.starty,fill:o.fill,class:"rect"}).lower()},Sf=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")},Af=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")},Cf=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)},If=function(l){var o=l.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);o.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"),o.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")},D1=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")},Hu=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")},B1=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")},qu=ju,ha=M1;ii.N;var de={},an={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,o){return l+o}))+(this.messages.length===0?0:this.messages.map(function(l){return l.height||0}).reduce(function(l,o){return l+o}))+(this.notes.length===0?0:this.notes.map(function(l){return l.height||0}).reduce(function(l,o){return l+o}))},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,F1(Rt())},updateVal:function(l,o,y,w){l[o]===void 0?l[o]=y:l[o]=w(y,l[o])},updateBounds:function(l,o,y,w){var A=this,L=0;function I(O){return function(F){L++;var Y=A.sequenceItems.length-L+1;A.updateVal(F,"starty",o-Y*de.boxMargin,Math.min),A.updateVal(F,"stopy",w+Y*de.boxMargin,Math.max),A.updateVal(an.data,"startx",l-Y*de.boxMargin,Math.min),A.updateVal(an.data,"stopx",y+Y*de.boxMargin,Math.max),O!=="activation"&&(A.updateVal(F,"startx",l-Y*de.boxMargin,Math.min),A.updateVal(F,"stopx",y+Y*de.boxMargin,Math.max),A.updateVal(an.data,"starty",o-Y*de.boxMargin,Math.min),A.updateVal(an.data,"stopy",w+Y*de.boxMargin,Math.max))}}this.sequenceItems.forEach(I()),this.activations.forEach(I("activation"))},insert:function(l,o,y,w){var A=Math.min(l,y),L=Math.max(l,y),I=Math.min(o,w),O=Math.max(o,w);this.updateVal(an.data,"startx",A,Math.min),this.updateVal(an.data,"starty",I,Math.min),this.updateVal(an.data,"stopx",L,Math.max),this.updateVal(an.data,"stopy",O,Math.max),this.updateBounds(A,I,L,O)},newActivation:function(l,o,y){var w=y[l.from.actor],A=Ol(l.from.actor).length||0,L=w.x+w.width/2+(A-1)*de.activationWidth/2;this.activations.push({startx:L,starty:this.verticalPos+2,stopx:L+de.activationWidth,stopy:void 0,actor:l.from.actor,anchored:$u(o)})},endActivation:function(l){var o=this.activations.map(function(y){return y.actor}).lastIndexOf(l.from.actor);return this.activations.splice(o,1)[0]},createLoop:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},o=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:o}},newLoop:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},o=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(l,o))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(l){var o=this.sequenceItems.pop();o.sections=o.sections||[],o.sectionTitles=o.sectionTitles||[],o.sections.push({y:an.getVerticalPos(),height:0}),o.sectionTitles.push(l),this.sequenceItems.push(o)},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}}},bs=function(l){return{fontFamily:l.messageFontFamily,fontSize:l.messageFontSize,fontWeight:l.messageFontWeight}},Xs=function(l){return{fontFamily:l.noteFontFamily,fontSize:l.noteFontSize,fontWeight:l.noteFontWeight}},Wu=function(l){return{fontFamily:l.actorFontFamily,fontSize:l.actorFontSize,fontWeight:l.actorFontWeight}},Gu=function(l,o,y,w,A,L){if(A.hideUnusedParticipants===!0){var I=new Set;L.forEach(function(ot){I.add(ot.from),I.add(ot.to)}),y=y.filter(function(ot){return I.has(ot)})}for(var O=0,F=0,Y=0,X=0;X<y.length;X++){var et=o[y[X]];et.width=et.width||de.width,et.height=Math.max(et.height||de.height,de.height),et.margin=et.margin||de.actorMargin,et.x=O+F,et.y=w;var ht=wf(l,et,de);Y=Math.max(Y,ht),an.insert(et.x,w,et.x+et.width,et.height),O+=et.width,F+=et.margin,an.models.addActor(et)}an.bumpVerticalPos(Y)},R1=function(l,o,y,w){for(var A=0,L=0,I=0;I<y.length;I++){var O=o[y[I]],F=Nf(O),Y=Ef(l,O,F,de,de.forceMenus);Y.height>A&&(A=Y.height),Y.width+O.x>L&&(L=Y.width+O.x)}return{maxHeight:A,maxWidth:L}},F1=function(l){Ee(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)},Ol=function(l){return an.activations.filter(function(o){return o.actor===l})},Wo=function(l,o){var y=o[l],w=Ol(l);return[w.reduce(function(A,L){return Math.min(A,L.startx)},y.x+y.width/2),w.reduce(function(A,L){return Math.max(A,L.stopx)},y.x+y.width/2)]};function Za(l,o,y,w,A){an.bumpVerticalPos(y);var L=w;if(o.id&&o.message&&l[o.id]){var I=l[o.id].width,O=bs(de);o.message=nr.wrapLabel("[".concat(o.message,"]"),I-2*de.wrapPadding,O),o.width=I,o.wrap=!0;var F=nr.calculateTextDimensions(o.message,O),Y=Math.max(F.height,de.labelBoxHeight);L=w+Y,_.debug("".concat(Y," - ").concat(o.message))}A(o),an.bumpVerticalPos(L)}var Nf=function(l){var o=0,y=Wu(de);for(var w in l.links){var A=nr.calculateTextDimensions(w,y).width+2*de.wrapPadding+2*de.boxMargin;o<A&&(o=A)}return o};const Oc={bounds:an,drawActors:Gu,drawActorsPopup:R1,setConf:F1,draw:function(l,o,y,w){de=Rt().sequence;var A,L=Rt().securityLevel;L==="sandbox"&&(A=(0,E.select)("#i"+o));var I=L==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body");L==="sandbox"&&A.nodes()[0].contentDocument,an.init(),_.debug(w.db);var O=L==="sandbox"?I.select('[id="'.concat(o,'"]')):(0,E.select)('[id="'.concat(o,'"]')),F=w.db.getActors(),Y=w.db.getActorKeys(),X=w.db.getMessages(),et=w.db.getDiagramTitle(),ht=function(ve,Pt,le){var Vt={};return Pt.forEach(function(ae){if(ve[ae.to]&&ve[ae.from]){var ee=ve[ae.to];if(ae.placement===le.db.PLACEMENT.LEFTOF&&!ee.prevActor||ae.placement===le.db.PLACEMENT.RIGHTOF&&!ee.nextActor)return;var fe=ae.placement!==void 0,Be=!fe,Fe=fe?Xs(de):bs(de),Ye=ae.wrap?nr.wrapLabel(ae.message,de.width-2*de.wrapPadding,Fe):ae.message,pn=nr.calculateTextDimensions(Ye,Fe).width+2*de.wrapPadding;Be&&ae.from===ee.nextActor?Vt[ae.to]=Math.max(Vt[ae.to]||0,pn):Be&&ae.from===ee.prevActor?Vt[ae.from]=Math.max(Vt[ae.from]||0,pn):Be&&ae.from===ae.to?(Vt[ae.from]=Math.max(Vt[ae.from]||0,pn/2),Vt[ae.to]=Math.max(Vt[ae.to]||0,pn/2)):ae.placement===le.db.PLACEMENT.RIGHTOF?Vt[ae.from]=Math.max(Vt[ae.from]||0,pn):ae.placement===le.db.PLACEMENT.LEFTOF?Vt[ee.prevActor]=Math.max(Vt[ee.prevActor]||0,pn):ae.placement===le.db.PLACEMENT.OVER&&(ee.prevActor&&(Vt[ee.prevActor]=Math.max(Vt[ee.prevActor]||0,pn/2)),ee.nextActor&&(Vt[ae.from]=Math.max(Vt[ae.from]||0,pn/2)))}}),_.debug("maxMessageWidthPerActor:",Vt),Vt}(F,X,w);de.height=function(ve,Pt){var le=0;for(var Vt in Object.keys(ve).forEach(function(Be){var Fe=ve[Be];Fe.wrap&&(Fe.description=nr.wrapLabel(Fe.description,de.width-2*de.wrapPadding,Wu(de)));var Ye=nr.calculateTextDimensions(Fe.description,Wu(de));Fe.width=Fe.wrap?de.width:Math.max(de.width,Ye.width+2*de.wrapPadding),Fe.height=Fe.wrap?Math.max(Ye.height,de.height):de.height,le=Math.max(le,Fe.height)}),Pt){var ae=ve[Vt];if(ae){var ee=ve[ae.nextActor];if(ee){var fe=Pt[Vt]+de.actorMargin-ae.width/2-ee.width/2;ae.margin=Math.max(fe,de.actorMargin)}}}return Math.max(le,de.height)}(F,ht),Hu(O),D1(O),B1(O),Gu(O,F,Y,0,de,X);var ot=function(ve,Pt,le,Vt){var ae,ee,fe,Be={},Fe=[];return ve.forEach(function(Ye){switch(Ye.id=nr.random({length:10}),Ye.type){case Vt.db.LINETYPE.LOOP_START:case Vt.db.LINETYPE.ALT_START:case Vt.db.LINETYPE.OPT_START:case Vt.db.LINETYPE.PAR_START:case Vt.db.LINETYPE.CRITICAL_START:case Vt.db.LINETYPE.BREAK_START:Fe.push({id:Ye.id,msg:Ye.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case Vt.db.LINETYPE.ALT_ELSE:case Vt.db.LINETYPE.PAR_AND:case Vt.db.LINETYPE.CRITICAL_OPTION:Ye.message&&(ae=Fe.pop(),Be[ae.id]=ae,Be[Ye.id]=ae,Fe.push(ae));break;case Vt.db.LINETYPE.LOOP_END:case Vt.db.LINETYPE.ALT_END:case Vt.db.LINETYPE.OPT_END:case Vt.db.LINETYPE.PAR_END:case Vt.db.LINETYPE.CRITICAL_END:case Vt.db.LINETYPE.BREAK_END:ae=Fe.pop(),Be[ae.id]=ae;break;case Vt.db.LINETYPE.ACTIVE_START:var pn=Pt[Ye.from?Ye.from.actor:Ye.to.actor],Ue=Ol(Ye.from?Ye.from.actor:Ye.to.actor).length,ln=pn.x+pn.width/2+(Ue-1)*de.activationWidth/2,gn={startx:ln,stopx:ln+de.activationWidth,actor:Ye.from.actor,enabled:!0};an.activations.push(gn);break;case Vt.db.LINETYPE.ACTIVE_END:var je=an.activations.map(function(Ge){return Ge.actor}).lastIndexOf(Ye.from.actor);delete an.activations.splice(je,1)[0]}Ye.placement!==void 0?(ee=function(Ge,bn,_r){var vr=bn[Ge.from].x,ui=bn[Ge.to].x,mr=Ge.wrap&&Ge.message,hi=nr.calculateTextDimensions(mr?nr.wrapLabel(Ge.message,de.width,Xs(de)):Ge.message,Xs(de)),pr={width:mr?de.width:Math.max(de.width,hi.width+2*de.noteMargin),height:0,startx:bn[Ge.from].x,stopx:0,starty:0,stopy:0,message:Ge.message};return Ge.placement===_r.db.PLACEMENT.RIGHTOF?(pr.width=mr?Math.max(de.width,hi.width):Math.max(bn[Ge.from].width/2+bn[Ge.to].width/2,hi.width+2*de.noteMargin),pr.startx=vr+(bn[Ge.from].width+de.actorMargin)/2):Ge.placement===_r.db.PLACEMENT.LEFTOF?(pr.width=Math.max(mr?de.width:bn[Ge.from].width/2+bn[Ge.to].width/2,hi.width+2*de.noteMargin),pr.startx=vr-pr.width+(bn[Ge.from].width-de.actorMargin)/2):Ge.to===Ge.from?(hi=nr.calculateTextDimensions(mr?nr.wrapLabel(Ge.message,Math.max(de.width,bn[Ge.from].width),Xs(de)):Ge.message,Xs(de)),pr.width=mr?Math.max(de.width,bn[Ge.from].width):Math.max(bn[Ge.from].width,de.width,hi.width+2*de.noteMargin),pr.startx=vr+(bn[Ge.from].width-pr.width)/2):(pr.width=Math.abs(vr+bn[Ge.from].width/2-(ui+bn[Ge.to].width/2))+de.actorMargin,pr.startx=vr<ui?vr+bn[Ge.from].width/2-de.actorMargin/2:ui+bn[Ge.to].width/2-de.actorMargin/2),mr&&(pr.message=nr.wrapLabel(Ge.message,pr.width-2*de.wrapPadding,Xs(de))),_.debug("NM:[".concat(pr.startx,",").concat(pr.stopx,",").concat(pr.starty,",").concat(pr.stopy,":").concat(pr.width,",").concat(pr.height,"=").concat(Ge.message,"]")),pr}(Ye,Pt,Vt),Ye.noteModel=ee,Fe.forEach(function(Ge){(ae=Ge).from=Math.min(ae.from,ee.startx),ae.to=Math.max(ae.to,ee.startx+ee.width),ae.width=Math.max(ae.width,Math.abs(ae.from-ae.to))-de.labelBoxWidth})):(fe=function(Ge,bn,_r){var vr=!1;if([_r.db.LINETYPE.SOLID_OPEN,_r.db.LINETYPE.DOTTED_OPEN,_r.db.LINETYPE.SOLID,_r.db.LINETYPE.DOTTED,_r.db.LINETYPE.SOLID_CROSS,_r.db.LINETYPE.DOTTED_CROSS,_r.db.LINETYPE.SOLID_POINT,_r.db.LINETYPE.DOTTED_POINT].includes(Ge.type)&&(vr=!0),!vr)return{};var ui=Wo(Ge.from,bn),mr=Wo(Ge.to,bn),hi=ui[0]<=mr[0]?1:0,pr=ui[0]<mr[0]?0:1,fa=ui.concat(mr),wa=Math.abs(mr[pr]-ui[hi]);Ge.wrap&&Ge.message&&(Ge.message=nr.wrapLabel(Ge.message,Math.max(wa+2*de.wrapPadding,de.width),bs(de)));var fi=nr.calculateTextDimensions(Ge.message,bs(de));return{width:Math.max(Ge.wrap?0:fi.width+2*de.wrapPadding,wa+2*de.wrapPadding,de.width),height:0,startx:ui[hi],stopx:mr[pr],starty:0,stopy:0,message:Ge.message,type:Ge.type,wrap:Ge.wrap,fromBounds:Math.min.apply(null,fa),toBounds:Math.max.apply(null,fa)}}(Ye,Pt,Vt),Ye.msgModel=fe,fe.startx&&fe.stopx&&Fe.length>0&&Fe.forEach(function(Ge){if(ae=Ge,fe.startx===fe.stopx){var bn=Pt[Ye.from],_r=Pt[Ye.to];ae.from=Math.min(bn.x-fe.width/2,bn.x-bn.width/2,ae.from),ae.to=Math.max(_r.x+fe.width/2,_r.x+bn.width/2,ae.to),ae.width=Math.max(ae.width,Math.abs(ae.to-ae.from))-de.labelBoxWidth}else ae.from=Math.min(fe.startx,ae.from),ae.to=Math.max(fe.stopx,ae.to),ae.width=Math.max(ae.width,fe.width)-de.labelBoxWidth}))}),an.activations=[],_.debug("Loop type widths:",Be),Be}(X,F,0,w);Sf(O),If(O),Af(O),Cf(O);var It=1,Nt=1,Yt=Array();X.forEach(function(ve){var Pt,le,Vt;switch(ve.type){case w.db.LINETYPE.NOTE:le=ve.noteModel,function(ee,fe){an.bumpVerticalPos(de.boxMargin),fe.height=de.boxMargin,fe.starty=an.getVerticalPos();var Be=ha();Be.x=fe.startx,Be.y=fe.starty,Be.width=fe.width||de.width,Be.class="note";var Fe=ee.append("g"),Ye=kf(Fe,Be),pn=qu();pn.x=fe.startx,pn.y=fe.starty,pn.width=Be.width,pn.dy="1em",pn.text=fe.message,pn.class="noteText",pn.fontFamily=de.noteFontFamily,pn.fontSize=de.noteFontSize,pn.fontWeight=de.noteFontWeight,pn.anchor=de.noteAlign,pn.textMargin=de.noteMargin,pn.valign="center";var Ue=Mc(Fe,pn),ln=Math.round(Ue.map(function(gn){return(gn._groups||gn)[0][0].getBBox().height}).reduce(function(gn,je){return gn+je}));Ye.attr("height",ln+2*de.noteMargin),fe.height+=ln+2*de.noteMargin,an.bumpVerticalPos(ln+2*de.noteMargin),fe.stopy=fe.starty+ln+2*de.noteMargin,fe.stopx=fe.startx+Be.width,an.insert(fe.startx,fe.starty,fe.stopx,fe.stopy),an.models.addNote(fe)}(O,le);break;case w.db.LINETYPE.ACTIVE_START:an.newActivation(ve,O,F);break;case w.db.LINETYPE.ACTIVE_END:(function(ee,fe){var Be=an.endActivation(ee);Be.starty+18>fe&&(Be.starty=fe-6,fe+=12),Ml(O,Be,fe,de,Ol(ee.from.actor).length),an.insert(Be.startx,fe-10,Be.stopx,fe)})(ve,an.getVerticalPos());break;case w.db.LINETYPE.LOOP_START:Za(ot,ve,de.boxMargin,de.boxMargin+de.boxTextMargin,function(ee){return an.newLoop(ee)});break;case w.db.LINETYPE.LOOP_END:Pt=an.endLoop(),qo(O,Pt,"loop",de),an.bumpVerticalPos(Pt.stopy-an.getVerticalPos()),an.models.addLoop(Pt);break;case w.db.LINETYPE.RECT_START:Za(ot,ve,de.boxMargin,de.boxMargin,function(ee){return an.newLoop(void 0,ee.message)});break;case w.db.LINETYPE.RECT_END:Pt=an.endLoop(),Tf(O,Pt),an.models.addLoop(Pt),an.bumpVerticalPos(Pt.stopy-an.getVerticalPos());break;case w.db.LINETYPE.OPT_START:Za(ot,ve,de.boxMargin,de.boxMargin+de.boxTextMargin,function(ee){return an.newLoop(ee)});break;case w.db.LINETYPE.OPT_END:Pt=an.endLoop(),qo(O,Pt,"opt",de),an.bumpVerticalPos(Pt.stopy-an.getVerticalPos()),an.models.addLoop(Pt);break;case w.db.LINETYPE.ALT_START:Za(ot,ve,de.boxMargin,de.boxMargin+de.boxTextMargin,function(ee){return an.newLoop(ee)});break;case w.db.LINETYPE.ALT_ELSE:Za(ot,ve,de.boxMargin+de.boxTextMargin,de.boxMargin,function(ee){return an.addSectionToLoop(ee)});break;case w.db.LINETYPE.ALT_END:Pt=an.endLoop(),qo(O,Pt,"alt",de),an.bumpVerticalPos(Pt.stopy-an.getVerticalPos()),an.models.addLoop(Pt);break;case w.db.LINETYPE.PAR_START:Za(ot,ve,de.boxMargin,de.boxMargin+de.boxTextMargin,function(ee){return an.newLoop(ee)});break;case w.db.LINETYPE.PAR_AND:Za(ot,ve,de.boxMargin+de.boxTextMargin,de.boxMargin,function(ee){return an.addSectionToLoop(ee)});break;case w.db.LINETYPE.PAR_END:Pt=an.endLoop(),qo(O,Pt,"par",de),an.bumpVerticalPos(Pt.stopy-an.getVerticalPos()),an.models.addLoop(Pt);break;case w.db.LINETYPE.AUTONUMBER:It=ve.message.start||It,Nt=ve.message.step||Nt,ve.message.visible?w.db.enableSequenceNumbers():w.db.disableSequenceNumbers();break;case w.db.LINETYPE.CRITICAL_START:Za(ot,ve,de.boxMargin,de.boxMargin+de.boxTextMargin,function(ee){return an.newLoop(ee)});break;case w.db.LINETYPE.CRITICAL_OPTION:Za(ot,ve,de.boxMargin+de.boxTextMargin,de.boxMargin,function(ee){return an.addSectionToLoop(ee)});break;case w.db.LINETYPE.CRITICAL_END:Pt=an.endLoop(),qo(O,Pt,"critical",de),an.bumpVerticalPos(Pt.stopy-an.getVerticalPos()),an.models.addLoop(Pt);break;case w.db.LINETYPE.BREAK_START:Za(ot,ve,de.boxMargin,de.boxMargin+de.boxTextMargin,function(ee){return an.newLoop(ee)});break;case w.db.LINETYPE.BREAK_END:Pt=an.endLoop(),qo(O,Pt,"break",de),an.bumpVerticalPos(Pt.stopy-an.getVerticalPos()),an.models.addLoop(Pt);break;default:try{(Vt=ve.msgModel).starty=an.getVerticalPos(),Vt.sequenceIndex=It,Vt.sequenceVisible=w.db.showSequenceNumbers();var ae=function(ee,fe){an.bumpVerticalPos(10);var Be,Fe=fe.startx,Ye=fe.stopx,pn=fe.message,Ue=mn.splitBreaks(pn).length,ln=nr.calculateTextDimensions(pn,bs(de)),gn=ln.height/Ue;fe.height+=gn,an.bumpVerticalPos(gn);var je=ln.height-10,Ge=ln.width;if(Fe===Ye){Be=an.getVerticalPos()+je,de.rightAngles||(je+=de.boxMargin,Be=an.getVerticalPos()+je),je+=30;var bn=Math.max(Ge/2,de.width/2);an.insert(Fe-bn,an.getVerticalPos()-10+je,Ye+bn,an.getVerticalPos()+30+je)}else je+=de.boxMargin,Be=an.getVerticalPos()+je,an.insert(Fe,Be-10,Ye,Be);return an.bumpVerticalPos(je),fe.height+=je,fe.stopy=fe.starty+fe.height,an.insert(fe.fromBounds,fe.starty,fe.toBounds,fe.stopy),Be}(0,Vt);Yt.push({messageModel:Vt,lineStarty:ae}),an.models.addMessage(Vt)}catch(ee){_.error("error while drawing message",ee)}}[w.db.LINETYPE.SOLID_OPEN,w.db.LINETYPE.DOTTED_OPEN,w.db.LINETYPE.SOLID,w.db.LINETYPE.DOTTED,w.db.LINETYPE.SOLID_CROSS,w.db.LINETYPE.DOTTED_CROSS,w.db.LINETYPE.SOLID_POINT,w.db.LINETYPE.DOTTED_POINT].includes(ve.type)&&(It+=Nt)}),Yt.forEach(function(ve){return function(Pt,le,Vt,ae){var ee=le.startx,fe=le.stopx,Be=le.starty,Fe=le.message,Ye=le.type,pn=le.sequenceIndex,Ue=le.sequenceVisible,ln=nr.calculateTextDimensions(Fe,bs(de)),gn=qu();gn.x=ee,gn.y=Be+10,gn.width=fe-ee,gn.class="messageText",gn.dy="1em",gn.text=Fe,gn.fontFamily=de.messageFontFamily,gn.fontSize=de.messageFontSize,gn.fontWeight=de.messageFontWeight,gn.anchor=de.messageAlign,gn.valign="center",gn.textMargin=de.wrapPadding,gn.tspan=!1,Mc(Pt,gn);var je,Ge=ln.width;ee===fe?je=de.rightAngles?Pt.append("path").attr("d","M ".concat(ee,",").concat(Vt," H ").concat(ee+Math.max(de.width/2,Ge/2)," V ").concat(Vt+25," H ").concat(ee)):Pt.append("path").attr("d","M "+ee+","+Vt+" C "+(ee+60)+","+(Vt-10)+" "+(ee+60)+","+(Vt+30)+" "+ee+","+(Vt+20)):((je=Pt.append("line")).attr("x1",ee),je.attr("y1",Vt),je.attr("x2",fe),je.attr("y2",Vt)),Ye===ae.db.LINETYPE.DOTTED||Ye===ae.db.LINETYPE.DOTTED_CROSS||Ye===ae.db.LINETYPE.DOTTED_POINT||Ye===ae.db.LINETYPE.DOTTED_OPEN?(je.style("stroke-dasharray","3, 3"),je.attr("class","messageLine1")):je.attr("class","messageLine0");var bn="";de.arrowMarkerAbsolute&&(bn=(bn=(bn=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),je.attr("stroke-width",2),je.attr("stroke","none"),je.style("fill","none"),Ye!==ae.db.LINETYPE.SOLID&&Ye!==ae.db.LINETYPE.DOTTED||je.attr("marker-end","url("+bn+"#arrowhead)"),Ye!==ae.db.LINETYPE.SOLID_POINT&&Ye!==ae.db.LINETYPE.DOTTED_POINT||je.attr("marker-end","url("+bn+"#filled-head)"),Ye!==ae.db.LINETYPE.SOLID_CROSS&&Ye!==ae.db.LINETYPE.DOTTED_CROSS||je.attr("marker-end","url("+bn+"#crosshead)"),(Ue||de.showSequenceNumbers)&&(je.attr("marker-start","url("+bn+"#sequencenumber)"),Pt.append("text").attr("x",ee).attr("y",Vt+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(pn))}(O,ve.messageModel,ve.lineStarty,w)}),de.mirrorActors&&(an.bumpVerticalPos(2*de.boxMargin),Gu(O,F,Y,an.getVerticalPos(),de,X),an.bumpVerticalPos(de.boxMargin),_s(O,an.getVerticalPos()));var jt=R1(O,F,Y),Mt=an.getBounds().bounds;_.debug("For line height fix Querying: #"+o+" .actor-line"),(0,E.selectAll)("#"+o+" .actor-line").attr("y2",Mt.stopy);var Ft=Mt.stopy-Mt.starty;Ft<jt.maxHeight&&(Ft=jt.maxHeight);var Ot=Ft+2*de.diagramMarginY;de.mirrorActors&&(Ot=Ot-de.boxMargin+de.bottomMarginAdj);var te=Mt.stopx-Mt.startx;te<jt.maxWidth&&(te=jt.maxWidth);var Oe=te+2*de.diagramMarginX;et&&O.append("text").text(et).attr("x",(Mt.stopx-Mt.startx)/2-2*de.diagramMarginX).attr("y",-25),ta(O,Ot,Oe,de.useMaxWidth);var ke=et?40:0;O.attr("viewBox",Mt.startx-de.diagramMarginX+" -"+(de.diagramMarginY+ke)+" "+Oe+" "+(Ot+ke)),Rr(w.db,O,o),_.debug("models:",an.models)}};var Lf=h(3584),P1=h.n(Lf);function Vu(l){return Vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Vu(l)}var Dl=function(l){return JSON.parse(JSON.stringify(l))},Bl=[],Mf=function l(o,y,w){if(y.stmt==="relation")l(o,y.state1,!0),l(o,y.state2,!1);else if(y.stmt==="state"&&y.id==="[*]"&&(y.id=w?o.id+"_start":o.id+"_end",y.start=w),y.doc){var A=[],L=0,I=[];for(L=0;L<y.doc.length;L++)if(y.doc[L].type==="divider"){var O=Dl(y.doc[L]);O.doc=Dl(I),A.push(O),I=[]}else I.push(y.doc[L]);if(A.length>0&&I.length>0){var F={stmt:"state",id:Io(),type:"divider",doc:Dl(I)};A.push(Dl(F)),y.doc=A}y.doc.forEach(function(Y){return l(y,Y,!0)})}},Rl={root:{relations:[],states:{},documents:{}}},Zi=Rl.root,Zu=0,Dc=function(l,o,y,w,A){Zi.states[l]===void 0?Zi.states[l]={id:l,descriptions:[],type:o,doc:y,note:A}:(Zi.states[l].doc||(Zi.states[l].doc=y),Zi.states[l].type||(Zi.states[l].type=o)),w&&(_.info("Adding state ",l,w),typeof w=="string"&&Xu(l,w.trim()),Vu(w)==="object"&&w.forEach(function(L){return Xu(l,L.trim())})),A&&(Zi.states[l].note=A,Zi.states[l].note.text=mn.sanitizeText(Zi.states[l].note.text,Rt()))},U1=function(l){Zi=(Rl={root:{relations:[],states:{},documents:{}}}).root,Zi=Rl.root,Zu=0,Ku=[],l||Pr()},z1=function(l,o,y){var w=l,A=o,L="default",I="default";l==="[*]"&&(w="start"+ ++Zu,L="start"),o==="[*]"&&(A="end"+Zu,I="end"),Dc(w,L),Dc(A,I),Zi.relations.push({id1:w,id2:A,title:mn.sanitizeText(y,Rt())})},Xu=function(l,o){var y=Zi.states[l],w=o;w[0]===":"&&(w=w.substr(1).trim()),y.descriptions.push(mn.sanitizeText(w,Rt()))},Y1=0,Ku=[],j1="TB";const ko={parseDirective:function(l,o,y){Xn.parseDirective(this,l,o,y)},getConfig:function(){return Rt().state},addState:Dc,clear:U1,getState:function(l){return Zi.states[l]},getStates:function(){return Zi.states},getRelations:function(){return Zi.relations},getClasses:function(){return Ku},getDirection:function(){return j1},addRelation:z1,getDividerId:function(){return"divider-id-"+ ++Y1},setDirection:function(l){j1=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 = ",Rl)},getRootDoc:function(){return Bl},setRootDoc:function(l){_.info("Setting root doc",l),Bl=l},getRootDocV2:function(){return Mf({id:"root"},{id:"root",doc:Bl},!0),{id:"root",doc:Bl}},extract:function(l){var o;o=l.doc?l.doc:l,_.info(o),U1(!0),_.info("Extract",o),o.forEach(function(y){y.stmt==="state"&&Dc(y.id,y.type,y.doc,y.description,y.note),y.stmt==="relation"&&z1(y.state1.id,y.state2.id,y.description)})},trimColon:function(l){return l&&l[0]===":"?l.substr(1).trim():l.trim()},getAccTitle:wr,setAccTitle:Qt,getAccDescription:ci,setAccDescription:ri};function Ju(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,w=new Array(o);y<o;y++)w[y]=l[y];return w}var vi,Of=function(l,o,y){var w,A=Rt().state.padding,L=2*Rt().state.padding,I=l.node().getBBox(),O=I.width,F=I.x,Y=l.append("text").attr("x",0).attr("y",Rt().state.titleShift).attr("font-size",Rt().state.fontSize).attr("class","state-title").text(o.id),X=Y.node().getBBox().width+L,et=Math.max(X,O);et===O&&(et+=L);var ht=l.node().getBBox();o.doc,w=F-A,X>O&&(w=(O-et)/2+A),Math.abs(F-ht.x)<A&&X>O&&(w=F-(X-O)/2);var ot=1-Rt().state.textHeight;return l.insert("rect",":first-child").attr("x",w).attr("y",ot).attr("class",y?"alt-composit":"composit").attr("width",et).attr("height",ht.height+Rt().state.textHeight+Rt().state.titleShift+1).attr("rx","0"),Y.attr("x",w+A),X<=O&&Y.attr("x",F+(et-L)/2-X/2+A),l.insert("rect",":first-child").attr("x",w).attr("y",Rt().state.titleShift-Rt().state.textHeight-Rt().state.padding).attr("width",et).attr("height",3*Rt().state.textHeight).attr("rx",Rt().state.radius),l.insert("rect",":first-child").attr("x",w).attr("y",Rt().state.titleShift-Rt().state.textHeight-Rt().state.padding).attr("width",et).attr("height",ht.height+3+2*Rt().state.textHeight).attr("rx",Rt().state.radius),l},Df=function(l,o){o.attr("class","state-note");var y=o.append("rect").attr("x",0).attr("y",Rt().state.padding),w=function(I,O,F,Y){var X=0,et=Y.append("text");et.style("text-anchor","start"),et.attr("class","noteText");var ht,ot=I.replace(/\r\n/g,"<br/>"),It=(ot=ot.replace(/\n/g,"<br/>")).split(mn.lineBreakRegex),Nt=1.25*Rt().state.noteMargin,Yt=function(Ft,Ot){var te=typeof Symbol<"u"&&Ft[Symbol.iterator]||Ft["@@iterator"];if(!te){if(Array.isArray(Ft)||(te=function(Vt,ae){if(Vt){if(typeof Vt=="string")return Ju(Vt,ae);var ee=Object.prototype.toString.call(Vt).slice(8,-1);return ee==="Object"&&Vt.constructor&&(ee=Vt.constructor.name),ee==="Map"||ee==="Set"?Array.from(Vt):ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee)?Ju(Vt,ae):void 0}}(Ft))||Ot&&Ft&&typeof Ft.length=="number"){te&&(Ft=te);var Oe=0,ke=function(){};return{s:ke,n:function(){return Oe>=Ft.length?{done:!0}:{done:!1,value:Ft[Oe++]}},e:function(Vt){throw Vt},f:ke}}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 ve,Pt=!0,le=!1;return{s:function(){te=te.call(Ft)},n:function(){var Vt=te.next();return Pt=Vt.done,Vt},e:function(Vt){le=!0,ve=Vt},f:function(){try{Pt||te.return==null||te.return()}finally{if(le)throw ve}}}}(It);try{for(Yt.s();!(ht=Yt.n()).done;){var jt=ht.value.trim();if(jt.length>0){var Mt=et.append("tspan");Mt.text(jt),Nt===0&&(Nt+=Mt.node().getBBox().height),X+=Nt,Mt.attr("x",0+Rt().state.noteMargin),Mt.attr("y",0+X+1.25*Rt().state.noteMargin)}}}catch(Ft){Yt.e(Ft)}finally{Yt.f()}return{textWidth:et.node().getBBox().width,textHeight:X}}(l,0,0,o.append("g")),A=w.textWidth,L=w.textHeight;return y.attr("height",L+2*Rt().state.noteMargin),y.attr("width",A+2*Rt().state.noteMargin),y},Qu=function(l,o){var y=o.id,w={id:y,label:o.id,width:0,height:0},A=l.append("g").attr("id",y).attr("class","stateGroup");o.type==="start"&&function(I){I.append("circle").attr("class","start-state").attr("r",Rt().state.sizeUnit).attr("cx",Rt().state.padding+Rt().state.sizeUnit).attr("cy",Rt().state.padding+Rt().state.sizeUnit)}(A),o.type==="end"&&function(I){I.append("circle").attr("class","end-state-outer").attr("r",Rt().state.sizeUnit+Rt().state.miniPadding).attr("cx",Rt().state.padding+Rt().state.sizeUnit+Rt().state.miniPadding).attr("cy",Rt().state.padding+Rt().state.sizeUnit+Rt().state.miniPadding),I.append("circle").attr("class","end-state-inner").attr("r",Rt().state.sizeUnit).attr("cx",Rt().state.padding+Rt().state.sizeUnit+2).attr("cy",Rt().state.padding+Rt().state.sizeUnit+2)}(A),o.type!=="fork"&&o.type!=="join"||function(I,O){var F=Rt().state.forkWidth,Y=Rt().state.forkHeight;if(O.parentId){var X=F;F=Y,Y=X}I.append("rect").style("stroke","black").style("fill","black").attr("width",F).attr("height",Y).attr("x",Rt().state.padding).attr("y",Rt().state.padding)}(A,o),o.type==="note"&&Df(o.note.text,A),o.type==="divider"&&function(I){I.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Rt().state.textHeight).attr("class","divider").attr("x2",2*Rt().state.textHeight).attr("y1",0).attr("y2",0)}(A),o.type==="default"&&o.descriptions.length===0&&function(I,O){var F=I.append("text").attr("x",2*Rt().state.padding).attr("y",Rt().state.textHeight+2*Rt().state.padding).attr("font-size",Rt().state.fontSize).attr("class","state-title").text(O.id).node().getBBox();I.insert("rect",":first-child").attr("x",Rt().state.padding).attr("y",Rt().state.padding).attr("width",F.width+2*Rt().state.padding).attr("height",F.height+2*Rt().state.padding).attr("rx",Rt().state.radius)}(A,o),o.type==="default"&&o.descriptions.length>0&&function(I,O){var F=I.append("text").attr("x",2*Rt().state.padding).attr("y",Rt().state.textHeight+1.3*Rt().state.padding).attr("font-size",Rt().state.fontSize).attr("class","state-title").text(O.descriptions[0]).node().getBBox(),Y=F.height,X=I.append("text").attr("x",Rt().state.padding).attr("y",Y+.4*Rt().state.padding+Rt().state.dividerMargin+Rt().state.textHeight).attr("class","state-description"),et=!0,ht=!0;O.descriptions.forEach(function(Yt){et||(function(jt,Mt,Ft){var Ot=jt.append("tspan").attr("x",2*Rt().state.padding).text(Mt);Ft||Ot.attr("dy",Rt().state.textHeight)}(X,Yt,ht),ht=!1),et=!1});var ot=I.append("line").attr("x1",Rt().state.padding).attr("y1",Rt().state.padding+Y+Rt().state.dividerMargin/2).attr("y2",Rt().state.padding+Y+Rt().state.dividerMargin/2).attr("class","descr-divider"),It=X.node().getBBox(),Nt=Math.max(It.width,F.width);ot.attr("x2",Nt+3*Rt().state.padding),I.insert("rect",":first-child").attr("x",Rt().state.padding).attr("y",Rt().state.padding).attr("width",Nt+2*Rt().state.padding).attr("height",It.height+Y+2*Rt().state.padding).attr("rx",Rt().state.radius)}(A,o);var L=A.node().getBBox();return w.width=L.width+2*Rt().state.padding,w.height=L.height+2*Rt().state.padding,w},$1=0,th={},H1=function l(o,y,w,A,L,I,O){var F,Y=new(yi()).Graph({compound:!0,multigraph:!0}),X=!0;for(F=0;F<o.length;F++)if(o[F].stmt==="relation"){X=!1;break}w?Y.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:X?1:vi.edgeLengthFactor,nodeSep:X?1:50,isMultiGraph:!0}):Y.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:X?1:vi.edgeLengthFactor,nodeSep:X?1:50,ranker:"tight-tree",isMultiGraph:!0}),Y.setDefaultEdgeLabel(function(){return{}}),O.db.extract(o);for(var et=O.db.getStates(),ht=O.db.getRelations(),ot=Object.keys(et),It=0;It<ot.length;It++){var Nt=et[ot[It]];w&&(Nt.parentId=w);var Yt=void 0;if(Nt.doc){var jt=y.append("g").attr("id",Nt.id).attr("class","stateGroup");Yt=l(Nt.doc,jt,Nt.id,!A,L,I,O);var Mt=(jt=Of(jt,Nt,A)).node().getBBox();Yt.width=Mt.width,Yt.height=Mt.height+vi.padding/2,th[Nt.id]={y:vi.compositTitleSize}}else Yt=Qu(y,Nt);if(Nt.note){var Ft={descriptions:[],id:Nt.id+"-note",note:Nt.note,type:"note"},Ot=Qu(y,Ft);Nt.note.position==="left of"?(Y.setNode(Yt.id+"-note",Ot),Y.setNode(Yt.id,Yt)):(Y.setNode(Yt.id,Yt),Y.setNode(Yt.id+"-note",Ot)),Y.setParent(Yt.id,Yt.id+"-group"),Y.setParent(Yt.id+"-note",Yt.id+"-group")}else Y.setNode(Yt.id,Yt)}_.debug("Count=",Y.nodeCount(),Y);var te=0;ht.forEach(function(Pt){var le;te++,_.debug("Setting edge",Pt),Y.setEdge(Pt.id1,Pt.id2,{relation:Pt,width:(le=Pt.title,le?le.length*vi.fontSizeFactor:1),height:vi.labelHeight*mn.getRows(Pt.title).length,labelpos:"c"},"id"+te)}),os().layout(Y),_.debug("Graph after layout",Y.nodes());var Oe=y.node();Y.nodes().forEach(function(Pt){Pt!==void 0&&Y.node(Pt)!==void 0?(_.warn("Node "+Pt+": "+JSON.stringify(Y.node(Pt))),L.select("#"+Oe.id+" #"+Pt).attr("transform","translate("+(Y.node(Pt).x-Y.node(Pt).width/2)+","+(Y.node(Pt).y+(th[Pt]?th[Pt].y:0)-Y.node(Pt).height/2)+" )"),L.select("#"+Oe.id+" #"+Pt).attr("data-x-shift",Y.node(Pt).x-Y.node(Pt).width/2),I.querySelectorAll("#"+Oe.id+" #"+Pt+" .divider").forEach(function(le){var Vt=le.parentElement,ae=0,ee=0;Vt&&(Vt.parentElement&&(ae=Vt.parentElement.getBBox().width),ee=parseInt(Vt.getAttribute("data-x-shift"),10),Number.isNaN(ee)&&(ee=0)),le.setAttribute("x1",0-ee+8),le.setAttribute("x2",ae-ee-8)})):_.debug("No Node "+Pt+": "+JSON.stringify(Y.node(Pt)))});var ke=Oe.getBBox();Y.edges().forEach(function(Pt){Pt!==void 0&&Y.edge(Pt)!==void 0&&(_.debug("Edge "+Pt.v+" -> "+Pt.w+": "+JSON.stringify(Y.edge(Pt))),function(le,Vt,ae){Vt.points=Vt.points.filter(function(fi){return!Number.isNaN(fi.y)});var ee=Vt.points,fe=(0,E.line)().x(function(fi){return fi.x}).y(function(fi){return fi.y}).curve(E.curveBasis),Be=le.append("path").attr("d",fe(ee)).attr("id","edge"+$1).attr("class","transition"),Fe="";if(Rt().state.arrowMarkerAbsolute&&(Fe=(Fe=(Fe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Be.attr("marker-end","url("+Fe+"#"+function(fi){switch(fi){case ko.relationType.AGGREGATION:return"aggregation";case ko.relationType.EXTENSION:return"extension";case ko.relationType.COMPOSITION:return"composition";case ko.relationType.DEPENDENCY:return"dependency"}}(ko.relationType.DEPENDENCY)+"End)"),ae.title!==void 0){for(var Ye=le.append("g").attr("class","stateLabel"),pn=nr.calcLabelPosition(Vt.points),Ue=pn.x,ln=pn.y,gn=mn.getRows(ae.title),je=0,Ge=[],bn=0,_r=0,vr=0;vr<=gn.length;vr++){var ui=Ye.append("text").attr("text-anchor","middle").text(gn[vr]).attr("x",Ue).attr("y",ln+je),mr=ui.node().getBBox();if(bn=Math.max(bn,mr.width),_r=Math.min(_r,mr.x),_.info(mr.x,Ue,ln+je),je===0){var hi=ui.node().getBBox();je=hi.height,_.info("Title height",je,ln)}Ge.push(ui)}var pr=je*gn.length;if(gn.length>1){var fa=(gn.length-1)*je*.5;Ge.forEach(function(fi,Fr){return fi.attr("y",ln+Fr*je-fa)}),pr=je*gn.length}var wa=Ye.node().getBBox();Ye.insert("rect",":first-child").attr("class","box").attr("x",Ue-bn/2-Rt().state.padding/2).attr("y",ln-pr/2-Rt().state.padding/2-3.5).attr("width",bn+Rt().state.padding).attr("height",pr+Rt().state.padding),_.info(wa)}$1++}(y,Y.edge(Pt),Y.edge(Pt).relation))}),ke=Oe.getBBox();var ve={id:w||"root",label:w||"root",width:0,height:0};return ve.width=ke.width+2*vi.padding,ve.height=ke.height+2*vi.padding,_.debug("Doc rendered",ve,Y),ve};const Bc={setConf:function(){},draw:function(l,o,y,w){vi=Rt().state;var A,L=Rt().securityLevel;L==="sandbox"&&(A=(0,E.select)("#i"+o));var I=L==="sandbox"?(0,E.select)(A.nodes()[0].contentDocument.body):(0,E.select)("body"),O=L==="sandbox"?A.nodes()[0].contentDocument:document;_.debug("Rendering diagram "+l);var F=I.select("[id='".concat(o,"']"));F.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(yi()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var Y=w.db.getRootDoc();H1(Y,F,void 0,!1,I,O,w);var X=vi.padding,et=F.node().getBBox(),ht=et.width+2*X,ot=et.height+2*X;ta(F,ot,1.75*ht,vi.useMaxWidth),F.attr("viewBox","".concat(et.x-vi.padding," ").concat(et.y-vi.padding," ")+ht+" "+ot),Rr(w.db,F,o)}};var Bf={},fr={},Fl=function(l,o,y,w){if(y.id!=="root"){var A="rect";y.start===!0&&(A="start"),y.start===!1&&(A="end"),y.type!=="default"&&(A=y.type),fr[y.id]||(fr[y.id]={id:y.id,shape:A,description:mn.sanitizeText(y.id,Rt()),classes:"statediagram-state"}),y.description&&(Array.isArray(fr[y.id].description)?(fr[y.id].shape="rectWithTitle",fr[y.id].description.push(y.description)):fr[y.id].description.length>0?(fr[y.id].shape="rectWithTitle",fr[y.id].description===y.id?fr[y.id].description=[y.description]:fr[y.id].description=[fr[y.id].description,y.description]):(fr[y.id].shape="rect",fr[y.id].description=y.description),fr[y.id].description=mn.sanitizeTextOrArray(fr[y.id].description,Rt())),fr[y.id].description.length===1&&fr[y.id].shape==="rectWithTitle"&&(fr[y.id].shape="rect"),!fr[y.id].type&&y.doc&&(_.info("Setting cluster for ",y.id,eh(y)),fr[y.id].type="group",fr[y.id].dir=eh(y),fr[y.id].shape=y.type==="divider"?"divider":"roundedWithTitle",fr[y.id].classes=fr[y.id].classes+" "+(w?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var L={labelStyle:"",shape:fr[y.id].shape,labelText:fr[y.id].description,classes:fr[y.id].classes,style:"",id:y.id,dir:fr[y.id].dir,domId:"state-"+y.id+"-"+oo,type:fr[y.id].type,padding:15};if(y.note){var I={labelStyle:"",shape:"note",labelText:y.note.text,classes:"statediagram-note",style:"",id:y.id+"----note-"+oo,domId:"state-"+y.id+"----note-"+oo,type:fr[y.id].type,padding:15},O={labelStyle:"",shape:"noteGroup",labelText:y.note.text,classes:fr[y.id].classes,style:"",id:y.id+"----parent",domId:"state-"+y.id+"----parent-"+oo,type:"group",padding:0};oo++,l.setNode(y.id+"----parent",O),l.setNode(I.id,I),l.setNode(y.id,L),l.setParent(y.id,y.id+"----parent"),l.setParent(I.id,y.id+"----parent");var F=y.id,Y=I.id;y.note.position==="left of"&&(F=I.id,Y=y.id),l.setEdge(F,Y,{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,L)}o&&o.id!=="root"&&(_.trace("Setting node ",y.id," to be child of its parent ",o.id),l.setParent(y.id,o.id)),y.doc&&(_.trace("Adding nodes children "),Rf(l,y,y.doc,!w))},oo=0,Rf=function(l,o,y,w){_.trace("items",y),y.forEach(function(A){if(A.stmt==="state"||A.stmt==="default")Fl(l,o,A,w);else if(A.stmt==="relation"){Fl(l,o,A.state1,w),Fl(l,o,A.state2,w);var L={id:"edge"+oo,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:mn.sanitizeText(A.description,Rt()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},I=A.state1.id,O=A.state2.id;l.setEdge(I,O,L,oo),oo++}})},eh=function(l,o){var y=o||"TB";if(l.doc)for(var w=0;w<l.doc.length;w++){var A=l.doc[w];A.stmt==="dir"&&(y=A.value)}return y};const nh={setConf:function(l){for(var o=Object.keys(l),y=0;y<o.length;y++)Bf[o[y]]=l[o[y]]},getClasses:function(l,o){return _.trace("Extracting classes"),o.sb.clear(),o.parser.parse(l),o.sb.getClasses()},draw:function(l,o,y,w){_.info("Drawing state diagram (v2)",o),fr={},w.db.getDirection();var A=Rt().state,L=A.nodeSpacing||50,I=A.rankSpacing||50,O=Rt().securityLevel;_.info(w.db.getRootDocV2()),w.db.extract(w.db.getRootDocV2()),_.info(w.db.getRootDocV2());var F,Y=new(yi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:eh(w.db.getRootDocV2()),nodesep:L,ranksep:I,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Fl(Y,void 0,w.db.getRootDocV2(),!0),O==="sandbox"&&(F=(0,E.select)("#i"+o));var X=O==="sandbox"?(0,E.select)(F.nodes()[0].contentDocument.body):(0,E.select)("body"),et=(O==="sandbox"&&F.nodes()[0].contentDocument,X.select('[id="'.concat(o,'"]'))),ht=X.select("#"+o+" g");ul(ht,Y,["barb"],"statediagram",o);var ot=et.node().getBBox(),It=ot.width+16,Nt=ot.height+16;et.attr("class","statediagram");var Yt=et.node().getBBox();ta(et,Nt,1.75*It,A.useMaxWidth);var jt="".concat(Yt.x-8," ").concat(Yt.y-8," ").concat(It," ").concat(Nt);_.debug("viewBox ".concat(jt)),et.attr("viewBox",jt);for(var Mt=document.querySelectorAll('[id="'+o+'"] .edgeLabel .label'),Ft=0;Ft<Mt.length;Ft++){var Ot=Mt[Ft],te=Ot.getBBox(),Oe=document.createElementNS("http://www.w3.org/2000/svg","rect");Oe.setAttribute("rx",0),Oe.setAttribute("ry",0),Oe.setAttribute("width",te.width),Oe.setAttribute("height",te.height),Ot.insertBefore(Oe,Ot.firstChild)}Rr(w.db,et,o)}};function vs(l){return function(o){if(Array.isArray(o))return rh(o)}(l)||function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}(l)||function(o,y){if(o){if(typeof o=="string")return rh(o,y);var w=Object.prototype.toString.call(o).slice(8,-1);return w==="Object"&&o.constructor&&(w=o.constructor.name),w==="Map"||w==="Set"?Array.from(o):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?rh(o,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 rh(l,o){(o==null||o>l.length)&&(o=l.length);for(var y=0,w=new Array(o);y<o;y++)w[y]=l[y];return w}var xs="",ih=[],Ks=[],Js=[],q1=function(){for(var l=!0,o=0;o<Js.length;o++)Js[o].processed,l=l&&Js[o].processed;return l};const W1={parseDirective:function(l,o,y){Xn.parseDirective(this,l,o,y)},getConfig:function(){return Rt().journey},clear:function(){ih.length=0,Ks.length=0,xs="",Js.length=0,Pr()},setDiagramTitle:La,getDiagramTitle:Ri,setAccTitle:Qt,getAccTitle:wr,setAccDescription:ri,getAccDescription:ci,addSection:function(l){xs=l,ih.push(l)},getSections:function(){return ih},getTasks:function(){for(var l=q1(),o=0;!l&&o<100;)l=q1(),o++;return Ks.push.apply(Ks,Js),Ks},addTask:function(l,o){var y=o.substr(1).split(":"),w=0,A=[];y.length===1?(w=Number(y[0]),A=[]):(w=Number(y[0]),A=y[1].split(","));var L=A.map(function(O){return O.trim()}),I={section:xs,type:xs,people:L,task:l,score:w};Js.push(I)},addTaskOrg:function(l){var o={section:xs,type:xs,description:l,task:l,classes:[]};Ks.push(o)},getActors:function(){return l=[],Ks.forEach(function(o){o.people&&l.push.apply(l,vs(o.people))}),vs(new Set(l)).sort();var l}};var G1=function(l,o){var y=l.append("rect");return y.attr("x",o.x),y.attr("y",o.y),y.attr("fill",o.fill),y.attr("stroke",o.stroke),y.attr("width",o.width),y.attr("height",o.height),y.attr("rx",o.rx),y.attr("ry",o.ry),o.class!==void 0&&y.attr("class",o.class),y},Rc=function(l,o){var y=l.append("circle");return y.attr("cx",o.cx),y.attr("cy",o.cy),y.attr("class","actor-"+o.pos),y.attr("fill",o.fill),y.attr("stroke",o.stroke),y.attr("r",o.r),y.class!==void 0&&y.attr("class",y.class),o.title!==void 0&&y.append("title").text(o.title),y},ah=-1,V1=function(){function l(A,L,I,O,F,Y,X,et){w(L.append("text").attr("x",I+F/2).attr("y",O+Y/2+5).style("font-color",et).style("text-anchor","middle").text(A),X)}function o(A,L,I,O,F,Y,X,et,ht){for(var ot=et.taskFontSize,It=et.taskFontFamily,Nt=A.split(/<br\s*\/?>/gi),Yt=0;Yt<Nt.length;Yt++){var jt=Yt*ot-ot*(Nt.length-1)/2,Mt=L.append("text").attr("x",I+F/2).attr("y",O).attr("fill",ht).style("text-anchor","middle").style("font-size",ot).style("font-family",It);Mt.append("tspan").attr("x",I+F/2).attr("dy",jt).text(Nt[Yt]),Mt.attr("y",O+Y/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),w(Mt,X)}}function y(A,L,I,O,F,Y,X,et){var ht=L.append("switch"),ot=ht.append("foreignObject").attr("x",I).attr("y",O).attr("width",F).attr("height",Y).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");ot.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(A),o(A,ht,I,O,F,Y,X,et),w(ot,X)}function w(A,L){for(var I in L)I in L&&A.attr(I,L[I])}return function(A){return A.textPlacement==="fo"?y:A.textPlacement==="old"?l:o}}();const Ff=Rc,Pf=function(l,o,y){var w=l.append("g"),A={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};A.x=o.x,A.y=o.y,A.fill=o.fill,A.width=y.width,A.height=y.height,A.class="journey-section section-type-"+o.num,A.rx=3,A.ry=3,G1(w,A),V1(y)(o.text,w,A.x,A.y,A.width,A.height,{class:"journey-section section-type-"+o.num},y,o.colour)},Uf=function(l,o){var y=o.text.replace(/<br\s*\/?>/gi," "),w=l.append("text");w.attr("x",o.x),w.attr("y",o.y),w.attr("class","legend"),w.style("text-anchor",o.anchor),o.class!==void 0&&w.attr("class",o.class);var A=w.append("tspan");return A.attr("x",o.x+2*o.textMargin),A.text(y),w},zf=function(l,o,y){var w,A,L,I=o.x+y.width/2,O=l.append("g");ah++,O.append("line").attr("id","task"+ah).attr("x1",I).attr("y1",o.y).attr("x2",I).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),w=O,A={cx:I,cy:300+30*(5-o.score),score:o.score},w.append("circle").attr("cx",A.cx).attr("cy",A.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(L=w.append("g")).append("circle").attr("cx",A.cx-5).attr("cy",A.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),L.append("circle").attr("cx",A.cx+5).attr("cy",A.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),A.score>3?function(X){var et=(0,E.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);X.append("path").attr("class","mouth").attr("d",et).attr("transform","translate("+A.cx+","+(A.cy+2)+")")}(L):A.score<3?function(X){var et=(0,E.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);X.append("path").attr("class","mouth").attr("d",et).attr("transform","translate("+A.cx+","+(A.cy+7)+")")}(L):function(X){X.append("line").attr("class","mouth").attr("stroke",2).attr("x1",A.cx-5).attr("y1",A.cy+7).attr("x2",A.cx+5).attr("y2",A.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(L);var F={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};F.x=o.x,F.y=o.y,F.fill=o.fill,F.width=y.width,F.height=y.height,F.class="task task-type-"+o.num,F.rx=3,F.ry=3,G1(O,F);var Y=o.x+14;o.people.forEach(function(X){var et=o.actors[X].color,ht={cx:Y,cy:o.y,r:7,fill:et,stroke:"#000",title:X,pos:o.actors[X].position};Rc(O,ht),Y+=10}),V1(y)(o.task,O,F.x,F.y,F.width,F.height,{class:"task"},y,o.colour)};var wo={},Fc=Rt().journey,ks=Rt().journey.leftMargin,Ya={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,o,y,w){l[o]===void 0?l[o]=y:l[o]=w(y,l[o])},updateBounds:function(l,o,y,w){var A=Rt().journey,L=this,I=0;this.sequenceItems.forEach(function(O){I++;var F=L.sequenceItems.length-I+1;L.updateVal(O,"starty",o-F*A.boxMargin,Math.min),L.updateVal(O,"stopy",w+F*A.boxMargin,Math.max),L.updateVal(Ya.data,"startx",l-F*A.boxMargin,Math.min),L.updateVal(Ya.data,"stopx",y+F*A.boxMargin,Math.max),L.updateVal(O,"startx",l-F*A.boxMargin,Math.min),L.updateVal(O,"stopx",y+F*A.boxMargin,Math.max),L.updateVal(Ya.data,"starty",o-F*A.boxMargin,Math.min),L.updateVal(Ya.data,"stopy",w+F*A.boxMargin,Math.max)})},insert:function(l,o,y,w){var A=Math.min(l,y),L=Math.max(l,y),I=Math.min(o,w),O=Math.max(o,w);this.updateVal(Ya.data,"startx",A,Math.min),this.updateVal(Ya.data,"starty",I,Math.min),this.updateVal(Ya.data,"stopx",L,Math.max),this.updateVal(Ya.data,"stopy",O,Math.max),this.updateBounds(A,I,L,O)},bumpVerticalPos:function(l){this.verticalPos=this.verticalPos+l,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},oh=Fc.sectionFills,Z1=Fc.sectionColours;const Pl={setConf:function(l){Object.keys(l).forEach(function(o){Fc[o]=l[o]})},draw:function(l,o,y,w){var A=Rt().journey;w.db.clear(),w.parser.parse(l+`
|
|
`);var L,I=Rt().securityLevel;I==="sandbox"&&(L=(0,E.select)("#i"+o));var O=I==="sandbox"?(0,E.select)(L.nodes()[0].contentDocument.body):(0,E.select)("body");Ya.init();var F=O.select("#"+o);F.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 Y=w.db.getTasks(),X=w.db.getDiagramTitle(),et=w.db.getActors();for(var ht in wo)delete wo[ht];var ot=0;et.forEach(function(Mt){wo[Mt]={color:A.actorColours[ot%A.actorColours.length],position:ot},ot++}),function(Mt){var Ft=Rt().journey,Ot=60;Object.keys(wo).forEach(function(te){var Oe=wo[te].color,ke={cx:20,cy:Ot,r:7,fill:Oe,stroke:"#000",pos:wo[te].position};Ff(Mt,ke);var ve={x:40,y:Ot+7,fill:"#666",text:te,textMargin:5|Ft.boxTextMargin};Uf(Mt,ve),Ot+=20})}(F),Ya.insert(0,0,ks,50*Object.keys(wo).length),function(Mt,Ft,Ot){for(var te=Rt().journey,Oe="",ke=Ot+(2*te.height+te.diagramMarginY),ve=0,Pt="#CCC",le="black",Vt=0,ae=0;ae<Ft.length;ae++){var ee=Ft[ae];if(Oe!==ee.section){Pt=oh[ve%oh.length],Vt=ve%oh.length,le=Z1[ve%Z1.length];var fe={x:ae*te.taskMargin+ae*te.width+ks,y:50,text:ee.section,fill:Pt,num:Vt,colour:le};Pf(Mt,fe,te),Oe=ee.section,ve++}var Be=ee.people.reduce(function(Fe,Ye){return wo[Ye]&&(Fe[Ye]=wo[Ye]),Fe},{});ee.x=ae*te.taskMargin+ae*te.width+ks,ee.y=ke,ee.width=te.diagramMarginX,ee.height=te.diagramMarginY,ee.colour=le,ee.fill=Pt,ee.num=Vt,ee.actors=Be,zf(Mt,ee,te),Ya.insert(ee.x,ee.y,ee.x+ee.width+te.taskMargin,450)}}(F,Y,0);var It=Ya.getBounds();X&&F.append("text").text(X).attr("x",ks).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var Nt=It.stopy-It.starty+2*A.diagramMarginY,Yt=ks+It.stopx+2*A.diagramMarginX;ta(F,Nt,Yt,A.useMaxWidth),F.append("line").attr("x1",ks).attr("y1",4*A.height).attr("x2",Yt-ks-4).attr("y2",4*A.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var jt=X?70:0;F.attr("viewBox","".concat(It.startx," -25 ").concat(Yt," ").concat(Nt+jt)),F.attr("preserveAspectRatio","xMinYMin meet"),F.attr("height",Nt+jt+25),Rr(w.db,F,o)}};var ra=h(9763),Yf=h.n(ra),X1={c4:{db:Xr,renderer:tn,parser:ar(),init:function(l){tn.setConf(l.c4)}},class:{db:Mo,renderer:Q0,parser:du(),init:function(l){l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,Mo.clear()}},classDiagram:{db:Mo,renderer:tf,parser:du(),init:function(l){l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,Mo.clear()}},er:{db:ef,renderer:nf,parser:af()},flowchart:{db:ro,renderer:vl,parser:Eu(),init:function(l){vl.setConf(l.flowchart),l.flowchart.arrowMarkerAbsolute=l.arrowMarkerAbsolute,ro.clear(),ro.setGen("gen-1")}},"flowchart-v2":{db:ro,renderer:ku,parser:Eu(),init:function(l){ku.setConf(l.flowchart),l.flowchart.arrowMarkerAbsolute=l.arrowMarkerAbsolute,ro.clear(),ro.setGen("gen-2")}},gantt:{db:w1,renderer:Tl,parser:T1(),init:function(l){Tl.setConf(l.gantt)}},info:{db:S1,renderer:pf,parser:Ga()},pie:{db:A1,renderer:io,parser:Bu()},requirement:{db:N1,renderer:yf,parser:I1()},sequence:{db:Yu,renderer:Oc,parser:vo(),init:function(l){l.sequence.arrowMarkerAbsolute=l.arrowMarkerAbsolute,l.sequenceDiagram&&(Oc.setConf(Object.assign(l.sequence,l.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")),Yu.setWrap(l.wrap),Oc.setConf(l.sequence)}},state:{db:ko,renderer:Bc,parser:P1(),init:function(l){l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,ko.clear()}},stateDiagram:{db:ko,renderer:nh,parser:P1(),init:function(l){l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,ko.clear()}},journey:{db:W1,renderer:Pl,parser:Yf(),init:function(l){Pl.setConf(l.journey),W1.clear()}}},Ul=function(){return X1};function zl(l,o){var y=Object.keys(l);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(l);o&&(w=w.filter(function(A){return Object.getOwnPropertyDescriptor(l,A).enumerable})),y.push.apply(y,w)}return y}function sh(l){for(var o=1;o<arguments.length;o++){var y=arguments[o]!=null?arguments[o]:{};o%2?zl(Object(y),!0).forEach(function(w){ia(l,w,y[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(y)):zl(Object(y)).forEach(function(w){Object.defineProperty(l,w,Object.getOwnPropertyDescriptor(y,w))})}return l}function ia(l,o,y){return o in l?Object.defineProperty(l,o,{value:y,enumerable:!0,configurable:!0,writable:!0}):l[o]=y,l}var oi=Rt().gitGraph.mainBranchName,Go=Rt().gitGraph.mainBranchOrder,Mi={},aa=null,Yl={};Yl[oi]={name:oi,order:Go};var Ei={};Ei[oi]=aa;var Oi=oi,K1="LR",Vo=0;function ch(){return gc({length:7})}var J1={},Q1=function(l){if(l=mn.sanitizeText(l,Rt()),Ei[l]===void 0){var o=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+l+'")');throw o.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+'"']},o}var y=Ei[Oi=l];aa=Mi[y]};function t0(l,o,y){var w=l.indexOf(o);w===-1?l.push(y):l.splice(w,1,y)}function e0(l){var o=l.reduce(function(X,et){return X.seq>et.seq?X:et},l[0]),y="";l.forEach(function(X){y+=X===o?" *":" |"});var w,A,L,I=[y,o.id,o.seq];for(var O in Ei)Ei[O]===o.id&&I.push(O);if(_.debug(I.join(" ")),o.parents&&o.parents.length==2){var F=Mi[o.parents[0]];t0(l,o,F),l.push(Mi[o.parents[1]])}else{if(o.parents.length==0)return;var Y=Mi[o.parents];t0(l,o,Y)}w=l,A=function(X){return X.id},L=Object.create(null),e0(l=w.reduce(function(X,et){var ht=A(et);return L[ht]||(L[ht]=!0,X.push(et)),X},[]))}var n0=function(){var l=Object.keys(Mi).map(function(o){return Mi[o]});return l.forEach(function(o){_.debug(o.id)}),l.sort(function(o,y){return o.seq-y.seq}),l},Pc={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};const jf={parseDirective:function(l,o,y){Xn.parseDirective(this,l,o,y)},getConfig:function(){return Rt().gitGraph},setDirection:function(l){K1=l},setOptions:function(l){_.debug("options str",l),l=(l=l&&l.trim())||"{}";try{J1=JSON.parse(l)}catch(o){_.error("error while parsing gitGraph options",o.message)}},getOptions:function(){return J1},commit:function(l,o,y,w){_.debug("Entering commit:",l,o,y,w),o=mn.sanitizeText(o,Rt()),l=mn.sanitizeText(l,Rt()),w=mn.sanitizeText(w,Rt());var A={id:o||Vo+"-"+ch(),message:l,seq:Vo++,type:y||Pc.NORMAL,tag:w||"",parents:aa==null?[]:[aa.id],branch:Oi};aa=A,Mi[A.id]=A,Ei[Oi]=A.id,_.debug("in pushCommit "+A.id)},branch:function(l,o){if(l=mn.sanitizeText(l,Rt()),Ei[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}Ei[l]=aa!=null?aa.id:null,Yl[l]={name:l,order:o?parseInt(o,10):null},Q1(l),_.debug("in createBranch")},merge:function(l,o){l=mn.sanitizeText(l,Rt());var y=Mi[Ei[Oi]],w=Mi[Ei[l]];if(Oi===l){var A=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw A.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"]},A}if(y===void 0||!y){var L=new Error('Incorrect usage of "merge". Current branch ('+Oi+")has no commits");throw L.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},L}if(Ei[l]===void 0){var I=new Error('Incorrect usage of "merge". Branch to be merged ('+l+") does not exist");throw I.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]},I}if(w===void 0||!w){var O=new Error('Incorrect usage of "merge". Branch to be merged ('+l+") has no commits");throw O.hash={text:"merge "+l,token:"merge "+l,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},O}if(y===w){var F=new Error('Incorrect usage of "merge". Both branches have same head');throw F.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"]},F}var Y={id:Vo+"-"+ch(),message:"merged branch "+l+" into "+Oi,seq:Vo++,parents:[aa==null?null:aa.id,Ei[l]],branch:Oi,type:Pc.MERGE,tag:o||""};aa=Y,Mi[Y.id]=Y,Ei[Oi]=Y.id,_.debug(Ei),_.debug("in mergeBranch")},cherryPick:function(l,o){if(l=mn.sanitizeText(l,Rt()),o=mn.sanitizeText(o,Rt()),!l||Mi[l]===void 0){var y=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw y.hash={text:"cherryPick "+l+" "+o,token:"cherryPick "+l+" "+o,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}var w=Mi[l],A=w.branch;if(w.type===Pc.MERGE){var L=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw L.hash={text:"cherryPick "+l+" "+o,token:"cherryPick "+l+" "+o,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},L}if(!o||Mi[o]===void 0){if(A===Oi){var I=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw I.hash={text:"cherryPick "+l+" "+o,token:"cherryPick "+l+" "+o,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},I}var O=Mi[Ei[Oi]];if(O===void 0||!O){var F=new Error('Incorrect usage of "cherry-pick". Current branch ('+Oi+")has no commits");throw F.hash={text:"cherryPick "+l+" "+o,token:"cherryPick "+l+" "+o,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},F}var Y={id:Vo+"-"+ch(),message:"cherry-picked "+w+" into "+Oi,seq:Vo++,parents:[aa==null?null:aa.id,w.id],branch:Oi,type:Pc.CHERRY_PICK,tag:"cherry-pick:"+w.id};aa=Y,Mi[Y.id]=Y,Ei[Oi]=Y.id,_.debug(Ei),_.debug("in cheeryPick")}},checkout:Q1,prettyPrint:function(){_.debug(Mi),e0([n0()[0]])},clear:function(){Mi={},aa=null;var l=Rt().gitGraph.mainBranchName,o=Rt().gitGraph.mainBranchOrder;(Ei={})[l]=null,(Yl={})[l]={name:l,order:o},Oi=l,Vo=0,Pr()},getBranchesAsObjArray:function(){return Object.values(Yl).map(function(l,o){return l.order!==null?l:sh(sh({},l),{},{order:parseFloat("0.".concat(o),10)})}).sort(function(l,o){return l.order-o.order}).map(function(l){return{name:l.name}})},getBranches:function(){return Ei},getCommits:function(){return Mi},getCommitsArray:n0,getCurrentBranch:function(){return Oi},getDirection:function(){return K1},getHead:function(){return aa},setAccTitle:Qt,getAccTitle:wr,getAccDescription:ci,setAccDescription:ri,commitType:Pc};var Zo={},Ti={},ws={},Uc=[],Eo=0,zc=function(l,o,y){var w=Rt().gitGraph,A=l.append("g").attr("class","commit-bullets"),L=l.append("g").attr("class","commit-labels"),I=0;Object.keys(o).sort(function(O,F){return o[O].seq-o[F].seq}).forEach(function(O,F){var Y=o[O],X=Ti[Y.branch].pos,et=I+10;if(y){var ht;switch(Y.type){case 0:default:ht="commit-normal";break;case 1:ht="commit-reverse";break;case 2:ht="commit-highlight";break;case 3:ht="commit-merge";break;case 4:ht="commit-cherry-pick"}if(Y.type===2){var ot=A.append("rect");ot.attr("x",et-10),ot.attr("y",X-10),ot.attr("height",20),ot.attr("width",20),ot.attr("class","commit ".concat(Y.id," commit-highlight").concat(Ti[Y.branch].index%8," ").concat(ht,"-outer")),A.append("rect").attr("x",et-6).attr("y",X-6).attr("height",12).attr("width",12).attr("class","commit ".concat(Y.id," commit").concat(Ti[Y.branch].index%8," ").concat(ht,"-inner"))}else if(Y.type===4)A.append("circle").attr("cx",et).attr("cy",X).attr("r",10).attr("class","commit ".concat(Y.id," ").concat(ht)),A.append("circle").attr("cx",et-3).attr("cy",X+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(Y.id," ").concat(ht)),A.append("circle").attr("cx",et+3).attr("cy",X+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(Y.id," ").concat(ht)),A.append("line").attr("x1",et+3).attr("y1",X+1).attr("x2",et).attr("y2",X-5).attr("stroke","#fff").attr("class","commit ".concat(Y.id," ").concat(ht)),A.append("line").attr("x1",et-3).attr("y1",X+1).attr("x2",et).attr("y2",X-5).attr("stroke","#fff").attr("class","commit ".concat(Y.id," ").concat(ht));else{var It=A.append("circle");if(It.attr("cx",et),It.attr("cy",X),It.attr("r",Y.type===3?9:10),It.attr("class","commit ".concat(Y.id," commit").concat(Ti[Y.branch].index%8)),Y.type===3){var Nt=A.append("circle");Nt.attr("cx",et),Nt.attr("cy",X),Nt.attr("r",6),Nt.attr("class","commit ".concat(ht," ").concat(Y.id," commit").concat(Ti[Y.branch].index%8))}Y.type===1&&A.append("path").attr("d","M ".concat(et-5,",").concat(X-5,"L").concat(et+5,",").concat(X+5,"M").concat(et-5,",").concat(X+5,"L").concat(et+5,",").concat(X-5)).attr("class","commit ".concat(ht," ").concat(Y.id," commit").concat(Ti[Y.branch].index%8))}}if(ws[Y.id]={x:I+10,y:X},y){if(Y.type!==4&&Y.type!==3&&w.showCommitLabel){var Yt=L.append("g"),jt=Yt.insert("rect").attr("class","commit-label-bkg"),Mt=Yt.append("text").attr("x",I).attr("y",X+25).attr("class","commit-label").text(Y.id),Ft=Mt.node().getBBox();if(jt.attr("x",I+10-Ft.width/2-2).attr("y",X+13.5).attr("width",Ft.width+4).attr("height",Ft.height+4),Mt.attr("x",I+10-Ft.width/2),w.rotateCommitLabel){var Ot=-7.5-(Ft.width+10)/25*9.5,te=10+Ft.width/25*8.5;Yt.attr("transform","translate("+Ot+", "+te+") rotate(-45, "+I+", "+X+")")}}if(Y.tag){var Oe=L.insert("polygon"),ke=L.append("circle"),ve=L.append("text").attr("y",X-16).attr("class","tag-label").text(Y.tag),Pt=ve.node().getBBox();ve.attr("x",I+10-Pt.width/2);var le=Pt.height/2,Vt=X-19.2;Oe.attr("class","tag-label-bkg").attr("points",`
|
|
`.concat(I-Pt.width/2-2,",").concat(Vt+2,`
|
|
`).concat(I-Pt.width/2-2,",").concat(Vt-2,`
|
|
`).concat(I+10-Pt.width/2-4,",").concat(Vt-le-2,`
|
|
`).concat(I+10+Pt.width/2+4,",").concat(Vt-le-2,`
|
|
`).concat(I+10+Pt.width/2+4,",").concat(Vt+le+2,`
|
|
`).concat(I+10-Pt.width/2-4,",").concat(Vt+le+2)),ke.attr("cx",I-Pt.width/2+2).attr("cy",Vt).attr("r",1.5).attr("class","tag-hole")}}(I+=50)>Eo&&(Eo=I)})},lh=function l(o,y,w){var A=w||0,L=o+Math.abs(o-y)/2;if(A>5)return L;for(var I=!0,O=0;O<Uc.length;O++)Math.abs(Uc[O]-L)<10&&(I=!1);return I?(Uc.push(L),L):l(o,y-Math.abs(o-y)/5,A)};const r0={draw:function(l,o,y,w){Ti={},ws={},Zo={},Eo=0,Uc=[];var A=Rt(),L=Rt().gitGraph;_.debug("in gitgraph renderer",l+`
|
|
`,"id:",o,y),Zo=w.db.getCommits();var I=w.db.getBranchesAsObjArray(),O=0;I.forEach(function(It,Nt){Ti[It.name]={pos:O,index:Nt},O+=50+(L.rotateCommitLabel?40:0)});var F=(0,E.select)('[id="'.concat(o,'"]'));Rr(w.db,F,o),zc(F,Zo,!1),L.showBranches&&function(It,Nt){var Yt=Rt().gitGraph,jt=It.append("g");Nt.forEach(function(Mt,Ft){var Ot=Ft%8,te=Ti[Mt.name].pos,Oe=jt.append("line");Oe.attr("x1",0),Oe.attr("y1",te),Oe.attr("x2",Eo),Oe.attr("y2",te),Oe.attr("class","branch branch"+Ot),Uc.push(te);var ke=function(Vt){var ae=document.createElementNS("http://www.w3.org/2000/svg","text"),ee=[];ee=typeof Vt=="string"?Vt.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(Vt)?Vt:[];for(var fe=0;fe<ee.length;fe++){var Be=document.createElementNS("http://www.w3.org/2000/svg","tspan");Be.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Be.setAttribute("dy","1em"),Be.setAttribute("x","0"),Be.setAttribute("class","row"),Be.textContent=ee[fe].trim(),ae.appendChild(Be)}return ae}(Mt.name),ve=jt.insert("rect"),Pt=jt.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+Ot);Pt.node().appendChild(ke);var le=ke.getBBox();ve.attr("class","branchLabelBkg label"+Ot).attr("rx",4).attr("ry",4).attr("x",-le.width-4-(Yt.rotateCommitLabel===!0?30:0)).attr("y",-le.height/2+8).attr("width",le.width+18).attr("height",le.height+4),Pt.attr("transform","translate("+(-le.width-14-(Yt.rotateCommitLabel===!0?30:0))+", "+(te-le.height/2-1)+")"),ve.attr("transform","translate(-19, "+(te-le.height/2)+")")})}(F,I),function(It,Nt){var Yt=It.append("g").attr("class","commit-arrows");Object.keys(Nt).forEach(function(jt,Mt){var Ft=Nt[jt];Ft.parents&&Ft.parents.length>0&&Ft.parents.forEach(function(Ot){(function(te,Oe,ke,ve){var Pt=Rt(),le=ws[Oe.id],Vt=ws[ke.id],ae=function(ln,gn,je){return ws[gn.id],ws[ln.id],Object.keys(je).filter(function(Ge){return je[Ge].branch===gn.branch&&je[Ge].seq>ln.seq&&je[Ge].seq<gn.seq}).length>0}(Oe,ke,ve);Pt.arrowMarkerAbsolute&&(window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)");var ee,fe="",Be="",Fe=0,Ye=0,pn=Ti[ke.branch].index;if(ae){fe="A 10 10, 0, 0, 0,",Be="A 10 10, 0, 0, 1,",Fe=10,Ye=10,pn=Ti[ke.branch].index;var Ue=le.y<Vt.y?lh(le.y,Vt.y):lh(Vt.y,le.y);ee=le.y<Vt.y?"M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Ue-Fe," ").concat(fe," ").concat(le.x+Ye," ").concat(Ue," L ").concat(Vt.x-Fe," ").concat(Ue," ").concat(Be," ").concat(Vt.x," ").concat(Ue+Ye," L ").concat(Vt.x," ").concat(Vt.y):"M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Ue+Fe," ").concat(Be," ").concat(le.x+Ye," ").concat(Ue," L ").concat(Vt.x-Fe," ").concat(Ue," ").concat(fe," ").concat(Vt.x," ").concat(Ue-Ye," L ").concat(Vt.x," ").concat(Vt.y)}else le.y<Vt.y&&(fe="A 20 20, 0, 0, 0,",Fe=20,Ye=20,pn=Ti[ke.branch].index,ee="M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Vt.y-Fe," ").concat(fe," ").concat(le.x+Ye," ").concat(Vt.y," L ").concat(Vt.x," ").concat(Vt.y)),le.y>Vt.y&&(fe="A 20 20, 0, 0, 0,",Fe=20,Ye=20,pn=Ti[Oe.branch].index,ee="M ".concat(le.x," ").concat(le.y," L ").concat(Vt.x-Fe," ").concat(le.y," ").concat(fe," ").concat(Vt.x," ").concat(le.y-Ye," L ").concat(Vt.x," ").concat(Vt.y)),le.y===Vt.y&&(pn=Ti[Oe.branch].index,ee="M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Vt.y-Fe," ").concat(fe," ").concat(le.x+Ye," ").concat(Vt.y," L ").concat(Vt.x," ").concat(Vt.y));te.append("path").attr("d",ee).attr("class","arrow arrow"+pn%8)})(Yt,Nt[Ot],Ft,Nt)})})}(F,Zo),zc(F,Zo,!0);var Y=L.diagramPadding,X=F.node().getBBox(),et=X.width+2*Y,ht=X.height+2*Y;ta(F,ht,et,A.useMaxWidth);var ot="".concat(X.x-Y-(L.showBranches&&L.rotateCommitLabel===!0?30:0)," ").concat(X.y-Y," ").concat(et," ").concat(ht);F.attr("viewBox",ot)}};var i0=h(2553),jl=h.n(i0);const $l=function(l){return l.match(/^\s*gitGraph/)?"gitGraph":null},uh=function(){var l,o,y,w,A,L;l="gitGraph",o=jl(),y=jf,w=r0,A=void 0,L=$l,X1[l]={parser:o,db:y,renderer:w,init:A},function(I,O){Kr[I]={detector:O}}(l,L)};function a0(l,o){for(var y=0;y<o.length;y++){var w=o[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(l,w.key,w)}}function Yc(l,o,y){return o in l?Object.defineProperty(l,o,{value:y,enumerable:!0,configurable:!0,writable:!0}):l[o]=y,l}var o0=function(){function l(w){var A,L;(function(F,Y){if(!(F instanceof Y))throw new TypeError("Cannot call a class as a function")})(this,l),Yc(this,"type","graph"),Yc(this,"parser",void 0),Yc(this,"renderer",void 0),Yc(this,"db",void 0);var I=Ul(),O=Rt();this.txt=w,this.type=Hi(w,O),_.debug("Type "+this.type),this.db=I[this.type].db,(A=(L=this.db).clear)===null||A===void 0||A.call(L),this.renderer=I[this.type].renderer,this.parser=I[this.type].parser,this.parser.parser.yy=this.db,typeof I[this.type].init=="function"&&(I[this.type].init(O),_.debug("Initialized diagram "+this.type,O)),this.txt=this.txt+`
|
|
`,this.parser.parser.yy.graphType=this.type,this.parser.parser.yy.parseError=function(F,Y){throw{str:F,hash:Y}},this.parser.parse(this.txt)}var o,y;return o=l,(y=[{key:"parse",value:function(w){var A=!1;try{w+=`
|
|
`,this.db.clear(),this.parser.parse(w)}catch(L){if(A=!0,!h.g.mermaid.parseError)throw L;L.str!=null?h.g.mermaid.parseError(L.str,L.hash):h.g.mermaid.parseError(L)}return!A}},{key:"getParser",value:function(){return this.parser}},{key:"getType",value:function(){return this.type}}])&&a0(o.prototype,y),Object.defineProperty(o,"prototype",{writable:!1}),l}();const hh=o0,Hl=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;
|
|
}
|
|
|
|
`)},fh=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;
|
|
}
|
|
`)},dh=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 Jn={flowchart:fh,"flowchart-v2":fh,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:Hl,"classDiagram-v2":Hl,class:Hl,stateDiagram:dh,state:dh,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(o){return`
|
|
.branch-label`.concat(o," { fill: ").concat(l["gitBranchLabel"+o],`; }
|
|
.commit`).concat(o," { stroke: ").concat(l["git"+o],"; fill: ").concat(l["git"+o],`; }
|
|
.commit-highlight`).concat(o," { stroke: ").concat(l["gitInv"+o],"; fill: ").concat(l["gitInv"+o],`; }
|
|
.label`).concat(o," { fill: ").concat(l["git"+o],`; }
|
|
.arrow`).concat(o," { stroke: ").concat(l["git"+o],`; }
|
|
`)}).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 Qs(l){return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Qs(l)}var rr=function(l){var o=l;return(o=(o=o.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},jr={};function jc(l){var o;vl.setConf(l.flowchart),ku.setConf(l.flowchart),l.sequenceDiagram!==void 0&&Oc.setConf(Ee(l.sequence,l.sequenceDiagram)),Oc.setConf(l.sequence),Tl.setConf(l.gantt),Bc.setConf(l.state),nh.setConf(l.state),Pl.setConf(l.journey),o=l.class,Object.keys(o).forEach(function(y){o[y]})}var oa=Object.freeze({render:function(l,o,y,w){Zn();var A=o.replace(/\r\n?/g,`
|
|
`),L=nr.detectInit(A);L&&(No(L),Mr(L));var I=Rt();_.debug(I),o.length>I.maxTextSize&&(A="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var O=(0,E.select)("body");if(w!==void 0){if(I.securityLevel==="sandbox"){var F=(0,E.select)("body").append("iframe").attr("id","i"+l).attr("style","width: 100%; height: 100%;").attr("sandbox","");(O=(0,E.select)(F.nodes()[0].contentDocument.body)).node().style.margin=0}if(w.innerHTML="",I.securityLevel==="sandbox"){var Y=(0,E.select)(w).append("iframe").attr("id","i"+l).attr("style","width: 100%; height: 100%;").attr("sandbox","");(O=(0,E.select)(Y.nodes()[0].contentDocument.body)).node().style.margin=0}else O=(0,E.select)(w);O.append("div").attr("id","d"+l).attr("style","font-family: "+I.fontFamily).append("svg").attr("id",l).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").attr("xmlns:xlink","http://www.w3.org/1999/xlink").append("g")}else{var X,et=document.getElementById(l);if(et&&et.remove(),(X=I.securityLevel!=="sandbox"?document.querySelector("#d"+l):document.querySelector("#i"+l))&&X.remove(),I.securityLevel==="sandbox"){var ht=(0,E.select)("body").append("iframe").attr("id","i"+l).attr("style","width: 100%; height: 100%;").attr("sandbox","");(O=(0,E.select)(ht.nodes()[0].contentDocument.body)).node().style.margin=0}else O=(0,E.select)("body");O.append("div").attr("id","d"+l).append("svg").attr("id",l).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}A=A.replace(/style.*:\S*#.*;/g,function(ee){return ee.substring(0,ee.length-1)}).replace(/classDef.*:\S*#.*;/g,function(ee){return ee.substring(0,ee.length-1)}).replace(/#\w+;/g,function(ee){var fe=ee.substring(1,ee.length-1);return/^\+?\d+$/.test(fe)?"\uFB02\xB0\xB0"+fe+"\xB6\xDF":"\uFB02\xB0"+fe+"\xB6\xDF"});var ot=new hh(A),It=O.select("#d"+l).node(),Nt=ot.type,Yt=It.firstChild,jt=Yt.firstChild,Mt="";if(I.themeCSS!==void 0&&(Mt+=`
|
|
`.concat(I.themeCSS)),I.fontFamily!==void 0&&(Mt+=`
|
|
:root { --mermaid-font-family: `.concat(I.fontFamily,"}")),I.altFontFamily!==void 0&&(Mt+=`
|
|
:root { --mermaid-alt-font-family: `.concat(I.altFontFamily,"}")),Nt==="flowchart"||Nt==="flowchart-v2"||Nt==="graph"){var Ft=vl.getClasses(A,ot),Ot=I.htmlLabels||I.flowchart.htmlLabels;for(var te in Ft)Ot?(Mt+=`
|
|
.`.concat(te," > * { ").concat(Ft[te].styles.join(" !important; ")," !important; }"),Mt+=`
|
|
.`.concat(te," span { ").concat(Ft[te].styles.join(" !important; ")," !important; }")):(Mt+=`
|
|
.`.concat(te," path { ").concat(Ft[te].styles.join(" !important; ")," !important; }"),Mt+=`
|
|
.`.concat(te," rect { ").concat(Ft[te].styles.join(" !important; ")," !important; }"),Mt+=`
|
|
.`.concat(te," polygon { ").concat(Ft[te].styles.join(" !important; ")," !important; }"),Mt+=`
|
|
.`.concat(te," ellipse { ").concat(Ft[te].styles.join(" !important; ")," !important; }"),Mt+=`
|
|
.`.concat(te," circle { ").concat(Ft[te].styles.join(" !important; ")," !important; }"),Ft[te].textStyles&&(Mt+=`
|
|
.`.concat(te," tspan { ").concat(Ft[te].textStyles.join(" !important; ")," !important; }")))}var Oe=function(ee,fe){return Tt(Sn("".concat(ee,"{").concat(fe,"}")),mt)}("#".concat(l),function(ee,fe,Be){return` {
|
|
font-family: `.concat(Be.fontFamily,`;
|
|
font-size: `).concat(Be.fontSize,`;
|
|
fill: `).concat(Be.textColor,`
|
|
}
|
|
|
|
/* Classes common for multiple diagrams */
|
|
|
|
.error-icon {
|
|
fill: `).concat(Be.errorBkgColor,`;
|
|
}
|
|
.error-text {
|
|
fill: `).concat(Be.errorTextColor,`;
|
|
stroke: `).concat(Be.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(Be.lineColor,`;
|
|
stroke: `).concat(Be.lineColor,`;
|
|
}
|
|
.marker.cross {
|
|
stroke: `).concat(Be.lineColor,`;
|
|
}
|
|
|
|
svg {
|
|
font-family: `).concat(Be.fontFamily,`;
|
|
font-size: `).concat(Be.fontSize,`;
|
|
}
|
|
|
|
`).concat(Jn[ee](Be),`
|
|
|
|
`).concat(fe,`
|
|
`)}(Nt,Mt,I.themeVariables)),ke=document.createElement("style");ke.innerHTML="#".concat(l," ")+Oe,Yt.insertBefore(ke,jt);try{ot.renderer.draw(A,l,re,ot)}catch(ee){throw function(fe,Be){try{_.debug(`Renering svg for syntax error
|
|
`);var Fe=(0,E.select)("#"+fe),Ye=Fe.append("g");Ye.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"),Ye.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"),Ye.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"),Ye.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"),Ye.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"),Ye.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"),Ye.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"),Ye.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+Be),Fe.attr("height",100),Fe.attr("width",400),Fe.attr("viewBox","768 0 512 512")}catch(pn){_.error("Error while rendering info diagram"),_.error(pn.message)}}(l,re),ee}O.select('[id="'.concat(l,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var ve=O.select("#d"+l).node().innerHTML;if(_.debug("cnf.arrowMarkerAbsolute",I.arrowMarkerAbsolute),I.arrowMarkerAbsolute&&I.arrowMarkerAbsolute!=="false"||I.arrowMarkerAbsolute==="sandbox"||(ve=ve.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),ve=(ve=rr(ve)).replace(/<br>/g,"<br/>"),I.securityLevel==="sandbox"){var Pt=O.select("#d"+l+" svg").node(),le="100%";Pt&&(le=Pt.viewBox.baseVal.height+"px"),ve='<iframe style="width:'.concat("100%",";height:").concat(le,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+ve+"</body>"),`" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
The \u201Ciframe\u201D tag is not supported by your browser.
|
|
</iframe>`)}else I.securityLevel!=="loose"&&(ve=$r().sanitize(ve,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(y!==void 0)switch(Nt){case"flowchart":case"flowchart-v2":y(ve,ro.bindFunctions);break;case"gantt":y(ve,w1.bindFunctions);break;case"class":case"classDiagram":y(ve,Mo.bindFunctions);break;default:y(ve)}else _.debug("CB = undefined!");Gs.forEach(function(ee){ee()}),Gs=[];var Vt=I.securityLevel==="sandbox"?"#i"+l:"#d"+l,ae=(0,E.select)(Vt).node();return ae!==null&&typeof ae.remove=="function"&&(0,E.select)(Vt).node().remove(),ve},parse:function(l,o){var y=!1;try{var w=o||new hh(l);return w.db.clear(),w.parse(l)}catch(A){if(y=!0,!Di.parseError)throw A;A.str!=null?Di.parseError(A.str,A.hash):Di.parseError(A)}return!y},parseDirective:function(l,o,y,w){try{if(o!==void 0)switch(o=o.trim(),y){case"open_directive":jr={};break;case"type_directive":jr.type=o.toLowerCase();break;case"arg_directive":jr.args=JSON.parse(o);break;case"close_directive":(function(A,L,I){switch(_.debug("Directive type=".concat(L.type," with args:"),L.args),L.type){case"init":case"initialize":["config"].forEach(function(O){L.args[O]!==void 0&&(I==="flowchart-v2"&&(I="flowchart"),L.args[I]=L.args[O],delete L.args[O])}),_.debug("sanitize in handleDirective",L.args),No(L.args),_.debug("sanitize in handleDirective (done)",L.args),Mr(L.args);break;case"wrap":case"nowrap":A&&A.setWrap&&A.setWrap(L.type==="wrap");break;case"themeCss":_.warn("themeCss encountered");break;default:_.warn("Unhandled directive: source: '%%{".concat(L.type,": ").concat(JSON.stringify(L.args?L.args:{}),"}%%"),L)}})(l,jr,w),jr=null}}catch(A){_.error("Error while rendering sequenceDiagram directive: ".concat(o," jison context: ").concat(y)),_.error(A.message)}},initialize:function(l){l&&l.fontFamily&&(l.themeVariables&&l.themeVariables.fontFamily||(l.themeVariables={fontFamily:l.fontFamily})),function(y){Ln=Ee({},y)}(l),l&&l.theme&&Pn[l.theme]?l.themeVariables=Pn[l.theme].getThemeVariables(l.themeVariables):l&&(l.themeVariables=Pn.default.getThemeVariables(l.themeVariables));var o=Qs(l)==="object"?function(y){return Rn=Ee({},si),Rn=Ee(Rn,y),y.theme&&Pn[y.theme]&&(Rn.themeVariables=Pn[y.theme].getThemeVariables(y.themeVariables)),Ir=br(Rn,kr),Rn}(l):Zr();jc(o),S(o.logLevel),uh()},getConfig:Rt,setConfig:function(l){return Ee(Ir,l),Rt()},getSiteConfig:Zr,updateSiteConfig:function(l){return Rn=Ee(Rn,l),br(Rn,kr),Rn},reset:function(){Zn()},globalReset:function(){Zn(),jc(Rt())},defaultConfig:si});S(Rt().logLevel),Zn(Rt());const Xn=oa;var $n=function(){var l,o,y=Xn.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(xi.sequenceConfig=arguments[0]),l=arguments[1]):l=arguments[0],typeof arguments[arguments.length-1]=="function"?(o=arguments[arguments.length-1],_.debug("Callback function found")):y.mermaid!==void 0&&(typeof y.mermaid.callback=="function"?(o=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: "+xi.startOnLoad),xi.startOnLoad!==void 0&&(_.debug("Start On Load inner: "+xi.startOnLoad),Xn.updateSiteConfig({startOnLoad:xi.startOnLoad})),xi.ganttConfig!==void 0&&Xn.updateSiteConfig({gantt:xi.ganttConfig});for(var w,A=new nr.initIdGenerator(y.deterministicIds,y.deterministicIDSeed),L=function(O){var F=l[O];if(F.getAttribute("data-processed"))return"continue";F.setAttribute("data-processed",!0);var Y="mermaid-".concat(A.next());w=F.innerHTML,w=nr.entityDecode(w).trim().replace(/<br\s*\/?>/gi,"<br/>");var X=nr.detectInit(w);X&&_.debug("Detected early reinit: ",X);try{Xn.render(Y,w,function(et,ht){F.innerHTML=et,o!==void 0&&o(Y),ht&&ht(F)},F)}catch(et){throw _.warn("Catching Error (bootstrap)"),{error:et,message:et.str}}},I=0;I<l.length;I++)L(I)},dr=function(){xi.startOnLoad?Xn.getConfig().startOnLoad&&xi.init():xi.startOnLoad===void 0&&(_.debug("In start, no config"),Xn.getConfig().startOnLoad&&xi.init())};typeof document<"u"&&window.addEventListener("load",function(){dr()},!1);var xi={startOnLoad:!0,htmlLabels:!0,diagrams:{},mermaidAPI:Xn,parse:Xn!=null?Xn.parse:null,render:Xn!=null?Xn.render:null,init:function(){try{$n.apply(void 0,arguments)}catch(l){_.warn("Syntax Error rendering"),_.warn(l.str),this.parseError&&this.parseError(l)}},initThrowsErrors:$n,initialize:function(l){l.mermaid!==void 0&&(l.mermaid.startOnLoad!==void 0&&(xi.startOnLoad=l.mermaid.startOnLoad),l.mermaid.htmlLabels!==void 0&&(xi.htmlLabels=l.mermaid.htmlLabels!=="false"&&l.mermaid.htmlLabels!==!1)),Xn.initialize(l)},contentLoaded:dr,setParseErrorHandler:function(l){xi.parseError=l}};const Di=xi},4949:(f,k,h)=>{f.exports={graphlib:h(6614),dagre:h(6478),intersect:h(8114),render:h(5787),util:h(8355),version:h(5689)}},9144:(f,k,h)=>{var m=h(8355);function d(b,_,S,M){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,S[M+"Style"]),S[M+"Class"]&&E.attr("class",S[M+"Class"])}f.exports={default:d,normal:d,vee:function(b,_,S,M){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,S[M+"Style"]),S[M+"Class"]&&E.attr("class",S[M+"Class"])},undirected:function(b,_,S,M){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,S[M+"Style"]),S[M+"Class"]&&E.attr("class",S[M+"Class"])}}},5632:(f,k,h)=>{var m=h(8355),d=h(4322),b=h(1322);f.exports=function(_,S){var M,E=S.nodes().filter(function(R){return m.isSubgraph(S,R)}),B=_.selectAll("g.cluster").data(E,function(R){return R});return B.selectAll("*").remove(),B.enter().append("g").attr("class","cluster").attr("id",function(R){return S.node(R).id}).style("opacity",0),B=_.selectAll("g.cluster"),m.applyTransition(B,S).style("opacity",1),B.each(function(R){var U=S.node(R),H=d.select(this);d.select(this).append("rect");var J=H.append("g").attr("class","label");b(J,U,U.clusterLabelPos)}),B.selectAll("rect").each(function(R){var U=S.node(R),H=d.select(this);m.applyStyle(H,U.style)}),M=B.exit?B.exit():B.selectAll(null),m.applyTransition(M,S).style("opacity",0).remove(),B}},6315:(f,k,h)=>{var m=h(1034),d=h(1322),b=h(8355),_=h(4322);f.exports=function(S,M){var E,B=S.selectAll("g.edgeLabel").data(M.edges(),function(R){return b.edgeToId(R)}).classed("update",!0);return B.exit().remove(),B.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(B=S.selectAll("g.edgeLabel")).each(function(R){var U=_.select(this);U.select(".label").remove();var H=M.edge(R),J=d(U,M.edge(R),0,0).classed("label",!0),rt=J.node().getBBox();H.labelId&&J.attr("id",H.labelId),m.has(H,"width")||(H.width=rt.width),m.has(H,"height")||(H.height=rt.height)}),E=B.exit?B.exit():B.selectAll(null),b.applyTransition(E,M).style("opacity",0).remove(),B}},940:(f,k,h)=>{var m=h(1034),d=h(3042),b=h(8355),_=h(4322);function S(M,E){var B=(_.line||_.svg.line)().x(function(R){return R.x}).y(function(R){return R.y});return(B.curve||B.interpolate)(M.curve),B(E)}f.exports=function(M,E,B){var R=M.selectAll("g.edgePath").data(E.edges(),function(J){return b.edgeToId(J)}).classed("update",!0),U=function(J,rt){var ft=J.enter().append("g").attr("class","edgePath").style("opacity",0);return ft.append("path").attr("class","path").attr("d",function(K){var _t=rt.edge(K),at=rt.node(K.v).elem;return S(_t,m.range(_t.points.length).map(function(){return bt=(st=at).getBBox(),{x:(zt=st.ownerSVGElement.getScreenCTM().inverse().multiply(st.getScreenCTM()).translate(bt.width/2,bt.height/2)).e,y:zt.f};var st,bt,zt}))}),ft.append("defs"),ft}(R,E);(function(J,rt){var ft=J.exit();b.applyTransition(ft,rt).style("opacity",0).remove()})(R,E);var H=R.merge!==void 0?R.merge(U):R;return b.applyTransition(H,E).style("opacity",1),H.each(function(J){var rt=_.select(this),ft=E.edge(J);ft.elem=this,ft.id&&rt.attr("id",ft.id),b.applyClass(rt,ft.class,(rt.classed("update")?"update ":"")+"edgePath")}),H.selectAll("path.path").each(function(J){var rt=E.edge(J);rt.arrowheadId=m.uniqueId("arrowhead");var ft=_.select(this).attr("marker-end",function(){return"url("+(K=location.href,_t=rt.arrowheadId,K.split("#")[0]+"#"+_t+")");var K,_t}).style("fill","none");b.applyTransition(ft,E).attr("d",function(K){return function(_t,at){var st=_t.edge(at),bt=_t.node(at.v),zt=_t.node(at.w),Tt=st.points.slice(1,st.points.length-1);return Tt.unshift(d(bt,Tt[0])),Tt.push(d(zt,Tt[Tt.length-1])),S(st,Tt)}(E,K)}),b.applyStyle(ft,rt.style)}),H.selectAll("defs *").remove(),H.selectAll("defs").each(function(J){var rt=E.edge(J);(0,B[rt.arrowhead])(_.select(this),rt.arrowheadId,rt,"arrowhead")}),H}},607:(f,k,h)=>{var m=h(1034),d=h(1322),b=h(8355),_=h(4322);f.exports=function(S,M,E){var B,R=M.nodes().filter(function(H){return!b.isSubgraph(M,H)}),U=S.selectAll("g.node").data(R,function(H){return H}).classed("update",!0);return U.exit().remove(),U.enter().append("g").attr("class","node").style("opacity",0),(U=S.selectAll("g.node")).each(function(H){var J=M.node(H),rt=_.select(this);b.applyClass(rt,J.class,(rt.classed("update")?"update ":"")+"node"),rt.select("g.label").remove();var ft=rt.append("g").attr("class","label"),K=d(ft,J),_t=E[J.shape],at=m.pick(K.node().getBBox(),"width","height");J.elem=this,J.id&&rt.attr("id",J.id),J.labelId&&ft.attr("id",J.labelId),m.has(J,"width")&&(at.width=J.width),m.has(J,"height")&&(at.height=J.height),at.width+=J.paddingLeft+J.paddingRight,at.height+=J.paddingTop+J.paddingBottom,ft.attr("transform","translate("+(J.paddingLeft-J.paddingRight)/2+","+(J.paddingTop-J.paddingBottom)/2+")");var st=_.select(this);st.select(".label-container").remove();var bt=_t(st,at,J).classed("label-container",!0);b.applyStyle(bt,J.style);var zt=bt.node().getBBox();J.width=zt.width,J.height=zt.height}),B=U.exit?U.exit():U.selectAll(null),b.applyTransition(B,M).style("opacity",0).remove(),U}},4322:(f,k,h)=>{var m;if(!m)try{m=h(7543)}catch{}m||(m=window.d3),f.exports=m},6478:(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,S=b-d.x,M=_-d.y,E=Math.sqrt(h*h*M*M+m*m*S*S),B=Math.abs(h*m*S/E);d.x<b&&(B=-B);var R=Math.abs(h*m*M/E);return d.y<_&&(R=-R),{x:b+B,y:_+R}}},6808:f=>{function k(h,m){return h*m>0}f.exports=function(h,m,d,b){var _,S,M,E,B,R,U,H,J,rt,ft,K,_t;if(_=m.y-h.y,M=h.x-m.x,B=m.x*h.y-h.x*m.y,J=_*d.x+M*d.y+B,rt=_*b.x+M*b.y+B,!(J!==0&&rt!==0&&k(J,rt)||(S=b.y-d.y,E=d.x-b.x,R=b.x*d.y-d.x*b.y,U=S*h.x+E*h.y+R,H=S*m.x+E*m.y+R,U!==0&&H!==0&&k(U,H)||(ft=_*E-S*M)==0)))return K=Math.abs(ft/2),{x:(_t=M*R-E*B)<0?(_t-K)/ft:(_t+K)/ft,y:(_t=S*B-_*R)<0?(_t-K)/ft:(_t+K)/ft}}},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 S=d.x,M=d.y,E=[],B=Number.POSITIVE_INFINITY,R=Number.POSITIVE_INFINITY;b.forEach(function(_t){B=Math.min(B,_t.x),R=Math.min(R,_t.y)});for(var U=S-d.width/2-B,H=M-d.height/2-R,J=0;J<b.length;J++){var rt=b[J],ft=b[J<b.length-1?J+1:0],K=m(d,_,{x:U+rt.x,y:H+rt.y},{x:U+ft.x,y:H+ft.y});K&&E.push(K)}return E.length?(E.length>1&&E.sort(function(_t,at){var st=_t.x-_.x,bt=_t.y-_.y,zt=Math.sqrt(st*st+bt*bt),Tt=at.x-_.x,mt=at.y-_.y,Ct=Math.sqrt(Tt*Tt+mt*mt);return zt<Ct?-1:zt===Ct?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,S=h.x-b,M=h.y-_,E=k.width/2,B=k.height/2;return Math.abs(M)*E>Math.abs(S)*B?(M<0&&(B=-B),m=M===0?0:B*S/M,d=B):(S<0&&(E=-E),m=E,d=S===0?0:E*M/S),{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"),S=_.append("xhtml:div");S.attr("xmlns","http://www.w3.org/1999/xhtml");var M=b.label;switch(typeof M){case"function":S.insert(M);break;case"object":S.insert(function(){return M});break;default:S.html(M)}m.applyStyle(S,b.labelStyle),S.style("display","inline-block"),S.style("white-space","nowrap");var E=S.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(_,S,M){var E=S.label,B=_.append("g");S.labelType==="svg"?b(B,S):typeof E!="string"||S.labelType==="html"?d(B,S):m(B,S);var R,U=B.node().getBBox();switch(M){case"top":R=-S.height/2;break;case"bottom":R=S.height/2-U.height;break;default:R=-U.height/2}return B.attr("transform","translate("+-U.width/2+","+R+")"),B}},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"),S=function(E){for(var B,R="",U=!1,H=0;H<E.length;++H)B=E[H],U?(R+=B==="n"?`
|
|
`:B,U=!1):B==="\\"?U=!0:R+=B;return R}(b.label).split(`
|
|
`),M=0;M<S.length;M++)_.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(S[M]);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 S=b.filter(function(){return!d.select(this).classed("update")});function M(E){var B=_.node(E);return"translate("+B.x+","+B.y+")"}S.attr("transform",M),m.applyTransition(b,_).style("opacity",1).attr("transform",M),m.applyTransition(S.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(_,S){function M(E){var B=S.edge(E);return b.has(B,"x")?"translate("+B.x+","+B.y+")":""}_.filter(function(){return!d.select(this).classed("update")}).attr("transform",M),m.applyTransition(_,S).style("opacity",1).attr("transform",M)}},4849:(f,k,h)=>{var m=h(8355),d=h(4322);f.exports=function(b,_){function S(M){var E=_.node(M);return"translate("+E.x+","+E.y+")"}b.filter(function(){return!d.select(this).classed("update")}).attr("transform",S),m.applyTransition(b,_).style("opacity",1).attr("transform",S)}},5787:(f,k,h)=>{var m=h(1034),d=h(4322),b=h(6478).layout;f.exports=function(){var E=h(607),B=h(5632),R=h(6315),U=h(940),H=h(4849),J=h(4577),rt=h(6381),ft=h(4418),K=h(9144),_t=function(at,st){(function(gt){gt.nodes().forEach(function(nt){var dt=gt.node(nt);m.has(dt,"label")||gt.children(nt).length||(dt.label=nt),m.has(dt,"paddingX")&&m.defaults(dt,{paddingLeft:dt.paddingX,paddingRight:dt.paddingX}),m.has(dt,"paddingY")&&m.defaults(dt,{paddingTop:dt.paddingY,paddingBottom:dt.paddingY}),m.has(dt,"padding")&&m.defaults(dt,{paddingLeft:dt.padding,paddingRight:dt.padding,paddingTop:dt.padding,paddingBottom:dt.padding}),m.defaults(dt,_),m.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(q){dt[q]=Number(dt[q])}),m.has(dt,"width")&&(dt._prevWidth=dt.width),m.has(dt,"height")&&(dt._prevHeight=dt.height)}),gt.edges().forEach(function(nt){var dt=gt.edge(nt);m.has(dt,"label")||(dt.label=""),m.defaults(dt,S)})})(st);var bt=M(at,"output"),zt=M(bt,"clusters"),Tt=M(bt,"edgePaths"),mt=R(M(bt,"edgeLabels"),st),Ct=E(M(bt,"nodes"),st,ft);b(st),H(Ct,st),J(mt,st),U(Tt,st,K);var xt=B(zt,st);rt(xt,st),function(gt){m.each(gt.nodes(),function(nt){var dt=gt.node(nt);m.has(dt,"_prevWidth")?dt.width=dt._prevWidth:delete dt.width,m.has(dt,"_prevHeight")?dt.height=dt._prevHeight:delete dt.height,delete dt._prevWidth,delete dt._prevHeight})}(st)};return _t.createNodes=function(at){return arguments.length?(E=at,_t):E},_t.createClusters=function(at){return arguments.length?(B=at,_t):B},_t.createEdgeLabels=function(at){return arguments.length?(R=at,_t):R},_t.createEdgePaths=function(at){return arguments.length?(U=at,_t):U},_t.shapes=function(at){return arguments.length?(ft=at,_t):ft},_t.arrows=function(at){return arguments.length?(K=at,_t):K},_t};var _={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},S={arrowhead:"normal",curve:d.curveLinear};function M(E,B){var R=E.select("g."+B);return R.empty()&&(R=E.append("g").attr("class",B)),R}},4418:(f,k,h)=>{var m=h(8049),d=h(3260),b=h(6587),_=h(5337);f.exports={rect:function(S,M,E){var B=S.insert("rect",":first-child").attr("rx",E.rx).attr("ry",E.ry).attr("x",-M.width/2).attr("y",-M.height/2).attr("width",M.width).attr("height",M.height);return E.intersect=function(R){return m(E,R)},B},ellipse:function(S,M,E){var B=M.width/2,R=M.height/2,U=S.insert("ellipse",":first-child").attr("x",-M.width/2).attr("y",-M.height/2).attr("rx",B).attr("ry",R);return E.intersect=function(H){return d(E,B,R,H)},U},circle:function(S,M,E){var B=Math.max(M.width,M.height)/2,R=S.insert("circle",":first-child").attr("x",-M.width/2).attr("y",-M.height/2).attr("r",B);return E.intersect=function(U){return b(E,B,U)},R},diamond:function(S,M,E){var B=M.width*Math.SQRT2/2,R=M.height*Math.SQRT2/2,U=[{x:0,y:-R},{x:-B,y:0},{x:0,y:R},{x:B,y:0}],H=S.insert("polygon",":first-child").attr("points",U.map(function(J){return J.x+","+J.y}).join(" "));return E.intersect=function(J){return _(E,U,J)},H}}},8355:(f,k,h)=>{var m=h(1034);f.exports={isSubgraph:function(_,S){return!!_.children(S).length},edgeToId:function(_){return b(_.v)+":"+b(_.w)+":"+b(_.name)},applyStyle:function(_,S){S&&_.attr("style",S)},applyClass:function(_,S,M){S&&_.attr("class",S).attr("class",M+" "+_.attr("class"))},applyTransition:function(_,S){var M=S.graph();if(m.isPlainObject(M)){var E=M.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(S){return function(M){return S.edge(M).weight}}(b)):function(S){var M=[],E={},B={};return m.forEach(S.nodes(),function R(U){m.has(B,U)||(B[U]=!0,E[U]=!0,m.forEach(S.outEdges(U),function(H){m.has(E,H.w)?M.push(H):R(H.w)}),delete E[U])}),M}(b);m.forEach(_,function(S){var M=b.edge(S);b.removeEdge(S),M.forwardName=S.name,M.reversed=!0,b.setEdge(S.w,S.v,M,m.uniqueId("rev"))})},undo:function(b){m.forEach(b.edges(),function(_){var S=b.edge(_);if(S.reversed){b.removeEdge(_);var M=S.forwardName;delete S.reversed,delete S.forwardName,b.setEdge(_.w,_.v,S,M)}})}}},1133:(f,k,h)=>{var m=h(8436),d=h(1138);function b(_,S,M,E,B,R){var U={width:0,height:0,rank:R,borderType:S},H=B[S][R-1],J=d.addDummyNode(_,"border",U,M);B[S][R]=J,_.setParent(J,E),H&&_.setEdge(H,J,{weight:1})}f.exports=function(_){m.forEach(_.children(),function S(M){var E=_.children(M),B=_.node(M);if(E.length&&m.forEach(E,S),m.has(B,"minRank")){B.borderLeft=[],B.borderRight=[];for(var R=B.minRank,U=B.maxRank+1;R<U;++R)b(_,"borderLeft","_bl",M,B,R),b(_,"borderRight","_br",M,B,R)}})}},3258:(f,k,h)=>{var m=h(8436);function d(M){m.forEach(M.nodes(),function(E){b(M.node(E))}),m.forEach(M.edges(),function(E){b(M.edge(E))})}function b(M){var E=M.width;M.width=M.height,M.height=E}function _(M){M.y=-M.y}function S(M){var E=M.x;M.x=M.y,M.y=E}f.exports={adjust:function(M){var E=M.graph().rankdir.toLowerCase();E!=="lr"&&E!=="rl"||d(M)},undo:function(M){var E=M.graph().rankdir.toLowerCase();E!=="bt"&&E!=="rl"||function(B){m.forEach(B.nodes(),function(R){_(B.node(R))}),m.forEach(B.edges(),function(R){var U=B.edge(R);m.forEach(U.points,_),m.has(U,"y")&&_(U)})}(M),E!=="lr"&&E!=="rl"||(function(B){m.forEach(B.nodes(),function(R){S(B.node(R))}),m.forEach(B.edges(),function(R){var U=B.edge(R);m.forEach(U.points,S),m.has(U,"x")&&S(U)})}(M),d(M))}}},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 S=d.buildLayerMatrix(_),M=new b({compound:!0,multigraph:!0}).setGraph({});return m.forEach(_.nodes(),function(E){M.setNode(E,{label:E}),M.setParent(E,"layer"+_.node(E).rank)}),m.forEach(_.edges(),function(E){M.setEdge(E.v,E.w,{},E.name)}),m.forEach(S,function(E,B){var R="layer"+B;M.setNode(R,{rank:"same"}),m.reduce(E,function(U,H){return M.setEdge(U,H,{style:"invis"}),H})}),M}}},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,B){if(E.nodeCount()<=1)return[];var R=function(H,J){var rt=new d,ft=0,K=0;m.forEach(H.nodes(),function(st){rt.setNode(st,{v:st,in:0,out:0})}),m.forEach(H.edges(),function(st){var bt=rt.edge(st.v,st.w)||0,zt=J(st),Tt=bt+zt;rt.setEdge(st.v,st.w,Tt),K=Math.max(K,rt.node(st.v).out+=zt),ft=Math.max(ft,rt.node(st.w).in+=zt)});var _t=m.range(K+ft+3).map(function(){return new b}),at=ft+1;return m.forEach(rt.nodes(),function(st){M(_t,at,rt.node(st))}),{graph:rt,buckets:_t,zeroIdx:at}}(E,B||_),U=function(H,J,rt){for(var ft,K=[],_t=J[J.length-1],at=J[0];H.nodeCount();){for(;ft=at.dequeue();)S(H,J,rt,ft);for(;ft=_t.dequeue();)S(H,J,rt,ft);if(H.nodeCount()){for(var st=J.length-2;st>0;--st)if(ft=J[st].dequeue()){K=K.concat(S(H,J,rt,ft,!0));break}}}return K}(R.graph,R.buckets,R.zeroIdx);return m.flatten(m.map(U,function(H){return E.outEdges(H.v,H.w)}),!0)};var _=m.constant(1);function S(E,B,R,U,H){var J=H?[]:void 0;return m.forEach(E.inEdges(U.v),function(rt){var ft=E.edge(rt),K=E.node(rt.v);H&&J.push({v:rt.v,w:rt.w}),K.out-=ft,M(B,R,K)}),m.forEach(E.outEdges(U.v),function(rt){var ft=E.edge(rt),K=rt.w,_t=E.node(K);_t.in-=ft,M(B,R,_t)}),E.removeNode(U.v),J}function M(E,B,R){R.out?R.in?E[R.out-R.in+B].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),S=h(1138).normalizeRanks,M=h(4219),E=h(1138).removeEmptyRanks,B=h(2981),R=h(1133),U=h(3258),H=h(3408),J=h(7873),rt=h(1138),ft=h(574).Graph;f.exports=function(gt,nt){var dt=nt&&nt.debugTiming?rt.time:rt.notime;dt("layout",function(){var q=dt(" buildLayoutGraph",function(){return function(kt){var W=new ft({multigraph:!0,compound:!0}),St=xt(kt.graph());return W.setGraph(m.merge({},_t,Ct(St,K),m.pick(St,at))),m.forEach(kt.nodes(),function(Lt){var Wt=xt(kt.node(Lt));W.setNode(Lt,m.defaults(Ct(Wt,st),bt)),W.setParent(Lt,kt.parent(Lt))}),m.forEach(kt.edges(),function(Lt){var Wt=xt(kt.edge(Lt));W.setEdge(Lt,m.merge({},Tt,Ct(Wt,zt),m.pick(Wt,mt)))}),W}(gt)});dt(" runLayout",function(){(function(kt,W){W(" makeSpaceForEdgeLabels",function(){(function(St){var Lt=St.graph();Lt.ranksep/=2,m.forEach(St.edges(),function(Wt){var ge=St.edge(Wt);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 Wt=St.node(Lt.v);Wt.selfEdges||(Wt.selfEdges=[]),Wt.selfEdges.push({e:Lt,label:St.edge(Lt)}),St.removeEdge(Lt)}})})(kt)}),W(" acyclic",function(){d.run(kt)}),W(" nestingGraph.run",function(){B.run(kt)}),W(" rank",function(){_(rt.asNonCompoundGraph(kt))}),W(" injectEdgeLabelProxies",function(){(function(St){m.forEach(St.edges(),function(Lt){var Wt=St.edge(Lt);if(Wt.width&&Wt.height){var ge=St.node(Lt.v),Ve={rank:(St.node(Lt.w).rank-ge.rank)/2+ge.rank,e:Lt};rt.addDummyNode(St,"edge-proxy",Ve,"_ep")}})})(kt)}),W(" removeEmptyRanks",function(){E(kt)}),W(" nestingGraph.cleanup",function(){B.cleanup(kt)}),W(" normalizeRanks",function(){S(kt)}),W(" assignRankMinMax",function(){(function(St){var Lt=0;m.forEach(St.nodes(),function(Wt){var ge=St.node(Wt);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 Wt=St.node(Lt);Wt.dummy==="edge-proxy"&&(St.edge(Wt.e).labelRank=Wt.rank,St.removeNode(Lt))})})(kt)}),W(" normalize.run",function(){b.run(kt)}),W(" parentDummyChains",function(){M(kt)}),W(" addBorderSegments",function(){R(kt)}),W(" order",function(){H(kt)}),W(" insertSelfEdges",function(){(function(St){var Lt=rt.buildLayerMatrix(St);m.forEach(Lt,function(Wt){var ge=0;m.forEach(Wt,function(Ve,we){var he=St.node(Ve);he.order=we+ge,m.forEach(he.selfEdges,function(xe){rt.addDummyNode(St,"selfedge",{width:xe.label.width,height:xe.label.height,rank:he.rank,order:we+ ++ge,e:xe.e,label:xe.label},"_se")}),delete he.selfEdges})})})(kt)}),W(" adjustCoordinateSystem",function(){U.adjust(kt)}),W(" position",function(){J(kt)}),W(" positionSelfEdges",function(){(function(St){m.forEach(St.nodes(),function(Lt){var Wt=St.node(Lt);if(Wt.dummy==="selfedge"){var ge=St.node(Wt.e.v),Ve=ge.x+ge.width/2,we=ge.y,he=Wt.x-Ve,xe=ge.height/2;St.setEdge(Wt.e,Wt.label),St.removeNode(Lt),Wt.label.points=[{x:Ve+2*he/3,y:we-xe},{x:Ve+5*he/6,y:we-xe},{x:Ve+he,y:we},{x:Ve+5*he/6,y:we+xe},{x:Ve+2*he/3,y:we+xe}],Wt.label.x=Wt.x,Wt.label.y=Wt.y}})})(kt)}),W(" removeBorderNodes",function(){(function(St){m.forEach(St.nodes(),function(Lt){if(St.children(Lt).length){var Wt=St.node(Lt),ge=St.node(Wt.borderTop),Ve=St.node(Wt.borderBottom),we=St.node(m.last(Wt.borderLeft)),he=St.node(m.last(Wt.borderRight));Wt.width=Math.abs(he.x-we.x),Wt.height=Math.abs(Ve.y-ge.y),Wt.x=we.x+Wt.width/2,Wt.y=ge.y+Wt.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 Wt=St.edge(Lt);if(m.has(Wt,"x"))switch(Wt.labelpos!=="l"&&Wt.labelpos!=="r"||(Wt.width-=Wt.labeloffset),Wt.labelpos){case"l":Wt.x-=Wt.width/2+Wt.labeloffset;break;case"r":Wt.x+=Wt.width/2+Wt.labeloffset}})})(kt)}),W(" undoCoordinateSystem",function(){U.undo(kt)}),W(" translateGraph",function(){(function(St){var Lt=Number.POSITIVE_INFINITY,Wt=0,ge=Number.POSITIVE_INFINITY,Ve=0,we=St.graph(),he=we.marginx||0,xe=we.marginy||0;function Le(Me){var be=Me.x,Sn=Me.y,me=Me.width,Je=Me.height;Lt=Math.min(Lt,be-me/2),Wt=Math.max(Wt,be+me/2),ge=Math.min(ge,Sn-Je/2),Ve=Math.max(Ve,Sn+Je/2)}m.forEach(St.nodes(),function(Me){Le(St.node(Me))}),m.forEach(St.edges(),function(Me){var be=St.edge(Me);m.has(be,"x")&&Le(be)}),Lt-=he,ge-=xe,m.forEach(St.nodes(),function(Me){var be=St.node(Me);be.x-=Lt,be.y-=ge}),m.forEach(St.edges(),function(Me){var be=St.edge(Me);m.forEach(be.points,function(Sn){Sn.x-=Lt,Sn.y-=ge}),m.has(be,"x")&&(be.x-=Lt),m.has(be,"y")&&(be.y-=ge)}),we.width=Wt-Lt+he,we.height=Ve-ge+xe})(kt)}),W(" assignNodeIntersects",function(){(function(St){m.forEach(St.edges(),function(Lt){var Wt,ge,Ve=St.edge(Lt),we=St.node(Lt.v),he=St.node(Lt.w);Ve.points?(Wt=Ve.points[0],ge=Ve.points[Ve.points.length-1]):(Ve.points=[],Wt=he,ge=we),Ve.points.unshift(rt.intersectRect(we,Wt)),Ve.points.push(rt.intersectRect(he,ge))})})(kt)}),W(" reversePoints",function(){(function(St){m.forEach(St.edges(),function(Lt){var Wt=St.edge(Lt);Wt.reversed&&Wt.points.reverse()})})(kt)}),W(" acyclic.undo",function(){d.undo(kt)})})(q,dt)}),dt(" updateInputGraph",function(){(function(kt,W){m.forEach(kt.nodes(),function(St){var Lt=kt.node(St),Wt=W.node(St);Lt&&(Lt.x=Wt.x,Lt.y=Wt.y,W.children(St).length&&(Lt.width=Wt.width,Lt.height=Wt.height))}),m.forEach(kt.edges(),function(St){var Lt=kt.edge(St),Wt=W.edge(St);Lt.points=Wt.points,m.has(Wt,"x")&&(Lt.x=Wt.x,Lt.y=Wt.y)}),kt.graph().width=W.graph().width,kt.graph().height=W.graph().height})(gt,q)})})};var K=["nodesep","edgesep","ranksep","marginx","marginy"],_t={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},at=["acyclicer","ranker","rankdir","align"],st=["width","height"],bt={width:0,height:0},zt=["minlen","weight","width","height","labeloffset"],Tt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},mt=["labelpos"];function Ct(gt,nt){return m.mapValues(m.pick(gt,nt),Number)}function xt(gt){var nt={};return m.forEach(gt,function(dt,q){nt[q.toLowerCase()]=dt}),nt}},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(_,S,M,E,B,R,U){var H=_.children(U);if(H.length){var J=d.addBorderNode(_,"_bt"),rt=d.addBorderNode(_,"_bb"),ft=_.node(U);_.setParent(J,U),ft.borderTop=J,_.setParent(rt,U),ft.borderBottom=rt,m.forEach(H,function(K){b(_,S,M,E,B,R,K);var _t=_.node(K),at=_t.borderTop?_t.borderTop:K,st=_t.borderBottom?_t.borderBottom:K,bt=_t.borderTop?E:2*E,zt=at!==st?1:B-R[U]+1;_.setEdge(J,at,{weight:bt,minlen:zt,nestingEdge:!0}),_.setEdge(st,rt,{weight:bt,minlen:zt,nestingEdge:!0})}),_.parent(U)||_.setEdge(S,J,{weight:0,minlen:B+R[U]})}else U!==S&&_.setEdge(S,U,{weight:0,minlen:M})}f.exports={run:function(_){var S=d.addDummyNode(_,"root",{},"_root"),M=function(U){var H={};function J(rt,ft){var K=U.children(rt);K&&K.length&&m.forEach(K,function(_t){J(_t,ft+1)}),H[rt]=ft}return m.forEach(U.children(),function(rt){J(rt,1)}),H}(_),E=m.max(m.values(M))-1,B=2*E+1;_.graph().nestingRoot=S,m.forEach(_.edges(),function(U){_.edge(U).minlen*=B});var R=function(U){return m.reduce(U.edges(),function(H,J){return H+U.edge(J).weight},0)}(_)+1;m.forEach(_.children(),function(U){b(_,S,B,R,E,M,U)}),_.graph().nodeRankFactor=B},cleanup:function(_){var S=_.graph();_.removeNode(S.nestingRoot),delete S.nestingRoot,m.forEach(_.edges(),function(M){_.edge(M).nestingEdge&&_.removeEdge(M)})}}},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(S,M){var E,B,R,U=M.v,H=S.node(U).rank,J=M.w,rt=S.node(J).rank,ft=M.name,K=S.edge(M),_t=K.labelRank;if(rt!==H+1){for(S.removeEdge(M),R=0,++H;H<rt;++R,++H)K.points=[],B={width:0,height:0,edgeLabel:K,edgeObj:M,rank:H},E=d.addDummyNode(S,"edge",B,"_d"),H===_t&&(B.width=K.width,B.height=K.height,B.dummy="edge-label",B.labelpos=K.labelpos),S.setEdge(U,E,{weight:K.weight},ft),R===0&&S.graph().dummyChains.push(E),U=E;S.setEdge(U,J,{weight:K.weight},ft)}})(b,_)})},undo:function(b){m.forEach(b.graph().dummyChains,function(_){var S,M=b.node(_),E=M.edgeLabel;for(b.setEdge(M.edgeObj,E);M.dummy;)S=b.successors(_)[0],b.removeNode(_),E.points.push({x:M.x,y:M.y}),M.dummy==="edge-label"&&(E.x=M.x,E.y=M.y,E.width=M.width,E.height=M.height),_=S,M=b.node(_)})}}},5093:(f,k,h)=>{var m=h(8436);f.exports=function(d,b,_){var S,M={};m.forEach(_,function(E){for(var B,R,U=d.parent(E);U;){if((B=d.parent(U))?(R=M[B],M[B]=U):(R=S,S=U),R&&R!==U)return void b.setEdge(R,U);U=B}})}},5439:(f,k,h)=>{var m=h(8436);f.exports=function(d,b){return m.map(b,function(_){var S=d.inEdges(_);if(S.length){var M=m.reduce(S,function(E,B){var R=d.edge(B),U=d.node(B.v);return{sum:E.sum+R.weight*U.order,weight:E.weight+R.weight}},{sum:0,weight:0});return{v:_,barycenter:M.sum/M.weight,weight:M.weight}}return{v:_}})}},3128:(f,k,h)=>{var m=h(8436),d=h(574).Graph;f.exports=function(b,_,S){var M=function(B){for(var R;B.hasNode(R=m.uniqueId("_root")););return R}(b),E=new d({compound:!0}).setGraph({root:M}).setDefaultNodeLabel(function(B){return b.node(B)});return m.forEach(b.nodes(),function(B){var R=b.node(B),U=b.parent(B);(R.rank===_||R.minRank<=_&&_<=R.maxRank)&&(E.setNode(B),E.setParent(B,U||M),m.forEach(b[S](B),function(H){var J=H.v===B?H.w:H.v,rt=E.edge(J,B),ft=m.isUndefined(rt)?0:rt.weight;E.setEdge(J,B,{weight:b.edge(H).weight+ft})}),m.has(R,"minRank")&&E.setNode(B,{borderLeft:R.borderLeft[_],borderRight:R.borderRight[_]}))}),E}},6630:(f,k,h)=>{var m=h(8436);function d(b,_,S){for(var M=m.zipObject(S,m.map(S,function(J,rt){return rt})),E=m.flatten(m.map(_,function(J){return m.sortBy(m.map(b.outEdges(J),function(rt){return{pos:M[rt.w],weight:b.edge(rt).weight}}),"pos")}),!0),B=1;B<S.length;)B<<=1;var R=2*B-1;B-=1;var U=m.map(new Array(R),function(){return 0}),H=0;return m.forEach(E.forEach(function(J){var rt=J.pos+B;U[rt]+=J.weight;for(var ft=0;rt>0;)rt%2&&(ft+=U[rt+1]),U[rt=rt-1>>1]+=J.weight;H+=J.weight*ft})),H}f.exports=function(b,_){for(var S=0,M=1;M<_.length;++M)S+=d(b,_[M-1],_[M]);return S}},3408:(f,k,h)=>{var m=h(8436),d=h(2588),b=h(6630),_=h(1026),S=h(3128),M=h(5093),E=h(574).Graph,B=h(1138);function R(J,rt,ft){return m.map(rt,function(K){return S(J,K,ft)})}function U(J,rt){var ft=new E;m.forEach(J,function(K){var _t=K.graph().root,at=_(K,_t,ft,rt);m.forEach(at.vs,function(st,bt){K.node(st).order=bt}),M(K,ft,at.vs)})}function H(J,rt){m.forEach(rt,function(ft){m.forEach(ft,function(K,_t){J.node(K).order=_t})})}f.exports=function(J){var rt=B.maxRank(J),ft=R(J,m.range(1,rt+1),"inEdges"),K=R(J,m.range(rt-1,-1,-1),"outEdges"),_t=d(J);H(J,_t);for(var at,st=Number.POSITIVE_INFINITY,bt=0,zt=0;zt<4;++bt,++zt){U(bt%2?ft:K,bt%4>=2),_t=B.buildLayerMatrix(J);var Tt=b(J,_t);Tt<st&&(zt=0,at=m.cloneDeep(_t),st=Tt)}H(J,at)}},2588:(f,k,h)=>{var m=h(8436);f.exports=function(d){var b={},_=m.filter(d.nodes(),function(B){return!d.children(B).length}),S=m.max(m.map(_,function(B){return d.node(B).rank})),M=m.map(m.range(S+1),function(){return[]}),E=m.sortBy(_,function(B){return d.node(B).rank});return m.forEach(E,function B(R){if(!m.has(b,R)){b[R]=!0;var U=d.node(R);M[U.rank].push(R),m.forEach(d.successors(R),B)}}),M}},9567:(f,k,h)=>{var m=h(8436);f.exports=function(d,b){var _={};return m.forEach(d,function(S,M){var E=_[S.v]={indegree:0,in:[],out:[],vs:[S.v],i:M};m.isUndefined(S.barycenter)||(E.barycenter=S.barycenter,E.weight=S.weight)}),m.forEach(b.edges(),function(S){var M=_[S.v],E=_[S.w];m.isUndefined(M)||m.isUndefined(E)||(E.indegree++,M.out.push(_[S.w]))}),function(S){var M=[];function E(U){return function(H){var J,rt,ft,K;H.merged||(m.isUndefined(H.barycenter)||m.isUndefined(U.barycenter)||H.barycenter>=U.barycenter)&&(rt=H,ft=0,K=0,(J=U).weight&&(ft+=J.barycenter*J.weight,K+=J.weight),rt.weight&&(ft+=rt.barycenter*rt.weight,K+=rt.weight),J.vs=rt.vs.concat(J.vs),J.barycenter=ft/K,J.weight=K,J.i=Math.min(rt.i,J.i),rt.merged=!0)}}function B(U){return function(H){H.in.push(U),--H.indegree==0&&S.push(H)}}for(;S.length;){var R=S.pop();M.push(R),m.forEach(R.in.reverse(),E(R)),m.forEach(R.out,B(R))}return m.map(m.filter(M,function(U){return!U.merged}),function(U){return m.pick(U,["vs","i","barycenter","weight"])})}(m.filter(_,function(S){return!S.indegree}))}},1026:(f,k,h)=>{var m=h(8436),d=h(5439),b=h(9567),_=h(7304);f.exports=function S(M,E,B,R){var U=M.children(E),H=M.node(E),J=H?H.borderLeft:void 0,rt=H?H.borderRight:void 0,ft={};J&&(U=m.filter(U,function(zt){return zt!==J&&zt!==rt}));var K=d(M,U);m.forEach(K,function(zt){if(M.children(zt.v).length){var Tt=S(M,zt.v,B,R);ft[zt.v]=Tt,m.has(Tt,"barycenter")&&(mt=zt,Ct=Tt,m.isUndefined(mt.barycenter)?(mt.barycenter=Ct.barycenter,mt.weight=Ct.weight):(mt.barycenter=(mt.barycenter*mt.weight+Ct.barycenter*Ct.weight)/(mt.weight+Ct.weight),mt.weight+=Ct.weight))}var mt,Ct});var _t=b(K,B);(function(zt,Tt){m.forEach(zt,function(mt){mt.vs=m.flatten(mt.vs.map(function(Ct){return Tt[Ct]?Tt[Ct].vs:Ct}),!0)})})(_t,ft);var at=_(_t,R);if(J&&(at.vs=m.flatten([J,at.vs,rt],!0),M.predecessors(J).length)){var st=M.node(M.predecessors(J)[0]),bt=M.node(M.predecessors(rt)[0]);m.has(at,"barycenter")||(at.barycenter=0,at.weight=0),at.barycenter=(at.barycenter*at.weight+st.order+bt.order)/(at.weight+2),at.weight+=2}return at}},7304:(f,k,h)=>{var m=h(8436),d=h(1138);function b(_,S,M){for(var E;S.length&&(E=m.last(S)).i<=M;)S.pop(),_.push(E.vs),M++;return M}f.exports=function(_,S){var M,E=d.partition(_,function(K){return m.has(K,"barycenter")}),B=E.lhs,R=m.sortBy(E.rhs,function(K){return-K.i}),U=[],H=0,J=0,rt=0;B.sort((M=!!S,function(K,_t){return K.barycenter<_t.barycenter?-1:K.barycenter>_t.barycenter?1:M?_t.i-K.i:K.i-_t.i})),rt=b(U,R,rt),m.forEach(B,function(K){rt+=K.vs.length,U.push(K.vs),H+=K.barycenter*K.weight,J+=K.weight,rt=b(U,R,rt)});var ft={vs:m.flatten(U,!0)};return J&&(ft.barycenter=H/J,ft.weight=J),ft}},4219:(f,k,h)=>{var m=h(8436);f.exports=function(d){var b=function(_){var S={},M=0;return m.forEach(_.children(),function E(B){var R=M;m.forEach(_.children(B),E),S[B]={low:R,lim:M++}}),S}(d);m.forEach(d.graph().dummyChains,function(_){for(var S=d.node(_),M=S.edgeObj,E=function(rt,ft,K,_t){var at,st,bt=[],zt=[],Tt=Math.min(ft[K].low,ft[_t].low),mt=Math.max(ft[K].lim,ft[_t].lim);at=K;do at=rt.parent(at),bt.push(at);while(at&&(ft[at].low>Tt||mt>ft[at].lim));for(st=at,at=_t;(at=rt.parent(at))!==st;)zt.push(at);return{path:bt.concat(zt.reverse()),lca:st}}(d,b,M.v,M.w),B=E.path,R=E.lca,U=0,H=B[U],J=!0;_!==M.w;){if(S=d.node(_),J){for(;(H=B[U])!==R&&d.node(H).maxRank<S.rank;)U++;H===R&&(J=!1)}if(!J){for(;U<B.length-1&&d.node(H=B[U+1]).minRank<=S.rank;)U++;H=B[U]}d.setParent(_,H),_=d.successors(_)[0]}})}},3573:(f,k,h)=>{var m=h(8436),d=h(574).Graph,b=h(1138);function _(rt,ft){var K={};return m.reduce(ft,function(_t,at){var st=0,bt=0,zt=_t.length,Tt=m.last(at);return m.forEach(at,function(mt,Ct){var xt=function(nt,dt){if(nt.node(dt).dummy)return m.find(nt.predecessors(dt),function(q){return nt.node(q).dummy})}(rt,mt),gt=xt?rt.node(xt).order:zt;(xt||mt===Tt)&&(m.forEach(at.slice(bt,Ct+1),function(nt){m.forEach(rt.predecessors(nt),function(dt){var q=rt.node(dt),kt=q.order;!(kt<st||gt<kt)||q.dummy&&rt.node(nt).dummy||M(K,dt,nt)})}),bt=Ct+1,st=gt)}),at}),K}function S(rt,ft){var K={};function _t(at,st,bt,zt,Tt){var mt;m.forEach(m.range(st,bt),function(Ct){mt=at[Ct],rt.node(mt).dummy&&m.forEach(rt.predecessors(mt),function(xt){var gt=rt.node(xt);gt.dummy&&(gt.order<zt||gt.order>Tt)&&M(K,xt,mt)})})}return m.reduce(ft,function(at,st){var bt,zt=-1,Tt=0;return m.forEach(st,function(mt,Ct){if(rt.node(mt).dummy==="border"){var xt=rt.predecessors(mt);xt.length&&(bt=rt.node(xt[0]).order,_t(st,Tt,Ct,zt,bt),Tt=Ct,zt=bt)}_t(st,Tt,st.length,bt,at.length)}),st}),K}function M(rt,ft,K){if(ft>K){var _t=ft;ft=K,K=_t}var at=rt[ft];at||(rt[ft]=at={}),at[K]=!0}function E(rt,ft,K){if(ft>K){var _t=ft;ft=K,K=_t}return m.has(rt[ft],K)}function B(rt,ft,K,_t){var at={},st={},bt={};return m.forEach(ft,function(zt){m.forEach(zt,function(Tt,mt){at[Tt]=Tt,st[Tt]=Tt,bt[Tt]=mt})}),m.forEach(ft,function(zt){var Tt=-1;m.forEach(zt,function(mt){var Ct=_t(mt);if(Ct.length){Ct=m.sortBy(Ct,function(q){return bt[q]});for(var xt=(Ct.length-1)/2,gt=Math.floor(xt),nt=Math.ceil(xt);gt<=nt;++gt){var dt=Ct[gt];st[mt]===mt&&Tt<bt[dt]&&!E(K,mt,dt)&&(st[dt]=mt,st[mt]=at[mt]=at[dt],Tt=bt[dt])}}})}),{root:at,align:st}}function R(rt,ft,K,_t,at){var st={},bt=function(mt,Ct,xt,gt){var nt=new d,dt=mt.graph(),q=function(kt,W,St){return function(Lt,Wt,ge){var Ve,we=Lt.node(Wt),he=Lt.node(ge),xe=0;if(xe+=we.width/2,m.has(we,"labelpos"))switch(we.labelpos.toLowerCase()){case"l":Ve=-we.width/2;break;case"r":Ve=we.width/2}if(Ve&&(xe+=St?Ve:-Ve),Ve=0,xe+=(we.dummy?W:kt)/2,xe+=(he.dummy?W:kt)/2,xe+=he.width/2,m.has(he,"labelpos"))switch(he.labelpos.toLowerCase()){case"l":Ve=he.width/2;break;case"r":Ve=-he.width/2}return Ve&&(xe+=St?Ve:-Ve),Ve=0,xe}}(dt.nodesep,dt.edgesep,gt);return m.forEach(Ct,function(kt){var W;m.forEach(kt,function(St){var Lt=xt[St];if(nt.setNode(Lt),W){var Wt=xt[W],ge=nt.edge(Wt,Lt);nt.setEdge(Wt,Lt,Math.max(q(mt,St,W),ge||0))}W=St})}),nt}(rt,ft,K,at),zt=at?"borderLeft":"borderRight";function Tt(mt,Ct){for(var xt=bt.nodes(),gt=xt.pop(),nt={};gt;)nt[gt]?mt(gt):(nt[gt]=!0,xt.push(gt),xt=xt.concat(Ct(gt))),gt=xt.pop()}return Tt(function(mt){st[mt]=bt.inEdges(mt).reduce(function(Ct,xt){return Math.max(Ct,st[xt.v]+bt.edge(xt))},0)},bt.predecessors.bind(bt)),Tt(function(mt){var Ct=bt.outEdges(mt).reduce(function(gt,nt){return Math.min(gt,st[nt.w]-bt.edge(nt))},Number.POSITIVE_INFINITY),xt=rt.node(mt);Ct!==Number.POSITIVE_INFINITY&&xt.borderType!==zt&&(st[mt]=Math.max(st[mt],Ct))},bt.successors.bind(bt)),m.forEach(_t,function(mt){st[mt]=st[K[mt]]}),st}function U(rt,ft){return m.minBy(m.values(ft),function(K){var _t=Number.NEGATIVE_INFINITY,at=Number.POSITIVE_INFINITY;return m.forIn(K,function(st,bt){var zt=function(Tt,mt){return Tt.node(mt).width}(rt,bt)/2;_t=Math.max(st+zt,_t),at=Math.min(st-zt,at)}),_t-at})}function H(rt,ft){var K=m.values(ft),_t=m.min(K),at=m.max(K);m.forEach(["u","d"],function(st){m.forEach(["l","r"],function(bt){var zt,Tt=st+bt,mt=rt[Tt];if(mt!==ft){var Ct=m.values(mt);(zt=bt==="l"?_t-m.min(Ct):at-m.max(Ct))&&(rt[Tt]=m.mapValues(mt,function(xt){return xt+zt}))}})})}function J(rt,ft){return m.mapValues(rt.ul,function(K,_t){if(ft)return rt[ft.toLowerCase()][_t];var at=m.sortBy(m.map(rt,_t));return(at[1]+at[2])/2})}f.exports={positionX:function(rt){var ft,K=b.buildLayerMatrix(rt),_t=m.merge(_(rt,K),S(rt,K)),at={};m.forEach(["u","d"],function(bt){ft=bt==="u"?K:m.values(K).reverse(),m.forEach(["l","r"],function(zt){zt==="r"&&(ft=m.map(ft,function(xt){return m.values(xt).reverse()}));var Tt=(bt==="u"?rt.predecessors:rt.successors).bind(rt),mt=B(0,ft,_t,Tt),Ct=R(rt,ft,mt.root,mt.align,zt==="r");zt==="r"&&(Ct=m.mapValues(Ct,function(xt){return-xt})),at[bt+zt]=Ct})});var st=U(rt,at);return H(at,st),J(at,rt.graph().align)},findType1Conflicts:_,findType2Conflicts:S,addConflict:M,hasConflict:E,verticalAlignment:B,horizontalCompaction:R,alignCoordinates:H,findSmallestWidthAlignment:U,balance:J}},7873:(f,k,h)=>{var m=h(8436),d=h(1138),b=h(3573).positionX;f.exports=function(_){(function(S){var M=d.buildLayerMatrix(S),E=S.graph().ranksep,B=0;m.forEach(M,function(R){var U=m.max(m.map(R,function(H){return S.node(H).height}));m.forEach(R,function(H){S.node(H).y=B+U/2}),B+=U+E})})(_=d.asNonCompoundGraph(_)),m.forEach(b(_),function(S,M){_.node(M).x=S})}},300:(f,k,h)=>{var m=h(8436),d=h(574).Graph,b=h(6681).slack;function _(E,B){return m.forEach(E.nodes(),function R(U){m.forEach(B.nodeEdges(U),function(H){var J=H.v,rt=U===J?H.w:J;E.hasNode(rt)||b(B,H)||(E.setNode(rt,{}),E.setEdge(U,rt,{}),R(rt))})}),E.nodeCount()}function S(E,B){return m.minBy(B.edges(),function(R){if(E.hasNode(R.v)!==E.hasNode(R.w))return b(B,R)})}function M(E,B,R){m.forEach(E.nodes(),function(U){B.node(U).rank+=R})}f.exports=function(E){var B,R,U=new d({directed:!1}),H=E.nodes()[0],J=E.nodeCount();for(U.setNode(H,{});_(U,E)<J;)B=S(U,E),R=U.hasNode(B.v)?b(E,B):-b(E,B),M(U,E,R);return U}},8093:(f,k,h)=>{var m=h(6681).longestPath,d=h(300),b=h(2472);f.exports=function(S){switch(S.graph().ranker){case"network-simplex":default:(function(M){b(M)})(S);break;case"tight-tree":(function(M){m(M),d(M)})(S);break;case"longest-path":_(S)}};var _=m},2472:(f,k,h)=>{var m=h(8436),d=h(300),b=h(6681).slack,_=h(6681).longestPath,S=h(574).alg.preorder,M=h(574).alg.postorder,E=h(1138).simplify;function B(at){at=E(at),_(at);var st,bt=d(at);for(H(bt),R(bt,at);st=rt(bt);)K(bt,at,st,ft(bt,at,st))}function R(at,st){var bt=M(at,at.nodes());bt=bt.slice(0,bt.length-1),m.forEach(bt,function(zt){(function(Tt,mt,Ct){var xt=Tt.node(Ct).parent;Tt.edge(Ct,xt).cutvalue=U(Tt,mt,Ct)})(at,st,zt)})}function U(at,st,bt){var zt=at.node(bt).parent,Tt=!0,mt=st.edge(bt,zt),Ct=0;return mt||(Tt=!1,mt=st.edge(zt,bt)),Ct=mt.weight,m.forEach(st.nodeEdges(bt),function(xt){var gt,nt,dt=xt.v===bt,q=dt?xt.w:xt.v;if(q!==zt){var kt=dt===Tt,W=st.edge(xt).weight;if(Ct+=kt?W:-W,gt=bt,nt=q,at.hasEdge(gt,nt)){var St=at.edge(bt,q).cutvalue;Ct+=kt?-St:St}}}),Ct}function H(at,st){arguments.length<2&&(st=at.nodes()[0]),J(at,{},1,st)}function J(at,st,bt,zt,Tt){var mt=bt,Ct=at.node(zt);return st[zt]=!0,m.forEach(at.neighbors(zt),function(xt){m.has(st,xt)||(bt=J(at,st,bt,xt,zt))}),Ct.low=mt,Ct.lim=bt++,Tt?Ct.parent=Tt:delete Ct.parent,bt}function rt(at){return m.find(at.edges(),function(st){return at.edge(st).cutvalue<0})}function ft(at,st,bt){var zt=bt.v,Tt=bt.w;st.hasEdge(zt,Tt)||(zt=bt.w,Tt=bt.v);var mt=at.node(zt),Ct=at.node(Tt),xt=mt,gt=!1;mt.lim>Ct.lim&&(xt=Ct,gt=!0);var nt=m.filter(st.edges(),function(dt){return gt===_t(0,at.node(dt.v),xt)&>!==_t(0,at.node(dt.w),xt)});return m.minBy(nt,function(dt){return b(st,dt)})}function K(at,st,bt,zt){var Tt=bt.v,mt=bt.w;at.removeEdge(Tt,mt),at.setEdge(zt.v,zt.w,{}),H(at),R(at,st),function(Ct,xt){var gt=m.find(Ct.nodes(),function(dt){return!xt.node(dt).parent}),nt=S(Ct,gt);nt=nt.slice(1),m.forEach(nt,function(dt){var q=Ct.node(dt).parent,kt=xt.edge(dt,q),W=!1;kt||(kt=xt.edge(q,dt),W=!0),xt.node(dt).rank=xt.node(q).rank+(W?kt.minlen:-kt.minlen)})}(at,st)}function _t(at,st,bt){return bt.low<=st.lim&&st.lim<=bt.lim}f.exports=B,B.initLowLimValues=H,B.initCutValues=R,B.calcCutValue=U,B.leaveEdge=rt,B.enterEdge=ft,B.exchangeEdges=K},6681:(f,k,h)=>{var m=h(8436);f.exports={longestPath:function(d){var b={};m.forEach(d.sources(),function _(S){var M=d.node(S);if(m.has(b,S))return M.rank;b[S]=!0;var E=m.min(m.map(d.outEdges(S),function(B){return _(B.w)-d.edge(B).minlen}));return E!==Number.POSITIVE_INFINITY&&E!=null||(E=0),M.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(S,M,E,B){var R;do R=m.uniqueId(B);while(S.hasNode(R));return E.dummy=M,S.setNode(R,E),R}function _(S){return m.max(m.map(S.nodes(),function(M){var E=S.node(M).rank;if(!m.isUndefined(E))return E}))}f.exports={addDummyNode:b,simplify:function(S){var M=new d().setGraph(S.graph());return m.forEach(S.nodes(),function(E){M.setNode(E,S.node(E))}),m.forEach(S.edges(),function(E){var B=M.edge(E.v,E.w)||{weight:0,minlen:1},R=S.edge(E);M.setEdge(E.v,E.w,{weight:B.weight+R.weight,minlen:Math.max(B.minlen,R.minlen)})}),M},asNonCompoundGraph:function(S){var M=new d({multigraph:S.isMultigraph()}).setGraph(S.graph());return m.forEach(S.nodes(),function(E){S.children(E).length||M.setNode(E,S.node(E))}),m.forEach(S.edges(),function(E){M.setEdge(E,S.edge(E))}),M},successorWeights:function(S){var M=m.map(S.nodes(),function(E){var B={};return m.forEach(S.outEdges(E),function(R){B[R.w]=(B[R.w]||0)+S.edge(R).weight}),B});return m.zipObject(S.nodes(),M)},predecessorWeights:function(S){var M=m.map(S.nodes(),function(E){var B={};return m.forEach(S.inEdges(E),function(R){B[R.v]=(B[R.v]||0)+S.edge(R).weight}),B});return m.zipObject(S.nodes(),M)},intersectRect:function(S,M){var E,B,R=S.x,U=S.y,H=M.x-R,J=M.y-U,rt=S.width/2,ft=S.height/2;if(!H&&!J)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(J)*rt>Math.abs(H)*ft?(J<0&&(ft=-ft),E=ft*H/J,B=ft):(H<0&&(rt=-rt),E=rt,B=rt*J/H),{x:R+E,y:U+B}},buildLayerMatrix:function(S){var M=m.map(m.range(_(S)+1),function(){return[]});return m.forEach(S.nodes(),function(E){var B=S.node(E),R=B.rank;m.isUndefined(R)||(M[R][B.order]=E)}),M},normalizeRanks:function(S){var M=m.min(m.map(S.nodes(),function(E){return S.node(E).rank}));m.forEach(S.nodes(),function(E){var B=S.node(E);m.has(B,"rank")&&(B.rank-=M)})},removeEmptyRanks:function(S){var M=m.min(m.map(S.nodes(),function(U){return S.node(U).rank})),E=[];m.forEach(S.nodes(),function(U){var H=S.node(U).rank-M;E[H]||(E[H]=[]),E[H].push(U)});var B=0,R=S.graph().nodeRankFactor;m.forEach(E,function(U,H){m.isUndefined(U)&&H%R!=0?--B:B&&m.forEach(U,function(J){S.node(J).rank+=B})})},addBorderNode:function(S,M,E,B){var R={width:0,height:0};return arguments.length>=4&&(R.rank=E,R.order=B),b(S,"border",R,M)},maxRank:_,partition:function(S,M){var E={lhs:[],rhs:[]};return m.forEach(S,function(B){M(B)?E.lhs.push(B):E.rhs.push(B)}),E},time:function(S,M){var E=m.now();try{return M()}finally{console.log(S+" time: "+(m.now()-E)+"ms")}},notime:function(S,M){return M()}}},8177:f=>{f.exports="0.8.5"},7856:function(f){f.exports=function(){function k(ct){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(ct)}function h(ct,Te){return h=Object.setPrototypeOf||function(pe,Pe){return pe.__proto__=Pe,pe},h(ct,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(ct,Te,pe){return d=m()?Reflect.construct:function(Pe,on,Ze){var un=[null];un.push.apply(un,on);var Ie=new(Function.bind.apply(Pe,un));return Ze&&h(Ie,Ze.prototype),Ie},d.apply(null,arguments)}function b(ct){return function(Te){if(Array.isArray(Te))return _(Te)}(ct)||function(Te){if(typeof Symbol<"u"&&Te[Symbol.iterator]!=null||Te["@@iterator"]!=null)return Array.from(Te)}(ct)||function(Te,pe){if(Te){if(typeof Te=="string")return _(Te,pe);var Pe=Object.prototype.toString.call(Te).slice(8,-1);return Pe==="Object"&&Te.constructor&&(Pe=Te.constructor.name),Pe==="Map"||Pe==="Set"?Array.from(Te):Pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pe)?_(Te,pe):void 0}}(ct)||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 _(ct,Te){(Te==null||Te>ct.length)&&(Te=ct.length);for(var pe=0,Pe=new Array(Te);pe<Te;pe++)Pe[pe]=ct[pe];return Pe}var S=Object.hasOwnProperty,M=Object.setPrototypeOf,E=Object.isFrozen,B=Object.getPrototypeOf,R=Object.getOwnPropertyDescriptor,U=Object.freeze,H=Object.seal,J=Object.create,rt=typeof Reflect<"u"&&Reflect,ft=rt.apply,K=rt.construct;ft||(ft=function(ct,Te,pe){return ct.apply(Te,pe)}),U||(U=function(ct){return ct}),H||(H=function(ct){return ct}),K||(K=function(ct,Te){return d(ct,b(Te))});var _t,at=dt(Array.prototype.forEach),st=dt(Array.prototype.pop),bt=dt(Array.prototype.push),zt=dt(String.prototype.toLowerCase),Tt=dt(String.prototype.match),mt=dt(String.prototype.replace),Ct=dt(String.prototype.indexOf),xt=dt(String.prototype.trim),gt=dt(RegExp.prototype.test),nt=(_t=TypeError,function(){for(var ct=arguments.length,Te=new Array(ct),pe=0;pe<ct;pe++)Te[pe]=arguments[pe];return K(_t,Te)});function dt(ct){return function(Te){for(var pe=arguments.length,Pe=new Array(pe>1?pe-1:0),on=1;on<pe;on++)Pe[on-1]=arguments[on];return ft(ct,Te,Pe)}}function q(ct,Te,pe){pe=pe||zt,M&&M(ct,null);for(var Pe=Te.length;Pe--;){var on=Te[Pe];if(typeof on=="string"){var Ze=pe(on);Ze!==on&&(E(Te)||(Te[Pe]=Ze),on=Ze)}ct[on]=!0}return ct}function kt(ct){var Te,pe=J(null);for(Te in ct)ft(S,ct,[Te])&&(pe[Te]=ct[Te]);return pe}function W(ct,Te){for(;ct!==null;){var pe=R(ct,Te);if(pe){if(pe.get)return dt(pe.get);if(typeof pe.value=="function")return dt(pe.value)}ct=B(ct)}return function(Pe){return console.warn("fallback value for",Pe),null}}var St=U(["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=U(["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"]),Wt=U(["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=U(["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"]),Ve=U(["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"]),we=U(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),he=U(["#text"]),xe=U(["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"]),Le=U(["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=U(["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"]),be=U(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Sn=H(/\{\{[\w\W]*|[\w\W]*\}\}/gm),me=H(/<%[\w\W]*|[\w\W]*%>/gm),Je=H(/^data-[\-\w.\u00B7-\uFFFF]/),Dt=H(/^aria-[\-\w]+$/),ue=H(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),re=H(/^(?:\w+script|data):/i),At=H(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ee=H(/^html$/i),Q=function(){return typeof window>"u"?null:window},ce=function(ct,Te){if(k(ct)!=="object"||typeof ct.createPolicy!="function")return null;var pe=null,Pe="data-tt-policy-suffix";Te.currentScript&&Te.currentScript.hasAttribute(Pe)&&(pe=Te.currentScript.getAttribute(Pe));var on="dompurify"+(pe?"#"+pe:"");try{return ct.createPolicy(on,{createHTML:function(Ze){return Ze},createScriptURL:function(Ze){return Ze}})}catch{return console.warn("TrustedTypes policy "+on+" could not be created."),null}};return function ct(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Q(),pe=function(Jt){return ct(Jt)};if(pe.version="2.3.10",pe.removed=[],!Te||!Te.document||Te.document.nodeType!==9)return pe.isSupported=!1,pe;var Pe=Te.document,on=Te.document,Ze=Te.DocumentFragment,un=Te.HTMLTemplateElement,Ie=Te.Node,De=Te.Element,ze=Te.NodeFilter,Re=Te.NamedNodeMap,_e=Re===void 0?Te.NamedNodeMap||Te.MozNamedAttrMap:Re,oe=Te.HTMLFormElement,vn=Te.DOMParser,We=Te.trustedTypes,cn=De.prototype,He=W(cn,"cloneNode"),En=W(cn,"nextSibling"),Qn=W(cn,"childNodes"),In=W(cn,"parentNode");if(typeof un=="function"){var Bn=on.createElement("template");Bn.content&&Bn.content.ownerDocument&&(on=Bn.content.ownerDocument)}var Ne=ce(We,Pe),Qe=Ne?Ne.createHTML(""):"",nn=on,Se=nn.implementation,An=nn.createNodeIterator,Bt=nn.createDocumentFragment,xr=nn.getElementsByTagName,Gt=Pe.importNode,qn={};try{qn=kt(on).documentMode?on.documentMode:{}}catch{}var zn={};pe.isSupported=typeof In=="function"&&Se&&Se.createHTMLDocument!==void 0&&qn!==9;var Gn,On,Vn=Sn,Pn=me,Nn=Je,Un=Dt,Yn=re,jn=At,ga=ue,Lr=null,Ar=q({},[].concat(b(St),b(Lt),b(Wt),b(Ve),b(he))),Ln=null,si=q({},[].concat(b(xe),b(Le),b(Me),b(be))),Rn=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}})),kr=null,Ir=null,br=!0,Zr=!0,Rt=!1,Nr=!1,Mr=!1,Zn=!1,Jr=!1,$r=!1,Dr=!1,Qr=!1,Na=!0,hr=!0,Si=!1,Bi={},Ai=null,fn=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"]),mn=null,Kn=q({},["audio","video","img","source","image","track"]),rn=null,lr=q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xt="http://www.w3.org/1998/Math/MathML",Pr="http://www.w3.org/2000/svg",Qt="http://www.w3.org/1999/xhtml",wr=Qt,ri=!1,ci=["application/xhtml+xml","text/html"],La="text/html",Ri=null,kn=on.createElement("form"),Ur=function(Jt){return Jt instanceof RegExp||Jt instanceof Function},Dn=function(Jt){Ri&&Ri===Jt||(Jt&&k(Jt)==="object"||(Jt={}),Jt=kt(Jt),Gn=Gn=ci.indexOf(Jt.PARSER_MEDIA_TYPE)===-1?La:Jt.PARSER_MEDIA_TYPE,On=Gn==="application/xhtml+xml"?function(wn){return wn}:zt,Lr="ALLOWED_TAGS"in Jt?q({},Jt.ALLOWED_TAGS,On):Ar,Ln="ALLOWED_ATTR"in Jt?q({},Jt.ALLOWED_ATTR,On):si,rn="ADD_URI_SAFE_ATTR"in Jt?q(kt(lr),Jt.ADD_URI_SAFE_ATTR,On):lr,mn="ADD_DATA_URI_TAGS"in Jt?q(kt(Kn),Jt.ADD_DATA_URI_TAGS,On):Kn,Ai="FORBID_CONTENTS"in Jt?q({},Jt.FORBID_CONTENTS,On):fn,kr="FORBID_TAGS"in Jt?q({},Jt.FORBID_TAGS,On):{},Ir="FORBID_ATTR"in Jt?q({},Jt.FORBID_ATTR,On):{},Bi="USE_PROFILES"in Jt&&Jt.USE_PROFILES,br=Jt.ALLOW_ARIA_ATTR!==!1,Zr=Jt.ALLOW_DATA_ATTR!==!1,Rt=Jt.ALLOW_UNKNOWN_PROTOCOLS||!1,Nr=Jt.SAFE_FOR_TEMPLATES||!1,Mr=Jt.WHOLE_DOCUMENT||!1,$r=Jt.RETURN_DOM||!1,Dr=Jt.RETURN_DOM_FRAGMENT||!1,Qr=Jt.RETURN_TRUSTED_TYPE||!1,Jr=Jt.FORCE_BODY||!1,Na=Jt.SANITIZE_DOM!==!1,hr=Jt.KEEP_CONTENT!==!1,Si=Jt.IN_PLACE||!1,ga=Jt.ALLOWED_URI_REGEXP||ga,wr=Jt.NAMESPACE||Qt,Jt.CUSTOM_ELEMENT_HANDLING&&Ur(Jt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Rn.tagNameCheck=Jt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Jt.CUSTOM_ELEMENT_HANDLING&&Ur(Jt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Rn.attributeNameCheck=Jt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Jt.CUSTOM_ELEMENT_HANDLING&&typeof Jt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Rn.allowCustomizedBuiltInElements=Jt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nr&&(Zr=!1),Dr&&($r=!0),Bi&&(Lr=q({},b(he)),Ln=[],Bi.html===!0&&(q(Lr,St),q(Ln,xe)),Bi.svg===!0&&(q(Lr,Lt),q(Ln,Le),q(Ln,be)),Bi.svgFilters===!0&&(q(Lr,Wt),q(Ln,Le),q(Ln,be)),Bi.mathMl===!0&&(q(Lr,Ve),q(Ln,Me),q(Ln,be))),Jt.ADD_TAGS&&(Lr===Ar&&(Lr=kt(Lr)),q(Lr,Jt.ADD_TAGS,On)),Jt.ADD_ATTR&&(Ln===si&&(Ln=kt(Ln)),q(Ln,Jt.ADD_ATTR,On)),Jt.ADD_URI_SAFE_ATTR&&q(rn,Jt.ADD_URI_SAFE_ATTR,On),Jt.FORBID_CONTENTS&&(Ai===fn&&(Ai=kt(Ai)),q(Ai,Jt.FORBID_CONTENTS,On)),hr&&(Lr["#text"]=!0),Mr&&q(Lr,["html","head","body"]),Lr.table&&(q(Lr,["tbody"]),delete kr.tbody),U&&U(Jt),Ri=Jt)},ya=q({},["mi","mo","mn","ms","mtext"]),Br=q({},["foreignobject","desc","title","annotation-xml"]),Fi=q({},["title","style","font","a","script"]),zr=q({},Lt);q(zr,Wt),q(zr,ge);var gr=q({},Ve);q(gr,we);var ki=function(Jt){var wn=In(Jt);wn&&wn.tagName||(wn={namespaceURI:Qt,tagName:"template"});var sn=zt(Jt.tagName),ar=zt(wn.tagName);return Jt.namespaceURI===Pr?wn.namespaceURI===Qt?sn==="svg":wn.namespaceURI===Xt?sn==="svg"&&(ar==="annotation-xml"||ya[ar]):Boolean(zr[sn]):Jt.namespaceURI===Xt?wn.namespaceURI===Qt?sn==="math":wn.namespaceURI===Pr?sn==="math"&&Br[ar]:Boolean(gr[sn]):Jt.namespaceURI===Qt&&!(wn.namespaceURI===Pr&&!Br[ar])&&!(wn.namespaceURI===Xt&&!ya[ar])&&!gr[sn]&&(Fi[sn]||!zr[sn])},Hr=function(Jt){bt(pe.removed,{element:Jt});try{Jt.parentNode.removeChild(Jt)}catch{try{Jt.outerHTML=Qe}catch{Jt.remove()}}},ti=function(Jt,wn){try{bt(pe.removed,{attribute:wn.getAttributeNode(Jt),from:wn})}catch{bt(pe.removed,{attribute:null,from:wn})}if(wn.removeAttribute(Jt),Jt==="is"&&!Ln[Jt])if($r||Dr)try{Hr(wn)}catch{}else try{wn.setAttribute(Jt,"")}catch{}},Ki=function(Jt){var wn,sn;if(Jr)Jt="<remove></remove>"+Jt;else{var ar=Tt(Jt,/^[\r\n\t ]+/);sn=ar&&ar[0]}Gn==="application/xhtml+xml"&&(Jt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Jt+"</body></html>");var Yr=Ne?Ne.createHTML(Jt):Jt;if(wr===Qt)try{wn=new vn().parseFromString(Yr,Gn)}catch{}if(!wn||!wn.documentElement){wn=Se.createDocument(wr,"template",null);try{wn.documentElement.innerHTML=ri?"":Yr}catch{}}var di=wn.body||wn.documentElement;return Jt&&sn&&di.insertBefore(on.createTextNode(sn),di.childNodes[0]||null),wr===Qt?xr.call(wn,Mr?"html":"body")[0]:Mr?wn.documentElement:di},Ci=function(Jt){return An.call(Jt.ownerDocument||Jt,Jt,ze.SHOW_ELEMENT|ze.SHOW_COMMENT|ze.SHOW_TEXT,null,!1)},ei=function(Jt){return Jt instanceof oe&&(typeof Jt.nodeName!="string"||typeof Jt.textContent!="string"||typeof Jt.removeChild!="function"||!(Jt.attributes instanceof _e)||typeof Jt.removeAttribute!="function"||typeof Jt.setAttribute!="function"||typeof Jt.namespaceURI!="string"||typeof Jt.insertBefore!="function")},ma=function(Jt){return k(Ie)==="object"?Jt instanceof Ie:Jt&&k(Jt)==="object"&&typeof Jt.nodeType=="number"&&typeof Jt.nodeName=="string"},qr=function(Jt,wn,sn){zn[Jt]&&at(zn[Jt],function(ar){ar.call(pe,wn,sn,Ri)})},Xr=function(Jt){var wn;if(qr("beforeSanitizeElements",Jt,null),ei(Jt)||gt(/[\u0080-\uFFFF]/,Jt.nodeName))return Hr(Jt),!0;var sn=On(Jt.nodeName);if(qr("uponSanitizeElement",Jt,{tagName:sn,allowedTags:Lr}),Jt.hasChildNodes()&&!ma(Jt.firstElementChild)&&(!ma(Jt.content)||!ma(Jt.content.firstElementChild))&>(/<[/\w]/g,Jt.innerHTML)&>(/<[/\w]/g,Jt.textContent)||sn==="select"&>(/<template/i,Jt.innerHTML))return Hr(Jt),!0;if(!Lr[sn]||kr[sn]){if(!kr[sn]&&Pi(sn)&&(Rn.tagNameCheck instanceof RegExp&>(Rn.tagNameCheck,sn)||Rn.tagNameCheck instanceof Function&&Rn.tagNameCheck(sn)))return!1;if(hr&&!Ai[sn]){var ar=In(Jt)||Jt.parentNode,Yr=Qn(Jt)||Jt.childNodes;if(Yr&&ar)for(var di=Yr.length-1;di>=0;--di)ar.insertBefore(He(Yr[di],!0),En(Jt))}return Hr(Jt),!0}return Jt instanceof De&&!ki(Jt)?(Hr(Jt),!0):sn!=="noscript"&&sn!=="noembed"||!gt(/<\/no(script|embed)/i,Jt.innerHTML)?(Nr&&Jt.nodeType===3&&(wn=Jt.textContent,wn=mt(wn,Vn," "),wn=mt(wn,Pn," "),Jt.textContent!==wn&&(bt(pe.removed,{element:Jt.cloneNode()}),Jt.textContent=wn)),qr("afterSanitizeElements",Jt,null),!1):(Hr(Jt),!0)},ii=function(Jt,wn,sn){if(Na&&(wn==="id"||wn==="name")&&(sn in on||sn in kn))return!1;if(!(Zr&&!Ir[wn]&>(Nn,wn))){if(!(br&>(Un,wn))){if(!Ln[wn]||Ir[wn]){if(!(Pi(Jt)&&(Rn.tagNameCheck instanceof RegExp&>(Rn.tagNameCheck,Jt)||Rn.tagNameCheck instanceof Function&&Rn.tagNameCheck(Jt))&&(Rn.attributeNameCheck instanceof RegExp&>(Rn.attributeNameCheck,wn)||Rn.attributeNameCheck instanceof Function&&Rn.attributeNameCheck(wn))||wn==="is"&&Rn.allowCustomizedBuiltInElements&&(Rn.tagNameCheck instanceof RegExp&>(Rn.tagNameCheck,sn)||Rn.tagNameCheck instanceof Function&&Rn.tagNameCheck(sn))))return!1}else if(!rn[wn]){if(!gt(ga,mt(sn,jn,""))){if((wn!=="src"&&wn!=="xlink:href"&&wn!=="href"||Jt==="script"||Ct(sn,"data:")!==0||!mn[Jt])&&!(Rt&&!gt(Yn,mt(sn,jn,"")))){if(sn)return!1}}}}}return!0},Pi=function(Jt){return Jt.indexOf("-")>0},Co=function(Jt){var wn,sn,ar,Yr;qr("beforeSanitizeAttributes",Jt,null);var di=Jt.attributes;if(di){var Kr={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ln};for(Yr=di.length;Yr--;){var Hi=wn=di[Yr],Ji=Hi.name,li=Hi.namespaceURI;if(sn=Ji==="value"?wn.value:xt(wn.value),ar=On(Ji),Kr.attrName=ar,Kr.attrValue=sn,Kr.keepAttr=!0,Kr.forceKeepAttr=void 0,qr("uponSanitizeAttribute",Jt,Kr),sn=Kr.attrValue,!Kr.forceKeepAttr&&(ti(Ji,Jt),Kr.keepAttr))if(gt(/\/>/i,sn))ti(Ji,Jt);else{Nr&&(sn=mt(sn,Vn," "),sn=mt(sn,Pn," "));var Ka=On(Jt.nodeName);if(ii(Ka,ar,sn)){if(Ne&&k(We)==="object"&&typeof We.getAttributeType=="function"&&!li)switch(We.getAttributeType(Ka,ar)){case"TrustedHTML":sn=Ne.createHTML(sn);break;case"TrustedScriptURL":sn=Ne.createScriptURL(sn)}try{li?Jt.setAttributeNS(li,Ji,sn):Jt.setAttribute(Ji,sn),st(pe.removed)}catch{}}}}qr("afterSanitizeAttributes",Jt,null)}},$i=function Jt(wn){var sn,ar=Ci(wn);for(qr("beforeSanitizeShadowDOM",wn,null);sn=ar.nextNode();)qr("uponSanitizeShadowNode",sn,null),Xr(sn)||(sn.content instanceof Ze&&Jt(sn.content),Co(sn));qr("afterSanitizeShadowDOM",wn,null)};return pe.sanitize=function(Jt,wn){var sn,ar,Yr,di,Kr;if((ri=!Jt)&&(Jt="<!-->"),typeof Jt!="string"&&!ma(Jt)){if(typeof Jt.toString!="function")throw nt("toString is not a function");if(typeof(Jt=Jt.toString())!="string")throw nt("dirty is not a string, aborting")}if(!pe.isSupported){if(k(Te.toStaticHTML)==="object"||typeof Te.toStaticHTML=="function"){if(typeof Jt=="string")return Te.toStaticHTML(Jt);if(ma(Jt))return Te.toStaticHTML(Jt.outerHTML)}return Jt}if(Zn||Dn(wn),pe.removed=[],typeof Jt=="string"&&(Si=!1),Si){if(Jt.nodeName){var Hi=On(Jt.nodeName);if(!Lr[Hi]||kr[Hi])throw nt("root node is forbidden and cannot be sanitized in-place")}}else if(Jt instanceof Ie)(ar=(sn=Ki("<!---->")).ownerDocument.importNode(Jt,!0)).nodeType===1&&ar.nodeName==="BODY"||ar.nodeName==="HTML"?sn=ar:sn.appendChild(ar);else{if(!$r&&!Nr&&!Mr&&Jt.indexOf("<")===-1)return Ne&&Qr?Ne.createHTML(Jt):Jt;if(!(sn=Ki(Jt)))return $r?null:Qr?Qe:""}sn&&Jr&&Hr(sn.firstChild);for(var Ji=Ci(Si?Jt:sn);Yr=Ji.nextNode();)Yr.nodeType===3&&Yr===di||Xr(Yr)||(Yr.content instanceof Ze&&$i(Yr.content),Co(Yr),di=Yr);if(di=null,Si)return Jt;if($r){if(Dr)for(Kr=Bt.call(sn.ownerDocument);sn.firstChild;)Kr.appendChild(sn.firstChild);else Kr=sn;return Ln.shadowroot&&(Kr=Gt.call(Pe,Kr,!0)),Kr}var li=Mr?sn.outerHTML:sn.innerHTML;return Mr&&Lr["!doctype"]&&sn.ownerDocument&&sn.ownerDocument.doctype&&sn.ownerDocument.doctype.name&>(Ee,sn.ownerDocument.doctype.name)&&(li="<!DOCTYPE "+sn.ownerDocument.doctype.name+`>
|
|
`+li),Nr&&(li=mt(li,Vn," "),li=mt(li,Pn," ")),Ne&&Qr?Ne.createHTML(li):li},pe.setConfig=function(Jt){Dn(Jt),Zn=!0},pe.clearConfig=function(){Ri=null,Zn=!1},pe.isValidAttribute=function(Jt,wn,sn){Ri||Dn({});var ar=On(Jt),Yr=On(wn);return ii(ar,Yr,sn)},pe.addHook=function(Jt,wn){typeof wn=="function"&&(zn[Jt]=zn[Jt]||[],bt(zn[Jt],wn))},pe.removeHook=function(Jt){if(zn[Jt])return st(zn[Jt])},pe.removeHooks=function(Jt){zn[Jt]&&(zn[Jt]=[])},pe.removeAllHooks=function(){zn={}},pe}()}()},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,_={},S=[];function M(E){m.has(_,E)||(_[E]=!0,b.push(E),m.each(d.successors(E),M),m.each(d.predecessors(E),M))}return m.each(d.nodes(),function(E){b=[],M(E),b.length&&S.push(b)}),S}},3984:(f,k,h)=>{var m=h(9126);function d(b,_,S,M,E,B){m.has(M,_)||(M[_]=!0,S||B.push(_),m.each(E(_),function(R){d(b,R,S,M,E,B)}),S&&B.push(_))}f.exports=function(b,_,S){m.isArray(_)||(_=[_]);var M=(b.isDirected()?b.successors:b.neighbors).bind(b),E=[],B={};return m.each(_,function(R){if(!b.hasNode(R))throw new Error("Graph does not have node: "+R);d(b,R,S==="post",B,M,E)}),E}},4847:(f,k,h)=>{var m=h(3763),d=h(9126);f.exports=function(b,_,S){return d.transform(b.nodes(),function(M,E){M[E]=m(b,E,_,S)},{})}},3763:(f,k,h)=>{var m=h(9126),d=h(9675);f.exports=function(_,S,M,E){return function(B,R,U,H){var J,rt,ft={},K=new d,_t=function(at){var st=at.v!==J?at.v:at.w,bt=ft[st],zt=U(at),Tt=rt.distance+zt;if(zt<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+at+" Weight: "+zt);Tt<bt.distance&&(bt.distance=Tt,bt.predecessor=J,K.decrease(st,Tt))};for(B.nodes().forEach(function(at){var st=at===R?0:Number.POSITIVE_INFINITY;ft[at]={distance:st},K.add(at,st)});K.size()>0&&(J=K.removeMin(),(rt=ft[J]).distance!==Number.POSITIVE_INFINITY);)H(J).forEach(_t);return ft}(_,String(S),M||b,E||function(B){return _.outEdges(B)})};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,_,S){return function(M,E,B){var R={},U=M.nodes();return U.forEach(function(H){R[H]={},R[H][H]={distance:0},U.forEach(function(J){H!==J&&(R[H][J]={distance:Number.POSITIVE_INFINITY})}),B(H).forEach(function(J){var rt=J.v===H?J.w:J.v,ft=E(J);R[H][rt]={distance:ft,predecessor:H}})}),U.forEach(function(H){var J=R[H];U.forEach(function(rt){var ft=R[rt];U.forEach(function(K){var _t=ft[H],at=J[K],st=ft[K],bt=_t.distance+at.distance;bt<st.distance&&(st.distance=bt,st.predecessor=at.predecessor)})})}),R}(b,_||d,S||function(M){return b.outEdges(M)})};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(_,S){var M,E=new d,B={},R=new b;function U(J){var rt=J.v===M?J.w:J.v,ft=R.priority(rt);if(ft!==void 0){var K=S(J);K<ft&&(B[rt]=M,R.decrease(rt,K))}}if(_.nodeCount()===0)return E;m.each(_.nodes(),function(J){R.add(J,Number.POSITIVE_INFINITY),E.setNode(J)}),R.decrease(_.nodes()[0],0);for(var H=!1;R.size()>0;){if(M=R.removeMin(),m.has(B,M))E.setEdge(M,B[M]);else{if(H)throw new Error("Input graph is not connected: "+_);H=!0}_.nodeEdges(M).forEach(U)}return E}},5023:(f,k,h)=>{var m=h(9126);f.exports=function(d){var b=0,_=[],S={},M=[];function E(B){var R=S[B]={onStack:!0,lowlink:b,index:b++};if(_.push(B),d.successors(B).forEach(function(J){m.has(S,J)?S[J].onStack&&(R.lowlink=Math.min(R.lowlink,S[J].index)):(E(J),R.lowlink=Math.min(R.lowlink,S[J].lowlink))}),R.lowlink===R.index){var U,H=[];do U=_.pop(),S[U].onStack=!1,H.push(U);while(B!==U);M.push(H)}}return d.nodes().forEach(function(B){m.has(S,B)||E(B)}),M}},2166:(f,k,h)=>{var m=h(9126);function d(_){var S={},M={},E=[];if(m.each(_.sinks(),function B(R){if(m.has(M,R))throw new b;m.has(S,R)||(M[R]=!0,S[R]=!0,m.each(_.predecessors(R),B),delete M[R],E.push(R))}),m.size(S)!==_.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 S=this._keyIndices;if(b=String(b),!m.has(S,b)){var M=this._arr,E=M.length;return S[b]=E,M.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 S=this._keyIndices[b];if(_>this._arr[S].priority)throw new Error("New priority is greater than current priority. Key: "+b+" Old: "+this._arr[S].priority+" New: "+_);this._arr[S].priority=_,this._decrease(S)},d.prototype._heapify=function(b){var _=this._arr,S=2*b,M=S+1,E=b;S<_.length&&(E=_[S].priority<_[E].priority?S:E,M<_.length&&(E=_[M].priority<_[E].priority?M:E),E!==b&&(this._swap(b,E),this._heapify(E)))},d.prototype._decrease=function(b){for(var _,S=this._arr,M=S[b].priority;b!==0&&!(S[_=b>>1].priority<M);)this._swap(b,_),b=_},d.prototype._swap=function(b,_){var S=this._arr,M=this._keyIndices,E=S[b],B=S[_];S[b]=B,S[_]=E,M[B.key]=b,M[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,U){R[U]?R[U]++:R[U]=1}function S(R,U){--R[U]||delete R[U]}function M(R,U,H,J){var rt=""+U,ft=""+H;if(!R&&rt>ft){var K=rt;rt=ft,ft=K}return rt+""+ft+""+(m.isUndefined(J)?"\0":J)}function E(R,U,H,J){var rt=""+U,ft=""+H;if(!R&&rt>ft){var K=rt;rt=ft,ft=K}var _t={v:rt,w:ft};return J&&(_t.name=J),_t}function B(R,U){return M(R,U.v,U.w,U.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(U){return m.isEmpty(R._in[U])})},b.prototype.sinks=function(){var R=this;return m.filter(this.nodes(),function(U){return m.isEmpty(R._out[U])})},b.prototype.setNodes=function(R,U){var H=arguments,J=this;return m.each(R,function(rt){H.length>1?J.setNode(rt,U):J.setNode(rt)}),this},b.prototype.setNode=function(R,U){return m.has(this._nodes,R)?(arguments.length>1&&(this._nodes[R]=U),this):(this._nodes[R]=arguments.length>1?U: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 U=this;if(m.has(this._nodes,R)){var H=function(J){U.removeEdge(U._edgeObjs[J])};delete this._nodes[R],this._isCompound&&(this._removeFromParentsChildList(R),delete this._parent[R],m.each(this.children(R),function(J){U.setParent(J)}),delete this._children[R]),m.each(m.keys(this._in[R]),H),delete this._in[R],delete this._preds[R],m.each(m.keys(this._out[R]),H),delete this._out[R],delete this._sucs[R],--this._nodeCount}return this},b.prototype.setParent=function(R,U){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(m.isUndefined(U))U=d;else{for(var H=U+="";!m.isUndefined(H);H=this.parent(H))if(H===R)throw new Error("Setting "+U+" as parent of "+R+" would create a cycle");this.setNode(U)}return this.setNode(R),this._removeFromParentsChildList(R),this._parent[R]=U,this._children[U][R]=!0,this},b.prototype._removeFromParentsChildList=function(R){delete this._children[this._parent[R]][R]},b.prototype.parent=function(R){if(this._isCompound){var U=this._parent[R];if(U!==d)return U}},b.prototype.children=function(R){if(m.isUndefined(R)&&(R=d),this._isCompound){var U=this._children[R];if(U)return m.keys(U)}else{if(R===d)return this.nodes();if(this.hasNode(R))return[]}},b.prototype.predecessors=function(R){var U=this._preds[R];if(U)return m.keys(U)},b.prototype.successors=function(R){var U=this._sucs[R];if(U)return m.keys(U)},b.prototype.neighbors=function(R){var U=this.predecessors(R);if(U)return m.union(U,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 U=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});U.setGraph(this.graph());var H=this;m.each(this._nodes,function(ft,K){R(K)&&U.setNode(K,ft)}),m.each(this._edgeObjs,function(ft){U.hasNode(ft.v)&&U.hasNode(ft.w)&&U.setEdge(ft,H.edge(ft))});var J={};function rt(ft){var K=H.parent(ft);return K===void 0||U.hasNode(K)?(J[ft]=K,K):K in J?J[K]:rt(K)}return this._isCompound&&m.each(U.nodes(),function(ft){U.setParent(ft,rt(ft))}),U},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,U){var H=this,J=arguments;return m.reduce(R,function(rt,ft){return J.length>1?H.setEdge(rt,ft,U):H.setEdge(rt,ft),ft}),this},b.prototype.setEdge=function(){var R,U,H,J,rt=!1,ft=arguments[0];typeof ft=="object"&&ft!==null&&"v"in ft?(R=ft.v,U=ft.w,H=ft.name,arguments.length===2&&(J=arguments[1],rt=!0)):(R=ft,U=arguments[1],H=arguments[3],arguments.length>2&&(J=arguments[2],rt=!0)),R=""+R,U=""+U,m.isUndefined(H)||(H=""+H);var K=M(this._isDirected,R,U,H);if(m.has(this._edgeLabels,K))return rt&&(this._edgeLabels[K]=J),this;if(!m.isUndefined(H)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(R),this.setNode(U),this._edgeLabels[K]=rt?J:this._defaultEdgeLabelFn(R,U,H);var _t=E(this._isDirected,R,U,H);return R=_t.v,U=_t.w,Object.freeze(_t),this._edgeObjs[K]=_t,_(this._preds[U],R),_(this._sucs[R],U),this._in[U][K]=_t,this._out[R][K]=_t,this._edgeCount++,this},b.prototype.edge=function(R,U,H){var J=arguments.length===1?B(this._isDirected,arguments[0]):M(this._isDirected,R,U,H);return this._edgeLabels[J]},b.prototype.hasEdge=function(R,U,H){var J=arguments.length===1?B(this._isDirected,arguments[0]):M(this._isDirected,R,U,H);return m.has(this._edgeLabels,J)},b.prototype.removeEdge=function(R,U,H){var J=arguments.length===1?B(this._isDirected,arguments[0]):M(this._isDirected,R,U,H),rt=this._edgeObjs[J];return rt&&(R=rt.v,U=rt.w,delete this._edgeLabels[J],delete this._edgeObjs[J],S(this._preds[U],R),S(this._sucs[R],U),delete this._in[U][J],delete this._out[R][J],this._edgeCount--),this},b.prototype.inEdges=function(R,U){var H=this._in[R];if(H){var J=m.values(H);return U?m.filter(J,function(rt){return rt.v===U}):J}},b.prototype.outEdges=function(R,U){var H=this._out[R];if(H){var J=m.values(H);return U?m.filter(J,function(rt){return rt.w===U}):J}},b.prototype.nodeEdges=function(R,U){var H=this.inEdges(R,U);if(H)return H.concat(this.outEdges(R,U))}},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(S){return m.map(S.nodes(),function(M){var E=S.node(M),B=S.parent(M),R={v:M};return m.isUndefined(E)||(R.value=E),m.isUndefined(B)||(R.parent=B),R})}function _(S){return m.map(S.edges(),function(M){var E=S.edge(M),B={v:M.v,w:M.w};return m.isUndefined(M.name)||(B.name=M.name),m.isUndefined(E)||(B.value=E),B})}f.exports={write:function(S){var M={options:{directed:S.isDirected(),multigraph:S.isMultigraph(),compound:S.isCompound()},nodes:b(S),edges:_(S)};return m.isUndefined(S.graph())||(M.value=m.clone(S.graph())),M},read:function(S){var M=new d(S.options).setGraph(S.value);return m.each(S.nodes,function(E){M.setNode(E.v,E.value),E.parent&&M.setParent(E.v,E.parent)}),m.each(S.edges,function(E){M.setEdge({v:E.v,w:E.w,name:E.name},E.value)}),M}}},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),S=h(1866);function M(E){var B=-1,R=E==null?0:E.length;for(this.clear();++B<R;){var U=E[B];this.set(U[0],U[1])}}M.prototype.clear=m,M.prototype.delete=d,M.prototype.get=b,M.prototype.has=_,M.prototype.set=S,f.exports=M},8407:(f,k,h)=>{var m=h(7040),d=h(4125),b=h(2117),_=h(7518),S=h(4705);function M(E){var B=-1,R=E==null?0:E.length;for(this.clear();++B<R;){var U=E[B];this.set(U[0],U[1])}}M.prototype.clear=m,M.prototype.delete=d,M.prototype.get=b,M.prototype.has=_,M.prototype.set=S,f.exports=M},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),S=h(5265);function M(E){var B=-1,R=E==null?0:E.length;for(this.clear();++B<R;){var U=E[B];this.set(U[0],U[1])}}M.prototype.clear=m,M.prototype.delete=d,M.prototype.get=b,M.prototype.has=_,M.prototype.set=S,f.exports=M},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 _(S){var M=-1,E=S==null?0:S.length;for(this.__data__=new m;++M<E;)this.add(S[M])}_.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),S=h(4758),M=h(4309);function E(B){var R=this.__data__=new m(B);this.size=R.size}E.prototype.clear=d,E.prototype.delete=b,E.prototype.get=_,E.prototype.has=S,E.prototype.set=M,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 S=k[m];h(S,m,k)&&(_[b++]=S)}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),S=h(5776),M=h(6719),E=Object.prototype.hasOwnProperty;f.exports=function(B,R){var U=b(B),H=!U&&d(B),J=!U&&!H&&_(B),rt=!U&&!H&&!J&&M(B),ft=U||H||J||rt,K=ft?m(B.length,String):[],_t=K.length;for(var at in B)!R&&!E.call(B,at)||ft&&(at=="length"||J&&(at=="offset"||at=="parent")||rt&&(at=="buffer"||at=="byteLength"||at=="byteOffset")||S(at,_t))||K.push(at);return K}},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,_,S){(S!==void 0&&!d(b[_],S)||S===void 0&&!(_ in b))&&m(b,_,S)}},4865:(f,k,h)=>{var m=h(9465),d=h(7813),b=Object.prototype.hasOwnProperty;f.exports=function(_,S,M){var E=_[S];b.call(_,S)&&d(E,M)&&(M!==void 0||S in _)||m(_,S,M)}},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),S=h(3886),M=h(4626),E=h(278),B=h(8805),R=h(1911),U=h(8234),H=h(6904),J=h(4160),rt=h(3824),ft=h(9148),K=h(8517),_t=h(1469),at=h(4144),st=h(6688),bt=h(3218),zt=h(2928),Tt=h(3674),mt=h(1704),Ct="[object Arguments]",xt="[object Function]",gt="[object Object]",nt={};nt[Ct]=nt["[object Array]"]=nt["[object ArrayBuffer]"]=nt["[object DataView]"]=nt["[object Boolean]"]=nt["[object Date]"]=nt["[object Float32Array]"]=nt["[object Float64Array]"]=nt["[object Int8Array]"]=nt["[object Int16Array]"]=nt["[object Int32Array]"]=nt["[object Map]"]=nt["[object Number]"]=nt[gt]=nt["[object RegExp]"]=nt["[object Set]"]=nt["[object String]"]=nt["[object Symbol]"]=nt["[object Uint8Array]"]=nt["[object Uint8ClampedArray]"]=nt["[object Uint16Array]"]=nt["[object Uint32Array]"]=!0,nt["[object Error]"]=nt[xt]=nt["[object WeakMap]"]=!1,f.exports=function dt(q,kt,W,St,Lt,Wt){var ge,Ve=1&kt,we=2&kt,he=4&kt;if(W&&(ge=Lt?W(q,St,Lt,Wt):W(q)),ge!==void 0)return ge;if(!bt(q))return q;var xe=_t(q);if(xe){if(ge=rt(q),!Ve)return E(q,ge)}else{var Le=J(q),Me=Le==xt||Le=="[object GeneratorFunction]";if(at(q))return M(q,Ve);if(Le==gt||Le==Ct||Me&&!Lt){if(ge=we||Me?{}:K(q),!Ve)return we?R(q,S(ge,q)):B(q,_(ge,q))}else{if(!nt[Le])return Lt?q:{};ge=ft(q,Le,Ve)}}Wt||(Wt=new m);var be=Wt.get(q);if(be)return be;Wt.set(q,ge),zt(q)?q.forEach(function(me){ge.add(dt(me,kt,W,me,q,Wt))}):st(q)&&q.forEach(function(me,Je){ge.set(Je,dt(me,kt,W,Je,q,Wt))});var Sn=xe?void 0:(he?we?H:U:we?mt:Tt)(q);return d(Sn||q,function(me,Je){Sn&&(me=q[Je=me]),b(ge,Je,dt(me,kt,W,Je,q,Wt))}),ge}},3118:(f,k,h)=>{var m=h(3218),d=Object.create,b=function(){function _(){}return function(S){if(!m(S))return{};if(d)return d(S);_.prototype=S;var M=new _;return _.prototype=void 0,M}}();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 S=-1,M=d.length;++S<M;){var E=d[S],B=b(E);if(B!=null&&(R===void 0?B==B&&!m(B):_(B,R)))var R=B,U=E}return U}},760:(f,k,h)=>{var m=h(9881);f.exports=function(d,b){var _=[];return m(d,function(S,M,E){b(S,M,E)&&_.push(S)}),_}},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(_,S,M,E,B){var R=-1,U=_.length;for(M||(M=d),B||(B=[]);++R<U;){var H=_[R];S>0&&M(H)?S>1?b(H,S-1,M,E,B):m(B,H):E||(B[B.length]=H)}return B}},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 S=0,M=(_=m(_,b)).length;b!=null&&S<M;)b=b[d(_[S++])];return S&&S==M?b:void 0}},8866:(f,k,h)=>{var m=h(2488),d=h(1469);f.exports=function(b,_,S){var M=_(b);return d(b)?M:m(M,S(b))}},4239:(f,k,h)=>{var m=h(2705),d=h(9607),b=h(2333),_=m?m.toStringTag:void 0;f.exports=function(S){return S==null?S===void 0?"[object Undefined]":"[object Null]":_&&_ in Object(S)?d(S):b(S)}},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(_,S,M){return S==S?b(_,S,M):m(_,d,M)}},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(_,S,M,E,B){return _===S||(_==null||S==null||!d(_)&&!d(S)?_!=_&&S!=S:m(_,S,M,E,b,B))}},2492:(f,k,h)=>{var m=h(6384),d=h(7114),b=h(8351),_=h(6096),S=h(4160),M=h(1469),E=h(4144),B=h(6719),R="[object Arguments]",U="[object Array]",H="[object Object]",J=Object.prototype.hasOwnProperty;f.exports=function(rt,ft,K,_t,at,st){var bt=M(rt),zt=M(ft),Tt=bt?U:S(rt),mt=zt?U:S(ft),Ct=(Tt=Tt==R?H:Tt)==H,xt=(mt=mt==R?H:mt)==H,gt=Tt==mt;if(gt&&E(rt)){if(!E(ft))return!1;bt=!0,Ct=!1}if(gt&&!Ct)return st||(st=new m),bt||B(rt)?d(rt,ft,K,_t,at,st):b(rt,ft,Tt,K,_t,at,st);if(!(1&K)){var nt=Ct&&J.call(rt,"__wrapped__"),dt=xt&&J.call(ft,"__wrapped__");if(nt||dt){var q=nt?rt.value():rt,kt=dt?ft.value():ft;return st||(st=new m),at(q,kt,K,_t,st)}}return!!gt&&(st||(st=new m),_(rt,ft,K,_t,at,st))}},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,_,S,M){var E=S.length,B=E,R=!M;if(b==null)return!B;for(b=Object(b);E--;){var U=S[E];if(R&&U[2]?U[1]!==b[U[0]]:!(U[0]in b))return!1}for(;++E<B;){var H=(U=S[E])[0],J=b[H],rt=U[1];if(R&&U[2]){if(J===void 0&&!(H in b))return!1}else{var ft=new m;if(M)var K=M(J,rt,H,b,_,ft);if(!(K===void 0?d(rt,J,3,M,ft):K))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),S=/^\[object .+?Constructor\]$/,M=Function.prototype,E=Object.prototype,B=M.toString,R=E.hasOwnProperty,U=RegExp("^"+B.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");f.exports=function(H){return!(!b(H)||d(H))&&(m(H)?U:S).test(_(H))}},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(S){return b(S)&&d(S.length)&&!!_[m(S)]}},7206:(f,k,h)=>{var m=h(1573),d=h(6432),b=h(6557),_=h(1469),S=h(9601);f.exports=function(M){return typeof M=="function"?M:M==null?b:typeof M=="object"?_(M)?d(M[0],M[1]):m(M):S(M)}},280:(f,k,h)=>{var m=h(5726),d=h(6916),b=Object.prototype.hasOwnProperty;f.exports=function(_){if(!m(_))return d(_);var S=[];for(var M in Object(_))b.call(_,M)&&M!="constructor"&&S.push(M);return S}},313:(f,k,h)=>{var m=h(3218),d=h(5726),b=h(3498),_=Object.prototype.hasOwnProperty;f.exports=function(S){if(!m(S))return b(S);var M=d(S),E=[];for(var B in S)(B!="constructor"||!M&&_.call(S,B))&&E.push(B);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 S=-1,M=d(b)?Array(b.length):[];return m(b,function(E,B,R){M[++S]=_(E,B,R)}),M}},1573:(f,k,h)=>{var m=h(2958),d=h(1499),b=h(2634);f.exports=function(_){var S=d(_);return S.length==1&&S[0][2]?b(S[0][0],S[0][1]):function(M){return M===_||m(M,_,S)}}},6432:(f,k,h)=>{var m=h(939),d=h(7361),b=h(9095),_=h(5403),S=h(9162),M=h(2634),E=h(327);f.exports=function(B,R){return _(B)&&S(R)?M(E(B),R):function(U){var H=d(U,B);return H===void 0&&H===R?b(U,B):m(R,H,3)}}},2980:(f,k,h)=>{var m=h(6384),d=h(6556),b=h(8483),_=h(9783),S=h(3218),M=h(1704),E=h(6390);f.exports=function B(R,U,H,J,rt){R!==U&&b(U,function(ft,K){if(rt||(rt=new m),S(ft))_(R,U,K,H,B,J,rt);else{var _t=J?J(E(R,K),ft,K+"",R,U,rt):void 0;_t===void 0&&(_t=ft),d(R,K,_t)}},M)}},9783:(f,k,h)=>{var m=h(6556),d=h(4626),b=h(7133),_=h(278),S=h(8517),M=h(5694),E=h(1469),B=h(9246),R=h(4144),U=h(3560),H=h(3218),J=h(8630),rt=h(6719),ft=h(6390),K=h(3678);f.exports=function(_t,at,st,bt,zt,Tt,mt){var Ct=ft(_t,st),xt=ft(at,st),gt=mt.get(xt);if(gt)m(_t,st,gt);else{var nt=Tt?Tt(Ct,xt,st+"",_t,at,mt):void 0,dt=nt===void 0;if(dt){var q=E(xt),kt=!q&&R(xt),W=!q&&!kt&&rt(xt);nt=xt,q||kt||W?E(Ct)?nt=Ct:B(Ct)?nt=_(Ct):kt?(dt=!1,nt=d(xt,!0)):W?(dt=!1,nt=b(xt,!0)):nt=[]:J(xt)||M(xt)?(nt=Ct,M(Ct)?nt=K(Ct):H(Ct)&&!U(Ct)||(nt=S(xt))):dt=!1}dt&&(mt.set(xt,nt),zt(nt,xt,bt,Tt,mt),mt.delete(xt)),m(_t,st,nt)}}},9556:(f,k,h)=>{var m=h(9932),d=h(7786),b=h(7206),_=h(9199),S=h(1131),M=h(1717),E=h(5022),B=h(6557),R=h(1469);f.exports=function(U,H,J){H=H.length?m(H,function(K){return R(K)?function(_t){return d(_t,K.length===1?K[0]:K)}:K}):[B];var rt=-1;H=m(H,M(b));var ft=_(U,function(K,_t,at){return{criteria:m(H,function(st){return st(K)}),index:++rt,value:K}});return S(ft,function(K,_t){return E(K,_t,J)})}},5970:(f,k,h)=>{var m=h(3012),d=h(9095);f.exports=function(b,_){return m(b,_,function(S,M){return d(b,M)})}},3012:(f,k,h)=>{var m=h(7786),d=h(611),b=h(1811);f.exports=function(_,S,M){for(var E=-1,B=S.length,R={};++E<B;){var U=S[E],H=m(_,U);M(H,U)&&d(R,b(U,_),H)}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 S=-1,M=h(k((d-m)/(b||1)),0),E=Array(M);M--;)E[_?M:++S]=m,m+=b;return E}},107:f=>{f.exports=function(k,h,m,d,b){return b(k,function(_,S,M){m=d?(d=!1,_):h(m,_,S,M)}),m}},5976:(f,k,h)=>{var m=h(6557),d=h(5357),b=h(61);f.exports=function(_,S){return b(d(_,S,m),_+"")}},611:(f,k,h)=>{var m=h(4865),d=h(1811),b=h(5776),_=h(3218),S=h(327);f.exports=function(M,E,B,R){if(!_(M))return M;for(var U=-1,H=(E=d(E,M)).length,J=H-1,rt=M;rt!=null&&++U<H;){var ft=S(E[U]),K=B;if(ft==="__proto__"||ft==="constructor"||ft==="prototype")return M;if(U!=J){var _t=rt[ft];(K=R?R(_t,ft,rt):void 0)===void 0&&(K=_(_t)?_t:b(E[U+1])?[]:{})}m(rt,ft,K),rt=rt[ft]}return M}},6560:(f,k,h)=>{var m=h(5703),d=h(8777),b=h(6557),_=d?function(S,M){return d(S,"toString",{configurable:!0,enumerable:!1,value:m(M),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),S=m?m.prototype:void 0,M=S?S.toString:void 0;f.exports=function E(B){if(typeof B=="string")return B;if(b(B))return d(B,E)+"";if(_(B))return M?M.call(B):"";var R=B+"";return R=="0"&&1/B==-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),S=h(3593),M=h(1814);f.exports=function(E,B,R){var U=-1,H=d,J=E.length,rt=!0,ft=[],K=ft;if(R)rt=!1,H=b;else if(J>=200){var _t=B?null:S(E);if(_t)return M(_t);rt=!1,H=_,K=new m}else K=B?[]:ft;t:for(;++U<J;){var at=E[U],st=B?B(at):at;if(at=R||at!==0?at:0,rt&&st==st){for(var bt=K.length;bt--;)if(K[bt]===st)continue t;B&&K.push(st),ft.push(at)}else H(K,st,R)||(K!==ft&&K.push(st),ft.push(at))}return ft}},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,S={};++d<b;){var M=d<_?h[d]:void 0;m(S,k[d],M)}return S}},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(S,M){return m(S)?S:d(S,M)?[S]:b(_(S))}},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,S=_?_.allocUnsafe:void 0;f.exports=function(M,E){if(E)return M.slice();var B=M.length,R=S?S(B):new M.constructor(B);return M.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,S=d===null,M=d==d,E=m(d),B=b!==void 0,R=b===null,U=b==b,H=m(b);if(!R&&!H&&!E&&d>b||E&&B&&U&&!R&&!H||S&&B&&U||!_&&U||!M)return 1;if(!S&&!E&&!H&&d<b||H&&_&&M&&!S&&!E||R&&_&&M||!B&&M||!U)return-1}return 0}},5022:(f,k,h)=>{var m=h(6393);f.exports=function(d,b,_){for(var S=-1,M=d.criteria,E=b.criteria,B=M.length,R=_.length;++S<B;){var U=m(M[S],E[S]);if(U)return S>=R?U:U*(_[S]=="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,_,S,M){var E=!S;S||(S={});for(var B=-1,R=_.length;++B<R;){var U=_[B],H=M?M(S[U],b[U],U,S,b):void 0;H===void 0&&(H=b[U]),E?d(S,U,H):m(S,U,H)}return S}},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},1463:(f,k,h)=>{var m=h(5976),d=h(6612);f.exports=function(b){return m(function(_,S){var M=-1,E=S.length,B=E>1?S[E-1]:void 0,R=E>2?S[2]:void 0;for(B=b.length>3&&typeof B=="function"?(E--,B):void 0,R&&d(S[0],S[1],R)&&(B=E<3?void 0:B,E=1),_=Object(_);++M<E;){var U=S[M];U&&b(_,U,M,B)}return _})}},9291:(f,k,h)=>{var m=h(8612);f.exports=function(d,b){return function(_,S){if(_==null)return _;if(!m(_))return d(_,S);for(var M=_.length,E=b?M:-1,B=Object(_);(b?E--:++E<M)&&S(B[E],E,B)!==!1;);return _}}},5063:f=>{f.exports=function(k){return function(h,m,d){for(var b=-1,_=Object(h),S=d(h),M=S.length;M--;){var E=S[k?M:++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(S,M,E){var B=Object(S);if(!d(S)){var R=m(M,3);S=b(S),M=function(H){return R(B[H],H,B)}}var U=_(S,M,E);return U>-1?B[R?S[U]:U]:void 0}}},7445:(f,k,h)=>{var m=h(98),d=h(6612),b=h(8601);f.exports=function(_){return function(S,M,E){return E&&typeof E!="number"&&d(S,M,E)&&(M=E=void 0),S=b(S),M===void 0?(M=S,S=0):M=b(M),E=E===void 0?S<M?1:-1:b(E),m(S,M,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(S){return new m(S)}: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(_,S,M,E,B,R){var U=1&M,H=_.length,J=S.length;if(H!=J&&!(U&&J>H))return!1;var rt=R.get(_),ft=R.get(S);if(rt&&ft)return rt==S&&ft==_;var K=-1,_t=!0,at=2&M?new m:void 0;for(R.set(_,S),R.set(S,_);++K<H;){var st=_[K],bt=S[K];if(E)var zt=U?E(bt,st,K,S,_,R):E(st,bt,K,_,S,R);if(zt!==void 0){if(zt)continue;_t=!1;break}if(at){if(!d(S,function(Tt,mt){if(!b(at,mt)&&(st===Tt||B(st,Tt,M,E,R)))return at.push(mt)})){_t=!1;break}}else if(st!==bt&&!B(st,bt,M,E,R)){_t=!1;break}}return R.delete(_),R.delete(S),_t}},8351:(f,k,h)=>{var m=h(2705),d=h(1149),b=h(7813),_=h(7114),S=h(8776),M=h(1814),E=m?m.prototype:void 0,B=E?E.valueOf:void 0;f.exports=function(R,U,H,J,rt,ft,K){switch(H){case"[object DataView]":if(R.byteLength!=U.byteLength||R.byteOffset!=U.byteOffset)return!1;R=R.buffer,U=U.buffer;case"[object ArrayBuffer]":return!(R.byteLength!=U.byteLength||!ft(new d(R),new d(U)));case"[object Boolean]":case"[object Date]":case"[object Number]":return b(+R,+U);case"[object Error]":return R.name==U.name&&R.message==U.message;case"[object RegExp]":case"[object String]":return R==U+"";case"[object Map]":var _t=S;case"[object Set]":var at=1&J;if(_t||(_t=M),R.size!=U.size&&!at)return!1;var st=K.get(R);if(st)return st==U;J|=2,K.set(R,U);var bt=_(_t(R),_t(U),J,rt,ft,K);return K.delete(R),bt;case"[object Symbol]":if(B)return B.call(R)==B.call(U)}return!1}},6096:(f,k,h)=>{var m=h(8234),d=Object.prototype.hasOwnProperty;f.exports=function(b,_,S,M,E,B){var R=1&S,U=m(b),H=U.length;if(H!=m(_).length&&!R)return!1;for(var J=H;J--;){var rt=U[J];if(!(R?rt in _:d.call(_,rt)))return!1}var ft=B.get(b),K=B.get(_);if(ft&&K)return ft==_&&K==b;var _t=!0;B.set(b,_),B.set(_,b);for(var at=R;++J<H;){var st=b[rt=U[J]],bt=_[rt];if(M)var zt=R?M(bt,st,rt,_,b,B):M(st,bt,rt,b,_,B);if(!(zt===void 0?st===bt||E(st,bt,S,M,B):zt)){_t=!1;break}at||(at=rt=="constructor")}if(_t&&!at){var Tt=b.constructor,mt=_.constructor;Tt==mt||!("constructor"in b)||!("constructor"in _)||typeof Tt=="function"&&Tt instanceof Tt&&typeof mt=="function"&&mt instanceof mt||(_t=!1)}return B.delete(b),B.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),S=_.length;S--;){var M=_[S],E=b[M];_[S]=[M,E,m(E)]}return _}},852:(f,k,h)=>{var m=h(8458),d=h(7801);f.exports=function(b,_){var S=d(b,_);return m(S)?S: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,S=m?m.toStringTag:void 0;f.exports=function(M){var E=b.call(M,S),B=M[S];try{M[S]=void 0;var R=!0}catch{}var U=_.call(M);return R&&(E?M[S]=B:delete M[S]),U}},9551:(f,k,h)=>{var m=h(4963),d=h(479),b=Object.prototype.propertyIsEnumerable,_=Object.getOwnPropertySymbols,S=_?function(M){return M==null?[]:(M=Object(M),m(_(M),function(E){return b.call(M,E)}))}:d;f.exports=S},1442:(f,k,h)=>{var m=h(2488),d=h(5924),b=h(9551),_=h(479),S=Object.getOwnPropertySymbols?function(M){for(var E=[];M;)m(E,b(M)),M=d(M);return E}:_;f.exports=S},4160:(f,k,h)=>{var m=h(8552),d=h(7071),b=h(3818),_=h(8525),S=h(577),M=h(4239),E=h(346),B="[object Map]",R="[object Promise]",U="[object Set]",H="[object WeakMap]",J="[object DataView]",rt=E(m),ft=E(d),K=E(b),_t=E(_),at=E(S),st=M;(m&&st(new m(new ArrayBuffer(1)))!=J||d&&st(new d)!=B||b&&st(b.resolve())!=R||_&&st(new _)!=U||S&&st(new S)!=H)&&(st=function(bt){var zt=M(bt),Tt=zt=="[object Object]"?bt.constructor:void 0,mt=Tt?E(Tt):"";if(mt)switch(mt){case rt:return J;case ft:return B;case K:return R;case _t:return U;case at:return H}return zt}),f.exports=st},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),S=h(1780),M=h(327);f.exports=function(E,B,R){for(var U=-1,H=(B=m(B,E)).length,J=!1;++U<H;){var rt=M(B[U]);if(!(J=E!=null&&R(E,rt)))break;E=E[rt]}return J||++U!=H?J:!!(H=E==null?0:E.length)&&S(H)&&_(rt,H)&&(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 S=_[b];return S==="__lodash_hash_undefined__"?void 0:S}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),S=h(7133);f.exports=function(M,E,B){var R=M.constructor;switch(E){case"[object ArrayBuffer]":return m(M);case"[object Boolean]":case"[object Date]":return new R(+M);case"[object DataView]":return d(M,B);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 S(M,B);case"[object Map]":case"[object Set]":return new R;case"[object Number]":case"[object String]":return new R(M);case"[object RegExp]":return b(M);case"[object Symbol]":return _(M)}}},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(S){return b(S)||d(S)||!!(_&&S&&S[_])}},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(S,M,E){if(!_(E))return!1;var B=typeof M;return!!(B=="number"?d(E)&&b(M,E.length):B=="string"&&M in E)&&m(E[M],S)}},5403:(f,k,h)=>{var m=h(1469),d=h(3448),b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/;f.exports=function(S,M){if(m(S))return!1;var E=typeof S;return!(E!="number"&&E!="symbol"&&E!="boolean"&&S!=null&&!d(S))||_.test(S)||!b.test(S)||M!=null&&S in Object(M)}},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__,S=m(_,b);return!(S<0||(S==_.length-1?_.pop():d.call(_,S,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__,S=m(_,d);return S<0?(++this.size,_.push([d,b])):_[S][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),S=_.size;return _.set(d,b),this.size+=_.size==S?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(S){return _.size===500&&_.clear(),S}),_=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,S=function(){try{return b&&b.require&&b.require("util").types||_&&_.binding&&_.binding("util")}catch{}}();f.exports=S},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,_,S){return _=d(_===void 0?b.length-1:_,0),function(){for(var M=arguments,E=-1,B=d(M.length-_,0),R=Array(B);++E<B;)R[E]=M[_+E];E=-1;for(var U=Array(_+1);++E<_;)U[E]=M[E];return U[_]=S(R),m(b,this,U)}}},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(_,S){var M=this.__data__;if(M instanceof m){var E=M.__data__;if(!d||E.length<199)return E.push([_,S]),this.size=++M.size,this;M=this.__data__=new b(E)}return M.set(_,S),this.size=M.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(S){var M=[];return S.charCodeAt(0)===46&&M.push(""),S.replace(d,function(E,B,R,U){M.push(R?U.replace(b,"$1"):B||E)}),M});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+")?",S="[\\ufe0e\\ufe0f]?",M=S+_+"(?:\\u200d(?:"+[m,d,b].join("|")+")"+S+_+")*",E="(?:"+[m+k+"?",k,d,b,"[\\ud800-\\udfff]"].join("|")+")",B=RegExp(h+"(?="+h+")|"+E+M,"g");f.exports=function(R){for(var U=B.lastIndex=0;B.test(R);)++U;return U}},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),S=Object.prototype,M=S.hasOwnProperty,E=m(function(B,R){B=Object(B);var U=-1,H=R.length,J=H>2?R[2]:void 0;for(J&&b(R[0],R[1],J)&&(H=1);++U<H;)for(var rt=R[U],ft=_(rt),K=-1,_t=ft.length;++K<_t;){var at=ft[K],st=B[at];(st===void 0||d(st,S[at])&&!M.call(B,at))&&(B[at]=rt[at])}return B});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(S,M){return(_(S)?m:d)(S,b(M,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(S,M,E){var B=S==null?0:S.length;if(!B)return-1;var R=E==null?0:b(E);return R<0&&(R=_(B+R,0)),m(S,d(M,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(S,M){return(_(S)?m:d)(S,b(M))}},2620:(f,k,h)=>{var m=h(8483),d=h(4290),b=h(1704);f.exports=function(_,S){return _==null?_:m(_,d(S),b)}},7361:(f,k,h)=>{var m=h(7786);f.exports=function(d,b,_){var S=d==null?void 0:m(d,b);return S===void 0?_:S}},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,S=b.propertyIsEnumerable,M=m(function(){return arguments}())?m:function(E){return d(E)&&_.call(E,"callee")&&!S.call(E,"callee")};f.exports=M},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,S=_&&_.exports===b?m.Buffer:void 0,M=(S?S.isBuffer:void 0)||d;f.exports=M},1609:(f,k,h)=>{var m=h(280),d=h(4160),b=h(5694),_=h(1469),S=h(8612),M=h(4144),E=h(5726),B=h(6719),R=Object.prototype.hasOwnProperty;f.exports=function(U){if(U==null)return!0;if(S(U)&&(_(U)||typeof U=="string"||typeof U.splice=="function"||M(U)||B(U)||b(U)))return!U.length;var H=d(U);if(H=="[object Map]"||H=="[object Set]")return!U.size;if(E(U))return!m(U).length;for(var J in U)if(R.call(U,J))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,S=_?d(_):m;f.exports=S},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,S=Object.prototype,M=_.toString,E=S.hasOwnProperty,B=M.call(Object);f.exports=function(R){if(!b(R)||m(R)!="[object Object]")return!1;var U=d(R);if(U===null)return!0;var H=E.call(U,"constructor")&&U.constructor;return typeof H=="function"&&H instanceof H&&M.call(H)==B}},2928:(f,k,h)=>{var m=h(9221),d=h(1717),b=h(1167),_=b&&b.isSet,S=_?d(_):m;f.exports=S},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,S=_?d(_):m;f.exports=S},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(S,M){return(_(S)?m:b)(S,d(M,3))}},6604:(f,k,h)=>{var m=h(9465),d=h(7816),b=h(7206);f.exports=function(_,S){var M={};return S=b(S,3),d(_,function(E,B,R){m(M,B,S(E,B,R))}),M}},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 S=function(){var M=arguments,E=_?_.apply(this,M):M[0],B=S.cache;if(B.has(E))return B.get(E);var R=b.apply(this,M);return S.cache=B.set(E,R)||B,R};return S.cache=new(d.Cache||m),S}d.Cache=m,f.exports=d},3857:(f,k,h)=>{var m=h(2980),d=h(1463)(function(b,_,S){m(b,_,S)});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(_,S){return _&&_.length?m(_,d(S,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(S){return b(S)?m(_(S)):d(S)}},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),S=h(1469);f.exports=function(M,E,B){var R=S(M)?m:_,U=arguments.length<3;return R(M,b(E,4),B,U,d)}},4238:(f,k,h)=>{var m=h(280),d=h(4160),b=h(8612),_=h(7037),S=h(8016);f.exports=function(M){if(M==null)return 0;if(b(M))return _(M)?S(M):M.length;var E=d(M);return E=="[object Map]"||E=="[object Set]"?M.size:m(M).length}},9734:(f,k,h)=>{var m=h(1078),d=h(9556),b=h(5976),_=h(6612),S=b(function(M,E){if(M==null)return[];var B=E.length;return B>1&&_(M,E[0],E[1])?E=[]:B>2&&_(E[0],E[1],E[2])&&(E=[E[0]]),d(M,m(E,1),[])});f.exports=S},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,S=/^0b[01]+$/i,M=/^0o[0-7]+$/i,E=parseInt;f.exports=function(B){if(typeof B=="number")return B;if(b(B))return NaN;if(d(B)){var R=typeof B.valueOf=="function"?B.valueOf():B;B=d(R)?R+"":R}if(typeof B!="string")return B===0?B:+B;B=m(B);var U=S.test(B);return U||M.test(B)?E(B.slice(2),U?2:8):_.test(B)?NaN:+B}},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),S=h(5924),M=h(1469),E=h(4144),B=h(3560),R=h(3218),U=h(6719);f.exports=function(H,J,rt){var ft=M(H),K=ft||E(H)||U(H);if(J=_(J,4),rt==null){var _t=H&&H.constructor;rt=K?ft?new _t:[]:R(H)&&B(_t)?d(S(H)):{}}return(K?m:b)(H,function(at,st,bt){return J(rt,at,st,bt)}),rt}},3386:(f,k,h)=>{var m=h(1078),d=h(5976),b=h(5652),_=h(9246),S=d(function(M){return b(m(M,1,_,!0))});f.exports=S},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 S=b(_);return h(S)}function b(_){if(!h.o(m,_)){var S=new Error("Cannot find module '"+_+"'");throw S.code="MODULE_NOT_FOUND",S}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 _(N){return N instanceof Array||Object.prototype.toString.call(N)==="[object Array]"}function S(N){return N!=null&&Object.prototype.toString.call(N)==="[object Object]"}function M(N){return N===void 0}function E(N){return typeof N=="number"||Object.prototype.toString.call(N)==="[object Number]"}function B(N){return N instanceof Date||Object.prototype.toString.call(N)==="[object Date]"}function R(N,z){var tt,yt=[];for(tt=0;tt<N.length;++tt)yt.push(z(N[tt],tt));return yt}function U(N,z){return Object.prototype.hasOwnProperty.call(N,z)}function H(N,z){for(var tt in z)U(z,tt)&&(N[tt]=z[tt]);return U(z,"toString")&&(N.toString=z.toString),U(z,"valueOf")&&(N.valueOf=z.valueOf),N}function J(N,z,tt,yt){return Ri(N,z,tt,yt,!0).utc()}function rt(N){return N._pf==null&&(N._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}),N._pf}function ft(N){if(N._isValid==null){var z=rt(N),tt=d.call(z.parsedDateParts,function(ie){return ie!=null}),yt=!isNaN(N._d.getTime())&&z.overflow<0&&!z.empty&&!z.invalidMonth&&!z.invalidWeekday&&!z.weekdayMismatch&&!z.nullInput&&!z.invalidFormat&&!z.userInvalidated&&(!z.meridiem||z.meridiem&&tt);if(N._strict&&(yt=yt&&z.charsLeftOver===0&&z.unusedTokens.length===0&&z.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(N))return yt;N._isValid=yt}return N._isValid}function K(N){var z=J(NaN);return N!=null?H(rt(z),N):rt(z).userInvalidated=!0,z}d=Array.prototype.some?Array.prototype.some:function(N){for(var z=Object(this),tt=z.length>>>0,yt=0;yt<tt;yt++)if(yt in z&&N.call(this,z[yt],yt,z))return!0;return!1};var _t=b.momentProperties=[];function at(N,z){var tt,yt,ie;if(M(z._isAMomentObject)||(N._isAMomentObject=z._isAMomentObject),M(z._i)||(N._i=z._i),M(z._f)||(N._f=z._f),M(z._l)||(N._l=z._l),M(z._strict)||(N._strict=z._strict),M(z._tzm)||(N._tzm=z._tzm),M(z._isUTC)||(N._isUTC=z._isUTC),M(z._offset)||(N._offset=z._offset),M(z._pf)||(N._pf=rt(z)),M(z._locale)||(N._locale=z._locale),0<_t.length)for(tt=0;tt<_t.length;tt++)M(ie=z[yt=_t[tt]])||(N[yt]=ie);return N}var st=!1;function bt(N){at(this,N),this._d=new Date(N._d!=null?N._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),st===!1&&(st=!0,b.updateOffset(this),st=!1)}function zt(N){return N instanceof bt||N!=null&&N._isAMomentObject!=null}function Tt(N){return N<0?Math.ceil(N)||0:Math.floor(N)}function mt(N){var z=+N,tt=0;return z!==0&&isFinite(z)&&(tt=Tt(z)),tt}function Ct(N,z,tt){var yt,ie=Math.min(N.length,z.length),Ce=Math.abs(N.length-z.length),$e=0;for(yt=0;yt<ie;yt++)(tt&&N[yt]!==z[yt]||!tt&&mt(N[yt])!==mt(z[yt]))&&$e++;return $e+Ce}function xt(N){b.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+N)}function gt(N,z){var tt=!0;return H(function(){if(b.deprecationHandler!=null&&b.deprecationHandler(null,N),tt){for(var yt,ie=[],Ce=0;Ce<arguments.length;Ce++){if(yt="",typeof arguments[Ce]=="object"){for(var $e in yt+=`
|
|
[`+Ce+"] ",arguments[0])yt+=$e+": "+arguments[0][$e]+", ";yt=yt.slice(0,-2)}else yt=arguments[Ce];ie.push(yt)}xt(N+`
|
|
Arguments: `+Array.prototype.slice.call(ie).join("")+`
|
|
`+new Error().stack),tt=!1}return z.apply(this,arguments)},z)}var nt,dt={};function q(N,z){b.deprecationHandler!=null&&b.deprecationHandler(N,z),dt[N]||(xt(z),dt[N]=!0)}function kt(N){return N instanceof Function||Object.prototype.toString.call(N)==="[object Function]"}function W(N,z){var tt,yt=H({},N);for(tt in z)U(z,tt)&&(S(N[tt])&&S(z[tt])?(yt[tt]={},H(yt[tt],N[tt]),H(yt[tt],z[tt])):z[tt]!=null?yt[tt]=z[tt]:delete yt[tt]);for(tt in N)U(N,tt)&&!U(z,tt)&&S(N[tt])&&(yt[tt]=H({},yt[tt]));return yt}function St(N){N!=null&&this.set(N)}b.suppressDeprecationWarnings=!1,b.deprecationHandler=null,nt=Object.keys?Object.keys:function(N){var z,tt=[];for(z in N)U(N,z)&&tt.push(z);return tt};var Lt={};function Wt(N,z){var tt=N.toLowerCase();Lt[tt]=Lt[tt+"s"]=Lt[z]=N}function ge(N){return typeof N=="string"?Lt[N]||Lt[N.toLowerCase()]:void 0}function Ve(N){var z,tt,yt={};for(tt in N)U(N,tt)&&(z=ge(tt))&&(yt[z]=N[tt]);return yt}var we={};function he(N,z){we[N]=z}function xe(N,z,tt){var yt=""+Math.abs(N),ie=z-yt.length;return(0<=N?tt?"+":"":"-")+Math.pow(10,Math.max(0,ie)).toString().substr(1)+yt}var Le=/(\[[^\[]*\])|(\\)?([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,be={},Sn={};function me(N,z,tt,yt){var ie=yt;typeof yt=="string"&&(ie=function(){return this[yt]()}),N&&(Sn[N]=ie),z&&(Sn[z[0]]=function(){return xe(ie.apply(this,arguments),z[1],z[2])}),tt&&(Sn[tt]=function(){return this.localeData().ordinal(ie.apply(this,arguments),N)})}function Je(N,z){return N.isValid()?(z=Dt(z,N.localeData()),be[z]=be[z]||function(tt){var yt,ie,Ce,$e=tt.match(Le);for(yt=0,ie=$e.length;yt<ie;yt++)Sn[$e[yt]]?$e[yt]=Sn[$e[yt]]:$e[yt]=(Ce=$e[yt]).match(/\[[\s\S]/)?Ce.replace(/^\[|\]$/g,""):Ce.replace(/\\/g,"");return function(tn){var en,dn="";for(en=0;en<ie;en++)dn+=kt($e[en])?$e[en].call(tn,tt):$e[en];return dn}}(z),be[z](N)):N.localeData().invalidDate()}function Dt(N,z){var tt=5;function yt(ie){return z.longDateFormat(ie)||ie}for(Me.lastIndex=0;0<=tt&&Me.test(N);)N=N.replace(Me,yt),Me.lastIndex=0,tt-=1;return N}var ue=/\d/,re=/\d\d/,At=/\d{3}/,Ee=/\d{4}/,Q=/[+-]?\d{6}/,ce=/\d\d?/,ct=/\d\d\d\d?/,Te=/\d\d\d\d\d\d?/,pe=/\d{1,3}/,Pe=/\d{1,4}/,on=/[+-]?\d{1,6}/,Ze=/\d+/,un=/[+-]?\d+/,Ie=/Z|[+-]\d\d:?\d\d/gi,De=/Z|[+-]\d\d(?::?\d\d)?/gi,ze=/[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,Re={};function _e(N,z,tt){Re[N]=kt(z)?z:function(yt,ie){return yt&&tt?tt:z}}function oe(N,z){return U(Re,N)?Re[N](z._strict,z._locale):new RegExp(vn(N.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(tt,yt,ie,Ce,$e){return yt||ie||Ce||$e})))}function vn(N){return N.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var We={};function cn(N,z){var tt,yt=z;for(typeof N=="string"&&(N=[N]),E(z)&&(yt=function(ie,Ce){Ce[z]=mt(ie)}),tt=0;tt<N.length;tt++)We[N[tt]]=yt}function He(N,z){cn(N,function(tt,yt,ie,Ce){ie._w=ie._w||{},z(tt,ie._w,ie,Ce)})}function En(N){return Qn(N)?366:365}function Qn(N){return N%4==0&&N%100!=0||N%400==0}me("Y",0,0,function(){var N=this.year();return N<=9999?""+N:"+"+N}),me(0,["YY",2],0,function(){return this.year()%100}),me(0,["YYYY",4],0,"year"),me(0,["YYYYY",5],0,"year"),me(0,["YYYYYY",6,!0],0,"year"),Wt("year","y"),he("year",1),_e("Y",un),_e("YY",ce,re),_e("YYYY",Pe,Ee),_e("YYYYY",on,Q),_e("YYYYYY",on,Q),cn(["YYYYY","YYYYYY"],0),cn("YYYY",function(N,z){z[0]=N.length===2?b.parseTwoDigitYear(N):mt(N)}),cn("YY",function(N,z){z[0]=b.parseTwoDigitYear(N)}),cn("Y",function(N,z){z[0]=parseInt(N,10)}),b.parseTwoDigitYear=function(N){return mt(N)+(68<mt(N)?1900:2e3)};var In,Bn=Ne("FullYear",!0);function Ne(N,z){return function(tt){return tt!=null?(nn(this,N,tt),b.updateOffset(this,z),this):Qe(this,N)}}function Qe(N,z){return N.isValid()?N._d["get"+(N._isUTC?"UTC":"")+z]():NaN}function nn(N,z,tt){N.isValid()&&!isNaN(tt)&&(z==="FullYear"&&Qn(N.year())&&N.month()===1&&N.date()===29?N._d["set"+(N._isUTC?"UTC":"")+z](tt,N.month(),Se(tt,N.month())):N._d["set"+(N._isUTC?"UTC":"")+z](tt))}function Se(N,z){if(isNaN(N)||isNaN(z))return NaN;var tt=(z%12+12)%12;return N+=(z-tt)/12,tt===1?Qn(N)?29:28:31-tt%7%2}In=Array.prototype.indexOf?Array.prototype.indexOf:function(N){var z;for(z=0;z<this.length;++z)if(this[z]===N)return z;return-1},me("M",["MM",2],"Mo",function(){return this.month()+1}),me("MMM",0,0,function(N){return this.localeData().monthsShort(this,N)}),me("MMMM",0,0,function(N){return this.localeData().months(this,N)}),Wt("month","M"),he("month",8),_e("M",ce),_e("MM",ce,re),_e("MMM",function(N,z){return z.monthsShortRegex(N)}),_e("MMMM",function(N,z){return z.monthsRegex(N)}),cn(["M","MM"],function(N,z){z[1]=mt(N)-1}),cn(["MMM","MMMM"],function(N,z,tt,yt){var ie=tt._locale.monthsParse(N,yt,tt._strict);ie!=null?z[1]=ie:rt(tt).invalidMonth=N});var An=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Bt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),xr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Gt(N,z){var tt;if(!N.isValid())return N;if(typeof z=="string"){if(/^\d+$/.test(z))z=mt(z);else if(!E(z=N.localeData().monthsParse(z)))return N}return tt=Math.min(N.date(),Se(N.year(),z)),N._d["set"+(N._isUTC?"UTC":"")+"Month"](z,tt),N}function qn(N){return N!=null?(Gt(this,N),b.updateOffset(this,!0),this):Qe(this,"Month")}var zn=ze,Gn=ze;function On(){function N($e,tn){return tn.length-$e.length}var z,tt,yt=[],ie=[],Ce=[];for(z=0;z<12;z++)tt=J([2e3,z]),yt.push(this.monthsShort(tt,"")),ie.push(this.months(tt,"")),Ce.push(this.months(tt,"")),Ce.push(this.monthsShort(tt,""));for(yt.sort(N),ie.sort(N),Ce.sort(N),z=0;z<12;z++)yt[z]=vn(yt[z]),ie[z]=vn(ie[z]);for(z=0;z<24;z++)Ce[z]=vn(Ce[z]);this._monthsRegex=new RegExp("^("+Ce.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+ie.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+yt.join("|")+")","i")}function Vn(N){var z;if(N<100&&0<=N){var tt=Array.prototype.slice.call(arguments);tt[0]=N+400,z=new Date(Date.UTC.apply(null,tt)),isFinite(z.getUTCFullYear())&&z.setUTCFullYear(N)}else z=new Date(Date.UTC.apply(null,arguments));return z}function Pn(N,z,tt){var yt=7+z-tt;return-(7+Vn(N,0,yt).getUTCDay()-z)%7+yt-1}function Nn(N,z,tt,yt,ie){var Ce,$e,tn=1+7*(z-1)+(7+tt-yt)%7+Pn(N,yt,ie);return $e=tn<=0?En(Ce=N-1)+tn:tn>En(N)?(Ce=N+1,tn-En(N)):(Ce=N,tn),{year:Ce,dayOfYear:$e}}function Un(N,z,tt){var yt,ie,Ce=Pn(N.year(),z,tt),$e=Math.floor((N.dayOfYear()-Ce-1)/7)+1;return $e<1?yt=$e+Yn(ie=N.year()-1,z,tt):$e>Yn(N.year(),z,tt)?(yt=$e-Yn(N.year(),z,tt),ie=N.year()+1):(ie=N.year(),yt=$e),{week:yt,year:ie}}function Yn(N,z,tt){var yt=Pn(N,z,tt),ie=Pn(N+1,z,tt);return(En(N)-yt+ie)/7}function jn(N,z){return N.slice(z,7).concat(N.slice(0,z))}me("w",["ww",2],"wo","week"),me("W",["WW",2],"Wo","isoWeek"),Wt("week","w"),Wt("isoWeek","W"),he("week",5),he("isoWeek",5),_e("w",ce),_e("ww",ce,re),_e("W",ce),_e("WW",ce,re),He(["w","ww","W","WW"],function(N,z,tt,yt){z[yt.substr(0,1)]=mt(N)}),me("d",0,"do","day"),me("dd",0,0,function(N){return this.localeData().weekdaysMin(this,N)}),me("ddd",0,0,function(N){return this.localeData().weekdaysShort(this,N)}),me("dddd",0,0,function(N){return this.localeData().weekdays(this,N)}),me("e",0,0,"weekday"),me("E",0,0,"isoWeekday"),Wt("day","d"),Wt("weekday","e"),Wt("isoWeekday","E"),he("day",11),he("weekday",11),he("isoWeekday",11),_e("d",ce),_e("e",ce),_e("E",ce),_e("dd",function(N,z){return z.weekdaysMinRegex(N)}),_e("ddd",function(N,z){return z.weekdaysShortRegex(N)}),_e("dddd",function(N,z){return z.weekdaysRegex(N)}),He(["dd","ddd","dddd"],function(N,z,tt,yt){var ie=tt._locale.weekdaysParse(N,yt,tt._strict);ie!=null?z.d=ie:rt(tt).invalidWeekday=N}),He(["d","e","E"],function(N,z,tt,yt){z[yt]=mt(N)});var ga="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Lr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ar="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ln=ze,si=ze,Rn=ze;function kr(){function N(_n,Tn){return Tn.length-_n.length}var z,tt,yt,ie,Ce,$e=[],tn=[],en=[],dn=[];for(z=0;z<7;z++)tt=J([2e3,1]).day(z),yt=this.weekdaysMin(tt,""),ie=this.weekdaysShort(tt,""),Ce=this.weekdays(tt,""),$e.push(yt),tn.push(ie),en.push(Ce),dn.push(yt),dn.push(ie),dn.push(Ce);for($e.sort(N),tn.sort(N),en.sort(N),dn.sort(N),z=0;z<7;z++)tn[z]=vn(tn[z]),en[z]=vn(en[z]),dn[z]=vn(dn[z]);this._weekdaysRegex=new RegExp("^("+dn.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+en.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+tn.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+$e.join("|")+")","i")}function Ir(){return this.hours()%12||12}function br(N,z){me(N,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),z)})}function Zr(N,z){return z._meridiemParse}me("H",["HH",2],0,"hour"),me("h",["hh",2],0,Ir),me("k",["kk",2],0,function(){return this.hours()||24}),me("hmm",0,0,function(){return""+Ir.apply(this)+xe(this.minutes(),2)}),me("hmmss",0,0,function(){return""+Ir.apply(this)+xe(this.minutes(),2)+xe(this.seconds(),2)}),me("Hmm",0,0,function(){return""+this.hours()+xe(this.minutes(),2)}),me("Hmmss",0,0,function(){return""+this.hours()+xe(this.minutes(),2)+xe(this.seconds(),2)}),br("a",!0),br("A",!1),Wt("hour","h"),he("hour",13),_e("a",Zr),_e("A",Zr),_e("H",ce),_e("h",ce),_e("k",ce),_e("HH",ce,re),_e("hh",ce,re),_e("kk",ce,re),_e("hmm",ct),_e("hmmss",Te),_e("Hmm",ct),_e("Hmmss",Te),cn(["H","HH"],3),cn(["k","kk"],function(N,z,tt){var yt=mt(N);z[3]=yt===24?0:yt}),cn(["a","A"],function(N,z,tt){tt._isPm=tt._locale.isPM(N),tt._meridiem=N}),cn(["h","hh"],function(N,z,tt){z[3]=mt(N),rt(tt).bigHour=!0}),cn("hmm",function(N,z,tt){var yt=N.length-2;z[3]=mt(N.substr(0,yt)),z[4]=mt(N.substr(yt)),rt(tt).bigHour=!0}),cn("hmmss",function(N,z,tt){var yt=N.length-4,ie=N.length-2;z[3]=mt(N.substr(0,yt)),z[4]=mt(N.substr(yt,2)),z[5]=mt(N.substr(ie)),rt(tt).bigHour=!0}),cn("Hmm",function(N,z,tt){var yt=N.length-2;z[3]=mt(N.substr(0,yt)),z[4]=mt(N.substr(yt))}),cn("Hmmss",function(N,z,tt){var yt=N.length-4,ie=N.length-2;z[3]=mt(N.substr(0,yt)),z[4]=mt(N.substr(yt,2)),z[5]=mt(N.substr(ie))});var Rt,Nr=Ne("Hours",!0),Mr={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:Bt,monthsShort:xr,week:{dow:0,doy:6},weekdays:ga,weekdaysMin:Ar,weekdaysShort:Lr,meridiemParse:/[ap]\.?m?\.?/i},Zn={},Jr={};function $r(N){return N&&N.toLowerCase().replace("_","-")}function Dr(N){var z=null;if(!Zn[N]&&f&&f.exports)try{z=Rt._abbr,h(1748)("./"+N),Qr(z)}catch{}return Zn[N]}function Qr(N,z){var tt;return N&&((tt=M(z)?hr(N):Na(N,z))?Rt=tt:typeof console<"u"&&console.warn&&console.warn("Locale "+N+" not found. Did you forget to load it?")),Rt._abbr}function Na(N,z){if(z===null)return delete Zn[N],null;var tt,yt=Mr;if(z.abbr=N,Zn[N]!=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."),yt=Zn[N]._config;else if(z.parentLocale!=null)if(Zn[z.parentLocale]!=null)yt=Zn[z.parentLocale]._config;else{if((tt=Dr(z.parentLocale))==null)return Jr[z.parentLocale]||(Jr[z.parentLocale]=[]),Jr[z.parentLocale].push({name:N,config:z}),null;yt=tt._config}return Zn[N]=new St(W(yt,z)),Jr[N]&&Jr[N].forEach(function(ie){Na(ie.name,ie.config)}),Qr(N),Zn[N]}function hr(N){var z;if(N&&N._locale&&N._locale._abbr&&(N=N._locale._abbr),!N)return Rt;if(!_(N)){if(z=Dr(N))return z;N=[N]}return function(tt){for(var yt,ie,Ce,$e,tn=0;tn<tt.length;){for(yt=($e=$r(tt[tn]).split("-")).length,ie=(ie=$r(tt[tn+1]))?ie.split("-"):null;0<yt;){if(Ce=Dr($e.slice(0,yt).join("-")))return Ce;if(ie&&ie.length>=yt&&Ct($e,ie,!0)>=yt-1)break;yt--}tn++}return Rt}(N)}function Si(N){var z,tt=N._a;return tt&&rt(N).overflow===-2&&(z=tt[1]<0||11<tt[1]?1:tt[2]<1||tt[2]>Se(tt[0],tt[1])?2:tt[3]<0||24<tt[3]||tt[3]===24&&(tt[4]!==0||tt[5]!==0||tt[6]!==0)?3:tt[4]<0||59<tt[4]?4:tt[5]<0||59<tt[5]?5:tt[6]<0||999<tt[6]?6:-1,rt(N)._overflowDayOfYear&&(z<0||2<z)&&(z=2),rt(N)._overflowWeeks&&z===-1&&(z=7),rt(N)._overflowWeekday&&z===-1&&(z=8),rt(N).overflow=z),N}function Bi(N,z,tt){return N!=null?N:z!=null?z:tt}function Ai(N){var z,tt,yt,ie,Ce,$e=[];if(!N._d){var tn,en;for(tn=N,en=new Date(b.now()),yt=tn._useUTC?[en.getUTCFullYear(),en.getUTCMonth(),en.getUTCDate()]:[en.getFullYear(),en.getMonth(),en.getDate()],N._w&&N._a[2]==null&&N._a[1]==null&&function(dn){var _n,Tn,Cn,yr,or,Wr,gi,Gr;if((_n=dn._w).GG!=null||_n.W!=null||_n.E!=null)or=1,Wr=4,Tn=Bi(_n.GG,dn._a[0],Un(kn(),1,4).year),Cn=Bi(_n.W,1),((yr=Bi(_n.E,1))<1||7<yr)&&(Gr=!0);else{or=dn._locale._week.dow,Wr=dn._locale._week.doy;var Ns=Un(kn(),or,Wr);Tn=Bi(_n.gg,dn._a[0],Ns.year),Cn=Bi(_n.w,Ns.week),_n.d!=null?((yr=_n.d)<0||6<yr)&&(Gr=!0):_n.e!=null?(yr=_n.e+or,(_n.e<0||6<_n.e)&&(Gr=!0)):yr=or}Cn<1||Cn>Yn(Tn,or,Wr)?rt(dn)._overflowWeeks=!0:Gr!=null?rt(dn)._overflowWeekday=!0:(gi=Nn(Tn,Cn,yr,or,Wr),dn._a[0]=gi.year,dn._dayOfYear=gi.dayOfYear)}(N),N._dayOfYear!=null&&(Ce=Bi(N._a[0],yt[0]),(N._dayOfYear>En(Ce)||N._dayOfYear===0)&&(rt(N)._overflowDayOfYear=!0),tt=Vn(Ce,0,N._dayOfYear),N._a[1]=tt.getUTCMonth(),N._a[2]=tt.getUTCDate()),z=0;z<3&&N._a[z]==null;++z)N._a[z]=$e[z]=yt[z];for(;z<7;z++)N._a[z]=$e[z]=N._a[z]==null?z===2?1:0:N._a[z];N._a[3]===24&&N._a[4]===0&&N._a[5]===0&&N._a[6]===0&&(N._nextDay=!0,N._a[3]=0),N._d=(N._useUTC?Vn:function(dn,_n,Tn,Cn,yr,or,Wr){var gi;return dn<100&&0<=dn?(gi=new Date(dn+400,_n,Tn,Cn,yr,or,Wr),isFinite(gi.getFullYear())&&gi.setFullYear(dn)):gi=new Date(dn,_n,Tn,Cn,yr,or,Wr),gi}).apply(null,$e),ie=N._useUTC?N._d.getUTCDay():N._d.getDay(),N._tzm!=null&&N._d.setUTCMinutes(N._d.getUTCMinutes()-N._tzm),N._nextDay&&(N._a[3]=24),N._w&&N._w.d!==void 0&&N._w.d!==ie&&(rt(N).weekdayMismatch=!0)}}var fn=/^\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)?)?$/,mn=/^\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)?)?$/,Kn=/Z|[+-]\d\d(?::?\d\d)?/,rn=[["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}/]],lr=[["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/]],Xt=/^\/?Date\((\-?\d+)/i;function Pr(N){var z,tt,yt,ie,Ce,$e,tn=N._i,en=fn.exec(tn)||mn.exec(tn);if(en){for(rt(N).iso=!0,z=0,tt=rn.length;z<tt;z++)if(rn[z][1].exec(en[1])){ie=rn[z][0],yt=rn[z][2]!==!1;break}if(ie==null)return void(N._isValid=!1);if(en[3]){for(z=0,tt=lr.length;z<tt;z++)if(lr[z][1].exec(en[3])){Ce=(en[2]||" ")+lr[z][0];break}if(Ce==null)return void(N._isValid=!1)}if(!yt&&Ce!=null)return void(N._isValid=!1);if(en[4]){if(!Kn.exec(en[4]))return void(N._isValid=!1);$e="Z"}N._f=ie+(Ce||"")+($e||""),ci(N)}else N._isValid=!1}var Qt=/^(?:(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}))$/,wr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ri(N){var z,tt,yt,ie=Qt.exec(N._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(ie){var Ce=function($e,tn,en,dn,_n,Tn){var Cn=[function(yr){var or=parseInt(yr,10);return or<=49?2e3+or:or<=999?1900+or:or}($e),xr.indexOf(tn),parseInt(en,10),parseInt(dn,10),parseInt(_n,10)];return Tn&&Cn.push(parseInt(Tn,10)),Cn}(ie[4],ie[3],ie[2],ie[5],ie[6],ie[7]);if(tt=Ce,yt=N,(z=ie[1])&&Lr.indexOf(z)!==new Date(tt[0],tt[1],tt[2]).getDay()&&(rt(yt).weekdayMismatch=!0,!(yt._isValid=!1)))return;N._a=Ce,N._tzm=function($e,tn,en){if($e)return wr[$e];if(tn)return 0;var dn=parseInt(en,10),_n=dn%100;return(dn-_n)/100*60+_n}(ie[8],ie[9],ie[10]),N._d=Vn.apply(null,N._a),N._d.setUTCMinutes(N._d.getUTCMinutes()-N._tzm),rt(N).rfc2822=!0}else N._isValid=!1}function ci(N){if(N._f!==b.ISO_8601)if(N._f!==b.RFC_2822){N._a=[],rt(N).empty=!0;var z,tt,yt,ie,Ce,$e,tn,en,dn=""+N._i,_n=dn.length,Tn=0;for(yt=Dt(N._f,N._locale).match(Le)||[],z=0;z<yt.length;z++)ie=yt[z],(tt=(dn.match(oe(ie,N))||[])[0])&&(0<(Ce=dn.substr(0,dn.indexOf(tt))).length&&rt(N).unusedInput.push(Ce),dn=dn.slice(dn.indexOf(tt)+tt.length),Tn+=tt.length),Sn[ie]?(tt?rt(N).empty=!1:rt(N).unusedTokens.push(ie),$e=ie,en=N,(tn=tt)!=null&&U(We,$e)&&We[$e](tn,en._a,en,$e)):N._strict&&!tt&&rt(N).unusedTokens.push(ie);rt(N).charsLeftOver=_n-Tn,0<dn.length&&rt(N).unusedInput.push(dn),N._a[3]<=12&&rt(N).bigHour===!0&&0<N._a[3]&&(rt(N).bigHour=void 0),rt(N).parsedDateParts=N._a.slice(0),rt(N).meridiem=N._meridiem,N._a[3]=function(Cn,yr,or){var Wr;return or==null?yr:Cn.meridiemHour!=null?Cn.meridiemHour(yr,or):(Cn.isPM!=null&&((Wr=Cn.isPM(or))&&yr<12&&(yr+=12),Wr||yr!==12||(yr=0)),yr)}(N._locale,N._a[3],N._meridiem),Ai(N),Si(N)}else ri(N);else Pr(N)}function La(N){var z,tt,yt,ie,Ce=N._i,$e=N._f;return N._locale=N._locale||hr(N._l),Ce===null||$e===void 0&&Ce===""?K({nullInput:!0}):(typeof Ce=="string"&&(N._i=Ce=N._locale.preparse(Ce)),zt(Ce)?new bt(Si(Ce)):(B(Ce)?N._d=Ce:_($e)?function(tn){var en,dn,_n,Tn,Cn;if(tn._f.length===0)return rt(tn).invalidFormat=!0,tn._d=new Date(NaN);for(Tn=0;Tn<tn._f.length;Tn++)Cn=0,en=at({},tn),tn._useUTC!=null&&(en._useUTC=tn._useUTC),en._f=tn._f[Tn],ci(en),ft(en)&&(Cn+=rt(en).charsLeftOver,Cn+=10*rt(en).unusedTokens.length,rt(en).score=Cn,(_n==null||Cn<_n)&&(_n=Cn,dn=en));H(tn,dn||en)}(N):$e?ci(N):M(tt=(z=N)._i)?z._d=new Date(b.now()):B(tt)?z._d=new Date(tt.valueOf()):typeof tt=="string"?(yt=z,(ie=Xt.exec(yt._i))===null?(Pr(yt),yt._isValid===!1&&(delete yt._isValid,ri(yt),yt._isValid===!1&&(delete yt._isValid,b.createFromInputFallback(yt)))):yt._d=new Date(+ie[1])):_(tt)?(z._a=R(tt.slice(0),function(tn){return parseInt(tn,10)}),Ai(z)):S(tt)?function(tn){if(!tn._d){var en=Ve(tn._i);tn._a=R([en.year,en.month,en.day||en.date,en.hour,en.minute,en.second,en.millisecond],function(dn){return dn&&parseInt(dn,10)}),Ai(tn)}}(z):E(tt)?z._d=new Date(tt):b.createFromInputFallback(z),ft(N)||(N._d=null),N))}function Ri(N,z,tt,yt,ie){var Ce,$e={};return tt!==!0&&tt!==!1||(yt=tt,tt=void 0),(S(N)&&function(tn){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(tn).length===0;var en;for(en in tn)if(tn.hasOwnProperty(en))return!1;return!0}(N)||_(N)&&N.length===0)&&(N=void 0),$e._isAMomentObject=!0,$e._useUTC=$e._isUTC=ie,$e._l=tt,$e._i=N,$e._f=z,$e._strict=yt,(Ce=new bt(Si(La($e))))._nextDay&&(Ce.add(1,"d"),Ce._nextDay=void 0),Ce}function kn(N,z,tt,yt){return Ri(N,z,tt,yt,!1)}b.createFromInputFallback=gt("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(N){N._d=new Date(N._i+(N._useUTC?" UTC":""))}),b.ISO_8601=function(){},b.RFC_2822=function(){};var Ur=gt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var N=kn.apply(null,arguments);return this.isValid()&&N.isValid()?N<this?this:N:K()}),Dn=gt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var N=kn.apply(null,arguments);return this.isValid()&&N.isValid()?this<N?this:N:K()});function ya(N,z){var tt,yt;if(z.length===1&&_(z[0])&&(z=z[0]),!z.length)return kn();for(tt=z[0],yt=1;yt<z.length;++yt)z[yt].isValid()&&!z[yt][N](tt)||(tt=z[yt]);return tt}var Br=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Fi(N){var z=Ve(N),tt=z.year||0,yt=z.quarter||0,ie=z.month||0,Ce=z.week||z.isoWeek||0,$e=z.day||0,tn=z.hour||0,en=z.minute||0,dn=z.second||0,_n=z.millisecond||0;this._isValid=function(Tn){for(var Cn in Tn)if(In.call(Br,Cn)===-1||Tn[Cn]!=null&&isNaN(Tn[Cn]))return!1;for(var yr=!1,or=0;or<Br.length;++or)if(Tn[Br[or]]){if(yr)return!1;parseFloat(Tn[Br[or]])!==mt(Tn[Br[or]])&&(yr=!0)}return!0}(z),this._milliseconds=+_n+1e3*dn+6e4*en+1e3*tn*60*60,this._days=+$e+7*Ce,this._months=+ie+3*yt+12*tt,this._data={},this._locale=hr(),this._bubble()}function zr(N){return N instanceof Fi}function gr(N){return N<0?-1*Math.round(-1*N):Math.round(N)}function ki(N,z){me(N,0,0,function(){var tt=this.utcOffset(),yt="+";return tt<0&&(tt=-tt,yt="-"),yt+xe(~~(tt/60),2)+z+xe(~~tt%60,2)})}ki("Z",":"),ki("ZZ",""),_e("Z",De),_e("ZZ",De),cn(["Z","ZZ"],function(N,z,tt){tt._useUTC=!0,tt._tzm=ti(De,N)});var Hr=/([\+\-]|\d\d)/gi;function ti(N,z){var tt=(z||"").match(N);if(tt===null)return null;var yt=((tt[tt.length-1]||[])+"").match(Hr)||["-",0,0],ie=60*yt[1]+mt(yt[2]);return ie===0?0:yt[0]==="+"?ie:-ie}function Ki(N,z){var tt,yt;return z._isUTC?(tt=z.clone(),yt=(zt(N)||B(N)?N.valueOf():kn(N).valueOf())-tt.valueOf(),tt._d.setTime(tt._d.valueOf()+yt),b.updateOffset(tt,!1),tt):kn(N).local()}function Ci(N){return 15*-Math.round(N._d.getTimezoneOffset()/15)}function ei(){return!!this.isValid()&&this._isUTC&&this._offset===0}b.updateOffset=function(){};var ma=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,qr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xr(N,z){var tt,yt,ie,Ce=N,$e=null;return zr(N)?Ce={ms:N._milliseconds,d:N._days,M:N._months}:E(N)?(Ce={},z?Ce[z]=N:Ce.milliseconds=N):($e=ma.exec(N))?(tt=$e[1]==="-"?-1:1,Ce={y:0,d:mt($e[2])*tt,h:mt($e[3])*tt,m:mt($e[4])*tt,s:mt($e[5])*tt,ms:mt(gr(1e3*$e[6]))*tt}):($e=qr.exec(N))?(tt=$e[1]==="-"?-1:1,Ce={y:ii($e[2],tt),M:ii($e[3],tt),w:ii($e[4],tt),d:ii($e[5],tt),h:ii($e[6],tt),m:ii($e[7],tt),s:ii($e[8],tt)}):Ce==null?Ce={}:typeof Ce=="object"&&("from"in Ce||"to"in Ce)&&(ie=function(tn,en){var dn;return tn.isValid()&&en.isValid()?(en=Ki(en,tn),tn.isBefore(en)?dn=Pi(tn,en):((dn=Pi(en,tn)).milliseconds=-dn.milliseconds,dn.months=-dn.months),dn):{milliseconds:0,months:0}}(kn(Ce.from),kn(Ce.to)),(Ce={}).ms=ie.milliseconds,Ce.M=ie.months),yt=new Fi(Ce),zr(N)&&U(N,"_locale")&&(yt._locale=N._locale),yt}function ii(N,z){var tt=N&&parseFloat(N.replace(",","."));return(isNaN(tt)?0:tt)*z}function Pi(N,z){var tt={};return tt.months=z.month()-N.month()+12*(z.year()-N.year()),N.clone().add(tt.months,"M").isAfter(z)&&--tt.months,tt.milliseconds=+z-+N.clone().add(tt.months,"M"),tt}function Co(N,z){return function(tt,yt){var ie;return yt===null||isNaN(+yt)||(q(z,"moment()."+z+"(period, number) is deprecated. Please use moment()."+z+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),ie=tt,tt=yt,yt=ie),$i(this,Xr(tt=typeof tt=="string"?+tt:tt,yt),N),this}}function $i(N,z,tt,yt){var ie=z._milliseconds,Ce=gr(z._days),$e=gr(z._months);N.isValid()&&(yt=yt==null||yt,$e&&Gt(N,Qe(N,"Month")+$e*tt),Ce&&nn(N,"Date",Qe(N,"Date")+Ce*tt),ie&&N._d.setTime(N._d.valueOf()+ie*tt),yt&&b.updateOffset(N,Ce||$e))}Xr.fn=Fi.prototype,Xr.invalid=function(){return Xr(NaN)};var Jt=Co(1,"add"),wn=Co(-1,"subtract");function sn(N,z){var tt=12*(z.year()-N.year())+(z.month()-N.month()),yt=N.clone().add(tt,"months");return-(tt+(z-yt<0?(z-yt)/(yt-N.clone().add(tt-1,"months")):(z-yt)/(N.clone().add(tt+1,"months")-yt)))||0}function ar(N){var z;return N===void 0?this._locale._abbr:((z=hr(N))!=null&&(this._locale=z),this)}b.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",b.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Yr=gt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(N){return N===void 0?this.localeData():this.locale(N)});function di(){return this._locale}var Kr=126227808e5;function Hi(N,z){return(N%z+z)%z}function Ji(N,z,tt){return N<100&&0<=N?new Date(N+400,z,tt)-Kr:new Date(N,z,tt).valueOf()}function li(N,z,tt){return N<100&&0<=N?Date.UTC(N+400,z,tt)-Kr:Date.UTC(N,z,tt)}function Ka(N,z){me(0,[N,N.length],0,z)}function is(N,z,tt,yt,ie){var Ce;return N==null?Un(this,yt,ie).year:((Ce=Yn(N,yt,ie))<z&&(z=Ce),function($e,tn,en,dn,_n){var Tn=Nn($e,tn,en,dn,_n),Cn=Vn(Tn.year,0,Tn.dayOfYear);return this.year(Cn.getUTCFullYear()),this.month(Cn.getUTCMonth()),this.date(Cn.getUTCDate()),this}.call(this,N,z,tt,yt,ie))}me(0,["gg",2],0,function(){return this.weekYear()%100}),me(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ka("gggg","weekYear"),Ka("ggggg","weekYear"),Ka("GGGG","isoWeekYear"),Ka("GGGGG","isoWeekYear"),Wt("weekYear","gg"),Wt("isoWeekYear","GG"),he("weekYear",1),he("isoWeekYear",1),_e("G",un),_e("g",un),_e("GG",ce,re),_e("gg",ce,re),_e("GGGG",Pe,Ee),_e("gggg",Pe,Ee),_e("GGGGG",on,Q),_e("ggggg",on,Q),He(["gggg","ggggg","GGGG","GGGGG"],function(N,z,tt,yt){z[yt.substr(0,2)]=mt(N)}),He(["gg","GG"],function(N,z,tt,yt){z[yt]=b.parseTwoDigitYear(N)}),me("Q",0,"Qo","quarter"),Wt("quarter","Q"),he("quarter",7),_e("Q",ue),cn("Q",function(N,z){z[1]=3*(mt(N)-1)}),me("D",["DD",2],"Do","date"),Wt("date","D"),he("date",9),_e("D",ce),_e("DD",ce,re),_e("Do",function(N,z){return N?z._dayOfMonthOrdinalParse||z._ordinalParse:z._dayOfMonthOrdinalParseLenient}),cn(["D","DD"],2),cn("Do",function(N,z){z[2]=mt(N.match(ce)[0])});var fc=Ne("Date",!0);me("DDD",["DDDD",3],"DDDo","dayOfYear"),Wt("dayOfYear","DDD"),he("dayOfYear",4),_e("DDD",pe),_e("DDDD",At),cn(["DDD","DDDD"],function(N,z,tt){tt._dayOfYear=mt(N)}),me("m",["mm",2],0,"minute"),Wt("minute","m"),he("minute",14),_e("m",ce),_e("mm",ce,re),cn(["m","mm"],4);var tl=Ne("Minutes",!1);me("s",["ss",2],0,"second"),Wt("second","s"),he("second",15),_e("s",ce),_e("ss",ce,re),cn(["s","ss"],5);var Ma,Ss=Ne("Seconds",!1);for(me("S",0,0,function(){return~~(this.millisecond()/100)}),me(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),me(0,["SSS",3],0,"millisecond"),me(0,["SSSS",4],0,function(){return 10*this.millisecond()}),me(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),me(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),me(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),me(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),me(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Wt("millisecond","ms"),he("millisecond",16),_e("S",pe,ue),_e("SS",pe,re),_e("SSS",pe,At),Ma="SSSS";Ma.length<=9;Ma+="S")_e(Ma,Ze);function ou(N,z){z[6]=mt(1e3*("0."+N))}for(Ma="S";Ma.length<=9;Ma+="S")cn(Ma,ou);var dc=Ne("Milliseconds",!1);me("z",0,0,"zoneAbbr"),me("zz",0,0,"zoneName");var hn=bt.prototype;function pc(N){return N}hn.add=Jt,hn.calendar=function(N,z){var tt=N||kn(),yt=Ki(tt,this).startOf("day"),ie=b.calendarFormat(this,yt)||"sameElse",Ce=z&&(kt(z[ie])?z[ie].call(this,tt):z[ie]);return this.format(Ce||this.localeData().calendar(ie,this,kn(tt)))},hn.clone=function(){return new bt(this)},hn.diff=function(N,z,tt){var yt,ie,Ce;if(!this.isValid())return NaN;if(!(yt=Ki(N,this)).isValid())return NaN;switch(ie=6e4*(yt.utcOffset()-this.utcOffset()),z=ge(z)){case"year":Ce=sn(this,yt)/12;break;case"month":Ce=sn(this,yt);break;case"quarter":Ce=sn(this,yt)/3;break;case"second":Ce=(this-yt)/1e3;break;case"minute":Ce=(this-yt)/6e4;break;case"hour":Ce=(this-yt)/36e5;break;case"day":Ce=(this-yt-ie)/864e5;break;case"week":Ce=(this-yt-ie)/6048e5;break;default:Ce=this-yt}return tt?Ce:Tt(Ce)},hn.endOf=function(N){var z;if((N=ge(N))===void 0||N==="millisecond"||!this.isValid())return this;var tt=this._isUTC?li:Ji;switch(N){case"year":z=tt(this.year()+1,0,1)-1;break;case"quarter":z=tt(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":z=tt(this.year(),this.month()+1,1)-1;break;case"week":z=tt(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":z=tt(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":z=tt(this.year(),this.month(),this.date()+1)-1;break;case"hour":z=this._d.valueOf(),z+=36e5-Hi(z+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":z=this._d.valueOf(),z+=6e4-Hi(z,6e4)-1;break;case"second":z=this._d.valueOf(),z+=1e3-Hi(z,1e3)-1}return this._d.setTime(z),b.updateOffset(this,!0),this},hn.format=function(N){N||(N=this.isUtc()?b.defaultFormatUtc:b.defaultFormat);var z=Je(this,N);return this.localeData().postformat(z)},hn.from=function(N,z){return this.isValid()&&(zt(N)&&N.isValid()||kn(N).isValid())?Xr({to:this,from:N}).locale(this.locale()).humanize(!z):this.localeData().invalidDate()},hn.fromNow=function(N){return this.from(kn(),N)},hn.to=function(N,z){return this.isValid()&&(zt(N)&&N.isValid()||kn(N).isValid())?Xr({from:this,to:N}).locale(this.locale()).humanize(!z):this.localeData().invalidDate()},hn.toNow=function(N){return this.to(kn(),N)},hn.get=function(N){return kt(this[N=ge(N)])?this[N]():this},hn.invalidAt=function(){return rt(this).overflow},hn.isAfter=function(N,z){var tt=zt(N)?N:kn(N);return!(!this.isValid()||!tt.isValid())&&((z=ge(z)||"millisecond")==="millisecond"?this.valueOf()>tt.valueOf():tt.valueOf()<this.clone().startOf(z).valueOf())},hn.isBefore=function(N,z){var tt=zt(N)?N:kn(N);return!(!this.isValid()||!tt.isValid())&&((z=ge(z)||"millisecond")==="millisecond"?this.valueOf()<tt.valueOf():this.clone().endOf(z).valueOf()<tt.valueOf())},hn.isBetween=function(N,z,tt,yt){var ie=zt(N)?N:kn(N),Ce=zt(z)?z:kn(z);return!!(this.isValid()&&ie.isValid()&&Ce.isValid())&&((yt=yt||"()")[0]==="("?this.isAfter(ie,tt):!this.isBefore(ie,tt))&&(yt[1]===")"?this.isBefore(Ce,tt):!this.isAfter(Ce,tt))},hn.isSame=function(N,z){var tt,yt=zt(N)?N:kn(N);return!(!this.isValid()||!yt.isValid())&&((z=ge(z)||"millisecond")==="millisecond"?this.valueOf()===yt.valueOf():(tt=yt.valueOf(),this.clone().startOf(z).valueOf()<=tt&&tt<=this.clone().endOf(z).valueOf()))},hn.isSameOrAfter=function(N,z){return this.isSame(N,z)||this.isAfter(N,z)},hn.isSameOrBefore=function(N,z){return this.isSame(N,z)||this.isBefore(N,z)},hn.isValid=function(){return ft(this)},hn.lang=Yr,hn.locale=ar,hn.localeData=di,hn.max=Dn,hn.min=Ur,hn.parsingFlags=function(){return H({},rt(this))},hn.set=function(N,z){if(typeof N=="object")for(var tt=function(ie){var Ce=[];for(var $e in ie)Ce.push({unit:$e,priority:we[$e]});return Ce.sort(function(tn,en){return tn.priority-en.priority}),Ce}(N=Ve(N)),yt=0;yt<tt.length;yt++)this[tt[yt].unit](N[tt[yt].unit]);else if(kt(this[N=ge(N)]))return this[N](z);return this},hn.startOf=function(N){var z;if((N=ge(N))===void 0||N==="millisecond"||!this.isValid())return this;var tt=this._isUTC?li:Ji;switch(N){case"year":z=tt(this.year(),0,1);break;case"quarter":z=tt(this.year(),this.month()-this.month()%3,1);break;case"month":z=tt(this.year(),this.month(),1);break;case"week":z=tt(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":z=tt(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":z=tt(this.year(),this.month(),this.date());break;case"hour":z=this._d.valueOf(),z-=Hi(z+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":z=this._d.valueOf(),z-=Hi(z,6e4);break;case"second":z=this._d.valueOf(),z-=Hi(z,1e3)}return this._d.setTime(z),b.updateOffset(this,!0),this},hn.subtract=wn,hn.toArray=function(){var N=this;return[N.year(),N.month(),N.date(),N.hour(),N.minute(),N.second(),N.millisecond()]},hn.toObject=function(){var N=this;return{years:N.year(),months:N.month(),date:N.date(),hours:N.hours(),minutes:N.minutes(),seconds:N.seconds(),milliseconds:N.milliseconds()}},hn.toDate=function(){return new Date(this.valueOf())},hn.toISOString=function(N){if(!this.isValid())return null;var z=N!==!0,tt=z?this.clone().utc():this;return tt.year()<0||9999<tt.year()?Je(tt,z?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):kt(Date.prototype.toISOString)?z?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Je(tt,"Z")):Je(tt,z?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},hn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var N="moment",z="";this.isLocal()||(N=this.utcOffset()===0?"moment.utc":"moment.parseZone",z="Z");var tt="["+N+'("]',yt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ie=z+'[")]';return this.format(tt+yt+"-MM-DD[T]HH:mm:ss.SSS"+ie)},hn.toJSON=function(){return this.isValid()?this.toISOString():null},hn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},hn.unix=function(){return Math.floor(this.valueOf()/1e3)},hn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},hn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},hn.year=Bn,hn.isLeapYear=function(){return Qn(this.year())},hn.weekYear=function(N){return is.call(this,N,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},hn.isoWeekYear=function(N){return is.call(this,N,this.isoWeek(),this.isoWeekday(),1,4)},hn.quarter=hn.quarters=function(N){return N==null?Math.ceil((this.month()+1)/3):this.month(3*(N-1)+this.month()%3)},hn.month=qn,hn.daysInMonth=function(){return Se(this.year(),this.month())},hn.week=hn.weeks=function(N){var z=this.localeData().week(this);return N==null?z:this.add(7*(N-z),"d")},hn.isoWeek=hn.isoWeeks=function(N){var z=Un(this,1,4).week;return N==null?z:this.add(7*(N-z),"d")},hn.weeksInYear=function(){var N=this.localeData()._week;return Yn(this.year(),N.dow,N.doy)},hn.isoWeeksInYear=function(){return Yn(this.year(),1,4)},hn.date=fc,hn.day=hn.days=function(N){if(!this.isValid())return N!=null?this:NaN;var z,tt,yt=this._isUTC?this._d.getUTCDay():this._d.getDay();return N!=null?(z=N,tt=this.localeData(),N=typeof z!="string"?z:isNaN(z)?typeof(z=tt.weekdaysParse(z))=="number"?z:null:parseInt(z,10),this.add(N-yt,"d")):yt},hn.weekday=function(N){if(!this.isValid())return N!=null?this:NaN;var z=(this.day()+7-this.localeData()._week.dow)%7;return N==null?z:this.add(N-z,"d")},hn.isoWeekday=function(N){if(!this.isValid())return N!=null?this:NaN;if(N==null)return this.day()||7;var z,tt,yt=(z=N,tt=this.localeData(),typeof z=="string"?tt.weekdaysParse(z)%7||7:isNaN(z)?null:z);return this.day(this.day()%7?yt:yt-7)},hn.dayOfYear=function(N){var z=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return N==null?z:this.add(N-z,"d")},hn.hour=hn.hours=Nr,hn.minute=hn.minutes=tl,hn.second=hn.seconds=Ss,hn.millisecond=hn.milliseconds=dc,hn.utcOffset=function(N,z,tt){var yt,ie=this._offset||0;if(!this.isValid())return N!=null?this:NaN;if(N==null)return this._isUTC?ie:Ci(this);if(typeof N=="string"){if((N=ti(De,N))===null)return this}else Math.abs(N)<16&&!tt&&(N*=60);return!this._isUTC&&z&&(yt=Ci(this)),this._offset=N,this._isUTC=!0,yt!=null&&this.add(yt,"m"),ie!==N&&(!z||this._changeInProgress?$i(this,Xr(N-ie,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,b.updateOffset(this,!0),this._changeInProgress=null)),this},hn.utc=function(N){return this.utcOffset(0,N)},hn.local=function(N){return this._isUTC&&(this.utcOffset(0,N),this._isUTC=!1,N&&this.subtract(Ci(this),"m")),this},hn.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var N=ti(Ie,this._i);N!=null?this.utcOffset(N):this.utcOffset(0,!0)}return this},hn.hasAlignedHourOffset=function(N){return!!this.isValid()&&(N=N?kn(N).utcOffset():0,(this.utcOffset()-N)%60==0)},hn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hn.isLocal=function(){return!!this.isValid()&&!this._isUTC},hn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},hn.isUtc=ei,hn.isUTC=ei,hn.zoneAbbr=function(){return this._isUTC?"UTC":""},hn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hn.dates=gt("dates accessor is deprecated. Use date instead.",fc),hn.months=gt("months accessor is deprecated. Use month instead",qn),hn.years=gt("years accessor is deprecated. Use year instead",Bn),hn.zone=gt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(N,z){return N!=null?(typeof N!="string"&&(N=-N),this.utcOffset(N,z),this):-this.utcOffset()}),hn.isDSTShifted=gt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!M(this._isDSTShifted))return this._isDSTShifted;var N={};if(at(N,this),(N=La(N))._a){var z=N._isUTC?J(N._a):kn(N._a);this._isDSTShifted=this.isValid()&&0<Ct(N._a,z.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Er=St.prototype;function Qi(N,z,tt,yt){var ie=hr(),Ce=J().set(yt,z);return ie[tt](Ce,N)}function uo(N,z,tt){if(E(N)&&(z=N,N=void 0),N=N||"",z!=null)return Qi(N,z,tt,"month");var yt,ie=[];for(yt=0;yt<12;yt++)ie[yt]=Qi(N,yt,tt,"month");return ie}function Oa(N,z,tt,yt){typeof N=="boolean"?E(z)&&(tt=z,z=void 0):(z=N,N=!1,E(tt=z)&&(tt=z,z=void 0)),z=z||"";var ie,Ce=hr(),$e=N?Ce._week.dow:0;if(tt!=null)return Qi(z,(tt+$e)%7,yt,"day");var tn=[];for(ie=0;ie<7;ie++)tn[ie]=Qi(z,(ie+$e)%7,yt,"day");return tn}Er.calendar=function(N,z,tt){var yt=this._calendar[N]||this._calendar.sameElse;return kt(yt)?yt.call(z,tt):yt},Er.longDateFormat=function(N){var z=this._longDateFormat[N],tt=this._longDateFormat[N.toUpperCase()];return z||!tt?z:(this._longDateFormat[N]=tt.replace(/MMMM|MM|DD|dddd/g,function(yt){return yt.slice(1)}),this._longDateFormat[N])},Er.invalidDate=function(){return this._invalidDate},Er.ordinal=function(N){return this._ordinal.replace("%d",N)},Er.preparse=pc,Er.postformat=pc,Er.relativeTime=function(N,z,tt,yt){var ie=this._relativeTime[tt];return kt(ie)?ie(N,z,tt,yt):ie.replace(/%d/i,N)},Er.pastFuture=function(N,z){var tt=this._relativeTime[0<N?"future":"past"];return kt(tt)?tt(z):tt.replace(/%s/i,z)},Er.set=function(N){var z,tt;for(tt in N)kt(z=N[tt])?this[tt]=z:this["_"+tt]=z;this._config=N,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Er.months=function(N,z){return N?_(this._months)?this._months[N.month()]:this._months[(this._months.isFormat||An).test(z)?"format":"standalone"][N.month()]:_(this._months)?this._months:this._months.standalone},Er.monthsShort=function(N,z){return N?_(this._monthsShort)?this._monthsShort[N.month()]:this._monthsShort[An.test(z)?"format":"standalone"][N.month()]:_(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Er.monthsParse=function(N,z,tt){var yt,ie,Ce;if(this._monthsParseExact)return function($e,tn,en){var dn,_n,Tn,Cn=$e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],dn=0;dn<12;++dn)Tn=J([2e3,dn]),this._shortMonthsParse[dn]=this.monthsShort(Tn,"").toLocaleLowerCase(),this._longMonthsParse[dn]=this.months(Tn,"").toLocaleLowerCase();return en?tn==="MMM"?(_n=In.call(this._shortMonthsParse,Cn))!==-1?_n:null:(_n=In.call(this._longMonthsParse,Cn))!==-1?_n:null:tn==="MMM"?(_n=In.call(this._shortMonthsParse,Cn))!==-1||(_n=In.call(this._longMonthsParse,Cn))!==-1?_n:null:(_n=In.call(this._longMonthsParse,Cn))!==-1||(_n=In.call(this._shortMonthsParse,Cn))!==-1?_n:null}.call(this,N,z,tt);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),yt=0;yt<12;yt++)if(ie=J([2e3,yt]),tt&&!this._longMonthsParse[yt]&&(this._longMonthsParse[yt]=new RegExp("^"+this.months(ie,"").replace(".","")+"$","i"),this._shortMonthsParse[yt]=new RegExp("^"+this.monthsShort(ie,"").replace(".","")+"$","i")),tt||this._monthsParse[yt]||(Ce="^"+this.months(ie,"")+"|^"+this.monthsShort(ie,""),this._monthsParse[yt]=new RegExp(Ce.replace(".",""),"i")),tt&&z==="MMMM"&&this._longMonthsParse[yt].test(N)||tt&&z==="MMM"&&this._shortMonthsParse[yt].test(N)||!tt&&this._monthsParse[yt].test(N))return yt},Er.monthsRegex=function(N){return this._monthsParseExact?(U(this,"_monthsRegex")||On.call(this),N?this._monthsStrictRegex:this._monthsRegex):(U(this,"_monthsRegex")||(this._monthsRegex=Gn),this._monthsStrictRegex&&N?this._monthsStrictRegex:this._monthsRegex)},Er.monthsShortRegex=function(N){return this._monthsParseExact?(U(this,"_monthsRegex")||On.call(this),N?this._monthsShortStrictRegex:this._monthsShortRegex):(U(this,"_monthsShortRegex")||(this._monthsShortRegex=zn),this._monthsShortStrictRegex&&N?this._monthsShortStrictRegex:this._monthsShortRegex)},Er.week=function(N){return Un(N,this._week.dow,this._week.doy).week},Er.firstDayOfYear=function(){return this._week.doy},Er.firstDayOfWeek=function(){return this._week.dow},Er.weekdays=function(N,z){var tt=_(this._weekdays)?this._weekdays:this._weekdays[N&&N!==!0&&this._weekdays.isFormat.test(z)?"format":"standalone"];return N===!0?jn(tt,this._week.dow):N?tt[N.day()]:tt},Er.weekdaysMin=function(N){return N===!0?jn(this._weekdaysMin,this._week.dow):N?this._weekdaysMin[N.day()]:this._weekdaysMin},Er.weekdaysShort=function(N){return N===!0?jn(this._weekdaysShort,this._week.dow):N?this._weekdaysShort[N.day()]:this._weekdaysShort},Er.weekdaysParse=function(N,z,tt){var yt,ie,Ce;if(this._weekdaysParseExact)return function($e,tn,en){var dn,_n,Tn,Cn=$e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],dn=0;dn<7;++dn)Tn=J([2e3,1]).day(dn),this._minWeekdaysParse[dn]=this.weekdaysMin(Tn,"").toLocaleLowerCase(),this._shortWeekdaysParse[dn]=this.weekdaysShort(Tn,"").toLocaleLowerCase(),this._weekdaysParse[dn]=this.weekdays(Tn,"").toLocaleLowerCase();return en?tn==="dddd"?(_n=In.call(this._weekdaysParse,Cn))!==-1?_n:null:tn==="ddd"?(_n=In.call(this._shortWeekdaysParse,Cn))!==-1?_n:null:(_n=In.call(this._minWeekdaysParse,Cn))!==-1?_n:null:tn==="dddd"?(_n=In.call(this._weekdaysParse,Cn))!==-1||(_n=In.call(this._shortWeekdaysParse,Cn))!==-1||(_n=In.call(this._minWeekdaysParse,Cn))!==-1?_n:null:tn==="ddd"?(_n=In.call(this._shortWeekdaysParse,Cn))!==-1||(_n=In.call(this._weekdaysParse,Cn))!==-1||(_n=In.call(this._minWeekdaysParse,Cn))!==-1?_n:null:(_n=In.call(this._minWeekdaysParse,Cn))!==-1||(_n=In.call(this._weekdaysParse,Cn))!==-1||(_n=In.call(this._shortWeekdaysParse,Cn))!==-1?_n:null}.call(this,N,z,tt);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),yt=0;yt<7;yt++)if(ie=J([2e3,1]).day(yt),tt&&!this._fullWeekdaysParse[yt]&&(this._fullWeekdaysParse[yt]=new RegExp("^"+this.weekdays(ie,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[yt]=new RegExp("^"+this.weekdaysShort(ie,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[yt]=new RegExp("^"+this.weekdaysMin(ie,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[yt]||(Ce="^"+this.weekdays(ie,"")+"|^"+this.weekdaysShort(ie,"")+"|^"+this.weekdaysMin(ie,""),this._weekdaysParse[yt]=new RegExp(Ce.replace(".",""),"i")),tt&&z==="dddd"&&this._fullWeekdaysParse[yt].test(N)||tt&&z==="ddd"&&this._shortWeekdaysParse[yt].test(N)||tt&&z==="dd"&&this._minWeekdaysParse[yt].test(N)||!tt&&this._weekdaysParse[yt].test(N))return yt},Er.weekdaysRegex=function(N){return this._weekdaysParseExact?(U(this,"_weekdaysRegex")||kr.call(this),N?this._weekdaysStrictRegex:this._weekdaysRegex):(U(this,"_weekdaysRegex")||(this._weekdaysRegex=Ln),this._weekdaysStrictRegex&&N?this._weekdaysStrictRegex:this._weekdaysRegex)},Er.weekdaysShortRegex=function(N){return this._weekdaysParseExact?(U(this,"_weekdaysRegex")||kr.call(this),N?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(U(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=si),this._weekdaysShortStrictRegex&&N?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Er.weekdaysMinRegex=function(N){return this._weekdaysParseExact?(U(this,"_weekdaysRegex")||kr.call(this),N?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(U(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Rn),this._weekdaysMinStrictRegex&&N?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Er.isPM=function(N){return(N+"").toLowerCase().charAt(0)==="p"},Er.meridiem=function(N,z,tt){return 11<N?tt?"pm":"PM":tt?"am":"AM"},Qr("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(N){var z=N%10;return N+(mt(N%100/10)===1?"th":z===1?"st":z===2?"nd":z===3?"rd":"th")}}),b.lang=gt("moment.lang is deprecated. Use moment.locale instead.",Qr),b.langData=gt("moment.langData is deprecated. Use moment.localeData instead.",hr);var Da=Math.abs;function Io(N,z,tt,yt){var ie=Xr(z,tt);return N._milliseconds+=yt*ie._milliseconds,N._days+=yt*ie._days,N._months+=yt*ie._months,N._bubble()}function gc(N){return N<0?Math.floor(N):Math.ceil(N)}function el(N){return 4800*N/146097}function As(N){return 146097*N/4800}function $a(N){return function(){return this.as(N)}}var yc=$a("ms"),Ba=$a("s"),mc=$a("m"),_c=$a("h"),ta=$a("d"),Cs=$a("w"),No=$a("M"),pi=$a("Q"),nr=$a("y");function Rr(N){return function(){return this.isValid()?this._data[N]:NaN}}var wi=Rr("milliseconds"),nl=Rr("seconds"),Lo=Rr("minutes"),Is=Rr("hours"),Ha=Rr("days"),ho=Rr("months"),as=Rr("years"),Ui=Math.round,xn={ss:44,s:45,m:45,h:22,d:26,M:11},_a=Math.abs;function qi(N){return(0<N)-(N<0)||+N}function ea(){if(!this.isValid())return this.localeData().invalidDate();var N,z,tt=_a(this._milliseconds)/1e3,yt=_a(this._days),ie=_a(this._months);z=Tt((N=Tt(tt/60))/60),tt%=60,N%=60;var Ce=Tt(ie/12),$e=ie%=12,tn=yt,en=z,dn=N,_n=tt?tt.toFixed(3).replace(/\.?0+$/,""):"",Tn=this.asSeconds();if(!Tn)return"P0D";var Cn=Tn<0?"-":"",yr=qi(this._months)!==qi(Tn)?"-":"",or=qi(this._days)!==qi(Tn)?"-":"",Wr=qi(this._milliseconds)!==qi(Tn)?"-":"";return Cn+"P"+(Ce?yr+Ce+"Y":"")+($e?yr+$e+"M":"")+(tn?or+tn+"D":"")+(en||dn||_n?"T":"")+(en?Wr+en+"H":"")+(dn?Wr+dn+"M":"")+(_n?Wr+_n+"S":"")}var tr=Fi.prototype;return tr.isValid=function(){return this._isValid},tr.abs=function(){var N=this._data;return this._milliseconds=Da(this._milliseconds),this._days=Da(this._days),this._months=Da(this._months),N.milliseconds=Da(N.milliseconds),N.seconds=Da(N.seconds),N.minutes=Da(N.minutes),N.hours=Da(N.hours),N.months=Da(N.months),N.years=Da(N.years),this},tr.add=function(N,z){return Io(this,N,z,1)},tr.subtract=function(N,z){return Io(this,N,z,-1)},tr.as=function(N){if(!this.isValid())return NaN;var z,tt,yt=this._milliseconds;if((N=ge(N))==="month"||N==="quarter"||N==="year")switch(z=this._days+yt/864e5,tt=this._months+el(z),N){case"month":return tt;case"quarter":return tt/3;case"year":return tt/12}else switch(z=this._days+Math.round(As(this._months)),N){case"week":return z/7+yt/6048e5;case"day":return z+yt/864e5;case"hour":return 24*z+yt/36e5;case"minute":return 1440*z+yt/6e4;case"second":return 86400*z+yt/1e3;case"millisecond":return Math.floor(864e5*z)+yt;default:throw new Error("Unknown unit "+N)}},tr.asMilliseconds=yc,tr.asSeconds=Ba,tr.asMinutes=mc,tr.asHours=_c,tr.asDays=ta,tr.asWeeks=Cs,tr.asMonths=No,tr.asQuarters=pi,tr.asYears=nr,tr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*mt(this._months/12):NaN},tr._bubble=function(){var N,z,tt,yt,ie,Ce=this._milliseconds,$e=this._days,tn=this._months,en=this._data;return 0<=Ce&&0<=$e&&0<=tn||Ce<=0&&$e<=0&&tn<=0||(Ce+=864e5*gc(As(tn)+$e),tn=$e=0),en.milliseconds=Ce%1e3,N=Tt(Ce/1e3),en.seconds=N%60,z=Tt(N/60),en.minutes=z%60,tt=Tt(z/60),en.hours=tt%24,tn+=ie=Tt(el($e+=Tt(tt/24))),$e-=gc(As(ie)),yt=Tt(tn/12),tn%=12,en.days=$e,en.months=tn,en.years=yt,this},tr.clone=function(){return Xr(this)},tr.get=function(N){return N=ge(N),this.isValid()?this[N+"s"]():NaN},tr.milliseconds=wi,tr.seconds=nl,tr.minutes=Lo,tr.hours=Is,tr.days=Ha,tr.weeks=function(){return Tt(this.days()/7)},tr.months=ho,tr.years=as,tr.humanize=function(N){if(!this.isValid())return this.localeData().invalidDate();var z,tt,yt,ie,Ce,$e,tn,en,dn,_n,Tn=this.localeData(),Cn=(z=!N,tt=Tn,yt=Xr(this).abs(),ie=Ui(yt.as("s")),Ce=Ui(yt.as("m")),$e=Ui(yt.as("h")),tn=Ui(yt.as("d")),en=Ui(yt.as("M")),dn=Ui(yt.as("y")),(_n=ie<=xn.ss&&["s",ie]||ie<xn.s&&["ss",ie]||Ce<=1&&["m"]||Ce<xn.m&&["mm",Ce]||$e<=1&&["h"]||$e<xn.h&&["hh",$e]||tn<=1&&["d"]||tn<xn.d&&["dd",tn]||en<=1&&["M"]||en<xn.M&&["MM",en]||dn<=1&&["y"]||["yy",dn])[2]=z,_n[3]=0<+this,_n[4]=tt,function(yr,or,Wr,gi,Gr){return Gr.relativeTime(or||1,!!Wr,yr,gi)}.apply(null,_n));return N&&(Cn=Tn.pastFuture(+this,Cn)),Tn.postformat(Cn)},tr.toISOString=ea,tr.toString=ea,tr.toJSON=ea,tr.locale=ar,tr.localeData=di,tr.toIsoString=gt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ea),tr.lang=Yr,me("X",0,0,"unix"),me("x",0,0,"valueOf"),_e("x",un),_e("X",/[+-]?\d+(\.\d{1,3})?/),cn("X",function(N,z,tt){tt._d=new Date(1e3*parseFloat(N,10))}),cn("x",function(N,z,tt){tt._d=new Date(mt(N))}),b.version="2.24.0",m=kn,b.fn=hn,b.min=function(){return ya("isBefore",[].slice.call(arguments,0))},b.max=function(){return ya("isAfter",[].slice.call(arguments,0))},b.now=function(){return Date.now?Date.now():+new Date},b.utc=J,b.unix=function(N){return kn(1e3*N)},b.months=function(N,z){return uo(N,z,"months")},b.isDate=B,b.locale=Qr,b.invalid=K,b.duration=Xr,b.isMoment=zt,b.weekdays=function(N,z,tt){return Oa(N,z,tt,"weekdays")},b.parseZone=function(){return kn.apply(null,arguments).parseZone()},b.localeData=hr,b.isDuration=zr,b.monthsShort=function(N,z){return uo(N,z,"monthsShort")},b.weekdaysMin=function(N,z,tt){return Oa(N,z,tt,"weekdaysMin")},b.defineLocale=Na,b.updateLocale=function(N,z){if(z!=null){var tt,yt,ie=Mr;(yt=Dr(N))!=null&&(ie=yt._config),(tt=new St(z=W(ie,z))).parentLocale=Zn[N],Zn[N]=tt,Qr(N)}else Zn[N]!=null&&(Zn[N].parentLocale!=null?Zn[N]=Zn[N].parentLocale:Zn[N]!=null&&delete Zn[N]);return Zn[N]},b.locales=function(){return nt(Zn)},b.weekdaysShort=function(N,z,tt){return Oa(N,z,tt,"weekdaysShort")},b.normalizeUnits=ge,b.relativeTimeRounding=function(N){return N===void 0?Ui:typeof N=="function"&&(Ui=N,!0)},b.relativeTimeThreshold=function(N,z){return xn[N]!==void 0&&(z===void 0?xn[N]:(xn[N]=z,N==="s"&&(xn.ss=z-1),!0))},b.calendarFormat=function(N,z){var tt=N.diff(z,"days",!0);return tt<-6?"sameElse":tt<-1?"lastWeek":tt<0?"lastDay":tt<1?"sameDay":tt<2?"nextDay":tt<7?"nextWeek":"sameElse"},b.prototype=hn,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 _,S="",M=0,E=-1,B=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||B===1))if(E!==R-1&&B===2){if(S.length<2||M!==2||S.charCodeAt(S.length-1)!==46||S.charCodeAt(S.length-2)!==46){if(S.length>2){var U=S.lastIndexOf("/");if(U!==S.length-1){U===-1?(S="",M=0):M=(S=S.slice(0,U)).length-1-S.lastIndexOf("/"),E=R,B=0;continue}}else if(S.length===2||S.length===1){S="",M=0,E=R,B=0;continue}}b&&(S.length>0?S+="/..":S="..",M=2)}else S.length>0?S+="/"+d.slice(E+1,R):S=d.slice(E+1,R),M=R-E-1;E=R,B=0}else _===46&&B!==-1?++B:B=-1}return S}var m={resolve:function(){for(var d,b="",_=!1,S=arguments.length-1;S>=-1&&!_;S--){var M;S>=0?M=arguments[S]:(d===void 0&&(d=process.cwd()),M=d),k(M),M.length!==0&&(b=M+"/"+b,_=M.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 S=d.length,M=S-_,E=1;E<b.length&&b.charCodeAt(E)===47;++E);for(var B=b.length-E,R=M<B?M:B,U=-1,H=0;H<=R;++H){if(H===R){if(B>R){if(b.charCodeAt(E+H)===47)return b.slice(E+H+1);if(H===0)return b.slice(E+H)}else M>R&&(d.charCodeAt(_+H)===47?U=H:H===0&&(U=0));break}var J=d.charCodeAt(_+H);if(J!==b.charCodeAt(E+H))break;J===47&&(U=H)}var rt="";for(H=_+U+1;H<=S;++H)H!==S&&d.charCodeAt(H)!==47||(rt.length===0?rt+="..":rt+="/..");return rt.length>0?rt+b.slice(E+U):(E+=U,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,S=-1,M=!0,E=d.length-1;E>=1;--E)if((b=d.charCodeAt(E))===47){if(!M){S=E;break}}else M=!1;return S===-1?_?"/":".":_&&S===1?"//":d.slice(0,S)},basename:function(d,b){if(b!==void 0&&typeof b!="string")throw new TypeError('"ext" argument must be a string');k(d);var _,S=0,M=-1,E=!0;if(b!==void 0&&b.length>0&&b.length<=d.length){if(b.length===d.length&&b===d)return"";var B=b.length-1,R=-1;for(_=d.length-1;_>=0;--_){var U=d.charCodeAt(_);if(U===47){if(!E){S=_+1;break}}else R===-1&&(E=!1,R=_+1),B>=0&&(U===b.charCodeAt(B)?--B==-1&&(M=_):(B=-1,M=R))}return S===M?M=R:M===-1&&(M=d.length),d.slice(S,M)}for(_=d.length-1;_>=0;--_)if(d.charCodeAt(_)===47){if(!E){S=_+1;break}}else M===-1&&(E=!1,M=_+1);return M===-1?"":d.slice(S,M)},extname:function(d){k(d);for(var b=-1,_=0,S=-1,M=!0,E=0,B=d.length-1;B>=0;--B){var R=d.charCodeAt(B);if(R!==47)S===-1&&(M=!1,S=B+1),R===46?b===-1?b=B:E!==1&&(E=1):b!==-1&&(E=-1);else if(!M){_=B+1;break}}return b===-1||S===-1||E===0||E===1&&b===S-1&&b===_+1?"":d.slice(b,S)},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 S=_.dir||_.root,M=_.base||(_.name||"")+(_.ext||"");return S?S===_.root?S+M:S+"/"+M:M}(0,d)},parse:function(d){k(d);var b={root:"",dir:"",base:"",ext:"",name:""};if(d.length===0)return b;var _,S=d.charCodeAt(0),M=S===47;M?(b.root="/",_=1):_=0;for(var E=-1,B=0,R=-1,U=!0,H=d.length-1,J=0;H>=_;--H)if((S=d.charCodeAt(H))!==47)R===-1&&(U=!1,R=H+1),S===46?E===-1?E=H:J!==1&&(J=1):E!==-1&&(J=-1);else if(!U){B=H+1;break}return E===-1||R===-1||J===0||J===1&&E===R-1&&E===B+1?R!==-1&&(b.base=b.name=B===0&&M?d.slice(1,R):d.slice(B,R)):(B===0&&M?(b.name=d.slice(1,E),b.base=d.slice(1,R)):(b.name=d.slice(B,E),b.base=d.slice(B,R)),b.ext=d.slice(E,R)),B>0?b.dir=d.slice(0,B-1):M&&(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,s=i,u=i;function p(g,v,x=0,T=g.length){if(x<T){if(s(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,s=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(s(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:()=>$u,FormatSpecifier:()=>zc,InternMap:()=>mt,InternSet:()=>Ct,Node:()=>Wc,Voronoi:()=>M1,ZoomTransform:()=>rs,active:()=>cf,arc:()=>_v,area:()=>Zy,areaRadial:()=>Qy,ascending:()=>m,autoType:()=>Bl,axisBottom:()=>hr,axisLeft:()=>Si,axisRight:()=>Na,axisTop:()=>Qr,bin:()=>on,bisect:()=>B,bisectCenter:()=>E,bisectLeft:()=>M,bisectRight:()=>S,bisector:()=>d,blob:()=>Js,brush:()=>ku,brushSelection:()=>g1,brushX:()=>y1,brushY:()=>m1,buffer:()=>W1,chord:()=>Su,chordDirected:()=>zs,chordTranspose:()=>Au,cluster:()=>N_,color:()=>Cn,contourDensity:()=>za,contours:()=>Ws,count:()=>R,create:()=>ov,creator:()=>Io,cross:()=>rt,csv:()=>Ff,csvFormat:()=>Wu,csvFormatBody:()=>Gu,csvFormatRow:()=>F1,csvFormatRows:()=>R1,csvFormatValue:()=>Ol,csvParse:()=>bs,csvParseRows:()=>Xs,cubehelix:()=>Tr,cumsum:()=>ft,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:()=>H0,curveLinearClosed:()=>Zv,curveMonotoneX:()=>Xv,curveMonotoneY:()=>Kv,curveNatural:()=>Jv,curveStep:()=>Qv,curveStepAfter:()=>e5,curveStepBefore:()=>t5,descending:()=>K,deviation:()=>at,difference:()=>Lr,disjoint:()=>Ar,dispatch:()=>lr,drag:()=>If,dragDisable:()=>ho,dragEnable:()=>as,dsv:()=>V1,dsvFormat:()=>de,easeBack:()=>nh,easeBackIn:()=>Rf,easeBackInOut:()=>nh,easeBackOut:()=>eh,easeBounce:()=>fr,easeBounceIn:()=>Bf,easeBounceInOut:()=>Fl,easeBounceOut:()=>fr,easeCircle:()=>H1,easeCircleIn:()=>$1,easeCircleInOut:()=>H1,easeCircleOut:()=>th,easeCubic:()=>Ps,easeCubicIn:()=>pl,easeCubicInOut:()=>Ps,easeCubicOut:()=>gl,easeElastic:()=>xs,easeElasticIn:()=>rh,easeElasticInOut:()=>ih,easeElasticOut:()=>xs,easeExp:()=>Qu,easeExpIn:()=>Of,easeExpInOut:()=>Qu,easeExpOut:()=>Df,easeLinear:()=>Rl,easePoly:()=>Xu,easePolyIn:()=>U1,easePolyInOut:()=>Xu,easePolyOut:()=>z1,easeQuad:()=>Dc,easeQuadIn:()=>Zi,easeQuadInOut:()=>Dc,easeQuadOut:()=>Zu,easeSin:()=>Ju,easeSinIn:()=>j1,easeSinInOut:()=>Ju,easeSinOut:()=>ko,every:()=>Pn,extent:()=>st,fcumsum:()=>Tt,filter:()=>Un,flatGroup:()=>Lt,flatRollup:()=>Wt,forceCenter:()=>Z1,forceCollide:()=>Yl,forceLink:()=>K1,forceManyBody:()=>e0,forceRadial:()=>n0,forceSimulation:()=>t0,forceX:()=>Pc,forceY:()=>jf,format:()=>$l,formatDefaultLocale:()=>hh,formatLocale:()=>o0,formatPrefix:()=>uh,formatSpecifier:()=>Eo,fsum:()=>zt,geoAlbers:()=>wp,geoAlbersUsa:()=>d_,geoArea:()=>ui,geoAzimuthalEqualArea:()=>p_,geoAzimuthalEqualAreaRaw:()=>yd,geoAzimuthalEquidistant:()=>g_,geoAzimuthalEquidistantRaw:()=>md,geoBounds:()=>Dm,geoCentroid:()=>zm,geoCircle:()=>Ym,geoClipAntimeridian:()=>Zf,geoClipCircle:()=>W2,geoClipExtent:()=>Hm,geoClipRectangle:()=>f0,geoConicConformal:()=>m_,geoConicConformalRaw:()=>Sp,geoConicEqualArea:()=>k0,geoConicEqualAreaRaw:()=>kp,geoConicEquidistant:()=>b_,geoConicEquidistantRaw:()=>Ap,geoContains:()=>Xm,geoDistance:()=>d0,geoEqualEarth:()=>v_,geoEqualEarthRaw:()=>_d,geoEquirectangular:()=>__,geoEquirectangularRaw:()=>Th,geoGnomonic:()=>x_,geoGnomonicRaw:()=>bd,geoGraticule:()=>np,geoGraticule10:()=>Km,geoIdentity:()=>k_,geoInterpolate:()=>Jm,geoLength:()=>G2,geoMercator:()=>y_,geoMercatorRaw:()=>Eh,geoNaturalEarth1:()=>w_,geoNaturalEarth1Raw:()=>vd,geoOrthographic:()=>E_,geoOrthographicRaw:()=>xd,geoPath:()=>l_,geoProjection:()=>es,geoProjectionMutator:()=>pd,geoRotation:()=>P2,geoStereographic:()=>T_,geoStereographicRaw:()=>kd,geoStream:()=>Ft,geoTransform:()=>u_,geoTransverseMercator:()=>S_,geoTransverseMercatorRaw:()=>wd,gray:()=>pf,greatest:()=>An,greatestIndex:()=>Bt,group:()=>kt,groupSort:()=>Je,groups:()=>W,hcl:()=>Pa,hierarchy:()=>Ed,histogram:()=>on,hsl:()=>Mo,html:()=>Ya,image:()=>Uf,index:()=>we,indexes:()=>he,interpolate:()=>er,interpolateArray:()=>Q0,interpolateBasis:()=>yi,interpolateBasisClosed:()=>uu,interpolateBlues:()=>Yb,interpolateBrBG:()=>vb,interpolateBuGn:()=>Ib,interpolateBuPu:()=>Nb,interpolateCividis:()=>Gb,interpolateCool:()=>Xb,interpolateCubehelix:()=>o3,interpolateCubehelixDefault:()=>Vb,interpolateCubehelixLong:()=>L0,interpolateDate:()=>Zh,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:()=>la,interpolateNumberArray:()=>bc,interpolateObject:()=>na,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:()=>Ms,interpolateRgbBasis:()=>al,interpolateRgbBasisClosed:()=>J0,interpolateRound:()=>N0,interpolateSinebow:()=>tv,interpolateSpectral:()=>Cb,interpolateString:()=>qa,interpolateTransformCss:()=>n1,interpolateTransformSvg:()=>ul,interpolateTurbo:()=>ev,interpolateViridis:()=>nv,interpolateWarm:()=>Zb,interpolateYlGn:()=>Pb,interpolateYlGnBu:()=>Fb,interpolateYlOrBr:()=>Ub,interpolateYlOrRd:()=>zb,interpolateZoom:()=>Wp,interrupt:()=>eo,intersection:()=>Ln,interval:()=>m5,isoFormat:()=>p5,isoParse:()=>y5,json:()=>wo,lab:()=>Al,lch:()=>Yo,least:()=>nn,leastIndex:()=>Se,line:()=>d2,lineRadial:()=>Jy,linkHorizontal:()=>Cv,linkRadial:()=>Nv,linkVertical:()=>Iv,local:()=>qy,map:()=>Yn,matcher:()=>ci,max:()=>Ze,maxIndex:()=>vn,mean:()=>We,median:()=>cn,merge:()=>He,min:()=>un,minIndex:()=>En,mode:()=>Qn,namespace:()=>ei,namespaces:()=>Ci,nice:()=>pe,now:()=>wc,pack:()=>U_,packEnclose:()=>Ip,packSiblings:()=>F_,pairs:()=>In,partition:()=>z_,path:()=>ps,permute:()=>Me,pie:()=>kv,piecewise:()=>Xp,pointRadial:()=>$h,pointer:()=>ua,pointers:()=>cv,polygonArea:()=>c3,polygonCentroid:()=>l3,polygonContains:()=>d3,polygonHull:()=>f3,polygonLength:()=>p3,precisionFixed:()=>Hl,precisionPrefix:()=>fh,precisionRound:()=>dh,quadtree:()=>Ul,quantile:()=>ze,quantileSorted:()=>Re,quantize:()=>s3,quickselect:()=>Ie,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:()=>Ne,rank:()=>Qe,reduce:()=>jn,reverse:()=>ga,rgb:()=>gi,ribbon:()=>k1,ribbonArrow:()=>w1,rollup:()=>ge,rollups:()=>Ve,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:()=>xr,schemeAccent:()=>hb,schemeBlues:()=>Uy,schemeBrBG:()=>_y,schemeBuGn:()=>Ay,schemeBuPu:()=>Cy,schemeCategory10:()=>ub,schemeDark2:()=>fb,schemeGnBu:()=>Iy,schemeGreens:()=>zy,schemeGreys:()=>Yy,schemeOrRd:()=>Ny,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:()=>wi,selectAll:()=>lv,selection:()=>Rr,selector:()=>Pr,selectorAll:()=>ri,shuffle:()=>Gt,shuffler:()=>qn,some:()=>Nn,sort:()=>be,stack:()=>i5,stackOffsetDiverging:()=>o5,stackOffsetExpand:()=>a5,stackOffsetNone:()=>ru,stackOffsetSilhouette:()=>s5,stackOffsetWiggle:()=>c5,stackOrderAppearance:()=>wm,stackOrderAscending:()=>Em,stackOrderDescending:()=>u5,stackOrderInsideOut:()=>h5,stackOrderNone:()=>iu,stackOrderReverse:()=>f5,stratify:()=>H_,style:()=>ar,subset:()=>Ir,sum:()=>zn,superset:()=>Rn,svg:()=>oh,symbol:()=>Rv,symbolCircle:()=>y2,symbolCross:()=>tm,symbolDiamond:()=>nm,symbolSquare:()=>am,symbolStar:()=>im,symbolTriangle:()=>om,symbolWye:()=>sm,symbols:()=>Bv,text:()=>Rc,thresholdFreedmanDiaconis:()=>_e,thresholdScott:()=>oe,thresholdSturges:()=>Pe,tickFormat:()=>ag,tickIncrement:()=>ct,tickStep:()=>Te,ticks:()=>ce,timeDay:()=>Bh,timeDays:()=>U3,timeFormat:()=>i2,timeFormatDefaultLocale:()=>uy,timeFormatLocale:()=>Vg,timeFriday:()=>Ng,timeFridays:()=>H3,timeHour:()=>Zd,timeHours:()=>P3,timeInterval:()=>Yi,timeMillisecond:()=>Gd,timeMilliseconds:()=>kg,timeMinute:()=>Vd,timeMinutes:()=>F3,timeMonday:()=>Rh,timeMondays:()=>z3,timeMonth:()=>Xd,timeMonths:()=>W3,timeParse:()=>Zg,timeSaturday:()=>Lg,timeSaturdays:()=>q3,timeSecond:()=>rc,timeSeconds:()=>Eg,timeSunday:()=>Ql,timeSundays:()=>Mg,timeThursday:()=>Zc,timeThursdays:()=>$3,timeTickInterval:()=>Gg,timeTicks:()=>Wg,timeTuesday:()=>Cg,timeTuesdays:()=>Y3,timeWednesday:()=>Ig,timeWednesdays:()=>j3,timeWeek:()=>Ql,timeWeeks:()=>Mg,timeYear:()=>ic,timeYears:()=>G3,timeout:()=>cl,timer:()=>Bo,timerFlush:()=>Ds,transition:()=>fl,transpose:()=>Gn,tree:()=>V_,treemap:()=>Z_,treemapBinary:()=>X_,treemapDice:()=>Lh,treemapResquarify:()=>J_,treemapSlice:()=>I0,treemapSliceDice:()=>K_,treemapSquarify:()=>Hp,tsv:()=>Pf,tsvFormat:()=>Oc,tsvFormatBody:()=>Lf,tsvFormatRow:()=>Vu,tsvFormatRows:()=>P1,tsvFormatValue:()=>Dl,tsvParse:()=>Za,tsvParseRows:()=>Nf,union:()=>br,utcDay:()=>Fh,utcDays:()=>X3,utcFormat:()=>B0,utcFriday:()=>Ug,utcFridays:()=>e4,utcHour:()=>Qd,utcHours:()=>Z3,utcMillisecond:()=>Gd,utcMilliseconds:()=>kg,utcMinute:()=>Jd,utcMinutes:()=>V3,utcMonday:()=>Ph,utcMondays:()=>K3,utcMonth:()=>t2,utcMonths:()=>r4,utcParse:()=>a2,utcSaturday:()=>zg,utcSaturdays:()=>n4,utcSecond:()=>rc,utcSeconds:()=>Eg,utcSunday:()=>tu,utcSundays:()=>Yg,utcThursday:()=>Kc,utcThursdays:()=>t4,utcTickInterval:()=>qg,utcTicks:()=>Hg,utcTuesday:()=>Fg,utcTuesdays:()=>J3,utcWednesday:()=>Pg,utcWednesdays:()=>Q3,utcWeek:()=>tu,utcWeeks:()=>Yg,utcYear:()=>ac,utcYears:()=>i4,variance:()=>_t,window:()=>$i,xml:()=>ks,zip:()=>Vn,zoom:()=>E5,zoomIdentity:()=>K0,zoomTransform:()=>Am});const _=d(m),S=_.right,M=_.left,E=d(b).center,B=S;function R(i,a){let s=0;if(a===void 0)for(let u of i)u!=null&&(u=+u)>=u&&++s;else{let u=-1;for(let p of i)(p=a(p,++u,i))!=null&&(p=+p)>=p&&++s}return s}function U(i){return 0|i.length}function H(i){return!(i>0)}function J(i){return typeof i!="object"||"length"in i?i:Array.from(i)}function rt(...i){const a=typeof i[i.length-1]=="function"&&function(v){return x=>v(...x)}(i.pop()),s=(i=i.map(J)).map(U),u=i.length-1,p=new Array(u+1).fill(0),g=[];if(u<0||s.some(H))return g;for(;;){g.push(p.map((x,T)=>i[T][x]));let v=u;for(;++p[v]===s[v];){if(v===0)return a?g.map(a):g;p[v--]=0}}}function ft(i,a){var s=0,u=0;return Float64Array.from(i,a===void 0?p=>s+=+p||0:p=>s+=+a(p,u++,i)||0)}function K(i,a){return i==null||a==null?NaN:a<i?-1:a>i?1:a>=i?0:NaN}function _t(i,a){let s,u=0,p=0,g=0;if(a===void 0)for(let v of i)v!=null&&(v=+v)>=v&&(s=v-p,p+=s/++u,g+=s*(v-p));else{let v=-1;for(let x of i)(x=a(x,++v,i))!=null&&(x=+x)>=x&&(s=x-p,p+=s/++u,g+=s*(x-p))}if(u>1)return g/(u-1)}function at(i,a){const s=_t(i,a);return s&&Math.sqrt(s)}function st(i,a){let s,u;if(a===void 0)for(const p of i)p!=null&&(s===void 0?p>=p&&(s=u=p):(s>p&&(s=p),u<p&&(u=p)));else{let p=-1;for(let g of i)(g=a(g,++p,i))!=null&&(s===void 0?g>=g&&(s=u=g):(s>g&&(s=g),u<g&&(u=g)))}return[s,u]}class bt{constructor(){this._partials=new Float64Array(32),this._n=0}add(a){const s=this._partials;let u=0;for(let p=0;p<this._n&&p<32;p++){const g=s[p],v=a+g,x=Math.abs(a)<Math.abs(g)?a-(v-g):g-(v-a);x&&(s[u++]=x),a=v}return s[u]=a,this._n=u+1,this}valueOf(){const a=this._partials;let s,u,p,g=this._n,v=0;if(g>0){for(v=a[--g];g>0&&(s=v,u=a[--g],v=s+u,p=u-(v-s),!p););g>0&&(p<0&&a[g-1]<0||p>0&&a[g-1]>0)&&(u=2*p,s=v+u,u==s-v&&(v=s))}return v}}function zt(i,a){const s=new bt;if(a===void 0)for(let u of i)(u=+u)&&s.add(u);else{let u=-1;for(let p of i)(p=+a(p,++u,i))&&s.add(p)}return+s}function Tt(i,a){const s=new bt;let u=-1;return Float64Array.from(i,a===void 0?p=>s.add(+p||0):p=>s.add(+a(p,++u,i)||0))}class mt extends Map{constructor(a,s=dt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:s}}),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,s){return super.set(gt(this,a),s)}delete(a){return super.delete(nt(this,a))}}class Ct extends Set{constructor(a,s=dt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:s}}),a!=null)for(const u of a)this.add(u)}has(a){return super.has(xt(this,a))}add(a){return super.add(gt(this,a))}delete(a){return super.delete(nt(this,a))}}function xt({_intern:i,_key:a},s){const u=a(s);return i.has(u)?i.get(u):s}function gt({_intern:i,_key:a},s){const u=a(s);return i.has(u)?i.get(u):(i.set(u,s),s)}function nt({_intern:i,_key:a},s){const u=a(s);return i.has(u)&&(s=i.get(u),i.delete(u)),s}function dt(i){return i!==null&&typeof i=="object"?i.valueOf():i}function q(i){return i}function kt(i,...a){return Le(i,q,q,a)}function W(i,...a){return Le(i,Array.from,q,a)}function St(i,a){for(let s=1,u=a.length;s<u;++s)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 Wt(i,a,...s){return St(Ve(i,a,...s),s)}function ge(i,a,...s){return Le(i,q,a,s)}function Ve(i,a,...s){return Le(i,Array.from,a,s)}function we(i,...a){return Le(i,q,xe,a)}function he(i,...a){return Le(i,Array.from,xe,a)}function xe(i){if(i.length!==1)throw new Error("duplicate key");return i[0]}function Le(i,a,s,u){return function p(g,v){if(v>=u.length)return s(g);const x=new mt,T=u[v++];let C=-1;for(const D of g){const j=T(D,++C,g),P=x.get(j);P?P.push(D):x.set(j,[D])}for(const[D,j]of x)x.set(D,p(j,v));return a(x)}(i,0)}function Me(i,a){return Array.from(a,s=>i[s])}function be(i,...a){if(typeof i[Symbol.iterator]!="function")throw new TypeError("values is not iterable");i=Array.from(i);let[s]=a;if(s&&s.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=me(v[p],v[g]);if(x)return x}})):(s=i.map(s),u.sort((p,g)=>me(s[p],s[g]))),Me(i,u)}return i.sort(Sn(s))}function Sn(i=m){if(i===m)return me;if(typeof i!="function")throw new TypeError("compare is not a function");return(a,s)=>{const u=i(a,s);return u||u===0?u:(i(s,s)===0)-(i(a,a)===0)}}function me(i,a){return(i==null||!(i>=i))-(a==null||!(a>=a))||(i<a?-1:i>a?1:0)}function Je(i,a,s){return(a.length!==2?be(ge(i,a,s),([u,p],[g,v])=>m(p,v)||m(u,g)):be(kt(i,s),([u,p],[g,v])=>a(p,v)||m(u,g))).map(([u])=>u)}var Dt=Array.prototype,ue=Dt.slice;function re(i){return()=>i}var At=Math.sqrt(50),Ee=Math.sqrt(10),Q=Math.sqrt(2);function ce(i,a,s){var u,p,g,v,x=-1;if(s=+s,(i=+i)==(a=+a)&&s>0)return[i];if((u=a<i)&&(p=i,i=a,a=p),(v=ct(i,a,s))===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 ct(i,a,s){var u=(a-i)/Math.max(0,s),p=Math.floor(Math.log(u)/Math.LN10),g=u/Math.pow(10,p);return p>=0?(g>=At?10:g>=Ee?5:g>=Q?2:1)*Math.pow(10,p):-Math.pow(10,-p)/(g>=At?10:g>=Ee?5:g>=Q?2:1)}function Te(i,a,s){var u=Math.abs(a-i)/Math.max(0,s),p=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),g=u/p;return g>=At?p*=10:g>=Ee?p*=5:g>=Q&&(p*=2),a<i?-p:p}function pe(i,a,s){let u;for(;;){const p=ct(i,a,s);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 Pe(i){return Math.ceil(Math.log(R(i))/Math.LN2)+1}function on(){var i=q,a=st,s=Pe;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),D=C[0],j=C[1],P=s(T,D,j);if(!Array.isArray(P)){const V=j,Z=+P;if(a===st&&([D,j]=pe(D,j,Z)),(P=ce(D,j,Z))[P.length-1]>=j)if(V>=j&&a===st){const pt=ct(D,j,Z);isFinite(pt)&&(pt>0?j=(Math.floor(j/pt)+1)*pt:pt<0&&(j=(Math.ceil(j*-pt)+1)/-pt))}else P.pop()}for(var $=P.length;P[0]<=D;)P.shift(),--$;for(;P[$-1]>j;)P.pop(),--$;var it,G=new Array($+1);for(g=0;g<=$;++g)(it=G[g]=[]).x0=g>0?P[g-1]:D,it.x1=g<$?P[g]:j;for(g=0;g<x;++g)(v=T[g])!=null&&D<=v&&v<=j&&G[B(P,v,0,$)].push(p[g]);return G}return u.value=function(p){return arguments.length?(i=typeof p=="function"?p:re(p),u):i},u.domain=function(p){return arguments.length?(a=typeof p=="function"?p:re([p[0],p[1]]),u):a},u.thresholds=function(p){return arguments.length?(s=typeof p=="function"?p:Array.isArray(p)?re(ue.call(p)):re(p),u):s},u}function Ze(i,a){let s;if(a===void 0)for(const u of i)u!=null&&(s<u||s===void 0&&u>=u)&&(s=u);else{let u=-1;for(let p of i)(p=a(p,++u,i))!=null&&(s<p||s===void 0&&p>=p)&&(s=p)}return s}function un(i,a){let s;if(a===void 0)for(const u of i)u!=null&&(s>u||s===void 0&&u>=u)&&(s=u);else{let u=-1;for(let p of i)(p=a(p,++u,i))!=null&&(s>p||s===void 0&&p>=p)&&(s=p)}return s}function Ie(i,a,s=0,u=i.length-1,p){for(p=p===void 0?me:Sn(p);u>s;){if(u-s>600){const T=u-s+1,C=a-s+1,D=Math.log(T),j=.5*Math.exp(2*D/3),P=.5*Math.sqrt(D*j*(T-j)/T)*(C-T/2<0?-1:1);Ie(i,a,Math.max(s,Math.floor(a-C*j/T+P)),Math.min(u,Math.floor(a+(T-C)*j/T+P)),p)}const g=i[a];let v=s,x=u;for(De(i,s,a),p(i[u],g)>0&&De(i,s,u);v<x;){for(De(i,v,x),++v,--x;p(i[v],g)<0;)++v;for(;p(i[x],g)>0;)--x}p(i[s],g)===0?De(i,s,x):(++x,De(i,x,u)),x<=a&&(s=x+1),a<=x&&(u=x-1)}return i}function De(i,a,s){const u=i[a];i[a]=i[s],i[s]=u}function ze(i,a,s){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 D of x)(D=T(D,++C,x))!=null&&(D=+D)>=D&&(yield D)}}(i,s)),u=i.length){if((a=+a)<=0||u<2)return un(i);if(a>=1)return Ze(i);var u,p=(u-1)*a,g=Math.floor(p),v=Ze(Ie(i,g).subarray(0,g+1));return v+(un(i.subarray(g+1))-v)*(p-g)}}function Re(i,a,s=b){if(u=i.length){if((a=+a)<=0||u<2)return+s(i[0],0,i);if(a>=1)return+s(i[u-1],u-1,i);var u,p=(u-1)*a,g=Math.floor(p),v=+s(i[g],g,i);return v+(+s(i[g+1],g+1,i)-v)*(p-g)}}function _e(i,a,s){return Math.ceil((s-a)/(2*(ze(i,.75)-ze(i,.25))*Math.pow(R(i),-1/3)))}function oe(i,a,s){return Math.ceil((s-a)/(3.5*at(i)*Math.pow(R(i),-1/3)))}function vn(i,a){let s,u=-1,p=-1;if(a===void 0)for(const g of i)++p,g!=null&&(s<g||s===void 0&&g>=g)&&(s=g,u=p);else for(let g of i)(g=a(g,++p,i))!=null&&(s<g||s===void 0&&g>=g)&&(s=g,u=p);return u}function We(i,a){let s=0,u=0;if(a===void 0)for(let p of i)p!=null&&(p=+p)>=p&&(++s,u+=p);else{let p=-1;for(let g of i)(g=a(g,++p,i))!=null&&(g=+g)>=g&&(++s,u+=g)}if(s)return u/s}function cn(i,a){return ze(i,.5,a)}function He(i){return Array.from(function*(a){for(const s of a)yield*s}(i))}function En(i,a){let s,u=-1,p=-1;if(a===void 0)for(const g of i)++p,g!=null&&(s>g||s===void 0&&g>=g)&&(s=g,u=p);else for(let g of i)(g=a(g,++p,i))!=null&&(s>g||s===void 0&&g>=g)&&(s=g,u=p);return u}function Qn(i,a){const s=new mt;if(a===void 0)for(let g of i)g!=null&&g>=g&&s.set(g,(s.get(g)||0)+1);else{let g=-1;for(let v of i)(v=a(v,++g,i))!=null&&v>=v&&s.set(v,(s.get(v)||0)+1)}let u,p=0;for(const[g,v]of s)v>p&&(p=v,u=g);return u}function In(i,a=Bn){const s=[];let u,p=!1;for(const g of i)p&&s.push(a(u,g)),u=g,p=!0;return s}function Bn(i,a){return[i,a]}function Ne(i,a,s){i=+i,a=+a,s=(p=arguments.length)<2?(a=i,i=0,1):p<3?1:+s;for(var u=-1,p=0|Math.max(0,Math.ceil((a-i)/s)),g=new Array(p);++u<p;)g[u]=i+u*s;return g}function Qe(i,a=m){if(typeof i[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let s=Array.from(i);const u=new Float64Array(s.length);a.length!==2&&(s=s.map(a),a=m);const p=(x,T)=>a(s[x],s[T]);let g,v;return Uint32Array.from(s,(x,T)=>T).sort(a===m?(x,T)=>me(s[x],s[T]):Sn(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 nn(i,a=m){let s,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)&&(s=g,p=v,u=!0)}}else for(const p of i)(u?a(p,s)<0:a(p,p)===0)&&(s=p,u=!0);return s}function Se(i,a=m){if(a.length===1)return En(i,a);let s,u=-1,p=-1;for(const g of i)++p,(u<0?a(g,g)===0:a(g,s)<0)&&(s=g,u=p);return u}function An(i,a=m){let s,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)&&(s=g,p=v,u=!0)}}else for(const p of i)(u?a(p,s)>0:a(p,p)===0)&&(s=p,u=!0);return s}function Bt(i,a=m){if(a.length===1)return vn(i,a);let s,u=-1,p=-1;for(const g of i)++p,(u<0?a(g,g)===0:a(g,s)>0)&&(s=g,u=p);return u}function xr(i,a){const s=Se(i,a);return s<0?void 0:s}const Gt=qn(Math.random);function qn(i){return function(a,s=0,u=a.length){let p=u-(s=+s);for(;p;){const g=i()*p--|0,v=a[p+s];a[p+s]=a[g+s],a[g+s]=v}return a}}function zn(i,a){let s=0;if(a===void 0)for(let u of i)(u=+u)&&(s+=u);else{let u=-1;for(let p of i)(p=+a(p,++u,i))&&(s+=p)}return s}function Gn(i){if(!(p=i.length))return[];for(var a=-1,s=un(i,On),u=new Array(s);++a<s;)for(var p,g=-1,v=u[a]=new Array(p);++g<p;)v[g]=i[g][a];return u}function On(i){return i.length}function Vn(){return Gn(arguments)}function Pn(i,a){if(typeof a!="function")throw new TypeError("test is not a function");let s=-1;for(const u of i)if(!a(u,++s,i))return!1;return!0}function Nn(i,a){if(typeof a!="function")throw new TypeError("test is not a function");let s=-1;for(const u of i)if(a(u,++s,i))return!0;return!1}function Un(i,a){if(typeof a!="function")throw new TypeError("test is not a function");const s=[];let u=-1;for(const p of i)a(p,++u,i)&&s.push(p);return s}function Yn(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,(s,u)=>a(s,u,i))}function jn(i,a,s){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:s}=u.next(),p)return;++v}for(;{done:p,value:g}=u.next(),!p;)s=a(s,g,++v,i);return s}function ga(i){if(typeof i[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(i).reverse()}function Lr(i,...a){i=new Ct(i);for(const s of a)for(const u of s)i.delete(u);return i}function Ar(i,a){const s=a[Symbol.iterator](),u=new Ct;for(const p of i){if(u.has(p))return!1;let g,v;for(;({value:g,done:v}=s.next())&&!v;){if(Object.is(p,g))return!1;u.add(g)}}return!0}function Ln(i,...a){i=new Ct(i),a=a.map(si);t:for(const s of i)for(const u of a)if(!u.has(s)){i.delete(s);continue t}return i}function si(i){return i instanceof Ct?i:new Ct(i)}function Rn(i,a){const s=i[Symbol.iterator](),u=new Set;for(const p of a){const g=kr(p);if(u.has(g))continue;let v,x;for(;{value:v,done:x}=s.next();){if(x)return!1;const T=kr(v);if(u.add(T),Object.is(g,T))break}}return!0}function kr(i){return i!==null&&typeof i=="object"?i.valueOf():i}function Ir(i,a){return Rn(a,i)}function br(...i){const a=new Ct;for(const s of i)for(const u of s)a.add(u);return a}function Zr(i){return i}var Rt=1e-6;function Nr(i){return"translate("+i+",0)"}function Mr(i){return"translate(0,"+i+")"}function Zn(i){return a=>+i(a)}function Jr(i,a){return a=Math.max(0,i.bandwidth()-2*a)/2,i.round()&&(a=Math.round(a)),s=>+i(s)+a}function $r(){return!this.__axis}function Dr(i,a){var s=[],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,D=i===4||i===2?"x":"y",j=i===1||i===3?Nr:Mr;function P($){var it=u==null?a.ticks?a.ticks.apply(a,s):a.domain():u,G=p==null?a.tickFormat?a.tickFormat.apply(a,s):Zr:p,V=Math.max(g,0)+x,Z=a.range(),pt=+Z[0]+T,lt=+Z[Z.length-1]+T,ut=(a.bandwidth?Jr:Zn)(a.copy(),T),vt=$.selection?$.selection():$,wt=vt.selectAll(".domain").data([null]),ne=vt.selectAll(".tick").data(it,a).order(),ye=ne.exit(),Zt=ne.enter().append("g").attr("class","tick"),$t=ne.select("line"),Ht=ne.select("text");wt=wt.merge(wt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ne=ne.merge(Zt),$t=$t.merge(Zt.append("line").attr("stroke","currentColor").attr(D+"2",C*g)),Ht=Ht.merge(Zt.append("text").attr("fill","currentColor").attr(D,C*V).attr("dy",i===1?"0em":i===3?"0.71em":"0.32em")),$!==vt&&(wt=wt.transition($),ne=ne.transition($),$t=$t.transition($),Ht=Ht.transition($),ye=ye.transition($).attr("opacity",Rt).attr("transform",function(qt){return isFinite(qt=ut(qt))?j(qt+T):this.getAttribute("transform")}),Zt.attr("opacity",Rt).attr("transform",function(qt){var Et=this.parentNode.__axis;return j((Et&&isFinite(Et=Et(qt))?Et:ut(qt))+T)})),ye.remove(),wt.attr("d",i===4||i===2?v?"M"+C*v+","+pt+"H"+T+"V"+lt+"H"+C*v:"M"+T+","+pt+"V"+lt:v?"M"+pt+","+C*v+"V"+T+"H"+lt+"V"+C*v:"M"+pt+","+T+"H"+lt),ne.attr("opacity",1).attr("transform",function(qt){return j(ut(qt)+T)}),$t.attr(D+"2",C*g),Ht.attr(D,C*V).text(G),vt.filter($r).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=ut})}return P.scale=function($){return arguments.length?(a=$,P):a},P.ticks=function(){return s=Array.from(arguments),P},P.tickArguments=function($){return arguments.length?(s=$==null?[]:Array.from($),P):s.slice()},P.tickValues=function($){return arguments.length?(u=$==null?null:Array.from($),P):u&&u.slice()},P.tickFormat=function($){return arguments.length?(p=$,P):p},P.tickSize=function($){return arguments.length?(g=v=+$,P):g},P.tickSizeInner=function($){return arguments.length?(g=+$,P):g},P.tickSizeOuter=function($){return arguments.length?(v=+$,P):v},P.tickPadding=function($){return arguments.length?(x=+$,P):x},P.offset=function($){return arguments.length?(T=+$,P):T},P}function Qr(i){return Dr(1,i)}function Na(i){return Dr(2,i)}function hr(i){return Dr(3,i)}function Si(i){return Dr(4,i)}var Bi={value:()=>{}};function Ai(){for(var i,a=0,s=arguments.length,u={};a<s;++a){if(!(i=arguments[a]+"")||i in u||/[\s.]/.test(i))throw new Error("illegal type: "+i);u[i]=[]}return new fn(u)}function fn(i){this._=i}function mn(i,a){return i.trim().split(/^|\s+/).map(function(s){var u="",p=s.indexOf(".");if(p>=0&&(u=s.slice(p+1),s=s.slice(0,p)),s&&!a.hasOwnProperty(s))throw new Error("unknown type: "+s);return{type:s,name:u}})}function Kn(i,a){for(var s,u=0,p=i.length;u<p;++u)if((s=i[u]).name===a)return s.value}function rn(i,a,s){for(var u=0,p=i.length;u<p;++u)if(i[u].name===a){i[u]=Bi,i=i.slice(0,u).concat(i.slice(u+1));break}return s!=null&&i.push({name:a,value:s}),i}fn.prototype=Ai.prototype={constructor:fn,on:function(i,a){var s,u=this._,p=mn(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(s=(i=p[g]).type)u[s]=rn(u[s],i.name,a);else if(a==null)for(s in u)u[s]=rn(u[s],i.name,null);return this}for(;++g<v;)if((s=(i=p[g]).type)&&(s=Kn(u[s],i.name)))return s},copy:function(){var i={},a=this._;for(var s in a)i[s]=a[s].slice();return new fn(i)},call:function(i,a){if((s=arguments.length-2)>0)for(var s,u,p=new Array(s),g=0;g<s;++g)p[g]=arguments[g+2];if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(g=0,s=(u=this._[i]).length;g<s;++g)u[g].value.apply(a,p)},apply:function(i,a,s){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,s)}};const lr=Ai;function Xt(){}function Pr(i){return i==null?Xt:function(){return this.querySelector(i)}}function Qt(i){return i==null?[]:Array.isArray(i)?i:Array.from(i)}function wr(){return[]}function ri(i){return i==null?wr:function(){return this.querySelectorAll(i)}}function ci(i){return function(){return this.matches(i)}}function La(i){return function(a){return a.matches(i)}}var Ri=Array.prototype.find;function kn(){return this.firstElementChild}var Ur=Array.prototype.filter;function Dn(){return Array.from(this.children)}function ya(i){return new Array(i.length)}function Br(i,a){this.ownerDocument=i.ownerDocument,this.namespaceURI=i.namespaceURI,this._next=null,this._parent=i,this.__data__=a}function Fi(i){return function(){return i}}function zr(i,a,s,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):s[x]=new Br(i,g[x]);for(;x<T;++x)(v=a[x])&&(p[x]=v)}function gr(i,a,s,u,p,g,v){var x,T,C,D=new Map,j=a.length,P=g.length,$=new Array(j);for(x=0;x<j;++x)(T=a[x])&&($[x]=C=v.call(T,T.__data__,x,a)+"",D.has(C)?p[x]=T:D.set(C,T));for(x=0;x<P;++x)C=v.call(i,g[x],x,g)+"",(T=D.get(C))?(u[x]=T,T.__data__=g[x],D.delete(C)):s[x]=new Br(i,g[x]);for(x=0;x<j;++x)(T=a[x])&&D.get($[x])===T&&(p[x]=T)}function ki(i){return i.__data__}function Hr(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function ti(i,a){return i<a?-1:i>a?1:i>=a?0:NaN}Br.prototype={constructor:Br,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 Ki="http://www.w3.org/1999/xhtml";const Ci={svg:"http://www.w3.org/2000/svg",xhtml:Ki,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ei(i){var a=i+="",s=a.indexOf(":");return s>=0&&(a=i.slice(0,s))!=="xmlns"&&(i=i.slice(s+1)),Ci.hasOwnProperty(a)?{space:Ci[a],local:i}:i}function ma(i){return function(){this.removeAttribute(i)}}function qr(i){return function(){this.removeAttributeNS(i.space,i.local)}}function Xr(i,a){return function(){this.setAttribute(i,a)}}function ii(i,a){return function(){this.setAttributeNS(i.space,i.local,a)}}function Pi(i,a){return function(){var s=a.apply(this,arguments);s==null?this.removeAttribute(i):this.setAttribute(i,s)}}function Co(i,a){return function(){var s=a.apply(this,arguments);s==null?this.removeAttributeNS(i.space,i.local):this.setAttributeNS(i.space,i.local,s)}}function $i(i){return i.ownerDocument&&i.ownerDocument.defaultView||i.document&&i||i.defaultView}function Jt(i){return function(){this.style.removeProperty(i)}}function wn(i,a,s){return function(){this.style.setProperty(i,a,s)}}function sn(i,a,s){return function(){var u=a.apply(this,arguments);u==null?this.style.removeProperty(i):this.style.setProperty(i,u,s)}}function ar(i,a){return i.style.getPropertyValue(a)||$i(i).getComputedStyle(i,null).getPropertyValue(a)}function Yr(i){return function(){delete this[i]}}function di(i,a){return function(){this[i]=a}}function Kr(i,a){return function(){var s=a.apply(this,arguments);s==null?delete this[i]:this[i]=s}}function Hi(i){return i.trim().split(/^|\s+/)}function Ji(i){return i.classList||new li(i)}function li(i){this._node=i,this._names=Hi(i.getAttribute("class")||"")}function Ka(i,a){for(var s=Ji(i),u=-1,p=a.length;++u<p;)s.add(a[u])}function is(i,a){for(var s=Ji(i),u=-1,p=a.length;++u<p;)s.remove(a[u])}function fc(i){return function(){Ka(this,i)}}function tl(i){return function(){is(this,i)}}function Ma(i,a){return function(){(a.apply(this,arguments)?Ka:is)(this,i)}}function Ss(){this.textContent=""}function ou(i){return function(){this.textContent=i}}function dc(i){return function(){var a=i.apply(this,arguments);this.textContent=a==null?"":a}}function hn(){this.innerHTML=""}function pc(i){return function(){this.innerHTML=i}}function Er(i){return function(){var a=i.apply(this,arguments);this.innerHTML=a==null?"":a}}function Qi(){this.nextSibling&&this.parentNode.appendChild(this)}function uo(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Oa(i){return function(){var a=this.ownerDocument,s=this.namespaceURI;return s===Ki&&a.documentElement.namespaceURI===Ki?a.createElement(i):a.createElementNS(s,i)}}function Da(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function Io(i){var a=ei(i);return(a.local?Da:Oa)(a)}function gc(){return null}function el(){var i=this.parentNode;i&&i.removeChild(this)}function As(){var i=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function $a(){var i=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(i,this.nextSibling):i}function yc(i){return i.trim().split(/^|\s+/).map(function(a){var s="",u=a.indexOf(".");return u>=0&&(s=a.slice(u+1),a=a.slice(0,u)),{type:a,name:s}})}function Ba(i){return function(){var a=this.__on;if(a){for(var s,u=0,p=-1,g=a.length;u<g;++u)s=a[u],i.type&&s.type!==i.type||s.name!==i.name?a[++p]=s:this.removeEventListener(s.type,s.listener,s.options);++p?a.length=p:delete this.__on}}}function mc(i,a,s){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=s),void(u.value=a)}this.addEventListener(i.type,g,s),u={type:i.type,name:i.name,value:a,listener:g,options:s},p?p.push(u):this.__on=[u]}}function _c(i,a,s){var u=$i(i),p=u.CustomEvent;typeof p=="function"?p=new p(a,s):(p=u.document.createEvent("Event"),s?(p.initEvent(a,s.bubbles,s.cancelable),p.detail=s.detail):p.initEvent(a,!1,!1)),i.dispatchEvent(p)}function ta(i,a){return function(){return _c(this,i,a)}}function Cs(i,a){return function(){return _c(this,i,a.apply(this,arguments))}}li.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 No=[null];function pi(i,a){this._groups=i,this._parents=a}function nr(){return new pi([[document.documentElement]],No)}pi.prototype=nr.prototype={constructor:pi,select:function(i){typeof i!="function"&&(i=Pr(i));for(var a=this._groups,s=a.length,u=new Array(s),p=0;p<s;++p)for(var g,v,x=a[p],T=x.length,C=u[p]=new Array(T),D=0;D<T;++D)(g=x[D])&&(v=i.call(g,g.__data__,D,x))&&("__data__"in g&&(v.__data__=g.__data__),C[D]=v);return new pi(u,this._parents)},selectAll:function(i){i=typeof i=="function"?function(D){return function(){return Qt(D.apply(this,arguments))}}(i):ri(i);for(var a=this._groups,s=a.length,u=[],p=[],g=0;g<s;++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 pi(u,p)},selectChild:function(i){return this.select(i==null?kn:function(a){return function(){return Ri.call(this.children,a)}}(typeof i=="function"?i:La(i)))},selectChildren:function(i){return this.selectAll(i==null?Dn:function(a){return function(){return Ur.call(this.children,a)}}(typeof i=="function"?i:La(i)))},filter:function(i){typeof i!="function"&&(i=ci(i));for(var a=this._groups,s=a.length,u=new Array(s),p=0;p<s;++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 pi(u,this._parents)},data:function(i,a){if(!arguments.length)return Array.from(this,ki);var s=a?gr:zr,u=this._parents,p=this._groups;typeof i!="function"&&(i=Fi(i));for(var g=p.length,v=new Array(g),x=new Array(g),T=new Array(g),C=0;C<g;++C){var D=u[C],j=p[C],P=j.length,$=Hr(i.call(D,D&&D.__data__,C,u)),it=$.length,G=x[C]=new Array(it),V=v[C]=new Array(it),Z=T[C]=new Array(P);s(D,j,G,V,Z,$,a);for(var pt,lt,ut=0,vt=0;ut<it;++ut)if(pt=G[ut]){for(ut>=vt&&(vt=ut+1);!(lt=V[vt])&&++vt<it;);pt._next=lt||null}}return(v=new pi(v,u))._enter=x,v._exit=T,v},enter:function(){return new pi(this._enter||this._groups.map(ya),this._parents)},exit:function(){return new pi(this._exit||this._groups.map(ya),this._parents)},join:function(i,a,s){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()),s==null?g.remove():s(g),u&&p?u.merge(p).order():p},merge:function(i){for(var a=i.selection?i.selection():i,s=this._groups,u=a._groups,p=s.length,g=u.length,v=Math.min(p,g),x=new Array(p),T=0;T<v;++T)for(var C,D=s[T],j=u[T],P=D.length,$=x[T]=new Array(P),it=0;it<P;++it)(C=D[it]||j[it])&&($[it]=C);for(;T<p;++T)x[T]=s[T];return new pi(x,this._parents)},selection:function(){return this},order:function(){for(var i=this._groups,a=-1,s=i.length;++a<s;)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(j,P){return j&&P?i(j.__data__,P.__data__):!j-!P}i||(i=ti);for(var s=this._groups,u=s.length,p=new Array(u),g=0;g<u;++g){for(var v,x=s[g],T=x.length,C=p[g]=new Array(T),D=0;D<T;++D)(v=x[D])&&(C[D]=v);C.sort(a)}return new pi(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,s=i.length;a<s;++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,s=0,u=a.length;s<u;++s)for(var p,g=a[s],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 s=ei(i);if(arguments.length<2){var u=this.node();return s.local?u.getAttributeNS(s.space,s.local):u.getAttribute(s)}return this.each((a==null?s.local?qr:ma:typeof a=="function"?s.local?Co:Pi:s.local?ii:Xr)(s,a))},style:function(i,a,s){return arguments.length>1?this.each((a==null?Jt:typeof a=="function"?sn:wn)(i,a,s==null?"":s)):ar(this.node(),i)},property:function(i,a){return arguments.length>1?this.each((a==null?Yr:typeof a=="function"?Kr:di)(i,a)):this.node()[i]},classed:function(i,a){var s=Hi(i+"");if(arguments.length<2){for(var u=Ji(this.node()),p=-1,g=s.length;++p<g;)if(!u.contains(s[p]))return!1;return!0}return this.each((typeof a=="function"?Ma:a?fc:tl)(s,a))},text:function(i){return arguments.length?this.each(i==null?Ss:(typeof i=="function"?dc:ou)(i)):this.node().textContent},html:function(i){return arguments.length?this.each(i==null?hn:(typeof i=="function"?Er:pc)(i)):this.node().innerHTML},raise:function(){return this.each(Qi)},lower:function(){return this.each(uo)},append:function(i){var a=typeof i=="function"?i:Io(i);return this.select(function(){return this.appendChild(a.apply(this,arguments))})},insert:function(i,a){var s=typeof i=="function"?i:Io(i),u=a==null?gc:typeof a=="function"?a:Pr(a);return this.select(function(){return this.insertBefore(s.apply(this,arguments),u.apply(this,arguments)||null)})},remove:function(){return this.each(el)},clone:function(i){return this.select(i?$a:As)},datum:function(i){return arguments.length?this.property("__data__",i):this.node().__data__},on:function(i,a,s){var u,p,g=yc(i+""),v=g.length;if(!(arguments.length<2)){for(x=a?mc:Ba,u=0;u<v;++u)this.each(x(g[u],a,s));return this}var x=this.node().__on;if(x){for(var T,C=0,D=x.length;C<D;++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"?Cs:ta)(i,a))},[Symbol.iterator]:function*(){for(var i=this._groups,a=0,s=i.length;a<s;++a)for(var u,p=i[a],g=0,v=p.length;g<v;++g)(u=p[g])&&(yield u)}};const Rr=nr;function wi(i){return typeof i=="string"?new pi([[document.querySelector(i)]],[document.documentElement]):new pi([[i]],No)}const nl={passive:!1},Lo={capture:!0,passive:!1};function Is(i){i.stopImmediatePropagation()}function Ha(i){i.preventDefault(),i.stopImmediatePropagation()}function ho(i){var a=i.document.documentElement,s=wi(i).on("dragstart.drag",Ha,Lo);"onselectstart"in a?s.on("selectstart.drag",Ha,Lo):(a.__noselect=a.style.MozUserSelect,a.style.MozUserSelect="none")}function as(i,a){var s=i.document.documentElement,u=wi(i).on("dragstart.drag",null);a&&(u.on("click.drag",Ha,Lo),setTimeout(function(){u.on("click.drag",null)},0)),"onselectstart"in s?u.on("selectstart.drag",null):(s.style.MozUserSelect=s.__noselect,delete s.__noselect)}function Ui(i,a,s){i.prototype=a.prototype=s,s.constructor=i}function xn(i,a){var s=Object.create(i.prototype);for(var u in a)s[u]=a[u];return s}function _a(){}var qi=.7,ea=1/qi,tr="\\s*([+-]?\\d+)\\s*",N="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",z="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tt=/^#([0-9a-f]{3,8})$/,yt=new RegExp("^rgb\\("+[tr,tr,tr]+"\\)$"),ie=new RegExp("^rgb\\("+[z,z,z]+"\\)$"),Ce=new RegExp("^rgba\\("+[tr,tr,tr,N]+"\\)$"),$e=new RegExp("^rgba\\("+[z,z,z,N]+"\\)$"),tn=new RegExp("^hsl\\("+[N,z,z]+"\\)$"),en=new RegExp("^hsla\\("+[N,z,z,N]+"\\)$"),dn={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 Tn(){return this.rgb().formatRgb()}function Cn(i){var a,s;return i=(i+"").trim().toLowerCase(),(a=tt.exec(i))?(s=a[1].length,a=parseInt(a[1],16),s===6?yr(a):s===3?new Gr(a>>8&15|a>>4&240,a>>4&15|240&a,(15&a)<<4|15&a,1):s===8?or(a>>24&255,a>>16&255,a>>8&255,(255&a)/255):s===4?or(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=yt.exec(i))?new Gr(a[1],a[2],a[3],1):(a=ie.exec(i))?new Gr(255*a[1]/100,255*a[2]/100,255*a[3]/100,1):(a=Ce.exec(i))?or(a[1],a[2],a[3],a[4]):(a=$e.exec(i))?or(255*a[1]/100,255*a[2]/100,255*a[3]/100,a[4]):(a=tn.exec(i))?cu(a[1],a[2]/100,a[3]/100,1):(a=en.exec(i))?cu(a[1],a[2]/100,a[3]/100,a[4]):dn.hasOwnProperty(i)?yr(dn[i]):i==="transparent"?new Gr(NaN,NaN,NaN,0):null}function yr(i){return new Gr(i>>16&255,i>>8&255,255&i,1)}function or(i,a,s,u){return u<=0&&(i=a=s=NaN),new Gr(i,a,s,u)}function Wr(i){return i instanceof _a||(i=Cn(i)),i?new Gr((i=i.rgb()).r,i.g,i.b,i.opacity):new Gr}function gi(i,a,s,u){return arguments.length===1?Wr(i):new Gr(i,a,s,u==null?1:u)}function Gr(i,a,s,u){this.r=+i,this.g=+a,this.b=+s,this.opacity=+u}function Ns(){return"#"+su(this.r)+su(this.g)+su(this.b)}function rl(){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 su(i){return((i=Math.max(0,Math.min(255,Math.round(i)||0)))<16?"0":"")+i.toString(16)}function cu(i,a,s,u){return u<=0?i=a=s=NaN:s<=0||s>=1?i=a=NaN:a<=0&&(i=NaN),new Ja(i,a,s,u)}function lu(i){if(i instanceof Ja)return new Ja(i.h,i.s,i.l,i.opacity);if(i instanceof _a||(i=Cn(i)),!i)return new Ja;if(i instanceof Ja)return i;var a=(i=i.rgb()).r/255,s=i.g/255,u=i.b/255,p=Math.min(a,s,u),g=Math.max(a,s,u),v=NaN,x=g-p,T=(g+p)/2;return x?(v=a===g?(s-u)/x+6*(s<u):s===g?(u-a)/x+2:(a-s)/x+4,x/=T<.5?g+p:2-g-p,v*=60):x=T>0&&T<1?0:v,new Ja(v,x,T,i.opacity)}function Mo(i,a,s,u){return arguments.length===1?lu(i):new Ja(i,a,s,u==null?1:u)}function Ja(i,a,s,u){this.h=+i,this.s=+a,this.l=+s,this.opacity=+u}function os(i,a,s){return 255*(i<60?a+(s-a)*i/60:i<180?s:i<240?a+(s-a)*(240-i)/60:a)}function Wh(i,a,s,u,p){var g=i*i,v=g*i;return((1-3*i+3*g-v)*a+(4-6*g+3*v)*s+(1+3*i+3*g-3*v)*u+v*p)/6}function yi(i){var a=i.length-1;return function(s){var u=s<=0?s=0:s>=1?(s=1,a-1):Math.floor(s*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 Wh((s-u/a)*a,v,p,g,x)}}function uu(i){var a=i.length;return function(s){var u=Math.floor(((s%=1)<0?++s:s)*a),p=i[(u+a-1)%a],g=i[u%a],v=i[(u+1)%a],x=i[(u+2)%a];return Wh((s-u/a)*a,p,g,v,x)}}Ui(_a,Cn,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:_n,formatHex:_n,formatHsl:function(){return lu(this).formatHsl()},formatRgb:Tn,toString:Tn}),Ui(Gr,gi,xn(_a,{brighter:function(i){return i=i==null?ea:Math.pow(ea,i),new Gr(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=i==null?qi:Math.pow(qi,i),new Gr(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:Ns,formatHex:Ns,formatRgb:rl,toString:rl})),Ui(Ja,Mo,xn(_a,{brighter:function(i){return i=i==null?ea:Math.pow(ea,i),new Ja(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?qi:Math.pow(qi,i),new Ja(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,s=this.l,u=s+(s<.5?s:1-s)*a,p=2*s-u;return new Gr(os(i>=240?i-240:i+120,p,u),os(i,p,u),os(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 Ls=i=>()=>i;function Gh(i,a){return function(s){return i+s*a}}function il(i,a){var s=a-i;return s?Gh(i,s>180||s<-180?s-360*Math.round(s/360):s):Ls(isNaN(i)?a:i)}function Ii(i,a){var s=a-i;return s?Gh(i,s):Ls(isNaN(i)?a:i)}const Ms=function i(a){var s=function(p){return(p=+p)==1?Ii: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(D){return Math.pow(x+D*T,C)}}(g,v,p):Ls(isNaN(g)?v:g)}}(a);function u(p,g){var v=s((p=gi(p)).r,(g=gi(g)).r),x=s(p.g,g.g),T=s(p.b,g.b),C=Ii(p.opacity,g.opacity);return function(D){return p.r=v(D),p.g=x(D),p.b=T(D),p.opacity=C(D),p+""}}return u.gamma=i,u}(1);function ss(i){return function(a){var s,u,p=a.length,g=new Array(p),v=new Array(p),x=new Array(p);for(s=0;s<p;++s)u=gi(a[s]),g[s]=u.r||0,v[s]=u.g||0,x[s]=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 al=ss(yi),J0=ss(uu);function bc(i,a){a||(a=[]);var s,u=i?Math.min(a.length,i.length):0,p=a.slice();return function(g){for(s=0;s<u;++s)p[s]=i[s]*(1-g)+a[s]*g;return p}}function vc(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}function Q0(i,a){return(vc(a)?bc:Vh)(i,a)}function Vh(i,a){var s,u=a?a.length:0,p=i?Math.min(u,i.length):0,g=new Array(p),v=new Array(u);for(s=0;s<p;++s)g[s]=er(i[s],a[s]);for(;s<u;++s)v[s]=a[s];return function(x){for(s=0;s<p;++s)v[s]=g[s](x);return v}}function Zh(i,a){var s=new Date;return i=+i,a=+a,function(u){return s.setTime(i*(1-u)+a*u),s}}function la(i,a){return i=+i,a=+a,function(s){return i*(1-s)+a*s}}function na(i,a){var s,u={},p={};for(s in i!==null&&typeof i=="object"||(i={}),a!==null&&typeof a=="object"||(a={}),a)s in i?u[s]=er(i[s],a[s]):p[s]=a[s];return function(g){for(s in u)p[s]=u[s](g);return p}}var Ni=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ni=new RegExp(Ni.source,"g");function qa(i,a){var s,u,p,g=Ni.lastIndex=ni.lastIndex=0,v=-1,x=[],T=[];for(i+="",a+="";(s=Ni.exec(i))&&(u=ni.exec(a));)(p=u.index)>g&&(p=a.slice(g,p),x[v]?x[v]+=p:x[++v]=p),(s=s[0])===(u=u[0])?x[v]?x[v]+=u:x[++v]=u:(x[++v]=null,T.push({i:v,x:la(s,u)})),g=ni.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(D){return C(D)+""}}(T[0].x):function(C){return function(){return C}}(a):(a=T.length,function(C){for(var D,j=0;j<a;++j)x[(D=T[j]).i]=D.x(C);return x.join("")})}function er(i,a){var s,u=typeof a;return a==null||u==="boolean"?Ls(a):(u==="number"?la:u==="string"?(s=Cn(a))?(a=s,Ms):qa:a instanceof Cn?Ms:a instanceof Date?Zh:vc(a)?bc:Array.isArray(a)?Vh:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?na:la)(i,a)}function Ra(i){let a;for(;a=i.sourceEvent;)i=a;return i}function ua(i,a){if(i=Ra(i),a===void 0&&(a=i.currentTarget),a){var s=a.ownerSVGElement||a;if(s.createSVGPoint){var u=s.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 cs,xc,Os=0,Oo=0,Do=0,ol=0,ls=0,sl=0,kc=typeof performance=="object"&&performance.now?performance:Date,Xh=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(i){setTimeout(i,17)};function wc(){return ls||(Xh(Kh),ls=kc.now()+sl)}function Kh(){ls=0}function Ec(){this._call=this._time=this._next=null}function Bo(i,a,s){var u=new Ec;return u.restart(i,a,s),u}function Ds(){wc(),++Os;for(var i,a=cs;a;)(i=ls-a._time)>=0&&a._call.call(void 0,i),a=a._next;--Os}function Qa(){ls=(ol=kc.now())+sl,Os=Oo=0;try{Ds()}finally{Os=0,function(){for(var i,a,s=cs,u=1/0;s;)s._call?(u>s._time&&(u=s._time),i=s,s=s._next):(a=s._next,s._next=null,s=i?i._next=a:cs=a);xc=i,Bs(u)}(),ls=0}}function Ro(){var i=kc.now(),a=i-ol;a>1e3&&(sl-=a,ol=i)}function Bs(i){Os||(Oo&&(Oo=clearTimeout(Oo)),i-ls>24?(i<1/0&&(Oo=setTimeout(Qa,i-kc.now()-sl)),Do&&(Do=clearInterval(Do))):(Do||(ol=kc.now(),Do=setInterval(Ro,1e3)),Os=1,Xh(Qa)))}function cl(i,a,s){var u=new Ec;return a=a==null?0:+a,u.restart(p=>{u.stop(),i(p+a)},a,s),u}Ec.prototype=Bo.prototype={constructor:Ec,restart:function(i,a,s){if(typeof i!="function")throw new TypeError("callback is not a function");s=(s==null?wc():+s)+(a==null?0:+a),this._next||xc===this||(xc?xc._next=this:cs=this,xc=this),this._call=i,this._time=s,Bs()},stop:function(){this._call&&(this._call=null,this._time=1/0,Bs())}};var Jh=lr("start","end","cancel","interrupt"),Qh=[];function fo(i,a,s,u,p,g){var v=i.__transition;if(v){if(s in v)return}else i.__transition={};(function(x,T,C){var D,j=x.__transition;function P(G){var V,Z,pt,lt;if(C.state!==1)return it();for(V in j)if((lt=j[V]).name===C.name){if(lt.state===3)return cl(P);lt.state===4?(lt.state=6,lt.timer.stop(),lt.on.call("interrupt",x,x.__data__,lt.index,lt.group),delete j[V]):+V<T&&(lt.state=6,lt.timer.stop(),lt.on.call("cancel",x,x.__data__,lt.index,lt.group),delete j[V])}if(cl(function(){C.state===3&&(C.state=4,C.timer.restart($,C.delay,C.time),$(G))}),C.state=2,C.on.call("start",x,x.__data__,C.index,C.group),C.state===2){for(C.state=3,D=new Array(pt=C.tween.length),V=0,Z=-1;V<pt;++V)(lt=C.tween[V].value.call(x,x.__data__,C.index,C.group))&&(D[++Z]=lt);D.length=Z+1}}function $(G){for(var V=G<C.duration?C.ease.call(null,G/C.duration):(C.timer.restart(it),C.state=5,1),Z=-1,pt=D.length;++Z<pt;)D[Z].call(x,V);C.state===5&&(C.on.call("end",x,x.__data__,C.index,C.group),it())}function it(){for(var G in C.state=6,C.timer.stop(),delete j[T],j)return;delete x.__transition}j[T]=C,C.timer=Bo(function(G){C.state=1,C.timer.restart(P,C.delay,C.time),C.delay<=G&&P(G-C.delay)},0,C.time)})(i,s,{name:a,index:u,group:p,on:Jh,tween:Qh,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:0})}function ll(i,a){var s=Fa(i,a);if(s.state>0)throw new Error("too late; already scheduled");return s}function to(i,a){var s=Fa(i,a);if(s.state>3)throw new Error("too late; already running");return s}function Fa(i,a){var s=i.__transition;if(!s||!(s=s[a]))throw new Error("transition not found");return s}function eo(i,a){var s,u,p,g=i.__transition,v=!0;if(g){for(p in a=a==null?null:a+"",g)(s=g[p]).name===a?(u=s.state>2&&s.state<5,s.state=6,s.timer.stop(),s.on.call(u?"interrupt":"cancel",i,i.__data__,s.index,s.group),delete g[p]):v=!1;v&&delete i.__transition}}var mi,t1=180/Math.PI,Rs={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function e1(i,a,s,u,p,g){var v,x,T;return(v=Math.sqrt(i*i+a*a))&&(i/=v,a/=v),(T=i*s+a*u)&&(s-=i*T,u-=a*T),(x=Math.sqrt(s*s+u*u))&&(s/=x,u/=x,T/=x),i*u<a*s&&(i=-i,a=-a,T=-T,v=-v),{translateX:p,translateY:g,rotate:Math.atan2(a,i)*t1,skewX:Math.atan(T)*t1,scaleX:v,scaleY:x}}function hu(i,a,s,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,D,j,P,$,it){if(C!==j||D!==P){var G=$.push("translate(",null,a,null,s);it.push({i:G-4,x:la(C,j)},{i:G-2,x:la(D,P)})}else(j||P)&&$.push("translate("+j+a+P+s)}(g.translateX,g.translateY,v.translateX,v.translateY,x,T),function(C,D,j,P){C!==D?(C-D>180?D+=360:D-C>180&&(C+=360),P.push({i:j.push(p(j)+"rotate(",null,u)-2,x:la(C,D)})):D&&j.push(p(j)+"rotate("+D+u)}(g.rotate,v.rotate,x,T),function(C,D,j,P){C!==D?P.push({i:j.push(p(j)+"skewX(",null,u)-2,x:la(C,D)}):D&&j.push(p(j)+"skewX("+D+u)}(g.skewX,v.skewX,x,T),function(C,D,j,P,$,it){if(C!==j||D!==P){var G=$.push(p($)+"scale(",null,",",null,")");it.push({i:G-4,x:la(C,j)},{i:G-2,x:la(D,P)})}else j===1&&P===1||$.push(p($)+"scale("+j+","+P+")")}(g.scaleX,g.scaleY,v.scaleX,v.scaleY,x,T),g=v=null,function(C){for(var D,j=-1,P=T.length;++j<P;)x[(D=T[j]).i]=D.x(C);return x.join("")}}}var n1=hu(function(i){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(i+"");return a.isIdentity?Rs:e1(a.a,a.b,a.c,a.d,a.e,a.f)},"px, ","px)","deg)"),ul=hu(function(i){return i==null?Rs:(mi||(mi=document.createElementNS("http://www.w3.org/2000/svg","g")),mi.setAttribute("transform",i),(i=mi.transform.baseVal.consolidate())?e1((i=i.matrix).a,i.b,i.c,i.d,i.e,i.f):Rs)},", ",")",")");function r1(i,a){var s,u;return function(){var p=to(this,i),g=p.tween;if(g!==s){for(var v=0,x=(u=s=g).length;v<x;++v)if(u[v].name===a){(u=u.slice()).splice(v,1);break}}p.tween=u}}function tf(i,a,s){var u,p;if(typeof s!="function")throw new Error;return function(){var g=to(this,i),v=g.tween;if(v!==u){p=(u=v).slice();for(var x={name:a,value:s},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 fu(i,a,s){var u=i._id;return i.each(function(){var p=to(this,u);(p.value||(p.value={}))[a]=s.apply(this,arguments)}),function(p){return Fa(p,u).value[a]}}function du(i,a){var s;return(typeof a=="number"?la:a instanceof Cn?Ms:(s=Cn(a))?(a=s,Ms):qa)(i,a)}function Tc(i){return function(){this.removeAttribute(i)}}function pu(i){return function(){this.removeAttributeNS(i.space,i.local)}}function i1(i,a,s){var u,p,g=s+"";return function(){var v=this.getAttribute(i);return v===g?null:v===u?p:p=a(u=v,s)}}function ef(i,a,s){var u,p,g=s+"";return function(){var v=this.getAttributeNS(i.space,i.local);return v===g?null:v===u?p:p=a(u=v,s)}}function po(i,a,s){var u,p,g;return function(){var v,x,T=s(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 Fo(i,a,s){var u,p,g;return function(){var v,x,T=s(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 Or(i,a){return function(s){this.setAttribute(i,a.call(this,s))}}function a1(i,a){return function(s){this.setAttributeNS(i.space,i.local,a.call(this,s))}}function o1(i,a){var s,u;function p(){var g=a.apply(this,arguments);return g!==u&&(s=(u=g)&&a1(i,g)),s}return p._value=a,p}function nf(i,a){var s,u;function p(){var g=a.apply(this,arguments);return g!==u&&(s=(u=g)&&Or(i,g)),s}return p._value=a,p}function rf(i,a){return function(){ll(this,i).delay=+a.apply(this,arguments)}}function af(i,a){return a=+a,function(){ll(this,i).delay=a}}function gu(i,a){return function(){to(this,i).duration=+a.apply(this,arguments)}}function yu(i,a){return a=+a,function(){to(this,i).duration=a}}function go(i,a){if(typeof a!="function")throw new Error;return function(){to(this,i).ease=a}}function hl(i,a,s){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)?ll:to;return function(){var v=g(this,i),x=v.on;x!==u&&(p=(u=x).copy()).on(a,s),v.on=p}}var of=Rr.prototype.constructor;function mu(i){return function(){this.style.removeProperty(i)}}function _u(i,a,s){return function(u){this.style.setProperty(i,a.call(this,u),s)}}function ai(i,a,s){var u,p;function g(){var v=a.apply(this,arguments);return v!==p&&(u=(p=v)&&_u(i,v,s)),u}return g._value=a,g}function us(i){return function(a){this.textContent=i.call(this,a)}}function Fs(i){var a,s;function u(){var p=i.apply(this,arguments);return p!==s&&(a=(s=p)&&us(p)),a}return u._value=i,u}var no=0;function ba(i,a,s,u){this._groups=i,this._parents=a,this._name=s,this._id=u}function fl(i){return Rr().transition(i)}function dl(){return++no}var Wa=Rr.prototype;function pl(i){return i*i*i}function gl(i){return--i*i*i+1}function Ps(i){return((i*=2)<=1?i*i*i:(i-=2)*i*i+2)/2}ba.prototype=fl.prototype={constructor:ba,select:function(i){var a=this._name,s=this._id;typeof i!="function"&&(i=Pr(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],D=C.length,j=g[v]=new Array(D),P=0;P<D;++P)(x=C[P])&&(T=i.call(x,x.__data__,P,C))&&("__data__"in x&&(T.__data__=x.__data__),j[P]=T,fo(j[P],a,s,P,j,Fa(x,s)));return new ba(g,this._parents,a,s)},selectAll:function(i){var a=this._name,s=this._id;typeof i!="function"&&(i=ri(i));for(var u=this._groups,p=u.length,g=[],v=[],x=0;x<p;++x)for(var T,C=u[x],D=C.length,j=0;j<D;++j)if(T=C[j]){for(var P,$=i.call(T,T.__data__,j,C),it=Fa(T,s),G=0,V=$.length;G<V;++G)(P=$[G])&&fo(P,a,s,G,$,it);g.push($),v.push(T)}return new ba(g,v,a,s)},selectChild:Wa.selectChild,selectChildren:Wa.selectChildren,filter:function(i){typeof i!="function"&&(i=ci(i));for(var a=this._groups,s=a.length,u=new Array(s),p=0;p<s;++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 ba(u,this._parents,this._name,this._id)},merge:function(i){if(i._id!==this._id)throw new Error;for(var a=this._groups,s=i._groups,u=a.length,p=s.length,g=Math.min(u,p),v=new Array(u),x=0;x<g;++x)for(var T,C=a[x],D=s[x],j=C.length,P=v[x]=new Array(j),$=0;$<j;++$)(T=C[$]||D[$])&&(P[$]=T);for(;x<u;++x)v[x]=a[x];return new ba(v,this._parents,this._name,this._id)},selection:function(){return new of(this._groups,this._parents)},transition:function(){for(var i=this._name,a=this._id,s=dl(),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 D=Fa(v,a);fo(v,i,s,C,x,{time:D.time+D.delay+D.duration,delay:0,duration:D.duration,ease:D.ease})}return new ba(u,this._parents,i,s)},call:Wa.call,nodes:Wa.nodes,node:Wa.node,size:Wa.size,empty:Wa.empty,each:Wa.each,on:function(i,a){var s=this._id;return arguments.length<2?Fa(this.node(),s).on.on(i):this.each(hl(s,i,a))},attr:function(i,a){var s=ei(i),u=s==="transform"?ul:du;return this.attrTween(i,typeof a=="function"?(s.local?Fo:po)(s,u,fu(this,"attr."+i,a)):a==null?(s.local?pu:Tc)(s):(s.local?ef:i1)(s,u,a))},attrTween:function(i,a){var s="attr."+i;if(arguments.length<2)return(s=this.tween(s))&&s._value;if(a==null)return this.tween(s,null);if(typeof a!="function")throw new Error;var u=ei(i);return this.tween(s,(u.local?o1:nf)(u,a))},style:function(i,a,s){var u=(i+="")=="transform"?n1:du;return a==null?this.styleTween(i,function(p,g){var v,x,T;return function(){var C=ar(this,p),D=(this.style.removeProperty(p),ar(this,p));return C===D?null:C===v&&D===x?T:T=g(v=C,x=D)}}(i,u)).on("end.style."+i,mu(i)):typeof a=="function"?this.styleTween(i,function(p,g,v){var x,T,C;return function(){var D=ar(this,p),j=v(this),P=j+"";return j==null&&(this.style.removeProperty(p),P=j=ar(this,p)),D===P?null:D===x&&P===T?C:(T=P,C=g(x=D,j))}}(i,u,fu(this,"style."+i,a))).each(function(p,g){var v,x,T,C,D="style."+g,j="end."+D;return function(){var P=to(this,p),$=P.on,it=P.value[D]==null?C||(C=mu(g)):void 0;$===v&&T===it||(x=(v=$).copy()).on(j,T=it),P.on=x}}(this._id,i)):this.styleTween(i,function(p,g,v){var x,T,C=v+"";return function(){var D=ar(this,p);return D===C?null:D===x?T:T=g(x=D,v)}}(i,u,a),s).on("end.style."+i,null)},styleTween:function(i,a,s){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,ai(i,a,s==null?"":s))},text:function(i){return this.tween("text",typeof i=="function"?function(a){return function(){var s=a(this);this.textContent=s==null?"":s}}(fu(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,Fs(i))},remove:function(){return this.on("end.remove",function(i){return function(){var a=this.parentNode;for(var s in this.__transition)if(+s!==i)return;a&&a.removeChild(this)}}(this._id))},tween:function(i,a){var s=this._id;if(i+="",arguments.length<2){for(var u,p=Fa(this.node(),s).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?r1:tf)(s,i,a))},delay:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?rf:af)(a,i)):Fa(this.node(),a).delay},duration:function(i){var a=this._id;return arguments.length?this.each((typeof i=="function"?gu:yu)(a,i)):Fa(this.node(),a).duration},ease:function(i){var a=this._id;return arguments.length?this.each(go(a,i)):Fa(this.node(),a).ease},easeVarying:function(i){if(typeof i!="function")throw new Error;return this.each(function(a,s){return function(){var u=s.apply(this,arguments);if(typeof u!="function")throw new Error;to(this,a).ease=u}}(this._id,i))},end:function(){var i,a,s=this,u=s._id,p=s.size();return new Promise(function(g,v){var x={value:v},T={value:function(){--p==0&&g()}};s.each(function(){var C=to(this,u),D=C.on;D!==i&&((a=(i=D).copy())._.cancel.push(x),a._.interrupt.push(x),a._.end.push(T)),C.on=a}),p===0&&g()})},[Symbol.iterator]:Wa[Symbol.iterator]};var sf={time:null,delay:0,duration:250,ease:Ps};function bu(i,a){for(var s;!(s=i.__transition)||!(s=s[a]);)if(!(i=i.parentNode))throw new Error(`transition ${a} not found`);return s}Rr.prototype.interrupt=function(i){return this.each(function(){eo(this,i)})},Rr.prototype.transition=function(i){var a,s;i instanceof ba?(a=i._id,i=i._name):(a=dl(),(s=sf).time=wc(),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])&&fo(v,i,a,C,x,s||bu(v,a));return new ba(u,this._parents,i,a)};var s1=[null];function cf(i,a){var s,u,p=i.__transition;if(p){for(u in a=a==null?null:a+"",p)if((s=p[u]).state>1&&s.name===a)return new ba([[i]],s1,a,+u)}return null}const Sc=i=>()=>i;function c1(i,{sourceEvent:a,target:s,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:s,enumerable:!0,configurable:!0},selection:{value:u,enumerable:!0,configurable:!0},mode:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}function lf(i){i.stopImmediatePropagation()}function yl(i){i.preventDefault(),i.stopImmediatePropagation()}var vu={name:"drag"},ro={name:"space"},Us={name:"handle"},Li={name:"center"};const{abs:l1,max:zi,min:Wi}=Math;function u1(i){return[+i[0],+i[1]]}function xu(i){return[u1(i[0]),u1(i[1])]}var ml={name:"x",handles:["w","e"].map(va),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]]}},_l={name:"y",handles:["n","s"].map(va),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]]}},uf={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(va),input:function(i){return i==null?null:xu(i)},output:function(i){return i}},yo={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"},hf={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ff={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function va(i){return{type:i}}function df(i){return!i.ctrlKey&&!i.button}function d1(){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 p1(){return navigator.maxTouchPoints||"ontouchstart"in this}function bl(i){for(;!i.__brush;)if(!(i=i.parentNode))return;return i.__brush}function vl(i){return i[0][0]===i[1][0]||i[0][1]===i[1][1]}function g1(i){var a=i.__brush;return a?a.dim.output(a.selection):null}function y1(){return wu(ml)}function m1(){return wu(_l)}function ku(){return wu(uf)}function wu(i){var a,s=d1,u=df,p=p1,g=!0,v=lr("start","brush","end"),x=6;function T(V){var Z=V.property("__brush",G).selectAll(".overlay").data([va("overlay")]);Z.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",yo.overlay).merge(Z).each(function(){var lt=bl(this).extent;wi(this).attr("x",lt[0][0]).attr("y",lt[0][1]).attr("width",lt[1][0]-lt[0][0]).attr("height",lt[1][1]-lt[0][1])}),V.selectAll(".selection").data([va("selection")]).enter().append("rect").attr("class","selection").attr("cursor",yo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var pt=V.selectAll(".handle").data(i.handles,function(lt){return lt.type});pt.exit().remove(),pt.enter().append("rect").attr("class",function(lt){return"handle handle--"+lt.type}).attr("cursor",function(lt){return yo[lt.type]}),V.each(C).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",P).filter(p).on("touchstart.brush",P).on("touchmove.brush",$).on("touchend.brush touchcancel.brush",it).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function C(){var V=wi(this),Z=bl(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(pt){return pt.type[pt.type.length-1]==="e"?Z[1][0]-x/2:Z[0][0]-x/2}).attr("y",function(pt){return pt.type[0]==="s"?Z[1][1]-x/2:Z[0][1]-x/2}).attr("width",function(pt){return pt.type==="n"||pt.type==="s"?Z[1][0]-Z[0][0]+x:x}).attr("height",function(pt){return pt.type==="e"||pt.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 D(V,Z,pt){var lt=V.__brush.emitter;return!lt||pt&<.clean?new j(V,Z,pt):lt}function j(V,Z,pt){this.that=V,this.args=Z,this.state=V.__brush,this.active=0,this.clean=pt}function P(V){if((!a||V.touches)&&u.apply(this,arguments)){var Z,pt,lt,ut,vt,wt,ne,ye,Zt,$t,Ht,qt=this,Et=V.target.__data__.type,Ut=(g&&V.metaKey?Et="overlay":Et)==="selection"?vu:g&&V.altKey?Li:Us,Kt=i===_l?null:hf[Et],se=i===ml?null:ff[Et],Ae=bl(qt),qe=Ae.extent,Xe=Ae.selection,yn=qe[0][0],Ke=qe[0][1],Hn=qe[1][0],Wn=qe[1][1],Mn=0,Fn=0,Sr=Kt&&se&&g&&V.shiftKey,cr=Array.from(V.touches||[V],ur=>{const ji=ur.identifier;return(ur=ua(ur,qt)).point0=ur.slice(),ur.identifier=ji,ur});eo(qt);var ja=D(qt,arguments,!0).beforestart();if(Et==="overlay"){Xe&&(Zt=!0);const ur=[cr[0],cr[1]||cr[0]];Ae.selection=Xe=[[Z=i===_l?yn:Wi(ur[0][0],ur[1][0]),lt=i===ml?Ke:Wi(ur[0][1],ur[1][1])],[vt=i===_l?Hn:zi(ur[0][0],ur[1][0]),ne=i===ml?Wn:zi(ur[0][1],ur[1][1])]],cr.length>1&&Qc(V)}else Z=Xe[0][0],lt=Xe[0][1],vt=Xe[1][0],ne=Xe[1][1];pt=Z,ut=lt,wt=vt,ye=ne;var uc=wi(qt).attr("pointer-events","none"),Ao=uc.selectAll(".overlay").attr("cursor",yo[Et]);if(V.touches)ja.moved=Im,ja.ended=Nm;else{var au=wi(V.view).on("mousemove.brush",Im,!0).on("mouseup.brush",Nm,!0);g&&au.on("keydown.brush",T5,!0).on("keyup.brush",S5,!0),ho(V.view)}C.call(qt),ja.start(V,Ut.name)}function Im(ur){for(const ji of ur.changedTouches||[ur])for(const qh of cr)qh.identifier===ji.identifier&&(qh.cur=ua(ji,qt));if(Sr&&!$t&&!Ht&&cr.length===1){const ji=cr[0];l1(ji.cur[0]-ji[0])>l1(ji.cur[1]-ji[1])?Ht=!0:$t=!0}for(const ji of cr)ji.cur&&(ji[0]=ji.cur[0],ji[1]=ji.cur[1]);Zt=!0,yl(ur),Qc(ur)}function Qc(ur){const ji=cr[0],qh=ji.point0;var hc;switch(Mn=ji[0]-qh[0],Fn=ji[1]-qh[1],Ut){case ro:case vu:Kt&&(Mn=zi(yn-Z,Wi(Hn-vt,Mn)),pt=Z+Mn,wt=vt+Mn),se&&(Fn=zi(Ke-lt,Wi(Wn-ne,Fn)),ut=lt+Fn,ye=ne+Fn);break;case Us:cr[1]?(Kt&&(pt=zi(yn,Wi(Hn,cr[0][0])),wt=zi(yn,Wi(Hn,cr[1][0])),Kt=1),se&&(ut=zi(Ke,Wi(Wn,cr[0][1])),ye=zi(Ke,Wi(Wn,cr[1][1])),se=1)):(Kt<0?(Mn=zi(yn-Z,Wi(Hn-Z,Mn)),pt=Z+Mn,wt=vt):Kt>0&&(Mn=zi(yn-vt,Wi(Hn-vt,Mn)),pt=Z,wt=vt+Mn),se<0?(Fn=zi(Ke-lt,Wi(Wn-lt,Fn)),ut=lt+Fn,ye=ne):se>0&&(Fn=zi(Ke-ne,Wi(Wn-ne,Fn)),ut=lt,ye=ne+Fn));break;case Li:Kt&&(pt=zi(yn,Wi(Hn,Z-Mn*Kt)),wt=zi(yn,Wi(Hn,vt+Mn*Kt))),se&&(ut=zi(Ke,Wi(Wn,lt-Fn*se)),ye=zi(Ke,Wi(Wn,ne+Fn*se)))}wt<pt&&(Kt*=-1,hc=Z,Z=vt,vt=hc,hc=pt,pt=wt,wt=hc,Et in h1&&Ao.attr("cursor",yo[Et=h1[Et]])),ye<ut&&(se*=-1,hc=lt,lt=ne,ne=hc,hc=ut,ut=ye,ye=hc,Et in f1&&Ao.attr("cursor",yo[Et=f1[Et]])),Ae.selection&&(Xe=Ae.selection),$t&&(pt=Xe[0][0],wt=Xe[1][0]),Ht&&(ut=Xe[0][1],ye=Xe[1][1]),Xe[0][0]===pt&&Xe[0][1]===ut&&Xe[1][0]===wt&&Xe[1][1]===ye||(Ae.selection=[[pt,ut],[wt,ye]],C.call(qt),ja.brush(ur,Ut.name))}function Nm(ur){if(lf(ur),ur.touches){if(ur.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500)}else as(ur.view,Zt),au.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);uc.attr("pointer-events","all"),Ao.attr("cursor",yo.overlay),Ae.selection&&(Xe=Ae.selection),vl(Xe)&&(Ae.selection=null,C.call(qt)),ja.end(ur,Ut.name)}function T5(ur){switch(ur.keyCode){case 16:Sr=Kt&&se;break;case 18:Ut===Us&&(Kt&&(vt=wt-Mn*Kt,Z=pt+Mn*Kt),se&&(ne=ye-Fn*se,lt=ut+Fn*se),Ut=Li,Qc(ur));break;case 32:Ut!==Us&&Ut!==Li||(Kt<0?vt=wt-Mn:Kt>0&&(Z=pt-Mn),se<0?ne=ye-Fn:se>0&&(lt=ut-Fn),Ut=ro,Ao.attr("cursor",yo.selection),Qc(ur));break;default:return}yl(ur)}function S5(ur){switch(ur.keyCode){case 16:Sr&&($t=Ht=Sr=!1,Qc(ur));break;case 18:Ut===Li&&(Kt<0?vt=wt:Kt>0&&(Z=pt),se<0?ne=ye:se>0&&(lt=ut),Ut=Us,Qc(ur));break;case 32:Ut===ro&&(ur.altKey?(Kt&&(vt=wt-Mn*Kt,Z=pt+Mn*Kt),se&&(ne=ye-Fn*se,lt=ut+Fn*se),Ut=Li):(Kt<0?vt=wt:Kt>0&&(Z=pt),se<0?ne=ye:se>0&&(lt=ut),Ut=Us),Ao.attr("cursor",yo[Et]),Qc(ur));break;default:return}yl(ur)}}function $(V){D(this,arguments).moved(V)}function it(V){D(this,arguments).ended(V)}function G(){var V=this.__brush||{selection:null};return V.extent=xu(s.apply(this,arguments)),V.dim=i,V}return T.move=function(V,Z,pt){V.tween?V.on("start.brush",function(lt){D(this,arguments).beforestart().start(lt)}).on("interrupt.brush end.brush",function(lt){D(this,arguments).end(lt)}).tween("brush",function(){var lt=this,ut=lt.__brush,vt=D(lt,arguments),wt=ut.selection,ne=i.input(typeof Z=="function"?Z.apply(this,arguments):Z,ut.extent),ye=er(wt,ne);function Zt($t){ut.selection=$t===1&&ne===null?null:ye($t),C.call(lt),vt.brush()}return wt!==null&&ne!==null?Zt:Zt(1)}):V.each(function(){var lt=this,ut=arguments,vt=lt.__brush,wt=i.input(typeof Z=="function"?Z.apply(lt,ut):Z,vt.extent),ne=D(lt,ut).beforestart();eo(lt),vt.selection=wt===null?null:wt,C.call(lt),ne.start(pt).brush(pt).end(pt)})},T.clear=function(V,Z){T.move(V,null,Z)},j.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,pt){var lt=wi(this.that).datum();v.call(V,this.that,new c1(V,{sourceEvent:Z,target:T,selection:i.output(this.state.selection),mode:pt,dispatch:v}),lt)}},T.extent=function(V){return arguments.length?(s=typeof V=="function"?V:Sc(xu(V)),T):s},T.filter=function(V){return arguments.length?(u=typeof V=="function"?V:Sc(!!V),T):u},T.touchable=function(V){return arguments.length?(p=typeof V=="function"?V:Sc(!!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 Eu=Math.abs,Po=Math.cos,Uo=Math.sin,Ac=Math.PI,xa=Ac/2,xl=2*Ac,kl=Math.max,hs=1e-12;function fs(i,a){return Array.from({length:a-i},(s,u)=>i+u)}function Tu(i){return function(a,s){return i(a.source.value+a.target.value,s.source.value+s.target.value)}}function Su(){return wl(!1,!1)}function Au(){return wl(!1,!0)}function zs(){return wl(!0,!1)}function wl(i,a){var s=0,u=null,p=null,g=null;function v(x){var T,C=x.length,D=new Array(C),j=fs(0,C),P=new Array(C*C),$=new Array(C),it=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];it+=D[G]=V}T=(it=kl(0,xl-s*C)/it)?s:xl/C;{let G=0;u&&j.sort((V,Z)=>u(D[V],D[Z]));for(const V of j){const Z=G;if(i){const pt=fs(1+~C,C).filter(lt=>lt<0?x[~lt*C+V]:x[V*C+lt]);p&&pt.sort((lt,ut)=>p(lt<0?-x[~lt*C+V]:x[V*C+lt],ut<0?-x[~ut*C+V]:x[V*C+ut]));for(const lt of pt)lt<0?(P[~lt*C+V]||(P[~lt*C+V]={source:null,target:null})).target={index:V,startAngle:G,endAngle:G+=x[~lt*C+V]*it,value:x[~lt*C+V]}:(P[V*C+lt]||(P[V*C+lt]={source:null,target:null})).source={index:V,startAngle:G,endAngle:G+=x[V*C+lt]*it,value:x[V*C+lt]};$[V]={index:V,startAngle:Z,endAngle:G,value:D[V]}}else{const pt=fs(0,C).filter(lt=>x[V*C+lt]||x[lt*C+V]);p&&pt.sort((lt,ut)=>p(x[V*C+lt],x[V*C+ut]));for(const lt of pt){let ut;if(V<lt?(ut=P[V*C+lt]||(P[V*C+lt]={source:null,target:null}),ut.source={index:V,startAngle:G,endAngle:G+=x[V*C+lt]*it,value:x[V*C+lt]}):(ut=P[lt*C+V]||(P[lt*C+V]={source:null,target:null}),ut.target={index:V,startAngle:G,endAngle:G+=x[V*C+lt]*it,value:x[V*C+lt]},V===lt&&(ut.source=ut.target)),ut.source&&ut.target&&ut.source.value<ut.target.value){const vt=ut.source;ut.source=ut.target,ut.target=vt}}$[V]={index:V,startAngle:Z,endAngle:G,value:D[V]}}G+=T}}return(P=Object.values(P)).groups=$,g?P.sort(g):P}return v.padAngle=function(x){return arguments.length?(s=kl(0,x),v):s},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=Tu(x))._=x,v):g&&g._},v}const Ys=Math.PI,ds=2*Ys,mo=1e-6,Cu=ds-mo;function El(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Iu(){return new El}El.prototype=Iu.prototype={constructor:El,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,s,u){this._+="Q"+ +i+","+ +a+","+(this._x1=+s)+","+(this._y1=+u)},bezierCurveTo:function(i,a,s,u,p,g){this._+="C"+ +i+","+ +a+","+ +s+","+ +u+","+(this._x1=+p)+","+(this._y1=+g)},arcTo:function(i,a,s,u,p){i=+i,a=+a,s=+s,u=+u,p=+p;var g=this._x1,v=this._y1,x=s-i,T=u-a,C=g-i,D=v-a,j=C*C+D*D;if(p<0)throw new Error("negative radius: "+p);if(this._x1===null)this._+="M"+(this._x1=i)+","+(this._y1=a);else if(j>mo)if(Math.abs(D*x-T*C)>mo&&p){var P=s-g,$=u-v,it=x*x+T*T,G=P*P+$*$,V=Math.sqrt(it),Z=Math.sqrt(j),pt=p*Math.tan((Ys-Math.acos((it+j-G)/(2*V*Z)))/2),lt=pt/Z,ut=pt/V;Math.abs(lt-1)>mo&&(this._+="L"+(i+lt*C)+","+(a+lt*D)),this._+="A"+p+","+p+",0,0,"+ +(D*P>C*$)+","+(this._x1=i+ut*x)+","+(this._y1=a+ut*T)}else this._+="L"+(this._x1=i)+","+(this._y1=a)},arc:function(i,a,s,u,p,g){i=+i,a=+a,g=!!g;var v=(s=+s)*Math.cos(u),x=s*Math.sin(u),T=i+v,C=a+x,D=1^g,j=g?u-p:p-u;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+T+","+C:(Math.abs(this._x1-T)>mo||Math.abs(this._y1-C)>mo)&&(this._+="L"+T+","+C),s&&(j<0&&(j=j%ds+ds),j>Cu?this._+="A"+s+","+s+",0,1,"+D+","+(i-v)+","+(a-x)+"A"+s+","+s+",0,1,"+D+","+(this._x1=T)+","+(this._y1=C):j>mo&&(this._+="A"+s+","+s+",0,"+ +(j>=Ys)+","+D+","+(this._x1=i+s*Math.cos(p))+","+(this._y1=a+s*Math.sin(p))))},rect:function(i,a,s,u){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+a)+"h"+ +s+"v"+ +u+"h"+-s+"Z"},toString:function(){return this._}};const ps=Iu;var Nu=Array.prototype.slice;function zo(i){return function(){return i}}function _1(i){return i.source}function b1(i){return i.target}function gs(i){return i.radius}function _i(i){return i.startAngle}function v1(i){return i.endAngle}function js(){return 0}function x1(){return 10}function Lu(i){var a=_1,s=b1,u=gs,p=gs,g=_i,v=v1,x=js,T=null;function C(){var D,j=a.apply(this,arguments),P=s.apply(this,arguments),$=x.apply(this,arguments)/2,it=Nu.call(arguments),G=+u.apply(this,(it[0]=j,it)),V=g.apply(this,it)-xa,Z=v.apply(this,it)-xa,pt=+p.apply(this,(it[0]=P,it)),lt=g.apply(this,it)-xa,ut=v.apply(this,it)-xa;if(T||(T=D=ps()),$>hs&&(Eu(Z-V)>2*$+hs?Z>V?(V+=$,Z-=$):(V-=$,Z+=$):V=Z=(V+Z)/2,Eu(ut-lt)>2*$+hs?ut>lt?(lt+=$,ut-=$):(lt-=$,ut+=$):lt=ut=(lt+ut)/2),T.moveTo(G*Po(V),G*Uo(V)),T.arc(0,0,G,V,Z),V!==lt||Z!==ut)if(i){var vt=+i.apply(this,arguments),wt=pt-vt,ne=(lt+ut)/2;T.quadraticCurveTo(0,0,wt*Po(lt),wt*Uo(lt)),T.lineTo(pt*Po(ne),pt*Uo(ne)),T.lineTo(wt*Po(ut),wt*Uo(ut))}else T.quadraticCurveTo(0,0,pt*Po(lt),pt*Uo(lt)),T.arc(0,0,pt,lt,ut);if(T.quadraticCurveTo(0,0,G*Po(V),G*Uo(V)),T.closePath(),D)return T=null,D+""||null}return i&&(C.headRadius=function(D){return arguments.length?(i=typeof D=="function"?D:zo(+D),C):i}),C.radius=function(D){return arguments.length?(u=p=typeof D=="function"?D:zo(+D),C):u},C.sourceRadius=function(D){return arguments.length?(u=typeof D=="function"?D:zo(+D),C):u},C.targetRadius=function(D){return arguments.length?(p=typeof D=="function"?D:zo(+D),C):p},C.startAngle=function(D){return arguments.length?(g=typeof D=="function"?D:zo(+D),C):g},C.endAngle=function(D){return arguments.length?(v=typeof D=="function"?D:zo(+D),C):v},C.padAngle=function(D){return arguments.length?(x=typeof D=="function"?D:zo(+D),C):x},C.source=function(D){return arguments.length?(a=D,C):a},C.target=function(D){return arguments.length?(s=D,C):s},C.context=function(D){return arguments.length?(T=D==null?null:D,C):T},C}function k1(){return Lu()}function w1(){return Lu(x1)}const Mu=Math.PI/180,_o=180/Math.PI,Tl=.96422,E1=.82521,T1=4/29,Sl=6/29,Ou=3*Sl*Sl;function S1(i){if(i instanceof Ga)return new Ga(i.l,i.a,i.b,i.opacity);if(i instanceof io)return C1(i);i instanceof Gr||(i=Wr(i));var a,s,u=Cc(i.r),p=Cc(i.g),g=Cc(i.b),v=Du((.2225045*u+.7168786*p+.0606169*g)/1);return u===p&&p===g?a=s=v:(a=Du((.4360747*u+.3850649*p+.1430804*g)/Tl),s=Du((.0139322*u+.0971045*p+.7141733*g)/E1)),new Ga(116*v-16,500*(a-v),200*(v-s),i.opacity)}function pf(i,a){return new Ga(i,0,0,a==null?1:a)}function Al(i,a,s,u){return arguments.length===1?S1(i):new Ga(i,a,s,u==null?1:u)}function Ga(i,a,s,u){this.l=+i,this.a=+a,this.b=+s,this.opacity=+u}function Du(i){return i>.008856451679035631?Math.pow(i,1/3):i/Ou+T1}function Bu(i){return i>Sl?i*i*i:Ou*(i-T1)}function $s(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function Cc(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function A1(i){if(i instanceof io)return new io(i.h,i.c,i.l,i.opacity);if(i instanceof Ga||(i=S1(i)),i.a===0&&i.b===0)return new io(NaN,0<i.l&&i.l<100?0:NaN,i.l,i.opacity);var a=Math.atan2(i.b,i.a)*_o;return new io(a<0?a+360:a,Math.sqrt(i.a*i.a+i.b*i.b),i.l,i.opacity)}function Yo(i,a,s,u){return arguments.length===1?A1(i):new io(s,a,i,u==null?1:u)}function Pa(i,a,s,u){return arguments.length===1?A1(i):new io(i,a,s,u==null?1:u)}function io(i,a,s,u){this.h=+i,this.c=+a,this.l=+s,this.opacity=+u}function C1(i){if(isNaN(i.h))return new Ga(i.l,0,0,i.opacity);var a=i.h*Mu;return new Ga(i.l,Math.cos(a)*i.c,Math.sin(a)*i.c,i.opacity)}Ui(Ga,Al,xn(_a,{brighter:function(i){return new Ga(this.l+18*(i==null?1:i),this.a,this.b,this.opacity)},darker:function(i){return new Ga(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,s=isNaN(this.b)?i:i-this.b/200;return new Gr($s(3.1338561*(a=Tl*Bu(a))-1.6168667*(i=1*Bu(i))-.4906146*(s=E1*Bu(s))),$s(-.9787684*a+1.9161415*i+.033454*s),$s(.0719453*a-.2289914*i+1.4052427*s),this.opacity)}})),Ui(io,Pa,xn(_a,{brighter:function(i){return new io(this.h,this.c,this.l+18*(i==null?1:i),this.opacity)},darker:function(i){return new io(this.h,this.c,this.l-18*(i==null?1:i),this.opacity)},rgb:function(){return C1(this).rgb()}}));var I1=-.14861,Ic=1.78277,Gi=-.29227,jo=-.90649,Ua=1.97294,Hs=Ua*jo,N1=Ua*Ic,Cl=Ic*Gi-jo*I1;function gf(i){if(i instanceof $o)return new $o(i.h,i.s,i.l,i.opacity);i instanceof Gr||(i=Wr(i));var a=i.r/255,s=i.g/255,u=i.b/255,p=(Cl*u+Hs*a-N1*s)/(Cl+Hs-N1),g=u-p,v=(Ua*(s-p)-Gi*g)/jo,x=Math.sqrt(v*v+g*g)/(Ua*p*(1-p)),T=x?Math.atan2(v,g)*_o-120:NaN;return new $o(T<0?T+360:T,x,p,i.opacity)}function Tr(i,a,s,u){return arguments.length===1?gf(i):new $o(i,a,s,u==null?1:u)}function $o(i,a,s,u){this.h=+i,this.s=+a,this.l=+s,this.opacity=+u}Ui($o,Tr,xn(_a,{brighter:function(i){return i=i==null?ea:Math.pow(ea,i),new $o(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=i==null?qi:Math.pow(qi,i),new $o(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=isNaN(this.h)?0:(this.h+120)*Mu,a=+this.l,s=isNaN(this.s)?0:this.s*a*(1-a),u=Math.cos(i),p=Math.sin(i);return new Gr(255*(a+s*(I1*u+Ic*p)),255*(a+s*(Gi*u+jo*p)),255*(a+s*(Ua*u)),this.opacity)}}));var Ru=Array.prototype.slice;function L1(i,a){return i-a}const bo=i=>()=>i;function qs(i,a){for(var s,u=-1,p=a.length;++u<p;)if(s=yf(i,a[u]))return s;return 0}function yf(i,a){for(var s=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],D=T[1],j=i[x],P=j[0],$=j[1];if(Fu(T,j,a))return 0;D>u!=$>u&&s<(P-C)*(u-D)/($-D)+C&&(p=-p)}return p}function Fu(i,a,s){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,s)&&(p=i[u=+(i[0]===a[0])],g=s[u],v=a[u],p<=g&&g<=v||v<=g&&g<=p)}function mf(){}var vo=[[],[[[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 Ws(){var i=1,a=1,s=Pe,u=x;function p(T){var C=s(T);if(Array.isArray(C))C=C.slice().sort(L1);else{const D=st(T),j=Te(D[0],D[1],C);C=ce(Math.floor(D[0]/j)*j,Math.floor(D[1]/j-1)*j,C)}return C.map(D=>g(T,D))}function g(T,C){var D=[],j=[];return function(P,$,it){var G,V,Z,pt,lt,ut,vt=new Array,wt=new Array;for(G=V=-1,pt=P[0]>=$,vo[pt<<1].forEach(ne);++G<i-1;)Z=pt,pt=P[G+1]>=$,vo[Z|pt<<1].forEach(ne);for(vo[pt<<0].forEach(ne);++V<a-1;){for(G=-1,pt=P[V*i+i]>=$,lt=P[V*i]>=$,vo[pt<<1|lt<<2].forEach(ne);++G<i-1;)Z=pt,pt=P[V*i+i+G+1]>=$,ut=lt,lt=P[V*i+G+1]>=$,vo[Z|pt<<1|lt<<2|ut<<3].forEach(ne);vo[pt|lt<<3].forEach(ne)}for(G=-1,lt=P[V*i]>=$,vo[lt<<2].forEach(ne);++G<i-1;)ut=lt,lt=P[V*i+G+1]>=$,vo[lt<<2|ut<<3].forEach(ne);function ne(ye){var Zt,$t,Ht=[ye[0][0]+G,ye[0][1]+V],qt=[ye[1][0]+G,ye[1][1]+V],Et=v(Ht),Ut=v(qt);(Zt=wt[Et])?($t=vt[Ut])?(delete wt[Zt.end],delete vt[$t.start],Zt===$t?(Zt.ring.push(qt),it(Zt.ring)):vt[Zt.start]=wt[$t.end]={start:Zt.start,end:$t.end,ring:Zt.ring.concat($t.ring)}):(delete wt[Zt.end],Zt.ring.push(qt),wt[Zt.end=Ut]=Zt):(Zt=vt[Ut])?($t=wt[Et])?(delete vt[Zt.start],delete wt[$t.end],Zt===$t?(Zt.ring.push(qt),it(Zt.ring)):vt[$t.start]=wt[Zt.end]={start:$t.start,end:Zt.end,ring:$t.ring.concat(Zt.ring)}):(delete vt[Zt.start],Zt.ring.unshift(Ht),vt[Zt.start=Et]=Zt):vt[Et]=wt[Ut]={start:Et,end:Ut,ring:[Ht,qt]}}vo[lt<<3].forEach(ne)}(T,C,function(P){u(P,T,C),function($){for(var it=0,G=$.length,V=$[G-1][1]*$[0][0]-$[G-1][0]*$[0][1];++it<G;)V+=$[it-1][1]*$[it][0]-$[it-1][0]*$[it][1];return V}(P)>0?D.push([P]):j.push(P)}),j.forEach(function(P){for(var $,it=0,G=D.length;it<G;++it)if(qs(($=D[it])[0],P)!==-1)return void $.push(P)}),{type:"MultiPolygon",value:C,coordinates:D}}function v(T){return 2*T[0]+T[1]*(i+1)*4}function x(T,C,D){T.forEach(function(j){var P,$=j[0],it=j[1],G=0|$,V=0|it,Z=C[V*i+G];$>0&&$<i&&G===$&&(P=C[V*i+G-1],j[0]=$+(D-P)/(Z-P)-.5),it>0&&it<a&&V===it&&(P=C[(V-1)*i+G],j[1]=it+(D-P)/(Z-P)-.5)})}return p.contour=g,p.size=function(T){if(!arguments.length)return[i,a];var C=Math.floor(T[0]),D=Math.floor(T[1]);if(!(C>=0&&D>=0))throw new Error("invalid size");return i=C,a=D,p},p.thresholds=function(T){return arguments.length?(s=typeof T=="function"?T:Array.isArray(T)?bo(Ru.call(T)):bo(T),p):s},p.smooth=function(T){return arguments.length?(u=T?x:mf,p):u===x},p}function ao(i,a,s){for(var u=i.width,p=i.height,g=1+(s<<1),v=0;v<p;++v)for(var x=0,T=0;x<u+s;++x)x<u&&(T+=i.data[x+v*u]),x>=s&&(x>=g&&(T-=i.data[x-g+v*u]),a.data[x-s+v*u]=T/Math.min(x+1,u-1+g-x,g))}function ka(i,a,s){for(var u=i.width,p=i.height,g=1+(s<<1),v=0;v<u;++v)for(var x=0,T=0;x<p+s;++x)x<p&&(T+=i.data[v+x*u]),x>=s&&(x>=g&&(T-=i.data[v+(x-g)*u]),a.data[v+(x-s)*u]=T/Math.min(x+1,p-1+g-x,g))}function Il(i){return i[0]}function Pu(i){return i[1]}function _f(){return 1}function za(){var i=Il,a=Pu,s=_f,u=960,p=500,g=20,v=2,x=3*g,T=u+2*x>>v,C=p+2*x>>v,D=bo(20);function j(Z){var pt=new Float32Array(T*C),lt=new Float32Array(T*C),ut=Math.pow(2,-v);Z.forEach(function(ne,ye,Zt){var $t=(i(ne,ye,Zt)+x)*ut,Ht=(a(ne,ye,Zt)+x)*ut,qt=+s(ne,ye,Zt);if($t>=0&&$t<T&&Ht>=0&&Ht<C){var Et=Math.floor($t),Ut=Math.floor(Ht),Kt=$t-Et-.5,se=Ht-Ut-.5;pt[Et+Ut*T]+=(1-Kt)*(1-se)*qt,pt[Et+1+Ut*T]+=Kt*(1-se)*qt,pt[Et+1+(Ut+1)*T]+=Kt*se*qt,pt[Et+(Ut+1)*T]+=(1-Kt)*se*qt}}),ao({width:T,height:C,data:pt},{width:T,height:C,data:lt},g>>v),ka({width:T,height:C,data:lt},{width:T,height:C,data:pt},g>>v),ao({width:T,height:C,data:pt},{width:T,height:C,data:lt},g>>v),ka({width:T,height:C,data:lt},{width:T,height:C,data:pt},g>>v),ao({width:T,height:C,data:pt},{width:T,height:C,data:lt},g>>v),ka({width:T,height:C,data:lt},{width:T,height:C,data:pt},g>>v);var vt=D(pt);if(!Array.isArray(vt)){var wt=Ze(pt);vt=Te(0,wt,vt),(vt=Ne(0,Math.floor(wt/vt)*vt,vt)).shift()}return Ws().thresholds(vt).size([T,C])(pt).map(P)}function P(Z){return Z.value*=Math.pow(2,-2*v),Z.coordinates.forEach($),Z}function $(Z){Z.forEach(it)}function it(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,j}return j.x=function(Z){return arguments.length?(i=typeof Z=="function"?Z:bo(+Z),j):i},j.y=function(Z){return arguments.length?(a=typeof Z=="function"?Z:bo(+Z),j):a},j.weight=function(Z){return arguments.length?(s=typeof Z=="function"?Z:bo(+Z),j):s},j.size=function(Z){if(!arguments.length)return[u,p];var pt=+Z[0],lt=+Z[1];if(!(pt>=0&<>=0))throw new Error("invalid size");return u=pt,p=lt,V()},j.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()},j.thresholds=function(Z){return arguments.length?(D=typeof Z=="function"?Z:Array.isArray(Z)?bo(Ru.call(Z)):bo(Z),j):D},j.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()},j}const bi=134217729;function Ho(i,a,s,u,p){let g,v,x,T,C=a[0],D=u[0],j=0,P=0;D>C==D>-C?(g=C,C=a[++j]):(g=D,D=u[++P]);let $=0;if(j<i&&P<s)for(D>C==D>-C?(v=C+g,x=g-(v-C),C=a[++j]):(v=D+g,x=g-(v-D),D=u[++P]),g=v,x!==0&&(p[$++]=x);j<i&&P<s;)D>C==D>-C?(v=g+C,T=v-g,x=g-(v-T)+(C-T),C=a[++j]):(v=g+D,T=v-g,x=g-(v-T)+(D-T),D=u[++P]),g=v,x!==0&&(p[$++]=x);for(;j<i;)v=g+C,T=v-g,x=g-(v-T)+(C-T),C=a[++j],g=v,x!==0&&(p[$++]=x);for(;P<s;)v=g+D,T=v-g,x=g-(v-T)+(D-T),D=u[++P],g=v,x!==0&&(p[$++]=x);return g===0&&$!==0||(p[$++]=g),$}function xo(i){return new Float64Array(i)}const ys=xo(4),Uu=xo(8),Nl=xo(12),zu=xo(16),Vi=xo(4);function Nc(i,a,s,u,p,g){const v=(a-g)*(s-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(D,j,P,$,it,G,V){let Z,pt,lt,ut,vt,wt,ne,ye,Zt,$t,Ht,qt,Et,Ut,Kt,se,Ae,qe;const Xe=D-it,yn=P-it,Ke=j-G,Hn=$-G;Ut=Xe*Hn,wt=bi*Xe,ne=wt-(wt-Xe),ye=Xe-ne,wt=bi*Hn,Zt=wt-(wt-Hn),$t=Hn-Zt,Kt=ye*$t-(Ut-ne*Zt-ye*Zt-ne*$t),se=Ke*yn,wt=bi*Ke,ne=wt-(wt-Ke),ye=Ke-ne,wt=bi*yn,Zt=wt-(wt-yn),$t=yn-Zt,Ae=ye*$t-(se-ne*Zt-ye*Zt-ne*$t),Ht=Kt-Ae,vt=Kt-Ht,ys[0]=Kt-(Ht+vt)+(vt-Ae),qt=Ut+Ht,vt=qt-Ut,Et=Ut-(qt-vt)+(Ht-vt),Ht=Et-se,vt=Et-Ht,ys[1]=Et-(Ht+vt)+(vt-se),qe=qt+Ht,vt=qe-qt,ys[2]=qt-(qe-vt)+(Ht-vt),ys[3]=qe;let Wn=function(ja,uc){let Ao=uc[0];for(let au=1;au<4;au++)Ao+=uc[au];return Ao}(0,ys),Mn=22204460492503146e-32*V;if(Wn>=Mn||-Wn>=Mn||(vt=D-Xe,Z=D-(Xe+vt)+(vt-it),vt=P-yn,lt=P-(yn+vt)+(vt-it),vt=j-Ke,pt=j-(Ke+vt)+(vt-G),vt=$-Hn,ut=$-(Hn+vt)+(vt-G),Z===0&&pt===0&<===0&&ut===0)||(Mn=11093356479670487e-47*V+33306690738754706e-32*Math.abs(Wn),Wn+=Xe*ut+Hn*Z-(Ke*lt+yn*pt),Wn>=Mn||-Wn>=Mn))return Wn;Ut=Z*Hn,wt=bi*Z,ne=wt-(wt-Z),ye=Z-ne,wt=bi*Hn,Zt=wt-(wt-Hn),$t=Hn-Zt,Kt=ye*$t-(Ut-ne*Zt-ye*Zt-ne*$t),se=pt*yn,wt=bi*pt,ne=wt-(wt-pt),ye=pt-ne,wt=bi*yn,Zt=wt-(wt-yn),$t=yn-Zt,Ae=ye*$t-(se-ne*Zt-ye*Zt-ne*$t),Ht=Kt-Ae,vt=Kt-Ht,Vi[0]=Kt-(Ht+vt)+(vt-Ae),qt=Ut+Ht,vt=qt-Ut,Et=Ut-(qt-vt)+(Ht-vt),Ht=Et-se,vt=Et-Ht,Vi[1]=Et-(Ht+vt)+(vt-se),qe=qt+Ht,vt=qe-qt,Vi[2]=qt-(qe-vt)+(Ht-vt),Vi[3]=qe;const Fn=Ho(4,ys,4,Vi,Uu);Ut=Xe*ut,wt=bi*Xe,ne=wt-(wt-Xe),ye=Xe-ne,wt=bi*ut,Zt=wt-(wt-ut),$t=ut-Zt,Kt=ye*$t-(Ut-ne*Zt-ye*Zt-ne*$t),se=Ke*lt,wt=bi*Ke,ne=wt-(wt-Ke),ye=Ke-ne,wt=bi*lt,Zt=wt-(wt-lt),$t=lt-Zt,Ae=ye*$t-(se-ne*Zt-ye*Zt-ne*$t),Ht=Kt-Ae,vt=Kt-Ht,Vi[0]=Kt-(Ht+vt)+(vt-Ae),qt=Ut+Ht,vt=qt-Ut,Et=Ut-(qt-vt)+(Ht-vt),Ht=Et-se,vt=Et-Ht,Vi[1]=Et-(Ht+vt)+(vt-se),qe=qt+Ht,vt=qe-qt,Vi[2]=qt-(qe-vt)+(Ht-vt),Vi[3]=qe;const Sr=Ho(Fn,Uu,4,Vi,Nl);Ut=Z*ut,wt=bi*Z,ne=wt-(wt-Z),ye=Z-ne,wt=bi*ut,Zt=wt-(wt-ut),$t=ut-Zt,Kt=ye*$t-(Ut-ne*Zt-ye*Zt-ne*$t),se=pt*lt,wt=bi*pt,ne=wt-(wt-pt),ye=pt-ne,wt=bi*lt,Zt=wt-(wt-lt),$t=lt-Zt,Ae=ye*$t-(se-ne*Zt-ye*Zt-ne*$t),Ht=Kt-Ae,vt=Kt-Ht,Vi[0]=Kt-(Ht+vt)+(vt-Ae),qt=Ut+Ht,vt=qt-Ut,Et=Ut-(qt-vt)+(Ht-vt),Ht=Et-se,vt=Et-Ht,Vi[1]=Et-(Ht+vt)+(vt-se),qe=qt+Ht,vt=qe-qt,Vi[2]=qt-(qe-vt)+(Ht-vt),Vi[3]=qe;const cr=Ho(Sr,Nl,4,Vi,zu);return zu[cr-1]}(i,a,s,u,p,g,C)}const Yu=Math.pow(2,-52),Gs=new Uint32Array(512);class ms{static from(a,s=Mc,u=xf){const p=a.length,g=new Float64Array(2*p);for(let v=0;v<p;v++){const x=a[v];g[2*v]=s(x),g[2*v+1]=u(x)}return new ms(g)}constructor(a){const s=a.length>>1;if(s>0&&typeof a[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=a;const u=Math.max(2*s-5,0);this._triangles=new Uint32Array(3*u),this._halfedges=new Int32Array(3*u),this._hashSize=Math.ceil(Math.sqrt(s)),this._hullPrev=new Uint32Array(s),this._hullNext=new Uint32Array(s),this._hullTri=new Uint32Array(s),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(s),this._dists=new Float64Array(s),this.update()}update(){const{coords:a,_hullPrev:s,_hullNext:u,_hullTri:p,_hullHash:g}=this,v=a.length>>1;let x=1/0,T=1/0,C=-1/0,D=-1/0;for(let $t=0;$t<v;$t++){const Ht=a[2*$t],qt=a[2*$t+1];Ht<x&&(x=Ht),qt<T&&(T=qt),Ht>C&&(C=Ht),qt>D&&(D=qt),this._ids[$t]=$t}const j=(x+C)/2,P=(T+D)/2;let $,it,G,V=1/0;for(let $t=0;$t<v;$t++){const Ht=Ll(j,P,a[2*$t],a[2*$t+1]);Ht<V&&($=$t,V=Ht)}const Z=a[2*$],pt=a[2*$+1];V=1/0;for(let $t=0;$t<v;$t++){if($t===$)continue;const Ht=Ll(Z,pt,a[2*$t],a[2*$t+1]);Ht<V&&Ht>0&&(it=$t,V=Ht)}let lt=a[2*it],ut=a[2*it+1],vt=1/0;for(let $t=0;$t<v;$t++){if($t===$||$t===it)continue;const Ht=vf(Z,pt,lt,ut,a[2*$t],a[2*$t+1]);Ht<vt&&(G=$t,vt=Ht)}let wt=a[2*G],ne=a[2*G+1];if(vt===1/0){for(let qt=0;qt<v;qt++)this._dists[qt]=a[2*qt]-a[0]||a[2*qt+1]-a[1];Vs(this._ids,this._dists,0,v-1);const $t=new Uint32Array(v);let Ht=0;for(let qt=0,Et=-1/0;qt<v;qt++){const Ut=this._ids[qt];this._dists[Ut]>Et&&($t[Ht++]=Ut,Et=this._dists[Ut])}return this.hull=$t.subarray(0,Ht),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(Nc(Z,pt,lt,ut,wt,ne)<0){const $t=it,Ht=lt,qt=ut;it=G,lt=wt,ut=ne,G=$t,wt=Ht,ne=qt}const ye=function($t,Ht,qt,Et,Ut,Kt){const se=qt-$t,Ae=Et-Ht,qe=Ut-$t,Xe=Kt-Ht,yn=se*se+Ae*Ae,Ke=qe*qe+Xe*Xe,Hn=.5/(se*Xe-Ae*qe);return{x:$t+(Xe*yn-Ae*Ke)*Hn,y:Ht+(se*Ke-qe*yn)*Hn}}(Z,pt,lt,ut,wt,ne);this._cx=ye.x,this._cy=ye.y;for(let $t=0;$t<v;$t++)this._dists[$t]=Ll(a[2*$t],a[2*$t+1],ye.x,ye.y);Vs(this._ids,this._dists,0,v-1),this._hullStart=$;let Zt=3;u[$]=s[G]=it,u[it]=s[$]=G,u[G]=s[it]=$,p[$]=0,p[it]=1,p[G]=2,g.fill(-1),g[this._hashKey(Z,pt)]=$,g[this._hashKey(lt,ut)]=it,g[this._hashKey(wt,ne)]=G,this.trianglesLen=0,this._addTriangle($,it,G,-1,-1,-1);for(let $t,Ht,qt=0;qt<this._ids.length;qt++){const Et=this._ids[qt],Ut=a[2*Et],Kt=a[2*Et+1];if(qt>0&&Math.abs(Ut-$t)<=Yu&&Math.abs(Kt-Ht)<=Yu||($t=Ut,Ht=Kt,Et===$||Et===it||Et===G))continue;let se=0;for(let Ke=0,Hn=this._hashKey(Ut,Kt);Ke<this._hashSize&&(se=g[(Hn+Ke)%this._hashSize],se===-1||se===u[se]);Ke++);se=s[se];let Ae,qe=se;for(;Ae=u[qe],Nc(Ut,Kt,a[2*qe],a[2*qe+1],a[2*Ae],a[2*Ae+1])>=0;)if(qe=Ae,qe===se){qe=-1;break}if(qe===-1)continue;let Xe=this._addTriangle(qe,Et,u[qe],-1,-1,p[qe]);p[Et]=this._legalize(Xe+2),p[qe]=Xe,Zt++;let yn=u[qe];for(;Ae=u[yn],Nc(Ut,Kt,a[2*yn],a[2*yn+1],a[2*Ae],a[2*Ae+1])<0;)Xe=this._addTriangle(yn,Et,Ae,p[Et],-1,p[yn]),p[Et]=this._legalize(Xe+2),u[yn]=yn,Zt--,yn=Ae;if(qe===se)for(;Ae=s[qe],Nc(Ut,Kt,a[2*Ae],a[2*Ae+1],a[2*qe],a[2*qe+1])<0;)Xe=this._addTriangle(Ae,Et,qe,-1,p[qe],p[Ae]),this._legalize(Xe+2),p[Ae]=Xe,u[qe]=qe,Zt--,qe=Ae;this._hullStart=s[Et]=qe,u[qe]=s[yn]=Et,u[Et]=yn,g[this._hashKey(Ut,Kt)]=Et,g[this._hashKey(a[2*qe],a[2*qe+1])]=qe}this.hull=new Uint32Array(Zt);for(let $t=0,Ht=this._hullStart;$t<Zt;$t++)this.hull[$t]=Ht,Ht=u[Ht];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(a,s){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,s-this._cy)*this._hashSize)%this._hashSize}_legalize(a){const{_triangles:s,_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=Gs[--g];continue}const C=x-x%3,D=T+(a+1)%3,j=C+(x+2)%3,P=s[v],$=s[a],it=s[D],G=s[j];if(bf(p[2*P],p[2*P+1],p[2*$],p[2*$+1],p[2*it],p[2*it+1],p[2*G],p[2*G+1])){s[a]=G,s[x]=P;const V=u[j];if(V===-1){let pt=this._hullStart;do{if(this._hullTri[pt]===j){this._hullTri[pt]=a;break}pt=this._hullPrev[pt]}while(pt!==this._hullStart)}this._link(a,V),this._link(x,u[v]),this._link(v,j);const Z=C+(x+1)%3;g<Gs.length&&(Gs[g++]=Z)}else{if(g===0)break;a=Gs[--g]}}return v}_link(a,s){this._halfedges[a]=s,s!==-1&&(this._halfedges[s]=a)}_addTriangle(a,s,u,p,g,v){const x=this.trianglesLen;return this._triangles[x]=a,this._triangles[x+1]=s,this._triangles[x+2]=u,this._link(x,p),this._link(x+1,g),this._link(x+2,v),this.trianglesLen+=3,x}}function Ll(i,a,s,u){const p=i-s,g=a-u;return p*p+g*g}function bf(i,a,s,u,p,g,v,x){const T=i-v,C=a-x,D=s-v,j=u-x,P=p-v,$=g-x,it=D*D+j*j,G=P*P+$*$;return T*(j*G-it*$)-C*(D*G-it*P)+(T*T+C*C)*(D*$-j*P)<0}function vf(i,a,s,u,p,g){const v=s-i,x=u-a,T=p-i,C=g-a,D=v*v+x*x,j=T*T+C*C,P=.5/(v*C-x*T),$=(C*D-x*j)*P,it=(v*j-T*D)*P;return $*$+it*it}function Vs(i,a,s,u){if(u-s<=20)for(let p=s+1;p<=u;p++){const g=i[p],v=a[g];let x=p-1;for(;x>=s&&a[i[x]]>v;)i[x+1]=i[x--];i[x+1]=g}else{let p=s+1,g=u;Lc(i,s+u>>1,p),a[i[s]]>a[i[u]]&&Lc(i,s,u),a[i[p]]>a[i[u]]&&Lc(i,p,u),a[i[s]]>a[i[p]]&&Lc(i,s,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;Lc(i,p,g)}i[s+1]=i[g],i[g]=v,u-p+1>=g-s?(Vs(i,a,p,u),Vs(i,a,s,g-1)):(Vs(i,a,s,g-1),Vs(i,a,p,u))}}function Lc(i,a,s){const u=i[a];i[a]=i[s],i[s]=u}function Mc(i){return i[0]}function xf(i){return i[1]}const Va=1e-6;class _s{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(a,s){this._+=`M${this._x0=this._x1=+a},${this._y0=this._y1=+s}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(a,s){this._+=`L${this._x1=+a},${this._y1=+s}`}arc(a,s,u){const p=(a=+a)+(u=+u),g=s=+s;if(u<0)throw new Error("negative radius");this._x1===null?this._+=`M${p},${g}`:(Math.abs(this._x1-p)>Va||Math.abs(this._y1-g)>Va)&&(this._+="L"+p+","+g),u&&(this._+=`A${u},${u},0,1,1,${a-u},${s}A${u},${u},0,1,1,${this._x1=p},${this._y1=g}`)}rect(a,s,u,p){this._+=`M${this._x0=this._x1=+a},${this._y0=this._y1=+s}h${+u}v${+p}h${-u}Z`}value(){return this._||null}}class ju{constructor(){this._=[]}moveTo(a,s){this._.push([a,s])}closePath(){this._.push(this._[0].slice())}lineTo(a,s){this._.push([a,s])}value(){return this._.length?this._:null}}class M1{constructor(a,[s,u,p,g]=[0,0,960,500]){if(!((p=+p)>=(s=+s)&&(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=s,this.ymax=g,this.ymin=u,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:a,hull:s,triangles:u},vectors:p}=this,g=this.circumcenters=this._circumcenters.subarray(0,u.length/3*2);for(let $,it,G=0,V=0,Z=u.length;G<Z;G+=3,V+=2){const pt=2*u[G],lt=2*u[G+1],ut=2*u[G+2],vt=a[pt],wt=a[pt+1],ne=a[lt],ye=a[lt+1],Zt=a[ut],$t=a[ut+1],Ht=ne-vt,qt=ye-wt,Et=Zt-vt,Ut=$t-wt,Kt=2*(Ht*Ut-qt*Et);if(Math.abs(Kt)<1e-9){let se=1e9;const Ae=2*u[0];se*=Math.sign((a[Ae]-vt)*Ut-(a[Ae+1]-wt)*Et),$=(vt+Zt)/2-se*Ut,it=(wt+$t)/2+se*Et}else{const se=1/Kt,Ae=Ht*Ht+qt*qt,qe=Et*Et+Ut*Ut;$=vt+(Ut*Ae-qt*qe)*se,it=wt+(Ht*qe-Et*Ae)*se}g[V]=$,g[V+1]=it}let v,x,T,C=s[s.length-1],D=4*C,j=a[2*C],P=a[2*C+1];p.fill(0);for(let $=0;$<s.length;++$)C=s[$],v=D,x=j,T=P,D=4*C,j=a[2*C],P=a[2*C+1],p[v+2]=p[D]=T-P,p[v+3]=p[D+1]=j-x}render(a){const s=a==null?a=new _s:void 0,{delaunay:{halfedges:u,inedges:p,hull:g},circumcenters:v,vectors:x}=this;if(g.length<=1)return null;for(let D=0,j=u.length;D<j;++D){const P=u[D];if(P<D)continue;const $=2*Math.floor(D/3),it=2*Math.floor(P/3),G=v[$],V=v[$+1],Z=v[it],pt=v[it+1];this._renderSegment(G,V,Z,pt,a)}let T,C=g[g.length-1];for(let D=0;D<g.length;++D){T=C,C=g[D];const j=2*Math.floor(p[C]/3),P=v[j],$=v[j+1],it=4*T,G=this._project(P,$,x[it+2],x[it+3]);G&&this._renderSegment(P,$,G[0],G[1],a)}return s&&s.value()}renderBounds(a){const s=a==null?a=new _s:void 0;return a.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),s&&s.value()}renderCell(a,s){const u=s==null?s=new _s:void 0,p=this._clip(a);if(p===null||!p.length)return;s.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]||s.lineTo(p[v],p[v+1]);return s.closePath(),u&&u.value()}*cellPolygons(){const{delaunay:{points:a}}=this;for(let s=0,u=a.length/2;s<u;++s){const p=this.cellPolygon(s);p&&(p.index=s,yield p)}}cellPolygon(a){const s=new ju;return this.renderCell(a,s),s.value()}_renderSegment(a,s,u,p,g){let v;const x=this._regioncode(a,s),T=this._regioncode(u,p);x===0&&T===0?(g.moveTo(a,s),g.lineTo(u,p)):(v=this._clipSegment(a,s,u,p,x,T))&&(g.moveTo(v[0],v[1]),g.lineTo(v[2],v[3]))}contains(a,s,u){return(s=+s)==s&&(u=+u)==u&&this.delaunay._step(a,s,u)===a}*neighbors(a){const s=this._clip(a);if(s)for(const u of this.delaunay.neighbors(a)){const p=this._clip(u);if(p){t:for(let g=0,v=s.length;g<v;g+=2)for(let x=0,T=p.length;x<T;x+=2)if(s[g]==p[x]&&s[g+1]==p[x+1]&&s[(g+2)%v]==p[(x+T-2)%T]&&s[(g+3)%v]==p[(x+T-1)%T]){yield u;break t}}}}_cell(a){const{circumcenters:s,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(s[2*C],s[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 s=this._cell(a);if(s===null)return null;const{vectors:u}=this,p=4*a;return u[p]||u[p+1]?this._clipInfinite(a,s,u[p],u[p+1],u[p+2],u[p+3]):this._clipFinite(a,s)}_clipFinite(a,s){const u=s.length;let p,g,v,x,T=null,C=s[u-2],D=s[u-1],j=this._regioncode(C,D),P=0;for(let $=0;$<u;$+=2)if(p=C,g=D,C=s[$],D=s[$+1],v=j,j=this._regioncode(C,D),v===0&&j===0)x=P,P=0,T?T.push(C,D):T=[C,D];else{let it,G,V,Z,pt;if(v===0){if((it=this._clipSegment(p,g,C,D,v,j))===null)continue;[G,V,Z,pt]=it}else{if((it=this._clipSegment(C,D,p,g,j,v))===null)continue;[Z,pt,G,V]=it,x=P,P=this._edgecode(G,V),x&&P&&this._edge(a,x,P,T,T.length),T?T.push(G,V):T=[G,V]}x=P,P=this._edgecode(Z,pt),x&&P&&this._edge(a,x,P,T,T.length),T?T.push(Z,pt):T=[Z,pt]}if(T)x=P,P=this._edgecode(T[0],T[1]),x&&P&&this._edge(a,x,P,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,s,u,p,g,v){for(;;){if(g===0&&v===0)return[a,s,u,p];if(g&v)return null;let x,T,C=g||v;8&C?(x=a+(u-a)*(this.ymax-s)/(p-s),T=this.ymax):4&C?(x=a+(u-a)*(this.ymin-s)/(p-s),T=this.ymin):2&C?(T=s+(p-s)*(this.xmax-a)/(u-a),x=this.xmax):(T=s+(p-s)*(this.xmin-a)/(u-a),x=this.xmin),g?(a=x,s=T,g=this._regioncode(a,s)):(u=x,p=T,v=this._regioncode(u,p))}}_clipInfinite(a,s,u,p,g,v){let x,T=Array.from(s);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,D=0,j=T.length,P=this._edgecode(T[j-2],T[j-1]);D<j;D+=2)C=P,P=this._edgecode(T[D],T[D+1]),C&&P&&(D=this._edge(a,C,P,T,D),j=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,s,u,p,g){for(;s!==u;){let v,x;switch(s){case 5:s=4;continue;case 4:s=6,v=this.xmax,x=this.ymin;break;case 6:s=2;continue;case 2:s=10,v=this.xmax,x=this.ymax;break;case 10:s=8;continue;case 8:s=9,v=this.xmin,x=this.ymax;break;case 9:s=1;continue;case 1:s=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,s,u,p){let g,v,x,T=1/0;if(p<0){if(s<=this.ymin)return null;(g=(this.ymin-s)/p)<T&&(x=this.ymin,v=a+(T=g)*u)}else if(p>0){if(s>=this.ymax)return null;(g=(this.ymax-s)/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=s+(T=g)*p)}else if(u<0){if(a<=this.xmin)return null;(g=(this.xmin-a)/u)<T&&(v=this.xmin,x=s+(T=g)*p)}return[v,x]}_edgecode(a,s){return(a===this.xmin?1:a===this.xmax?2:0)|(s===this.ymin?4:s===this.ymax?8:0)}_regioncode(a,s){return(a<this.xmin?1:a>this.xmax?2:0)|(s<this.ymin?4:s>this.ymax?8:0)}}const O1=2*Math.PI,Zs=Math.pow;function kf(i){return i[0]}function wf(i){return i[1]}function Ef(i,a,s){return[i+Math.sin(i+a)*s,a+Math.cos(i-a)*s]}class $u{static from(a,s=kf,u=wf,p){return new $u("length"in a?function(g,v,x,T){const C=g.length,D=new Float64Array(2*C);for(let j=0;j<C;++j){const P=g[j];D[2*j]=v.call(T,P,j,g),D[2*j+1]=x.call(T,P,j,g)}return D}(a,s,u,p):Float64Array.from(function*(g,v,x,T){let C=0;for(const D of g)yield v.call(T,D,C,g),yield x.call(T,D,C,g),++C}(a,s,u,p)))}constructor(a){this._delaunator=new ms(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,s=this.points;if(a.hull&&a.hull.length>2&&function(T){const{triangles:C,coords:D}=T;for(let j=0;j<C.length;j+=3){const P=2*C[j],$=2*C[j+1],it=2*C[j+2];if((D[it]-D[P])*(D[$+1]-D[P+1])-(D[$]-D[P])*(D[it+1]-D[P+1])>1e-10)return!1}return!0}(a)){this.collinear=Int32Array.from({length:s.length/2},(P,$)=>$).sort((P,$)=>s[2*P]-s[2*$]||s[2*P+1]-s[2*$+1]);const T=this.collinear[0],C=this.collinear[this.collinear.length-1],D=[s[2*T],s[2*T+1],s[2*C],s[2*C+1]],j=1e-8*Math.hypot(D[3]-D[1],D[2]-D[0]);for(let P=0,$=s.length/2;P<$;++P){const it=Ef(s[2*P],s[2*P+1],j);s[2*P]=it[0],s[2*P+1]=it[1]}this._delaunator=new ms(s)}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 D=g[T%3==2?T-2:T+1];u[T]!==-1&&v[D]!==-1||(v[D]=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 M1(this,a)}*neighbors(a){const{inedges:s,hull:u,_hullIndex:p,halfedges:g,triangles:v,collinear:x}=this;if(x){const j=x.indexOf(a);return j>0&&(yield x[j-1]),void(j<x.length-1&&(yield x[j+1]))}const T=s[a];if(T===-1)return;let C=T,D=-1;do{if(yield D=v[C],C=C%3==2?C-2:C+1,v[C]!==a)return;if(C=g[C],C===-1){const j=u[(p[a]+1)%u.length];return void(j!==D&&(yield j))}}while(C!==T)}find(a,s,u=0){if((a=+a)!=a||(s=+s)!=s)return-1;const p=u;let g;for(;(g=this._step(u,a,s))>=0&&g!==u&&g!==p;)u=g;return g}_step(a,s,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 D=a,j=Zs(s-C[2*a],2)+Zs(u-C[2*a+1],2);const P=p[a];let $=P;do{let it=T[$];const G=Zs(s-C[2*it],2)+Zs(u-C[2*it+1],2);if(G<j&&(j=G,D=it),$=$%3==2?$-2:$+1,T[$]!==a)break;if($=x[$],$===-1){if($=g[(v[a]+1)%g.length],$!==it&&Zs(s-C[2*$],2)+Zs(u-C[2*$+1],2)<j)return $;break}}while($!==P);return D}render(a){const s=a==null?a=new _s: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],D=2*g[T];a.moveTo(u[C],u[C+1]),a.lineTo(u[D],u[D+1])}return this.renderHull(a),s&&s.value()}renderPoints(a,s){s!==void 0||a&&typeof a.moveTo=="function"||(s=a,a=null),s=s==null?2:+s;const u=a==null?a=new _s: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+s,T),a.arc(x,T,s,0,O1)}return u&&u.value()}renderHull(a){const s=a==null?a=new _s: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(),s&&s.value()}hullPolygon(){const a=new ju;return this.renderHull(a),a.value()}renderTriangle(a,s){const u=s==null?s=new _s:void 0,{points:p,triangles:g}=this,v=2*g[a*=3],x=2*g[a+1],T=2*g[a+2];return s.moveTo(p[v],p[v+1]),s.lineTo(p[x],p[x+1]),s.lineTo(p[T],p[T+1]),s.closePath(),u&&u.value()}*trianglePolygons(){const{triangles:a}=this;for(let s=0,u=a.length/3;s<u;++s)yield this.trianglePolygon(s)}trianglePolygon(a){const s=new ju;return this.renderTriangle(a,s),s.value()}}const Ml=i=>()=>i;function qo(i,{sourceEvent:a,subject:s,target:u,identifier:p,active:g,x:v,y:x,dx:T,dy:C,dispatch:D}){Object.defineProperties(this,{type:{value:i,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},subject:{value:s,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:D}})}function Tf(i){return!i.ctrlKey&&!i.button}function Sf(){return this.parentNode}function Af(i,a){return a==null?{x:i.x,y:i.y}:a}function Cf(){return navigator.maxTouchPoints||"ontouchstart"in this}function If(){var i,a,s,u,p=Tf,g=Sf,v=Af,x=Cf,T={},C=lr("start","drag","end"),D=0,j=0;function P(ut){ut.on("mousedown.drag",$).filter(x).on("touchstart.drag",V).on("touchmove.drag",Z,nl).on("touchend.drag touchcancel.drag",pt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function $(ut,vt){if(!u&&p.call(this,ut,vt)){var wt=lt(this,g.call(this,ut,vt),ut,vt,"mouse");wt&&(wi(ut.view).on("mousemove.drag",it,Lo).on("mouseup.drag",G,Lo),ho(ut.view),Is(ut),s=!1,i=ut.clientX,a=ut.clientY,wt("start",ut))}}function it(ut){if(Ha(ut),!s){var vt=ut.clientX-i,wt=ut.clientY-a;s=vt*vt+wt*wt>j}T.mouse("drag",ut)}function G(ut){wi(ut.view).on("mousemove.drag mouseup.drag",null),as(ut.view,s),Ha(ut),T.mouse("end",ut)}function V(ut,vt){if(p.call(this,ut,vt)){var wt,ne,ye=ut.changedTouches,Zt=g.call(this,ut,vt),$t=ye.length;for(wt=0;wt<$t;++wt)(ne=lt(this,Zt,ut,vt,ye[wt].identifier,ye[wt]))&&(Is(ut),ne("start",ut,ye[wt]))}}function Z(ut){var vt,wt,ne=ut.changedTouches,ye=ne.length;for(vt=0;vt<ye;++vt)(wt=T[ne[vt].identifier])&&(Ha(ut),wt("drag",ut,ne[vt]))}function pt(ut){var vt,wt,ne=ut.changedTouches,ye=ne.length;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),vt=0;vt<ye;++vt)(wt=T[ne[vt].identifier])&&(Is(ut),wt("end",ut,ne[vt]))}function lt(ut,vt,wt,ne,ye,Zt){var $t,Ht,qt,Et=C.copy(),Ut=ua(Zt||wt,vt);if((qt=v.call(ut,new qo("beforestart",{sourceEvent:wt,target:P,identifier:ye,active:D,x:Ut[0],y:Ut[1],dx:0,dy:0,dispatch:Et}),ne))!=null)return $t=qt.x-Ut[0]||0,Ht=qt.y-Ut[1]||0,function Kt(se,Ae,qe){var Xe,yn=Ut;switch(se){case"start":T[ye]=Kt,Xe=D++;break;case"end":delete T[ye],--D;case"drag":Ut=ua(qe||Ae,vt),Xe=D}Et.call(se,ut,new qo(se,{sourceEvent:Ae,subject:qt,target:P,identifier:ye,active:Xe,x:Ut[0]+$t,y:Ut[1]+Ht,dx:Ut[0]-yn[0],dy:Ut[1]-yn[1],dispatch:Et}),ne)}}return P.filter=function(ut){return arguments.length?(p=typeof ut=="function"?ut:Ml(!!ut),P):p},P.container=function(ut){return arguments.length?(g=typeof ut=="function"?ut:Ml(ut),P):g},P.subject=function(ut){return arguments.length?(v=typeof ut=="function"?ut:Ml(ut),P):v},P.touchable=function(ut){return arguments.length?(x=typeof ut=="function"?ut:Ml(!!ut),P):x},P.on=function(){var ut=C.on.apply(C,arguments);return ut===C?P:ut},P.clickDistance=function(ut){return arguments.length?(j=(ut=+ut)*ut,P):Math.sqrt(j)},P}qo.prototype.on=function(){var i=this._.on.apply(this._,arguments);return i===this._?this:i};var D1={},Hu={};function B1(i){return new Function("d","return {"+i.map(function(a,s){return JSON.stringify(a)+": d["+s+'] || ""'}).join(",")+"}")}function qu(i){var a=Object.create(null),s=[];return i.forEach(function(u){for(var p in u)p in a||s.push(a[p]=p)}),s}function ha(i,a){var s=i+"",u=s.length;return u<a?new Array(a-u+1).join(0)+s:s}function de(i){var a=new RegExp('["'+i+`
|
|
\r]`),s=i.charCodeAt(0);function u(x,T){var C,D=[],j=x.length,P=0,$=0,it=j<=0,G=!1;function V(){if(it)return Hu;if(G)return G=!1,D1;var pt,lt,ut=P;if(x.charCodeAt(ut)===34){for(;P++<j&&x.charCodeAt(P)!==34||x.charCodeAt(++P)===34;);return(pt=P)>=j?it=!0:(lt=x.charCodeAt(P++))===10?G=!0:lt===13&&(G=!0,x.charCodeAt(P)===10&&++P),x.slice(ut+1,pt-1).replace(/""/g,'"')}for(;P<j;){if((lt=x.charCodeAt(pt=P++))===10)G=!0;else if(lt===13)G=!0,x.charCodeAt(P)===10&&++P;else if(lt!==s)continue;return x.slice(ut,pt)}return it=!0,x.slice(ut,j)}for(x.charCodeAt(j-1)===10&&--j,x.charCodeAt(j-1)===13&&--j;(C=V())!==Hu;){for(var Z=[];C!==D1&&C!==Hu;)Z.push(C),C=V();T&&(Z=T(Z,$++))==null||D.push(Z)}return D}function p(x,T){return x.map(function(C){return T.map(function(D){return v(C[D])}).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(),D=T.getUTCMinutes(),j=T.getUTCSeconds(),P=T.getUTCMilliseconds();return isNaN(T)?"Invalid Date":function($){return $<0?"-"+ha(-$,6):$>9999?"+"+ha($,6):ha($,4)}(T.getUTCFullYear())+"-"+ha(T.getUTCMonth()+1,2)+"-"+ha(T.getUTCDate(),2)+(P?"T"+ha(C,2)+":"+ha(D,2)+":"+ha(j,2)+"."+ha(P,3)+"Z":j?"T"+ha(C,2)+":"+ha(D,2)+":"+ha(j,2)+"Z":D||C?"T"+ha(C,2)+":"+ha(D,2)+"Z":"")}(x):a.test(x+="")?'"'+x.replace(/"/g,'""')+'"':x}return{parse:function(x,T){var C,D,j=u(x,function(P,$){if(C)return C(P,$-1);D=P,C=T?function(it,G){var V=B1(it);return function(Z,pt){return G(V(Z),pt,it)}}(P,T):B1(P)});return j.columns=D||[],j},parseRows:u,format:function(x,T){return T==null&&(T=qu(x)),[T.map(v).join(i)].concat(p(x,T)).join(`
|
|
`)},formatBody:function(x,T){return T==null&&(T=qu(x)),p(x,T).join(`
|
|
`)},formatRows:function(x){return x.map(g).join(`
|
|
`)},formatRow:g,formatValue:v}}var an=de(","),bs=an.parse,Xs=an.parseRows,Wu=an.format,Gu=an.formatBody,R1=an.formatRows,F1=an.formatRow,Ol=an.formatValue,Wo=de(" "),Za=Wo.parse,Nf=Wo.parseRows,Oc=Wo.format,Lf=Wo.formatBody,P1=Wo.formatRows,Vu=Wo.formatRow,Dl=Wo.formatValue;function Bl(i){for(var a in i){var s,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(s=+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;Mf&&u[4]&&!u[7]&&(p=p.replace(/-/g,"/").replace(/T/," ")),p=new Date(p)}else p=s;else p=null;i[a]=p}return i}const Mf=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),Rl=i=>+i;function Zi(i){return i*i}function Zu(i){return i*(2-i)}function Dc(i){return((i*=2)<=1?i*i:--i*(2-i)+1)/2}var U1=function i(a){function s(u){return Math.pow(u,a)}return a=+a,s.exponent=i,s}(3),z1=function i(a){function s(u){return 1-Math.pow(1-u,a)}return a=+a,s.exponent=i,s}(3),Xu=function i(a){function s(u){return((u*=2)<=1?Math.pow(u,a):2-Math.pow(2-u,a))/2}return a=+a,s.exponent=i,s}(3),Y1=Math.PI,Ku=Y1/2;function j1(i){return+i==1?1:1-Math.cos(i*Ku)}function ko(i){return Math.sin(i*Ku)}function Ju(i){return(1-Math.cos(Y1*i))/2}function vi(i){return 1.0009775171065494*(Math.pow(2,-10*i)-.0009765625)}function Of(i){return vi(1-+i)}function Df(i){return 1-vi(i)}function Qu(i){return((i*=2)<=1?vi(1-i):2-vi(i-1))/2}function $1(i){return 1-Math.sqrt(1-i*i)}function th(i){return Math.sqrt(1- --i*i)}function H1(i){return((i*=2)<=1?1-Math.sqrt(1-i*i):Math.sqrt(1-(i-=2)*i)+1)/2}var Bc=7.5625;function Bf(i){return 1-fr(1-i)}function fr(i){return(i=+i)<.36363636363636365?Bc*i*i:i<.7272727272727273?Bc*(i-=.5454545454545454)*i+.75:i<.9090909090909091?Bc*(i-=.8181818181818182)*i+.9375:Bc*(i-=.9545454545454546)*i+.984375}function Fl(i){return((i*=2)<=1?1-fr(1-i):fr(i-1)+1)/2}var oo=1.70158,Rf=function i(a){function s(u){return(u=+u)*u*(a*(u-1)+u)}return a=+a,s.overshoot=i,s}(oo),eh=function i(a){function s(u){return--u*u*((u+1)*a+u)+1}return a=+a,s.overshoot=i,s}(oo),nh=function i(a){function s(u){return((u*=2)<1?u*u*((a+1)*u-a):(u-=2)*u*((a+1)*u+a)+2)/2}return a=+a,s.overshoot=i,s}(oo),vs=2*Math.PI,rh=function i(a,s){var u=Math.asin(1/(a=Math.max(1,a)))*(s/=vs);function p(g){return a*vi(- --g)*Math.sin((u-g)/s)}return p.amplitude=function(g){return i(g,s*vs)},p.period=function(g){return i(a,g)},p}(1,.3),xs=function i(a,s){var u=Math.asin(1/(a=Math.max(1,a)))*(s/=vs);function p(g){return 1-a*vi(g=+g)*Math.sin((g+u)/s)}return p.amplitude=function(g){return i(g,s*vs)},p.period=function(g){return i(a,g)},p}(1,.3),ih=function i(a,s){var u=Math.asin(1/(a=Math.max(1,a)))*(s/=vs);function p(g){return((g=2*g-1)<0?a*vi(-g)*Math.sin((u-g)/s):2-a*vi(g)*Math.sin((u+g)/s))/2}return p.amplitude=function(g){return i(g,s*vs)},p.period=function(g){return i(a,g)},p}(1,.3);function Ks(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);return i.blob()}function Js(i,a){return fetch(i,a).then(Ks)}function q1(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);return i.arrayBuffer()}function W1(i,a){return fetch(i,a).then(q1)}function G1(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);return i.text()}function Rc(i,a){return fetch(i,a).then(G1)}function ah(i){return function(a,s,u){return arguments.length===2&&typeof s=="function"&&(u=s,s=void 0),Rc(a,s).then(function(p){return i(p,u)})}}function V1(i,a,s,u){arguments.length===3&&typeof s=="function"&&(u=s,s=void 0);var p=de(i);return Rc(a,s).then(function(g){return p.parse(g,u)})}var Ff=ah(bs),Pf=ah(Za);function Uf(i,a){return new Promise(function(s,u){var p=new Image;for(var g in a)p[g]=a[g];p.onerror=u,p.onload=function(){s(p)},p.src=i})}function zf(i){if(!i.ok)throw new Error(i.status+" "+i.statusText);if(i.status!==204&&i.status!==205)return i.json()}function wo(i,a){return fetch(i,a).then(zf)}function Fc(i){return(a,s)=>Rc(a,s).then(u=>new DOMParser().parseFromString(u,i))}const ks=Fc("application/xml");var Ya=Fc("text/html"),oh=Fc("image/svg+xml");function Z1(i,a){var s,u=1;function p(){var g,v,x=s.length,T=0,C=0;for(g=0;g<x;++g)T+=(v=s[g]).x,C+=v.y;for(T=(T/x-i)*u,C=(C/x-a)*u,g=0;g<x;++g)(v=s[g]).x-=T,v.y-=C}return i==null&&(i=0),a==null&&(a=0),p.initialize=function(g){s=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 Pl(i,a,s,u){if(isNaN(a)||isNaN(s))return i;var p,g,v,x,T,C,D,j,P,$=i._root,it={data:u},G=i._x0,V=i._y0,Z=i._x1,pt=i._y1;if(!$)return i._root=it,i;for(;$.length;)if((C=a>=(g=(G+Z)/2))?G=g:Z=g,(D=s>=(v=(V+pt)/2))?V=v:pt=v,p=$,!($=$[j=D<<1|C]))return p[j]=it,i;if(x=+i._x.call(null,$.data),T=+i._y.call(null,$.data),a===x&&s===T)return it.next=$,p?p[j]=it:i._root=it,i;do p=p?p[j]=new Array(4):i._root=new Array(4),(C=a>=(g=(G+Z)/2))?G=g:Z=g,(D=s>=(v=(V+pt)/2))?V=v:pt=v;while((j=D<<1|C)==(P=(T>=v)<<1|x>=g));return p[P]=$,p[j]=it,i}function ra(i,a,s,u,p){this.node=i,this.x0=a,this.y0=s,this.x1=u,this.y1=p}function Yf(i){return i[0]}function X1(i){return i[1]}function Ul(i,a,s){var u=new zl(a==null?Yf:a,s==null?X1:s,NaN,NaN,NaN,NaN);return i==null?u:u.addAll(i)}function zl(i,a,s,u,p,g){this._x=i,this._y=a,this._x0=s,this._y0=u,this._x1=p,this._y1=g,this._root=void 0}function sh(i){for(var a={data:i.data},s=a;i=i.next;)s=s.next={data:i.data};return a}var ia=Ul.prototype=zl.prototype;function oi(i){return function(){return i}}function Go(i){return 1e-6*(i()-.5)}function Mi(i){return i.x+i.vx}function aa(i){return i.y+i.vy}function Yl(i){var a,s,u,p=1,g=1;function v(){for(var C,D,j,P,$,it,G,V=a.length,Z=0;Z<g;++Z)for(D=Ul(a,Mi,aa).visitAfter(x),C=0;C<V;++C)j=a[C],it=s[j.index],G=it*it,P=j.x+j.vx,$=j.y+j.vy,D.visit(pt);function pt(lt,ut,vt,wt,ne){var ye=lt.data,Zt=lt.r,$t=it+Zt;if(!ye)return ut>P+$t||wt<P-$t||vt>$+$t||ne<$-$t;if(ye.index>j.index){var Ht=P-ye.x-ye.vx,qt=$-ye.y-ye.vy,Et=Ht*Ht+qt*qt;Et<$t*$t&&(Ht===0&&(Et+=(Ht=Go(u))*Ht),qt===0&&(Et+=(qt=Go(u))*qt),Et=($t-(Et=Math.sqrt(Et)))/Et*p,j.vx+=(Ht*=Et)*($t=(Zt*=Zt)/(G+Zt)),j.vy+=(qt*=Et)*$t,ye.vx-=Ht*($t=1-$t),ye.vy-=qt*$t)}}}function x(C){if(C.data)return C.r=s[C.data.index];for(var D=C.r=0;D<4;++D)C[D]&&C[D].r>C.r&&(C.r=C[D].r)}function T(){if(a){var C,D,j=a.length;for(s=new Array(j),C=0;C<j;++C)D=a[C],s[D.index]=+i(D,C,a)}}return typeof i!="function"&&(i=oi(i==null?1:+i)),v.initialize=function(C,D){a=C,u=D,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:oi(+C),T(),v):i},v}function Ei(i){return i.index}function Oi(i,a){var s=i.get(a);if(!s)throw new Error("node not found: "+a);return s}function K1(i){var a,s,u,p,g,v,x=Ei,T=function(G){return 1/Math.min(p[G.source.index],p[G.target.index])},C=oi(30),D=1;function j(G){for(var V=0,Z=i.length;V<D;++V)for(var pt,lt,ut,vt,wt,ne,ye,Zt=0;Zt<Z;++Zt)lt=(pt=i[Zt]).source,vt=(ut=pt.target).x+ut.vx-lt.x-lt.vx||Go(v),wt=ut.y+ut.vy-lt.y-lt.vy||Go(v),vt*=ne=((ne=Math.sqrt(vt*vt+wt*wt))-s[Zt])/ne*G*a[Zt],wt*=ne,ut.vx-=vt*(ye=g[Zt]),ut.vy-=wt*ye,lt.vx+=vt*(ye=1-ye),lt.vy+=wt*ye}function P(){if(u){var G,V,Z=u.length,pt=i.length,lt=new Map(u.map((ut,vt)=>[x(ut,vt,u),ut]));for(G=0,p=new Array(Z);G<pt;++G)(V=i[G]).index=G,typeof V.source!="object"&&(V.source=Oi(lt,V.source)),typeof V.target!="object"&&(V.target=Oi(lt,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(pt);G<pt;++G)V=i[G],g[G]=p[V.source.index]/(p[V.source.index]+p[V.target.index]);a=new Array(pt),$(),s=new Array(pt),it()}}function $(){if(u)for(var G=0,V=i.length;G<V;++G)a[G]=+T(i[G],G,i)}function it(){if(u)for(var G=0,V=i.length;G<V;++G)s[G]=+C(i[G],G,i)}return i==null&&(i=[]),j.initialize=function(G,V){u=G,v=V,P()},j.links=function(G){return arguments.length?(i=G,P(),j):i},j.id=function(G){return arguments.length?(x=G,j):x},j.iterations=function(G){return arguments.length?(D=+G,j):D},j.strength=function(G){return arguments.length?(T=typeof G=="function"?G:oi(+G),$(),j):T},j.distance=function(G){return arguments.length?(C=typeof G=="function"?G:oi(+G),it(),j):C},j}ia.copy=function(){var i,a,s=new zl(this._x,this._y,this._x0,this._y0,this._x1,this._y1),u=this._root;if(!u)return s;if(!u.length)return s._root=sh(u),s;for(i=[{source:u,target:s._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]=sh(a));return s},ia.add=function(i){const a=+this._x.call(null,i),s=+this._y.call(null,i);return Pl(this.cover(a,s),a,s,i)},ia.addAll=function(i){var a,s,u,p,g=i.length,v=new Array(g),x=new Array(g),T=1/0,C=1/0,D=-1/0,j=-1/0;for(s=0;s<g;++s)isNaN(u=+this._x.call(null,a=i[s]))||isNaN(p=+this._y.call(null,a))||(v[s]=u,x[s]=p,u<T&&(T=u),u>D&&(D=u),p<C&&(C=p),p>j&&(j=p));if(T>D||C>j)return this;for(this.cover(T,C).cover(D,j),s=0;s<g;++s)Pl(this,v[s],x[s],i[s]);return this},ia.cover=function(i,a){if(isNaN(i=+i)||isNaN(a=+a))return this;var s=this._x0,u=this._y0,p=this._x1,g=this._y1;if(isNaN(s))p=(s=Math.floor(i))+1,g=(u=Math.floor(a))+1;else{for(var v,x,T=p-s||1,C=this._root;s>i||i>=p||u>a||a>=g;)switch(x=(a<u)<<1|i<s,(v=new Array(4))[x]=C,C=v,T*=2,x){case 0:p=s+T,g=u+T;break;case 1:s=p-T,g=u+T;break;case 2:p=s+T,u=g-T;break;case 3:s=p-T,u=g-T}this._root&&this._root.length&&(this._root=C)}return this._x0=s,this._y0=u,this._x1=p,this._y1=g,this},ia.data=function(){var i=[];return this.visit(function(a){if(!a.length)do i.push(a.data);while(a=a.next)}),i},ia.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]]},ia.find=function(i,a,s){var u,p,g,v,x,T,C,D=this._x0,j=this._y0,P=this._x1,$=this._y1,it=[],G=this._root;for(G&&it.push(new ra(G,D,j,P,$)),s==null?s=1/0:(D=i-s,j=a-s,P=i+s,$=a+s,s*=s);T=it.pop();)if(!(!(G=T.node)||(p=T.x0)>P||(g=T.y0)>$||(v=T.x1)<D||(x=T.y1)<j))if(G.length){var V=(p+v)/2,Z=(g+x)/2;it.push(new ra(G[3],V,Z,v,x),new ra(G[2],p,Z,V,x),new ra(G[1],V,g,v,Z),new ra(G[0],p,g,V,Z)),(C=(a>=Z)<<1|i>=V)&&(T=it[it.length-1],it[it.length-1]=it[it.length-1-C],it[it.length-1-C]=T)}else{var pt=i-+this._x.call(null,G.data),lt=a-+this._y.call(null,G.data),ut=pt*pt+lt*lt;if(ut<s){var vt=Math.sqrt(s=ut);D=i-vt,j=a-vt,P=i+vt,$=a+vt,u=G.data}}return u},ia.remove=function(i){if(isNaN(g=+this._x.call(null,i))||isNaN(v=+this._y.call(null,i)))return this;var a,s,u,p,g,v,x,T,C,D,j,P,$=this._root,it=this._x0,G=this._y0,V=this._x1,Z=this._y1;if(!$)return this;if($.length)for(;;){if((C=g>=(x=(it+V)/2))?it=x:V=x,(D=v>=(T=(G+Z)/2))?G=T:Z=T,a=$,!($=$[j=D<<1|C]))return this;if(!$.length)break;(a[j+1&3]||a[j+2&3]||a[j+3&3])&&(s=a,P=j)}for(;$.data!==i;)if(u=$,!($=$.next))return this;return(p=$.next)&&delete $.next,u?(p?u.next=p:delete u.next,this):a?(p?a[j]=p:delete a[j],($=a[0]||a[1]||a[2]||a[3])&&$===(a[3]||a[2]||a[1]||a[0])&&!$.length&&(s?s[P]=$:this._root=$),this):(this._root=p,this)},ia.removeAll=function(i){for(var a=0,s=i.length;a<s;++a)this.remove(i[a]);return this},ia.root=function(){return this._root},ia.size=function(){var i=0;return this.visit(function(a){if(!a.length)do++i;while(a=a.next)}),i},ia.visit=function(i){var a,s,u,p,g,v,x=[],T=this._root;for(T&&x.push(new ra(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,D=(p+v)/2;(s=T[3])&&x.push(new ra(s,C,D,g,v)),(s=T[2])&&x.push(new ra(s,u,D,C,v)),(s=T[1])&&x.push(new ra(s,C,p,g,D)),(s=T[0])&&x.push(new ra(s,u,p,C,D))}return this},ia.visitAfter=function(i){var a,s=[],u=[];for(this._root&&s.push(new ra(this._root,this._x0,this._y0,this._x1,this._y1));a=s.pop();){var p=a.node;if(p.length){var g,v=a.x0,x=a.y0,T=a.x1,C=a.y1,D=(v+T)/2,j=(x+C)/2;(g=p[0])&&s.push(new ra(g,v,x,D,j)),(g=p[1])&&s.push(new ra(g,D,x,T,j)),(g=p[2])&&s.push(new ra(g,v,j,D,C)),(g=p[3])&&s.push(new ra(g,D,j,T,C))}u.push(a)}for(;a=u.pop();)i(a.node,a.x0,a.y0,a.x1,a.y1);return this},ia.x=function(i){return arguments.length?(this._x=i,this):this._x},ia.y=function(i){return arguments.length?(this._y=i,this):this._y};const Vo=4294967296;function ch(i){return i.x}function J1(i){return i.y}var Q1=Math.PI*(3-Math.sqrt(5));function t0(i){var a,s=1,u=.001,p=1-Math.pow(u,1/300),g=0,v=.6,x=new Map,T=Bo(j),C=lr("tick","end"),D=function(){let G=1;return()=>(G=(1664525*G+1013904223)%Vo)/Vo}();function j(){P(),C.call("tick",a),s<u&&(T.stop(),C.call("end",a))}function P(G){var V,Z,pt=i.length;G===void 0&&(G=1);for(var lt=0;lt<G;++lt)for(s+=(g-s)*p,x.forEach(function(ut){ut(s)}),V=0;V<pt;++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 $(){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 pt=10*Math.sqrt(.5+V),lt=V*Q1;G.x=pt*Math.cos(lt),G.y=pt*Math.sin(lt)}(isNaN(G.vx)||isNaN(G.vy))&&(G.vx=G.vy=0)}}function it(G){return G.initialize&&G.initialize(i,D),G}return i==null&&(i=[]),$(),a={tick:P,restart:function(){return T.restart(j),a},stop:function(){return T.stop(),a},nodes:function(G){return arguments.length?(i=G,$(),x.forEach(it),a):i},alpha:function(G){return arguments.length?(s=+G,a):s},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?(D=G,x.forEach(it),a):D},force:function(G,V){return arguments.length>1?(V==null?x.delete(G):x.set(G,it(V)),a):x.get(G)},find:function(G,V,Z){var pt,lt,ut,vt,wt,ne=0,ye=i.length;for(Z==null?Z=1/0:Z*=Z,ne=0;ne<ye;++ne)(ut=(pt=G-(vt=i[ne]).x)*pt+(lt=V-vt.y)*lt)<Z&&(wt=vt,Z=ut);return wt},on:function(G,V){return arguments.length>1?(C.on(G,V),a):C.on(G)}}}function e0(){var i,a,s,u,p,g=oi(-30),v=1,x=1/0,T=.81;function C($){var it,G=i.length,V=Ul(i,ch,J1).visitAfter(j);for(u=$,it=0;it<G;++it)a=i[it],V.visit(P)}function D(){if(i){var $,it,G=i.length;for(p=new Array(G),$=0;$<G;++$)it=i[$],p[it.index]=+g(it,$,i)}}function j($){var it,G,V,Z,pt,lt=0,ut=0;if($.length){for(V=Z=pt=0;pt<4;++pt)(it=$[pt])&&(G=Math.abs(it.value))&&(lt+=it.value,ut+=G,V+=G*it.x,Z+=G*it.y);$.x=V/ut,$.y=Z/ut}else{(it=$).x=it.data.x,it.y=it.data.y;do lt+=p[it.data.index];while(it=it.next)}$.value=lt}function P($,it,G,V){if(!$.value)return!0;var Z=$.x-a.x,pt=$.y-a.y,lt=V-it,ut=Z*Z+pt*pt;if(lt*lt/T<ut)return ut<x&&(Z===0&&(ut+=(Z=Go(s))*Z),pt===0&&(ut+=(pt=Go(s))*pt),ut<v&&(ut=Math.sqrt(v*ut)),a.vx+=Z*$.value*u/ut,a.vy+=pt*$.value*u/ut),!0;if(!($.length||ut>=x)){($.data!==a||$.next)&&(Z===0&&(ut+=(Z=Go(s))*Z),pt===0&&(ut+=(pt=Go(s))*pt),ut<v&&(ut=Math.sqrt(v*ut)));do $.data!==a&&(lt=p[$.data.index]*u/ut,a.vx+=Z*lt,a.vy+=pt*lt);while($=$.next)}}return C.initialize=function($,it){i=$,s=it,D()},C.strength=function($){return arguments.length?(g=typeof $=="function"?$:oi(+$),D(),C):g},C.distanceMin=function($){return arguments.length?(v=$*$,C):Math.sqrt(v)},C.distanceMax=function($){return arguments.length?(x=$*$,C):Math.sqrt(x)},C.theta=function($){return arguments.length?(T=$*$,C):Math.sqrt(T)},C}function n0(i,a,s){var u,p,g,v=oi(.1);function x(C){for(var D=0,j=u.length;D<j;++D){var P=u[D],$=P.x-a||1e-6,it=P.y-s||1e-6,G=Math.sqrt($*$+it*it),V=(g[D]-G)*p[D]*C/G;P.vx+=$*V,P.vy+=it*V}}function T(){if(u){var C,D=u.length;for(p=new Array(D),g=new Array(D),C=0;C<D;++C)g[C]=+i(u[C],C,u),p[C]=isNaN(g[C])?0:+v(u[C],C,u)}}return typeof i!="function"&&(i=oi(+i)),a==null&&(a=0),s==null&&(s=0),x.initialize=function(C){u=C,T()},x.strength=function(C){return arguments.length?(v=typeof C=="function"?C:oi(+C),T(),x):v},x.radius=function(C){return arguments.length?(i=typeof C=="function"?C:oi(+C),T(),x):i},x.x=function(C){return arguments.length?(a=+C,x):a},x.y=function(C){return arguments.length?(s=+C,x):s},x}function Pc(i){var a,s,u,p=oi(.1);function g(x){for(var T,C=0,D=a.length;C<D;++C)(T=a[C]).vx+=(u[C]-T.x)*s[C]*x}function v(){if(a){var x,T=a.length;for(s=new Array(T),u=new Array(T),x=0;x<T;++x)s[x]=isNaN(u[x]=+i(a[x],x,a))?0:+p(a[x],x,a)}}return typeof i!="function"&&(i=oi(i==null?0:+i)),g.initialize=function(x){a=x,v()},g.strength=function(x){return arguments.length?(p=typeof x=="function"?x:oi(+x),v(),g):p},g.x=function(x){return arguments.length?(i=typeof x=="function"?x:oi(+x),v(),g):i},g}function jf(i){var a,s,u,p=oi(.1);function g(x){for(var T,C=0,D=a.length;C<D;++C)(T=a[C]).vy+=(u[C]-T.y)*s[C]*x}function v(){if(a){var x,T=a.length;for(s=new Array(T),u=new Array(T),x=0;x<T;++x)s[x]=isNaN(u[x]=+i(a[x],x,a))?0:+p(a[x],x,a)}}return typeof i!="function"&&(i=oi(i==null?0:+i)),g.initialize=function(x){a=x,v()},g.strength=function(x){return arguments.length?(p=typeof x=="function"?x:oi(+x),v(),g):p},g.y=function(x){return arguments.length?(i=typeof x=="function"?x:oi(+x),v(),g):i},g}function Zo(i,a){if((s=(i=a?i.toExponential(a-1):i.toExponential()).indexOf("e"))<0)return null;var s,u=i.slice(0,s);return[u.length>1?u[0]+u.slice(2):u,+i.slice(s+1)]}function Ti(i){return(i=Zo(Math.abs(i)))?i[1]:NaN}var ws,Uc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Eo(i){if(!(a=Uc.exec(i)))throw new Error("invalid format: "+i);var a;return new zc({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 zc(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 s=Zo(i,a);if(!s)return i+"";var u=s[0],p=s[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")}Eo.prototype=zc.prototype,zc.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 r0={"%":(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 s=Zo(i,a);if(!s)return i+"";var u=s[0],p=s[1],g=p-(ws=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")+Zo(i,Math.max(0,a+g-1))[0]},X:i=>Math.round(i).toString(16).toUpperCase(),x:i=>Math.round(i).toString(16)};function i0(i){return i}var jl,$l,uh,a0=Array.prototype.map,Yc=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function o0(i){var a,s,u=i.grouping===void 0||i.thousands===void 0?i0:(a=a0.call(i.grouping,Number),s=i.thousands+"",function(P,$){for(var it=P.length,G=[],V=0,Z=a[0],pt=0;it>0&&Z>0&&(pt+Z+1>$&&(Z=Math.max(1,$-pt)),G.push(P.substring(it-=Z,it+Z)),!((pt+=Z+1)>$));)Z=a[V=(V+1)%a.length];return G.reverse().join(s)}),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?i0:function(P){return function($){return $.replace(/[0-9]/g,function(it){return P[+it]})}}(a0.call(i.numerals,String)),T=i.percent===void 0?"%":i.percent+"",C=i.minus===void 0?"\u2212":i.minus+"",D=i.nan===void 0?"NaN":i.nan+"";function j(P){var $=(P=Eo(P)).fill,it=P.align,G=P.sign,V=P.symbol,Z=P.zero,pt=P.width,lt=P.comma,ut=P.precision,vt=P.trim,wt=P.type;wt==="n"?(lt=!0,wt="g"):r0[wt]||(ut===void 0&&(ut=12),vt=!0,wt="g"),(Z||$==="0"&&it==="=")&&(Z=!0,$="0",it="=");var ne=V==="$"?p:V==="#"&&/[boxX]/.test(wt)?"0"+wt.toLowerCase():"",ye=V==="$"?g:/[%p]/.test(wt)?T:"",Zt=r0[wt],$t=/[defgprs%]/.test(wt);function Ht(qt){var Et,Ut,Kt,se=ne,Ae=ye;if(wt==="c")Ae=Zt(qt)+Ae,qt="";else{var qe=(qt=+qt)<0||1/qt<0;if(qt=isNaN(qt)?D:Zt(Math.abs(qt),ut),vt&&(qt=function(Ke){t:for(var Hn,Wn=Ke.length,Mn=1,Fn=-1;Mn<Wn;++Mn)switch(Ke[Mn]){case".":Fn=Hn=Mn;break;case"0":Fn===0&&(Fn=Mn),Hn=Mn;break;default:if(!+Ke[Mn])break t;Fn>0&&(Fn=0)}return Fn>0?Ke.slice(0,Fn)+Ke.slice(Hn+1):Ke}(qt)),qe&&+qt==0&&G!=="+"&&(qe=!1),se=(qe?G==="("?G:C:G==="-"||G==="("?"":G)+se,Ae=(wt==="s"?Yc[8+ws/3]:"")+Ae+(qe&&G==="("?")":""),$t){for(Et=-1,Ut=qt.length;++Et<Ut;)if(48>(Kt=qt.charCodeAt(Et))||Kt>57){Ae=(Kt===46?v+qt.slice(Et+1):qt.slice(Et))+Ae,qt=qt.slice(0,Et);break}}}lt&&!Z&&(qt=u(qt,1/0));var Xe=se.length+qt.length+Ae.length,yn=Xe<pt?new Array(pt-Xe+1).join($):"";switch(lt&&Z&&(qt=u(yn+qt,yn.length?pt-Ae.length:1/0),yn=""),it){case"<":qt=se+qt+Ae+yn;break;case"=":qt=se+yn+qt+Ae;break;case"^":qt=yn.slice(0,Xe=yn.length>>1)+se+qt+Ae+yn.slice(Xe);break;default:qt=yn+se+qt+Ae}return x(qt)}return ut=ut===void 0?6:/[gprs]/.test(wt)?Math.max(1,Math.min(21,ut)):Math.max(0,Math.min(20,ut)),Ht.toString=function(){return P+""},Ht}return{format:j,formatPrefix:function(P,$){var it=j(((P=Eo(P)).type="f",P)),G=3*Math.max(-8,Math.min(8,Math.floor(Ti($)/3))),V=Math.pow(10,-G),Z=Yc[8+G/3];return function(pt){return it(V*pt)+Z}}}}function hh(i){return jl=o0(i),$l=jl.format,uh=jl.formatPrefix,jl}function Hl(i){return Math.max(0,-Ti(Math.abs(i)))}function fh(i,a){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ti(a)/3)))-Ti(Math.abs(i)))}function dh(i,a){return i=Math.abs(i),a=Math.abs(a)-i,Math.max(0,Ti(a)-Ti(i))+1}hh({thousands:",",grouping:[3],currency:["$",""]});var Jn=1e-6,Qs=1e-12,rr=Math.PI,jr=rr/2,jc=rr/4,oa=2*rr,Xn=180/rr,$n=rr/180,dr=Math.abs,xi=Math.atan,Di=Math.atan2,l=Math.cos,o=Math.ceil,y=Math.exp,w=Math.hypot,A=Math.log,L=Math.pow,I=Math.sin,O=Math.sign||function(i){return i>0?1:i<0?-1:0},F=Math.sqrt,Y=Math.tan;function X(i){return i>1?0:i<-1?rr:Math.acos(i)}function et(i){return i>1?jr:i<-1?-jr:Math.asin(i)}function ht(i){return(i=I(i/2))*i}function ot(){}function It(i,a){i&&Yt.hasOwnProperty(i.type)&&Yt[i.type](i,a)}var Nt={Feature:function(i,a){It(i.geometry,a)},FeatureCollection:function(i,a){for(var s=i.features,u=-1,p=s.length;++u<p;)It(s[u].geometry,a)}},Yt={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 s=i.coordinates,u=-1,p=s.length;++u<p;)i=s[u],a.point(i[0],i[1],i[2])},LineString:function(i,a){jt(i.coordinates,a,0)},MultiLineString:function(i,a){for(var s=i.coordinates,u=-1,p=s.length;++u<p;)jt(s[u],a,0)},Polygon:function(i,a){Mt(i.coordinates,a)},MultiPolygon:function(i,a){for(var s=i.coordinates,u=-1,p=s.length;++u<p;)Mt(s[u],a)},GeometryCollection:function(i,a){for(var s=i.geometries,u=-1,p=s.length;++u<p;)It(s[u],a)}};function jt(i,a,s){var u,p=-1,g=i.length-s;for(a.lineStart();++p<g;)u=i[p],a.point(u[0],u[1],u[2]);a.lineEnd()}function Mt(i,a){var s=-1,u=i.length;for(a.polygonStart();++s<u;)jt(i[s],a,1);a.polygonEnd()}function Ft(i,a){i&&Nt.hasOwnProperty(i.type)?Nt[i.type](i,a):It(i,a)}var Ot,te,Oe,ke,ve,Pt,le,Vt,ae,ee,fe,Be,Fe,Ye,pn,Ue,ln=new bt,gn=new bt,je={point:ot,lineStart:ot,lineEnd:ot,polygonStart:function(){ln=new bt,je.lineStart=Ge,je.lineEnd=bn},polygonEnd:function(){var i=+ln;gn.add(i<0?oa+i:i),this.lineStart=this.lineEnd=this.point=ot},sphere:function(){gn.add(oa)}};function Ge(){je.point=_r}function bn(){vr(Ot,te)}function _r(i,a){je.point=vr,Ot=i,te=a,Oe=i*=$n,ke=l(a=(a*=$n)/2+jc),ve=I(a)}function vr(i,a){var s=(i*=$n)-Oe,u=s>=0?1:-1,p=u*s,g=l(a=(a*=$n)/2+jc),v=I(a),x=ve*v,T=ke*g+x*l(p),C=x*u*I(p);ln.add(Di(C,T)),Oe=i,ke=g,ve=v}function ui(i){return gn=new bt,Ft(i,je),2*gn}function mr(i){return[Di(i[1],i[0]),et(i[2])]}function hi(i){var a=i[0],s=i[1],u=l(s);return[u*l(a),u*I(a),I(s)]}function pr(i,a){return i[0]*a[0]+i[1]*a[1]+i[2]*a[2]}function fa(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 wa(i,a){i[0]+=a[0],i[1]+=a[1],i[2]+=a[2]}function fi(i,a){return[i[0]*a,i[1]*a,i[2]*a]}function Fr(i){var a=F(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]);i[0]/=a,i[1]/=a,i[2]/=a}var Ea,Ta,Xo,Ko,sa,Jo,$c,Hc,ql,Wl,Gl,T2,S2,Sa,Aa,Ca,Es={point:$f,lineStart:C2,lineEnd:I2,polygonStart:function(){Es.point=N2,Es.lineStart=Lm,Es.lineEnd=Mm,Ye=new bt,je.polygonStart()},polygonEnd:function(){je.polygonEnd(),Es.point=$f,Es.lineStart=C2,Es.lineEnd=I2,ln<0?(Pt=-(Vt=180),le=-(ae=90)):Ye>Jn?ae=90:Ye<-1e-6&&(le=-90),Ue[0]=Pt,Ue[1]=Vt},sphere:function(){Pt=-(Vt=180),le=-(ae=90)}};function $f(i,a){pn.push(Ue=[Pt=i,Vt=i]),a<le&&(le=a),a>ae&&(ae=a)}function A2(i,a){var s=hi([i*$n,a*$n]);if(Fe){var u=fa(Fe,s),p=fa([u[1],-u[0],0],u);Fr(p),p=mr(p);var g,v=i-ee,x=v>0?1:-1,T=p[0]*Xn*x,C=dr(v)>180;C^(x*ee<T&&T<x*i)?(g=p[1]*Xn)>ae&&(ae=g):C^(x*ee<(T=(T+360)%360-180)&&T<x*i)?(g=-p[1]*Xn)<le&&(le=g):(a<le&&(le=a),a>ae&&(ae=a)),C?i<ee?Xa(Pt,i)>Xa(Pt,Vt)&&(Vt=i):Xa(i,Vt)>Xa(Pt,Vt)&&(Pt=i):Vt>=Pt?(i<Pt&&(Pt=i),i>Vt&&(Vt=i)):i>ee?Xa(Pt,i)>Xa(Pt,Vt)&&(Vt=i):Xa(i,Vt)>Xa(Pt,Vt)&&(Pt=i)}else pn.push(Ue=[Pt=i,Vt=i]);a<le&&(le=a),a>ae&&(ae=a),Fe=s,ee=i}function C2(){Es.point=A2}function I2(){Ue[0]=Pt,Ue[1]=Vt,Es.point=$f,Fe=null}function N2(i,a){if(Fe){var s=i-ee;Ye.add(dr(s)>180?s+(s>0?360:-360):s)}else fe=i,Be=a;je.point(i,a),A2(i,a)}function Lm(){je.lineStart()}function Mm(){N2(fe,Be),je.lineEnd(),dr(Ye)>Jn&&(Pt=-(Vt=180)),Ue[0]=Pt,Ue[1]=Vt,Fe=null}function Xa(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,s,u,p,g,v,x;if(ae=Vt=-(Pt=le=1/0),pn=[],Ft(i,Es),s=pn.length){for(pn.sort(Om),a=1,g=[u=pn[0]];a<s;++a)L2(u,(p=pn[a])[0])||L2(u,p[1])?(Xa(u[0],p[1])>Xa(u[0],u[1])&&(u[1]=p[1]),Xa(p[0],u[1])>Xa(u[0],u[1])&&(u[0]=p[0])):g.push(u=p);for(v=-1/0,a=0,u=g[s=g.length-1];a<=s;u=p,++a)p=g[a],(x=Xa(u[1],p[0]))>v&&(v=x,Pt=p[0],Vt=u[1])}return pn=Ue=null,Pt===1/0||le===1/0?[[NaN,NaN],[NaN,NaN]]:[[Pt,le],[Vt,ae]]}var To={sphere:ot,point:Hf,lineStart:M2,lineEnd:O2,polygonStart:function(){To.lineStart=Fm,To.lineEnd=Pm},polygonEnd:function(){To.lineStart=M2,To.lineEnd=O2}};function Hf(i,a){i*=$n;var s=l(a*=$n);ph(s*l(i),s*I(i),I(a))}function ph(i,a,s){++Ea,Xo+=(i-Xo)/Ea,Ko+=(a-Ko)/Ea,sa+=(s-sa)/Ea}function M2(){To.point=Bm}function Bm(i,a){i*=$n;var s=l(a*=$n);Sa=s*l(i),Aa=s*I(i),Ca=I(a),To.point=Rm,ph(Sa,Aa,Ca)}function Rm(i,a){i*=$n;var s=l(a*=$n),u=s*l(i),p=s*I(i),g=I(a),v=Di(F((v=Aa*g-Ca*p)*v+(v=Ca*u-Sa*g)*v+(v=Sa*p-Aa*u)*v),Sa*u+Aa*p+Ca*g);Ta+=v,Jo+=v*(Sa+(Sa=u)),$c+=v*(Aa+(Aa=p)),Hc+=v*(Ca+(Ca=g)),ph(Sa,Aa,Ca)}function O2(){To.point=Hf}function Fm(){To.point=Um}function Pm(){D2(T2,S2),To.point=Hf}function Um(i,a){T2=i,S2=a,i*=$n,a*=$n,To.point=D2;var s=l(a);Sa=s*l(i),Aa=s*I(i),Ca=I(a),ph(Sa,Aa,Ca)}function D2(i,a){i*=$n;var s=l(a*=$n),u=s*l(i),p=s*I(i),g=I(a),v=Aa*g-Ca*p,x=Ca*u-Sa*g,T=Sa*p-Aa*u,C=w(v,x,T),D=et(C),j=C&&-D/C;ql.add(j*v),Wl.add(j*x),Gl.add(j*T),Ta+=D,Jo+=D*(Sa+(Sa=u)),$c+=D*(Aa+(Aa=p)),Hc+=D*(Ca+(Ca=g)),ph(Sa,Aa,Ca)}function zm(i){Ea=Ta=Xo=Ko=sa=Jo=$c=Hc=0,ql=new bt,Wl=new bt,Gl=new bt,Ft(i,To);var a=+ql,s=+Wl,u=+Gl,p=w(a,s,u);return p<Qs&&(a=Jo,s=$c,u=Hc,Ta<Jn&&(a=Xo,s=Ko,u=sa),(p=w(a,s,u))<Qs)?[NaN,NaN]:[Di(s,a)*Xn,et(u/p)*Xn]}function Vl(i){return function(){return i}}function qf(i,a){function s(u,p){return u=i(u,p),a(u[0],u[1])}return i.invert&&a.invert&&(s.invert=function(u,p){return(u=a.invert(u,p))&&i.invert(u[0],u[1])}),s}function Wf(i,a){return[dr(i)>rr?i+Math.round(-i/oa)*oa:i,a]}function Gf(i,a,s){return(i%=oa)?a||s?qf(R2(i),F2(a,s)):R2(i):a||s?F2(a,s):Wf}function B2(i){return function(a,s){return[(a+=i)>rr?a-oa:a<-rr?a+oa:a,s]}}function R2(i){var a=B2(i);return a.invert=B2(-i),a}function F2(i,a){var s=l(i),u=I(i),p=l(a),g=I(a);function v(x,T){var C=l(T),D=l(x)*C,j=I(x)*C,P=I(T),$=P*s+D*u;return[Di(j*p-$*g,D*s-P*u),et($*p+j*g)]}return v.invert=function(x,T){var C=l(T),D=l(x)*C,j=I(x)*C,P=I(T),$=P*p-j*g;return[Di(j*p+P*g,D*s+$*u),et($*s-D*u)]},v}function P2(i){function a(s){return(s=i(s[0]*$n,s[1]*$n))[0]*=Xn,s[1]*=Xn,s}return i=Gf(i[0]*$n,i[1]*$n,i.length>2?i[2]*$n:0),a.invert=function(s){return(s=i.invert(s[0]*$n,s[1]*$n))[0]*=Xn,s[1]*=Xn,s},a}function U2(i,a,s,u,p,g){if(s){var v=l(a),x=I(a),T=u*s;p==null?(p=a+u*oa,g=a-T/2):(p=z2(v,p),g=z2(v,g),(u>0?p<g:p>g)&&(p+=u*oa));for(var C,D=p;u>0?D>g:D<g;D-=T)C=mr([v,-x*l(D),-x*I(D)]),i.point(C[0],C[1])}}function z2(i,a){(a=hi(a))[0]-=i,Fr(a);var s=X(-a[1]);return((-a[2]<0?-s:s)+oa-Jn)%oa}function Ym(){var i,a,s=Vl([0,0]),u=Vl(90),p=Vl(6),g={point:function(x,T){i.push(x=a(x,T)),x[0]*=Xn,x[1]*=Xn}};function v(){var x=s.apply(this,arguments),T=u.apply(this,arguments)*$n,C=p.apply(this,arguments)*$n;return i=[],a=Gf(-x[0]*$n,-x[1]*$n,0).invert,U2(g,T,C,1),x={type:"Polygon",coordinates:[i]},i=a=null,x}return v.center=function(x){return arguments.length?(s=typeof x=="function"?x:Vl([+x[0],+x[1]]),v):s},v.radius=function(x){return arguments.length?(u=typeof x=="function"?x:Vl(+x),v):u},v.precision=function(x){return arguments.length?(p=typeof x=="function"?x:Vl(+x),v):p},v}function Y2(){var i,a=[];return{point:function(s,u,p){i.push([s,u,p])},lineStart:function(){a.push(i=[])},lineEnd:ot,rejoin:function(){a.length>1&&a.push(a.pop().concat(a.shift()))},result:function(){var s=a;return a=[],i=null,s}}}function s0(i,a){return dr(i[0]-a[0])<Jn&&dr(i[1]-a[1])<Jn}function c0(i,a,s,u){this.x=i,this.z=a,this.o=s,this.e=u,this.v=!1,this.n=this.p=null}function j2(i,a,s,u,p){var g,v,x=[],T=[];if(i.forEach(function(it){if(!((G=it.length-1)<=0)){var G,V,Z=it[0],pt=it[G];if(s0(Z,pt)){if(!Z[2]&&!pt[2]){for(p.lineStart(),g=0;g<G;++g)p.point((Z=it[g])[0],Z[1]);return void p.lineEnd()}pt[0]+=2e-6}x.push(V=new c0(Z,it,null,!0)),T.push(V.o=new c0(Z,null,V,!1)),x.push(V=new c0(pt,it,null,!1)),T.push(V.o=new c0(pt,null,V,!0))}}),x.length){for(T.sort(a),$2(x),$2(T),g=0,v=T.length;g<v;++g)T[g].e=s=!s;for(var C,D,j=x[0];;){for(var P=j,$=!0;P.v;)if((P=P.n)===j)return;C=P.z,p.lineStart();do{if(P.v=P.o.v=!0,P.e){if($)for(g=0,v=C.length;g<v;++g)p.point((D=C[g])[0],D[1]);else u(P.x,P.n.x,1,p);P=P.n}else{if($)for(C=P.p.z,g=C.length-1;g>=0;--g)p.point((D=C[g])[0],D[1]);else u(P.x,P.p.x,-1,p);P=P.p}C=(P=P.o).z,$=!$}while(!P.v);p.lineEnd()}}}function $2(i){if(a=i.length){for(var a,s,u=0,p=i[0];++u<a;)p.n=s=i[u],s.p=p,p=s;p.n=s=i[0],s.p=p}}function Vf(i){return dr(i[0])<=rr?i[0]:O(i[0])*((dr(i[0])+rr)%oa-rr)}function H2(i,a){var s=Vf(a),u=a[1],p=I(u),g=[I(s),-l(s),0],v=0,x=0,T=new bt;p===1?u=jr+Jn:p===-1&&(u=-jr-Jn);for(var C=0,D=i.length;C<D;++C)if(P=(j=i[C]).length)for(var j,P,$=j[P-1],it=Vf($),G=$[1]/2+jc,V=I(G),Z=l(G),pt=0;pt<P;++pt,it=ut,V=wt,Z=ne,$=lt){var lt=j[pt],ut=Vf(lt),vt=lt[1]/2+jc,wt=I(vt),ne=l(vt),ye=ut-it,Zt=ye>=0?1:-1,$t=Zt*ye,Ht=$t>rr,qt=V*wt;if(T.add(Di(qt*Zt*I($t),Z*ne+qt*l($t))),v+=Ht?ye+Zt*oa:ye,Ht^it>=s^ut>=s){var Et=fa(hi($),hi(lt));Fr(Et);var Ut=fa(g,Et);Fr(Ut);var Kt=(Ht^ye>=0?-1:1)*et(Ut[2]);(u>Kt||u===Kt&&(Et[0]||Et[1]))&&(x+=Ht^ye>=0?1:-1)}}return(v<-1e-6||v<Jn&&T<-1e-12)^1&x}function q2(i,a,s,u){return function(p){var g,v,x,T=a(p),C=Y2(),D=a(C),j=!1,P={point:$,lineStart:G,lineEnd:V,polygonStart:function(){P.point=Z,P.lineStart=pt,P.lineEnd=lt,v=[],g=[]},polygonEnd:function(){P.point=$,P.lineStart=G,P.lineEnd=V,v=He(v);var ut=H2(g,u);v.length?(j||(p.polygonStart(),j=!0),j2(v,$m,ut,s,p)):ut&&(j||(p.polygonStart(),j=!0),p.lineStart(),s(null,null,1,p),p.lineEnd()),j&&(p.polygonEnd(),j=!1),v=g=null},sphere:function(){p.polygonStart(),p.lineStart(),s(null,null,1,p),p.lineEnd(),p.polygonEnd()}};function $(ut,vt){i(ut,vt)&&p.point(ut,vt)}function it(ut,vt){T.point(ut,vt)}function G(){P.point=it,T.lineStart()}function V(){P.point=$,T.lineEnd()}function Z(ut,vt){x.push([ut,vt]),D.point(ut,vt)}function pt(){D.lineStart(),x=[]}function lt(){Z(x[0][0],x[0][1]),D.lineEnd();var ut,vt,wt,ne,ye=D.clean(),Zt=C.result(),$t=Zt.length;if(x.pop(),g.push(x),x=null,$t)if(1&ye){if((vt=(wt=Zt[0]).length-1)>0){for(j||(p.polygonStart(),j=!0),p.lineStart(),ut=0;ut<vt;++ut)p.point((ne=wt[ut])[0],ne[1]);p.lineEnd()}}else $t>1&&2&ye&&Zt.push(Zt.pop().concat(Zt.shift())),v.push(Zt.filter(jm))}return P}}function jm(i){return i.length>1}function $m(i,a){return((i=i.x)[0]<0?i[1]-jr-Jn:jr-i[1])-((a=a.x)[0]<0?a[1]-jr-Jn:jr-a[1])}Wf.invert=Wf;const Zf=q2(function(){return!0},function(i){var a,s=NaN,u=NaN,p=NaN;return{lineStart:function(){i.lineStart(),a=1},point:function(g,v){var x=g>0?rr:-rr,T=dr(g-s);dr(T-rr)<Jn?(i.point(s,u=(u+v)/2>0?jr:-jr),i.point(p,u),i.lineEnd(),i.lineStart(),i.point(x,u),i.point(g,u),a=0):p!==x&&T>=rr&&(dr(s-p)<Jn&&(s-=p*Jn),dr(g-x)<Jn&&(g-=x*Jn),u=function(C,D,j,P){var $,it,G=I(C-j);return dr(G)>Jn?xi((I(D)*(it=l(P))*I(j)-I(P)*($=l(D))*I(C))/($*it*G)):(D+P)/2}(s,u,g,v),i.point(p,u),i.lineEnd(),i.lineStart(),i.point(x,u),a=0),i.point(s=g,u=v),p=x},lineEnd:function(){i.lineEnd(),s=u=NaN},clean:function(){return 2-a}}},function(i,a,s,u){var p;if(i==null)p=s*jr,u.point(-rr,p),u.point(0,p),u.point(rr,p),u.point(rr,0),u.point(rr,-p),u.point(0,-p),u.point(-rr,-p),u.point(-rr,0),u.point(-rr,p);else if(dr(i[0]-a[0])>Jn){var g=i[0]<a[0]?rr:-rr;p=s*g/2,u.point(-g,p),u.point(0,p),u.point(g,p)}else u.point(a[0],a[1])},[-rr,-jr]);function W2(i){var a=l(i),s=6*$n,u=a>0,p=dr(a)>Jn;function g(T,C){return l(T)*l(C)>a}function v(T,C,D){var j=[1,0,0],P=fa(hi(T),hi(C)),$=pr(P,P),it=P[0],G=$-it*it;if(!G)return!D&&T;var V=a*$/G,Z=-a*it/G,pt=fa(j,P),lt=fi(j,V);wa(lt,fi(P,Z));var ut=pt,vt=pr(lt,ut),wt=pr(ut,ut),ne=vt*vt-wt*(pr(lt,lt)-1);if(!(ne<0)){var ye=F(ne),Zt=fi(ut,(-vt-ye)/wt);if(wa(Zt,lt),Zt=mr(Zt),!D)return Zt;var $t,Ht=T[0],qt=C[0],Et=T[1],Ut=C[1];qt<Ht&&($t=Ht,Ht=qt,qt=$t);var Kt=qt-Ht,se=dr(Kt-rr)<Jn;if(!se&&Ut<Et&&($t=Et,Et=Ut,Ut=$t),se||Kt<Jn?se?Et+Ut>0^Zt[1]<(dr(Zt[0]-Ht)<Jn?Et:Ut):Et<=Zt[1]&&Zt[1]<=Ut:Kt>rr^(Ht<=Zt[0]&&Zt[0]<=qt)){var Ae=fi(ut,(-vt+ye)/wt);return wa(Ae,lt),[Zt,mr(Ae)]}}}function x(T,C){var D=u?i:rr-i,j=0;return T<-D?j|=1:T>D&&(j|=2),C<-D?j|=4:C>D&&(j|=8),j}return q2(g,function(T){var C,D,j,P,$;return{lineStart:function(){P=j=!1,$=1},point:function(it,G){var V,Z=[it,G],pt=g(it,G),lt=u?pt?0:x(it,G):pt?x(it+(it<0?rr:-rr),G):0;if(!C&&(P=j=pt)&&T.lineStart(),pt!==j&&(!(V=v(C,Z))||s0(C,V)||s0(Z,V))&&(Z[2]=1),pt!==j)$=0,pt?(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^pt){var ut;lt&D||!(ut=v(Z,C,!0))||($=0,u?(T.lineStart(),T.point(ut[0][0],ut[0][1]),T.point(ut[1][0],ut[1][1]),T.lineEnd()):(T.point(ut[1][0],ut[1][1]),T.lineEnd(),T.lineStart(),T.point(ut[0][0],ut[0][1],3)))}!pt||C&&s0(C,Z)||T.point(Z[0],Z[1]),C=Z,j=pt,D=lt},lineEnd:function(){j&&T.lineEnd(),C=null},clean:function(){return $|(P&&j)<<1}}},function(T,C,D,j){U2(j,i,s,D,T,C)},u?[0,-i]:[-rr,i-rr])}var Xf,Kf,l0,u0,gh=1e9,h0=-gh;function f0(i,a,s,u){function p(C,D){return i<=C&&C<=s&&a<=D&&D<=u}function g(C,D,j,P){var $=0,it=0;if(C==null||($=v(C,j))!==(it=v(D,j))||T(C,D)<0^j>0)do P.point($===0||$===3?i:s,$>1?u:a);while(($=($+j+4)%4)!==it);else P.point(D[0],D[1])}function v(C,D){return dr(C[0]-i)<Jn?D>0?0:3:dr(C[0]-s)<Jn?D>0?2:1:dr(C[1]-a)<Jn?D>0?1:0:D>0?3:2}function x(C,D){return T(C.x,D.x)}function T(C,D){var j=v(C,1),P=v(D,1);return j!==P?j-P:j===0?D[1]-C[1]:j===1?C[0]-D[0]:j===2?C[1]-D[1]:D[0]-C[0]}return function(C){var D,j,P,$,it,G,V,Z,pt,lt,ut,vt=C,wt=Y2(),ne={point:ye,lineStart:function(){ne.point=Zt,j&&j.push(P=[]),lt=!0,pt=!1,V=Z=NaN},lineEnd:function(){D&&(Zt($,it),G&&pt&&wt.rejoin(),D.push(wt.result())),ne.point=ye,pt&&vt.lineEnd()},polygonStart:function(){vt=wt,D=[],j=[],ut=!0},polygonEnd:function(){var $t=function(){for(var Et=0,Ut=0,Kt=j.length;Ut<Kt;++Ut)for(var se,Ae,qe=j[Ut],Xe=1,yn=qe.length,Ke=qe[0],Hn=Ke[0],Wn=Ke[1];Xe<yn;++Xe)se=Hn,Ae=Wn,Hn=(Ke=qe[Xe])[0],Wn=Ke[1],Ae<=u?Wn>u&&(Hn-se)*(u-Ae)>(Wn-Ae)*(i-se)&&++Et:Wn<=u&&(Hn-se)*(u-Ae)<(Wn-Ae)*(i-se)&&--Et;return Et}(),Ht=ut&&$t,qt=(D=He(D)).length;(Ht||qt)&&(C.polygonStart(),Ht&&(C.lineStart(),g(null,null,1,C),C.lineEnd()),qt&&j2(D,x,$t,g,C),C.polygonEnd()),vt=C,D=j=P=null}};function ye($t,Ht){p($t,Ht)&&vt.point($t,Ht)}function Zt($t,Ht){var qt=p($t,Ht);if(j&&P.push([$t,Ht]),lt)$=$t,it=Ht,G=qt,lt=!1,qt&&(vt.lineStart(),vt.point($t,Ht));else if(qt&&pt)vt.point($t,Ht);else{var Et=[V=Math.max(h0,Math.min(gh,V)),Z=Math.max(h0,Math.min(gh,Z))],Ut=[$t=Math.max(h0,Math.min(gh,$t)),Ht=Math.max(h0,Math.min(gh,Ht))];(function(Kt,se,Ae,qe,Xe,yn){var Ke,Hn=Kt[0],Wn=Kt[1],Mn=0,Fn=1,Sr=se[0]-Hn,cr=se[1]-Wn;if(Ke=Ae-Hn,Sr||!(Ke>0)){if(Ke/=Sr,Sr<0){if(Ke<Mn)return;Ke<Fn&&(Fn=Ke)}else if(Sr>0){if(Ke>Fn)return;Ke>Mn&&(Mn=Ke)}if(Ke=Xe-Hn,Sr||!(Ke<0)){if(Ke/=Sr,Sr<0){if(Ke>Fn)return;Ke>Mn&&(Mn=Ke)}else if(Sr>0){if(Ke<Mn)return;Ke<Fn&&(Fn=Ke)}if(Ke=qe-Wn,cr||!(Ke>0)){if(Ke/=cr,cr<0){if(Ke<Mn)return;Ke<Fn&&(Fn=Ke)}else if(cr>0){if(Ke>Fn)return;Ke>Mn&&(Mn=Ke)}if(Ke=yn-Wn,cr||!(Ke<0)){if(Ke/=cr,cr<0){if(Ke>Fn)return;Ke>Mn&&(Mn=Ke)}else if(cr>0){if(Ke<Mn)return;Ke<Fn&&(Fn=Ke)}return Mn>0&&(Kt[0]=Hn+Mn*Sr,Kt[1]=Wn+Mn*cr),Fn<1&&(se[0]=Hn+Fn*Sr,se[1]=Wn+Fn*cr),!0}}}}})(Et,Ut,i,a,s,u)?(pt||(vt.lineStart(),vt.point(Et[0],Et[1])),vt.point(Ut[0],Ut[1]),qt||vt.lineEnd(),ut=!1):qt&&(vt.lineStart(),vt.point($t,Ht),ut=!1)}V=$t,Z=Ht,pt=qt}return ne}}function Hm(){var i,a,s,u=0,p=0,g=960,v=500;return s={stream:function(x){return i&&a===x?i:i=f0(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,s):[[u,p],[g,v]]}}}var Zl={sphere:ot,point:ot,lineStart:function(){Zl.point=Wm,Zl.lineEnd=qm},lineEnd:ot,polygonStart:ot,polygonEnd:ot};function qm(){Zl.point=Zl.lineEnd=ot}function Wm(i,a){Kf=i*=$n,l0=I(a*=$n),u0=l(a),Zl.point=Gm}function Gm(i,a){i*=$n;var s=I(a*=$n),u=l(a),p=dr(i-Kf),g=l(p),v=u*I(p),x=u0*s-l0*u*g,T=l0*s+u0*u*g;Xf.add(Di(F(v*v+x*x),T)),Kf=i,l0=s,u0=u}function G2(i){return Xf=new bt,Ft(i,Zl),+Xf}var Jf=[null,null],Vm={type:"LineString",coordinates:Jf};function d0(i,a){return Jf[0]=i,Jf[1]=a,G2(Vm)}var V2={Feature:function(i,a){return p0(i.geometry,a)},FeatureCollection:function(i,a){for(var s=i.features,u=-1,p=s.length;++u<p;)if(p0(s[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 s=i.coordinates,u=-1,p=s.length;++u<p;)if(X2(s[u],a))return!0;return!1},LineString:function(i,a){return K2(i.coordinates,a)},MultiLineString:function(i,a){for(var s=i.coordinates,u=-1,p=s.length;++u<p;)if(K2(s[u],a))return!0;return!1},Polygon:function(i,a){return J2(i.coordinates,a)},MultiPolygon:function(i,a){for(var s=i.coordinates,u=-1,p=s.length;++u<p;)if(J2(s[u],a))return!0;return!1},GeometryCollection:function(i,a){for(var s=i.geometries,u=-1,p=s.length;++u<p;)if(p0(s[u],a))return!0;return!1}};function p0(i,a){return!(!i||!Z2.hasOwnProperty(i.type))&&Z2[i.type](i,a)}function X2(i,a){return d0(i,a)===0}function K2(i,a){for(var s,u,p,g=0,v=i.length;g<v;g++){if((u=d0(i[g],a))===0||g>0&&(p=d0(i[g],i[g-1]))>0&&s<=p&&u<=p&&(s+u-p)*(1-Math.pow((s-u)/p,2))<Qs*p)return!0;s=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]*$n,i[1]*$n]}function Xm(i,a){return(i&&V2.hasOwnProperty(i.type)?V2[i.type]:p0)(i,a)}function tp(i,a,s){var u=Ne(i,a-Jn,s).concat(a);return function(p){return u.map(function(g){return[p,g]})}}function ep(i,a,s){var u=Ne(i,a-Jn,s).concat(a);return function(p){return u.map(function(g){return[g,p]})}}function np(){var i,a,s,u,p,g,v,x,T,C,D,j,P=10,$=P,it=90,G=360,V=2.5;function Z(){return{type:"MultiLineString",coordinates:pt()}}function pt(){return Ne(o(u/it)*it,s,it).map(D).concat(Ne(o(x/G)*G,v,G).map(j)).concat(Ne(o(a/P)*P,i,P).filter(function(lt){return dr(lt%it)>Jn}).map(T)).concat(Ne(o(g/$)*$,p,$).filter(function(lt){return dr(lt%G)>Jn}).map(C))}return Z.lines=function(){return pt().map(function(lt){return{type:"LineString",coordinates:lt}})},Z.outline=function(){return{type:"Polygon",coordinates:[D(u).concat(j(v).slice(1),D(s).reverse().slice(1),j(x).reverse().slice(1))]}},Z.extent=function(lt){return arguments.length?Z.extentMajor(lt).extentMinor(lt):Z.extentMinor()},Z.extentMajor=function(lt){return arguments.length?(u=+lt[0][0],s=+lt[1][0],x=+lt[0][1],v=+lt[1][1],u>s&&(lt=u,u=s,s=lt),x>v&&(lt=x,x=v,v=lt),Z.precision(V)):[[u,x],[s,v]]},Z.extentMinor=function(lt){return arguments.length?(a=+lt[0][0],i=+lt[1][0],g=+lt[0][1],p=+lt[1][1],a>i&&(lt=a,a=i,i=lt),g>p&&(lt=g,g=p,p=lt),Z.precision(V)):[[a,g],[i,p]]},Z.step=function(lt){return arguments.length?Z.stepMajor(lt).stepMinor(lt):Z.stepMinor()},Z.stepMajor=function(lt){return arguments.length?(it=+lt[0],G=+lt[1],Z):[it,G]},Z.stepMinor=function(lt){return arguments.length?(P=+lt[0],$=+lt[1],Z):[P,$]},Z.precision=function(lt){return arguments.length?(V=+lt,T=tp(g,p,90),C=ep(a,i,V),D=tp(x,v,90),j=ep(u,s,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 s=i[0]*$n,u=i[1]*$n,p=a[0]*$n,g=a[1]*$n,v=l(u),x=I(u),T=l(g),C=I(g),D=v*l(s),j=v*I(s),P=T*l(p),$=T*I(p),it=2*et(F(ht(g-u)+v*T*ht(p-s))),G=I(it),V=it?function(Z){var pt=I(Z*=it)/G,lt=I(it-Z)/G,ut=lt*D+pt*P,vt=lt*j+pt*$,wt=lt*x+pt*C;return[Di(vt,ut)*Xn,Di(wt,F(ut*ut+vt*vt))*Xn]}:function(){return[s*Xn,u*Xn]};return V.distance=it,V}const yh=i=>i;var rp,ip,Qf,td,ed=new bt,nd=new bt,tc={point:ot,lineStart:ot,lineEnd:ot,polygonStart:function(){tc.lineStart=Qm,tc.lineEnd=e_},polygonEnd:function(){tc.lineStart=tc.lineEnd=tc.point=ot,ed.add(dr(nd)),nd=new bt},result:function(){var i=ed/2;return ed=new bt,i}};function Qm(){tc.point=t_}function t_(i,a){tc.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=tc;var Xl=1/0,g0=Xl,mh=-Xl,y0=mh,n_={point:function(i,a){i<Xl&&(Xl=i),i>mh&&(mh=i),a<g0&&(g0=a),a>y0&&(y0=a)},lineStart:ot,lineEnd:ot,polygonStart:ot,polygonEnd:ot,result:function(){var i=[[Xl,g0],[mh,y0]];return mh=y0=-(g0=Xl=1/0),i}};const m0=n_;var sp,cp,Qo,ts,rd=0,id=0,_h=0,_0=0,b0=0,Kl=0,ad=0,od=0,bh=0,So={point:qc,lineStart:lp,lineEnd:up,polygonStart:function(){So.lineStart=a_,So.lineEnd=o_},polygonEnd:function(){So.point=qc,So.lineStart=lp,So.lineEnd=up},result:function(){var i=bh?[ad/bh,od/bh]:Kl?[_0/Kl,b0/Kl]:_h?[rd/_h,id/_h]:[NaN,NaN];return rd=id=_h=_0=b0=Kl=ad=od=bh=0,i}};function qc(i,a){rd+=i,id+=a,++_h}function lp(){So.point=r_}function r_(i,a){So.point=i_,qc(Qo=i,ts=a)}function i_(i,a){var s=i-Qo,u=a-ts,p=F(s*s+u*u);_0+=p*(Qo+i)/2,b0+=p*(ts+a)/2,Kl+=p,qc(Qo=i,ts=a)}function up(){So.point=qc}function a_(){So.point=s_}function o_(){hp(sp,cp)}function s_(i,a){So.point=hp,qc(sp=Qo=i,cp=ts=a)}function hp(i,a){var s=i-Qo,u=a-ts,p=F(s*s+u*u);_0+=p*(Qo+i)/2,b0+=p*(ts+a)/2,Kl+=p,ad+=(p=ts*i-Qo*a)*(Qo+i),od+=p*(ts+a),bh+=3*p,qc(Qo=i,ts=a)}const fp=So;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,oa)}},result:ot};var sd,pp,gp,vh,xh,cd=new bt,v0={point:ot,lineStart:function(){v0.point=c_},lineEnd:function(){sd&&yp(pp,gp),v0.point=ot},polygonStart:function(){sd=!0},polygonEnd:function(){sd=null},result:function(){var i=+cd;return cd=new bt,i}};function c_(i,a){v0.point=yp,pp=vh=i,gp=xh=a}function yp(i,a){vh-=i,xh-=a,cd.add(F(vh*vh+xh*xh)),vh=i,xh=a}const mp=v0;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 s,u,p=4.5;function g(v){return v&&(typeof p=="function"&&u.pointRadius(+p.apply(this,arguments)),Ft(v,s(u))),u.result()}return g.area=function(v){return Ft(v,s(op)),op.result()},g.measure=function(v){return Ft(v,s(mp)),mp.result()},g.bounds=function(v){return Ft(v,s(m0)),m0.result()},g.centroid=function(v){return Ft(v,s(fp)),fp.result()},g.projection=function(v){return arguments.length?(s=v==null?(i=null,yh):(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:kh(i)}}function kh(i){return function(a){var s=new ld;for(var u in i)s[u]=i[u];return s.stream=a,s}}function ld(){}function ud(i,a,s){var u=i.clipExtent&&i.clipExtent();return i.scale(150).translate([0,0]),u!=null&&i.clipExtent(null),Ft(s,i.stream(m0)),a(m0.result()),u!=null&&i.clipExtent(u),i}function x0(i,a,s){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])},s)}function hd(i,a,s){return x0(i,[[0,0],a],s)}function fd(i,a,s){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])},s)}function dd(i,a,s){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])},s)}_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_=l(30*$n);function vp(i,a){return+a?function(s,u){function p(g,v,x,T,C,D,j,P,$,it,G,V,Z,pt){var lt=j-g,ut=P-v,vt=lt*lt+ut*ut;if(vt>4*u&&Z--){var wt=T+it,ne=C+G,ye=D+V,Zt=F(wt*wt+ne*ne+ye*ye),$t=et(ye/=Zt),Ht=dr(dr(ye)-1)<Jn||dr(x-$)<Jn?(x+$)/2:Di(ne,wt),qt=s(Ht,$t),Et=qt[0],Ut=qt[1],Kt=Et-g,se=Ut-v,Ae=ut*Kt-lt*se;(Ae*Ae/vt>u||dr((lt*Kt+ut*se)/vt-.5)>.3||T*it+C*G+D*V<h_)&&(p(g,v,x,T,C,D,Et,Ut,Ht,wt/=Zt,ne/=Zt,ye,Z,pt),pt.point(Et,Ut),p(Et,Ut,Ht,wt,ne,ye,j,P,$,it,G,V,Z,pt))}}return function(g){var v,x,T,C,D,j,P,$,it,G,V,Z,pt={point:lt,lineStart:ut,lineEnd:wt,polygonStart:function(){g.polygonStart(),pt.lineStart=ne},polygonEnd:function(){g.polygonEnd(),pt.lineStart=ut}};function lt($t,Ht){$t=s($t,Ht),g.point($t[0],$t[1])}function ut(){$=NaN,pt.point=vt,g.lineStart()}function vt($t,Ht){var qt=hi([$t,Ht]),Et=s($t,Ht);p($,it,P,G,V,Z,$=Et[0],it=Et[1],P=$t,G=qt[0],V=qt[1],Z=qt[2],16,g),g.point($,it)}function wt(){pt.point=lt,g.lineEnd()}function ne(){ut(),pt.point=ye,pt.lineEnd=Zt}function ye($t,Ht){vt(v=$t,Ht),x=$,T=it,C=G,D=V,j=Z,pt.point=vt}function Zt(){p($,it,P,G,V,Z,x,T,v,C,D,j,16,g),pt.lineEnd=wt,wt()}return pt}}(i,a):function(s){return kh({point:function(u,p){u=s(u,p),this.stream.point(u[0],u[1])}})}(i)}var f_=kh({point:function(i,a){this.stream.point(i*$n,a*$n)}});function xp(i,a,s,u,p,g){if(!g)return function(G,V,Z,pt,lt){function ut(vt,wt){return[V+G*(vt*=pt),Z-G*(wt*=lt)]}return ut.invert=function(vt,wt){return[(vt-V)/G*pt,(Z-wt)/G*lt]},ut}(i,a,s,u,p);var v=l(g),x=I(g),T=v*i,C=x*i,D=v/i,j=x/i,P=(x*s-v*a)/i,$=(x*a+v*s)/i;function it(G,V){return[T*(G*=u)-C*(V*=p)+a,s-C*G-T*V]}return it.invert=function(G,V){return[u*(D*G-j*V+P),p*($-j*G-D*V)]},it}function es(i){return pd(function(){return i})()}function pd(i){var a,s,u,p,g,v,x,T,C,D,j=150,P=480,$=250,it=0,G=0,V=0,Z=0,pt=0,lt=0,ut=1,vt=1,wt=null,ne=Zf,ye=null,Zt=yh,$t=.5;function Ht(Kt){return T(Kt[0]*$n,Kt[1]*$n)}function qt(Kt){return(Kt=T.invert(Kt[0],Kt[1]))&&[Kt[0]*Xn,Kt[1]*Xn]}function Et(){var Kt=xp(j,0,0,ut,vt,lt).apply(null,a(it,G)),se=xp(j,P-Kt[0],$-Kt[1],ut,vt,lt);return s=Gf(V,Z,pt),x=qf(a,se),T=qf(s,x),v=vp(x,$t),Ut()}function Ut(){return C=D=null,Ht}return Ht.stream=function(Kt){return C&&D===Kt?C:C=f_(function(se){return kh({point:function(Ae,qe){var Xe=se(Ae,qe);return this.stream.point(Xe[0],Xe[1])}})}(s)(ne(v(Zt(D=Kt)))))},Ht.preclip=function(Kt){return arguments.length?(ne=Kt,wt=void 0,Ut()):ne},Ht.postclip=function(Kt){return arguments.length?(Zt=Kt,ye=u=p=g=null,Ut()):Zt},Ht.clipAngle=function(Kt){return arguments.length?(ne=+Kt?W2(wt=Kt*$n):(wt=null,Zf),Ut()):wt*Xn},Ht.clipExtent=function(Kt){return arguments.length?(Zt=Kt==null?(ye=u=p=g=null,yh):f0(ye=+Kt[0][0],u=+Kt[0][1],p=+Kt[1][0],g=+Kt[1][1]),Ut()):ye==null?null:[[ye,u],[p,g]]},Ht.scale=function(Kt){return arguments.length?(j=+Kt,Et()):j},Ht.translate=function(Kt){return arguments.length?(P=+Kt[0],$=+Kt[1],Et()):[P,$]},Ht.center=function(Kt){return arguments.length?(it=Kt[0]%360*$n,G=Kt[1]%360*$n,Et()):[it*Xn,G*Xn]},Ht.rotate=function(Kt){return arguments.length?(V=Kt[0]%360*$n,Z=Kt[1]%360*$n,pt=Kt.length>2?Kt[2]%360*$n:0,Et()):[V*Xn,Z*Xn,pt*Xn]},Ht.angle=function(Kt){return arguments.length?(lt=Kt%360*$n,Et()):lt*Xn},Ht.reflectX=function(Kt){return arguments.length?(ut=Kt?-1:1,Et()):ut<0},Ht.reflectY=function(Kt){return arguments.length?(vt=Kt?-1:1,Et()):vt<0},Ht.precision=function(Kt){return arguments.length?(v=vp(x,$t=Kt*Kt),Ut()):F($t)},Ht.fitExtent=function(Kt,se){return x0(Ht,Kt,se)},Ht.fitSize=function(Kt,se){return hd(Ht,Kt,se)},Ht.fitWidth=function(Kt,se){return fd(Ht,Kt,se)},Ht.fitHeight=function(Kt,se){return dd(Ht,Kt,se)},function(){return a=i.apply(this,arguments),Ht.invert=a.invert&&qt,Et()}}function gd(i){var a=0,s=rr/3,u=pd(i),p=u(a,s);return p.parallels=function(g){return arguments.length?u(a=g[0]*$n,s=g[1]*$n):[a*Xn,s*Xn]},p}function kp(i,a){var s=I(i),u=(s+I(a))/2;if(dr(u)<Jn)return function(x){var T=l(x);function C(D,j){return[D*T,I(j)/T]}return C.invert=function(D,j){return[D/T,et(j*T)]},C}(i);var p=1+s*(2*u-s),g=F(p)/u;function v(x,T){var C=F(p-2*u*I(T))/u;return[C*I(x*=u),g-C*l(x)]}return v.invert=function(x,T){var C=g-T,D=Di(x,dr(C))*O(C);return C*u<0&&(D-=rr*O(x)*O(C)),[D/u,et((p-(x*x+C*C)*u*u)/(2*u))]},v}function k0(){return gd(kp).scale(155.424).center([0,33.6442])}function wp(){return k0().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function d_(){var i,a,s,u,p,g,v=wp(),x=k0().rotate([154,0]).center([-2,58.5]).parallels([55,65]),T=k0().rotate([157,0]).center([-3,19.9]).parallels([8,18]),C={point:function(P,$){g=[P,$]}};function D(P){var $=P[0],it=P[1];return g=null,s.point($,it),g||(u.point($,it),g)||(p.point($,it),g)}function j(){return i=a=null,D}return D.invert=function(P){var $=v.scale(),it=v.translate(),G=(P[0]-it[0])/$,V=(P[1]-it[1])/$;return(V>=.12&&V<.234&&G>=-.425&&G<-.214?x:V>=.166&&V<.234&&G>=-.214&&G<-.115?T:v).invert(P)},D.stream=function(P){return i&&a===P?i:($=[v.stream(a=P),x.stream(P),T.stream(P)],it=$.length,i={point:function(G,V){for(var Z=-1;++Z<it;)$[Z].point(G,V)},sphere:function(){for(var G=-1;++G<it;)$[G].sphere()},lineStart:function(){for(var G=-1;++G<it;)$[G].lineStart()},lineEnd:function(){for(var G=-1;++G<it;)$[G].lineEnd()},polygonStart:function(){for(var G=-1;++G<it;)$[G].polygonStart()},polygonEnd:function(){for(var G=-1;++G<it;)$[G].polygonEnd()}});var $,it},D.precision=function(P){return arguments.length?(v.precision(P),x.precision(P),T.precision(P),j()):v.precision()},D.scale=function(P){return arguments.length?(v.scale(P),x.scale(.35*P),T.scale(P),D.translate(v.translate())):v.scale()},D.translate=function(P){if(!arguments.length)return v.translate();var $=v.scale(),it=+P[0],G=+P[1];return s=v.translate(P).clipExtent([[it-.455*$,G-.238*$],[it+.455*$,G+.238*$]]).stream(C),u=x.translate([it-.307*$,G+.201*$]).clipExtent([[it-.425*$+Jn,G+.12*$+Jn],[it-.214*$-Jn,G+.234*$-Jn]]).stream(C),p=T.translate([it-.205*$,G+.212*$]).clipExtent([[it-.214*$+Jn,G+.166*$+Jn],[it-.115*$-Jn,G+.234*$-Jn]]).stream(C),j()},D.fitExtent=function(P,$){return x0(D,P,$)},D.fitSize=function(P,$){return hd(D,P,$)},D.fitWidth=function(P,$){return fd(D,P,$)},D.fitHeight=function(P,$){return dd(D,P,$)},D.scale(1070)}function Ep(i){return function(a,s){var u=l(a),p=l(s),g=i(u*p);return g===1/0?[2,0]:[g*p*I(a),g*I(s)]}}function wh(i){return function(a,s){var u=F(a*a+s*s),p=i(u),g=I(p),v=l(p);return[Di(a*g,u*v),et(u&&s*g/u)]}}var yd=Ep(function(i){return F(2/(1+i))});function p_(){return es(yd).scale(124.75).clipAngle(179.999)}yd.invert=wh(function(i){return 2*et(i/2)});var md=Ep(function(i){return(i=X(i))&&i/I(i)});function g_(){return es(md).scale(79.4188).clipAngle(179.999)}function Eh(i,a){return[i,A(Y((jr+a)/2))]}function y_(){return Tp(Eh).scale(961/oa)}function Tp(i){var a,s,u,p=es(i),g=p.center,v=p.scale,x=p.translate,T=p.clipExtent,C=null;function D(){var j=rr*v(),P=p(P2(p.rotate()).invert([0,0]));return T(C==null?[[P[0]-j,P[1]-j],[P[0]+j,P[1]+j]]:i===Eh?[[Math.max(P[0]-j,C),a],[Math.min(P[0]+j,s),u]]:[[C,Math.max(P[1]-j,a)],[s,Math.min(P[1]+j,u)]])}return p.scale=function(j){return arguments.length?(v(j),D()):v()},p.translate=function(j){return arguments.length?(x(j),D()):x()},p.center=function(j){return arguments.length?(g(j),D()):g()},p.clipExtent=function(j){return arguments.length?(j==null?C=a=s=u=null:(C=+j[0][0],a=+j[0][1],s=+j[1][0],u=+j[1][1]),D()):C==null?null:[[C,a],[s,u]]},D()}function w0(i){return Y((jr+i)/2)}function Sp(i,a){var s=l(i),u=i===a?I(i):A(s/l(a))/A(w0(a)/w0(i)),p=s*L(w0(i),u)/u;if(!u)return Eh;function g(v,x){p>0?x<-jr+Jn&&(x=-jr+Jn):x>jr-Jn&&(x=jr-Jn);var T=p/L(w0(x),u);return[T*I(u*v),p-T*l(u*v)]}return g.invert=function(v,x){var T=p-x,C=O(u)*F(v*v+T*T),D=Di(v,dr(T))*O(T);return T*u<0&&(D-=rr*O(v)*O(T)),[D/u,2*xi(L(p/C,1/u))-jr]},g}function m_(){return gd(Sp).scale(109.5).parallels([30,30])}function Th(i,a){return[i,a]}function __(){return es(Th).scale(152.63)}function Ap(i,a){var s=l(i),u=i===a?I(i):(s-l(a))/(a-i),p=s/u+i;if(dr(u)<Jn)return Th;function g(v,x){var T=p-x,C=u*v;return[T*I(C),p-T*l(C)]}return g.invert=function(v,x){var T=p-x,C=Di(v,dr(T))*O(T);return T*u<0&&(C-=rr*O(v)*O(T)),[C/u,p-O(u)*F(v*v+T*T)]},g}function b_(){return gd(Ap).scale(131.154).center([0,13.9389])}md.invert=wh(function(i){return i}),Eh.invert=function(i,a){return[i,2*xi(y(a))-jr]},Th.invert=Th;var Sh=1.340264,Ah=-.081106,Ch=893e-6,Ih=.003796,E0=F(3)/2;function _d(i,a){var s=et(E0*I(a)),u=s*s,p=u*u*u;return[i*l(s)/(E0*(Sh+3*Ah*u+p*(7*Ch+9*Ih*u))),s*(Sh+Ah*u+p*(Ch+Ih*u))]}function v_(){return es(_d).scale(177.158)}function bd(i,a){var s=l(a),u=l(i)*s;return[s*I(i)/u,I(a)/u]}function x_(){return es(bd).scale(144.049).clipAngle(60)}function k_(){var i,a,s,u,p,g,v,x=1,T=0,C=0,D=1,j=1,P=0,$=null,it=1,G=1,V=kh({point:function(ut,vt){var wt=lt([ut,vt]);this.stream.point(wt[0],wt[1])}}),Z=yh;function pt(){return it=x*D,G=x*j,g=v=null,lt}function lt(ut){var vt=ut[0]*it,wt=ut[1]*G;if(P){var ne=wt*i-vt*a;vt=vt*i+wt*a,wt=ne}return[vt+T,wt+C]}return lt.invert=function(ut){var vt=ut[0]-T,wt=ut[1]-C;if(P){var ne=wt*i+vt*a;vt=vt*i-wt*a,wt=ne}return[vt/it,wt/G]},lt.stream=function(ut){return g&&v===ut?g:g=V(Z(v=ut))},lt.postclip=function(ut){return arguments.length?(Z=ut,$=s=u=p=null,pt()):Z},lt.clipExtent=function(ut){return arguments.length?(Z=ut==null?($=s=u=p=null,yh):f0($=+ut[0][0],s=+ut[0][1],u=+ut[1][0],p=+ut[1][1]),pt()):$==null?null:[[$,s],[u,p]]},lt.scale=function(ut){return arguments.length?(x=+ut,pt()):x},lt.translate=function(ut){return arguments.length?(T=+ut[0],C=+ut[1],pt()):[T,C]},lt.angle=function(ut){return arguments.length?(a=I(P=ut%360*$n),i=l(P),pt()):P*Xn},lt.reflectX=function(ut){return arguments.length?(D=ut?-1:1,pt()):D<0},lt.reflectY=function(ut){return arguments.length?(j=ut?-1:1,pt()):j<0},lt.fitExtent=function(ut,vt){return x0(lt,ut,vt)},lt.fitSize=function(ut,vt){return hd(lt,ut,vt)},lt.fitWidth=function(ut,vt){return fd(lt,ut,vt)},lt.fitHeight=function(ut,vt){return dd(lt,ut,vt)},lt}function vd(i,a){var s=a*a,u=s*s;return[i*(.8707-.131979*s+u*(u*(.003971*s-.001529*u)-.013791)),a*(1.007226+s*(.015085+u*(.028874*s-.044475-.005916*u)))]}function w_(){return es(vd).scale(175.295)}function xd(i,a){return[l(a)*I(i),I(a)]}function E_(){return es(xd).scale(249.5).clipAngle(90.000001)}function kd(i,a){var s=l(a),u=1+l(i)*s;return[s*I(i)/u,I(a)/u]}function T_(){return es(kd).scale(250).clipAngle(142)}function wd(i,a){return[A(Y((jr+a)/2)),-i]}function S_(){var i=Tp(wd),a=i.center,s=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?s([u[0],u[1],u.length>2?u[2]+90:90]):[(u=s())[0],u[1],u[2]-90]},s([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 I_(i,a){return Math.max(i,a.y)}function N_(){var i=A_,a=1,s=1,u=!1;function p(g){var v,x=0;g.eachAfter(function(P){var $=P.children;$?(P.x=function(it){return it.reduce(C_,0)/it.length}($),P.y=function(it){return 1+it.reduce(I_,0)}($)):(P.x=v?x+=i(P,v):0,P.y=0,v=P)});var T=function(P){for(var $;$=P.children;)P=$[0];return P}(g),C=function(P){for(var $;$=P.children;)P=$[$.length-1];return P}(g),D=T.x-i(T,C)/2,j=C.x+i(C,T)/2;return g.eachAfter(u?function(P){P.x=(P.x-g.x)*a,P.y=(g.y-P.y)*s}:function(P){P.x=(P.x-D)/(j-D)*a,P.y=(1-(g.y?P.y/g.y:1))*s})}return p.separation=function(g){return arguments.length?(i=g,p):i},p.size=function(g){return arguments.length?(u=!1,a=+g[0],s=+g[1],p):u?null:[a,s]},p.nodeSize=function(g){return arguments.length?(u=!0,a=+g[0],s=+g[1],p):u?[a,s]:null},p}function L_(i){var a=0,s=i.children,u=s&&s.length;if(u)for(;--u>=0;)a+=s[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 s,u,p,g,v,x=new Wc(i),T=[x];s=T.pop();)if((p=a(s.data))&&(v=(p=Array.from(p)).length))for(s.children=p,g=v-1;g>=0;--g)T.push(u=p[g]=new Wc(p[g])),u.parent=s,u.depth=s.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 Wc(i){this.data=i,this.depth=this.height=0,this.parent=null}function Ip(i){for(var a,s,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],s&&Np(s,a)?++u:(s=R_(g=B_(g,a)),u=0);return s}function B_(i,a){var s,u;if(Td(a,i))return[a];for(s=0;s<i.length;++s)if(T0(a,i[s])&&Td(Nh(i[s],a),i))return[i[s],a];for(s=0;s<i.length-1;++s)for(u=s+1;u<i.length;++u)if(T0(Nh(i[s],i[u]),a)&&T0(Nh(i[s],a),i[u])&&T0(Nh(i[u],a),i[s])&&Td(Lp(i[s],i[u],a),i))return[i[s],i[u],a];throw new Error}function T0(i,a){var s=i.r-a.r,u=a.x-i.x,p=a.y-i.y;return s<0||s*s<u*u+p*p}function Np(i,a){var s=i.r-a.r+1e-9*Math.max(i.r,a.r,1),u=a.x-i.x,p=a.y-i.y;return s>0&&s*s>u*u+p*p}function Td(i,a){for(var s=0;s<a.length;++s)if(!Np(i,a[s]))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 s=i.x,u=i.y,p=i.r,g=a.x,v=a.y,x=a.r,T=g-s,C=v-u,D=x-p,j=Math.sqrt(T*T+C*C);return{x:(s+g+T/j*D)/2,y:(u+v+C/j*D)/2,r:(j+p+x)/2}}function Lp(i,a,s){var u=i.x,p=i.y,g=i.r,v=a.x,x=a.y,T=a.r,C=s.x,D=s.y,j=s.r,P=u-v,$=u-C,it=p-x,G=p-D,V=T-g,Z=j-g,pt=u*u+p*p-g*g,lt=pt-v*v-x*x+T*T,ut=pt-C*C-D*D+j*j,vt=$*it-P*G,wt=(it*ut-G*lt)/(2*vt)-u,ne=(G*V-it*Z)/vt,ye=($*lt-P*ut)/(2*vt)-p,Zt=(P*Z-$*V)/vt,$t=ne*ne+Zt*Zt-1,Ht=2*(g+wt*ne+ye*Zt),qt=wt*wt+ye*ye-g*g,Et=-($t?(Ht+Math.sqrt(Ht*Ht-4*$t*qt))/(2*$t):qt/Ht);return{x:u+wt+ne*Et,y:p+ye+Zt*Et,r:Et}}function Mp(i,a,s){var u,p,g,v,x=i.x-a.x,T=i.y-a.y,C=x*x+T*T;C?(p=a.r+s.r,p*=p,v=i.r+s.r,p>(v*=v)?(u=(C+v-p)/(2*C),g=Math.sqrt(Math.max(0,v/C-u*u)),s.x=i.x-u*x-g*T,s.y=i.y-u*T+g*x):(u=(C+p-v)/(2*C),g=Math.sqrt(Math.max(0,p/C-u*u)),s.x=a.x+u*x-g*T,s.y=a.y+u*T+g*x)):(s.x=a.x+s.r,s.y=a.y)}function Op(i,a){var s=i.r+a.r-1e-6,u=a.x-i.x,p=a.y-i.y;return s>0&&s*s>u*u+p*p}function Dp(i){var a=i._,s=i.next._,u=a.r+s.r,p=(a.x*s.r+s.x*a.r)/u,g=(a.y*s.r+s.y*a.r)/u;return p*p+g*g}function S0(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,s,u,p,g,v,x,T,C,D,j,P;if((s=i[0]).x=0,s.y=0,!(g>1))return s.r;if(u=i[1],s.x=-u.r,u.x=s.r,u.y=0,!(g>2))return s.r+u.r;Mp(u,s,p=i[2]),s=new S0(s),u=new S0(u),p=new S0(p),s.next=p.previous=u,u.next=s.previous=p,p.next=u.previous=s;t:for(T=3;T<g;++T){Mp(s._,u._,p=i[T]),p=new S0(p),C=u.next,D=s.previous,j=u._.r,P=s._.r;do if(j<=P){if(Op(C._,p._)){u=C,s.next=u,u.previous=s,--T;continue t}j+=C._.r,C=C.next}else{if(Op(D._,p._)){(s=D).next=u,u.previous=s,--T;continue t}P+=D._.r,D=D.previous}while(C!==D.next);for(p.previous=s,p.next=u,s.next=u.previous=u=p,v=Dp(s);(p=p.next)!==u;)(x=Dp(p))<v&&(s=p,v=x);u=s.next}for(s=[u._],p=u;(p=p.next)!==u;)s.push(p._);for(p=Ip(s),T=0;T<g;++T)(s=i[T]).x-=p.x,s.y-=p.y;return p.r}function F_(i){return Bp(i),i}function A0(i){return i==null?null:Rp(i)}function Rp(i){if(typeof i!="function")throw new Error;return i}function Gc(){return 0}function Jl(i){return function(){return i}}function P_(i){return Math.sqrt(i.value)}function U_(){var i=null,a=1,s=1,u=Gc;function p(g){return g.x=a/2,g.y=s/2,i?g.eachBefore(Fp(i)).eachAfter(Sd(u,.5)).eachBefore(Pp(1)):g.eachBefore(Fp(P_)).eachAfter(Sd(Gc,1)).eachAfter(Sd(u,g.r/Math.min(a,s))).eachBefore(Pp(Math.min(a,s)/(2*g.r))),g}return p.radius=function(g){return arguments.length?(i=A0(g),p):i},p.size=function(g){return arguments.length?(a=+g[0],s=+g[1],p):[a,s]},p.padding=function(g){return arguments.length?(u=typeof g=="function"?g:Jl(+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(s){if(u=s.children){var u,p,g,v=u.length,x=i(s)*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;s.r=g+x}}}function Pp(i){return function(a){var s=a.parent;a.r*=i,s&&(a.x=s.x+i*a.x,a.y=s.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 Lh(i,a,s,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=s,g.y1=p,g.x0=a,g.x1=a+=g.value*C}function z_(){var i=1,a=1,s=0,u=!1;function p(g){var v=g.height+1;return g.x0=g.y0=s,g.x1=i,g.y1=a/v,g.eachBefore(function(x,T){return function(C){C.children&&Lh(C,C.x0,x*(C.depth+1)/T,C.x1,x*(C.depth+2)/T);var D=C.x0,j=C.y0,P=C.x1-s,$=C.y1-s;P<D&&(D=P=(D+P)/2),$<j&&(j=$=(j+$)/2),C.x0=D,C.y0=j,C.x1=P,C.y1=$}}(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?(s=+g,p):s},p}_d.invert=function(i,a){for(var s,u=a,p=u*u,g=p*p*p,v=0;v<12&&(g=(p=(u-=s=(u*(Sh+Ah*p+g*(Ch+Ih*p))-a)/(Sh+3*Ah*p+g*(7*Ch+9*Ih*p)))*u)*p*p,!(dr(s)<Qs));++v);return[E0*i*(Sh+3*Ah*p+g*(7*Ch+9*Ih*p))/l(u),et(I(u)/E0)]},bd.invert=wh(xi),vd.invert=function(i,a){var s,u=a,p=25;do{var g=u*u,v=g*g;u-=s=(u*(1.007226+g*(.015085+v*(.028874*g-.044475-.005916*v)))-a)/(1.007226+g*(.045255+v*(.259866*g-.311325-.005916*11*v)))}while(dr(s)>Jn&&--p>0);return[i/(.8707+(g=u*u)*(g*(g*g*g*(.003971-.001529*g)-.013791)-.131979)),u]},xd.invert=wh(et),kd.invert=wh(function(i){return 2*xi(i)}),wd.invert=function(i,a){return[-a,2*xi(y(i))-jr]},Wc.prototype=Ed.prototype={constructor:Wc,count:function(){return this.eachAfter(L_)},each:function(i,a){let s=-1;for(const u of this)i.call(a,u,++s,this);return this},eachAfter:function(i,a){for(var s,u,p,g=this,v=[g],x=[],T=-1;g=v.pop();)if(x.push(g),s=g.children)for(u=0,p=s.length;u<p;++u)v.push(s[u]);for(;g=x.pop();)i.call(a,g,++T,this);return this},eachBefore:function(i,a){for(var s,u,p=this,g=[p],v=-1;p=g.pop();)if(i.call(a,p,++v,this),s=p.children)for(u=s.length-1;u>=0;--u)g.push(s[u]);return this},find:function(i,a){let s=-1;for(const u of this)if(i.call(a,u,++s,this))return u},sum:function(i){return this.eachAfter(function(a){for(var s=+i(a.data)||0,u=a.children,p=u&&u.length;--p>=0;)s+=u[p].value;a.value=s})},sort:function(i){return this.eachBefore(function(a){a.children&&a.children.sort(i)})},path:function(i){for(var a=this,s=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!==s;)a=a.parent,u.push(a);for(var p=u.length;i!==s;)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(s){s!==i&&a.push({source:s.parent,target:s})}),a},copy:function(){return Ed(this).eachBefore(D_)},[Symbol.iterator]:function*(){var i,a,s,u,p=this,g=[p];do for(i=g.reverse(),g=[];p=i.pop();)if(yield p,a=p.children)for(s=0,u=a.length;s<u;++s)g.push(a[s]);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_,s=$_;function u(p){var g,v,x,T,C,D,j,P,$=Array.from(p),it=a,G=s,V=new Map;if(i!=null){const Z=$.map((ut,vt)=>function(wt){let ne=(wt=`${wt}`).length;return Cd(wt,ne-1)&&!Cd(wt,ne-2)&&(wt=wt.slice(0,-1)),wt[0]==="/"?wt:`/${wt}`}(i(ut,vt,p))),pt=Z.map(Yp),lt=new Set(Z).add("");for(const ut of pt)lt.has(ut)||(lt.add(ut),Z.push(ut),pt.push(Yp(ut)),$.push(Ad));it=(ut,vt)=>Z[vt],G=(ut,vt)=>pt[vt]}for(x=0,g=$.length;x<g;++x)v=$[x],D=$[x]=new Wc(v),(j=it(v,x,p))!=null&&(j+="")&&(P=D.id=j,V.set(P,V.has(P)?zp:D)),(j=G(v,x,p))!=null&&(j+="")&&(D.parent=j);for(x=0;x<g;++x)if(j=(D=$[x]).parent){if(!(C=V.get(j)))throw new Error("missing: "+j);if(C===zp)throw new Error("ambiguous: "+j);C.children?C.children.push(D):C.children=[D],D.parent=C}else{if(T)throw new Error("multiple roots");T=D}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=$.length-1;Z>=0&&(D=$[Z],D.data===Ad);--Z)D.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=A0(p),u):a},u.parentId=function(p){return arguments.length?(s=A0(p),u):s},u.path=function(p){return arguments.length?(i=A0(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 s=0;for(;a>0&&i[--a]==="\\";)++s;if((1&s)==0)return!0}return!1}function q_(i,a){return i.parent===a.parent?1:2}function Id(i){var a=i.children;return a?a[0]:i.t}function Nd(i){var a=i.children;return a?a[a.length-1]:i.t}function W_(i,a,s){var u=s/(a.i-i.i);a.c-=u,a.s+=s,i.c+=u,a.z+=s,a.m+=s}function G_(i,a,s){return i.a.parent===a.parent?i.a:s}function C0(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,s=1,u=null;function p(T){var C=function(Z){for(var pt,lt,ut,vt,wt,ne=new C0(Z,0),ye=[ne];pt=ye.pop();)if(ut=pt._.children)for(pt.children=new Array(wt=ut.length),vt=wt-1;vt>=0;--vt)ye.push(lt=pt.children[vt]=new C0(ut[vt],vt)),lt.parent=pt;return(ne.parent=new C0(null,0)).children=[ne],ne}(T);if(C.eachAfter(g),C.parent.m=-C.z,C.eachBefore(v),u)T.eachBefore(x);else{var D=T,j=T,P=T;T.eachBefore(function(Z){Z.x<D.x&&(D=Z),Z.x>j.x&&(j=Z),Z.depth>P.depth&&(P=Z)});var $=D===j?1:i(D,j)/2,it=$-D.x,G=a/(j.x+$+it),V=s/(P.depth||1);T.eachBefore(function(Z){Z.x=(Z.x+it)*G,Z.y=Z.depth*V})}return T}function g(T){var C=T.children,D=T.parent.children,j=T.i?D[T.i-1]:null;if(C){(function($){for(var it,G=0,V=0,Z=$.children,pt=Z.length;--pt>=0;)(it=Z[pt]).z+=G,it.m+=G,G+=it.s+(V+=it.c)})(T);var P=(C[0].z+C[C.length-1].z)/2;j?(T.z=j.z+i(T._,j._),T.m=T.z-P):T.z=P}else j&&(T.z=j.z+i(T._,j._));T.parent.A=function($,it,G){if(it){for(var V,Z=$,pt=$,lt=it,ut=Z.parent.children[0],vt=Z.m,wt=pt.m,ne=lt.m,ye=ut.m;lt=Nd(lt),Z=Id(Z),lt&&Z;)ut=Id(ut),(pt=Nd(pt)).a=$,(V=lt.z+ne-Z.z-vt+i(lt._,Z._))>0&&(W_(G_(lt,$,G),$,V),vt+=V,wt+=V),ne+=lt.m,vt+=Z.m,ye+=ut.m,wt+=pt.m;lt&&!Nd(pt)&&(pt.t=lt,pt.m+=ne-wt),Z&&!Id(ut)&&(ut.t=Z,ut.m+=vt-ye,G=$)}return G}(T,j,T.parent.A||D[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*s}return p.separation=function(T){return arguments.length?(i=T,p):i},p.size=function(T){return arguments.length?(u=!1,a=+T[0],s=+T[1],p):u?null:[a,s]},p.nodeSize=function(T){return arguments.length?(u=!0,a=+T[0],s=+T[1],p):u?[a,s]:null},p}function I0(i,a,s,u,p){for(var g,v=i.children,x=-1,T=v.length,C=i.value&&(p-s)/i.value;++x<T;)(g=v[x]).x0=a,g.x1=u,g.y0=s,g.y1=s+=g.value*C}C0.prototype=Object.create(Wc.prototype);var jp=(1+Math.sqrt(5))/2;function $p(i,a,s,u,p,g){for(var v,x,T,C,D,j,P,$,it,G,V,Z=[],pt=a.children,lt=0,ut=0,vt=pt.length,wt=a.value;lt<vt;){T=p-s,C=g-u;do D=pt[ut++].value;while(!D&&ut<vt);for(j=P=D,V=D*D*(G=Math.max(C/T,T/C)/(wt*i)),it=Math.max(P/V,V/j);ut<vt;++ut){if(D+=x=pt[ut].value,x<j&&(j=x),x>P&&(P=x),V=D*D*G,($=Math.max(P/V,V/j))>it){D-=x;break}it=$}Z.push(v={value:D,dice:T<C,children:pt.slice(lt,ut)}),v.dice?Lh(v,s,u,p,wt?u+=C*D/wt:g):I0(v,s,u,wt?s+=T*D/wt:p,g),wt-=D,lt=ut}return Z}const Hp=function i(a){function s(u,p,g,v,x){$p(a,u,p,g,v,x)}return s.ratio=function(u){return i((u=+u)>1?u:1)},s}(jp);function Z_(){var i=Hp,a=!1,s=1,u=1,p=[0],g=Gc,v=Gc,x=Gc,T=Gc,C=Gc;function D(P){return P.x0=P.y0=0,P.x1=s,P.y1=u,P.eachBefore(j),p=[0],a&&P.eachBefore(Up),P}function j(P){var $=p[P.depth],it=P.x0+$,G=P.y0+$,V=P.x1-$,Z=P.y1-$;V<it&&(it=V=(it+V)/2),Z<G&&(G=Z=(G+Z)/2),P.x0=it,P.y0=G,P.x1=V,P.y1=Z,P.children&&($=p[P.depth+1]=g(P)/2,it+=C(P)-$,G+=v(P)-$,(V-=x(P)-$)<it&&(it=V=(it+V)/2),(Z-=T(P)-$)<G&&(G=Z=(G+Z)/2),i(P,it,G,V,Z))}return D.round=function(P){return arguments.length?(a=!!P,D):a},D.size=function(P){return arguments.length?(s=+P[0],u=+P[1],D):[s,u]},D.tile=function(P){return arguments.length?(i=Rp(P),D):i},D.padding=function(P){return arguments.length?D.paddingInner(P).paddingOuter(P):D.paddingInner()},D.paddingInner=function(P){return arguments.length?(g=typeof P=="function"?P:Jl(+P),D):g},D.paddingOuter=function(P){return arguments.length?D.paddingTop(P).paddingRight(P).paddingBottom(P).paddingLeft(P):D.paddingTop()},D.paddingTop=function(P){return arguments.length?(v=typeof P=="function"?P:Jl(+P),D):v},D.paddingRight=function(P){return arguments.length?(x=typeof P=="function"?P:Jl(+P),D):x},D.paddingBottom=function(P){return arguments.length?(T=typeof P=="function"?P:Jl(+P),D):T},D.paddingLeft=function(P){return arguments.length?(C=typeof P=="function"?P:Jl(+P),D):C},D}function X_(i,a,s,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 D(j,P,$,it,G,V,Z){if(j>=P-1){var pt=x[j];return pt.x0=it,pt.y0=G,pt.x1=V,void(pt.y1=Z)}for(var lt=C[j],ut=$/2+lt,vt=j+1,wt=P-1;vt<wt;){var ne=vt+wt>>>1;C[ne]<ut?vt=ne+1:wt=ne}ut-C[vt-1]<C[vt]-ut&&j+1<vt&&--vt;var ye=C[vt]-lt,Zt=$-ye;if(V-it>Z-G){var $t=$?(it*Zt+V*ye)/$:V;D(j,vt,ye,it,G,$t,Z),D(vt,P,Zt,$t,G,V,Z)}else{var Ht=$?(G*Zt+Z*ye)/$:Z;D(j,vt,ye,it,G,V,Ht),D(vt,P,Zt,it,Ht,V,Z)}})(0,T,i.value,a,s,u,p)}function K_(i,a,s,u,p){(1&i.depth?I0:Lh)(i,a,s,u,p)}const J_=function i(a){function s(u,p,g,v,x){if((T=u._squarify)&&T.ratio===a)for(var T,C,D,j,P,$=-1,it=T.length,G=u.value;++$<it;){for(D=(C=T[$]).children,j=C.value=0,P=D.length;j<P;++j)C.value+=D[j].value;C.dice?Lh(C,p,g,v,G?g+=(x-g)*C.value/G:x):I0(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 s.ratio=function(u){return i((u=+u)>1?u:1)},s}(jp);function Q_(i){var a=i.length;return function(s){return i[Math.max(0,Math.min(a-1,Math.floor(s*a)))]}}function t3(i,a){var s=il(+i,+a);return function(u){var p=s(u);return p-360*Math.floor(p/360)}}function N0(i,a){return i=+i,a=+a,function(s){return Math.round(i*(1-s)+a*s)}}function qp(i){return((i=Math.exp(i))+1/i)/2}const Wp=function i(a,s,u){function p(g,v){var x,T,C=g[0],D=g[1],j=g[2],P=v[0],$=v[1],it=v[2],G=P-C,V=$-D,Z=G*G+V*V;if(Z<1e-12)T=Math.log(it/j)/a,x=function(ne){return[C+ne*G,D+ne*V,j*Math.exp(a*ne*T)]};else{var pt=Math.sqrt(Z),lt=(it*it-j*j+u*Z)/(2*j*s*pt),ut=(it*it-j*j-u*Z)/(2*it*s*pt),vt=Math.log(Math.sqrt(lt*lt+1)-lt),wt=Math.log(Math.sqrt(ut*ut+1)-ut);T=(wt-vt)/a,x=function(ne){var ye,Zt=ne*T,$t=qp(vt),Ht=j/(s*pt)*($t*(ye=a*Zt+vt,((ye=Math.exp(2*ye))-1)/(ye+1))-function(qt){return((qt=Math.exp(qt))-1/qt)/2}(vt));return[C+Ht*G,D+Ht*V,j*$t/qp(a*Zt+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,s){var u=i((a=Mo(a)).h,(s=Mo(s)).h),p=Ii(a.s,s.s),g=Ii(a.l,s.l),v=Ii(a.opacity,s.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(il);var n3=Gp(Ii);function r3(i,a){var s=Ii((i=Al(i)).l,(a=Al(a)).l),u=Ii(i.a,a.a),p=Ii(i.b,a.b),g=Ii(i.opacity,a.opacity);return function(v){return i.l=s(v),i.a=u(v),i.b=p(v),i.opacity=g(v),i+""}}function Vp(i){return function(a,s){var u=i((a=Pa(a)).h,(s=Pa(s)).h),p=Ii(a.c,s.c),g=Ii(a.l,s.l),v=Ii(a.opacity,s.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(il);var a3=Vp(Ii);function Zp(i){return function a(s){function u(p,g){var v=i((p=Tr(p)).h,(g=Tr(g)).h),x=Ii(p.s,g.s),T=Ii(p.l,g.l),C=Ii(p.opacity,g.opacity);return function(D){return p.h=v(D),p.s=x(D),p.l=T(Math.pow(D,s)),p.opacity=C(D),p+""}}return s=+s,u.gamma=a,u}(1)}const o3=Zp(il);var L0=Zp(Ii);function Xp(i,a){a===void 0&&(a=i,i=er);for(var s=0,u=a.length-1,p=a[0],g=new Array(u<0?0:u);s<u;)g[s]=i(p,p=a[++s]);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 s=new Array(a),u=0;u<a;++u)s[u]=i(u/(a-1));return s}function c3(i){for(var a,s=-1,u=i.length,p=i[u-1],g=0;++s<u;)a=p,p=i[s],g+=a[1]*p[0]-a[0]*p[1];return g/2}function l3(i){for(var a,s,u=-1,p=i.length,g=0,v=0,x=i[p-1],T=0;++u<p;)a=x,x=i[u],T+=s=a[0]*x[1]-x[0]*a[1],g+=(a[0]+x[0])*s,v+=(a[1]+x[1])*s;return[g/(T*=3),v/T]}function u3(i,a,s){return(a[0]-i[0])*(s[1]-i[1])-(a[1]-i[1])*(s[0]-i[0])}function h3(i,a){return i[0]-a[0]||i[1]-a[1]}function Kp(i){const a=i.length,s=[0,1];let u,p=2;for(u=2;u<a;++u){for(;p>1&&u3(i[s[p-2]],i[s[p-1]],i[u])<=0;)--p;s[p++]=u}return s.slice(0,p)}function f3(i){if((s=i.length)<3)return null;var a,s,u=new Array(s),p=new Array(s);for(a=0;a<s;++a)u[a]=[+i[a][0],+i[a][1],a];for(u.sort(h3),a=0;a<s;++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 s,u,p=i.length,g=i[p-1],v=a[0],x=a[1],T=g[0],C=g[1],D=!1,j=0;j<p;++j)s=(g=i[j])[0],(u=g[1])>x!=C>x&&v<(T-s)*(x-u)/(C-u)+s&&(D=!D),T=s,C=u;return D}function p3(i){for(var a,s,u=-1,p=i.length,g=i[p-1],v=g[0],x=g[1],T=0;++u<p;)a=v,s=x,a-=v=(g=i[u])[0],s-=x=g[1],T+=Math.hypot(a,s);return T}const ca=Math.random,g3=function i(a){function s(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 s.source=i,s}(ca),y3=function i(a){function s(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 s.source=i,s}(ca),Ld=function i(a){function s(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 s.source=i,s}(ca),m3=function i(a){var s=Ld.source(a);function u(){var p=s.apply(this,arguments);return function(){return Math.exp(p())}}return u.source=i,u}(ca),Jp=function i(a){function s(u){return(u=+u)<=0?()=>0:function(){for(var p=0,g=u;g>1;--g)p+=a();return p+g*a()}}return s.source=i,s}(ca),_3=function i(a){var s=Jp.source(a);function u(p){if((p=+p)==0)return a;var g=s(p);return function(){return g()/p}}return u.source=i,u}(ca),b3=function i(a){function s(u){return function(){return-Math.log1p(-a())/u}}return s.source=i,s}(ca),v3=function i(a){function s(u){if((u=+u)<0)throw new RangeError("invalid alpha");return u=1/-u,function(){return Math.pow(1-a(),u)}}return s.source=i,s}(ca),x3=function i(a){function s(u){if((u=+u)<0||u>1)throw new RangeError("invalid p");return function(){return Math.floor(a()+u)}}return s.source=i,s}(ca),Qp=function i(a){function s(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 s.source=i,s}(ca),Md=function i(a){var s=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=s(),D=1+x*C;while(D<=0);D*=D*D;var j=1-a()}while(j>=1-.0331*C*C*C*C&&Math.log(j)>=.5*C*C+v*(1-D+Math.log(D)));return v*D*T()*g}}return u.source=i,u}(ca),tg=function i(a){var s=Md.source(a);function u(p,g){var v=s(p),x=s(g);return function(){var T=v();return T===0?0:T/(T+x())}}return u.source=i,u}(ca),eg=function i(a){var s=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 D=Math.floor((T+1)*C),j=u(D,T-D+1)();j<=C?(x+=D,T-=D,C=(C-j)/(1-j)):(T=D-1,C/=j)}for(var P=C<.5,$=s(P?C:1-C),it=$(),G=0;it<=T;++G)it+=$();return x+(P?G:T-G)}}return p.source=i,p}(ca),k3=function i(a){function s(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 s.source=i,s}(ca),w3=function i(a){function s(u,p){return u=u==null?0:+u,p=p==null?1:+p,function(){return u+p*Math.tan(Math.PI*a())}}return s.source=i,s}(ca),E3=function i(a){function s(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 s.source=i,s}(ca),T3=function i(a){var s=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=s(T)();if(C>x)return v+u(T-1,x/C)();v+=T,x-=C}for(var D=-Math.log1p(-a()),j=0;D<=x;++j)D-=Math.log1p(-a());return v+j}}return p.source=i,p}(ca),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 so(i,a){switch(arguments.length){case 0:break;case 1:this.range(i);break;default:this.range(a).domain(i)}return this}function Ts(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 mt,a=[],s=[],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 s[v%s.length]}return p.domain=function(g){if(!arguments.length)return a.slice();a=[],i=new mt;for(const v of g)i.has(v)||i.set(v,a.push(v)-1);return p},p.range=function(g){return arguments.length?(s=Array.from(g),p):s.slice()},p.unknown=function(g){return arguments.length?(u=g,p):u},p.copy=function(){return Dd(a,s).unknown(u)},so.apply(p,arguments),p}function Bd(){var i,a,s=Dd().unknown(void 0),u=s.domain,p=s.range,g=0,v=1,x=!1,T=0,C=0,D=.5;function j(){var P=u().length,$=v<g,it=$?v:g,G=$?g:v;i=(G-it)/Math.max(1,P-T+2*C),x&&(i=Math.floor(i)),it+=(G-it-i*(P-T))*D,a=i*(1-T),x&&(it=Math.round(it),a=Math.round(a));var V=Ne(P).map(function(Z){return it+i*Z});return p($?V.reverse():V)}return delete s.unknown,s.domain=function(P){return arguments.length?(u(P),j()):u()},s.range=function(P){return arguments.length?([g,v]=P,g=+g,v=+v,j()):[g,v]},s.rangeRound=function(P){return[g,v]=P,g=+g,v=+v,x=!0,j()},s.bandwidth=function(){return a},s.step=function(){return i},s.round=function(P){return arguments.length?(x=!!P,j()):x},s.padding=function(P){return arguments.length?(T=Math.min(1,C=+P),j()):T},s.paddingInner=function(P){return arguments.length?(T=Math.min(1,P),j()):T},s.paddingOuter=function(P){return arguments.length?(C=+P,j()):C},s.align=function(P){return arguments.length?(D=Math.max(0,Math.min(1,P)),j()):D},s.copy=function(){return Bd(u(),[g,v]).round(x).paddingInner(T).paddingOuter(C).align(D)},so.apply(j(),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 M0(i){return+i}var ig=[0,1];function Ia(i){return i}function Rd(i,a){return(a-=i=+i)?function(u){return(u-i)/a}:(s=isNaN(a)?NaN:.5,function(){return s});var s}function C3(i,a,s){var u=i[0],p=i[1],g=a[0],v=a[1];return p<u?(u=Rd(p,u),g=s(v,g)):(u=Rd(u,p),g=s(g,v)),function(x){return g(u(x))}}function I3(i,a,s){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]=s(a[v],a[v+1]);return function(x){var T=B(i,x,1,u)-1;return g[T](p[T](x))}}function Mh(i,a){return a.domain(i.domain()).range(i.range()).interpolate(i.interpolate()).clamp(i.clamp()).unknown(i.unknown())}function O0(){var i,a,s,u,p,g,v=ig,x=ig,T=er,C=Ia;function D(){var P,$,it,G=Math.min(v.length,x.length);return C!==Ia&&(P=v[0],$=v[G-1],P>$&&(it=P,P=$,$=it),C=function(V){return Math.max(P,Math.min($,V))}),u=G>2?I3:C3,p=g=null,j}function j(P){return P==null||isNaN(P=+P)?s:(p||(p=u(v.map(i),x,T)))(i(C(P)))}return j.invert=function(P){return C(a((g||(g=u(x,v.map(i),la)))(P)))},j.domain=function(P){return arguments.length?(v=Array.from(P,M0),D()):v.slice()},j.range=function(P){return arguments.length?(x=Array.from(P),D()):x.slice()},j.rangeRound=function(P){return x=Array.from(P),T=N0,D()},j.clamp=function(P){return arguments.length?(C=!!P||Ia,D()):C!==Ia},j.interpolate=function(P){return arguments.length?(T=P,D()):T},j.unknown=function(P){return arguments.length?(s=P,j):s},function(P,$){return i=P,a=$,D()}}function Fd(){return O0()(Ia,Ia)}function ag(i,a,s,u){var p,g=Te(i,a,s);switch((u=Eo(u==null?",f":u)).type){case"s":var v=Math.max(Math.abs(i),Math.abs(a));return u.precision!=null||isNaN(p=fh(g,v))||(u.precision=p),uh(u,v);case"":case"e":case"g":case"p":case"r":u.precision!=null||isNaN(p=dh(g,Math.max(Math.abs(i),Math.abs(a))))||(u.precision=p-(u.type==="e"));break;case"f":case"%":u.precision!=null||isNaN(p=Hl(g))||(u.precision=p-2*(u.type==="%"))}return $l(u)}function ec(i){var a=i.domain;return i.ticks=function(s){var u=a();return ce(u[0],u[u.length-1],s==null?10:s)},i.tickFormat=function(s,u){var p=a();return ag(p[0],p[p.length-1],s==null?10:s,u)},i.nice=function(s){s==null&&(s=10);var u,p,g=a(),v=0,x=g.length-1,T=g[v],C=g[x],D=10;for(C<T&&(p=T,T=C,C=p,p=v,v=x,x=p);D-- >0;){if((p=ct(T,C,s))===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 Mh(i,og())},so.apply(i,arguments),ec(i)}function sg(i){var a;function s(u){return u==null||isNaN(u=+u)?a:u}return s.invert=s,s.domain=s.range=function(u){return arguments.length?(i=Array.from(u,M0),s):i.slice()},s.unknown=function(u){return arguments.length?(a=u,s):a},s.copy=function(){return sg(i).unknown(a)},i=arguments.length?Array.from(i,M0):[0,1],ec(s)}function cg(i,a){var s,u=0,p=(i=i.slice()).length-1,g=i[u],v=i[p];return v<g&&(s=u,u=p,p=s,s=g,g=v,v=s),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 N3(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,s)=>-i(-a,s)}function Pd(i){const a=i(lg,ug),s=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),s()[0]<0?(u=hg(u),p=hg(p),i(N3,L3)):i(lg,ug),a}return a.base=function(x){return arguments.length?(g=+x,v()):g},a.domain=function(x){return arguments.length?(s(x),v()):s()},a.ticks=x=>{const T=s();let C=T[0],D=T[T.length-1];const j=D<C;j&&([C,D]=[D,C]);let P,$,it=u(C),G=u(D);const V=x==null?10:+x;let Z=[];if(!(g%1)&&G-it<V){if(it=Math.floor(it),G=Math.ceil(G),C>0){for(;it<=G;++it)for(P=1;P<g;++P)if($=it<0?P/p(-it):P*p(it),!($<C)){if($>D)break;Z.push($)}}else for(;it<=G;++it)for(P=g-1;P>=1;--P)if($=it>0?P/p(-it):P*p(it),!($<C)){if($>D)break;Z.push($)}2*Z.length<V&&(Z=ce(C,D,V))}else Z=ce(it,G,Math.min(G-it,V)).map(p);return j?Z.reverse():Z},a.tickFormat=(x,T)=>{if(x==null&&(x=10),T==null&&(T=g===10?"s":","),typeof T!="function"&&(g%1||(T=Eo(T)).precision!=null||(T.trim=!0),T=$l(T)),x===1/0)return T;const C=Math.max(1,g*x/a.ticks().length);return D=>{let j=D/p(Math.round(u(D)));return j*g<g-.5&&(j*=g),j<=C?T(D):""}},a.nice=()=>s(cg(s(),{floor:x=>p(Math.floor(u(x))),ceil:x=>p(Math.ceil(u(x)))})),a}function fg(){const i=Pd(O0()).domain([1,10]);return i.copy=()=>Mh(i,fg()).base(i.base()),so.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,s=i(dg(a),pg(a));return s.constant=function(u){return arguments.length?i(dg(a=+u),pg(a)):a},ec(s)}function gg(){var i=Ud(O0());return i.copy=function(){return Mh(i,gg()).constant(i.constant())},so.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(Ia,Ia),s=1;function u(){return s===1?i(Ia,Ia):s===.5?i(O3,D3):i(yg(s),yg(1/s))}return a.exponent=function(p){return arguments.length?(s=+p,u()):s},ec(a)}function Yd(){var i=zd(O0());return i.copy=function(){return Mh(i,Yd()).exponent(i.exponent())},so.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(),s=[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((s=Array.from(g,M0)).map(mg)),p):s.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(),s).round(u).clamp(a.clamp()).unknown(i)},so.apply(p,arguments),ec(p)}function bg(){var i,a=[],s=[],u=[];function p(){var v=0,x=Math.max(1,s.length);for(u=new Array(x-1);++v<x;)u[v-1]=Re(a,v/x);return g}function g(v){return v==null||isNaN(v=+v)?i:s[B(u,v)]}return g.invertExtent=function(v){var x=s.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?(s=Array.from(v),p()):s.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(s).unknown(i)},so.apply(g,arguments)}function vg(){var i,a=0,s=1,u=1,p=[.5],g=[0,1];function v(T){return T!=null&&T<=T?g[B(p,T,0,u)]:i}function x(){var T=-1;for(p=new Array(u);++T<u;)p[T]=((T+1)*s-(T-u)*a)/(u+1);return v}return v.domain=function(T){return arguments.length?([a,s]=T,a=+a,s=+s,x()):[a,s]},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],s]:[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,s]).range(g).unknown(i)},so.apply(ec(v),arguments)}function xg(){var i,a=[.5],s=[0,1],u=1;function p(g){return g!=null&&g<=g?s[B(a,g,0,u)]:i}return p.domain=function(g){return arguments.length?(a=Array.from(g),u=Math.min(a.length,s.length-1),p):a.slice()},p.range=function(g){return arguments.length?(s=Array.from(g),u=Math.min(a.length,s.length-1),p):s.slice()},p.invertExtent=function(g){var v=s.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(s).unknown(i)},so.apply(p,arguments)}const Oh=1e3,nc=6e4,Dh=36e5,jd=864e5,$d=6048e5,Hd=31536e6;var qd=new Date,Wd=new Date;function Yi(i,a,s,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 Yi(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););})},s&&(p.count=function(g,v){return qd.setTime(+g),Wd.setTime(+v),i(qd),i(Wd),Math.floor(s(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 D0=Yi(function(){},function(i,a){i.setTime(+i+a)},function(i,a){return a-i});D0.every=function(i){return i=Math.floor(i),isFinite(i)&&i>0?i>1?Yi(function(a){a.setTime(Math.floor(a/i)*i)},function(a,s){a.setTime(+a+s*i)},function(a,s){return(s-a)/i}):D0:null};const Gd=D0;var kg=D0.range,wg=Yi(function(i){i.setTime(i-i.getMilliseconds())},function(i,a){i.setTime(+i+a*Oh)},function(i,a){return(a-i)/Oh},function(i){return i.getUTCSeconds()});const rc=wg;var Eg=wg.range,Tg=Yi(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*Oh)},function(i,a){i.setTime(+i+a*nc)},function(i,a){return(a-i)/nc},function(i){return i.getMinutes()});const Vd=Tg;var F3=Tg.range,Sg=Yi(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*Oh-i.getMinutes()*nc)},function(i,a){i.setTime(+i+a*Dh)},function(i,a){return(a-i)/Dh},function(i){return i.getHours()});const Zd=Sg;var P3=Sg.range,Ag=Yi(i=>i.setHours(0,0,0,0),(i,a)=>i.setDate(i.getDate()+a),(i,a)=>(a-i-(a.getTimezoneOffset()-i.getTimezoneOffset())*nc)/jd,i=>i.getDate()-1);const Bh=Ag;var U3=Ag.range;function Vc(i){return Yi(function(a){a.setDate(a.getDate()-(a.getDay()+7-i)%7),a.setHours(0,0,0,0)},function(a,s){a.setDate(a.getDate()+7*s)},function(a,s){return(s-a-(s.getTimezoneOffset()-a.getTimezoneOffset())*nc)/$d})}var Ql=Vc(0),Rh=Vc(1),Cg=Vc(2),Ig=Vc(3),Zc=Vc(4),Ng=Vc(5),Lg=Vc(6),Mg=Ql.range,z3=Rh.range,Y3=Cg.range,j3=Ig.range,$3=Zc.range,H3=Ng.range,q3=Lg.range,Og=Yi(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=Yi(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?Yi(function(a){a.setFullYear(Math.floor(a.getFullYear()/i)*i),a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,s){a.setFullYear(a.getFullYear()+s*i)}):null};const ic=Kd;var G3=Kd.range,Dg=Yi(function(i){i.setUTCSeconds(0,0)},function(i,a){i.setTime(+i+a*nc)},function(i,a){return(a-i)/nc},function(i){return i.getUTCMinutes()});const Jd=Dg;var V3=Dg.range,Bg=Yi(function(i){i.setUTCMinutes(0,0,0)},function(i,a){i.setTime(+i+a*Dh)},function(i,a){return(a-i)/Dh},function(i){return i.getUTCHours()});const Qd=Bg;var Z3=Bg.range,Rg=Yi(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 Fh=Rg;var X3=Rg.range;function Xc(i){return Yi(function(a){a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-i)%7),a.setUTCHours(0,0,0,0)},function(a,s){a.setUTCDate(a.getUTCDate()+7*s)},function(a,s){return(s-a)/$d})}var tu=Xc(0),Ph=Xc(1),Fg=Xc(2),Pg=Xc(3),Kc=Xc(4),Ug=Xc(5),zg=Xc(6),Yg=tu.range,K3=Ph.range,J3=Fg.range,Q3=Pg.range,t4=Kc.range,e4=Ug.range,n4=zg.range,jg=Yi(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=Yi(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?Yi(function(a){a.setUTCFullYear(Math.floor(a.getUTCFullYear()/i)*i),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,s){a.setUTCFullYear(a.getUTCFullYear()+s*i)}):null};const ac=e2;var i4=e2.range;function $g(i,a,s,u,p,g){const v=[[rc,1,Oh],[rc,5,5e3],[rc,15,15e3],[rc,30,3e4],[g,1,nc],[g,5,3e5],[g,15,9e5],[g,30,18e5],[p,1,Dh],[p,3,108e5],[p,6,216e5],[p,12,432e5],[u,1,jd],[u,2,1728e5],[s,1,$d],[a,1,2592e6],[a,3,7776e6],[i,1,Hd]];function x(T,C,D){const j=Math.abs(C-T)/D,P=d(([,,G])=>G).right(v,j);if(P===v.length)return i.every(Te(T/Hd,C/Hd,D));if(P===0)return Gd.every(Math.max(Te(T,C,D),1));const[$,it]=v[j/v[P-1][2]<v[P][2]/j?P-1:P];return $.every(it)}return[function(T,C,D){const j=C<T;j&&([T,C]=[C,T]);const P=D&&typeof D.range=="function"?D:x(T,C,D),$=P?P.range(T,+C+1):[];return j?$.reverse():$},x]}const[Hg,qg]=$g(ac,t2,tu,Fh,Qd,Jd),[Wg,Gg]=$g(ic,Xd,Ql,Bh,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 Uh(i,a,s){return{y:i,m:a,d:s,H:0,M:0,S:0,L:0}}function Vg(i){var a=i.dateTime,s=i.date,u=i.time,p=i.periods,g=i.days,v=i.shortDays,x=i.months,T=i.shortMonths,C=zh(p),D=Yh(p),j=zh(g),P=Yh(g),$=zh(v),it=Yh(v),G=zh(x),V=Yh(x),Z=zh(T),pt=Yh(T),lt={a:function(Zt){return v[Zt.getDay()]},A:function(Zt){return g[Zt.getDay()]},b:function(Zt){return T[Zt.getMonth()]},B:function(Zt){return x[Zt.getMonth()]},c:null,d:ey,e:ey,f:A4,g:F4,G:U4,H:E4,I:T4,j:S4,L:ny,m:C4,M:I4,p:function(Zt){return p[+(Zt.getHours()>=12)]},q:function(Zt){return 1+~~(Zt.getMonth()/3)},Q:cy,s:ly,S:N4,u:L4,U:M4,V:O4,w:D4,W:B4,x:null,X:null,y:R4,Y:P4,Z:z4,"%":sy},ut={a:function(Zt){return v[Zt.getUTCDay()]},A:function(Zt){return g[Zt.getUTCDay()]},b:function(Zt){return T[Zt.getUTCMonth()]},B:function(Zt){return x[Zt.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(Zt){return p[+(Zt.getUTCHours()>=12)]},q:function(Zt){return 1+~~(Zt.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(Zt,$t,Ht){var qt=$.exec($t.slice(Ht));return qt?(Zt.w=it.get(qt[0].toLowerCase()),Ht+qt[0].length):-1},A:function(Zt,$t,Ht){var qt=j.exec($t.slice(Ht));return qt?(Zt.w=P.get(qt[0].toLowerCase()),Ht+qt[0].length):-1},b:function(Zt,$t,Ht){var qt=Z.exec($t.slice(Ht));return qt?(Zt.m=pt.get(qt[0].toLowerCase()),Ht+qt[0].length):-1},B:function(Zt,$t,Ht){var qt=G.exec($t.slice(Ht));return qt?(Zt.m=V.get(qt[0].toLowerCase()),Ht+qt[0].length):-1},c:function(Zt,$t,Ht){return ye(Zt,a,$t,Ht)},d:Qg,e:Qg,f:v4,g:Jg,G:Kg,H:ty,I:ty,j:y4,L:b4,m:g4,M:m4,p:function(Zt,$t,Ht){var qt=C.exec($t.slice(Ht));return qt?(Zt.p=D.get(qt[0].toLowerCase()),Ht+qt[0].length):-1},q:p4,Q:k4,s:w4,S:_4,u:l4,U:u4,V:h4,w:c4,W:f4,x:function(Zt,$t,Ht){return ye(Zt,s,$t,Ht)},X:function(Zt,$t,Ht){return ye(Zt,u,$t,Ht)},y:Jg,Y:Kg,Z:d4,"%":x4};function wt(Zt,$t){return function(Ht){var qt,Et,Ut,Kt=[],se=-1,Ae=0,qe=Zt.length;for(Ht instanceof Date||(Ht=new Date(+Ht));++se<qe;)Zt.charCodeAt(se)===37&&(Kt.push(Zt.slice(Ae,se)),(Et=Xg[qt=Zt.charAt(++se)])!=null?qt=Zt.charAt(++se):Et=qt==="e"?" ":"0",(Ut=$t[qt])&&(qt=Ut(Ht,Et)),Kt.push(qt),Ae=se+1);return Kt.push(Zt.slice(Ae,se)),Kt.join("")}}function ne(Zt,$t){return function(Ht){var qt,Et,Ut=Uh(1900,void 0,1);if(ye(Ut,Zt,Ht+="",0)!=Ht.length)return null;if("Q"in Ut)return new Date(Ut.Q);if("s"in Ut)return new Date(1e3*Ut.s+("L"in Ut?Ut.L:0));if($t&&!("Z"in Ut)&&(Ut.Z=0),"p"in Ut&&(Ut.H=Ut.H%12+12*Ut.p),Ut.m===void 0&&(Ut.m="q"in Ut?Ut.q:0),"V"in Ut){if(Ut.V<1||Ut.V>53)return null;"w"in Ut||(Ut.w=1),"Z"in Ut?(Et=(qt=r2(Uh(Ut.y,0,1))).getUTCDay(),qt=Et>4||Et===0?Ph.ceil(qt):Ph(qt),qt=Fh.offset(qt,7*(Ut.V-1)),Ut.y=qt.getUTCFullYear(),Ut.m=qt.getUTCMonth(),Ut.d=qt.getUTCDate()+(Ut.w+6)%7):(Et=(qt=n2(Uh(Ut.y,0,1))).getDay(),qt=Et>4||Et===0?Rh.ceil(qt):Rh(qt),qt=Bh.offset(qt,7*(Ut.V-1)),Ut.y=qt.getFullYear(),Ut.m=qt.getMonth(),Ut.d=qt.getDate()+(Ut.w+6)%7)}else("W"in Ut||"U"in Ut)&&("w"in Ut||(Ut.w="u"in Ut?Ut.u%7:"W"in Ut?1:0),Et="Z"in Ut?r2(Uh(Ut.y,0,1)).getUTCDay():n2(Uh(Ut.y,0,1)).getDay(),Ut.m=0,Ut.d="W"in Ut?(Ut.w+6)%7+7*Ut.W-(Et+5)%7:Ut.w+7*Ut.U-(Et+6)%7);return"Z"in Ut?(Ut.H+=Ut.Z/100|0,Ut.M+=Ut.Z%100,r2(Ut)):n2(Ut)}}function ye(Zt,$t,Ht,qt){for(var Et,Ut,Kt=0,se=$t.length,Ae=Ht.length;Kt<se;){if(qt>=Ae)return-1;if((Et=$t.charCodeAt(Kt++))===37){if(Et=$t.charAt(Kt++),!(Ut=vt[Et in Xg?$t.charAt(Kt++):Et])||(qt=Ut(Zt,Ht,qt))<0)return-1}else if(Et!=Ht.charCodeAt(qt++))return-1}return qt}return lt.x=wt(s,lt),lt.X=wt(u,lt),lt.c=wt(a,lt),ut.x=wt(s,ut),ut.X=wt(u,ut),ut.c=wt(a,ut),{format:function(Zt){var $t=wt(Zt+="",lt);return $t.toString=function(){return Zt},$t},parse:function(Zt){var $t=ne(Zt+="",!1);return $t.toString=function(){return Zt},$t},utcFormat:function(Zt){var $t=wt(Zt+="",ut);return $t.toString=function(){return Zt},$t},utcParse:function(Zt){var $t=ne(Zt+="",!0);return $t.toString=function(){return Zt},$t}}}var eu,i2,Zg,B0,a2,Xg={"-":"",_:" ",0:"0"},Xi=/^\s*\d+/,a4=/^%/,o4=/[\\^$*+?|[\]().{}]/g;function Cr(i,a,s){var u=i<0?"-":"",p=(u?-i:i)+"",g=p.length;return u+(g<s?new Array(s-g+1).join(a)+p:p)}function s4(i){return i.replace(o4,"\\$&")}function zh(i){return new RegExp("^(?:"+i.map(s4).join("|")+")","i")}function Yh(i){return new Map(i.map((a,s)=>[a.toLowerCase(),s]))}function c4(i,a,s){var u=Xi.exec(a.slice(s,s+1));return u?(i.w=+u[0],s+u[0].length):-1}function l4(i,a,s){var u=Xi.exec(a.slice(s,s+1));return u?(i.u=+u[0],s+u[0].length):-1}function u4(i,a,s){var u=Xi.exec(a.slice(s,s+2));return u?(i.U=+u[0],s+u[0].length):-1}function h4(i,a,s){var u=Xi.exec(a.slice(s,s+2));return u?(i.V=+u[0],s+u[0].length):-1}function f4(i,a,s){var u=Xi.exec(a.slice(s,s+2));return u?(i.W=+u[0],s+u[0].length):-1}function Kg(i,a,s){var u=Xi.exec(a.slice(s,s+4));return u?(i.y=+u[0],s+u[0].length):-1}function Jg(i,a,s){var u=Xi.exec(a.slice(s,s+2));return u?(i.y=+u[0]+(+u[0]>68?1900:2e3),s+u[0].length):-1}function d4(i,a,s){var u=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(s,s+6));return u?(i.Z=u[1]?0:-(u[2]+(u[3]||"00")),s+u[0].length):-1}function p4(i,a,s){var u=Xi.exec(a.slice(s,s+1));return u?(i.q=3*u[0]-3,s+u[0].length):-1}function g4(i,a,s){var u=Xi.exec(a.slice(s,s+2));return u?(i.m=u[0]-1,s+u[0].length):-1}function Qg(i,a,s){var u=Xi.exec(a.slice(s,s+2));return u?(i.d=+u[0],s+u[0].length):-1}function y4(i,a,s){var u=Xi.exec(a.slice(s,s+3));return u?(i.m=0,i.d=+u[0],s+u[0].length):-1}function ty(i,a,s){var u=Xi.exec(a.slice(s,s+2));return u?(i.H=+u[0],s+u[0].length):-1}function m4(i,a,s){var u=Xi.exec(a.slice(s,s+2));return u?(i.M=+u[0],s+u[0].length):-1}function _4(i,a,s){var u=Xi.exec(a.slice(s,s+2));return u?(i.S=+u[0],s+u[0].length):-1}function b4(i,a,s){var u=Xi.exec(a.slice(s,s+3));return u?(i.L=+u[0],s+u[0].length):-1}function v4(i,a,s){var u=Xi.exec(a.slice(s,s+6));return u?(i.L=Math.floor(u[0]/1e3),s+u[0].length):-1}function x4(i,a,s){var u=a4.exec(a.slice(s,s+1));return u?s+u[0].length:-1}function k4(i,a,s){var u=Xi.exec(a.slice(s));return u?(i.Q=+u[0],s+u[0].length):-1}function w4(i,a,s){var u=Xi.exec(a.slice(s));return u?(i.s=+u[0],s+u[0].length):-1}function ey(i,a){return Cr(i.getDate(),a,2)}function E4(i,a){return Cr(i.getHours(),a,2)}function T4(i,a){return Cr(i.getHours()%12||12,a,2)}function S4(i,a){return Cr(1+Bh.count(ic(i),i),a,3)}function ny(i,a){return Cr(i.getMilliseconds(),a,3)}function A4(i,a){return ny(i,a)+"000"}function C4(i,a){return Cr(i.getMonth()+1,a,2)}function I4(i,a){return Cr(i.getMinutes(),a,2)}function N4(i,a){return Cr(i.getSeconds(),a,2)}function L4(i){var a=i.getDay();return a===0?7:a}function M4(i,a){return Cr(Ql.count(ic(i)-1,i),a,2)}function ry(i){var a=i.getDay();return a>=4||a===0?Zc(i):Zc.ceil(i)}function O4(i,a){return i=ry(i),Cr(Zc.count(ic(i),i)+(ic(i).getDay()===4),a,2)}function D4(i){return i.getDay()}function B4(i,a){return Cr(Rh.count(ic(i)-1,i),a,2)}function R4(i,a){return Cr(i.getFullYear()%100,a,2)}function F4(i,a){return Cr((i=ry(i)).getFullYear()%100,a,2)}function P4(i,a){return Cr(i.getFullYear()%1e4,a,4)}function U4(i,a){var s=i.getDay();return Cr((i=s>=4||s===0?Zc(i):Zc.ceil(i)).getFullYear()%1e4,a,4)}function z4(i){var a=i.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+Cr(a/60|0,"0",2)+Cr(a%60,"0",2)}function iy(i,a){return Cr(i.getUTCDate(),a,2)}function Y4(i,a){return Cr(i.getUTCHours(),a,2)}function j4(i,a){return Cr(i.getUTCHours()%12||12,a,2)}function $4(i,a){return Cr(1+Fh.count(ac(i),i),a,3)}function ay(i,a){return Cr(i.getUTCMilliseconds(),a,3)}function H4(i,a){return ay(i,a)+"000"}function q4(i,a){return Cr(i.getUTCMonth()+1,a,2)}function W4(i,a){return Cr(i.getUTCMinutes(),a,2)}function G4(i,a){return Cr(i.getUTCSeconds(),a,2)}function V4(i){var a=i.getUTCDay();return a===0?7:a}function Z4(i,a){return Cr(tu.count(ac(i)-1,i),a,2)}function oy(i){var a=i.getUTCDay();return a>=4||a===0?Kc(i):Kc.ceil(i)}function X4(i,a){return i=oy(i),Cr(Kc.count(ac(i),i)+(ac(i).getUTCDay()===4),a,2)}function K4(i){return i.getUTCDay()}function J4(i,a){return Cr(Ph.count(ac(i)-1,i),a,2)}function Q4(i,a){return Cr(i.getUTCFullYear()%100,a,2)}function tb(i,a){return Cr((i=oy(i)).getUTCFullYear()%100,a,2)}function eb(i,a){return Cr(i.getUTCFullYear()%1e4,a,4)}function nb(i,a){var s=i.getUTCDay();return Cr((i=s>=4||s===0?Kc(i):Kc.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 eu=Vg(i),i2=eu.format,Zg=eu.parse,B0=eu.utcFormat,a2=eu.utcParse,eu}function ib(i){return new Date(i)}function ab(i){return i instanceof Date?+i:+new Date(+i)}function o2(i,a,s,u,p,g,v,x,T,C){var D=Fd(),j=D.invert,P=D.domain,$=C(".%L"),it=C(":%S"),G=C("%I:%M"),V=C("%I %p"),Z=C("%a %d"),pt=C("%b %d"),lt=C("%B"),ut=C("%Y");function vt(wt){return(T(wt)<wt?$:x(wt)<wt?it:v(wt)<wt?G:g(wt)<wt?V:u(wt)<wt?p(wt)<wt?Z:pt:s(wt)<wt?lt:ut)(wt)}return D.invert=function(wt){return new Date(j(wt))},D.domain=function(wt){return arguments.length?P(Array.from(wt,ab)):P().map(ib)},D.ticks=function(wt){var ne=P();return i(ne[0],ne[ne.length-1],wt==null?10:wt)},D.tickFormat=function(wt,ne){return ne==null?vt:C(ne)},D.nice=function(wt){var ne=P();return wt&&typeof wt.range=="function"||(wt=a(ne[0],ne[ne.length-1],wt==null?10:wt)),wt?P(cg(ne,wt)):D},D.copy=function(){return Mh(D,o2(i,a,s,u,p,g,v,x,T,C))},D}function ob(){return so.apply(o2(Wg,Gg,ic,Xd,Ql,Bh,Zd,Vd,rc,i2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function sb(){return so.apply(o2(Hg,qg,ac,t2,tu,Fh,Qd,Jd,rc,B0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function R0(){var i,a,s,u,p,g=0,v=1,x=Ia,T=!1;function C(j){return j==null||isNaN(j=+j)?p:x(s===0?.5:(j=(u(j)-i)*s,T?Math.max(0,Math.min(1,j)):j))}function D(j){return function(P){var $,it;return arguments.length?([$,it]=P,x=j($,it),C):[x(0),x(1)]}}return C.domain=function(j){return arguments.length?([g,v]=j,i=u(g=+g),a=u(v=+v),s=i===a?0:1/(a-i),C):[g,v]},C.clamp=function(j){return arguments.length?(T=!!j,C):T},C.interpolator=function(j){return arguments.length?(x=j,C):x},C.range=D(er),C.rangeRound=D(N0),C.unknown=function(j){return arguments.length?(p=j,C):p},function(j){return u=j,i=j(g),a=j(v),s=i===a?0:1/(a-i),C}}function oc(i,a){return a.domain(i.domain()).interpolator(i.interpolator()).clamp(i.clamp()).unknown(i.unknown())}function hy(){var i=ec(R0()(Ia));return i.copy=function(){return oc(i,hy())},Ts.apply(i,arguments)}function fy(){var i=Pd(R0()).domain([1,10]);return i.copy=function(){return oc(i,fy()).base(i.base())},Ts.apply(i,arguments)}function dy(){var i=Ud(R0());return i.copy=function(){return oc(i,dy()).constant(i.constant())},Ts.apply(i,arguments)}function s2(){var i=zd(R0());return i.copy=function(){return oc(i,s2()).exponent(i.exponent())},Ts.apply(i,arguments)}function cb(){return s2.apply(null,arguments).exponent(.5)}function py(){var i=[],a=Ia;function s(u){if(u!=null&&!isNaN(u=+u))return a((B(i,u,1)-1)/(i.length-1))}return s.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),s},s.interpolator=function(u){return arguments.length?(a=u,s):a},s.range=function(){return i.map((u,p)=>a(p/(i.length-1)))},s.quantiles=function(u){return Array.from({length:u+1},(p,g)=>ze(i,g/u))},s.copy=function(){return py(a).domain(i)},Ts.apply(s,arguments)}function F0(){var i,a,s,u,p,g,v,x=0,T=.5,C=1,D=1,j=Ia,P=!1;function $(G){return isNaN(G=+G)?v:(G=.5+((G=+g(G))-a)*(D*G<D*a?u:p),j(P?Math.max(0,Math.min(1,G)):G))}function it(G){return function(V){var Z,pt,lt;return arguments.length?([Z,pt,lt]=V,j=Xp(G,[Z,pt,lt]),$):[j(0),j(.5),j(1)]}}return $.domain=function(G){return arguments.length?([x,T,C]=G,i=g(x=+x),a=g(T=+T),s=g(C=+C),u=i===a?0:.5/(a-i),p=a===s?0:.5/(s-a),D=a<i?-1:1,$):[x,T,C]},$.clamp=function(G){return arguments.length?(P=!!G,$):P},$.interpolator=function(G){return arguments.length?(j=G,$):j},$.range=it(er),$.rangeRound=it(N0),$.unknown=function(G){return arguments.length?(v=G,$):v},function(G){return g=G,i=G(x),a=G(T),s=G(C),u=i===a?0:.5/(a-i),p=a===s?0:.5/(s-a),D=a<i?-1:1,$}}function gy(){var i=ec(F0()(Ia));return i.copy=function(){return oc(i,gy())},Ts.apply(i,arguments)}function yy(){var i=Pd(F0()).domain([.1,1,10]);return i.copy=function(){return oc(i,yy()).base(i.base())},Ts.apply(i,arguments)}function my(){var i=Ud(F0());return i.copy=function(){return oc(i,my()).constant(i.constant())},Ts.apply(i,arguments)}function c2(){var i=zd(F0());return i.copy=function(){return oc(i,c2()).exponent(i.exponent())},Ts.apply(i,arguments)}function lb(){return c2.apply(null,arguments).exponent(.5)}function sr(i){for(var a=i.length/6|0,s=new Array(a),u=0;u<a;)s[u]="#"+i.slice(6*u,6*++u);return s}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=sr("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),hb=sr("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),fb=sr("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),db=sr("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),pb=sr("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),gb=sr("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),yb=sr("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),mb=sr("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),_b=sr("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),bb=sr("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Vr=i=>al(i[i.length-1]);var _y=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(sr);const vb=Vr(_y);var by=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(sr);const xb=Vr(by);var vy=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(sr);const kb=Vr(vy);var xy=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(sr);const wb=Vr(xy);var ky=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(sr);const Eb=Vr(ky);var wy=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(sr);const Tb=Vr(wy);var Ey=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(sr);const Sb=Vr(Ey);var Ty=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(sr);const Ab=Vr(Ty);var Sy=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(sr);const Cb=Vr(Sy);var Ay=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(sr);const Ib=Vr(Ay);var Cy=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(sr);const Nb=Vr(Cy);var Iy=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(sr);const Lb=Vr(Iy);var Ny=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(sr);const Mb=Vr(Ny);var Ly=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(sr);const Ob=Vr(Ly);var My=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(sr);const Db=Vr(My);var Oy=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(sr);const Bb=Vr(Oy);var Dy=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(sr);const Rb=Vr(Dy);var By=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(sr);const Fb=Vr(By);var Ry=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(sr);const Pb=Vr(Ry);var Fy=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(sr);const Ub=Vr(Fy);var Py=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(sr);const zb=Vr(Py);var Uy=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(sr);const Yb=Vr(Uy);var zy=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(sr);const jb=Vr(zy);var Yy=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(sr);const $b=Vr(Yy);var jy=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(sr);const Hb=Vr(jy);var $y=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(sr);const qb=Vr($y);var Hy=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(sr);const Wb=Vr(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=L0(Tr(300,.5,0),Tr(-240,.5,1));var Zb=L0(Tr(-100,.75,.35),Tr(80,1.5,.8)),Xb=L0(Tr(260,.75,.35),Tr(80,1.5,.8)),P0=Tr();function Kb(i){(i<0||i>1)&&(i-=Math.floor(i));var a=Math.abs(i-.5);return P0.h=360*i-100,P0.s=1.5-1.5*a,P0.l=.8-.9*a,P0+""}var U0=gi(),Jb=Math.PI/3,Qb=2*Math.PI/3;function tv(i){var a;return i=(.5-i)*Math.PI,U0.r=255*(a=Math.sin(i))*a,U0.g=255*(a=Math.sin(i+Jb))*a,U0.b=255*(a=Math.sin(i+Qb))*a,U0+""}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 z0(i){var a=i.length;return function(s){return i[Math.max(0,Math.min(a-1,Math.floor(s*a)))]}}const nv=z0(sr("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var rv=z0(sr("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),iv=z0(sr("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),av=z0(sr("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function ov(i){return wi(Io(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=Ra(i),a===void 0&&(a=i.currentTarget),i=i.touches||[i]),Array.from(i,s=>ua(s,a))}function lv(i){return typeof i=="string"?new pi([document.querySelectorAll(i)],[document.documentElement]):new pi([Qt(i)],No)}function ir(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,da=Math.atan2,Jc=Math.cos,uv=Math.max,u2=Math.min,ns=Math.sin,nu=Math.sqrt,pa=1e-12,sc=Math.PI,Y0=sc/2,cc=2*sc;function hv(i){return i>1?0:i<-1?sc:Math.acos(i)}function Gy(i){return i>=1?Y0:i<=-1?-Y0: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,s,u,p,g,v,x){var T=s-i,C=u-a,D=v-p,j=x-g,P=j*T-D*C;if(!(P*P<pa))return[i+(P=(D*(a-g)-j*(i-p))/P)*T,a+P*C]}function j0(i,a,s,u,p,g,v){var x=i-s,T=a-u,C=(v?g:-g)/nu(x*x+T*T),D=C*T,j=-C*x,P=i+D,$=a+j,it=s+D,G=u+j,V=(P+it)/2,Z=($+G)/2,pt=it-P,lt=G-$,ut=pt*pt+lt*lt,vt=p-g,wt=P*G-it*$,ne=(lt<0?-1:1)*nu(uv(0,vt*vt*ut-wt*wt)),ye=(wt*lt-pt*ne)/ut,Zt=(-wt*pt-lt*ne)/ut,$t=(wt*lt+pt*ne)/ut,Ht=(-wt*pt+lt*ne)/ut,qt=ye-V,Et=Zt-Z,Ut=$t-V,Kt=Ht-Z;return qt*qt+Et*Et>Ut*Ut+Kt*Kt&&(ye=$t,Zt=Ht),{cx:ye,cy:Zt,x01:-D,y01:-j,x11:ye*(p/vt-1),y11:Zt*(p/vt-1)}}function _v(){var i=fv,a=dv,s=ir(0),u=null,p=pv,g=gv,v=yv,x=null;function T(){var C,D,j=+i.apply(this,arguments),P=+a.apply(this,arguments),$=p.apply(this,arguments)-Y0,it=g.apply(this,arguments)-Y0,G=Wy(it-$),V=it>$;if(x||(x=C=ps()),P<j&&(D=P,P=j,j=D),P>pa)if(G>cc-pa)x.moveTo(P*Jc($),P*ns($)),x.arc(0,0,P,$,it,!V),j>pa&&(x.moveTo(j*Jc(it),j*ns(it)),x.arc(0,0,j,it,$,V));else{var Z,pt,lt=$,ut=it,vt=$,wt=it,ne=G,ye=G,Zt=v.apply(this,arguments)/2,$t=Zt>pa&&(u?+u.apply(this,arguments):nu(j*j+P*P)),Ht=u2(Wy(P-j)/2,+s.apply(this,arguments)),qt=Ht,Et=Ht;if($t>pa){var Ut=Gy($t/j*ns(Zt)),Kt=Gy($t/P*ns(Zt));(ne-=2*Ut)>pa?(vt+=Ut*=V?1:-1,wt-=Ut):(ne=0,vt=wt=($+it)/2),(ye-=2*Kt)>pa?(lt+=Kt*=V?1:-1,ut-=Kt):(ye=0,lt=ut=($+it)/2)}var se=P*Jc(lt),Ae=P*ns(lt),qe=j*Jc(wt),Xe=j*ns(wt);if(Ht>pa){var yn,Ke=P*Jc(ut),Hn=P*ns(ut),Wn=j*Jc(vt),Mn=j*ns(vt);if(G<sc&&(yn=mv(se,Ae,Wn,Mn,Ke,Hn,qe,Xe))){var Fn=se-yn[0],Sr=Ae-yn[1],cr=Ke-yn[0],ja=Hn-yn[1],uc=1/ns(hv((Fn*cr+Sr*ja)/(nu(Fn*Fn+Sr*Sr)*nu(cr*cr+ja*ja)))/2),Ao=nu(yn[0]*yn[0]+yn[1]*yn[1]);qt=u2(Ht,(j-Ao)/(uc-1)),Et=u2(Ht,(P-Ao)/(uc+1))}}ye>pa?Et>pa?(Z=j0(Wn,Mn,se,Ae,P,Et,V),pt=j0(Ke,Hn,qe,Xe,P,Et,V),x.moveTo(Z.cx+Z.x01,Z.cy+Z.y01),Et<Ht?x.arc(Z.cx,Z.cy,Et,da(Z.y01,Z.x01),da(pt.y01,pt.x01),!V):(x.arc(Z.cx,Z.cy,Et,da(Z.y01,Z.x01),da(Z.y11,Z.x11),!V),x.arc(0,0,P,da(Z.cy+Z.y11,Z.cx+Z.x11),da(pt.cy+pt.y11,pt.cx+pt.x11),!V),x.arc(pt.cx,pt.cy,Et,da(pt.y11,pt.x11),da(pt.y01,pt.x01),!V))):(x.moveTo(se,Ae),x.arc(0,0,P,lt,ut,!V)):x.moveTo(se,Ae),j>pa&&ne>pa?qt>pa?(Z=j0(qe,Xe,Ke,Hn,j,-qt,V),pt=j0(se,Ae,Wn,Mn,j,-qt,V),x.lineTo(Z.cx+Z.x01,Z.cy+Z.y01),qt<Ht?x.arc(Z.cx,Z.cy,qt,da(Z.y01,Z.x01),da(pt.y01,pt.x01),!V):(x.arc(Z.cx,Z.cy,qt,da(Z.y01,Z.x01),da(Z.y11,Z.x11),!V),x.arc(0,0,j,da(Z.cy+Z.y11,Z.cx+Z.x11),da(pt.cy+pt.y11,pt.cx+pt.x11),V),x.arc(pt.cx,pt.cy,qt,da(pt.y11,pt.x11),da(pt.y01,pt.x01),!V))):x.arc(0,0,j,wt,vt,V):x.lineTo(qe,Xe)}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,D=(+p.apply(this,arguments)+ +g.apply(this,arguments))/2-sc/2;return[Jc(D)*C,ns(D)*C]},T.innerRadius=function(C){return arguments.length?(i=typeof C=="function"?C:ir(+C),T):i},T.outerRadius=function(C){return arguments.length?(a=typeof C=="function"?C:ir(+C),T):a},T.cornerRadius=function(C){return arguments.length?(s=typeof C=="function"?C:ir(+C),T):s},T.padRadius=function(C){return arguments.length?(u=C==null?null:typeof C=="function"?C:ir(+C),T):u},T.startAngle=function(C){return arguments.length?(p=typeof C=="function"?C:ir(+C),T):p},T.endAngle=function(C){return arguments.length?(g=typeof C=="function"?C:ir(+C),T):g},T.padAngle=function(C){return arguments.length?(v=typeof C=="function"?C:ir(+C),T):v},T.context=function(C){return arguments.length?(x=C==null?null:C,T):x},T}var bv=Array.prototype.slice;function $0(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function Vy(i){this._context=i}function H0(i){return new Vy(i)}function h2(i){return i[0]}function f2(i){return i[1]}function d2(i,a){var s=ir(!0),u=null,p=H0,g=null;function v(x){var T,C,D,j=(x=$0(x)).length,P=!1;for(u==null&&(g=p(D=ps())),T=0;T<=j;++T)!(T<j&&s(C=x[T],T,x))===P&&((P=!P)?g.lineStart():g.lineEnd()),P&&g.point(+i(C,T,x),+a(C,T,x));if(D)return g=null,D+""||null}return i=typeof i=="function"?i:i===void 0?h2:ir(i),a=typeof a=="function"?a:a===void 0?f2:ir(a),v.x=function(x){return arguments.length?(i=typeof x=="function"?x:ir(+x),v):i},v.y=function(x){return arguments.length?(a=typeof x=="function"?x:ir(+x),v):a},v.defined=function(x){return arguments.length?(s=typeof x=="function"?x:ir(!!x),v):s},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,s){var u=null,p=ir(!0),g=null,v=H0,x=null;function T(D){var j,P,$,it,G,V=(D=$0(D)).length,Z=!1,pt=new Array(V),lt=new Array(V);for(g==null&&(x=v(G=ps())),j=0;j<=V;++j){if(!(j<V&&p(it=D[j],j,D))===Z)if(Z=!Z)P=j,x.areaStart(),x.lineStart();else{for(x.lineEnd(),x.lineStart(),$=j-1;$>=P;--$)x.point(pt[$],lt[$]);x.lineEnd(),x.areaEnd()}Z&&(pt[j]=+i(it,j,D),lt[j]=+a(it,j,D),x.point(u?+u(it,j,D):pt[j],s?+s(it,j,D):lt[j]))}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:ir(+i),a=typeof a=="function"?a:ir(a===void 0?0:+a),s=typeof s=="function"?s:s===void 0?f2:ir(+s),T.x=function(D){return arguments.length?(i=typeof D=="function"?D:ir(+D),u=null,T):i},T.x0=function(D){return arguments.length?(i=typeof D=="function"?D:ir(+D),T):i},T.x1=function(D){return arguments.length?(u=D==null?null:typeof D=="function"?D:ir(+D),T):u},T.y=function(D){return arguments.length?(a=typeof D=="function"?D:ir(+D),s=null,T):a},T.y0=function(D){return arguments.length?(a=typeof D=="function"?D:ir(+D),T):a},T.y1=function(D){return arguments.length?(s=D==null?null:typeof D=="function"?D:ir(+D),T):s},T.lineX0=T.lineY0=function(){return C().x(i).y(a)},T.lineY1=function(){return C().x(i).y(s)},T.lineX1=function(){return C().x(u).y(a)},T.defined=function(D){return arguments.length?(p=typeof D=="function"?D:ir(!!D),T):p},T.curve=function(D){return arguments.length?(v=D,g!=null&&(x=v(g)),T):v},T.context=function(D){return arguments.length?(D==null?g=x=null:x=v(g=D),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,s=null,u=ir(0),p=ir(cc),g=ir(0);function v(x){var T,C,D,j,P,$=(x=$0(x)).length,it=0,G=new Array($),V=new Array($),Z=+u.apply(this,arguments),pt=Math.min(cc,Math.max(-cc,p.apply(this,arguments)-Z)),lt=Math.min(Math.abs(pt)/$,g.apply(this,arguments)),ut=lt*(pt<0?-1:1);for(T=0;T<$;++T)(P=V[G[T]=T]=+i(x[T],T,x))>0&&(it+=P);for(a!=null?G.sort(function(vt,wt){return a(V[vt],V[wt])}):s!=null&&G.sort(function(vt,wt){return s(x[vt],x[wt])}),T=0,D=it?(pt-$*ut)/it:0;T<$;++T,Z=j)C=G[T],j=Z+((P=V[C])>0?P*D:0)+ut,V[C]={data:x[C],index:T,value:P,startAngle:Z,endAngle:j,padAngle:lt};return V}return v.value=function(x){return arguments.length?(i=typeof x=="function"?x:ir(+x),v):i},v.sortValues=function(x){return arguments.length?(a=x,s=null,v):a},v.sort=function(x){return arguments.length?(s=x,a=null,v):s},v.startAngle=function(x){return arguments.length?(u=typeof x=="function"?x:ir(+x),v):u},v.endAngle=function(x){return arguments.length?(p=typeof x=="function"?x:ir(+x),v):p},v.padAngle=function(x){return arguments.length?(g=typeof x=="function"?x:ir(+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(H0);function Ky(i){this._curve=i}function p2(i){function a(s){return new Ky(i(s))}return a._curve=i,a}function jh(i){var a=i.curve;return i.angle=i.x,delete i.x,i.radius=i.y,delete i.y,i.curve=function(s){return arguments.length?a(p2(s)):a()._curve},i}function Jy(){return jh(d2().curve(Xy))}function Qy(){var i=Zy().curve(Xy),a=i.curve,s=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 jh(s())},delete i.lineX0,i.lineEndAngle=function(){return jh(u())},delete i.lineX1,i.lineInnerRadius=function(){return jh(p())},delete i.lineY0,i.lineOuterRadius=function(){return jh(g())},delete i.lineY1,i.curve=function(v){return arguments.length?a(p2(v)):a()._curve},i}function $h(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,s=Ev,u=h2,p=f2,g=null;function v(){var x,T=bv.call(arguments),C=a.apply(this,T),D=s.apply(this,T);if(g||(g=x=ps()),i(g,+u.apply(this,(T[0]=C,T)),+p.apply(this,T),+u.apply(this,(T[0]=D,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?(s=x,v):s},v.x=function(x){return arguments.length?(u=typeof x=="function"?x:ir(+x),v):u},v.y=function(x){return arguments.length?(p=typeof x=="function"?x:ir(+x),v):p},v.context=function(x){return arguments.length?(g=x==null?null:x,v):g},v}function Tv(i,a,s,u,p){i.moveTo(a,s),i.bezierCurveTo(a=(a+u)/2,s,a,p,u,p)}function Sv(i,a,s,u,p){i.moveTo(a,s),i.bezierCurveTo(a,s=(s+p)/2,u,s,u,p)}function Av(i,a,s,u,p){var g=$h(a,s),v=$h(a,s=(s+p)/2),x=$h(u,s),T=$h(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 Iv(){return g2(Sv)}function Nv(){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 s=Math.sqrt(a/sc);i.moveTo(s,0),i.arc(0,0,s,0,cc)}},tm={draw:function(i,a){var s=Math.sqrt(a/5)/2;i.moveTo(-3*s,-s),i.lineTo(-s,-s),i.lineTo(-s,-3*s),i.lineTo(s,-3*s),i.lineTo(s,-s),i.lineTo(3*s,-s),i.lineTo(3*s,s),i.lineTo(s,s),i.lineTo(s,3*s),i.lineTo(-s,3*s),i.lineTo(-s,s),i.lineTo(-3*s,s),i.closePath()}};var em=Math.sqrt(1/3),Lv=2*em;const nm={draw:function(i,a){var s=Math.sqrt(a/Lv),u=s*em;i.moveTo(0,-s),i.lineTo(u,0),i.lineTo(0,s),i.lineTo(-u,0),i.closePath()}};var rm=Math.sin(sc/10)/Math.sin(7*sc/10),Mv=Math.sin(cc/10)*rm,Ov=-Math.cos(cc/10)*rm;const im={draw:function(i,a){var s=Math.sqrt(.8908130915292852*a),u=Mv*s,p=Ov*s;i.moveTo(0,-s),i.lineTo(u,p);for(var g=1;g<5;++g){var v=cc*g/5,x=Math.cos(v),T=Math.sin(v);i.lineTo(T*s,-x*s),i.lineTo(x*u-T*p,T*u+x*p)}i.closePath()}},am={draw:function(i,a){var s=Math.sqrt(a),u=-s/2;i.rect(u,u,s,s)}};var m2=Math.sqrt(3);const om={draw:function(i,a){var s=-Math.sqrt(a/(3*m2));i.moveTo(0,2*s),i.lineTo(-m2*s,-s),i.lineTo(m2*s,-s),i.closePath()}};var co=-.5,lo=Math.sqrt(3)/2,_2=1/Math.sqrt(12),Dv=3*(_2/2+1);const sm={draw:function(i,a){var s=Math.sqrt(a/Dv),u=s/2,p=s*_2,g=u,v=s*_2+s,x=-g,T=v;i.moveTo(u,p),i.lineTo(g,v),i.lineTo(x,T),i.lineTo(co*u-lo*p,lo*u+co*p),i.lineTo(co*g-lo*v,lo*g+co*v),i.lineTo(co*x-lo*T,lo*x+co*T),i.lineTo(co*u+lo*p,co*p-lo*u),i.lineTo(co*g+lo*v,co*v-lo*g),i.lineTo(co*x+lo*T,co*T-lo*x),i.closePath()}};var Bv=[y2,tm,nm,am,im,om,sm];function Rv(i,a){var s=null;function u(){var p;if(s||(s=p=ps()),i.apply(this,arguments).draw(s,+a.apply(this,arguments)),p)return s=null,p+""||null}return i=typeof i=="function"?i:ir(i||y2),a=typeof a=="function"?a:ir(a===void 0?64:+a),u.type=function(p){return arguments.length?(i=typeof p=="function"?p:ir(p),u):i},u.size=function(p){return arguments.length?(a=typeof p=="function"?p:ir(+p),u):a},u.context=function(p){return arguments.length?(s=p==null?null:p,u):s},u}function lc(){}function q0(i,a,s){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+s)/6)}function W0(i){this._context=i}function Fv(i){return new W0(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)}W0.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:q0(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:q0(this,i,a)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}},cm.prototype={areaStart:lc,areaEnd:lc,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:q0(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 s=(this._x0+4*this._x1+i)/6,u=(this._y0+4*this._y1+a)/6;this._line?this._context.lineTo(s,u):this._context.moveTo(s,u);break;case 3:this._point=4;default:q0(this,i,a)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a}};class um{constructor(a,s){this._context=a,this._x=s}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,s){switch(a=+a,s=+s,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,s):this._context.moveTo(a,s);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+a)/2,this._y0,this._x0,s,a,s):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+s)/2,a,this._y0,a,s)}this._x0=a,this._y0=s}}function zv(i){return new um(i,!0)}function Yv(i){return new um(i,!1)}function hm(i,a){this._basis=new W0(i),this._beta=a}hm.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var i=this._x,a=this._y,s=i.length-1;if(s>0)for(var u,p=i[0],g=a[0],v=i[s]-p,x=a[s]-g,T=-1;++T<=s;)u=T/s,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 s(u){return a===1?new W0(u):new hm(u,a)}return s.beta=function(u){return i(+u)},s}(.85);function G0(i,a,s){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-s),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:G0(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:G0(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 s(u){return new b2(u,a)}return s.tension=function(u){return i(+u)},s}(0);function v2(i,a){this._context=i,this._k=(1-a)/6}v2.prototype={areaStart:lc,areaEnd:lc,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:G0(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 s(u){return new v2(u,a)}return s.tension=function(u){return i(+u)},s}(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:G0(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 s(u){return new x2(u,a)}return s.tension=function(u){return i(+u)},s}(0);function k2(i,a,s){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,D=3*i._l23_a*(i._l23_a+i._l12_a);g=(g*C+i._x1*i._l23_2a-a*i._l12_2a)/D,v=(v*C+i._y1*i._l23_2a-s*i._l12_2a)/D}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 s=this._x2-i,u=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+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 s(u){return a?new fm(u,a):new b2(u,0)}return s.alpha=function(u){return i(+u)},s}(.5);function dm(i,a){this._context=i,this._alpha=a}dm.prototype={areaStart:lc,areaEnd:lc,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 s=this._x2-i,u=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+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 s(u){return a?new dm(u,a):new v2(u,0)}return s.alpha=function(u){return i(+u)},s}(.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 s=this._x2-i,u=this._y2-a;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+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 s(u){return a?new pm(u,a):new x2(u,0)}return s.alpha=function(u){return i(+u)},s}(.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,s){var u=i._x1-i._x0,p=a-i._x1,g=(i._y1-i._y0)/(u||p<0&&-0),v=(s-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 s=i._x1-i._x0;return s?(3*(i._y1-i._y0)/s-a)/2:a}function w2(i,a,s){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*s,g,v)}function V0(i){this._context=i}function bm(i){this._context=new vm(i)}function vm(i){this._context=i}function Xv(i){return new V0(i)}function Kv(i){return new bm(i)}function xm(i){this._context=i}function km(i){var a,s,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)s=p[a]/g[a-1],g[a]-=s,v[a]-=s*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 Z0(i,a){this._context=i,this._t=a}function Qv(i){return new Z0(i,.5)}function t5(i){return new Z0(i,0)}function e5(i){return new Z0(i,1)}function ru(i,a){if((p=i.length)>1)for(var s,u,p,g=1,v=i[a[0]],x=v.length;g<p;++g)for(u=v,v=i[a[g]],s=0;s<x;++s)v[s][1]+=v[s][0]=isNaN(u[s][1])?u[s][0]:u[s][1]}function iu(i){for(var a=i.length,s=new Array(a);--a>=0;)s[a]=a;return s}function n5(i,a){return i[a]}function r5(i){const a=[];return a.key=i,a}function i5(){var i=ir([]),a=iu,s=ru,u=n5;function p(g){var v,x,T=Array.from(i.apply(this,arguments),r5),C=T.length,D=-1;for(const j of g)for(v=0,++D;v<C;++v)(T[v][D]=[0,+u(j,T[v].key,D,g)]).data=j;for(v=0,x=$0(a(T));v<C;++v)T[x[v]].index=v;return s(T,x),T}return p.keys=function(g){return arguments.length?(i=typeof g=="function"?g:ir(Array.from(g)),p):i},p.value=function(g){return arguments.length?(u=typeof g=="function"?g:ir(+g),p):u},p.order=function(g){return arguments.length?(a=g==null?iu:typeof g=="function"?g:ir(Array.from(g)),p):a},p.offset=function(g){return arguments.length?(s=g==null?ru:g,p):s},p}function a5(i,a){if((u=i.length)>0){for(var s,u,p,g=0,v=i[0].length;g<v;++g){for(p=s=0;s<u;++s)p+=i[s][g][1]||0;if(p)for(s=0;s<u;++s)i[s][g][1]/=p}ru(i,a)}}function o5(i,a){if((x=i.length)>0)for(var s,u,p,g,v,x,T=0,C=i[a[0]].length;T<C;++T)for(g=v=0,s=0;s<x;++s)(p=(u=i[a[s]][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((s=i.length)>0){for(var s,u=0,p=i[a[0]],g=p.length;u<g;++u){for(var v=0,x=0;v<s;++v)x+=i[v][u][1]||0;p[u][1]+=p[u][0]=-x/2}ru(i,a)}}function c5(i,a){if((p=i.length)>0&&(u=(s=i[a[0]]).length)>0){for(var s,u,p,g=0,v=1;v<u;++v){for(var x=0,T=0,C=0;x<p;++x){for(var D=i[a[x]],j=D[v][1]||0,P=(j-(D[v-1][1]||0))/2,$=0;$<x;++$){var it=i[a[$]];P+=(it[v][1]||0)-(it[v-1][1]||0)}T+=j,C+=P*j}s[v-1][1]+=s[v-1][0]=g,T&&(g-=C/T)}s[v-1][1]+=s[v-1][0]=g,ru(i,a)}}function wm(i){var a=i.map(l5);return iu(i).sort(function(s,u){return a[s]-a[u]})}function l5(i){for(var a,s=-1,u=0,p=i.length,g=-1/0;++s<p;)(a=+i[s][1])>g&&(g=a,u=s);return u}function Em(i){var a=i.map(Tm);return iu(i).sort(function(s,u){return a[s]-a[u]})}function Tm(i){for(var a,s=0,u=-1,p=i.length;++u<p;)(a=+i[u][1])&&(s+=a);return s}function u5(i){return Em(i).reverse()}function h5(i){var a,s,u=i.length,p=i.map(Tm),g=wm(i),v=0,x=0,T=[],C=[];for(a=0;a<u;++a)s=g[a],v<x?(v+=p[s],T.push(s)):(x+=p[s],C.push(s));return C.reverse().concat(T)}function f5(i){return iu(i).reverse()}gm.prototype={areaStart:lc,areaEnd:lc,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))}},V0.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 s=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,s=mm(this,i,a)),s);break;default:w2(this,this._t0,s=mm(this,i,a))}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=a,this._t0=s}}},(bm.prototype=Object.create(V0.prototype)).point=function(i,a){V0.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,s,u,p,g){this._context.bezierCurveTo(a,i,u,s,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,s=i.length;if(s)if(this._line?this._context.lineTo(i[0],a[0]):this._context.moveTo(i[0],a[0]),s===2)this._context.lineTo(i[1],a[1]);else for(var u=km(i),p=km(a),g=0,v=1;v<s;++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&&s===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)}},Z0.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 s=this._x*(1-this._t)+i*this._t;this._context.lineTo(s,this._y),this._context.lineTo(s,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()}:B0(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,s){var u=new Ec,p=a;return a==null?(u.restart(i,a,s),u):(u._restart=u.restart,u.restart=function(g,v,x){v=+v,x=x==null?wc():+x,u._restart(function T(C){C+=p,u._restart(T,p+=v,x),g(C)},v,x)},u.restart(i,a,s),u)}const X0=i=>()=>i;function _5(i,{sourceEvent:a,target:s,transform:u,dispatch:p}){Object.defineProperties(this,{type:{value:i,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},target:{value:s,enumerable:!0,configurable:!0},transform:{value:u,enumerable:!0,configurable:!0},_:{value:p}})}function rs(i,a,s){this.k=i,this.x=a,this.y=s}rs.prototype={constructor:rs,scale:function(i){return i===1?this:new rs(this.k*i,this.x,this.y)},translate:function(i,a){return i===0&a===0?this:new rs(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 K0=new rs(1,0,0);function Am(i){for(;!i.__zoom;)if(!(i=i.parentNode))return K0;return i.__zoom}function E2(i){i.stopImmediatePropagation()}function Hh(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||K0}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,s){var u=i.invertX(a[0][0])-s[0][0],p=i.invertX(a[1][0])-s[1][0],g=i.invertY(a[0][1])-s[0][1],v=i.invertY(a[1][1])-s[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,s,u=b5,p=v5,g=w5,v=x5,x=k5,T=[0,1/0],C=[[-1/0,-1/0],[1/0,1/0]],D=250,j=Wp,P=lr("start","zoom","end"),$=500,it=0,G=10;function V(Et){Et.property("__zoom",Cm).on("wheel.zoom",ne,{passive:!1}).on("mousedown.zoom",ye).on("dblclick.zoom",Zt).filter(x).on("touchstart.zoom",$t).on("touchmove.zoom",Ht).on("touchend.zoom touchcancel.zoom",qt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Z(Et,Ut){return(Ut=Math.max(T[0],Math.min(T[1],Ut)))===Et.k?Et:new rs(Ut,Et.x,Et.y)}function pt(Et,Ut,Kt){var se=Ut[0]-Kt[0]*Et.k,Ae=Ut[1]-Kt[1]*Et.k;return se===Et.x&&Ae===Et.y?Et:new rs(Et.k,se,Ae)}function lt(Et){return[(+Et[0][0]+ +Et[1][0])/2,(+Et[0][1]+ +Et[1][1])/2]}function ut(Et,Ut,Kt,se){Et.on("start.zoom",function(){vt(this,arguments).event(se).start()}).on("interrupt.zoom end.zoom",function(){vt(this,arguments).event(se).end()}).tween("zoom",function(){var Ae=this,qe=arguments,Xe=vt(Ae,qe).event(se),yn=p.apply(Ae,qe),Ke=Kt==null?lt(yn):typeof Kt=="function"?Kt.apply(Ae,qe):Kt,Hn=Math.max(yn[1][0]-yn[0][0],yn[1][1]-yn[0][1]),Wn=Ae.__zoom,Mn=typeof Ut=="function"?Ut.apply(Ae,qe):Ut,Fn=j(Wn.invert(Ke).concat(Hn/Wn.k),Mn.invert(Ke).concat(Hn/Mn.k));return function(Sr){if(Sr===1)Sr=Mn;else{var cr=Fn(Sr),ja=Hn/cr[2];Sr=new rs(ja,Ke[0]-cr[0]*ja,Ke[1]-cr[1]*ja)}Xe.zoom(null,Sr)}})}function vt(Et,Ut,Kt){return!Kt&&Et.__zooming||new wt(Et,Ut)}function wt(Et,Ut){this.that=Et,this.args=Ut,this.active=0,this.sourceEvent=null,this.extent=p.apply(Et,Ut),this.taps=0}function ne(Et,...Ut){if(u.apply(this,arguments)){var Kt=vt(this,Ut).event(Et),se=this.__zoom,Ae=Math.max(T[0],Math.min(T[1],se.k*Math.pow(2,v.apply(this,arguments)))),qe=ua(Et);if(Kt.wheel)Kt.mouse[0][0]===qe[0]&&Kt.mouse[0][1]===qe[1]||(Kt.mouse[1]=se.invert(Kt.mouse[0]=qe)),clearTimeout(Kt.wheel);else{if(se.k===Ae)return;Kt.mouse=[qe,se.invert(qe)],eo(this),Kt.start()}Hh(Et),Kt.wheel=setTimeout(Xe,150),Kt.zoom("mouse",g(pt(Z(se,Ae),Kt.mouse[0],Kt.mouse[1]),Kt.extent,C))}function Xe(){Kt.wheel=null,Kt.end()}}function ye(Et,...Ut){if(!s&&u.apply(this,arguments)){var Kt=Et.currentTarget,se=vt(this,Ut,!0).event(Et),Ae=wi(Et.view).on("mousemove.zoom",Ke,!0).on("mouseup.zoom",Hn,!0),qe=ua(Et,Kt),Xe=Et.clientX,yn=Et.clientY;ho(Et.view),E2(Et),se.mouse=[qe,this.__zoom.invert(qe)],eo(this),se.start()}function Ke(Wn){if(Hh(Wn),!se.moved){var Mn=Wn.clientX-Xe,Fn=Wn.clientY-yn;se.moved=Mn*Mn+Fn*Fn>it}se.event(Wn).zoom("mouse",g(pt(se.that.__zoom,se.mouse[0]=ua(Wn,Kt),se.mouse[1]),se.extent,C))}function Hn(Wn){Ae.on("mousemove.zoom mouseup.zoom",null),as(Wn.view,se.moved),Hh(Wn),se.event(Wn).end()}}function Zt(Et,...Ut){if(u.apply(this,arguments)){var Kt=this.__zoom,se=ua(Et.changedTouches?Et.changedTouches[0]:Et,this),Ae=Kt.invert(se),qe=Kt.k*(Et.shiftKey?.5:2),Xe=g(pt(Z(Kt,qe),se,Ae),p.apply(this,Ut),C);Hh(Et),D>0?wi(this).transition().duration(D).call(ut,Xe,se,Et):wi(this).call(V.transform,Xe,se,Et)}}function $t(Et,...Ut){if(u.apply(this,arguments)){var Kt,se,Ae,qe,Xe=Et.touches,yn=Xe.length,Ke=vt(this,Ut,Et.changedTouches.length===yn).event(Et);for(E2(Et),se=0;se<yn;++se)qe=[qe=ua(Ae=Xe[se],this),this.__zoom.invert(qe),Ae.identifier],Ke.touch0?Ke.touch1||Ke.touch0[2]===qe[2]||(Ke.touch1=qe,Ke.taps=0):(Ke.touch0=qe,Kt=!0,Ke.taps=1+!!i);i&&(i=clearTimeout(i)),Kt&&(Ke.taps<2&&(a=qe[0],i=setTimeout(function(){i=null},$)),eo(this),Ke.start())}}function Ht(Et,...Ut){if(this.__zooming){var Kt,se,Ae,qe,Xe=vt(this,Ut).event(Et),yn=Et.changedTouches,Ke=yn.length;for(Hh(Et),Kt=0;Kt<Ke;++Kt)Ae=ua(se=yn[Kt],this),Xe.touch0&&Xe.touch0[2]===se.identifier?Xe.touch0[0]=Ae:Xe.touch1&&Xe.touch1[2]===se.identifier&&(Xe.touch1[0]=Ae);if(se=Xe.that.__zoom,Xe.touch1){var Hn=Xe.touch0[0],Wn=Xe.touch0[1],Mn=Xe.touch1[0],Fn=Xe.touch1[1],Sr=(Sr=Mn[0]-Hn[0])*Sr+(Sr=Mn[1]-Hn[1])*Sr,cr=(cr=Fn[0]-Wn[0])*cr+(cr=Fn[1]-Wn[1])*cr;se=Z(se,Math.sqrt(Sr/cr)),Ae=[(Hn[0]+Mn[0])/2,(Hn[1]+Mn[1])/2],qe=[(Wn[0]+Fn[0])/2,(Wn[1]+Fn[1])/2]}else{if(!Xe.touch0)return;Ae=Xe.touch0[0],qe=Xe.touch0[1]}Xe.zoom("touch",g(pt(se,Ae,qe),Xe.extent,C))}}function qt(Et,...Ut){if(this.__zooming){var Kt,se,Ae=vt(this,Ut).event(Et),qe=Et.changedTouches,Xe=qe.length;for(E2(Et),s&&clearTimeout(s),s=setTimeout(function(){s=null},$),Kt=0;Kt<Xe;++Kt)se=qe[Kt],Ae.touch0&&Ae.touch0[2]===se.identifier?delete Ae.touch0:Ae.touch1&&Ae.touch1[2]===se.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&&(se=ua(se,this),Math.hypot(a[0]-se[0],a[1]-se[1])<G)){var yn=wi(this).on("dblclick.zoom");yn&&yn.apply(this,arguments)}}}return V.transform=function(Et,Ut,Kt,se){var Ae=Et.selection?Et.selection():Et;Ae.property("__zoom",Cm),Et!==Ae?ut(Et,Ut,Kt,se):Ae.interrupt().each(function(){vt(this,arguments).event(se).start().zoom(null,typeof Ut=="function"?Ut.apply(this,arguments):Ut).end()})},V.scaleBy=function(Et,Ut,Kt,se){V.scaleTo(Et,function(){var Ae=this.__zoom.k,qe=typeof Ut=="function"?Ut.apply(this,arguments):Ut;return Ae*qe},Kt,se)},V.scaleTo=function(Et,Ut,Kt,se){V.transform(Et,function(){var Ae=p.apply(this,arguments),qe=this.__zoom,Xe=Kt==null?lt(Ae):typeof Kt=="function"?Kt.apply(this,arguments):Kt,yn=qe.invert(Xe),Ke=typeof Ut=="function"?Ut.apply(this,arguments):Ut;return g(pt(Z(qe,Ke),Xe,yn),Ae,C)},Kt,se)},V.translateBy=function(Et,Ut,Kt,se){V.transform(Et,function(){return g(this.__zoom.translate(typeof Ut=="function"?Ut.apply(this,arguments):Ut,typeof Kt=="function"?Kt.apply(this,arguments):Kt),p.apply(this,arguments),C)},null,se)},V.translateTo=function(Et,Ut,Kt,se,Ae){V.transform(Et,function(){var qe=p.apply(this,arguments),Xe=this.__zoom,yn=se==null?lt(qe):typeof se=="function"?se.apply(this,arguments):se;return g(K0.translate(yn[0],yn[1]).scale(Xe.k).translate(typeof Ut=="function"?-Ut.apply(this,arguments):-Ut,typeof Kt=="function"?-Kt.apply(this,arguments):-Kt),qe,C)},se,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,Ut){return this.mouse&&Et!=="mouse"&&(this.mouse[1]=Ut.invert(this.mouse[0])),this.touch0&&Et!=="touch"&&(this.touch0[1]=Ut.invert(this.touch0[0])),this.touch1&&Et!=="touch"&&(this.touch1[1]=Ut.invert(this.touch1[0])),this.that.__zoom=Ut,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Et){var Ut=wi(this.that).datum();P.call(Et,this.that,new _5(Et,{sourceEvent:this.sourceEvent,target:V,type:Et,transform:this.that.__zoom,dispatch:P}),Ut)}},V.wheelDelta=function(Et){return arguments.length?(v=typeof Et=="function"?Et:X0(+Et),V):v},V.filter=function(Et){return arguments.length?(u=typeof Et=="function"?Et:X0(!!Et),V):u},V.touchable=function(Et){return arguments.length?(x=typeof Et=="function"?Et:X0(!!Et),V):x},V.extent=function(Et){return arguments.length?(p=typeof Et=="function"?Et:X0([[+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?(D=+Et,V):D},V.interpolate=function(Et){return arguments.length?(j=Et,V):j},V.on=function(){var Et=P.on.apply(P,arguments);return Et===P?V:Et},V.clickDistance=function(Et){return arguments.length?(it=(Et=+Et)*Et,V):Math.sqrt(it)},V.tapDistance=function(Et){return arguments.length?(G=+Et,V):G},V}Am.prototype=rs.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=6359).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};
|